pshenmic-dpp 2.0.0-dev.1 → 2.0.0-dev.11

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 (223) hide show
  1. package/dist/binaries/bindingsTypes.d.ts +48 -23
  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/native.d.ts +171 -0
  8. package/dist/binaries/native.js +10 -0
  9. package/dist/binaries/node.d.ts +171 -0
  10. package/dist/binaries/node.js +51 -0
  11. package/dist/binaries/pshenmic_dpp.android.node/arm64-v8a/libpshenmic_dpp.so +0 -0
  12. package/dist/binaries/pshenmic_dpp.apple.node/Info.plist +29 -0
  13. package/dist/binaries/pshenmic_dpp.apple.node/ios-arm64-simulator/libpshenmic_dpp.framework/Info.plist +24 -0
  14. package/dist/binaries/pshenmic_dpp.apple.node/ios-arm64-simulator/libpshenmic_dpp.framework/libpshenmic_dpp +0 -0
  15. package/dist/binaries/pshenmic_dpp.apple.node/react-native-node-api-module +0 -0
  16. package/dist/binaries/pshenmic_dpp.d.ts +6 -1
  17. package/dist/binaries/pshenmic_dpp.js +1 -1
  18. package/dist/binaries/wasm/wasmBytes.js +1 -1
  19. package/dist/binaries/wasm.d.ts +6 -1
  20. package/dist/binaries/wasm.js +1 -1
  21. package/dist/src/dpp/dpp.d.ts +4 -2
  22. package/dist/src/dpp/dpp.js +4 -2
  23. package/dist/src/dpp/enums.d.ts +1 -1
  24. package/dist/src/dpp/enums.js +1 -1
  25. package/dist/src/dpp/structs/AddressTransitions/AddressCreditWithdrawalTransition.d.ts +2 -2
  26. package/dist/src/dpp/structs/AddressTransitions/AddressCreditWithdrawalTransition.js +2 -2
  27. package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.d.ts +2 -2
  28. package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.js +3 -3
  29. package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.d.ts +2 -2
  30. package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.js +3 -3
  31. package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.d.ts +2 -2
  32. package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.js +2 -2
  33. package/dist/src/dpp/structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.d.ts +1 -1
  34. package/dist/src/dpp/structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.js +1 -1
  35. package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.d.ts +2 -2
  36. package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.js +2 -2
  37. package/dist/src/dpp/structs/AddressTransitions/entities/AddressFundsFeeStrategyStep.d.ts +1 -1
  38. package/dist/src/dpp/structs/AddressTransitions/entities/InputAddress.d.ts +5 -4
  39. package/dist/src/dpp/structs/AddressTransitions/entities/InputAddress.js +5 -4
  40. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddress.d.ts +5 -4
  41. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddress.js +5 -4
  42. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddressNullableCredits.d.ts +5 -4
  43. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddressNullableCredits.js +5 -4
  44. package/dist/src/dpp/structs/AssetLockProof/AssetLockProof.d.ts +1 -1
  45. package/dist/src/dpp/structs/AssetLockProof/AssetLockProof.js +2 -3
  46. package/dist/src/dpp/structs/AssetLockProof/ChainAssetLockProof.d.ts +1 -1
  47. package/dist/src/dpp/structs/AssetLockProof/ChainAssetLockProof.js +2 -2
  48. package/dist/src/dpp/structs/AssetLockProof/InstantAssetLockProof.d.ts +1 -1
  49. package/dist/src/dpp/structs/AssetLockProof/InstantAssetLockProof.js +1 -1
  50. package/dist/src/dpp/structs/AssetLockProof/OutPoint.d.ts +1 -1
  51. package/dist/src/dpp/structs/AssetLockProof/OutPoint.js +1 -1
  52. package/dist/src/dpp/structs/AssetLockProof/Transaction.d.ts +1 -1
  53. package/dist/src/dpp/structs/AssetLockProof/Transaction.js +1 -1
  54. package/dist/src/dpp/structs/AssetLockProof/TxIn.d.ts +1 -1
  55. package/dist/src/dpp/structs/AssetLockProof/TxIn.js +1 -1
  56. package/dist/src/dpp/structs/AssetLockProof/TxOut.d.ts +1 -1
  57. package/dist/src/dpp/structs/AssetLockProof/TxOut.js +1 -1
  58. package/dist/src/dpp/structs/AssetLockProof/Witness.d.ts +1 -1
  59. package/dist/src/dpp/structs/AssetLockProof/Witness.js +1 -1
  60. package/dist/src/dpp/structs/Batch/BatchTransition.d.ts +1 -1
  61. package/dist/src/dpp/structs/Batch/BatchTransition.js +1 -1
  62. package/dist/src/dpp/structs/Batch/BatchedTransition.d.ts +3 -2
  63. package/dist/src/dpp/structs/Batch/BatchedTransition.js +1 -1
  64. package/dist/src/dpp/structs/Batch/DocumentBaseTransition.d.ts +3 -3
  65. package/dist/src/dpp/structs/Batch/DocumentBaseTransition.js +3 -3
  66. package/dist/src/dpp/structs/Batch/DocumentTransition.d.ts +2 -1
  67. package/dist/src/dpp/structs/Batch/DocumentTransition.js +4 -1
  68. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentCreateTransition.d.ts +2 -2
  69. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentCreateTransition.js +2 -2
  70. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentDeleteTransition.d.ts +1 -1
  71. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentDeleteTransition.js +1 -1
  72. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentPurchaseTransition.d.ts +1 -1
  73. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentPurchaseTransition.js +1 -1
  74. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentReplaceTransition.d.ts +2 -2
  75. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentReplaceTransition.js +2 -2
  76. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentTransferTransition.d.ts +1 -1
  77. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentTransferTransition.js +1 -1
  78. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentUpdatePriceTransition.d.ts +1 -1
  79. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentUpdatePriceTransition.js +1 -1
  80. package/dist/src/dpp/structs/Batch/PrefundedVotingBalance.d.ts +1 -1
  81. package/dist/src/dpp/structs/Batch/PrefundedVotingBalance.js +1 -1
  82. package/dist/src/dpp/structs/Batch/TokenBaseTransition.d.ts +1 -1
  83. package/dist/src/dpp/structs/Batch/TokenBaseTransition.js +1 -1
  84. package/dist/src/dpp/structs/Batch/TokenPaymentInfo.d.ts +2 -2
  85. package/dist/src/dpp/structs/Batch/TokenPaymentInfo.js +2 -2
  86. package/dist/src/dpp/structs/Batch/TokenPricingSchedule.d.ts +1 -1
  87. package/dist/src/dpp/structs/Batch/TokenPricingSchedule.js +1 -1
  88. package/dist/src/dpp/structs/Batch/TokenTransition.d.ts +3 -2
  89. package/dist/src/dpp/structs/Batch/TokenTransition.js +4 -1
  90. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenBurnTransition.d.ts +1 -1
  91. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenBurnTransition.js +1 -1
  92. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenClaimTransition.d.ts +1 -1
  93. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenClaimTransition.js +1 -1
  94. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenConfigUpdateTransition.d.ts +1 -1
  95. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenConfigUpdateTransition.js +1 -1
  96. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDestroyFrozenFundsTransition.d.ts +1 -1
  97. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDestroyFrozenFundsTransition.js +1 -1
  98. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDirectPurchaseTransition.d.ts +1 -1
  99. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDirectPurchaseTransition.js +1 -1
  100. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenEmergencyActionTransition.d.ts +1 -1
  101. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenEmergencyActionTransition.js +1 -1
  102. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenFreezeTransition.d.ts +1 -1
  103. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenFreezeTransition.js +1 -1
  104. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenMintTransition.d.ts +2 -2
  105. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenMintTransition.js +2 -2
  106. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenSetPriceForDirectPurchaseTransition.d.ts +1 -1
  107. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenSetPriceForDirectPurchaseTransition.js +1 -1
  108. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenTransferTransition.d.ts +4 -1
  109. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenTransferTransition.js +8 -1
  110. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenUnFreezeTransition.d.ts +1 -1
  111. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenUnFreezeTransition.js +1 -1
  112. package/dist/src/dpp/structs/ConsensusError.d.ts +2 -2
  113. package/dist/src/dpp/structs/ConsensusError.js +1 -1
  114. package/dist/src/dpp/structs/ContractBounds.d.ts +1 -1
  115. package/dist/src/dpp/structs/ContractBounds.js +1 -1
  116. package/dist/src/dpp/structs/CoreScript.d.ts +1 -1
  117. package/dist/src/dpp/structs/CoreScript.js +1 -1
  118. package/dist/src/dpp/structs/DataContract.d.ts +9 -6
  119. package/dist/src/dpp/structs/DataContract.js +12 -3
  120. package/dist/src/dpp/structs/DataContractTransitions/DataContractCreateTransition.d.ts +1 -1
  121. package/dist/src/dpp/structs/DataContractTransitions/DataContractCreateTransition.js +1 -1
  122. package/dist/src/dpp/structs/DataContractTransitions/DataContractUpdateTransition.d.ts +1 -1
  123. package/dist/src/dpp/structs/DataContractTransitions/DataContractUpdateTransition.js +1 -1
  124. package/dist/src/dpp/structs/Document.d.ts +3 -3
  125. package/dist/src/dpp/structs/Document.js +3 -3
  126. package/dist/src/dpp/structs/EncryptedNote/PrivateEncryptedNote.d.ts +1 -1
  127. package/dist/src/dpp/structs/EncryptedNote/PrivateEncryptedNote.js +1 -1
  128. package/dist/src/dpp/structs/EncryptedNote/SharedEncryptedNote.d.ts +1 -1
  129. package/dist/src/dpp/structs/EncryptedNote/SharedEncryptedNote.js +1 -1
  130. package/dist/src/dpp/structs/GroupStateTransitionInfo.d.ts +1 -1
  131. package/dist/src/dpp/structs/GroupStateTransitionInfo.js +1 -1
  132. package/dist/src/dpp/structs/Identifier.d.ts +1 -1
  133. package/dist/src/dpp/structs/Identifier.js +1 -1
  134. package/dist/src/dpp/structs/Identity.d.ts +1 -1
  135. package/dist/src/dpp/structs/Identity.js +1 -1
  136. package/dist/src/dpp/structs/IdentityPublicKey.d.ts +2 -1
  137. package/dist/src/dpp/structs/IdentityPublicKey.js +6 -1
  138. package/dist/src/dpp/structs/IdentityPublicKeyInCreation.d.ts +2 -1
  139. package/dist/src/dpp/structs/IdentityPublicKeyInCreation.js +6 -1
  140. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreateTransition.d.ts +1 -1
  141. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreateTransition.js +1 -1
  142. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditTransfer.d.ts +1 -1
  143. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditTransfer.js +1 -1
  144. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditWithdrawalTransition.d.ts +2 -2
  145. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditWithdrawalTransition.js +1 -1
  146. package/dist/src/dpp/structs/IdentityTransitions/IdentityTopUpTransition.d.ts +2 -2
  147. package/dist/src/dpp/structs/IdentityTransitions/IdentityTopUpTransition.js +2 -2
  148. package/dist/src/dpp/structs/IdentityTransitions/IdentityUpdateTransition.d.ts +2 -2
  149. package/dist/src/dpp/structs/IdentityTransitions/IdentityUpdateTransition.js +2 -2
  150. package/dist/src/dpp/structs/InstantLock.d.ts +1 -1
  151. package/dist/src/dpp/structs/InstantLock.js +1 -1
  152. package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.d.ts +1 -1
  153. package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.js +1 -1
  154. package/dist/src/dpp/structs/MasternodeVote/ResourceVoteChoice.d.ts +1 -1
  155. package/dist/src/dpp/structs/MasternodeVote/Vote.d.ts +1 -1
  156. package/dist/src/dpp/structs/MasternodeVote/Vote.js +1 -1
  157. package/dist/src/dpp/structs/MasternodeVote/VotePoll.d.ts +2 -2
  158. package/dist/src/dpp/structs/MasternodeVote/VotePoll.js +3 -3
  159. package/dist/src/dpp/structs/PartialIdentity.d.ts +1 -1
  160. package/dist/src/dpp/structs/PartialIdentity.js +1 -1
  161. package/dist/src/dpp/structs/{Address → PlatformAddress}/AddressWitness.d.ts +3 -3
  162. package/dist/src/dpp/structs/{Address → PlatformAddress}/AddressWitness.js +2 -2
  163. package/dist/src/dpp/structs/{Address → PlatformAddress}/PlatformAddress.d.ts +5 -3
  164. package/dist/src/dpp/structs/{Address → PlatformAddress}/PlatformAddress.js +9 -3
  165. package/dist/src/dpp/structs/PrivateKey.d.ts +1 -1
  166. package/dist/src/dpp/structs/PrivateKey.js +1 -1
  167. package/dist/src/dpp/structs/PublicKey.d.ts +1 -1
  168. package/dist/src/dpp/structs/PublicKey.js +1 -1
  169. package/dist/src/dpp/structs/StateTransition.d.ts +2 -1
  170. package/dist/src/dpp/structs/StateTransition.js +3 -0
  171. package/dist/src/dpp/structs/TokenConfiguration/ActionTaker.d.ts +2 -2
  172. package/dist/src/dpp/structs/TokenConfiguration/ActionTaker.js +1 -1
  173. package/dist/src/dpp/structs/TokenConfiguration/AuthorizedActionTakers.d.ts +1 -1
  174. package/dist/src/dpp/structs/TokenConfiguration/ChangeControlRules.d.ts +1 -1
  175. package/dist/src/dpp/structs/TokenConfiguration/ChangeControlRules.js +1 -1
  176. package/dist/src/dpp/structs/TokenConfiguration/DistributionFunction.d.ts +1 -1
  177. package/dist/src/dpp/structs/TokenConfiguration/Group.d.ts +1 -1
  178. package/dist/src/dpp/structs/TokenConfiguration/Group.js +1 -1
  179. package/dist/src/dpp/structs/TokenConfiguration/RewardDistributionType.d.ts +1 -1
  180. package/dist/src/dpp/structs/TokenConfiguration/TokenConfiguration.d.ts +1 -1
  181. package/dist/src/dpp/structs/TokenConfiguration/TokenConfiguration.js +1 -1
  182. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationChangeItem.d.ts +1 -1
  183. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationConvention.d.ts +1 -1
  184. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationConvention.js +1 -1
  185. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationLocalization.d.ts +1 -1
  186. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationLocalization.js +1 -1
  187. package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRecipient.d.ts +1 -1
  188. package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRules.d.ts +1 -1
  189. package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRules.js +1 -1
  190. package/dist/src/dpp/structs/TokenConfiguration/TokenKeepsHistoryRules.d.ts +1 -1
  191. package/dist/src/dpp/structs/TokenConfiguration/TokenKeepsHistoryRules.js +1 -1
  192. package/dist/src/dpp/structs/TokenConfiguration/TokenMarketplaceRules.d.ts +1 -1
  193. package/dist/src/dpp/structs/TokenConfiguration/TokenMarketplaceRules.js +1 -1
  194. package/dist/src/dpp/structs/TokenConfiguration/TokenPerpetualDistribution.d.ts +1 -1
  195. package/dist/src/dpp/structs/TokenConfiguration/TokenPerpetualDistribution.js +1 -1
  196. package/dist/src/dpp/structs/TokenConfiguration/TokenPreProgrammedDistribution.d.ts +1 -1
  197. package/dist/src/dpp/structs/TokenConfiguration/TokenPreProgrammedDistribution.js +1 -1
  198. package/dist/src/dpp/structs/TokenConfiguration/TokenTradeMode.d.ts +1 -1
  199. package/dist/src/dpp/types.d.ts +50 -40
  200. package/dist/src/dpp/utils.d.ts +4 -3
  201. package/dist/src/dpp/utils.js +38 -6
  202. package/dist/src/dpp/verify/Contested/verifyVotePollVoteStateProof.d.ts +1 -1
  203. package/dist/src/dpp/verify/Contested/verifyVotePollVoteStateProof.js +1 -1
  204. package/dist/src/dpp/verify/Document/verifyDocumentsProof.d.ts +1 -1
  205. package/dist/src/dpp/verify/Document/verifyDocumentsProof.js +1 -1
  206. package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressInfo.d.ts +2 -0
  207. package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressInfo.js +12 -0
  208. package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressesInfos.d.ts +2 -0
  209. package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressesInfos.js +14 -0
  210. package/dist/src/dpp/verify/StateTransition/utils.js +8 -8
  211. package/dist/src/dpp/verify/System/verifyEpochsInfoProof.js +1 -1
  212. package/dist/src/dpp/verify/Tokens/verifyTokenBalancesForIdentitiesProof.js +1 -1
  213. package/dist/src/dpp/verify/Tokens/verifyTokenDirectPurchasePrices.js +1 -1
  214. package/dist/src/dpp/verify/Tokens/verifyTokensBalancesForIdentityProof.js +1 -1
  215. package/dist/src/native.d.ts +3 -0
  216. package/dist/src/native.js +6 -0
  217. package/package.json +17 -28
  218. package/tests/unit/DynamicValue.spec.ts +42 -2
  219. package/tests/unit/Identifier.spec.ts +1 -1
  220. package/tests/unit/Identity.spec.ts +1 -1
  221. package/tests/unit/IdentityPublicKey.spec.ts +1 -1
  222. package/tests/unit/NodeApi.spec.ts +49 -0
  223. package/dist/binaries/pshenmic_dpp.android.node/x86_64/libpshenmic_dpp.so +0 -0
