pshenmic-dpp 2.0.0-dev.2 → 2.0.0-dev.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/dist/binaries/bindingsTypes.d.ts +507 -37
  2. package/dist/binaries/bindingsTypes.js +4 -3
  3. package/dist/binaries/native/aarch64-apple-darwin/pshenmic_dpp.node +0 -0
  4. package/dist/binaries/native/x86_64-apple-darwin/pshenmic_dpp.node +0 -0
  5. package/dist/binaries/native/x86_64-unknown-linux-gnu/pshenmic_dpp.node +0 -0
  6. package/dist/binaries/native/x86_64-unknown-linux-musl/pshenmic_dpp.node +0 -0
  7. package/dist/binaries/node.cjs +50 -0
  8. package/dist/binaries/node.d.cts +2 -0
  9. package/dist/binaries/pshenmic_dpp.android.node/arm64-v8a/libpshenmic_dpp.so +0 -0
  10. package/dist/binaries/pshenmic_dpp.apple.node/Info.plist +29 -0
  11. package/dist/binaries/pshenmic_dpp.apple.node/ios-arm64-simulator/libpshenmic_dpp.framework/Info.plist +24 -0
  12. package/dist/binaries/pshenmic_dpp.apple.node/ios-arm64-simulator/libpshenmic_dpp.framework/libpshenmic_dpp +0 -0
  13. package/dist/binaries/pshenmic_dpp.apple.node/react-native-node-api-module +0 -0
  14. package/dist/binaries/pshenmic_dpp.d.ts +42 -1
  15. package/dist/binaries/pshenmic_dpp.js +1 -1
  16. package/dist/binaries/wasm/wasmBytes.cjs +3 -0
  17. package/dist/binaries/wasm/wasmBytes.d.cts +1 -0
  18. package/dist/binaries/wasm.d.ts +42 -1
  19. package/dist/binaries/wasm.js +2 -44
  20. package/dist/binaries/wasmCreation.cjs +46 -0
  21. package/dist/binaries/wasmCreation.d.cts +2 -0
  22. package/dist/src/dpp/dpp.d.ts +28 -2
  23. package/dist/src/dpp/dpp.js +28 -2
  24. package/dist/src/dpp/structs/AddressTransitions/AddressCreditWithdrawalTransition.d.ts +1 -1
  25. package/dist/src/dpp/structs/AddressTransitions/AddressCreditWithdrawalTransition.js +2 -2
  26. package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.d.ts +1 -1
  27. package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.js +3 -3
  28. package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.d.ts +1 -1
  29. package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.js +3 -3
  30. package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.d.ts +1 -1
  31. package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.js +2 -2
  32. package/dist/src/dpp/structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.js +1 -1
  33. package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.d.ts +1 -1
  34. package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.js +2 -2
  35. package/dist/src/dpp/structs/AddressTransitions/entities/InputAddress.d.ts +4 -3
  36. package/dist/src/dpp/structs/AddressTransitions/entities/InputAddress.js +5 -4
  37. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddress.d.ts +4 -3
  38. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddress.js +5 -4
  39. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddressNullableCredits.d.ts +4 -3
  40. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddressNullableCredits.js +5 -4
  41. package/dist/src/dpp/structs/AssetLockProof/AssetLockProof.js +1 -1
  42. package/dist/src/dpp/structs/AssetLockProof/ChainAssetLockProof.js +2 -2
  43. package/dist/src/dpp/structs/AssetLockProof/InstantAssetLockProof.js +1 -1
  44. package/dist/src/dpp/structs/AssetLockProof/OutPoint.js +1 -1
  45. package/dist/src/dpp/structs/AssetLockProof/Transaction.js +1 -1
  46. package/dist/src/dpp/structs/AssetLockProof/TxIn.js +1 -1
  47. package/dist/src/dpp/structs/AssetLockProof/TxOut.js +1 -1
  48. package/dist/src/dpp/structs/AssetLockProof/Witness.js +1 -1
  49. package/dist/src/dpp/structs/Batch/BatchTransition.js +1 -1
  50. package/dist/src/dpp/structs/Batch/BatchedTransition.js +1 -1
  51. package/dist/src/dpp/structs/Batch/DocumentBaseTransition.js +1 -1
  52. package/dist/src/dpp/structs/Batch/DocumentTransition.d.ts +1 -0
  53. package/dist/src/dpp/structs/Batch/DocumentTransition.js +4 -1
  54. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentCreateTransition.d.ts +1 -1
  55. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentCreateTransition.js +2 -2
  56. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentDeleteTransition.js +1 -1
  57. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentPurchaseTransition.js +1 -1
  58. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentReplaceTransition.d.ts +1 -1
  59. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentReplaceTransition.js +2 -2
  60. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentTransferTransition.js +1 -1
  61. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentUpdatePriceTransition.js +1 -1
  62. package/dist/src/dpp/structs/Batch/PrefundedVotingBalance.js +1 -1
  63. package/dist/src/dpp/structs/Batch/TokenBaseTransition.js +1 -1
  64. package/dist/src/dpp/structs/Batch/TokenPaymentInfo.js +1 -1
  65. package/dist/src/dpp/structs/Batch/TokenPricingSchedule.js +1 -1
  66. package/dist/src/dpp/structs/Batch/TokenTransition.d.ts +1 -0
  67. package/dist/src/dpp/structs/Batch/TokenTransition.js +4 -1
  68. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenBurnTransition.js +1 -1
  69. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenClaimTransition.js +1 -1
  70. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenConfigUpdateTransition.js +1 -1
  71. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDestroyFrozenFundsTransition.js +1 -1
  72. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDirectPurchaseTransition.js +1 -1
  73. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenEmergencyActionTransition.js +1 -1
  74. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenFreezeTransition.js +1 -1
  75. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenMintTransition.js +1 -1
  76. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenSetPriceForDirectPurchaseTransition.js +1 -1
  77. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenTransferTransition.d.ts +3 -0
  78. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenTransferTransition.js +8 -1
  79. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenUnFreezeTransition.js +1 -1
  80. package/dist/src/dpp/structs/ContractBounds.js +1 -1
  81. package/dist/src/dpp/structs/CoreScript.js +1 -1
  82. package/dist/src/dpp/structs/DataContract.d.ts +6 -4
  83. package/dist/src/dpp/structs/DataContract.js +8 -2
  84. package/dist/src/dpp/structs/DataContractTransitions/DataContractCreateTransition.js +1 -1
  85. package/dist/src/dpp/structs/DataContractTransitions/DataContractUpdateTransition.js +1 -1
  86. package/dist/src/dpp/structs/Document.d.ts +1 -1
  87. package/dist/src/dpp/structs/Document.js +1 -1
  88. package/dist/src/dpp/structs/EncryptedNote/PrivateEncryptedNote.js +1 -1
  89. package/dist/src/dpp/structs/EncryptedNote/SharedEncryptedNote.js +1 -1
  90. package/dist/src/dpp/structs/GroupStateTransitionInfo.js +1 -1
  91. package/dist/src/dpp/structs/Identifier.js +1 -1
  92. package/dist/src/dpp/structs/Identity.js +1 -1
  93. package/dist/src/dpp/structs/IdentityPublicKey.d.ts +1 -0
  94. package/dist/src/dpp/structs/IdentityPublicKey.js +6 -1
  95. package/dist/src/dpp/structs/IdentityPublicKeyInCreation.d.ts +1 -0
  96. package/dist/src/dpp/structs/IdentityPublicKeyInCreation.js +6 -1
  97. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreateTransition.js +1 -1
  98. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditTransfer.js +1 -1
  99. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditWithdrawalTransition.js +1 -1
  100. package/dist/src/dpp/structs/IdentityTransitions/IdentityTopUpTransition.js +1 -1
  101. package/dist/src/dpp/structs/IdentityTransitions/IdentityUpdateTransition.js +1 -1
  102. package/dist/src/dpp/structs/InstantLock.js +1 -1
  103. package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.d.ts +0 -2
  104. package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.js +1 -7
  105. package/dist/src/dpp/structs/MasternodeVote/Vote.js +1 -1
  106. package/dist/src/dpp/structs/MasternodeVote/VotePoll.d.ts +1 -1
  107. package/dist/src/dpp/structs/MasternodeVote/VotePoll.js +3 -3
  108. package/dist/src/dpp/structs/Orchard/CommitmentTree.d.ts +14 -0
  109. package/dist/src/dpp/structs/Orchard/CommitmentTree.js +31 -0
  110. package/dist/src/dpp/structs/Orchard/IdentityCreateFromShieldedPoolResult.d.ts +21 -0
  111. package/dist/src/dpp/structs/Orchard/IdentityCreateFromShieldedPoolResult.js +38 -0
  112. package/dist/src/dpp/structs/Orchard/MerklePath.d.ts +11 -0
  113. package/dist/src/dpp/structs/Orchard/MerklePath.js +25 -0
  114. package/dist/src/dpp/structs/Orchard/Note.d.ts +18 -0
  115. package/dist/src/dpp/structs/Orchard/Note.js +42 -0
  116. package/dist/src/dpp/structs/Orchard/OrchardAddress.d.ts +15 -0
  117. package/dist/src/dpp/structs/Orchard/OrchardAddress.js +31 -0
  118. package/dist/src/dpp/structs/Orchard/OrchardProver.d.ts +12 -0
  119. package/dist/src/dpp/structs/Orchard/OrchardProver.js +18 -0
  120. package/dist/src/dpp/structs/Orchard/RecoveredNote.d.ts +18 -0
  121. package/dist/src/dpp/structs/Orchard/RecoveredNote.js +29 -0
  122. package/dist/src/dpp/structs/Orchard/ShieldedBuilder.d.ts +40 -0
  123. package/dist/src/dpp/structs/Orchard/ShieldedBuilder.js +45 -0
  124. package/dist/src/dpp/structs/Orchard/ShieldedMemo.d.ts +11 -0
  125. package/dist/src/dpp/structs/Orchard/ShieldedMemo.js +25 -0
  126. package/dist/src/dpp/structs/Orchard/ShieldedWithdrawalResult.d.ts +11 -0
  127. package/dist/src/dpp/structs/Orchard/ShieldedWithdrawalResult.js +18 -0
  128. package/dist/src/dpp/structs/Orchard/SpendableNote.d.ts +13 -0
  129. package/dist/src/dpp/structs/Orchard/SpendableNote.js +27 -0
  130. package/dist/src/dpp/structs/PartialIdentity.js +1 -1
  131. package/dist/src/dpp/structs/{Address → PlatformAddress}/AddressWitness.d.ts +2 -2
  132. package/dist/src/dpp/structs/{Address → PlatformAddress}/AddressWitness.js +2 -2
  133. package/dist/src/dpp/structs/{Address → PlatformAddress}/PlatformAddress.d.ts +4 -2
  134. package/dist/src/dpp/structs/{Address → PlatformAddress}/PlatformAddress.js +9 -3
  135. package/dist/src/dpp/structs/PrivateKey.js +1 -1
  136. package/dist/src/dpp/structs/PublicKey.js +1 -1
  137. package/dist/src/dpp/structs/ShieldedTransitions/IdentityCreateFromShieldedPoolTransition.d.ts +31 -0
  138. package/dist/src/dpp/structs/ShieldedTransitions/IdentityCreateFromShieldedPoolTransition.js +73 -0
  139. package/dist/src/dpp/structs/ShieldedTransitions/SerializedAction.d.ts +19 -0
  140. package/dist/src/dpp/structs/ShieldedTransitions/SerializedAction.js +49 -0
  141. package/dist/src/dpp/structs/ShieldedTransitions/ShieldFromAssetLockTransition.d.ts +30 -0
  142. package/dist/src/dpp/structs/ShieldedTransitions/ShieldFromAssetLockTransition.js +77 -0
  143. package/dist/src/dpp/structs/ShieldedTransitions/ShieldTransition.d.ts +32 -0
  144. package/dist/src/dpp/structs/ShieldedTransitions/ShieldTransition.js +78 -0
  145. package/dist/src/dpp/structs/ShieldedTransitions/ShieldedTransferTransition.d.ts +21 -0
  146. package/dist/src/dpp/structs/ShieldedTransitions/ShieldedTransferTransition.js +51 -0
  147. package/dist/src/dpp/structs/ShieldedTransitions/ShieldedWithdrawalTransition.d.ts +29 -0
  148. package/dist/src/dpp/structs/ShieldedTransitions/ShieldedWithdrawalTransition.js +71 -0
  149. package/dist/src/dpp/structs/ShieldedTransitions/UnshieldTransition.d.ts +25 -0
  150. package/dist/src/dpp/structs/ShieldedTransitions/UnshieldTransition.js +59 -0
  151. package/dist/src/dpp/structs/StateTransition.d.ts +1 -0
  152. package/dist/src/dpp/structs/StateTransition.js +3 -0
  153. package/dist/src/dpp/structs/TokenConfiguration/ActionTaker.js +1 -1
  154. package/dist/src/dpp/structs/TokenConfiguration/ChangeControlRules.js +1 -1
  155. package/dist/src/dpp/structs/TokenConfiguration/Group.js +1 -1
  156. package/dist/src/dpp/structs/TokenConfiguration/TokenConfiguration.js +1 -1
  157. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationConvention.js +1 -1
  158. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationLocalization.js +1 -1
  159. package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRules.js +1 -1
  160. package/dist/src/dpp/structs/TokenConfiguration/TokenKeepsHistoryRules.js +1 -1
  161. package/dist/src/dpp/structs/TokenConfiguration/TokenMarketplaceRules.js +1 -1
  162. package/dist/src/dpp/structs/TokenConfiguration/TokenPerpetualDistribution.js +1 -1
  163. package/dist/src/dpp/structs/TokenConfiguration/TokenPreProgrammedDistribution.js +1 -1
  164. package/dist/src/dpp/types.d.ts +85 -11
  165. package/dist/src/dpp/utils.d.ts +4 -3
  166. package/dist/src/dpp/utils.js +24 -6
  167. package/dist/src/dpp/verify/Contested/verifyVotePollVoteStateProof.d.ts +1 -1
  168. package/dist/src/dpp/verify/Contested/verifyVotePollVoteStateProof.js +1 -1
  169. package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressInfo.d.ts +2 -0
  170. package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressInfo.js +12 -0
  171. package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressesInfos.d.ts +2 -0
  172. package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressesInfos.js +14 -0
  173. package/dist/src/dpp/verify/Shielded/verifyMostRecentShieldedAnchorProof.d.ts +2 -0
  174. package/dist/src/dpp/verify/Shielded/verifyMostRecentShieldedAnchorProof.js +9 -0
  175. package/dist/src/dpp/verify/Shielded/verifyShieldedAnchorsProof.d.ts +2 -0
  176. package/dist/src/dpp/verify/Shielded/verifyShieldedAnchorsProof.js +9 -0
  177. package/dist/src/dpp/verify/Shielded/verifyShieldedEncryptedNotesProof.d.ts +2 -0
  178. package/dist/src/dpp/verify/Shielded/verifyShieldedEncryptedNotesProof.js +15 -0
  179. package/dist/src/dpp/verify/Shielded/verifyShieldedNotesCountProof.d.ts +2 -0
  180. package/dist/src/dpp/verify/Shielded/verifyShieldedNotesCountProof.js +9 -0
  181. package/dist/src/dpp/verify/Shielded/verifyShieldedNullifiersProof.d.ts +2 -0
  182. package/dist/src/dpp/verify/Shielded/verifyShieldedNullifiersProof.js +12 -0
  183. package/dist/src/dpp/verify/Shielded/verifyShieldedPoolStateProof.d.ts +2 -0
  184. package/dist/src/dpp/verify/Shielded/verifyShieldedPoolStateProof.js +9 -0
  185. package/dist/src/dpp/verify/StateTransition/utils.js +80 -15
  186. package/dist/src/dpp/verify/System/verifyEpochsInfoProof.js +1 -1
  187. package/dist/src/dpp/verify/Tokens/verifyTokenBalancesForIdentitiesProof.js +1 -1
  188. package/dist/src/dpp/verify/Tokens/verifyTokensBalancesForIdentityProof.js +1 -1
  189. package/dist/src/native.d.ts +3 -0
  190. package/dist/src/native.js +8 -0
  191. package/dist/utils/{base122.js → base122.cjs} +3 -1
  192. package/package.json +18 -28
  193. package/tests/unit/DataContract.spec.ts +281 -0
  194. package/tests/unit/DynamicValue.spec.ts +42 -2
  195. package/tests/unit/Identifier.spec.ts +1 -1
  196. package/tests/unit/Identity.spec.ts +1 -1
  197. package/tests/unit/IdentityPublicKey.spec.ts +1 -1
  198. package/tests/unit/NodeApi.spec.ts +49 -0
  199. package/tests/unit/Shielded.spec.ts +344 -0
  200. package/tests/unit/ShieldedTransitions.spec.ts +709 -0
  201. package/tests/unit/TokenConfiguration.spec.ts +114 -0
  202. package/tests/unit/WebAssembly.spec.ts +49 -0
  203. package/tests/unit/utils/buildTokenConfiguration.ts +66 -0
  204. package/dist/binaries/pshenmic_dpp.android.node/x86_64/libpshenmic_dpp.so +0 -0
  205. package/dist/binaries/wasm/wasmBytes.d.ts +0 -2
  206. package/dist/binaries/wasm/wasmBytes.js +0 -2
  207. /package/dist/utils/{base122.d.ts → base122.d.cts} +0 -0
