pshenmic-dpp 1.1.2-dev.7 → 2.0.0-dev.1

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 (324) hide show
  1. package/README.md +14 -99
  2. package/dist/binaries/bindingsTypes.d.ts +1696 -0
  3. package/dist/binaries/bindingsTypes.js +98 -0
  4. package/dist/binaries/pshenmic_dpp.android.node/react-native-node-api-module +0 -0
  5. package/dist/binaries/pshenmic_dpp.android.node/x86_64/libpshenmic_dpp.so +0 -0
  6. package/dist/binaries/pshenmic_dpp.d.ts +166 -0
  7. package/dist/binaries/pshenmic_dpp.js +3 -0
  8. package/dist/binaries/wasm/wasmBytes.d.ts +2 -0
  9. package/dist/binaries/wasm/wasmBytes.js +2 -0
  10. package/dist/binaries/wasm.d.ts +166 -0
  11. package/dist/binaries/wasm.js +44 -0
  12. package/dist/src/dpp/constants.d.ts +4 -0
  13. package/dist/src/dpp/constants.js +19 -0
  14. package/dist/src/dpp/dpp.d.ts +110 -0
  15. package/dist/src/dpp/dpp.js +110 -0
  16. package/dist/src/dpp/enums.d.ts +1 -0
  17. package/dist/src/dpp/enums.js +1 -0
  18. package/dist/src/dpp/provider.d.ts +11 -0
  19. package/dist/src/dpp/provider.js +21 -0
  20. package/dist/src/dpp/structs/Address/AddressWitness.d.ts +12 -0
  21. package/dist/src/dpp/structs/Address/AddressWitness.js +23 -0
  22. package/dist/src/dpp/structs/Address/PlatformAddress.d.ts +14 -0
  23. package/dist/src/dpp/structs/Address/PlatformAddress.js +32 -0
  24. package/dist/src/dpp/structs/AddressTransitions/AddressCreditWithdrawalTransition.d.ts +38 -0
  25. package/dist/src/dpp/structs/AddressTransitions/AddressCreditWithdrawalTransition.js +95 -0
  26. package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.d.ts +35 -0
  27. package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.js +85 -0
  28. package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.d.ts +30 -0
  29. package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.js +72 -0
  30. package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.d.ts +33 -0
  31. package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.js +82 -0
  32. package/dist/src/dpp/structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.d.ts +31 -0
  33. package/dist/src/dpp/structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.js +77 -0
  34. package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.d.ts +31 -0
  35. package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.js +76 -0
  36. package/dist/src/dpp/structs/AddressTransitions/entities/AddressFundsFeeStrategyStep.d.ts +12 -0
  37. package/dist/src/dpp/structs/AddressTransitions/entities/AddressFundsFeeStrategyStep.js +26 -0
  38. package/dist/src/dpp/structs/AddressTransitions/entities/InputAddress.d.ts +14 -0
  39. package/dist/src/dpp/structs/AddressTransitions/entities/InputAddress.js +32 -0
  40. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddress.d.ts +12 -0
  41. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddress.js +26 -0
  42. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddressNullableCredits.d.ts +12 -0
  43. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddressNullableCredits.js +29 -0
  44. package/dist/src/dpp/structs/AssetLockProof/AssetLockProof.d.ts +19 -0
  45. package/dist/src/dpp/structs/AssetLockProof/AssetLockProof.js +51 -0
  46. package/dist/src/dpp/structs/AssetLockProof/ChainAssetLockProof.d.ts +17 -0
  47. package/dist/src/dpp/structs/AssetLockProof/ChainAssetLockProof.js +36 -0
  48. package/dist/src/dpp/structs/AssetLockProof/InstantAssetLockProof.d.ts +24 -0
  49. package/dist/src/dpp/structs/AssetLockProof/InstantAssetLockProof.js +48 -0
  50. package/dist/src/dpp/structs/AssetLockProof/OutPoint.d.ts +15 -0
  51. package/dist/src/dpp/structs/AssetLockProof/OutPoint.js +40 -0
  52. package/dist/src/dpp/structs/AssetLockProof/Transaction.d.ts +20 -0
  53. package/dist/src/dpp/structs/AssetLockProof/Transaction.js +49 -0
  54. package/dist/src/dpp/structs/AssetLockProof/TxIn.d.ts +17 -0
  55. package/dist/src/dpp/structs/AssetLockProof/TxIn.js +39 -0
  56. package/dist/src/dpp/structs/AssetLockProof/TxOut.d.ts +13 -0
  57. package/dist/src/dpp/structs/AssetLockProof/TxOut.js +34 -0
  58. package/dist/src/dpp/structs/AssetLockProof/Witness.d.ts +11 -0
  59. package/dist/src/dpp/structs/AssetLockProof/Witness.js +25 -0
  60. package/dist/src/dpp/structs/Batch/BatchTransition.d.ts +34 -0
  61. package/dist/src/dpp/structs/Batch/BatchTransition.js +95 -0
  62. package/dist/src/dpp/structs/Batch/BatchedTransition.d.ts +13 -0
  63. package/dist/src/dpp/structs/Batch/BatchedTransition.js +39 -0
  64. package/dist/src/dpp/structs/Batch/DocumentBaseTransition.d.ts +20 -0
  65. package/dist/src/dpp/structs/Batch/DocumentBaseTransition.js +54 -0
  66. package/dist/src/dpp/structs/Batch/DocumentTransition.d.ts +32 -0
  67. package/dist/src/dpp/structs/Batch/DocumentTransition.js +74 -0
  68. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentCreateTransition.d.ts +23 -0
  69. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentCreateTransition.js +58 -0
  70. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentDeleteTransition.d.ts +14 -0
  71. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentDeleteTransition.js +26 -0
  72. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentPurchaseTransition.d.ts +19 -0
  73. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentPurchaseTransition.js +39 -0
  74. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentReplaceTransition.d.ts +19 -0
  75. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentReplaceTransition.js +40 -0
  76. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentTransferTransition.d.ts +19 -0
  77. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentTransferTransition.js +35 -0
  78. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentUpdatePriceTransition.d.ts +17 -0
  79. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentUpdatePriceTransition.js +33 -0
  80. package/dist/src/dpp/structs/Batch/PrefundedVotingBalance.d.ts +9 -0
  81. package/dist/src/dpp/structs/Batch/PrefundedVotingBalance.js +19 -0
  82. package/dist/src/dpp/structs/Batch/TokenBaseTransition.d.ts +20 -0
  83. package/dist/src/dpp/structs/Batch/TokenBaseTransition.js +49 -0
  84. package/dist/src/dpp/structs/Batch/TokenPaymentInfo.d.ts +19 -0
  85. package/dist/src/dpp/structs/Batch/TokenPaymentInfo.js +54 -0
  86. package/dist/src/dpp/structs/Batch/TokenPricingSchedule.d.ts +17 -0
  87. package/dist/src/dpp/structs/Batch/TokenPricingSchedule.js +41 -0
  88. package/dist/src/dpp/structs/Batch/TokenTransition.d.ts +20 -0
  89. package/dist/src/dpp/structs/Batch/TokenTransition.js +92 -0
  90. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenBurnTransition.d.ts +14 -0
  91. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenBurnTransition.js +32 -0
  92. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenClaimTransition.d.ts +15 -0
  93. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenClaimTransition.js +33 -0
  94. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenConfigUpdateTransition.d.ts +15 -0
  95. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenConfigUpdateTransition.js +33 -0
  96. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDestroyFrozenFundsTransition.d.ts +16 -0
  97. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDestroyFrozenFundsTransition.js +34 -0
  98. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDirectPurchaseTransition.d.ts +14 -0
  99. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDirectPurchaseTransition.js +32 -0
  100. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenEmergencyActionTransition.d.ts +15 -0
  101. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenEmergencyActionTransition.js +33 -0
  102. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenFreezeTransition.d.ts +16 -0
  103. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenFreezeTransition.js +34 -0
  104. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenMintTransition.d.ts +18 -0
  105. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenMintTransition.js +43 -0
  106. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenSetPriceForDirectPurchaseTransition.d.ts +15 -0
  107. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenSetPriceForDirectPurchaseTransition.js +36 -0
  108. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenTransferTransition.d.ts +21 -0
  109. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenTransferTransition.js +53 -0
  110. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenUnFreezeTransition.d.ts +16 -0
  111. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenUnFreezeTransition.js +34 -0
  112. package/dist/src/dpp/structs/ConsensusError.d.ts +8 -0
  113. package/dist/src/dpp/structs/ConsensusError.js +22 -0
  114. package/dist/src/dpp/structs/ContractBounds.d.ts +17 -0
  115. package/dist/src/dpp/structs/ContractBounds.js +39 -0
  116. package/dist/src/dpp/structs/CoreScript.d.ts +15 -0
  117. package/dist/src/dpp/structs/CoreScript.js +37 -0
  118. package/dist/src/dpp/structs/DataContract.d.ts +35 -0
  119. package/dist/src/dpp/structs/DataContract.js +116 -0
  120. package/dist/src/dpp/structs/DataContractTransitions/DataContractCreateTransition.d.ts +23 -0
  121. package/dist/src/dpp/structs/DataContractTransitions/DataContractCreateTransition.js +55 -0
  122. package/dist/src/dpp/structs/DataContractTransitions/DataContractUpdateTransition.d.ts +23 -0
  123. package/dist/src/dpp/structs/DataContractTransitions/DataContractUpdateTransition.js +55 -0
  124. package/dist/src/dpp/structs/Document.d.ts +51 -0
  125. package/dist/src/dpp/structs/Document.js +184 -0
  126. package/dist/src/dpp/structs/EncryptedNote/PrivateEncryptedNote.d.ts +13 -0
  127. package/dist/src/dpp/structs/EncryptedNote/PrivateEncryptedNote.js +31 -0
  128. package/dist/src/dpp/structs/EncryptedNote/SharedEncryptedNote.d.ts +13 -0
  129. package/dist/src/dpp/structs/EncryptedNote/SharedEncryptedNote.js +31 -0
  130. package/dist/src/dpp/structs/GroupStateTransitionInfo.d.ts +15 -0
  131. package/dist/src/dpp/structs/GroupStateTransitionInfo.js +33 -0
  132. package/dist/src/dpp/structs/Identifier.d.ts +17 -0
  133. package/dist/src/dpp/structs/Identifier.js +50 -0
  134. package/dist/src/dpp/structs/Identity.d.ts +26 -0
  135. package/dist/src/dpp/structs/Identity.js +73 -0
  136. package/dist/src/dpp/structs/IdentityPublicKey.d.ts +43 -0
  137. package/dist/src/dpp/structs/IdentityPublicKey.js +126 -0
  138. package/dist/src/dpp/structs/IdentityPublicKeyInCreation.d.ts +30 -0
  139. package/dist/src/dpp/structs/IdentityPublicKeyInCreation.js +77 -0
  140. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreateTransition.d.ts +29 -0
  141. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreateTransition.js +69 -0
  142. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditTransfer.d.ts +33 -0
  143. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditTransfer.js +85 -0
  144. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditWithdrawalTransition.d.ts +42 -0
  145. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditWithdrawalTransition.js +114 -0
  146. package/dist/src/dpp/structs/IdentityTransitions/IdentityTopUpTransition.d.ts +30 -0
  147. package/dist/src/dpp/structs/IdentityTransitions/IdentityTopUpTransition.js +75 -0
  148. package/dist/src/dpp/structs/IdentityTransitions/IdentityUpdateTransition.d.ts +40 -0
  149. package/dist/src/dpp/structs/IdentityTransitions/IdentityUpdateTransition.js +108 -0
  150. package/dist/src/dpp/structs/InstantLock.d.ts +17 -0
  151. package/dist/src/dpp/structs/InstantLock.js +43 -0
  152. package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.d.ts +37 -0
  153. package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.js +96 -0
  154. package/dist/src/dpp/structs/MasternodeVote/ResourceVoteChoice.d.ts +14 -0
  155. package/dist/src/dpp/structs/MasternodeVote/ResourceVoteChoice.js +29 -0
  156. package/dist/src/dpp/structs/MasternodeVote/Vote.d.ts +13 -0
  157. package/dist/src/dpp/structs/MasternodeVote/Vote.js +27 -0
  158. package/dist/src/dpp/structs/MasternodeVote/VotePoll.d.ts +18 -0
  159. package/dist/src/dpp/structs/MasternodeVote/VotePoll.js +42 -0
  160. package/dist/src/dpp/structs/PartialIdentity.d.ts +26 -0
  161. package/dist/src/dpp/structs/PartialIdentity.js +69 -0
  162. package/dist/src/dpp/structs/PrivateKey.d.ts +20 -0
  163. package/dist/src/dpp/structs/PrivateKey.js +48 -0
  164. package/dist/src/dpp/structs/PublicKey.d.ts +15 -0
  165. package/dist/src/dpp/structs/PublicKey.js +37 -0
  166. package/dist/src/dpp/structs/StateTransition.d.ts +38 -0
  167. package/dist/src/dpp/structs/StateTransition.js +100 -0
  168. package/dist/src/dpp/structs/TokenConfiguration/ActionTaker.d.ts +12 -0
  169. package/dist/src/dpp/structs/TokenConfiguration/ActionTaker.js +44 -0
  170. package/dist/src/dpp/structs/TokenConfiguration/AuthorizedActionTakers.d.ts +16 -0
  171. package/dist/src/dpp/structs/TokenConfiguration/AuthorizedActionTakers.js +43 -0
  172. package/dist/src/dpp/structs/TokenConfiguration/ChangeControlRules.d.ts +23 -0
  173. package/dist/src/dpp/structs/TokenConfiguration/ChangeControlRules.js +52 -0
  174. package/dist/src/dpp/structs/TokenConfiguration/DistributionFunction.d.ts +19 -0
  175. package/dist/src/dpp/structs/TokenConfiguration/DistributionFunction.js +57 -0
  176. package/dist/src/dpp/structs/TokenConfiguration/Group.d.ts +19 -0
  177. package/dist/src/dpp/structs/TokenConfiguration/Group.js +44 -0
  178. package/dist/src/dpp/structs/TokenConfiguration/RewardDistributionType.d.ts +13 -0
  179. package/dist/src/dpp/structs/TokenConfiguration/RewardDistributionType.js +40 -0
  180. package/dist/src/dpp/structs/TokenConfiguration/TokenConfiguration.d.ts +54 -0
  181. package/dist/src/dpp/structs/TokenConfiguration/TokenConfiguration.js +139 -0
  182. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationChangeItem.d.ts +47 -0
  183. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationChangeItem.js +140 -0
  184. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationConvention.d.ts +19 -0
  185. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationConvention.js +47 -0
  186. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationLocalization.d.ts +15 -0
  187. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationLocalization.js +34 -0
  188. package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRecipient.d.ts +14 -0
  189. package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRecipient.js +31 -0
  190. package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRules.d.ts +28 -0
  191. package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRules.js +75 -0
  192. package/dist/src/dpp/structs/TokenConfiguration/TokenKeepsHistoryRules.d.ts +19 -0
  193. package/dist/src/dpp/structs/TokenConfiguration/TokenKeepsHistoryRules.js +49 -0
  194. package/dist/src/dpp/structs/TokenConfiguration/TokenMarketplaceRules.d.ts +13 -0
  195. package/dist/src/dpp/structs/TokenConfiguration/TokenMarketplaceRules.js +27 -0
  196. package/dist/src/dpp/structs/TokenConfiguration/TokenPerpetualDistribution.d.ts +13 -0
  197. package/dist/src/dpp/structs/TokenConfiguration/TokenPerpetualDistribution.js +27 -0
  198. package/dist/src/dpp/structs/TokenConfiguration/TokenPreProgrammedDistribution.d.ts +21 -0
  199. package/dist/src/dpp/structs/TokenConfiguration/TokenPreProgrammedDistribution.js +42 -0
  200. package/dist/src/dpp/structs/TokenConfiguration/TokenTradeMode.d.ts +9 -0
  201. package/dist/src/dpp/structs/TokenConfiguration/TokenTradeMode.js +17 -0
  202. package/dist/src/dpp/types.d.ts +274 -0
  203. package/dist/src/dpp/types.js +1 -0
  204. package/dist/src/dpp/utils.d.ts +5 -0
  205. package/dist/src/dpp/utils.js +64 -0
  206. package/dist/src/dpp/verify/Contested/verifyVotePollVoteStateProof.d.ts +3 -0
  207. package/dist/src/dpp/verify/Contested/verifyVotePollVoteStateProof.js +34 -0
  208. package/dist/src/dpp/verify/Contract/verifyContract.d.ts +2 -0
  209. package/dist/src/dpp/verify/Contract/verifyContract.js +14 -0
  210. package/dist/src/dpp/verify/Document/verifyDocumentsProof.d.ts +3 -0
  211. package/dist/src/dpp/verify/Document/verifyDocumentsProof.js +10 -0
  212. package/dist/src/dpp/verify/Identity/verifyIdentifierByNonUniquePublicKeyHashProof.d.ts +2 -0
  213. package/dist/src/dpp/verify/Identity/verifyIdentifierByNonUniquePublicKeyHashProof.js +10 -0
  214. package/dist/src/dpp/verify/Identity/verifyIdentityBalanceProof.d.ts +2 -0
  215. package/dist/src/dpp/verify/Identity/verifyIdentityBalanceProof.js +9 -0
  216. package/dist/src/dpp/verify/Identity/verifyIdentityByIdentifierProof.d.ts +2 -0
  217. package/dist/src/dpp/verify/Identity/verifyIdentityByIdentifierProof.js +10 -0
  218. package/dist/src/dpp/verify/Identity/verifyIdentityByUniqueKeyHashProof.d.ts +2 -0
  219. package/dist/src/dpp/verify/Identity/verifyIdentityByUniqueKeyHashProof.js +10 -0
  220. package/dist/src/dpp/verify/Identity/verifyIdentityContractNonceProof.d.ts +2 -0
  221. package/dist/src/dpp/verify/Identity/verifyIdentityContractNonceProof.js +9 -0
  222. package/dist/src/dpp/verify/Identity/verifyIdentityKeysByIdentifierProof.d.ts +2 -0
  223. package/dist/src/dpp/verify/Identity/verifyIdentityKeysByIdentifierProof.js +10 -0
  224. package/dist/src/dpp/verify/Identity/verifyIdentityNonceProof.d.ts +2 -0
  225. package/dist/src/dpp/verify/Identity/verifyIdentityNonceProof.js +9 -0
  226. package/dist/src/dpp/verify/StateTransition/utils.d.ts +2 -0
  227. package/dist/src/dpp/verify/StateTransition/utils.js +115 -0
  228. package/dist/src/dpp/verify/StateTransition/verifyStateTransitionResult.d.ts +4 -0
  229. package/dist/src/dpp/verify/StateTransition/verifyStateTransitionResult.js +10 -0
  230. package/dist/src/dpp/verify/System/verifyEpochsInfoProof.d.ts +2 -0
  231. package/dist/src/dpp/verify/System/verifyEpochsInfoProof.js +16 -0
  232. package/dist/src/dpp/verify/System/verifyTotalCreditsProof.d.ts +2 -0
  233. package/dist/src/dpp/verify/System/verifyTotalCreditsProof.js +9 -0
  234. package/dist/src/dpp/verify/Tokens/verifyTokenBalancesForIdentitiesProof.d.ts +2 -0
  235. package/dist/src/dpp/verify/Tokens/verifyTokenBalancesForIdentitiesProof.js +13 -0
  236. package/dist/src/dpp/verify/Tokens/verifyTokenContractInfoProof.d.ts +2 -0
  237. package/dist/src/dpp/verify/Tokens/verifyTokenContractInfoProof.js +15 -0
  238. package/dist/src/dpp/verify/Tokens/verifyTokenDirectPurchasePrices.d.ts +2 -0
  239. package/dist/src/dpp/verify/Tokens/verifyTokenDirectPurchasePrices.js +14 -0
  240. package/dist/src/dpp/verify/Tokens/verifyTokenTotalSupplyProof.d.ts +2 -0
  241. package/dist/src/dpp/verify/Tokens/verifyTokenTotalSupplyProof.js +12 -0
  242. package/dist/src/dpp/verify/Tokens/verifyTokensBalancesForIdentityProof.d.ts +2 -0
  243. package/dist/src/dpp/verify/Tokens/verifyTokensBalancesForIdentityProof.js +13 -0
  244. package/dist/src/dpp/verify/verifySignatureDigest.d.ts +1 -0
  245. package/dist/src/dpp/verify/verifySignatureDigest.js +4 -0
  246. package/dist/src/react-native.d.ts +3 -0
  247. package/dist/src/react-native.js +6 -0
  248. package/dist/src/wasm.d.ts +3 -0
  249. package/dist/src/wasm.js +6 -0
  250. package/dist/utils/base122.d.ts +7 -0
  251. package/dist/utils/base122.js +63 -0
  252. package/package.json +30 -27
  253. package/tests/unit/DynamicValue.spec.ts +86 -0
  254. package/tests/unit/Identifier.spec.ts +105 -0
  255. package/tests/unit/Identity.spec.ts +119 -0
  256. package/tests/unit/IdentityPublicKey.spec.ts +126 -0
  257. package/dist/wasm/base122.d.ts +0 -1
  258. package/dist/wasm/base122.js +0 -67
  259. package/dist/wasm/index.d.ts +0 -128
  260. package/dist/wasm/index.js +0 -13
  261. package/dist/wasm/initAsync.d.ts +0 -4
  262. package/dist/wasm/initAsync.js +0 -20
  263. package/dist/wasm/initInterface.d.ts +0 -3
  264. package/dist/wasm/initInterface.js +0 -46
  265. package/dist/wasm/initWASM.d.ts +0 -1
  266. package/dist/wasm/initWASM.js +0 -28
  267. package/dist/wasm/pshenmic_dpp.d.ts +0 -4789
  268. package/dist/wasm/pshenmic_dpp.js +0 -23182
  269. package/dist/wasm/pshenmic_dpp_bg.d.ts +0 -3
  270. package/dist/wasm/pshenmic_dpp_bg.js +0 -2
  271. package/dist/wasm/pshenmic_dpp_bg.wasm.d.ts +0 -1477
  272. package/dist/wasm/pshenmic_dpp_zipped.d.ts +0 -3
  273. package/dist/wasm/pshenmic_dpp_zipped.js +0 -2
  274. package/dist/wasm/snippets/pshenmic_dpp_utils-23ab7381b198778d/stringify.js +0 -7
  275. package/tests/AssetLockProof.spec.cjs +0 -96
  276. package/tests/AsyncImportTest.spec.cjs +0 -930
  277. package/tests/AuthorizedActionTakers.spec.cjs +0 -75
  278. package/tests/BatchTransition.spec.cjs +0 -141
  279. package/tests/ChainLockProof.spec.cjs +0 -63
  280. package/tests/ChangeControlRules.spec.cjs +0 -184
  281. package/tests/CoreScript.spec.cjs +0 -37
  282. package/tests/DataContract.spec.cjs +0 -170
  283. package/tests/DataContractCreateStateTransition.spec.cjs +0 -102
  284. package/tests/DataContractUpdateStateTransition.spec.cjs +0 -103
  285. package/tests/DistributionFunction.spec.cjs +0 -416
  286. package/tests/Document.spec.cjs +0 -227
  287. package/tests/DocumentTransition.spec.cjs +0 -94
  288. package/tests/DocumentsTransitions.spec.cjs +0 -699
  289. package/tests/Identifier.spec.cjs +0 -82
  290. package/tests/Identity.spec.cjs +0 -107
  291. package/tests/IdentityCreateTransition.spec.cjs +0 -87
  292. package/tests/IdentityCreditTransferTransition.spec.cjs +0 -140
  293. package/tests/IdentityCreditWithdrawalTransition.spec.cjs +0 -186
  294. package/tests/IdentityPublicKey.spec.cjs +0 -166
  295. package/tests/IdentityTopUpTransition.spec.cjs +0 -125
  296. package/tests/IdentityUpdateTransition.spec.cjs +0 -141
  297. package/tests/InstantLockProof.spec.cjs +0 -91
  298. package/tests/OutPoint.spec.cjs +0 -49
  299. package/tests/PrivateKey.spec.cjs +0 -67
  300. package/tests/PublicKeyInCreation.spec.cjs +0 -252
  301. package/tests/RewardDistributionType.spec.cjs +0 -90
  302. package/tests/TokenBaseTransition.spec.cjs +0 -96
  303. package/tests/TokenConfiguration.spec.cjs +0 -188
  304. package/tests/TokenConfigurationConvention.spec.cjs +0 -93
  305. package/tests/TokenConfigurationLocalization.spec.cjs +0 -59
  306. package/tests/TokenDistributionRecipient.spec.cjs +0 -49
  307. package/tests/TokenDistributionRules.spec.cjs +0 -313
  308. package/tests/TokenKeepsHistoryRules.spec.cjs +0 -67
  309. package/tests/TokenPerpetualDistribution.spec.cjs +0 -130
  310. package/tests/TokenPreProgrammedDistribution.spec.cjs +0 -61
  311. package/tests/TokensTransitions.spec.cjs +0 -509
  312. package/tests/TxOut.spec.cjs +0 -70
  313. package/tests/mocks/DataContract/DataContract.json +0 -164
  314. package/tests/mocks/DataContract/index.js +0 -6
  315. package/tests/mocks/Document/DataContract.json +0 -23
  316. package/tests/mocks/Document/document.json +0 -3
  317. package/tests/mocks/Document/document2.json +0 -3
  318. package/tests/mocks/Document/index.js +0 -13
  319. package/tests/mocks/Identity/index.js +0 -13
  320. package/tests/mocks/Locks/index.js +0 -2
  321. package/tests/mocks/PrivateKey/index.js +0 -5
  322. package/tests/mocks/PublicKey/index.js +0 -13
  323. package/tests/mocks/TokenConfiguration/index.js +0 -5
  324. package/tests/utils/hex.js +0 -14