@@ -27,7 +27,7 @@ export class TokenUnFreezeTransitionWASM {
27
27
  this._rawTransition.publicNote = value;
28
28
  }
29
29
  static createFromRawInstance(rawInstance) {
30
- const instance = Object.create(this.prototype);
30
+ const instance = Object.create(TokenUnFreezeTransitionWASM.prototype);
31
31
  instance._rawTransition = rawInstance;
32
32
  return instance;
33
33
  }
@@ -1,8 +1,8 @@
1
- import { ConsensusErrorNAPI } from '../../../binaries/bindingsTypes.js';
1
+ import type { ConsensusErrorNAPI } from '../../../binaries/bindingsTypes.js';
2
2
  export declare class ConsensusErrorWASM {
3
3
  /** @private **/
4
4
  _rawConsensusError: ConsensusErrorNAPI;
5
5
  private constructor();
6
6
  static deserialize(error: Uint8Array): ConsensusErrorWASM;
7
- message(): string;
7
+ get message(): string;
8
8
  }
@@ -16,7 +16,7 @@ export class ConsensusErrorWASM {
16
16
  static deserialize(error) {
17
17
  return new ConsensusErrorWASM(dppProvider.dpp.ConsensusErrorNAPI.deserialize(error));
18
18
  }
19
- message() {
19
+ get message() {
20
20
  return this._rawConsensusError.message;
21
21
  }
22
22
  }
@@ -1,4 +1,4 @@
1
- import { ContractBoundsNAPI } from '../../../binaries/bindingsTypes.js';
1
+ import type { ContractBoundsNAPI } from '../../../binaries/bindingsTypes.js';
2
2
  import { IdentifierLike } from '../types.js';
3
3
  import { IdentifierWASM } from './Identifier.js';
4
4
  export declare class ContractBoundsWASM {
@@ -32,7 +32,7 @@ export class ContractBoundsWASM {
32
32
  return new ContractBoundsWASM(contractId, documentTypeName);
33
33
  }
34
34
  static createFromRawInstance(rawInstance) {
35
- const instance = Object.create(this.prototype);
35
+ const instance = Object.create(ContractBoundsWASM.prototype);
36
36
  instance._rawContractBounds = rawInstance;
37
37
  return instance;
38
38
  }
@@ -1,4 +1,4 @@
1
- import { CoreScriptNAPI } from '../../../binaries/bindingsTypes.js';
1
+ import type { CoreScriptNAPI } from '../../../binaries/bindingsTypes.js';
2
2
  import { NetworkLike } from '../types.js';
3
3
  export declare class CoreScriptWASM {
4
4
  _rawCoreScript: CoreScriptNAPI;
@@ -30,7 +30,7 @@ export class CoreScriptWASM {
30
30
  return CoreScriptWASM.createFromRawInstance(dppProvider.dpp.CoreScriptNAPI.newP2SH(scriptHash));
31
31
  }
32
32
  static createFromRawInstance(rawInstance) {
33
- const instance = Object.create(this.prototype);
33
+ const instance = Object.create(CoreScriptWASM.prototype);
34
34
  instance._rawCoreScript = rawInstance;
35
35
  return instance;
36
36
  }
@@ -1,4 +1,4 @@
1
- import { DataContractNAPI } from '../../../binaries/bindingsTypes.js';
1
+ import type { DataContractNAPI } from '../../../binaries/bindingsTypes.js';
2
2
  import { DataContractGroups, DataContractTokens, IdentifierLike, PlatformVersionLike } from '../types.js';
3
3
  import { IdentifierWASM } from './Identifier.js';
4
4
  export declare class DataContractWASM {
@@ -10,7 +10,9 @@ export declare class DataContractWASM {
10
10
  get version(): number;
11
11
  set version(value: number);
12
12
  get id(): IdentifierWASM;
13
- set id(value: IdentifierWASM);
13
+ set id(value: IdentifierLike);
14
+ get ownerId(): IdentifierWASM;
15
+ set ownerId(value: IdentifierLike);
14
16
  get tokens(): DataContractTokens[];
15
17
  set tokens(tokens: DataContractTokens[]);
16
18
  get groups(): DataContractGroups[];
@@ -19,13 +21,14 @@ export declare class DataContractWASM {
19
21
  set description(value: string | undefined);
20
22
  get keywords(): string[];
21
23
  set keywords(value: string[]);
22
- getSchemas(): object;
23
- getConfig(): object;
24
+ getSchemas(): any;
25
+ getConfig(): any;
26
+ setConfig(value: object, platformVersion?: PlatformVersionLike): void;
24
27
  bytes(platformVersion: PlatformVersionLike): Uint8Array;
25
28
  hex(platformVersion: PlatformVersionLike): string;
26
29
  base64(platformVersion: PlatformVersionLike): string;
27
- toJSON(platformVersion: PlatformVersionLike): object;
28
- toValue(platformVersion: PlatformVersionLike): object;
30
+ toJSON(platformVersion: PlatformVersionLike): any;
31
+ toValue(platformVersion: PlatformVersionLike): any;
29
32
  static fromValue(value: object, fullValidation: boolean, platformVersion?: PlatformVersionLike): DataContractWASM;
30
33
  static fromBytes(bytes: Uint8Array, fullValidation: boolean, platformVersion?: PlatformVersionLike): DataContractWASM;
31
34
  static fromHex(hex: string, fullValidation: boolean, platformVersion?: PlatformVersionLike): DataContractWASM;
@@ -32,7 +32,13 @@ export class DataContractWASM {
32
32
  return IdentifierWASM.createFromRawInstance(this._rawDataContract.id);
33
33
  }
34
34
  set id(value) {
35
- this._rawDataContract.id = value._rawIdentifier;
35
+ this._rawDataContract.id = prepareIdentifierValue(value);
36
+ }
37
+ get ownerId() {
38
+ return IdentifierWASM.createFromRawInstance(this._rawDataContract.ownerId);
39
+ }
40
+ set ownerId(value) {
41
+ this._rawDataContract.ownerId = prepareIdentifierValue(value);
36
42
  }
37
43
  get tokens() {
38
44
  const tokens = this._rawDataContract.tokens;
@@ -73,11 +79,14 @@ export class DataContractWASM {
73
79
  this._rawDataContract.keywords = value;
74
80
  }
75
81
  getSchemas() {
76
- return valueFromDynamicValue(this._rawDataContract.getSchemas());
82
+ return valueFromDynamicValue(this._rawDataContract.getSchemas(), true);
77
83
  }
78
84
  getConfig() {
79
85
  return valueFromDynamicValue(this._rawDataContract.getConfig());
80
86
  }
87
+ setConfig(value, platformVersion) {
88
+ this._rawDataContract.setConfig(valueToDynamicValue(value), valueToDynamicValue(platformVersion));
89
+ }
81
90
  bytes(platformVersion) {
82
91
  return this._rawDataContract.bytes(valueToDynamicValue(platformVersion));
83
92
  }
@@ -109,7 +118,7 @@ export class DataContractWASM {
109
118
  return IdentifierWASM.createFromRawInstance(dppProvider.dpp.DataContractNAPI.generateId(prepareIdentifierValue(ownerId), identityNonce.toString()));
110
119
  }
111
120
  static createFromRawInstance(rawInstance) {
112
- const instance = Object.create(this.prototype);
121
+ const instance = Object.create(DataContractWASM.prototype);
113
122
  instance._rawDataContract = rawInstance;
114
123
  return instance;
115
124
  }
@@ -1,4 +1,4 @@
1
- import { DataContractCreateTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { DataContractCreateTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { DataContractWASM } from '../DataContract.js';
3
3
  import { PlatformVersionLike } from '../../types.js';
4
4
  import { StateTransitionWASM } from '../StateTransition.js';
@@ -48,7 +48,7 @@ export class DataContractCreateTransitionWASM {
48
48
  return DataContractCreateTransitionWASM.createFromRawInstance(dppProvider.dpp.DataContractCreateTransitionNAPI.fromStateTransition(stateTransition._rawStateTransition));
49
49
  }
50
50
  static createFromRawInstance(rawInstance) {
51
- const instance = Object.create(this.prototype);
51
+ const instance = Object.create(DataContractCreateTransitionWASM.prototype);
52
52
  instance._rawDataContractCreateTransition = rawInstance;
53
53
  return instance;
54
54
  }
@@ -1,4 +1,4 @@
1
- import { DataContractUpdateTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { DataContractUpdateTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { DataContractWASM } from '../DataContract.js';
3
3
  import { PlatformVersionLike } from '../../types.js';
4
4
  import { StateTransitionWASM } from '../StateTransition.js';
@@ -48,7 +48,7 @@ export class DataContractUpdateTransitionWASM {
48
48
  return DataContractUpdateTransitionWASM.createFromRawInstance(dppProvider.dpp.DataContractUpdateTransitionNAPI.fromStateTransition(stateTransition._rawStateTransition));
49
49
  }
50
50
  static createFromRawInstance(rawInstance) {
51
- const instance = Object.create(this.prototype);
51
+ const instance = Object.create(DataContractUpdateTransitionWASM.prototype);
52
52
  instance._rawDataContractUpdateTransition = rawInstance;
53
53
  return instance;
54
54
  }
@@ -1,4 +1,4 @@
1
- import { DocumentNAPI } from '../../../binaries/bindingsTypes.js';
1
+ import type { DocumentNAPI } from '../../../binaries/bindingsTypes.js';
2
2
  import { IdentifierLike, PlatformVersionLike } from '../types.js';
3
3
  import { IdentifierWASM } from './Identifier.js';
4
4
  import { DataContractWASM } from './DataContract.js';
@@ -7,14 +7,14 @@ export declare class DocumentWASM {
7
7
  _rawDocument: DocumentNAPI;
8
8
  constructor(documentContent: object, documentTypeName: string, revision: bigint, dataContractId: IdentifierLike, ownerId: IdentifierLike, documentId?: IdentifierLike, creatorId?: IdentifierLike);
9
9
  get id(): IdentifierWASM;
10
- set id(id: IdentifierWASM);
10
+ set id(id: IdentifierLike);
11
11
  get entropy(): Uint8Array | undefined;
12
12
  set entropy(value: Uint8Array | undefined);
13
13
  get dataContractId(): IdentifierWASM;
14
14
  set dataContractId(value: IdentifierLike);
15
15
  get ownerId(): IdentifierWASM;
16
16
  set ownerId(value: IdentifierLike);
17
- get properties(): object;
17
+ get properties(): any;
18
18
  set properties(value: object);
19
19
  get revision(): bigint | undefined;
20
20
  set revision(value: bigint | undefined);
@@ -11,7 +11,7 @@ export class DocumentWASM {
11
11
  return IdentifierWASM.createFromRawInstance(this._rawDocument.id);
12
12
  }
13
13
  set id(id) {
14
- this._rawDocument.id = id._rawIdentifier;
14
+ this._rawDocument.id = prepareIdentifierValue(id);
15
15
  }
16
16
  get entropy() {
17
17
  return this._rawDocument.entropy ?? undefined;
@@ -32,7 +32,7 @@ export class DocumentWASM {
32
32
  this._rawDocument.ownerId = prepareIdentifierValue(value);
33
33
  }
34
34
  get properties() {
35
- return valueFromDynamicValue(this._rawDocument.properties);
35
+ return valueFromDynamicValue(this._rawDocument.properties, true);
36
36
  }
37
37
  set properties(value) {
38
38
  this._rawDocument.properties = valueToDynamicValue(value);
@@ -177,7 +177,7 @@ export class DocumentWASM {
177
177
  return IdentifierWASM.createFromRawInstance(dppProvider.dpp.DocumentNAPI.generateId(documentTypeName, prepareIdentifierValue(ownerId), prepareIdentifierValue(dataContractId), entropy));
178
178
  }
179
179
  static createFromRawInstance(rawInstance) {
180
- const instance = Object.create(this.prototype);
180
+ const instance = Object.create(DocumentWASM.prototype);
181
181
  instance._rawDocument = rawInstance;
182
182
  return instance;
183
183
  }
@@ -1,4 +1,4 @@
1
- import { PrivateEncryptedNoteNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { PrivateEncryptedNoteNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  export declare class PrivateEncryptedNoteWASM {
3
3
  /** @private **/
4
4
  _rawEncryptedNote: PrivateEncryptedNoteNAPI;
@@ -24,7 +24,7 @@ export class PrivateEncryptedNoteWASM {
24
24
  this._rawEncryptedNote.value = value;
25
25
  }
26
26
  static createFromRawInstance(rawInstance) {
27
- const instance = Object.create(this.prototype);
27
+ const instance = Object.create(PrivateEncryptedNoteWASM.prototype);
28
28
  instance._rawEncryptedNote = rawInstance;
29
29
  return instance;
30
30
  }
@@ -1,4 +1,4 @@
1
- import { SharedEncryptedNoteNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { SharedEncryptedNoteNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  export declare class SharedEncryptedNoteWASM {
3
3
  /** @private **/
4
4
  _rawSharedNote: SharedEncryptedNoteNAPI;
@@ -24,7 +24,7 @@ export class SharedEncryptedNoteWASM {
24
24
  this._rawSharedNote.value = value;
25
25
  }
26
26
  static createFromRawInstance(rawInstance) {
27
- const instance = Object.create(this.prototype);
27
+ const instance = Object.create(SharedEncryptedNoteWASM.prototype);
28
28
  instance._rawSharedNote = rawInstance;
29
29
  return instance;
30
30
  }
@@ -1,4 +1,4 @@
1
- import { GroupStateTransitionInfoNAPI } from '../../../binaries/bindingsTypes.js';
1
+ import type { GroupStateTransitionInfoNAPI } from '../../../binaries/bindingsTypes.js';
2
2
  import { IdentifierLike } from '../types.js';
3
3
  import { IdentifierWASM } from './Identifier.js';
4
4
  export declare class GroupStateTransitionInfoWASM {
@@ -26,7 +26,7 @@ export class GroupStateTransitionInfoWASM {
26
26
  this._rawGroupStateTransitionInfo.actionIsProposer = actionIsProposer;
27
27
  }
28
28
  static createFromRawInstance(rawInstance) {
29
- const instance = Object.create(this.prototype);
29
+ const instance = Object.create(GroupStateTransitionInfoWASM.prototype);
30
30
  instance._rawGroupStateTransitionInfo = rawInstance;
31
31
  return instance;
32
32
  }
@@ -1,5 +1,5 @@
1
1
  import { IdentifierLike } from '../types.js';
2
- import { IdentifierNAPI } from '../../../binaries/bindingsTypes.js';
2
+ import type { IdentifierNAPI } from '../../../binaries/bindingsTypes.js';
3
3
  export declare class IdentifierWASM {
4
4
  /** @private **/
5
5
  _rawIdentifier: IdentifierNAPI;
@@ -40,7 +40,7 @@ export class IdentifierWASM {
40
40
  return this.createFromRawInstance(dppProvider.dpp.IdentifierNAPI.fromBytes(id));
41
41
  }
42
42
  static createFromRawInstance(rawInstance) {
43
- const instance = Object.create(this.prototype);
43
+ const instance = Object.create(IdentifierWASM.prototype);
44
44
  instance._rawIdentifier = rawInstance;
45
45
  return instance;
46
46
  }
@@ -1,7 +1,7 @@
1
1
  import { IdentifierWASM } from './Identifier.js';
2
2
  import { IdentityPublicKeyWASM } from './IdentityPublicKey.js';
3
3
  import { IdentifierLike, PlatformVersionLike } from '../types.js';
4
- import { IdentityNAPI } from '../../../binaries/bindingsTypes.js';
4
+ import type { IdentityNAPI } from '../../../binaries/bindingsTypes.js';
5
5
  export declare class IdentityWASM {
6
6
  /** @private **/
7
7
  _rawIdentity: IdentityNAPI;
@@ -63,7 +63,7 @@ export class IdentityWASM {
63
63
  return this._rawIdentity.base64();
64
64
  }
65
65
  static createFromRawInstance(rawInstance) {
66
- const instance = Object.create(this.prototype);
66
+ const instance = Object.create(IdentityWASM.prototype);
67
67
  instance._rawIdentity = rawInstance;
68
68
  return instance;
69
69
  }
@@ -1,5 +1,5 @@
1
1
  import { KeyTypeLike, NetworkLike, PurposeLike, SecurityLevelLike } from '../types.js';
2
- import { IdentityPublicKeyNAPI } from '../../../binaries/bindingsTypes.js';
2
+ import type { IdentityPublicKeyNAPI } from '../../../binaries/bindingsTypes.js';
3
3
  import { KeyType, Purpose, SecurityLevel } from '../enums.js';
4
4
  import { ContractBoundsWASM } from './ContractBounds.js';
5
5
  import { PrivateKeyWASM } from './PrivateKey.js';
@@ -29,6 +29,7 @@ export declare class IdentityPublicKeyWASM {
29
29
  set disabledAt(disabledAt: bigint | number);
30
30
  get contractBounds(): ContractBoundsWASM | undefined;
31
31
  set contractBounds(contractBounds: ContractBoundsWASM | undefined | null);
32
+ getContractBounds(): ContractBoundsWASM | undefined;
32
33
  removeDisabledAt(): void;
33
34
  getPublicKeyHash(): string;
34
35
  isMaster(): boolean;
@@ -84,6 +84,11 @@ export class IdentityPublicKeyWASM {
84
84
  set contractBounds(contractBounds) {
85
85
  this._rawIdentityPublicKey.contractBounds = contractBounds?._rawContractBounds;
86
86
  }
87
+ getContractBounds() {
88
+ if (this._rawIdentityPublicKey.contractBounds != null) {
89
+ return ContractBoundsWASM.createFromRawInstance(this._rawIdentityPublicKey.contractBounds);
90
+ }
91
+ }
87
92
  removeDisabledAt() {
88
93
  this._rawIdentityPublicKey.removeDisabledAt();
89
94
  }
@@ -119,7 +124,7 @@ export class IdentityPublicKeyWASM {
119
124
  return this.createFromRawInstance(rawInstance);
120
125
  }
121
126
  static createFromRawInstance(rawInstance) {
122
- const instance = Object.create(this.prototype);
127
+ const instance = Object.create(IdentityPublicKeyWASM.prototype);
123
128
  instance._rawIdentityPublicKey = rawInstance;
124
129
  return instance;
125
130
  }
@@ -1,4 +1,4 @@
1
- import { IdentityPublicKeyInCreationNAPI } from '../../../binaries/bindingsTypes.js';
1
+ import type { IdentityPublicKeyInCreationNAPI } from '../../../binaries/bindingsTypes.js';
2
2
  import { KeyTypeLike, NetworkLike, PurposeLike, SecurityLevelLike } from '../types.js';
3
3
  import { ContractBoundsWASM } from './ContractBounds.js';
4
4
  import { IdentityPublicKeyWASM } from './IdentityPublicKey.js';
@@ -10,6 +10,7 @@ export declare class IdentityPublicKeyInCreationWASM {
10
10
  toIdentityPublicKey(): IdentityPublicKeyWASM;
11
11
  validatePrivateKey(privateKey: string | Uint8Array | PrivateKeyWASM, network: NetworkLike): boolean;
12
12
  getHash(): Uint8Array;
13
+ getContractBounds(): ContractBoundsWASM | undefined;
13
14
  get contractBounds(): ContractBoundsWASM | undefined;
14
15
  set contractBounds(value: ContractBoundsWASM);
15
16
  get keyId(): number;
@@ -19,6 +19,11 @@ export class IdentityPublicKeyInCreationWASM {
19
19
  getHash() {
20
20
  return this._rawKeyInCreation.getHash();
21
21
  }
22
+ getContractBounds() {
23
+ if (this._rawKeyInCreation.contractBounds != null) {
24
+ return ContractBoundsWASM.createFromRawInstance(this._rawKeyInCreation.contractBounds);
25
+ }
26
+ }
22
27
  get contractBounds() {
23
28
  if (this._rawKeyInCreation.contractBounds != null) {
24
29
  return ContractBoundsWASM.createFromRawInstance(this._rawKeyInCreation.contractBounds);
@@ -70,7 +75,7 @@ export class IdentityPublicKeyInCreationWASM {
70
75
  this._rawKeyInCreation.signature = value;
71
76
  }
72
77
  static createFromRawInstance(rawInstance) {
73
- const instance = Object.create(this.prototype);
78
+ const instance = Object.create(IdentityPublicKeyInCreationWASM.prototype);
74
79
  instance._rawKeyInCreation = rawInstance;
75
80
  return instance;
76
81
  }
@@ -1,4 +1,4 @@
1
- import { IdentityCreateTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { IdentityCreateTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { IdentityPublicKeyInCreationWASM } from '../IdentityPublicKeyInCreation.js';
3
3
  import { AssetLockProofWASM } from '../AssetLockProof/AssetLockProof.js';
4
4
  import { PlatformVersionLike } from '../../types.js';
@@ -62,7 +62,7 @@ export class IdentityCreateTransitionWASM {
62
62
  return IdentityCreateTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityCreateTransitionNAPI.fromStateTransition(stateTransition._rawStateTransition));
63
63
  }
64
64
  static createFromRawInstance(rawInstance) {
65
- const instance = Object.create(this.prototype);
65
+ const instance = Object.create(IdentityCreateTransitionWASM.prototype);
66
66
  instance._rawIdentityCreateTransition = rawInstance;
67
67
  return instance;
68
68
  }
@@ -1,4 +1,4 @@
1
- import { IdentityCreditTransferNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { IdentityCreditTransferNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { IdentifierLike } from '../../types.js';
3
3
  import { IdentifierWASM } from '../Identifier.js';
4
4
  import { StateTransitionWASM } from '../StateTransition.js';
@@ -78,7 +78,7 @@ export class IdentityCreditTransferWASM {
78
78
  return IdentityCreditTransferWASM.createFromRawInstance(dppProvider.dpp.IdentityCreditTransferNAPI.fromStateTransition(stateTransition._rawStateTransition));
79
79
  }
80
80
  static createFromRawInstance(rawInstance) {
81
- const instance = Object.create(this.prototype);
81
+ const instance = Object.create(IdentityCreditTransferWASM.prototype);
82
82
  instance._rawIdentityCreditTransfer = rawInstance;
83
83
  return instance;
84
84
  }
@@ -1,4 +1,4 @@
1
- import { IdentityCreditWithdrawalTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { IdentityCreditWithdrawalTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { IdentifierLike, PoolingLike } from '../../types.js';
3
3
  import { CoreScriptWASM } from '../CoreScript.js';
4
4
  import { IdentifierWASM } from '../Identifier.js';
@@ -13,7 +13,7 @@ export declare class IdentityCreditWithdrawalTransitionWASM {
13
13
  get pooling(): string;
14
14
  set pooling(value: PoolingLike);
15
15
  get identityId(): IdentifierWASM;
16
- set identityId(value: IdentifierWASM);
16
+ set identityId(value: IdentifierLike);
17
17
  get userFeeIncrease(): number;
18
18
  set userFeeIncrease(value: number);
19
19
  get nonce(): bigint;
@@ -107,7 +107,7 @@ export class IdentityCreditWithdrawalTransitionWASM {
107
107
  return IdentityCreditWithdrawalTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityCreditWithdrawalTransitionNAPI.fromStateTransition(stateTransition._rawStateTransition));
108
108
  }
109
109
  static createFromRawInstance(rawInstance) {
110
- const instance = Object.create(this.prototype);
110
+ const instance = Object.create(IdentityCreditWithdrawalTransitionWASM.prototype);
111
111
  instance._rawIdentityCreditWithdrawalTransition = rawInstance;
112
112
  return instance;
113
113
  }
@@ -1,4 +1,4 @@
1
- import { IdentityTopUpTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { IdentityTopUpTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { AssetLockProofWASM } from '../AssetLockProof/AssetLockProof.js';
3
3
  import { IdentifierLike } from '../../types.js';
4
4
  import { IdentifierWASM } from '../Identifier.js';
@@ -10,7 +10,7 @@ export declare class IdentityTopUpTransitionWASM {
10
10
  get userFeeIncrease(): number;
11
11
  set userFeeIncrease(value: number);
12
12
  get identityIdentifier(): IdentifierWASM;
13
- set identityIdentifier(id: IdentifierWASM);
13
+ set identityIdentifier(id: IdentifierLike);
14
14
  get assetLockProof(): AssetLockProofWASM;
15
15
  set assetLockProof(value: AssetLockProofWASM);
16
16
  get signature(): Uint8Array;
@@ -19,7 +19,7 @@ export class IdentityTopUpTransitionWASM {
19
19
  return IdentifierWASM.createFromRawInstance(this._rawIdentityTopUpTransition.identityIdentifier);
20
20
  }
21
21
  set identityIdentifier(id) {
22
- this._rawIdentityTopUpTransition.identityIdentifier = id._rawIdentifier;
22
+ this._rawIdentityTopUpTransition.identityIdentifier = prepareIdentifierValue(id);
23
23
  }
24
24
  get assetLockProof() {
25
25
  return AssetLockProofWASM.createFromRawInstance(this._rawIdentityTopUpTransition.assetLockProof);
@@ -68,7 +68,7 @@ export class IdentityTopUpTransitionWASM {
68
68
  return IdentityTopUpTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityTopUpTransitionNAPI.fromStateTransition(stateTransition._rawStateTransition));
69
69
  }
70
70
  static createFromRawInstance(rawInstance) {
71
- const instance = Object.create(this.prototype);
71
+ const instance = Object.create(IdentityTopUpTransitionWASM.prototype);
72
72
  instance._rawIdentityTopUpTransition = rawInstance;
73
73
  return instance;
74
74
  }
@@ -1,4 +1,4 @@
1
- import { IdentityUpdateTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { IdentityUpdateTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { IdentifierLike } from '../../types.js';
3
3
  import { IdentityPublicKeyInCreationWASM } from '../IdentityPublicKeyInCreation.js';
4
4
  import { IdentifierWASM } from '../Identifier.js';
@@ -13,7 +13,7 @@ export declare class IdentityUpdateTransitionWASM {
13
13
  get nonce(): bigint;
14
14
  set nonce(value: bigint);
15
15
  get identityIdentifier(): IdentifierWASM;
16
- set identityIdentifier(value: IdentifierWASM);
16
+ set identityIdentifier(value: IdentifierLike);
17
17
  get publicKeyIdsToDisable(): number[];
18
18
  set publicKeyIdsToDisable(value: number[]);
19
19
  get publicKeyIdsToAdd(): IdentityPublicKeyInCreationWASM[];
@@ -26,7 +26,7 @@ export class IdentityUpdateTransitionWASM {
26
26
  return IdentifierWASM.createFromRawInstance(this._rawIdentityUpdateTransition.identityIdentifier);
27
27
  }
28
28
  set identityIdentifier(value) {
29
- this._rawIdentityUpdateTransition.identityIdentifier = value._rawIdentifier;
29
+ this._rawIdentityUpdateTransition.identityIdentifier = prepareIdentifierValue(value);
30
30
  }
31
31
  get publicKeyIdsToDisable() {
32
32
  return this._rawIdentityUpdateTransition.publicKeyIdsToDisable;
@@ -101,7 +101,7 @@ export class IdentityUpdateTransitionWASM {
101
101
  return IdentityUpdateTransitionWASM.createFromRawInstance(dppProvider.dpp.IdentityUpdateTransitionNAPI.fromStateTransition(stateTransition._rawStateTransition));
102
102
  }
103
103
  static createFromRawInstance(rawInstance) {
104
- const instance = Object.create(this.prototype);
104
+ const instance = Object.create(IdentityUpdateTransitionWASM.prototype);
105
105
  instance._rawIdentityUpdateTransition = rawInstance;
106
106
  return instance;
107
107
  }
@@ -1,4 +1,4 @@
1
- import { InstantLockNAPI } from '../../../binaries/bindingsTypes.js';
1
+ import type { InstantLockNAPI } from '../../../binaries/bindingsTypes.js';
2
2
  import { OutPointWASM } from './AssetLockProof/OutPoint.js';
3
3
  export declare class InstantLockWASM {
4
4
  _rawInstantLock: InstantLockNAPI;
@@ -36,7 +36,7 @@ export class InstantLockWASM {
36
36
  this._rawInstantLock.blsSignature = sig;
37
37
  }
38
38
  static createFromRawInstance(rawInstance) {
39
- const instance = Object.create(this.prototype);
39
+ const instance = Object.create(InstantLockWASM.prototype);
40
40
  instance._rawInstantLock = rawInstance;
41
41
  return instance;
42
42
  }
@@ -1,4 +1,4 @@
1
- import { MasternodeVoteTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { MasternodeVoteTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { IdentifierLike } from '../../types.js';
3
3
  import { VoteWASM } from './Vote.js';
4
4
  import { IdentifierWASM } from '../Identifier.js';
@@ -89,7 +89,7 @@ export class MasternodeVoteTransitionWASM {
89
89
  return MasternodeVoteTransitionWASM.createFromRawInstance(dppProvider.dpp.MasternodeVoteTransitionNAPI.fromStateTransition(stateTransition._rawStateTransition));
90
90
  }
91
91
  static createFromRawInstance(rawInstance) {
92
- const instance = Object.create(this.prototype);
92
+ const instance = Object.create(MasternodeVoteTransitionWASM.prototype);
93
93
  instance._rawMasternodeVoteTransition = rawInstance;
94
94
  return instance;
95
95
  }
@@ -1,4 +1,4 @@
1
- import { ResourceVoteChoiceNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { ResourceVoteChoiceNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { IdentifierLike } from '../../types.js';
3
3
  import { IdentifierWASM } from '../Identifier.js';
4
4
  export declare class ResourceVoteChoiceWASM {
@@ -1,4 +1,4 @@
1
- import { VoteNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { VoteNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { VotePollWASM } from './VotePoll.js';
3
3
  import { ResourceVoteChoiceWASM } from './ResourceVoteChoice.js';
4
4
  export declare class VoteWASM {
@@ -20,7 +20,7 @@ export class VoteWASM {
20
20
  this._rawVote.resourceVoteChoice = resourceVoteChoice._rawResourceVoteChoice;
21
21
  }
22
22
  static createFromRawInstance(rawInstance) {
23
- const instance = Object.create(this.prototype);
23
+ const instance = Object.create(VoteWASM.prototype);
24
24
  instance._rawVote = rawInstance;
25
25
  return instance;
26
26
  }
@@ -1,4 +1,4 @@
1
- import { VotePollNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { VotePollNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { IdentifierLike } from '../../types.js';
3
3
  import { IdentifierWASM } from '../Identifier.js';
4
4
  export declare class VotePollWASM {
@@ -11,7 +11,7 @@ export declare class VotePollWASM {
11
11
  set documentTypeName(value: string);
12
12
  get indexName(): string;
13
13
  set indexName(value: string);
14
- get indexValues(): any;
14
+ get indexValues(): string[];
15
15
  set indexValues(values: string[]);
16
16
  toString(): string;
17
17
  static createFromRawInstance(rawInstance: VotePollNAPI): VotePollWASM;