@@ -1,3 +1,7 @@
1
+ export const orchardOvkFromSeed: any;
2
+ export const recoverNotes: any;
3
+ export const verifyAddressesInfos: any;
4
+ export const verifyAddressInfo: any;
1
5
  export const verifyContractProof: any;
2
6
  export const verifyDocumentsProof: any;
3
7
  export const verifyEpochsInfoProof: any;
@@ -8,6 +12,12 @@ export const verifyIdentityByUniqueKeyHashProof: any;
8
12
  export const verifyIdentityContractNonceProof: any;
9
13
  export const verifyIdentityKeysByIdentifierProof: any;
10
14
  export const verifyIdentityNonceProof: any;
15
+ export const verifyMostRecentShieldedAnchorProof: any;
16
+ export const verifyShieldedAnchorsProof: any;
17
+ export const verifyShieldedEncryptedNotesProof: any;
18
+ export const verifyShieldedNotesCountProof: any;
19
+ export const verifyShieldedNullifiersProof: any;
20
+ export const verifyShieldedPoolStateProof: any;
11
21
  export const verifySignatureDigest: any;
12
22
  export const verifyStateTransitionResult: any;
13
23
  export const verifyTokenBalancesForIdentitiesProof: any;
@@ -24,6 +34,7 @@ export const AddressFundsFeeStrategyStepNAPI: any;
24
34
  export const AddressFundsTransferTransitionNAPI: any;