@@ -0,0 +1,42 @@
1
+ import { IdentityCreditWithdrawalTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
2
+ import { IdentifierLike, PoolingLike } from '../../types.js';
3
+ import { CoreScriptWASM } from '../CoreScript.js';
4
+ import { IdentifierWASM } from '../Identifier.js';
5
+ import { AssetLockProofWASM } from '../AssetLockProof/AssetLockProof.js';
6
+ import { StateTransitionWASM } from '../StateTransition.js';
7
+ export declare class IdentityCreditWithdrawalTransitionWASM {
8
+ /** @private **/
9
+ _rawIdentityCreditWithdrawalTransition: IdentityCreditWithdrawalTransitionNAPI;
10
+ constructor(identityId: IdentifierLike, amount: bigint, coreFeePerByte: number, pooling: PoolingLike, nonce: bigint, outputScript?: CoreScriptWASM, userFeeIncrease?: number);
11
+ get outputScript(): CoreScriptWASM | undefined;
12
+ set outputScript(script: CoreScriptWASM | undefined);
13
+ get pooling(): string;
14
+ set pooling(value: PoolingLike);
15
+ get identityId(): IdentifierWASM;
16
+ set identityId(value: IdentifierWASM);
17
+ get userFeeIncrease(): number;
18
+ set userFeeIncrease(value: number);
19
+ get nonce(): bigint;
20
+ set nonce(value: bigint);
21
+ get amount(): bigint;
22
+ set amount(value: bigint);
23
+ get coreFeePerByte(): number;
24
+ set coreFeePerByte(value: number);
25
+ get signature(): Uint8Array;
26
+ set signature(value: Uint8Array);
27
+ get signaturePublicKeyId(): number;
28
+ set signaturePublicKeyId(value: number);
29
+ getSignableBytes(): Uint8Array;
30
+ getPurposeRequirement(): string[];
31
+ getModifiedDataIds(): IdentifierWASM[];
32
+ getOptionalAssetLockProof(): AssetLockProofWASM | undefined;
33
+ bytes(): Uint8Array;
34
+ hex(): string;
35
+ base64(): string;
36
+ toStateTransition(): StateTransitionWASM;
37
+ static fromBytes(bytes: Uint8Array): IdentityCreditWithdrawalTransitionWASM;
38
+ static fromHex(hex: string): IdentityCreditWithdrawalTransitionWASM;
39
+ static fromBase64(base64: string): IdentityCreditWithdrawalTransitionWASM;
40
+ static fromStateTransition(stateTransition: StateTransitionWASM): IdentityCreditWithdrawalTransitionWASM;
41
+ static createFromRawInstance(rawInstance: IdentityCreditWithdrawalTransitionNAPI): IdentityCreditWithdrawalTransitionWASM;
42
+ }
@@ -0,0 +1,114 @@
1
+ import { dppProvider } from '../../provider.js';
2
+ import { CoreScriptWASM } from '../CoreScript.js';
3
+ import { prepareIdentifierValue, valueToDynamicValue } from '../../utils.js';
4
+ import { IdentifierWASM } from '../Identifier.js';
5
+ import { AssetLockProofWASM } from '../AssetLockProof/AssetLockProof.js';
6
+ import { StateTransitionWASM } from '../StateTransition.js';
7
+ export class IdentityCreditWithdrawalTransitionWASM {
8
+ /** @private **/
9
+ _rawIdentityCreditWithdrawalTransition;
10
+ constructor(identityId, amount, coreFeePerByte, pooling, nonce, outputScript, userFeeIncrease) {
11
+ this._rawIdentityCreditWithdrawalTransition = new dppProvider.dpp.IdentityCreditWithdrawalTransitionNAPI(prepareIdentifierValue(identityId), amount.toString(), coreFeePerByte, valueToDynamicValue(pooling), nonce.toString(), outputScript?._rawCoreScript, userFeeIncrease);
12
+ }
13
+ get outputScript() {
14
+ const script = this._rawIdentityCreditWithdrawalTransition.outputScript;
15
+ if (script != null) {
16
+ return CoreScriptWASM.createFromRawInstance(script);
17
+ }
18
+ }
19
+ set outputScript(script) {
20
+ this._rawIdentityCreditWithdrawalTransition.outputScript = script?._rawCoreScript;
21
+ }
22
+ get pooling() {
23
+ return this._rawIdentityCreditWithdrawalTransition.pooling;
24
+ }
25
+ set pooling(value) {
26
+ this._rawIdentityCreditWithdrawalTransition.pooling = valueToDynamicValue(value);
27
+ }
28
+ get identityId() {
29
+ return IdentifierWASM.createFromRawInstance(this._rawIdentityCreditWithdrawalTransition.identityId);
30
+ }
31
+ set identityId(value) {
32
+ this._rawIdentityCreditWithdrawalTransition.identityId = prepareIdentifierValue(value);
33
+ }
34
+ get userFeeIncrease() {
35
+ return this._rawIdentityCreditWithdrawalTransition.userFeeIncrease;
36
+ }
37
+ set userFeeIncrease(value) {
38
+ this._rawIdentityCreditWithdrawalTransition.userFeeIncrease = value;
39
+ }
40
+ get nonce() {
41
+ return BigInt(this._rawIdentityCreditWithdrawalTransition.nonce);
42
+ }
43
+ set nonce(value) {
44
+ this._rawIdentityCreditWithdrawalTransition.nonce = value.toString();
45
+ }
46
+ get amount() {
47
+ return BigInt(this._rawIdentityCreditWithdrawalTransition.amount);
48
+ }
49
+ set amount(value) {
50
+ this._rawIdentityCreditWithdrawalTransition.amount = value.toString();
51
+ }
52
+ get coreFeePerByte() {
53
+ return this._rawIdentityCreditWithdrawalTransition.coreFeePerByte;
54
+ }
55
+ set coreFeePerByte(value) {
56
+ this._rawIdentityCreditWithdrawalTransition.coreFeePerByte = value;
57
+ }
58
+ get signature() {
59
+ return this._rawIdentityCreditWithdrawalTransition.signature;
60
+ }
61
+ set signature(value) {
62
+ this._rawIdentityCreditWithdrawalTransition.signature = value;
63
+ }
64
+ get signaturePublicKeyId() {
65
+ return this._rawIdentityCreditWithdrawalTransition.signaturePublicKeyId;
66
+ }
67
+ set signaturePublicKeyId(value) {
68
+ this._rawIdentityCreditWithdrawalTransition.signaturePublicKeyId = value;
69
+ }
70
+ getSignableBytes() {
71
+ return this._rawIdentityCreditWithdrawalTransition.getSignableBytes();
72
+ }
73
+ getPurposeRequirement() {
74
+ return this._rawIdentityCreditWithdrawalTransition.getPurposeRequirement();
75
+ }
76
+ getModifiedDataIds() {
77
+ return this._rawIdentityCreditWithdrawalTransition.getModifiedDataIds().map(IdentifierWASM.createFromRawInstance);
78
+ }
79
+ getOptionalAssetLockProof() {
80
+ const lock = this._rawIdentityCreditWithdrawalTransition.getOptionalAssetLockProof();
81
+ if (lock != null) {
82
+ return AssetLockProofWASM.createFromRawInstance(lock);
83
+ }
84
+ }
85
+ bytes() {
86
+ return this._rawIdentityCreditWithdrawalTransition.bytes();
87
+ }
88
+ hex() {
89
+ return this._rawIdentityCreditWithdrawalTransition.hex();
90
+ }
91
+ base64() {
92
+ return this._rawIdentityCreditWithdrawalTransition.base64();
93
+ }
94
+ toStateTransition() {
95
+ return StateTransitionWASM.createFromRawInstance(this._rawIdentityCreditWithdrawalTransition.toStateTransition());
96
+ }
97
+ static fromBytes(bytes) {
98
+ return IdentityCreditWithdrawalTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityCreditWithdrawalTransitionNAPI.fromBytes(bytes));
99
+ }
100
+ static fromHex(hex) {
101
+ return IdentityCreditWithdrawalTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityCreditWithdrawalTransitionNAPI.fromHex(hex));
102
+ }
103
+ static fromBase64(base64) {
104
+ return IdentityCreditWithdrawalTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityCreditWithdrawalTransitionNAPI.fromBase64(base64));
105
+ }
106
+ static fromStateTransition(stateTransition) {
107
+ return IdentityCreditWithdrawalTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityCreditWithdrawalTransitionNAPI.fromStateTransition(stateTransition._rawStateTransition));
108
+ }
109
+ static createFromRawInstance(rawInstance) {
110
+ const instance = Object.create(this.prototype);
111
+ instance._rawIdentityCreditWithdrawalTransition = rawInstance;
112
+ return instance;
113
+ }
114
+ }
@@ -0,0 +1,30 @@
1
+ import { IdentityTopUpTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
2
+ import { AssetLockProofWASM } from '../AssetLockProof/AssetLockProof.js';
3
+ import { IdentifierLike } from '../../types.js';
4
+ import { IdentifierWASM } from '../Identifier.js';
5
+ import { StateTransitionWASM } from '../StateTransition.js';
6
+ export declare class IdentityTopUpTransitionWASM {
7
+ /** @private **/
8
+ _rawIdentityTopUpTransition: IdentityTopUpTransitionNAPI;
9
+ constructor(assetLockProof: AssetLockProofWASM, identityId: IdentifierLike, userFeeIncrease?: number);
10
+ get userFeeIncrease(): number;
11
+ set userFeeIncrease(value: number);
12
+ get identityIdentifier(): IdentifierWASM;
13
+ set identityIdentifier(id: IdentifierWASM);
14
+ get assetLockProof(): AssetLockProofWASM;
15
+ set assetLockProof(value: AssetLockProofWASM);
16
+ get signature(): Uint8Array;
17
+ set signature(value: Uint8Array);
18
+ getSignableBytes(): Uint8Array;
19
+ getModifiedDataIds(): IdentifierWASM[];
20
+ getOptionalAssetLockProof(): AssetLockProofWASM | undefined;
21
+ bytes(): Uint8Array;
22
+ hex(): string;
23
+ base64(): string;
24
+ toStateTransition(): StateTransitionWASM;
25
+ static fromBytes(bytes: Uint8Array): IdentityTopUpTransitionWASM;
26
+ static fromHex(hex: string): IdentityTopUpTransitionWASM;
27
+ static fromBase64(base64: string): IdentityTopUpTransitionWASM;
28
+ static fromStateTransition(stateTransition: StateTransitionWASM): IdentityTopUpTransitionWASM;
29
+ static createFromRawInstance(rawInstance: IdentityTopUpTransitionNAPI): IdentityTopUpTransitionWASM;
30
+ }
@@ -0,0 +1,75 @@
1
+ import { AssetLockProofWASM } from '../AssetLockProof/AssetLockProof.js';
2
+ import { dppProvider } from '../../provider.js';
3
+ import { prepareIdentifierValue } from '../../utils.js';
4
+ import { IdentifierWASM } from '../Identifier.js';
5
+ import { StateTransitionWASM } from '../StateTransition.js';
6
+ export class IdentityTopUpTransitionWASM {
7
+ /** @private **/
8
+ _rawIdentityTopUpTransition;
9
+ constructor(assetLockProof, identityId, userFeeIncrease) {
10
+ this._rawIdentityTopUpTransition = new dppProvider.dpp.IdentityTopUpTransitionNAPI(assetLockProof._rawAssetLockProof, prepareIdentifierValue(identityId), userFeeIncrease);
11
+ }
12
+ get userFeeIncrease() {
13
+ return this._rawIdentityTopUpTransition.userFeeIncrease;
14
+ }
15
+ set userFeeIncrease(value) {
16
+ this._rawIdentityTopUpTransition.userFeeIncrease = value;
17
+ }
18
+ get identityIdentifier() {
19
+ return IdentifierWASM.createFromRawInstance(this._rawIdentityTopUpTransition.identityIdentifier);
20
+ }
21
+ set identityIdentifier(id) {
22
+ this._rawIdentityTopUpTransition.identityIdentifier = id._rawIdentifier;
23
+ }
24
+ get assetLockProof() {
25
+ return AssetLockProofWASM.createFromRawInstance(this._rawIdentityTopUpTransition.assetLockProof);
26
+ }
27
+ set assetLockProof(value) {
28
+ this._rawIdentityTopUpTransition.assetLockProof = value._rawAssetLockProof;
29
+ }
30
+ get signature() {
31
+ return this._rawIdentityTopUpTransition.signature;
32
+ }
33
+ set signature(value) {
34
+ this._rawIdentityTopUpTransition.signature = value;
35
+ }
36
+ getSignableBytes() {
37
+ return this._rawIdentityTopUpTransition.getSignableBytes();
38
+ }
39
+ getModifiedDataIds() {
40
+ return this._rawIdentityTopUpTransition.getModifiedDataIds().map(IdentifierWASM.createFromRawInstance);
41
+ }
42
+ getOptionalAssetLockProof() {
43
+ const lock = this._rawIdentityTopUpTransition.getOptionalAssetLockProof();
44
+ return (lock != null) ? AssetLockProofWASM.createFromRawInstance(lock) : undefined;
45
+ }
46
+ bytes() {
47
+ return this._rawIdentityTopUpTransition.bytes();
48
+ }
49
+ hex() {
50
+ return this._rawIdentityTopUpTransition.hex();
51
+ }
52
+ base64() {
53
+ return this._rawIdentityTopUpTransition.base64();
54
+ }
55
+ toStateTransition() {
56
+ return StateTransitionWASM.createFromRawInstance(this._rawIdentityTopUpTransition.toStateTransition());
57
+ }
58
+ static fromBytes(bytes) {
59
+ return IdentityTopUpTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityTopUpTransitionNAPI.fromBytes(bytes));
60
+ }
61
+ static fromHex(hex) {
62
+ return IdentityTopUpTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityTopUpTransitionNAPI.fromHex(hex));
63
+ }
64
+ static fromBase64(base64) {
65
+ return IdentityTopUpTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityTopUpTransitionNAPI.fromBase64(base64));
66
+ }
67
+ static fromStateTransition(stateTransition) {
68
+ return IdentityTopUpTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityTopUpTransitionNAPI.fromStateTransition(stateTransition._rawStateTransition));
69
+ }
70
+ static createFromRawInstance(rawInstance) {
71
+ const instance = Object.create(this.prototype);
72
+ instance._rawIdentityTopUpTransition = rawInstance;
73
+ return instance;
74
+ }
75
+ }
@@ -0,0 +1,40 @@
1
+ import { IdentityUpdateTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
2
+ import { IdentifierLike } from '../../types.js';
3
+ import { IdentityPublicKeyInCreationWASM } from '../IdentityPublicKeyInCreation.js';
4
+ import { IdentifierWASM } from '../Identifier.js';
5
+ import { AssetLockProofWASM } from '../AssetLockProof/AssetLockProof.js';
6
+ import { StateTransitionWASM } from '../StateTransition.js';
7
+ export declare class IdentityUpdateTransitionWASM {
8
+ /** @private **/
9
+ _rawIdentityUpdateTransition: IdentityUpdateTransitionNAPI;
10
+ constructor(identityId: IdentifierLike, revision: bigint, nonce: bigint, addPublicKeys: IdentityPublicKeyInCreationWASM[], disablePublicKeys: number[], userFeeIncrease?: number);
11
+ get revision(): bigint;
12
+ set revision(value: bigint);
13
+ get nonce(): bigint;
14
+ set nonce(value: bigint);
15
+ get identityIdentifier(): IdentifierWASM;
16
+ set identityIdentifier(value: IdentifierWASM);
17
+ get publicKeyIdsToDisable(): number[];
18
+ set publicKeyIdsToDisable(value: number[]);
19
+ get publicKeyIdsToAdd(): IdentityPublicKeyInCreationWASM[];
20
+ set publicKeyIdsToAdd(value: IdentityPublicKeyInCreationWASM[]);
21
+ get userFeeIncrease(): number;
22
+ set userFeeIncrease(value: number);
23
+ get signature(): Uint8Array;
24
+ set signature(value: Uint8Array);
25
+ get signaturePublicKeyId(): number;
26
+ set signaturePublicKeyId(value: number);
27
+ getSignableBytes(): Uint8Array;
28
+ getPurposeRequirement(): string[];
29
+ getModifiedDataIds(): IdentifierWASM[];
30
+ getOptionalAssetLockProof(): AssetLockProofWASM | undefined;
31
+ bytes(): Uint8Array;
32
+ hex(): string;
33
+ base64(): string;
34
+ toStateTransition(): StateTransitionWASM;
35
+ static fromBytes(bytes: Uint8Array): IdentityUpdateTransitionWASM;
36
+ static fromHex(hex: string): IdentityUpdateTransitionWASM;
37
+ static fromBase64(base64: string): IdentityUpdateTransitionWASM;
38
+ static fromStateTransition(stateTransition: StateTransitionWASM): IdentityUpdateTransitionWASM;
39
+ static createFromRawInstance(rawInstance: IdentityUpdateTransitionNAPI): IdentityUpdateTransitionWASM;
40
+ }
@@ -0,0 +1,108 @@
1
+ import { IdentityPublicKeyInCreationWASM } from '../IdentityPublicKeyInCreation.js';
2
+ import { dppProvider } from '../../provider.js';
3
+ import { prepareIdentifierValue } from '../../utils.js';
4
+ import { IdentifierWASM } from '../Identifier.js';
5
+ import { AssetLockProofWASM } from '../AssetLockProof/AssetLockProof.js';
6
+ import { StateTransitionWASM } from '../StateTransition.js';
7
+ export class IdentityUpdateTransitionWASM {
8
+ /** @private **/
9
+ _rawIdentityUpdateTransition;
10
+ constructor(identityId, revision, nonce, addPublicKeys, disablePublicKeys, userFeeIncrease) {
11
+ this._rawIdentityUpdateTransition = new dppProvider.dpp.IdentityUpdateTransitionNAPI(prepareIdentifierValue(identityId), revision.toString(), nonce.toString(), addPublicKeys.map(key => key._rawKeyInCreation), disablePublicKeys, userFeeIncrease);
12
+ }
13
+ get revision() {
14
+ return BigInt(this._rawIdentityUpdateTransition.revision);
15
+ }
16
+ set revision(value) {
17
+ this._rawIdentityUpdateTransition.revision = value.toString();
18
+ }
19
+ get nonce() {
20
+ return BigInt(this._rawIdentityUpdateTransition.nonce);
21
+ }
22
+ set nonce(value) {
23
+ this._rawIdentityUpdateTransition.nonce = value.toString();
24
+ }
25
+ get identityIdentifier() {
26
+ return IdentifierWASM.createFromRawInstance(this._rawIdentityUpdateTransition.identityIdentifier);
27
+ }
28
+ set identityIdentifier(value) {
29
+ this._rawIdentityUpdateTransition.identityIdentifier = value._rawIdentifier;
30
+ }
31
+ get publicKeyIdsToDisable() {
32
+ return this._rawIdentityUpdateTransition.publicKeyIdsToDisable;
33
+ }
34
+ set publicKeyIdsToDisable(value) {
35
+ this._rawIdentityUpdateTransition.publicKeyIdsToDisable = value;
36
+ }
37
+ get publicKeyIdsToAdd() {
38
+ return this._rawIdentityUpdateTransition.publicKeyIdsToAdd.map(IdentityPublicKeyInCreationWASM.createFromRawInstance);
39
+ }
40
+ set publicKeyIdsToAdd(value) {
41
+ this._rawIdentityUpdateTransition.publicKeyIdsToAdd = value.map(key => key._rawKeyInCreation);
42
+ }
43
+ get userFeeIncrease() {
44
+ return this._rawIdentityUpdateTransition.userFeeIncrease;
45
+ }
46
+ set userFeeIncrease(value) {
47
+ this._rawIdentityUpdateTransition.userFeeIncrease = value;
48
+ }
49
+ get signature() {
50
+ return this._rawIdentityUpdateTransition.signature;
51
+ }
52
+ set signature(value) {
53
+ this._rawIdentityUpdateTransition.signature = value;
54
+ }
55
+ get signaturePublicKeyId() {
56
+ return this._rawIdentityUpdateTransition.signaturePublicKeyId;
57
+ }
58
+ set signaturePublicKeyId(value) {
59
+ this._rawIdentityUpdateTransition.signaturePublicKeyId = value;
60
+ }
61
+ getSignableBytes() {
62
+ return this._rawIdentityUpdateTransition.getSignableBytes();
63
+ }
64
+ getPurposeRequirement() {
65
+ return this._rawIdentityUpdateTransition.getPurposeRequirement();
66
+ }
67
+ getModifiedDataIds() {
68
+ return this._rawIdentityUpdateTransition.getModifiedDataIds().map(IdentifierWASM.createFromRawInstance);
69
+ }
70
+ getOptionalAssetLockProof() {
71
+ const lock = this._rawIdentityUpdateTransition.getOptionalAssetLockProof();
72
+ if (lock != null) {
73
+ return AssetLockProofWASM.createFromRawInstance(lock);
74
+ }
75
+ else {
76
+ return undefined;
77
+ }
78
+ }
79
+ bytes() {
80
+ return this._rawIdentityUpdateTransition.bytes();
81
+ }
82
+ hex() {
83
+ return this._rawIdentityUpdateTransition.hex();
84
+ }
85
+ base64() {
86
+ return this._rawIdentityUpdateTransition.base64();
87
+ }
88
+ toStateTransition() {
89
+ return StateTransitionWASM.createFromRawInstance(this._rawIdentityUpdateTransition.toStateTransition());
90
+ }
91
+ static fromBytes(bytes) {
92
+ return IdentityUpdateTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityUpdateTransitionNAPI.fromBytes(bytes));
93
+ }
94
+ static fromHex(hex) {
95
+ return IdentityUpdateTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityUpdateTransitionNAPI.fromHex(hex));
96
+ }
97
+ static fromBase64(base64) {
98
+ return IdentityUpdateTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityUpdateTransitionNAPI.fromBase64(base64));
99
+ }
100
+ static fromStateTransition(stateTransition) {
101
+ return IdentityUpdateTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityUpdateTransitionNAPI.fromStateTransition(stateTransition._rawStateTransition));
102
+ }
103
+ static createFromRawInstance(rawInstance) {
104
+ const instance = Object.create(this.prototype);
105
+ instance._rawIdentityUpdateTransition = rawInstance;
106
+ return instance;
107
+ }
108
+ }
@@ -0,0 +1,17 @@
1
+ import { InstantLockNAPI } from '../../../binaries/bindingsTypes.js';
2
+ import { OutPointWASM } from './AssetLockProof/OutPoint.js';
3
+ export declare class InstantLockWASM {
4
+ _rawInstantLock: InstantLockNAPI;
5
+ constructor(version: number, inputs: OutPointWASM[], txId: string, cycleHash: string, blsSignature: string);
6
+ get version(): number;
7
+ set version(version: number);
8
+ get inputs(): OutPointWASM[];
9
+ set inputs(inputs: OutPointWASM[]);
10
+ get txid(): string;
11
+ set txid(txid: string);
12
+ get cyclehash(): string;
13
+ set cyclehash(hash: string);
14
+ get blsSignature(): string;
15
+ set blsSignature(sig: string);
16
+ static createFromRawInstance(rawInstance: InstantLockNAPI): InstantLockWASM;
17
+ }
@@ -0,0 +1,43 @@
1
+ import { OutPointWASM } from './AssetLockProof/OutPoint.js';
2
+ import { dppProvider } from '../provider.js';
3
+ export class InstantLockWASM {
4
+ _rawInstantLock;
5
+ constructor(version, inputs, txId, cycleHash, blsSignature) {
6
+ this._rawInstantLock = new dppProvider.dpp.InstantLockNAPI(version, inputs.map(input => input._rawOutPoint), txId, cycleHash, blsSignature);
7
+ }
8
+ get version() {
9
+ return this._rawInstantLock.version;
10
+ }
11
+ set version(version) {
12
+ this._rawInstantLock.version = version;
13
+ }
14
+ get inputs() {
15
+ return this.inputs.map(OutPointWASM.createFromRawInstance);
16
+ }
17
+ set inputs(inputs) {
18
+ this._rawInstantLock.inputs = inputs.map(input => input._rawOutPoint);
19
+ }
20
+ get txid() {
21
+ return this._rawInstantLock.txid;
22
+ }
23
+ set txid(txid) {
24
+ this._rawInstantLock.txid = txid;
25
+ }
26
+ get cyclehash() {
27
+ return this._rawInstantLock.cyclehash;
28
+ }
29
+ set cyclehash(hash) {
30
+ this._rawInstantLock.cyclehash = hash;
31
+ }
32
+ get blsSignature() {
33
+ return this._rawInstantLock.blsSignature;
34
+ }
35
+ set blsSignature(sig) {
36
+ this._rawInstantLock.blsSignature = sig;
37
+ }
38
+ static createFromRawInstance(rawInstance) {
39
+ const instance = Object.create(this.prototype);
40
+ instance._rawInstantLock = rawInstance;
41
+ return instance;
42
+ }
43
+ }
@@ -0,0 +1,37 @@
1
+ import { MasternodeVoteTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
2
+ import { IdentifierLike } from '../../types.js';
3
+ import { VoteWASM } from './Vote.js';
4
+ import { IdentifierWASM } from '../Identifier.js';
5
+ import { AssetLockProofWASM } from '../AssetLockProof/AssetLockProof.js';
6
+ import { StateTransitionWASM } from '../StateTransition.js';
7
+ export declare class MasternodeVoteTransitionWASM {
8
+ /** @private **/
9
+ _rawMasternodeVoteTransition: MasternodeVoteTransitionNAPI;
10
+ constructor(proTxHash: IdentifierLike, voterId: IdentifierLike, vote: VoteWASM, nonce: bigint, signaturePublicKey?: number, signature?: Uint8Array);
11
+ get proTxHash(): IdentifierWASM;
12
+ set proTxHash(id: IdentifierLike);
13
+ get voterIdentityId(): IdentifierWASM;
14
+ set voterIdentityId(id: IdentifierLike);
15
+ get vote(): VoteWASM;
16
+ set vote(vote: VoteWASM);
17
+ get nonce(): bigint;
18
+ set nonce(nonce: bigint);
19
+ get signaturePublicKeyId(): number;
20
+ set signaturePublicKeyId(keyId: number);
21
+ get signature(): Uint8Array;
22
+ set signature(value: Uint8Array);
23
+ get userFeeIncrease(): number;
24
+ set userFeeIncrease(value: number);
25
+ get assetLock(): AssetLockProofWASM | undefined;
26
+ get modifiedDataIds(): IdentifierWASM[];
27
+ getSignableBytes(): Uint8Array;
28
+ bytes(): Uint8Array;
29
+ hex(): string;
30
+ base64(): string;
31
+ toStateTransition(): StateTransitionWASM;
32
+ static fromBytes(bytes: Uint8Array): MasternodeVoteTransitionWASM;
33
+ static fromHex(hex: string): MasternodeVoteTransitionWASM;
34
+ static fromBase64(base64: string): MasternodeVoteTransitionWASM;
35
+ static fromStateTransition(stateTransition: StateTransitionWASM): MasternodeVoteTransitionWASM;
36
+ static createFromRawInstance(rawInstance: MasternodeVoteTransitionNAPI): MasternodeVoteTransitionWASM;
37
+ }
@@ -0,0 +1,96 @@
1
+ import { VoteWASM } from './Vote.js';
2
+ import { dppProvider } from '../../provider.js';
3
+ import { prepareIdentifierValue } from '../../utils.js';
4
+ import { IdentifierWASM } from '../Identifier.js';
5
+ import { AssetLockProofWASM } from '../AssetLockProof/AssetLockProof.js';
6
+ import { StateTransitionWASM } from '../StateTransition.js';
7
+ export class MasternodeVoteTransitionWASM {
8
+ /** @private **/
9
+ _rawMasternodeVoteTransition;
10
+ constructor(proTxHash, voterId, vote, nonce, signaturePublicKey, signature) {
11
+ this._rawMasternodeVoteTransition = new dppProvider.dpp.MasternodeVoteTransitionNAPI(prepareIdentifierValue(proTxHash), prepareIdentifierValue(voterId), vote._rawVote, nonce.toString(), signaturePublicKey, signature);
12
+ }
13
+ get proTxHash() {
14
+ return IdentifierWASM.createFromRawInstance(this._rawMasternodeVoteTransition.proTxHash);
15
+ }
16
+ set proTxHash(id) {
17
+ this._rawMasternodeVoteTransition.proTxHash = prepareIdentifierValue(id);
18
+ }
19
+ get voterIdentityId() {
20
+ return IdentifierWASM.createFromRawInstance(this._rawMasternodeVoteTransition.voterIdentityId);
21
+ }
22
+ set voterIdentityId(id) {
23
+ this._rawMasternodeVoteTransition.voterIdentityId = prepareIdentifierValue(id);
24
+ }
25
+ get vote() {
26
+ return VoteWASM.createFromRawInstance(this._rawMasternodeVoteTransition.vote);
27
+ }
28
+ set vote(vote) {
29
+ this._rawMasternodeVoteTransition.vote = vote._rawVote;
30
+ }
31
+ get nonce() {
32
+ return BigInt(this._rawMasternodeVoteTransition.nonce);
33
+ }
34
+ set nonce(nonce) {
35
+ this._rawMasternodeVoteTransition.nonce = nonce.toString();
36
+ }
37
+ get signaturePublicKeyId() {
38
+ return this._rawMasternodeVoteTransition.signaturePublicKeyId;
39
+ }
40
+ set signaturePublicKeyId(keyId) {
41
+ this._rawMasternodeVoteTransition.signaturePublicKeyId = keyId;
42
+ }
43
+ get signature() {
44
+ return this._rawMasternodeVoteTransition.signature;
45
+ }
46
+ set signature(value) {
47
+ this._rawMasternodeVoteTransition.signature = value;
48
+ }
49
+ get userFeeIncrease() {
50
+ return this._rawMasternodeVoteTransition.userFeeIncrease;
51
+ }
52
+ set userFeeIncrease(value) {
53
+ this._rawMasternodeVoteTransition.userFeeIncrease = value;
54
+ }
55
+ get assetLock() {
56
+ const lock = this._rawMasternodeVoteTransition.assetLock;
57
+ if (lock != null) {
58
+ return AssetLockProofWASM.createFromRawInstance(lock);
59
+ }
60
+ }
61
+ get modifiedDataIds() {
62
+ return this._rawMasternodeVoteTransition.modifiedDataIds.map(IdentifierWASM.createFromRawInstance);
63
+ }
64
+ getSignableBytes() {
65
+ return this._rawMasternodeVoteTransition.getSignableBytes();
66
+ }
67
+ bytes() {
68
+ return this._rawMasternodeVoteTransition.bytes();
69
+ }
70
+ hex() {
71
+ return this._rawMasternodeVoteTransition.hex();
72
+ }
73
+ base64() {
74
+ return this._rawMasternodeVoteTransition.base64();
75
+ }
76
+ toStateTransition() {
77
+ return StateTransitionWASM.createFromRawInstance(this._rawMasternodeVoteTransition.toStateTransition());
78
+ }
79
+ static fromBytes(bytes) {
80
+ return MasternodeVoteTransitionWASM.createFromRawInstance(dppProvider.dpp.MasternodeVoteTransitionNAPI.fromBytes(bytes));
81
+ }
82
+ static fromHex(hex) {
83
+ return MasternodeVoteTransitionWASM.createFromRawInstance(dppProvider.dpp.MasternodeVoteTransitionNAPI.fromHex(hex));
84
+ }
85
+ static fromBase64(base64) {
86
+ return MasternodeVoteTransitionWASM.createFromRawInstance(dppProvider.dpp.MasternodeVoteTransitionNAPI.fromBase64(base64));
87
+ }
88
+ static fromStateTransition(stateTransition) {
89
+ return MasternodeVoteTransitionWASM.createFromRawInstance(dppProvider.dpp.MasternodeVoteTransitionNAPI.fromStateTransition(stateTransition._rawStateTransition));
90
+ }
91
+ static createFromRawInstance(rawInstance) {
92
+ const instance = Object.create(this.prototype);
93
+ instance._rawMasternodeVoteTransition = rawInstance;
94
+ return instance;
95
+ }
96
+ }
@@ -0,0 +1,14 @@
1
+ import { ResourceVoteChoiceNAPI } from '../../../../binaries/bindingsTypes.js';
2
+ import { IdentifierLike } from '../../types.js';
3
+ import { IdentifierWASM } from '../Identifier.js';
4
+ export declare class ResourceVoteChoiceWASM {
5
+ /** @private **/
6
+ _rawResourceVoteChoice: ResourceVoteChoiceNAPI;
7
+ private constructor();
8
+ getValue(): IdentifierWASM | undefined;
9
+ getType(): string;
10
+ static TowardsIdentity(id: IdentifierLike): ResourceVoteChoiceWASM;
11
+ static Abstain(): ResourceVoteChoiceWASM;
12
+ static Lock(): ResourceVoteChoiceWASM;
13
+ static createFromRawInstance(rawInstance: ResourceVoteChoiceNAPI): ResourceVoteChoiceWASM;
14
+ }
@@ -0,0 +1,29 @@
1
+ import { dppProvider } from '../../provider.js';
2
+ import { prepareIdentifierValue } from '../../utils.js';
3
+ import { IdentifierWASM } from '../Identifier.js';
4
+ export class ResourceVoteChoiceWASM {
5
+ /** @private **/
6
+ _rawResourceVoteChoice;
7
+ constructor(rawResourceVoteChoice) {
8
+ this._rawResourceVoteChoice = rawResourceVoteChoice;
9
+ }
10
+ getValue() {
11
+ const val = this._rawResourceVoteChoice.getValue();
12
+ return val != null ? IdentifierWASM.createFromRawInstance(val) : undefined;
13
+ }
14
+ getType() {
15
+ return this._rawResourceVoteChoice.getType();
16
+ }
17
+ static TowardsIdentity(id) {
18
+ return ResourceVoteChoiceWASM.createFromRawInstance(dppProvider.dpp.ResourceVoteChoiceNAPI.TowardsIdentity(prepareIdentifierValue(id)));
19
+ }
20
+ static Abstain() {
21
+ return ResourceVoteChoiceWASM.createFromRawInstance(dppProvider.dpp.ResourceVoteChoiceNAPI.Abstain());
22
+ }
23
+ static Lock() {
24
+ return ResourceVoteChoiceWASM.createFromRawInstance(dppProvider.dpp.ResourceVoteChoiceNAPI.Lock());
25
+ }
26
+ static createFromRawInstance(rawInstance) {
27
+ return new ResourceVoteChoiceWASM(rawInstance);
28
+ }
29
+ }
@@ -0,0 +1,13 @@
1
+ import { VoteNAPI } from '../../../../binaries/bindingsTypes.js';
2
+ import { VotePollWASM } from './VotePoll.js';
3
+ import { ResourceVoteChoiceWASM } from './ResourceVoteChoice.js';
4
+ export declare class VoteWASM {
5
+ /** @private **/
6
+ _rawVote: VoteNAPI;
7
+ constructor(votePoll: VotePollWASM, resourceVoteChoice: ResourceVoteChoiceWASM);
8
+ get votePoll(): VotePollWASM;
9
+ set votePoll(votePoll: VotePollWASM);
10
+ get resourceVoteChoice(): ResourceVoteChoiceWASM;
11
+ set resourceVoteChoice(resourceVoteChoice: ResourceVoteChoiceWASM);
12
+ static createFromRawInstance(rawInstance: VoteNAPI): VoteWASM;
13
+ }