25
35
  export const AddressWitnessNAPI: any;
26
36
  export const AssetLockProofNAPI: any;
37
+ export const AssetLockValueNAPI: any;
27
38
  export const AuthorizedActionTakersNAPI: any;
28
39
  export const BatchedTransitionNAPI: any;
29
40
  export const BatchTransitionNAPI: any;
@@ -31,6 +42,7 @@ export const BlockBasedDistributionNAPI: any;
31
42
  export const BlockInfoNAPI: any;
32
43
  export const ChainAssetLockProofNAPI: any;
33
44
  export const ChangeControlRulesNAPI: any;
45
+ export const CommitmentTreeNAPI: any;
34
46
  export const ConsensusErrorNAPI: any;
35
47
  export const ContenderWithSerializedDocumentNAPI: any;
36
48
  export const ContestedDocumentVotePollQueryExecutionResultNAPI: any;
@@ -56,6 +68,8 @@ export const GroupNAPI: any;
56
68
  export const GroupStateTransitionInfoNAPI: any;
57
69
  export const IdentifierNAPI: any;
58
70
  export const IdentityCreateFromAddressesTransitionNAPI: any;
71
+ export const IdentityCreateFromShieldedPoolResultNAPI: any;
72
+ export const IdentityCreateFromShieldedPoolTransitionNAPI: any;
59
73
  export const IdentityCreateTransitionNAPI: any;
60
74
  export const IdentityCreditTransferNAPI: any;
61
75
  export const IdentityCreditTransferToAddressesTransitionNAPI: any;
@@ -64,6 +78,7 @@ export const IdentityNAPI: any;
64
78
  export const IdentityPublicKeyInCreationNAPI: any;
65
79
  export const IdentityPublicKeyNAPI: any;
66
80
  export const IdentityTokenBalanceNAPI: any;
81
+ export const IdentityTokenBalanceOptionalNAPI: any;
67
82
  export const IdentityTokenInfoNAPI: any;
68
83
  export const IdentityTopUpFromAddressesTransitionNAPI: any;
69
84
  export const IdentityTopUpTransitionNAPI: any;
@@ -72,19 +87,35 @@ export const InputAddressNAPI: any;
72
87
  export const InstantAssetLockProofNAPI: any;
73
88
  export const InstantLockNAPI: any;
74
89
  export const MasternodeVoteTransitionNAPI: any;
90
+ export const MerklePathNAPI: any;
91
+ export const NoteNAPI: any;
92
+ export const OrchardAddressNAPI: any;
93
+ export const OrchardProverNAPI: any;
75
94
  export const OutPointNAPI: any;
76
95
  export const OutputAddressNAPI: any;
77
96
  export const OutputAddressNullableCreditsNAPI: any;
78
97
  export const PartialIdentityNAPI: any;
98
+ export const PlatformAddressInfoNAPI: any;
79
99
  export const PlatformAddressNAPI: any;
80
100
  export const PrefundedVotingBalanceNAPI: any;
81
101
  export const PrivateEncryptedNoteNAPI: any;
82
102
  export const PrivateKeyNAPI: any;
83
103
  export const PublicKeyNAPI: any;
104
+ export const RecoveredNoteNAPI: any;
84
105
  export const ResourceVoteChoiceNAPI: any;
85
106
  export const RewardDistributionTypeNAPI: any;
107
+ export const SerializedActionNAPI: any;
86
108
  export const SharedEncryptedNoteNAPI: any;
109
+ export const ShieldedBuilderNAPI: any;
110
+ export const ShieldedMemoNAPI: any;
111
+ export const ShieldedTransferTransitionNAPI: any;
112
+ export const ShieldedWithdrawalResultNAPI: any;
113
+ export const ShieldedWithdrawalTransitionNAPI: any;
114
+ export const ShieldFromAssetLockTransitionNAPI: any;
115
+ export const ShieldTransitionNAPI: any;
116
+ export const SpendableNoteNAPI: any;
87
117
  export const StateTransitionNAPI: any;
118
+ export const StoredAssetLockInfoNAPI: any;
88
119
  export const TimeBasedDistributionNAPI: any;
89
120
  export const TokenBaseTransitionNAPI: any;
90
121
  export const TokenBurnTransitionNAPI: any;
@@ -118,7 +149,7 @@ export const TotalSingleTokenBalanceNAPI: any;
118
149
  export const TransactionNAPI: any;
119
150
  export const TxInNAPI: any;
120
151
  export const TxOutNAPI: any;
121
- export const VerifiedAddressInfosNAPI: any;
152
+ export const UnshieldTransitionNAPI: any;
122
153
  export const VerifiedBalanceTransferNAPI: any;
123
154
  export const VerifiedContractNAPI: any;
124
155
  export const VerifiedDocumentNAPI: any;
@@ -134,6 +165,16 @@ export const VerifiedIdentityKeysByIdentifierNAPI: any;
134
165
  export const VerifiedIdentityNonceNAPI: any;
135
166
  export const VerifiedIdentityTokenInfoNAPI: any;
136
167
  export const VerifiedIdentityWithAddressInfosNAPI: any;
168
+ export const VerifiedMostRecentShieldedAnchorNAPI: any;
169
+ export const VerifiedPlatformAddressesInfosNAPI: any;
170
+ export const VerifiedPlatformAddressInfoNAPI: any;
171
+ export const VerifiedShieldedAnchorsNAPI: any;
172
+ export const VerifiedShieldedEncryptedNoteNAPI: any;
173
+ export const VerifiedShieldedEncryptedNotesNAPI: any;
174
+ export const VerifiedShieldedNotesCountNAPI: any;
175
+ export const VerifiedShieldedNullifierNAPI: any;
176
+ export const VerifiedShieldedNullifiersNAPI: any;
177
+ export const VerifiedShieldedPoolStateNAPI: any;
137
178
  export const VerifiedStateTransitionResultNAPI: any;
138
179
  export const VerifiedTokenBalancesForIdentitiesNAPI: any;
139
180
  export const VerifiedTokenContractInfoNAPI: any;
@@ -1,44 +1,2 @@
1
- import { WASI } from '@tybys/wasm-util';
2
- import { getDefaultContext } from '@emnapi/runtime';
3
- import { instantiateNapiModuleSync } from '@emnapi/core';
4
- import { bytes } from './wasm/wasmBytes.js';
5
- import { decode } from '../utils/base122.js';
6
- import { decompressSync } from 'fflate';
7
- const wasmBytes = new Uint8Array(decode(bytes));
8
- const wasi = new WASI({
9
- version: 'preview1',
10
- print: function () {
11
- console.log.apply(console, arguments);
12
- },
13
- printErr: function () {
14
- console.error.apply(console, arguments);
15
- }
16
- });
17
- const emnapiContext = getDefaultContext();
18
- emnapiContext.feature.supportNewFunction = false;
19
- emnapiContext.feature.supportBigInt = false;
20
- const __sharedMemory = new WebAssembly.Memory({
21
- initial: 1000,
22
- maximum: 2000,
23
- shared: true
24
- });
25
- const wasm = instantiateNapiModuleSync(decompressSync(wasmBytes), {
26
- context: emnapiContext,
27
- wasi,
28
- overwriteImports(importObject) {
29
- importObject.env = {
30
- ...importObject.env,
31
- ...importObject.napi,
32
- ...importObject.emnapi,
33
- memory: __sharedMemory
34
- };
35
- },
36
- beforeInit({ instance }) {
37
- for (const name of Object.keys(instance.exports)) {
38
- if (name.startsWith('__napi_register__')) {
39
- instance.exports[name]();
40
- }
41
- }
42
- }
43
- });
44
- export const { verifyContractProof, verifyDocumentsProof, verifyEpochsInfoProof, verifyIdentifierByNonUniquePublicKeyHashProof, verifyIdentityBalanceProof, verifyIdentityByIdentifierProof, verifyIdentityByUniqueKeyHashProof, verifyIdentityContractNonceProof, verifyIdentityKeysByIdentifierProof, verifyIdentityNonceProof, verifySignatureDigest, verifyStateTransitionResult, verifyTokenBalancesForIdentitiesProof, verifyTokenContractInfoProof, verifyTokenDirectPurchasePrices, verifyTokensBalancesForIdentityProof, verifyTokenTotalSupplyProof, verifyTotalCreditsProof, verifyVotePollVoteStateProof, ActionTakerNAPI, AddressCreditWithdrawalTransitionNAPI, AddressFundingFromAssetLockTransitionNAPI, AddressFundsFeeStrategyStepNAPI, AddressFundsTransferTransitionNAPI, AddressWitnessNAPI, AssetLockProofNAPI, AuthorizedActionTakersNAPI, BatchedTransitionNAPI, BatchTransitionNAPI, BlockBasedDistributionNAPI, BlockInfoNAPI, ChainAssetLockProofNAPI, ChangeControlRulesNAPI, ConsensusErrorNAPI, ContenderWithSerializedDocumentNAPI, ContestedDocumentVotePollQueryExecutionResultNAPI, ContractBoundsNAPI, CoreScriptNAPI, DataContractCreateTransitionNAPI, DataContractNAPI, DataContractUpdateTransitionNAPI, DistributionFunctionNAPI, DocumentBaseTransitionNAPI, DocumentCreateTransitionNAPI, DocumentDeleteTransitionNAPI, DocumentNAPI, DocumentPurchaseTransitionNAPI, DocumentReplaceTransitionNAPI, DocumentTransferTransitionNAPI, DocumentTransitionNAPI, DocumentUpdatePriceTransitionNAPI, DynamicValue, EpochBasedDistributionNAPI, ExtendedEpochInfoNAPI, GroupNAPI, GroupStateTransitionInfoNAPI, IdentifierNAPI, IdentityCreateFromAddressesTransitionNAPI, IdentityCreateTransitionNAPI, IdentityCreditTransferNAPI, IdentityCreditTransferToAddressesTransitionNAPI, IdentityCreditWithdrawalTransitionNAPI, IdentityNAPI, IdentityPublicKeyInCreationNAPI, IdentityPublicKeyNAPI, IdentityTokenBalanceNAPI, IdentityTokenInfoNAPI, IdentityTopUpFromAddressesTransitionNAPI, IdentityTopUpTransitionNAPI, IdentityUpdateTransitionNAPI, InputAddressNAPI, InstantAssetLockProofNAPI, InstantLockNAPI, MasternodeVoteTransitionNAPI, OutPointNAPI, OutputAddressNAPI, OutputAddressNullableCreditsNAPI, PartialIdentityNAPI, PlatformAddressNAPI, PrefundedVotingBalanceNAPI, PrivateEncryptedNoteNAPI, PrivateKeyNAPI, PublicKeyNAPI, ResourceVoteChoiceNAPI, RewardDistributionTypeNAPI, SharedEncryptedNoteNAPI, StateTransitionNAPI, TimeBasedDistributionNAPI, TokenBaseTransitionNAPI, TokenBurnTransitionNAPI, TokenClaimTransitionNAPI, TokenConfigUpdateTransitionNAPI, TokenConfigurationChangeItemNAPI, TokenConfigurationConventionNAPI, TokenConfigurationLocalizationNAPI, TokenConfigurationNAPI, TokenContractInfoNAPI, TokenDestroyFrozenFundsTransitionNAPI, TokenDirectPurchaseTransitionNAPI, TokenDistributionRecipientNAPI, TokenDistributionRulesNAPI, TokenEmergencyActionTransitionNAPI, TokenFreezeTransitionNAPI, TokenKeepsHistoryRulesNAPI, TokenMarketplaceRulesNAPI, TokenMintTransitionNAPI, TokenPaymentInfoNAPI, TokenPerpetualDistributionNAPI, TokenPreProgrammedDistributionNAPI, TokenPricingScheduleNAPI, TokenSetPriceForDirectPurchaseTransitionNAPI, TokenStatusNAPI, TokenTradeModeNAPI, TokenTransferTransitionNAPI, TokenTransitionNAPI, TokenUnFreezeTransitionNAPI, TotalSingleTokenBalanceNAPI, TransactionNAPI, TxInNAPI, TxOutNAPI, VerifiedAddressInfosNAPI, VerifiedBalanceTransferNAPI, VerifiedContractNAPI, VerifiedDocumentNAPI, VerifiedDocumentsNAPI, VerifiedEpochsInfoNAPI, VerifiedIdentifierByNonUniquePublicKeyHashNAPI, VerifiedIdentityBalanceRootHashNAPI, VerifiedIdentityByIdentifierNAPI, VerifiedIdentityByUniqueKeyHashNAPI, VerifiedIdentityContractNonceNAPI, VerifiedIdentityFullWithAddressInfosNAPI, VerifiedIdentityKeysByIdentifierNAPI, VerifiedIdentityNonceNAPI, VerifiedIdentityTokenInfoNAPI, VerifiedIdentityWithAddressInfosNAPI, VerifiedStateTransitionResultNAPI, VerifiedTokenBalancesForIdentitiesNAPI, VerifiedTokenContractInfoNAPI, VerifiedTokenDirectPurchasePricesNAPI, VerifiedTokenGroupActionWithDocumentNAPI, VerifiedTokenGroupActionWithTokenBalanceNAPI, VerifiedTokenGroupActionWithTokenIdentityInfoNAPI, VerifiedTokenGroupActionWithTokenPricingScheduleNAPI, VerifiedTokenPricingScheduleNAPI, VerifiedTokensBalancesForIdentityNAPI, VerifiedTokenTotalSupplyNAPI, VerifiedTotalCreditsNAPI, VerifiedVoteStateNAPI, VoteNAPI, VotePollNAPI, WitnessNAPI, ActionGoalNAPI, AssetLockProofTypeNAPI, BatchTypeNAPI, GasFeesPaidByNAPI, GroupActionStatusNAPI, KeyTypeNAPI, NetworkNAPI, PlatformVersionNAPI, PoolingNAPI, PurposeNAPI, SecurityLevelNAPI, TokenDistributionTypeNAPI, TokenEmergencyActionNAPI, VoteStateResultTypeNAPI } = wasm.napiModule.exports;
1
+ import * as protocol from "./wasmCreation.cjs";
2
+ export const { orchardOvkFromSeed, recoverNotes, verifyAddressesInfos, verifyAddressInfo, verifyContractProof, verifyDocumentsProof, verifyEpochsInfoProof, verifyIdentifierByNonUniquePublicKeyHashProof, verifyIdentityBalanceProof, verifyIdentityByIdentifierProof, verifyIdentityByUniqueKeyHashProof, verifyIdentityContractNonceProof, verifyIdentityKeysByIdentifierProof, verifyIdentityNonceProof, verifyMostRecentShieldedAnchorProof, verifyShieldedAnchorsProof, verifyShieldedEncryptedNotesProof, verifyShieldedNotesCountProof, verifyShieldedNullifiersProof, verifyShieldedPoolStateProof, verifySignatureDigest, verifyStateTransitionResult, verifyTokenBalancesForIdentitiesProof, verifyTokenContractInfoProof, verifyTokenDirectPurchasePrices, verifyTokensBalancesForIdentityProof, verifyTokenTotalSupplyProof, verifyTotalCreditsProof, verifyVotePollVoteStateProof, ActionTakerNAPI, AddressCreditWithdrawalTransitionNAPI, AddressFundingFromAssetLockTransitionNAPI, AddressFundsFeeStrategyStepNAPI, AddressFundsTransferTransitionNAPI, AddressWitnessNAPI, AssetLockProofNAPI, AssetLockValueNAPI, AuthorizedActionTakersNAPI, BatchedTransitionNAPI, BatchTransitionNAPI, BlockBasedDistributionNAPI, BlockInfoNAPI, ChainAssetLockProofNAPI, ChangeControlRulesNAPI, CommitmentTreeNAPI, ConsensusErrorNAPI, ContenderWithSerializedDocumentNAPI, ContestedDocumentVotePollQueryExecutionResultNAPI, ContractBoundsNAPI, CoreScriptNAPI, DataContractCreateTransitionNAPI, DataContractNAPI, DataContractUpdateTransitionNAPI, DistributionFunctionNAPI, DocumentBaseTransitionNAPI, DocumentCreateTransitionNAPI, DocumentDeleteTransitionNAPI, DocumentNAPI, DocumentPurchaseTransitionNAPI, DocumentReplaceTransitionNAPI, DocumentTransferTransitionNAPI, DocumentTransitionNAPI, DocumentUpdatePriceTransitionNAPI, DynamicValue, EpochBasedDistributionNAPI, ExtendedEpochInfoNAPI, GroupNAPI, GroupStateTransitionInfoNAPI, IdentifierNAPI, IdentityCreateFromAddressesTransitionNAPI, IdentityCreateFromShieldedPoolResultNAPI, IdentityCreateFromShieldedPoolTransitionNAPI, IdentityCreateTransitionNAPI, IdentityCreditTransferNAPI, IdentityCreditTransferToAddressesTransitionNAPI, IdentityCreditWithdrawalTransitionNAPI, IdentityNAPI, IdentityPublicKeyInCreationNAPI, IdentityPublicKeyNAPI, IdentityTokenBalanceNAPI, IdentityTokenBalanceOptionalNAPI, IdentityTokenInfoNAPI, IdentityTopUpFromAddressesTransitionNAPI, IdentityTopUpTransitionNAPI, IdentityUpdateTransitionNAPI, InputAddressNAPI, InstantAssetLockProofNAPI, InstantLockNAPI, MasternodeVoteTransitionNAPI, MerklePathNAPI, NoteNAPI, OrchardAddressNAPI, OrchardProverNAPI, OutPointNAPI, OutputAddressNAPI, OutputAddressNullableCreditsNAPI, PartialIdentityNAPI, PlatformAddressInfoNAPI, PlatformAddressNAPI, PrefundedVotingBalanceNAPI, PrivateEncryptedNoteNAPI, PrivateKeyNAPI, PublicKeyNAPI, RecoveredNoteNAPI, ResourceVoteChoiceNAPI, RewardDistributionTypeNAPI, SerializedActionNAPI, SharedEncryptedNoteNAPI, ShieldedBuilderNAPI, ShieldedMemoNAPI, ShieldedTransferTransitionNAPI, ShieldedWithdrawalResultNAPI, ShieldedWithdrawalTransitionNAPI, ShieldFromAssetLockTransitionNAPI, ShieldTransitionNAPI, SpendableNoteNAPI, StateTransitionNAPI, StoredAssetLockInfoNAPI, TimeBasedDistributionNAPI, TokenBaseTransitionNAPI, TokenBurnTransitionNAPI, TokenClaimTransitionNAPI, TokenConfigUpdateTransitionNAPI, TokenConfigurationChangeItemNAPI, TokenConfigurationConventionNAPI, TokenConfigurationLocalizationNAPI, TokenConfigurationNAPI, TokenContractInfoNAPI, TokenDestroyFrozenFundsTransitionNAPI, TokenDirectPurchaseTransitionNAPI, TokenDistributionRecipientNAPI, TokenDistributionRulesNAPI, TokenEmergencyActionTransitionNAPI, TokenFreezeTransitionNAPI, TokenKeepsHistoryRulesNAPI, TokenMarketplaceRulesNAPI, TokenMintTransitionNAPI, TokenPaymentInfoNAPI, TokenPerpetualDistributionNAPI, TokenPreProgrammedDistributionNAPI, TokenPricingScheduleNAPI, TokenSetPriceForDirectPurchaseTransitionNAPI, TokenStatusNAPI, TokenTradeModeNAPI, TokenTransferTransitionNAPI, TokenTransitionNAPI, TokenUnFreezeTransitionNAPI, TotalSingleTokenBalanceNAPI, TransactionNAPI, TxInNAPI, TxOutNAPI, UnshieldTransitionNAPI, VerifiedBalanceTransferNAPI, VerifiedContractNAPI, VerifiedDocumentNAPI, VerifiedDocumentsNAPI, VerifiedEpochsInfoNAPI, VerifiedIdentifierByNonUniquePublicKeyHashNAPI, VerifiedIdentityBalanceRootHashNAPI, VerifiedIdentityByIdentifierNAPI, VerifiedIdentityByUniqueKeyHashNAPI, VerifiedIdentityContractNonceNAPI, VerifiedIdentityFullWithAddressInfosNAPI, VerifiedIdentityKeysByIdentifierNAPI, VerifiedIdentityNonceNAPI, VerifiedIdentityTokenInfoNAPI, VerifiedIdentityWithAddressInfosNAPI, VerifiedMostRecentShieldedAnchorNAPI, VerifiedPlatformAddressesInfosNAPI, VerifiedPlatformAddressInfoNAPI, VerifiedShieldedAnchorsNAPI, VerifiedShieldedEncryptedNoteNAPI, VerifiedShieldedEncryptedNotesNAPI, VerifiedShieldedNotesCountNAPI, VerifiedShieldedNullifierNAPI, VerifiedShieldedNullifiersNAPI, VerifiedShieldedPoolStateNAPI, VerifiedStateTransitionResultNAPI, VerifiedTokenBalancesForIdentitiesNAPI, VerifiedTokenContractInfoNAPI, VerifiedTokenDirectPurchasePricesNAPI, VerifiedTokenGroupActionWithDocumentNAPI, VerifiedTokenGroupActionWithTokenBalanceNAPI, VerifiedTokenGroupActionWithTokenIdentityInfoNAPI, VerifiedTokenGroupActionWithTokenPricingScheduleNAPI, VerifiedTokenPricingScheduleNAPI, VerifiedTokensBalancesForIdentityNAPI, VerifiedTokenTotalSupplyNAPI, VerifiedTotalCreditsNAPI, VerifiedVoteStateNAPI, VoteNAPI, VotePollNAPI, WitnessNAPI, ActionGoalNAPI, AssetLockProofTypeNAPI, BatchTypeNAPI, GasFeesPaidByNAPI, GroupActionStatusNAPI, KeyTypeNAPI, NetworkNAPI, PlatformVersionNAPI, PoolingNAPI, PurposeNAPI, SecurityLevelNAPI, TokenDistributionTypeNAPI, TokenEmergencyActionNAPI, VoteStateResultTypeNAPI } = protocol.default;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ const { WASI } = require('@tybys/wasm-util');
3
+ const { getDefaultContext } = require('@emnapi/runtime');
4
+ const { instantiateNapiModuleSync } = require('@emnapi/core');
5
+ const { bytes } = require('./wasm/wasmBytes.cjs');
6
+ const { decode } = require('../utils/base122.cjs');
7
+ const { decompressSync } = require('fflate');
8
+ const wasmBytes = new Uint8Array(decode(bytes));
9
+ const wasi = new WASI({
10
+ version: 'preview1',
11
+ print: function () {
12
+ console.log.apply(console, arguments);
13
+ },
14
+ printErr: function () {
15
+ console.error.apply(console, arguments);
16
+ }
17
+ });
18
+ const emnapiContext = getDefaultContext();
19
+ emnapiContext.feature.supportNewFunction = false;
20
+ emnapiContext.feature.supportBigInt = false;
21
+ const __sharedMemory = new WebAssembly.Memory({
22
+ initial: 1000,
23
+ maximum: 2000,
24
+ shared: true
25
+ });
26
+ const wasm = instantiateNapiModuleSync(decompressSync(wasmBytes), {
27
+ context: emnapiContext,
28
+ wasi,
29
+ overwriteImports(importObject) {
30
+ importObject.env = {
31
+ ...importObject.env,
32
+ ...importObject.napi,
33
+ ...importObject.emnapi,
34
+ memory: __sharedMemory
35
+ };
36
+ },
37
+ beforeInit({ instance }) {
38
+ for (const name of Object.keys(instance.exports)) {
39
+ if (name.startsWith('__napi_register__')) {
40
+ instance.exports[name]();
41
+ }
42
+ }
43
+ }
44
+ });
45
+ module.exports = wasm.napiModule.exports;
46
+ module.exports.default = wasm.napiModule.exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -21,8 +21,8 @@ export { StateTransitionWASM } from './structs/StateTransition.js';
21
21
  export { PrivateEncryptedNoteWASM } from './structs/EncryptedNote/PrivateEncryptedNote.js';
22
22
  export { SharedEncryptedNoteWASM } from './structs/EncryptedNote/SharedEncryptedNote.js';
23
23
  export { GroupStateTransitionInfoWASM } from './structs/GroupStateTransitionInfo.js';
24
- export { PlatformAddressWASM } from './structs/Address/PlatformAddress.js';
25
- export { AddressWitnessWASM } from './structs/Address/AddressWitness.js';
24
+ export { PlatformAddressWASM } from './structs/PlatformAddress/PlatformAddress.js';
25
+ export { AddressWitnessWASM } from './structs/PlatformAddress/AddressWitness.js';
26
26
  export { IdentityCreateTransitionWASM } from './structs/IdentityTransitions/IdentityCreateTransition.js';
27
27
  export { IdentityTopUpTransitionWASM } from './structs/IdentityTransitions/IdentityTopUpTransition.js';
28
28
  export { IdentityUpdateTransitionWASM } from './structs/IdentityTransitions/IdentityUpdateTransition.js';
@@ -42,6 +42,13 @@ export { AddressFundsTransferTransitionWASM } from './structs/AddressTransitions
42
42
  export { IdentityCreateFromAddressesTransitionWASM } from './structs/AddressTransitions/IdentityCreateFromAddressesTransition.js';
43
43
  export { IdentityCreditTransferToAddressesTransitionWASM } from './structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.js';
44
44
  export { IdentityTopUpFromAddressesTransitionWASM } from './structs/AddressTransitions/IdentityTopUpFromAddressesTransition.js';
45
+ export { SerializedActionWASM } from './structs/ShieldedTransitions/SerializedAction.js';
46
+ export { ShieldTransitionWASM } from './structs/ShieldedTransitions/ShieldTransition.js';
47
+ export { ShieldedTransferTransitionWASM } from './structs/ShieldedTransitions/ShieldedTransferTransition.js';
48
+ export { UnshieldTransitionWASM } from './structs/ShieldedTransitions/UnshieldTransition.js';
49
+ export { ShieldFromAssetLockTransitionWASM } from './structs/ShieldedTransitions/ShieldFromAssetLockTransition.js';
50
+ export { ShieldedWithdrawalTransitionWASM } from './structs/ShieldedTransitions/ShieldedWithdrawalTransition.js';
51
+ export { IdentityCreateFromShieldedPoolTransitionWASM } from './structs/ShieldedTransitions/IdentityCreateFromShieldedPoolTransition.js';
45
52
  export { ActionTakerWASM } from './structs/TokenConfiguration/ActionTaker.js';
46
53
  export { AuthorizedActionTakersWASM } from './structs/TokenConfiguration/AuthorizedActionTakers.js';
47
54
  export { ChangeControlRulesWASM } from './structs/TokenConfiguration/ChangeControlRules.js';
@@ -108,3 +115,22 @@ export { verifyTokenContractInfoProof } from './verify/Tokens/verifyTokenContrac
108
115
  export { verifyTokenDirectPurchasePrices } from './verify/Tokens/verifyTokenDirectPurchasePrices.js';
109
116
  export { verifyTokenTotalSupplyProof } from './verify/Tokens/verifyTokenTotalSupplyProof.js';
110
117
  export { verifyTokensBalancesForIdentityProof } from './verify/Tokens/verifyTokensBalancesForIdentityProof.js';
118
+ export { verifyPlatformAddressInfo } from './verify/PlatformAddress/verifyPlatformAddressInfo.js';
119
+ export { verifyPlatformAddressesInfos } from './verify/PlatformAddress/verifyPlatformAddressesInfos.js';
120
+ export { verifyShieldedEncryptedNotesProof } from './verify/Shielded/verifyShieldedEncryptedNotesProof.js';
121
+ export { verifyShieldedAnchorsProof } from './verify/Shielded/verifyShieldedAnchorsProof.js';
122
+ export { verifyMostRecentShieldedAnchorProof } from './verify/Shielded/verifyMostRecentShieldedAnchorProof.js';
123
+ export { verifyShieldedPoolStateProof } from './verify/Shielded/verifyShieldedPoolStateProof.js';
124
+ export { verifyShieldedNotesCountProof } from './verify/Shielded/verifyShieldedNotesCountProof.js';
125
+ export { verifyShieldedNullifiersProof } from './verify/Shielded/verifyShieldedNullifiersProof.js';
126
+ export { OrchardAddressWASM, orchardOvkFromSeed } from './structs/Orchard/OrchardAddress.js';
127
+ export { ShieldedMemoWASM } from './structs/Orchard/ShieldedMemo.js';
128
+ export { NoteWASM } from './structs/Orchard/Note.js';
129
+ export { MerklePathWASM } from './structs/Orchard/MerklePath.js';
130
+ export { SpendableNoteWASM } from './structs/Orchard/SpendableNote.js';
131
+ export { CommitmentTreeWASM } from './structs/Orchard/CommitmentTree.js';
132
+ export { OrchardProverWASM } from './structs/Orchard/OrchardProver.js';
133
+ export { ShieldedWithdrawalResultWASM } from './structs/Orchard/ShieldedWithdrawalResult.js';
134
+ export { RecoveredNoteWASM, recoverNotes } from './structs/Orchard/RecoveredNote.js';
135
+ export { ShieldedBuilderWASM } from './structs/Orchard/ShieldedBuilder.js';
136
+ export { IdentityCreateFromShieldedPoolResultWASM } from './structs/Orchard/IdentityCreateFromShieldedPoolResult.js';
@@ -21,8 +21,8 @@ export { StateTransitionWASM } from './structs/StateTransition.js';
21
21
  export { PrivateEncryptedNoteWASM } from './structs/EncryptedNote/PrivateEncryptedNote.js';
22
22
  export { SharedEncryptedNoteWASM } from './structs/EncryptedNote/SharedEncryptedNote.js';
23
23
  export { GroupStateTransitionInfoWASM } from './structs/GroupStateTransitionInfo.js';
24
- export { PlatformAddressWASM } from './structs/Address/PlatformAddress.js';
25
- export { AddressWitnessWASM } from './structs/Address/AddressWitness.js';
24
+ export { PlatformAddressWASM } from './structs/PlatformAddress/PlatformAddress.js';
25
+ export { AddressWitnessWASM } from './structs/PlatformAddress/AddressWitness.js';
26
26
  export { IdentityCreateTransitionWASM } from './structs/IdentityTransitions/IdentityCreateTransition.js';
27
27
  export { IdentityTopUpTransitionWASM } from './structs/IdentityTransitions/IdentityTopUpTransition.js';
28
28
  export { IdentityUpdateTransitionWASM } from './structs/IdentityTransitions/IdentityUpdateTransition.js';
@@ -42,6 +42,13 @@ export { AddressFundsTransferTransitionWASM } from './structs/AddressTransitions
42
42
  export { IdentityCreateFromAddressesTransitionWASM } from './structs/AddressTransitions/IdentityCreateFromAddressesTransition.js';
43
43
  export { IdentityCreditTransferToAddressesTransitionWASM } from './structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.js';
44
44
  export { IdentityTopUpFromAddressesTransitionWASM } from './structs/AddressTransitions/IdentityTopUpFromAddressesTransition.js';
45
+ export { SerializedActionWASM } from './structs/ShieldedTransitions/SerializedAction.js';
46
+ export { ShieldTransitionWASM } from './structs/ShieldedTransitions/ShieldTransition.js';
47
+ export { ShieldedTransferTransitionWASM } from './structs/ShieldedTransitions/ShieldedTransferTransition.js';
48
+ export { UnshieldTransitionWASM } from './structs/ShieldedTransitions/UnshieldTransition.js';
49
+ export { ShieldFromAssetLockTransitionWASM } from './structs/ShieldedTransitions/ShieldFromAssetLockTransition.js';
50
+ export { ShieldedWithdrawalTransitionWASM } from './structs/ShieldedTransitions/ShieldedWithdrawalTransition.js';
51
+ export { IdentityCreateFromShieldedPoolTransitionWASM } from './structs/ShieldedTransitions/IdentityCreateFromShieldedPoolTransition.js';
45
52
  export { ActionTakerWASM } from './structs/TokenConfiguration/ActionTaker.js';
46
53
  export { AuthorizedActionTakersWASM } from './structs/TokenConfiguration/AuthorizedActionTakers.js';
47
54
  export { ChangeControlRulesWASM } from './structs/TokenConfiguration/ChangeControlRules.js';
@@ -108,3 +115,22 @@ export { verifyTokenContractInfoProof } from './verify/Tokens/verifyTokenContrac
108
115
  export { verifyTokenDirectPurchasePrices } from './verify/Tokens/verifyTokenDirectPurchasePrices.js';
109
116
  export { verifyTokenTotalSupplyProof } from './verify/Tokens/verifyTokenTotalSupplyProof.js';
110
117
  export { verifyTokensBalancesForIdentityProof } from './verify/Tokens/verifyTokensBalancesForIdentityProof.js';
118
+ export { verifyPlatformAddressInfo } from './verify/PlatformAddress/verifyPlatformAddressInfo.js';
119
+ export { verifyPlatformAddressesInfos } from './verify/PlatformAddress/verifyPlatformAddressesInfos.js';
120
+ export { verifyShieldedEncryptedNotesProof } from './verify/Shielded/verifyShieldedEncryptedNotesProof.js';
121
+ export { verifyShieldedAnchorsProof } from './verify/Shielded/verifyShieldedAnchorsProof.js';
122
+ export { verifyMostRecentShieldedAnchorProof } from './verify/Shielded/verifyMostRecentShieldedAnchorProof.js';
123
+ export { verifyShieldedPoolStateProof } from './verify/Shielded/verifyShieldedPoolStateProof.js';
124
+ export { verifyShieldedNotesCountProof } from './verify/Shielded/verifyShieldedNotesCountProof.js';
125
+ export { verifyShieldedNullifiersProof } from './verify/Shielded/verifyShieldedNullifiersProof.js';
126
+ export { OrchardAddressWASM, orchardOvkFromSeed } from './structs/Orchard/OrchardAddress.js';
127
+ export { ShieldedMemoWASM } from './structs/Orchard/ShieldedMemo.js';
128
+ export { NoteWASM } from './structs/Orchard/Note.js';
129
+ export { MerklePathWASM } from './structs/Orchard/MerklePath.js';
130
+ export { SpendableNoteWASM } from './structs/Orchard/SpendableNote.js';
131
+ export { CommitmentTreeWASM } from './structs/Orchard/CommitmentTree.js';
132
+ export { OrchardProverWASM } from './structs/Orchard/OrchardProver.js';
133
+ export { ShieldedWithdrawalResultWASM } from './structs/Orchard/ShieldedWithdrawalResult.js';
134
+ export { RecoveredNoteWASM, recoverNotes } from './structs/Orchard/RecoveredNote.js';
135
+ export { ShieldedBuilderWASM } from './structs/Orchard/ShieldedBuilder.js';
136
+ export { IdentityCreateFromShieldedPoolResultWASM } from './structs/Orchard/IdentityCreateFromShieldedPoolResult.js';
@@ -3,7 +3,7 @@ import { InputAddressWASM } from './entities/InputAddress.js';
3
3
  import { AddressFundsFeeStrategyStepWASM } from './entities/AddressFundsFeeStrategyStep.js';
4
4
  import { PoolingLike } from '../../types.js';
5
5
  import { CoreScriptWASM } from '../CoreScript.js';
6
- import { AddressWitnessWASM } from '../Address/AddressWitness.js';
6
+ import { AddressWitnessWASM } from '../PlatformAddress/AddressWitness.js';
7
7
  import { OutputAddressWASM } from './entities/OutputAddress.js';
8
8
  import { StateTransitionWASM } from '../StateTransition.js';
9
9
  export declare class AddressCreditWithdrawalTransitionWASM {
@@ -1,7 +1,7 @@
1
1
  import { InputAddressWASM } from './entities/InputAddress.js';
2
2
  import { AddressFundsFeeStrategyStepWASM } from './entities/AddressFundsFeeStrategyStep.js';
3
3
  import { CoreScriptWASM } from '../CoreScript.js';
4
- import { AddressWitnessWASM } from '../Address/AddressWitness.js';
4
+ import { AddressWitnessWASM } from '../PlatformAddress/AddressWitness.js';
5
5
  import { OutputAddressWASM } from './entities/OutputAddress.js';
6
6
  import { dppProvider } from '../../provider.js';
7
7
  import { valueToDynamicValue } from '../../utils.js';
@@ -88,7 +88,7 @@ export class AddressCreditWithdrawalTransitionWASM {
88
88
  return AddressCreditWithdrawalTransitionWASM.createFromRawInstance(dppProvider.dpp.AddressCreditWithdrawalTransitionNAPI.fromStateTransition(st._rawStateTransition));
89
89
  }
90
90
  static createFromRawInstance(rawInstance) {
91
- const instance = Object.create(this.prototype);
91
+ const instance = Object.create(AddressCreditWithdrawalTransitionWASM.prototype);
92
92
  instance._rawAddressCreditWithdrawalTransition = rawInstance;
93
93
  return instance;
94
94
  }
@@ -2,7 +2,7 @@ import type { AddressFundingFromAssetLockTransitionNAPI } from '../../../../bina
2
2
  import { AssetLockProofWASM } from '../AssetLockProof/AssetLockProof.js';
3
3
  import { InputAddressWASM } from './entities/InputAddress.js';
4
4
  import { AddressFundsFeeStrategyStepWASM } from './entities/AddressFundsFeeStrategyStep.js';
5
- import { AddressWitnessWASM } from '../Address/AddressWitness.js';
5
+ import { AddressWitnessWASM } from '../PlatformAddress/AddressWitness.js';
6
6
  import { OutputAddressNullableCreditsWASM } from './entities/OutputAddressNullableCredits.js';
7
7
  import { StateTransitionWASM } from '../StateTransition.js';
8
8
  export declare class AddressFundingFromAssetLockTransitionWASM {
@@ -1,7 +1,7 @@
1
1
  import { AssetLockProofWASM } from '../AssetLockProof/AssetLockProof.js';
2
2
  import { InputAddressWASM } from './entities/InputAddress.js';
3
3
  import { AddressFundsFeeStrategyStepWASM } from './entities/AddressFundsFeeStrategyStep.js';
4
- import { AddressWitnessWASM } from '../Address/AddressWitness.js';
4
+ import { AddressWitnessWASM } from '../PlatformAddress/AddressWitness.js';
5
5
  import { OutputAddressNullableCreditsWASM } from './entities/OutputAddressNullableCredits.js';
6
6
  import { dppProvider } from '../../provider.js';
7
7
  import { StateTransitionWASM } from '../StateTransition.js';
@@ -78,8 +78,8 @@ export class AddressFundingFromAssetLockTransitionWASM {
78
78
  return AddressFundingFromAssetLockTransitionWASM.createFromRawInstance(dppProvider.dpp.AddressFundingFromAssetLockTransitionNAPI.fromStateTransition(stateTransition._rawStateTransition));
79
79
  }
80
80
  static createFromRawInstance(rawInstance) {
81
- const instance = Object.create(this.prototype);
82
- instance._rawAddressFundingFromAssetLockTransitionNAPI = rawInstance;
81
+ const instance = Object.create(AddressFundingFromAssetLockTransitionWASM.prototype);
82
+ instance._rawAddressFundingFromAssetLockTransition = rawInstance;
83
83
  return instance;
84
84
  }
85
85
  }
@@ -1,7 +1,7 @@
1
1
  import type { AddressFundsTransferTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { InputAddressWASM } from './entities/InputAddress.js';
3
3
  import { AddressFundsFeeStrategyStepWASM } from './entities/AddressFundsFeeStrategyStep.js';
4
- import { AddressWitnessWASM } from '../Address/AddressWitness.js';
4
+ import { AddressWitnessWASM } from '../PlatformAddress/AddressWitness.js';
5
5
  import { OutputAddressWASM } from './entities/OutputAddress.js';
6
6
  import { StateTransitionWASM } from '../StateTransition.js';
7
7
  export declare class AddressFundsTransferTransitionWASM {
@@ -1,6 +1,6 @@
1
1
  import { InputAddressWASM } from './entities/InputAddress.js';
2
2
  import { AddressFundsFeeStrategyStepWASM } from './entities/AddressFundsFeeStrategyStep.js';
3
- import { AddressWitnessWASM } from '../Address/AddressWitness.js';
3
+ import { AddressWitnessWASM } from '../PlatformAddress/AddressWitness.js';
4
4
  import { OutputAddressWASM } from './entities/OutputAddress.js';
5
5
  import { dppProvider } from '../../provider.js';
6
6
  import { StateTransitionWASM } from '../StateTransition.js';
@@ -65,8 +65,8 @@ export class AddressFundsTransferTransitionWASM {
65
65
  return AddressFundsTransferTransitionWASM.createFromRawInstance(dppProvider.dpp.AddressFundsTransferTransitionNAPI.fromStateTransition(stateTransition._rawStateTransition));
66
66
  }
67
67
  static createFromRawInstance(rawInstance) {
68
- const instance = Object.create(this.prototype);
69
- instance._rawAddressFundingFromAssetLockTransitionNAPI = rawInstance;
68
+ const instance = Object.create(AddressFundsTransferTransitionWASM.prototype);
69
+ instance._rawAddressFundsTransferTransition = rawInstance;
70
70
  return instance;
71
71
  }
72
72
  }
@@ -2,7 +2,7 @@ import type { IdentityCreateFromAddressesTransitionNAPI } from '../../../../bina
2
2
  import { IdentityPublicKeyInCreationWASM } from '../IdentityPublicKeyInCreation.js';
3
3
  import { InputAddressWASM } from './entities/InputAddress.js';
4
4
  import { AddressFundsFeeStrategyStepWASM } from './entities/AddressFundsFeeStrategyStep.js';
5
- import { AddressWitnessWASM } from '../Address/AddressWitness.js';
5
+ import { AddressWitnessWASM } from '../PlatformAddress/AddressWitness.js';
6
6
  import { OutputAddressWASM } from './entities/OutputAddress.js';
7
7
  import { StateTransitionWASM } from '../StateTransition.js';
8
8
  export declare class IdentityCreateFromAddressesTransitionWASM {
@@ -1,7 +1,7 @@
1
1
  import { IdentityPublicKeyInCreationWASM } from '../IdentityPublicKeyInCreation.js';
2
2
  import { InputAddressWASM } from './entities/InputAddress.js';
3
3
  import { AddressFundsFeeStrategyStepWASM } from './entities/AddressFundsFeeStrategyStep.js';
4
- import { AddressWitnessWASM } from '../Address/AddressWitness.js';
4
+ import { AddressWitnessWASM } from '../PlatformAddress/AddressWitness.js';
5
5
  import { OutputAddressWASM } from './entities/OutputAddress.js';
6
6
  import { dppProvider } from '../../provider.js';
7
7
  import { StateTransitionWASM } from '../StateTransition.js';
@@ -75,7 +75,7 @@ export class IdentityCreateFromAddressesTransitionWASM {
75
75
  return IdentityCreateFromAddressesTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityCreateFromAddressesTransitionNAPI.fromStateTransition(stateTransition._rawStateTransition));
76
76
  }
77
77
  static createFromRawInstance(rawInstance) {
78
- const instance = Object.create(this.prototype);
78
+ const instance = Object.create(IdentityCreateFromAddressesTransitionWASM.prototype);
79
79
  instance._rawIdentityCreateFromAddressesTransition = rawInstance;
80
80
  return instance;
81
81
  }
@@ -70,7 +70,7 @@ export class IdentityCreditTransferToAddressesTransitionWASM {
70
70
  return IdentityCreditTransferToAddressesTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityCreditTransferToAddressesTransitionNAPI.fromStateTransition(stateTransition._rawStateTransition));
71
71
  }
72
72
  static createFromRawInstance(rawInstance) {
73
- const instance = Object.create(this.prototype);
73
+ const instance = Object.create(IdentityCreditTransferToAddressesTransitionWASM.prototype);
74
74
  instance._rawIdentityCreditTransferToAddressesTransition = rawInstance;
75
75
  return instance;
76
76
  }
@@ -2,7 +2,7 @@ import type { IdentityTopUpFromAddressesTransitionNAPI } from '../../../../binar
2
2
  import { IdentifierLike } from '../../types.js';
3
3
  import { InputAddressWASM } from './entities/InputAddress.js';
4
4
  import { AddressFundsFeeStrategyStepWASM } from './entities/AddressFundsFeeStrategyStep.js';
5
- import { AddressWitnessWASM } from '../Address/AddressWitness.js';
5
+ import { AddressWitnessWASM } from '../PlatformAddress/AddressWitness.js';
6
6
  import { OutputAddressWASM } from './entities/OutputAddress.js';
7
7
  import { StateTransitionWASM } from '../StateTransition.js';
8
8
  export declare class IdentityTopUpFromAddressesTransitionWASM {
@@ -1,7 +1,7 @@
1
1
  import { dppProvider } from '../../provider.js';
2
2
  import { InputAddressWASM } from './entities/InputAddress.js';
3
3
  import { AddressFundsFeeStrategyStepWASM } from './entities/AddressFundsFeeStrategyStep.js';
4
- import { AddressWitnessWASM } from '../Address/AddressWitness.js';
4
+ import { AddressWitnessWASM } from '../PlatformAddress/AddressWitness.js';
5
5
  import { OutputAddressWASM } from './entities/OutputAddress.js';
6
6
  import { prepareIdentifierValue } from '../../utils.js';
7
7
  import { StateTransitionWASM } from '../StateTransition.js';
@@ -69,7 +69,7 @@ export class IdentityTopUpFromAddressesTransitionWASM {
69
69
  return IdentityTopUpFromAddressesTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityTopUpFromAddressesTransitionNAPI.fromStateTransition(stateTransition._rawStateTransition));
70
70
  }
71
71
  static createFromRawInstance(rawInstance) {
72
- const instance = Object.create(this.prototype);
72
+ const instance = Object.create(IdentityTopUpFromAddressesTransitionWASM.prototype);
73
73
  instance._rawIdentityTopUpFromAddressesTransition = rawInstance;
74
74
  return instance;
75
75
  }
@@ -1,11 +1,12 @@
1
1
  import type { InputAddressNAPI } from '../../../../../binaries/bindingsTypes.js';
2
- import { PlatformAddressWASM } from '../../Address/PlatformAddress.js';
2
+ import { PlatformAddressWASM } from '../../PlatformAddress/PlatformAddress.js';
3
+ import { PlatformAddressLike } from '../../../types.js';
3
4
  export declare class InputAddressWASM {
4
5
  /** @private **/
5
6
  _rawInputAddress: InputAddressNAPI;
6
- constructor(address: PlatformAddressWASM, nonce: number, credits: bigint);
7
+ constructor(address: PlatformAddressLike, nonce: number, credits: bigint);
7
8
  get address(): PlatformAddressWASM;
8
- set address(value: PlatformAddressWASM);
9
+ set address(value: PlatformAddressLike);
9
10
  get nonce(): number;
10
11
  set nonce(value: number);
11
12
  get credits(): bigint;
@@ -1,16 +1,17 @@
1
- import { PlatformAddressWASM } from '../../Address/PlatformAddress.js';
1
+ import { PlatformAddressWASM } from '../../PlatformAddress/PlatformAddress.js';
2
2
  import { dppProvider } from '../../../provider.js';
3
+ import { preparePlatformAddressValue } from '../../../utils.js';
3
4
  export class InputAddressWASM {
4
5
  /** @private **/
5
6
  _rawInputAddress;
6
7
  constructor(address, nonce, credits) {
7
- this._rawInputAddress = new dppProvider.dpp.InputAddressNAPI(address._rawPlatformAddress, nonce, credits.toString());
8
+ this._rawInputAddress = new dppProvider.dpp.InputAddressNAPI(preparePlatformAddressValue(address), nonce, credits.toString());
8
9
  }
9
10
  get address() {
10
11
  return PlatformAddressWASM.createFromRawInstance(this._rawInputAddress.address);
11
12
  }
12
13
  set address(value) {
13
- this._rawInputAddress.address = value._rawPlatformAddress;
14
+ this._rawInputAddress.address = preparePlatformAddressValue(value);
14
15
  }
15
16
  get nonce() {
16
17
  return this._rawInputAddress.nonce;
@@ -25,7 +26,7 @@ export class InputAddressWASM {
25
26
  this._rawInputAddress.credits = value.toString();
26
27
  }
27
28
  static createFromRawInstance(rawInstance) {
28
- const instance = Object.create(this.prototype);
29
+ const instance = Object.create(InputAddressWASM.prototype);
29
30
  instance._rawInputAddress = rawInstance;
30
31
  return instance;
31
32
  }
@@ -1,11 +1,12 @@
1
1
  import type { OutputAddressNAPI } from '../../../../../binaries/bindingsTypes.js';
2
- import { PlatformAddressWASM } from '../../Address/PlatformAddress.js';
2
+ import { PlatformAddressWASM } from '../../PlatformAddress/PlatformAddress.js';
3
+ import { PlatformAddressLike } from '../../../types.js';
3
4
  export declare class OutputAddressWASM {
4
5
  /** @private **/
5
6
  _rawOutputAddress: OutputAddressNAPI;
6
- constructor(address: PlatformAddressWASM, credits: bigint);
7
+ constructor(address: PlatformAddressLike, credits: bigint);
7
8
  get address(): PlatformAddressWASM;
8
- set address(address: PlatformAddressWASM);
9
+ set address(address: PlatformAddressLike);
9
10
  get credits(): bigint;
10
11
  set credits(credits: bigint);
11
12
  static createFromRawInstance(rawInstance: OutputAddressNAPI): OutputAddressWASM;
@@ -1,16 +1,17 @@
1
1
  import { dppProvider } from '../../../provider.js';
2
- import { PlatformAddressWASM } from '../../Address/PlatformAddress.js';
2
+ import { PlatformAddressWASM } from '../../PlatformAddress/PlatformAddress.js';
3
+ import { preparePlatformAddressValue } from '../../../utils.js';
3
4
  export class OutputAddressWASM {
4
5
  /** @private **/
5
6
  _rawOutputAddress;
6
7
  constructor(address, credits) {
7
- this._rawOutputAddress = new dppProvider.dpp.OutputAddressNAPI(address._rawPlatformAddress, credits.toString());
8
+ this._rawOutputAddress = new dppProvider.dpp.OutputAddressNAPI(preparePlatformAddressValue(address), credits.toString());
8
9
  }
9
10
  get address() {
10
11
  return PlatformAddressWASM.createFromRawInstance(this._rawOutputAddress.address);
11
12
  }
12
13
  set address(address) {
13
- this._rawOutputAddress.address = address._rawPlatformAddress;
14
+ this._rawOutputAddress.address = preparePlatformAddressValue(address);
14
15
  }
15
16
  get credits() {
16
17
  return BigInt(this._rawOutputAddress.credits);
@@ -19,7 +20,7 @@ export class OutputAddressWASM {
19
20
  this._rawOutputAddress.credits = credits.toString();
20
21
  }
21
22
  static createFromRawInstance(rawInstance) {
22
- const instance = Object.create(this.prototype);
23
+ const instance = Object.create(OutputAddressWASM.prototype);
23
24
  instance._rawOutputAddress = rawInstance;
24
25
  return instance;
25
26
  }
@@ -1,11 +1,12 @@
1
1
  import type { OutputAddressNullableCreditsNAPI } from '../../../../../binaries/bindingsTypes.js';
2
- import { PlatformAddressWASM } from '../../Address/PlatformAddress.js';
2
+ import { PlatformAddressWASM } from '../../PlatformAddress/PlatformAddress.js';
3
+ import { PlatformAddressLike } from '../../../types.js';
3
4
  export declare class OutputAddressNullableCreditsWASM {
4
5
  /** @private **/
5
6
  _rawOutputAddressNullableCredits: OutputAddressNullableCreditsNAPI;
6
- constructor(address: PlatformAddressWASM, credits?: bigint);
7
+ constructor(address: PlatformAddressLike, credits?: bigint);
7
8
  get address(): PlatformAddressWASM;
8
- set address(address: PlatformAddressWASM);
9
+ set address(address: PlatformAddressLike);
9
10
  get credits(): BigInt | undefined;
10
11
  set credits(value: BigInt | undefined);
11
12
  static createFromRawInstance(rawInstance: OutputAddressNullableCreditsNAPI): OutputAddressNullableCreditsWASM;