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

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 (204) hide show
  1. package/dist/binaries/bindingsTypes.d.ts +48 -23
  2. package/dist/binaries/bindingsTypes.js +4 -3
  3. package/dist/binaries/pshenmic_dpp.android.node/x86_64/libpshenmic_dpp.so +0 -0
  4. package/dist/binaries/pshenmic_dpp.d.ts +6 -1
  5. package/dist/binaries/pshenmic_dpp.js +1 -1
  6. package/dist/binaries/wasm/wasmBytes.js +1 -1
  7. package/dist/binaries/wasm.d.ts +6 -1
  8. package/dist/binaries/wasm.js +1 -1
  9. package/dist/src/dpp/dpp.d.ts +4 -2
  10. package/dist/src/dpp/dpp.js +4 -2
  11. package/dist/src/dpp/enums.d.ts +1 -1
  12. package/dist/src/dpp/enums.js +1 -1
  13. package/dist/src/dpp/structs/AddressTransitions/AddressCreditWithdrawalTransition.d.ts +2 -2
  14. package/dist/src/dpp/structs/AddressTransitions/AddressCreditWithdrawalTransition.js +2 -2
  15. package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.d.ts +2 -2
  16. package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.js +3 -3
  17. package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.d.ts +2 -2
  18. package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.js +3 -3
  19. package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.d.ts +2 -2
  20. package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.js +2 -2
  21. package/dist/src/dpp/structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.d.ts +1 -1
  22. package/dist/src/dpp/structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.js +1 -1
  23. package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.d.ts +2 -2
  24. package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.js +2 -2
  25. package/dist/src/dpp/structs/AddressTransitions/entities/AddressFundsFeeStrategyStep.d.ts +1 -1
  26. package/dist/src/dpp/structs/AddressTransitions/entities/InputAddress.d.ts +5 -4
  27. package/dist/src/dpp/structs/AddressTransitions/entities/InputAddress.js +5 -4
  28. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddress.d.ts +5 -4
  29. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddress.js +5 -4
  30. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddressNullableCredits.d.ts +5 -4
  31. package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddressNullableCredits.js +5 -4
  32. package/dist/src/dpp/structs/AssetLockProof/AssetLockProof.d.ts +1 -1
  33. package/dist/src/dpp/structs/AssetLockProof/AssetLockProof.js +2 -3
  34. package/dist/src/dpp/structs/AssetLockProof/ChainAssetLockProof.d.ts +1 -1
  35. package/dist/src/dpp/structs/AssetLockProof/ChainAssetLockProof.js +2 -2
  36. package/dist/src/dpp/structs/AssetLockProof/InstantAssetLockProof.d.ts +1 -1
  37. package/dist/src/dpp/structs/AssetLockProof/InstantAssetLockProof.js +1 -1
  38. package/dist/src/dpp/structs/AssetLockProof/OutPoint.d.ts +1 -1
  39. package/dist/src/dpp/structs/AssetLockProof/OutPoint.js +1 -1
  40. package/dist/src/dpp/structs/AssetLockProof/Transaction.d.ts +1 -1
  41. package/dist/src/dpp/structs/AssetLockProof/Transaction.js +1 -1
  42. package/dist/src/dpp/structs/AssetLockProof/TxIn.d.ts +1 -1
  43. package/dist/src/dpp/structs/AssetLockProof/TxIn.js +1 -1
  44. package/dist/src/dpp/structs/AssetLockProof/TxOut.d.ts +1 -1
  45. package/dist/src/dpp/structs/AssetLockProof/TxOut.js +1 -1
  46. package/dist/src/dpp/structs/AssetLockProof/Witness.d.ts +1 -1
  47. package/dist/src/dpp/structs/AssetLockProof/Witness.js +1 -1
  48. package/dist/src/dpp/structs/Batch/BatchTransition.d.ts +1 -1
  49. package/dist/src/dpp/structs/Batch/BatchTransition.js +1 -1
  50. package/dist/src/dpp/structs/Batch/BatchedTransition.d.ts +3 -2
  51. package/dist/src/dpp/structs/Batch/BatchedTransition.js +1 -1
  52. package/dist/src/dpp/structs/Batch/DocumentBaseTransition.d.ts +3 -3
  53. package/dist/src/dpp/structs/Batch/DocumentBaseTransition.js +3 -3
  54. package/dist/src/dpp/structs/Batch/DocumentTransition.d.ts +2 -1
  55. package/dist/src/dpp/structs/Batch/DocumentTransition.js +4 -1
  56. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentCreateTransition.d.ts +2 -2
  57. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentCreateTransition.js +2 -2
  58. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentDeleteTransition.d.ts +1 -1
  59. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentDeleteTransition.js +1 -1
  60. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentPurchaseTransition.d.ts +1 -1
  61. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentPurchaseTransition.js +1 -1
  62. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentReplaceTransition.d.ts +2 -2
  63. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentReplaceTransition.js +2 -2
  64. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentTransferTransition.d.ts +1 -1
  65. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentTransferTransition.js +1 -1
  66. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentUpdatePriceTransition.d.ts +1 -1
  67. package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentUpdatePriceTransition.js +1 -1
  68. package/dist/src/dpp/structs/Batch/PrefundedVotingBalance.d.ts +1 -1
  69. package/dist/src/dpp/structs/Batch/PrefundedVotingBalance.js +1 -1
  70. package/dist/src/dpp/structs/Batch/TokenBaseTransition.d.ts +1 -1
  71. package/dist/src/dpp/structs/Batch/TokenBaseTransition.js +1 -1
  72. package/dist/src/dpp/structs/Batch/TokenPaymentInfo.d.ts +2 -2
  73. package/dist/src/dpp/structs/Batch/TokenPaymentInfo.js +2 -2
  74. package/dist/src/dpp/structs/Batch/TokenPricingSchedule.d.ts +1 -1
  75. package/dist/src/dpp/structs/Batch/TokenPricingSchedule.js +1 -1
  76. package/dist/src/dpp/structs/Batch/TokenTransition.d.ts +3 -2
  77. package/dist/src/dpp/structs/Batch/TokenTransition.js +4 -1
  78. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenBurnTransition.d.ts +1 -1
  79. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenBurnTransition.js +1 -1
  80. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenClaimTransition.d.ts +1 -1
  81. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenClaimTransition.js +1 -1
  82. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenConfigUpdateTransition.d.ts +1 -1
  83. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenConfigUpdateTransition.js +1 -1
  84. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDestroyFrozenFundsTransition.d.ts +1 -1
  85. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDestroyFrozenFundsTransition.js +1 -1
  86. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDirectPurchaseTransition.d.ts +1 -1
  87. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDirectPurchaseTransition.js +1 -1
  88. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenEmergencyActionTransition.d.ts +1 -1
  89. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenEmergencyActionTransition.js +1 -1
  90. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenFreezeTransition.d.ts +1 -1
  91. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenFreezeTransition.js +1 -1
  92. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenMintTransition.d.ts +2 -2
  93. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenMintTransition.js +2 -2
  94. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenSetPriceForDirectPurchaseTransition.d.ts +1 -1
  95. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenSetPriceForDirectPurchaseTransition.js +1 -1
  96. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenTransferTransition.d.ts +4 -1
  97. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenTransferTransition.js +8 -1
  98. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenUnFreezeTransition.d.ts +1 -1
  99. package/dist/src/dpp/structs/Batch/TokenTransitions/TokenUnFreezeTransition.js +1 -1
  100. package/dist/src/dpp/structs/ConsensusError.d.ts +2 -2
  101. package/dist/src/dpp/structs/ConsensusError.js +1 -1
  102. package/dist/src/dpp/structs/ContractBounds.d.ts +1 -1
  103. package/dist/src/dpp/structs/ContractBounds.js +1 -1
  104. package/dist/src/dpp/structs/CoreScript.d.ts +1 -1
  105. package/dist/src/dpp/structs/CoreScript.js +1 -1
  106. package/dist/src/dpp/structs/DataContract.d.ts +9 -6
  107. package/dist/src/dpp/structs/DataContract.js +12 -3
  108. package/dist/src/dpp/structs/DataContractTransitions/DataContractCreateTransition.d.ts +1 -1
  109. package/dist/src/dpp/structs/DataContractTransitions/DataContractCreateTransition.js +1 -1
  110. package/dist/src/dpp/structs/DataContractTransitions/DataContractUpdateTransition.d.ts +1 -1
  111. package/dist/src/dpp/structs/DataContractTransitions/DataContractUpdateTransition.js +1 -1
  112. package/dist/src/dpp/structs/Document.d.ts +3 -3
  113. package/dist/src/dpp/structs/Document.js +3 -3
  114. package/dist/src/dpp/structs/EncryptedNote/PrivateEncryptedNote.d.ts +1 -1
  115. package/dist/src/dpp/structs/EncryptedNote/PrivateEncryptedNote.js +1 -1
  116. package/dist/src/dpp/structs/EncryptedNote/SharedEncryptedNote.d.ts +1 -1
  117. package/dist/src/dpp/structs/EncryptedNote/SharedEncryptedNote.js +1 -1
  118. package/dist/src/dpp/structs/GroupStateTransitionInfo.d.ts +1 -1
  119. package/dist/src/dpp/structs/GroupStateTransitionInfo.js +1 -1
  120. package/dist/src/dpp/structs/Identifier.d.ts +1 -1
  121. package/dist/src/dpp/structs/Identifier.js +1 -1
  122. package/dist/src/dpp/structs/Identity.d.ts +1 -1
  123. package/dist/src/dpp/structs/Identity.js +1 -1
  124. package/dist/src/dpp/structs/IdentityPublicKey.d.ts +2 -1
  125. package/dist/src/dpp/structs/IdentityPublicKey.js +6 -1
  126. package/dist/src/dpp/structs/IdentityPublicKeyInCreation.d.ts +2 -1
  127. package/dist/src/dpp/structs/IdentityPublicKeyInCreation.js +6 -1
  128. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreateTransition.d.ts +1 -1
  129. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreateTransition.js +1 -1
  130. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditTransfer.d.ts +1 -1
  131. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditTransfer.js +1 -1
  132. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditWithdrawalTransition.d.ts +2 -2
  133. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditWithdrawalTransition.js +1 -1
  134. package/dist/src/dpp/structs/IdentityTransitions/IdentityTopUpTransition.d.ts +2 -2
  135. package/dist/src/dpp/structs/IdentityTransitions/IdentityTopUpTransition.js +2 -2
  136. package/dist/src/dpp/structs/IdentityTransitions/IdentityUpdateTransition.d.ts +2 -2
  137. package/dist/src/dpp/structs/IdentityTransitions/IdentityUpdateTransition.js +2 -2
  138. package/dist/src/dpp/structs/InstantLock.d.ts +1 -1
  139. package/dist/src/dpp/structs/InstantLock.js +1 -1
  140. package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.d.ts +1 -1
  141. package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.js +1 -1
  142. package/dist/src/dpp/structs/MasternodeVote/ResourceVoteChoice.d.ts +1 -1
  143. package/dist/src/dpp/structs/MasternodeVote/Vote.d.ts +1 -1
  144. package/dist/src/dpp/structs/MasternodeVote/Vote.js +1 -1
  145. package/dist/src/dpp/structs/MasternodeVote/VotePoll.d.ts +2 -2
  146. package/dist/src/dpp/structs/MasternodeVote/VotePoll.js +3 -3
  147. package/dist/src/dpp/structs/PartialIdentity.d.ts +1 -1
  148. package/dist/src/dpp/structs/PartialIdentity.js +1 -1
  149. package/dist/src/dpp/structs/{Address → PlatformAddress}/AddressWitness.d.ts +3 -3
  150. package/dist/src/dpp/structs/{Address → PlatformAddress}/AddressWitness.js +2 -2
  151. package/dist/src/dpp/structs/{Address → PlatformAddress}/PlatformAddress.d.ts +5 -3
  152. package/dist/src/dpp/structs/{Address → PlatformAddress}/PlatformAddress.js +9 -3
  153. package/dist/src/dpp/structs/PrivateKey.d.ts +1 -1
  154. package/dist/src/dpp/structs/PrivateKey.js +1 -1
  155. package/dist/src/dpp/structs/PublicKey.d.ts +1 -1
  156. package/dist/src/dpp/structs/PublicKey.js +1 -1
  157. package/dist/src/dpp/structs/StateTransition.d.ts +2 -1
  158. package/dist/src/dpp/structs/StateTransition.js +3 -0
  159. package/dist/src/dpp/structs/TokenConfiguration/ActionTaker.d.ts +2 -2
  160. package/dist/src/dpp/structs/TokenConfiguration/ActionTaker.js +1 -1
  161. package/dist/src/dpp/structs/TokenConfiguration/AuthorizedActionTakers.d.ts +1 -1
  162. package/dist/src/dpp/structs/TokenConfiguration/ChangeControlRules.d.ts +1 -1
  163. package/dist/src/dpp/structs/TokenConfiguration/ChangeControlRules.js +1 -1
  164. package/dist/src/dpp/structs/TokenConfiguration/DistributionFunction.d.ts +1 -1
  165. package/dist/src/dpp/structs/TokenConfiguration/Group.d.ts +1 -1
  166. package/dist/src/dpp/structs/TokenConfiguration/Group.js +1 -1
  167. package/dist/src/dpp/structs/TokenConfiguration/RewardDistributionType.d.ts +1 -1
  168. package/dist/src/dpp/structs/TokenConfiguration/TokenConfiguration.d.ts +1 -1
  169. package/dist/src/dpp/structs/TokenConfiguration/TokenConfiguration.js +1 -1
  170. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationChangeItem.d.ts +1 -1
  171. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationConvention.d.ts +1 -1
  172. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationConvention.js +1 -1
  173. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationLocalization.d.ts +1 -1
  174. package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationLocalization.js +1 -1
  175. package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRecipient.d.ts +1 -1
  176. package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRules.d.ts +1 -1
  177. package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRules.js +1 -1
  178. package/dist/src/dpp/structs/TokenConfiguration/TokenKeepsHistoryRules.d.ts +1 -1
  179. package/dist/src/dpp/structs/TokenConfiguration/TokenKeepsHistoryRules.js +1 -1
  180. package/dist/src/dpp/structs/TokenConfiguration/TokenMarketplaceRules.d.ts +1 -1
  181. package/dist/src/dpp/structs/TokenConfiguration/TokenMarketplaceRules.js +1 -1
  182. package/dist/src/dpp/structs/TokenConfiguration/TokenPerpetualDistribution.d.ts +1 -1
  183. package/dist/src/dpp/structs/TokenConfiguration/TokenPerpetualDistribution.js +1 -1
  184. package/dist/src/dpp/structs/TokenConfiguration/TokenPreProgrammedDistribution.d.ts +1 -1
  185. package/dist/src/dpp/structs/TokenConfiguration/TokenPreProgrammedDistribution.js +1 -1
  186. package/dist/src/dpp/structs/TokenConfiguration/TokenTradeMode.d.ts +1 -1
  187. package/dist/src/dpp/types.d.ts +50 -40
  188. package/dist/src/dpp/utils.d.ts +4 -3
  189. package/dist/src/dpp/utils.js +38 -6
  190. package/dist/src/dpp/verify/Contested/verifyVotePollVoteStateProof.d.ts +1 -1
  191. package/dist/src/dpp/verify/Contested/verifyVotePollVoteStateProof.js +1 -1
  192. package/dist/src/dpp/verify/Document/verifyDocumentsProof.d.ts +1 -1
  193. package/dist/src/dpp/verify/Document/verifyDocumentsProof.js +1 -1
  194. package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressInfo.d.ts +2 -0
  195. package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressInfo.js +12 -0
  196. package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressesInfos.d.ts +2 -0
  197. package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressesInfos.js +14 -0
  198. package/dist/src/dpp/verify/StateTransition/utils.js +8 -8
  199. package/dist/src/dpp/verify/System/verifyEpochsInfoProof.js +1 -1
  200. package/dist/src/dpp/verify/Tokens/verifyTokenBalancesForIdentitiesProof.js +1 -1
  201. package/dist/src/dpp/verify/Tokens/verifyTokenDirectPurchasePrices.js +1 -1
  202. package/dist/src/dpp/verify/Tokens/verifyTokensBalancesForIdentityProof.js +1 -1
  203. package/package.json +3 -3
  204. package/tests/unit/DynamicValue.spec.ts +40 -0
@@ -1,5 +1,5 @@
1
1
  import { dppProvider } from '../../provider.js';
2
- import { prepareIdentifierValue, valueFromDynamicValue, valueToDynamicValue } from '../../utils.js';
2
+ import { prepareIdentifierValue, valueToDynamicValue } from '../../utils.js';
3
3
  import { IdentifierWASM } from '../Identifier.js';
4
4
  export class VotePollWASM {
5
5
  /** @private **/
@@ -26,7 +26,7 @@ export class VotePollWASM {
26
26
  this._rawVotePollWASM.indexName = value;
27
27
  }
28
28
  get indexValues() {
29
- return valueFromDynamicValue(new dppProvider.dpp.DynamicValue(this._rawVotePollWASM.indexValues));
29
+ return this._rawVotePollWASM.indexValues;
30
30
  }
31
31
  set indexValues(values) {
32
32
  this._rawVotePollWASM.indexValues = valueToDynamicValue(values);
@@ -35,7 +35,7 @@ export class VotePollWASM {
35
35
  return this._rawVotePollWASM.toString();
36
36
  }
37
37
  static createFromRawInstance(rawInstance) {
38
- const instance = Object.create(this.prototype);
38
+ const instance = Object.create(VotePollWASM.prototype);
39
39
  instance._rawVotePollWASM = rawInstance;
40
40
  return instance;
41
41
  }
@@ -1,4 +1,4 @@
1
- import { PartialIdentityNAPI } from '../../../binaries/bindingsTypes.js';
1
+ import type { PartialIdentityNAPI } from '../../../binaries/bindingsTypes.js';
2
2
  import { IdentifierLike } from '../types.js';
3
3
  import { IdentityPublicKeyWASM } from './IdentityPublicKey.js';
4
4
  import { IdentifierWASM } from './Identifier.js';
@@ -62,7 +62,7 @@ export class PartialIdentityWASM {
62
62
  this._rawPartialIdentity.notFoundPublicKeys = keys;
63
63
  }
64
64
  static createFromRawInstance(rawInstance) {
65
- const instance = Object.create(this.prototype);
65
+ const instance = Object.create(PartialIdentityWASM.prototype);
66
66
  instance._rawPartialIdentity = rawInstance;
67
67
  return instance;
68
68
  }
@@ -1,11 +1,11 @@
1
- import { AddressWitnessNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { AddressWitnessNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { AddressWitnessP2PKH, AddressWitnessP2SH } from '../../types.js';
3
3
  export declare class AddressWitnessWASM {
4
4
  /** @private **/
5
5
  _rawWitness: AddressWitnessNAPI;
6
6
  private constructor();
7
- P2PKH(signature: Uint8Array): AddressWitnessWASM;
8
- P2SH(signatures: Uint8Array[], redeemScript: Uint8Array): AddressWitnessWASM;
7
+ static P2PKH(signature: Uint8Array): AddressWitnessWASM;
8
+ static P2SH(signatures: Uint8Array[], redeemScript: Uint8Array): AddressWitnessWASM;
9
9
  getType(): string;
10
10
  getValue(): AddressWitnessP2PKH | AddressWitnessP2SH;
11
11
  static createFromRawInstance(rawInstance: AddressWitnessNAPI): AddressWitnessWASM;
@@ -5,10 +5,10 @@ export class AddressWitnessWASM {
5
5
  constructor(witness) {
6
6
  this._rawWitness = witness;
7
7
  }
8
- P2PKH(signature) {
8
+ static P2PKH(signature) {
9
9
  return AddressWitnessWASM.createFromRawInstance(dppProvider.dpp.AddressWitnessNAPI.P2PKH(signature));
10
10
  }
11
- P2SH(signatures, redeemScript) {
11
+ static P2SH(signatures, redeemScript) {
12
12
  return AddressWitnessWASM.createFromRawInstance(dppProvider.dpp.AddressWitnessNAPI.P2SH(signatures, redeemScript));
13
13
  }
14
14
  getType() {
@@ -1,14 +1,16 @@
1
- import { PlatformAddressNAPI } from '../../../../binaries/bindingsTypes.js';
2
- import { NetworkLike } from '../../types.js';
1
+ import type { PlatformAddressNAPI } from '../../../../binaries/bindingsTypes.js';
2
+ import { NetworkLike, PlatformAddressLike } from '../../types.js';
3
3
  export declare class PlatformAddressWASM {
4
4
  /** @private **/
5
5
  _rawPlatformAddress: PlatformAddressNAPI;
6
- constructor(address: Uint8Array);
6
+ constructor(address: PlatformAddressLike);
7
7
  bytes(): Uint8Array;
8
8
  toAddress(network: NetworkLike): string;
9
9
  toBech32m(network: NetworkLike): string;
10
10
  isP2PKH(): boolean;
11
11
  isP2SH(): boolean;
12
12
  hash(): Uint8Array;
13
+ static fromBech32m(bech32m: string): PlatformAddressWASM;
14
+ static fromBytes(bytes: Uint8Array): PlatformAddressWASM;
13
15
  static createFromRawInstance(rawInstance: PlatformAddressNAPI): PlatformAddressWASM;
14
16
  }
@@ -1,10 +1,10 @@
1
1
  import { dppProvider } from '../../provider.js';
2
- import { valueToDynamicValue } from '../../utils.js';
2
+ import { preparePlatformAddressValue, valueToDynamicValue } from '../../utils.js';
3
3
  export class PlatformAddressWASM {
4
4
  /** @private **/
5
5
  _rawPlatformAddress;
6
6
  constructor(address) {
7
- this._rawPlatformAddress = new dppProvider.dpp.PlatformAddressNAPI(address);
7
+ this._rawPlatformAddress = new dppProvider.dpp.PlatformAddressNAPI(preparePlatformAddressValue(address));
8
8
  }
9
9
  bytes() {
10
10
  return this._rawPlatformAddress.bytes();
@@ -24,8 +24,14 @@ export class PlatformAddressWASM {
24
24
  hash() {
25
25
  return this._rawPlatformAddress.hash();
26
26
  }
27
+ static fromBech32m(bech32m) {
28
+ return PlatformAddressWASM.createFromRawInstance(dppProvider.dpp.PlatformAddressNAPI.fromBech32m(bech32m));
29
+ }
30
+ static fromBytes(bytes) {
31
+ return PlatformAddressWASM.createFromRawInstance(dppProvider.dpp.PlatformAddressNAPI.fromBytes(bytes));
32
+ }
27
33
  static createFromRawInstance(rawInstance) {
28
- const instance = Object.create(this.prototype);
34
+ const instance = Object.create(PlatformAddressWASM.prototype);
29
35
  instance._rawPlatformAddress = rawInstance;
30
36
  return instance;
31
37
  }
@@ -1,4 +1,4 @@
1
- import { PrivateKeyNAPI } from '../../../binaries/bindingsTypes.js';
1
+ import type { PrivateKeyNAPI } from '../../../binaries/bindingsTypes.js';
2
2
  import { NetworkLike } from '../types.js';
3
3
  import { PublicKeyWASM } from './PublicKey.js';
4
4
  export declare class PrivateKeyWASM {
@@ -41,7 +41,7 @@ export class PrivateKeyWASM {
41
41
  return PrivateKeyWASM.createFromRawInstance(dppProvider.dpp.PrivateKeyNAPI.fromHex(hex, valueToDynamicValue(network)));
42
42
  }
43
43
  static createFromRawInstance(rawInstance) {
44
- const instance = Object.create(this.prototype);
44
+ const instance = Object.create(PrivateKeyWASM.prototype);
45
45
  instance._rawPrivateKey = rawInstance;
46
46
  return instance;
47
47
  }
@@ -1,4 +1,4 @@
1
- import { PublicKeyNAPI } from '../../../binaries/bindingsTypes.js';
1
+ import type { PublicKeyNAPI } from '../../../binaries/bindingsTypes.js';
2
2
  export declare class PublicKeyWASM {
3
3
  /** @private **/
4
4
  _rawPublicKey: PublicKeyNAPI;
@@ -30,7 +30,7 @@ export class PublicKeyWASM {
30
30
  return PublicKeyWASM.createFromRawInstance(dppProvider.dpp.PublicKeyNAPI.fromBytes(bytes));
31
31
  }
32
32
  static createFromRawInstance(rawInstance) {
33
- const instance = Object.create(this.prototype);
33
+ const instance = Object.create(PublicKeyWASM.prototype);
34
34
  instance._rawPublicKey = rawInstance;
35
35
  return instance;
36
36
  }
@@ -1,4 +1,4 @@
1
- import { StateTransitionNAPI } from '../../../binaries/bindingsTypes.js';
1
+ import type { StateTransitionNAPI } from '../../../binaries/bindingsTypes.js';
2
2
  import { PrivateKeyWASM } from './PrivateKey.js';
3
3
  import { IdentityPublicKeyWASM } from './IdentityPublicKey.js';
4
4
  import { IdentifierLike, KeyTypeLike, PurposeLike } from '../types.js';
@@ -28,6 +28,7 @@ export declare class StateTransitionWASM {
28
28
  setOwnerId(ownerId: IdentifierLike): void;
29
29
  setIdentityContractNonce(nonce: bigint): void;
30
30
  setIdentityNonce(nonce: bigint): void;
31
+ getSignableBytes(): Uint8Array;
31
32
  bytes(): Uint8Array;
32
33
  hex(): string;
33
34
  base64(): string;
@@ -76,6 +76,9 @@ export class StateTransitionWASM {
76
76
  setIdentityNonce(nonce) {
77
77
  this._rawStateTransition.setIdentityNonce(nonce.toString());
78
78
  }
79
+ getSignableBytes() {
80
+ return this._rawStateTransition.getSignableBytes();
81
+ }
79
82
  bytes() {
80
83
  return this._rawStateTransition.bytes();
81
84
  }
@@ -1,4 +1,4 @@
1
- import { ActionTakerNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { ActionTakerNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { IdentifierLike } from '../../types.js';
3
3
  import { IdentifierWASM } from '../Identifier.js';
4
4
  export declare class ActionTakerWASM {
@@ -7,6 +7,6 @@ export declare class ActionTakerWASM {
7
7
  constructor(value: IdentifierLike | IdentifierLike[]);
8
8
  getType(): string;
9
9
  get value(): IdentifierWASM | IdentifierWASM[];
10
- set value(value: IdentifierWASM | IdentifierWASM[]);
10
+ set value(value: IdentifierLike | IdentifierLike[]);
11
11
  static createFromRawInstance(rawInstance: ActionTakerNAPI): ActionTakerWASM;
12
12
  }
@@ -37,7 +37,7 @@ export class ActionTakerWASM {
37
37
  this._rawActionTaker.value = normalValue;
38
38
  }
39
39
  static createFromRawInstance(rawInstance) {
40
- const instance = Object.create(this.prototype);
40
+ const instance = Object.create(ActionTakerWASM.prototype);
41
41
  instance._rawActionTaker = rawInstance;
42
42
  return instance;
43
43
  }
@@ -1,4 +1,4 @@
1
- import { AuthorizedActionTakersNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { AuthorizedActionTakersNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { IdentifierLike } from '../../types.js';
3
3
  import { IdentifierWASM } from '../Identifier.js';
4
4
  export declare class AuthorizedActionTakersWASM {
@@ -1,4 +1,4 @@
1
- import { ChangeControlRulesNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { ChangeControlRulesNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { AuthorizedActionTakersWASM } from './AuthorizedActionTakers.js';
3
3
  import { ActionGoalLike, IdentifierLike } from '../../types.js';
4
4
  import { GroupWASM } from './Group.js';
@@ -45,7 +45,7 @@ export class ChangeControlRulesWASM {
45
45
  return this._rawChangeControlRules.canChangeAdminActionTakers(adminActionTakers._rawAuthorizedActionTakers, prepareIdentifierValue(contractOwnerId), mainGroup, normalGroups, actionTaker._rawActionTaker, valueToDynamicValue(goal));
46
46
  }
47
47
  static createFromRawInstance(rawInstance) {
48
- const instance = Object.create(this.prototype);
48
+ const instance = Object.create(ChangeControlRulesWASM.prototype);
49
49
  instance._rawChangeControlRules = rawInstance;
50
50
  return instance;
51
51
  }
@@ -1,4 +1,4 @@
1
- import { DistributionFunctionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { DistributionFunctionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { DistributionExponential, DistributionFixedAmount, DistributionInvertedLogarithmic, DistributionLinear, DistributionLogarithmic, DistributionPolynomial, DistributionRandom, DistributionStepDecreasingAmount, DistributionStepwise } from '../../types.js';
3
3
  export declare class DistributionFunctionWASM {
4
4
  /** @private **/
@@ -1,4 +1,4 @@
1
- import { GroupNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { GroupNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { IdentifierLike } from '../../types.js';
3
3
  export declare class GroupWASM {
4
4
  /** @private **/
@@ -37,7 +37,7 @@ export class GroupWASM {
37
37
  this._rawGroup.setMemberRequiredPower(prepareIdentifierValue(member), power);
38
38
  }
39
39
  static createFromRawInstance(rawInstance) {
40
- const instance = Object.create(this.prototype);
40
+ const instance = Object.create(GroupWASM.prototype);
41
41
  instance._rawGroup = rawInstance;
42
42
  return instance;
43
43
  }
@@ -1,4 +1,4 @@
1
- import { RewardDistributionTypeNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { RewardDistributionTypeNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { DistributionFunctionWASM } from './DistributionFunction.js';
3
3
  import { RewardDistribution } from '../../types.js';
4
4
  export declare class RewardDistributionTypeWASM {
@@ -1,4 +1,4 @@
1
- import { TokenConfigurationNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { TokenConfigurationNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { TokenConfigurationConventionWASM } from './TokenConfigurationConvention.js';
3
3
  import { ChangeControlRulesWASM } from './ChangeControlRules.js';
4
4
  import { TokenKeepsHistoryRulesWASM } from './TokenKeepsHistoryRules.js';
@@ -132,7 +132,7 @@ export class TokenConfigurationWASM {
132
132
  return IdentifierWASM.createFromRawInstance(dppProvider.dpp.TokenConfigurationNAPI.calculateTokenId(prepareIdentifierValue(contractId), tokenPosition));
133
133
  }
134
134
  static createFromRawInstance(rawInstance) {
135
- const instance = Object.create(this.prototype);
135
+ const instance = Object.create(TokenConfigurationWASM.prototype);
136
136
  instance._rawTokenConfiguration = rawInstance;
137
137
  return instance;
138
138
  }
@@ -1,4 +1,4 @@
1
- import { TokenConfigurationChangeItemNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { TokenConfigurationChangeItemNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { TokenConfigurationConventionWASM } from './TokenConfigurationConvention.js';
3
3
  import { AuthorizedActionTakersWASM } from './AuthorizedActionTakers.js';
4
4
  import { TokenPerpetualDistributionWASM } from './TokenPerpetualDistribution.js';
@@ -1,4 +1,4 @@
1
- import { TokenConfigurationConventionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { TokenConfigurationConventionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { ISO639_CODES } from '../../types.js';
3
3
  import { TokenConfigurationLocalizationWASM } from './TokenConfigurationLocalization.js';
4
4
  export declare class TokenConfigurationConventionWASM {
@@ -40,7 +40,7 @@ export class TokenConfigurationConventionWASM {
40
40
  this._rawTokenConfigurationConvention.localizations = normalLocalization;
41
41
  }
42
42
  static createFromRawInstance(rawInstance) {
43
- const instance = Object.create(this.prototype);
43
+ const instance = Object.create(TokenConfigurationConventionWASM.prototype);
44
44
  instance._rawTokenConfigurationConvention = rawInstance;
45
45
  return instance;
46
46
  }
@@ -1,4 +1,4 @@
1
- import { TokenConfigurationLocalizationNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { TokenConfigurationLocalizationNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { TokenConfigurationLocalizationJson } from '../../types.js';
3
3
  export declare class TokenConfigurationLocalizationWASM {
4
4
  /** @private **/
@@ -27,7 +27,7 @@ export class TokenConfigurationLocalizationWASM {
27
27
  return this._rawTokenConfigurationLocalization.toJSON();
28
28
  }
29
29
  static createFromRawInstance(rawInstance) {
30
- const instance = Object.create(this.prototype);
30
+ const instance = Object.create(TokenConfigurationLocalizationWASM.prototype);
31
31
  instance._rawTokenConfigurationLocalization = rawInstance;
32
32
  return instance;
33
33
  }
@@ -1,4 +1,4 @@
1
- import { TokenDistributionRecipientNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { TokenDistributionRecipientNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { IdentifierLike } from '../../types.js';
3
3
  import { IdentifierWASM } from '../Identifier.js';
4
4
  export declare class TokenDistributionRecipientWASM {
@@ -1,4 +1,4 @@
1
- import { TokenDistributionRulesNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { TokenDistributionRulesNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { TokenPerpetualDistributionWASM } from './TokenPerpetualDistribution.js';
3
3
  import { ChangeControlRulesWASM } from './ChangeControlRules.js';
4
4
  import { TokenPreProgrammedDistributionWASM } from './TokenPreProgrammedDistribution.js';
@@ -68,7 +68,7 @@ export class TokenDistributionRulesWASM {
68
68
  this._rawTokenDistributionRules.changeDirectPurchasePricingRules = changeDirectPurchasePricingRules._rawChangeControlRules;
69
69
  }
70
70
  static createFromRawInstance(rawInstance) {
71
- const instance = Object.create(this.prototype);
71
+ const instance = Object.create(TokenDistributionRulesWASM.prototype);
72
72
  instance._rawTokenDistributionRules = rawInstance;
73
73
  return instance;
74
74
  }
@@ -1,4 +1,4 @@
1
- import { TokenKeepsHistoryRulesNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { TokenKeepsHistoryRulesNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  export declare class TokenKeepsHistoryRulesWASM {
3
3
  /** @private **/
4
4
  _rawTokenKeepsHistoryRules: TokenKeepsHistoryRulesNAPI;
@@ -42,7 +42,7 @@ export class TokenKeepsHistoryRulesWASM {
42
42
  this._rawTokenKeepsHistoryRules.keepsDirectPurchaseHistory = keepsDirectPurchaseHistory;
43
43
  }
44
44
  static createFromRawInstance(rawInstance) {
45
- const instance = Object.create(this.prototype);
45
+ const instance = Object.create(TokenKeepsHistoryRulesWASM.prototype);
46
46
  instance._rawTokenKeepsHistoryRules = rawInstance;
47
47
  return instance;
48
48
  }
@@ -1,4 +1,4 @@
1
- import { TokenMarketplaceRulesNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { TokenMarketplaceRulesNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { TokenTradeModeWASM } from './TokenTradeMode.js';
3
3
  import { ChangeControlRulesWASM } from './ChangeControlRules.js';
4
4
  export declare class TokenMarketplaceRulesWASM {
@@ -20,7 +20,7 @@ export class TokenMarketplaceRulesWASM {
20
20
  this._rawTokenMarketplaceRules.tradeModeChangeRules = value._rawChangeControlRules;
21
21
  }
22
22
  static createFromRawInstance(rawInstance) {
23
- const instance = Object.create(this.prototype);
23
+ const instance = Object.create(TokenMarketplaceRulesWASM.prototype);
24
24
  instance._rawTokenMarketplaceRules = rawInstance;
25
25
  return instance;
26
26
  }
@@ -1,4 +1,4 @@
1
- import { TokenPerpetualDistributionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { TokenPerpetualDistributionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { RewardDistributionTypeWASM } from './RewardDistributionType.js';
3
3
  import { TokenDistributionRecipientWASM } from './TokenDistributionRecipient.js';
4
4
  export declare class TokenPerpetualDistributionWASM {
@@ -20,7 +20,7 @@ export class TokenPerpetualDistributionWASM {
20
20
  this._rawTokenPerpetualDistribution.distributionRecipient = value._rawTokenDistributionRecipient;
21
21
  }
22
22
  static createFromRawInstance(rawInstance) {
23
- const instance = Object.create(this.prototype);
23
+ const instance = Object.create(TokenPerpetualDistributionWASM.prototype);
24
24
  instance._rawTokenPerpetualDistribution = rawInstance;
25
25
  return instance;
26
26
  }
@@ -1,4 +1,4 @@
1
- import { TokenPreProgrammedDistributionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { TokenPreProgrammedDistributionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  export declare class TokenPreProgrammedDistributionWASM {
3
3
  /** @private **/
4
4
  _rawTokenPreProgrammedDistribution: TokenPreProgrammedDistributionNAPI;
@@ -35,7 +35,7 @@ export class TokenPreProgrammedDistributionWASM {
35
35
  this._rawTokenPreProgrammedDistribution.distributions = objectToDistributionArray(distributions);
36
36
  }
37
37
  static createFromRawInstance(rawInstance) {
38
- const instance = Object.create(this.prototype);
38
+ const instance = Object.create(TokenPreProgrammedDistributionWASM.prototype);
39
39
  instance._rawTokenPreProgrammedDistribution = rawInstance;
40
40
  return instance;
41
41
  }
@@ -1,4 +1,4 @@
1
- import { TokenTradeModeNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { TokenTradeModeNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  export declare class TokenTradeModeWASM {
3
3
  /** @private **/
4
4
  _rawTokenTradeMode: TokenTradeModeNAPI;
@@ -1,6 +1,5 @@
1
- import * as protocol from '../../binaries/bindingsTypes.js';
2
- import { AddressWitnessP2pkhNAPI, AddressWitnessP2shNAPI, DataContractNAPI, DistributionLinearNAPI, DistributionExponentialNAPI, DistributionFixedAmountNAPI, DistributionInvertedLogarithmicNAPI, DistributionLogarithmicNAPI, DistributionPolynomialNAPI, DistributionRandomNAPI, DistributionStepDecreasingAmountNAPI, DocumentNAPI, IdentifierNAPI, IdentityNAPI, PartialIdentityNAPI, TokenConfigurationLocalizationJsonNAPI, TokenStatusNAPI, VerifiedAddressInfosNAPI, VerifiedBalanceTransferNAPI, VerifiedDocumentNAPI, VerifiedIdentityBalanceNAPI, VerifiedIdentityFullWithAddressInfosNAPI, VerifiedIdentityTokenInfoNAPI, VerifiedIdentityWithAddressInfosNAPI, VerifiedTokenGroupActionWithDocumentNAPI, VerifiedTokenGroupActionWithTokenBalanceNAPI, VerifiedTokenGroupActionWithTokenIdentityInfoNAPI, VerifiedTokenGroupActionWithTokenPricingScheduleNAPI, VerifiedTokenPricingScheduleNAPI, VoteNAPI } from '../../binaries/bindingsTypes.js';
3
- import { ActionGoal, AssetLockProofType, GasFeesPaidBy, KeyType, NetworkWASM, PlatformVersionWASM, Pooling, Purpose, SecurityLevel, TokenDistributionType, TokenEmergencyAction, VoteStateResultType } from './enums.js';
1
+ import type * as protocol from '../../binaries/bindingsTypes.js';
2
+ import { ActionGoal, AssetLockProofType, GasFeesPaidByWASM, KeyType, NetworkWASM, PlatformVersionWASM, PoolingWASM, Purpose, SecurityLevel, TokenDistributionType, TokenEmergencyActionWASM, VoteStateResultType } from './enums.js';
4
3
  import { IdentifierWASM } from './structs/Identifier.js';
5
4
  import { languageCodes } from './constants.js';
6
5
  import { DistributionFunctionWASM } from './structs/TokenConfiguration/DistributionFunction.js';
@@ -29,38 +28,38 @@ import { PartialIdentityWASM } from './structs/PartialIdentity.js';
29
28
  import { DocumentWASM } from './structs/Document.js';
30
29
  import { VoteWASM } from './structs/MasternodeVote/Vote.js';
31
30
  import { TokenPricingScheduleWASM } from './structs/Batch/TokenPricingSchedule.js';
32
- import { PlatformAddressWASM } from './structs/Address/PlatformAddress.js';
31
+ import { PlatformAddressWASM } from './structs/PlatformAddress/PlatformAddress.js';
33
32
  export type DashPlatformProtocol = typeof protocol;
34
- export type IdentifierLike = string | Uint8Array | IdentifierNAPI | IdentifierWASM;
35
- export type KeyTypeLike = KeyType | keyof typeof KeyType;
36
- export type NetworkLike = NetworkWASM | keyof typeof NetworkWASM;
37
- export type SecurityLevelLike = SecurityLevel | keyof typeof SecurityLevel;
38
- export type PlatformVersionLike = PlatformVersionWASM | keyof typeof PlatformVersionWASM;
39
- export type PurposeLike = Purpose | keyof typeof Purpose;
40
- export type ActionGoalLike = ActionGoal | keyof typeof ActionGoal;
41
- export type GasFeesPaidByLike = GasFeesPaidBy | keyof typeof GasFeesPaidBy;
42
- export type TokenDistributionLike = TokenDistributionType | keyof typeof TokenDistributionType;
43
- export type TokenEmergencyActionLike = TokenEmergencyAction | keyof typeof TokenEmergencyAction;
44
- export type AssetLockProofTypeLike = AssetLockProofType | keyof typeof AssetLockProofType;
45
- export type PoolingLike = Pooling | keyof typeof Pooling;
46
- export type VoteStateResultTypeLike = VoteStateResultType | keyof typeof VoteStateResultType;
47
- export type EnumLike = KeyTypeLike | NetworkLike | SecurityLevelLike | PlatformVersionLike | PurposeLike;
48
- export type AddressWitnessP2PKH = AddressWitnessP2pkhNAPI;
49
- export type AddressWitnessP2SH = AddressWitnessP2shNAPI;
50
- export type TokenConfigurationLocalizationJson = TokenConfigurationLocalizationJsonNAPI;
51
- export type DistributionFixedAmount = DistributionFixedAmountNAPI;
52
- export type DistributionRandom = DistributionRandomNAPI;
53
- export type DistributionStepDecreasingAmount = DistributionStepDecreasingAmountNAPI;
33
+ export type IdentifierLike = string | Uint8Array | protocol.IdentifierNAPI | IdentifierWASM;
34
+ export type PlatformAddressLike = string | Uint8Array | protocol.PlatformAddressNAPI | PlatformAddressWASM;
35
+ export type KeyTypeLike = KeyType | keyof typeof KeyType | Lowercase<keyof typeof KeyType>;
36
+ export type NetworkLike = NetworkWASM | keyof typeof NetworkWASM | Lowercase<keyof typeof NetworkWASM>;
37
+ export type SecurityLevelLike = SecurityLevel | keyof typeof SecurityLevel | Lowercase<keyof typeof SecurityLevel>;
38
+ export type PlatformVersionLike = PlatformVersionWASM | Lowercase<keyof typeof PlatformVersionWASM>;
39
+ export type PurposeLike = Purpose | keyof typeof Purpose | Lowercase<keyof typeof Purpose>;
40
+ export type ActionGoalLike = ActionGoal | keyof typeof ActionGoal | Lowercase<keyof typeof ActionGoal>;
41
+ export type GasFeesPaidByLike = GasFeesPaidByWASM | keyof typeof GasFeesPaidByWASM | Lowercase<keyof typeof GasFeesPaidByWASM>;
42
+ export type TokenDistributionLike = TokenDistributionType | keyof typeof TokenDistributionType | Lowercase<keyof typeof TokenDistributionType>;
43
+ export type TokenEmergencyActionLike = TokenEmergencyActionWASM | keyof typeof TokenEmergencyActionWASM | Lowercase<keyof typeof TokenEmergencyActionWASM>;
44
+ export type AssetLockProofTypeLike = AssetLockProofType | keyof typeof AssetLockProofType | Lowercase<keyof typeof AssetLockProofType>;
45
+ export type PoolingLike = PoolingWASM | keyof typeof PoolingWASM | Lowercase<keyof typeof PoolingWASM>;
46
+ export type VoteStateResultTypeLike = VoteStateResultType | keyof typeof VoteStateResultType | Lowercase<keyof typeof VoteStateResultType>;
47
+ export type AddressWitnessP2PKH = protocol.AddressWitnessP2pkhNAPI;
48
+ export type AddressWitnessP2SH = protocol.AddressWitnessP2shNAPI;
49
+ export type TokenConfigurationLocalizationJson = protocol.TokenConfigurationLocalizationJsonNAPI;
50
+ export type DistributionFixedAmount = protocol.DistributionFixedAmountNAPI;
51
+ export type DistributionRandom = protocol.DistributionRandomNAPI;
52
+ export type DistributionStepDecreasingAmount = protocol.DistributionStepDecreasingAmountNAPI;
54
53
  export interface DistributionStepwiseStep {
55
54
  step: bigint;
56
55
  amount: bigint;
57
56
  }
58
57
  export type DistributionStepwise = DistributionStepwiseStep[];
59
- export type DistributionLinear = DistributionLinearNAPI;
60
- export type DistributionPolynomial = DistributionPolynomialNAPI;
61
- export type DistributionExponential = DistributionExponentialNAPI;
62
- export type DistributionLogarithmic = DistributionLogarithmicNAPI;
63
- export type DistributionInvertedLogarithmic = DistributionInvertedLogarithmicNAPI;
58
+ export type DistributionLinear = protocol.DistributionLinearNAPI;
59
+ export type DistributionPolynomial = protocol.DistributionPolynomialNAPI;
60
+ export type DistributionExponential = protocol.DistributionExponentialNAPI;
61
+ export type DistributionLogarithmic = protocol.DistributionLogarithmicNAPI;
62
+ export type DistributionInvertedLogarithmic = protocol.DistributionInvertedLogarithmicNAPI;
64
63
  export interface RewardDistribution {
65
64
  interval: bigint | number;
66
65
  function: DistributionFunctionWASM;
@@ -149,11 +148,11 @@ export interface VerifiedIdentityBalance {
149
148
  id: IdentifierWASM;
150
149
  }
151
150
  export interface VerifiedIdentityTokenInfo {
152
- id: IdentifierWASM;
151
+ tokenId: IdentifierWASM;
153
152
  identityTokenInfo: IdentityTokenInfo;
154
153
  }
155
154
  export interface VerifiedTokenPricingSchedule {
156
- id: IdentifierWASM;
155
+ tokenId: IdentifierWASM;
157
156
  pricingSchedule?: TokenPricingScheduleWASM;
158
157
  }
159
158
  export interface VerifiedBalanceTransfer {
@@ -183,21 +182,21 @@ export interface VerifiedTokenGroupActionWithTokenPricingSchedule {
183
182
  groupActionStatus: string;
184
183
  pricingSchedule?: TokenPricingScheduleWASM;
185
184
  }
186
- export interface VerifiedAddressInfo {
185
+ export interface VerifiedPlatformAddressInfo {
186
+ address?: PlatformAddressWASM;
187
187
  nonce?: number;
188
- address: PlatformAddressWASM;
189
- credits?: bigint;
188
+ balance?: bigint;
190
189
  }
191
190
  export interface VerifiedIdentityFullWithAddressInfos {
192
191
  identity: IdentityWASM;
193
- infos: VerifiedAddressInfo[];
192
+ infos: VerifiedPlatformAddressInfo[];
194
193
  }
195
194
  export interface VerifiedIdentityWithAddressInfos {
196
195
  identity: PartialIdentityWASM;
197
- infos: VerifiedAddressInfo[];
196
+ infos: VerifiedPlatformAddressInfo[];
198
197
  }
199
- export type VerifiedStateTransitionResultVariants = DataContractWASM | IdentityWASM | IdentifierWASM | VerifiedIdentityBalance | VerifiedIdentityTokenInfo | VerifiedTokenPricingSchedule | TokenStatus | VerifiedIdentityBalance[] | PartialIdentityWASM | VerifiedBalanceTransfer | VerifiedDocument[] | DocumentWASM | VerifiedTokenGroupActionWithDocument | VerifiedTokenGroupActionWithTokenBalance | VerifiedTokenGroupActionWithTokenIdentityInfo | VerifiedTokenGroupActionWithTokenPricingSchedule | VoteWASM | VerifiedAddressInfo[] | VerifiedIdentityFullWithAddressInfos | VerifiedIdentityWithAddressInfos;
200
- export type VerifiedStateTransitionResultVariantsRAW = DataContractNAPI | IdentityNAPI | IdentifierNAPI | VerifiedIdentityBalanceNAPI | VerifiedIdentityTokenInfoNAPI | VerifiedTokenPricingScheduleNAPI | TokenStatusNAPI | VerifiedIdentityBalanceNAPI[] | PartialIdentityNAPI | VerifiedBalanceTransferNAPI | VerifiedDocumentNAPI[] | DocumentNAPI | VerifiedTokenGroupActionWithDocumentNAPI | VerifiedTokenGroupActionWithTokenBalanceNAPI | VerifiedTokenGroupActionWithTokenIdentityInfoNAPI | VerifiedTokenGroupActionWithTokenPricingScheduleNAPI | VoteNAPI | VerifiedAddressInfosNAPI[] | VerifiedIdentityFullWithAddressInfosNAPI | VerifiedIdentityWithAddressInfosNAPI;
198
+ export type VerifiedStateTransitionResultVariants = DataContractWASM | IdentityWASM | IdentifierWASM | VerifiedIdentityBalance | VerifiedIdentityTokenInfo | VerifiedTokenPricingSchedule | TokenStatus | VerifiedIdentityBalance[] | PartialIdentityWASM | VerifiedBalanceTransfer | VerifiedDocument[] | DocumentWASM | VerifiedTokenGroupActionWithDocument | VerifiedTokenGroupActionWithTokenBalance | VerifiedTokenGroupActionWithTokenIdentityInfo | VerifiedTokenGroupActionWithTokenPricingSchedule | VoteWASM | VerifiedPlatformAddressInfo[] | VerifiedIdentityFullWithAddressInfos | VerifiedIdentityWithAddressInfos;
199
+ export type VerifiedStateTransitionResultVariantsRAW = protocol.DataContractNAPI | protocol.IdentityNAPI | protocol.IdentifierNAPI | protocol.VerifiedIdentityBalanceNAPI | protocol.VerifiedIdentityTokenInfoNAPI | protocol.VerifiedTokenPricingScheduleNAPI | protocol.TokenStatusNAPI | protocol.VerifiedIdentityBalanceNAPI[] | protocol.PartialIdentityNAPI | protocol.VerifiedBalanceTransferNAPI | protocol.VerifiedDocumentNAPI[] | protocol.DocumentNAPI | protocol.VerifiedTokenGroupActionWithDocumentNAPI | protocol.VerifiedTokenGroupActionWithTokenBalanceNAPI | protocol.VerifiedTokenGroupActionWithTokenIdentityInfoNAPI | protocol.VerifiedTokenGroupActionWithTokenPricingScheduleNAPI | protocol.VoteNAPI | protocol.PlatformAddressInfoNAPI[] | protocol.VerifiedIdentityFullWithAddressInfosNAPI | protocol.VerifiedIdentityWithAddressInfosNAPI;
201
200
  export interface VerifiedStateTransitionResult {
202
201
  rootHash: Uint8Array;
203
202
  result: VerifiedStateTransitionResultVariants;
@@ -244,9 +243,13 @@ export interface IdentityTokenBalance {
244
243
  balance: bigint;
245
244
  id: IdentifierWASM;
246
245
  }
246
+ export interface IdentityTokenBalanceOptional {
247
+ balance?: bigint;
248
+ id: IdentifierWASM;
249
+ }
247
250
  export interface VerifiedTokenBalancesForIdentities {
248
251
  rootHash: Uint8Array;
249
- balances: IdentityTokenBalance[];
252
+ balances: IdentityTokenBalanceOptional[];
250
253
  }
251
254
  export interface TokenContractInfo {
252
255
  contractId: IdentifierWASM;
@@ -270,5 +273,12 @@ export interface VerifiedTokenTotalSupply {
270
273
  }
271
274
  export interface VerifiedTokensBalancesForIdentity {
272
275
  rootHash: Uint8Array;
273
- balances: IdentityTokenBalance[];
276
+ balances: IdentityTokenBalanceOptional[];
277
+ }
278
+ export type VerifiedPlatformAddressInfoWithRootHash = VerifiedPlatformAddressInfo & {
279
+ rootHash: Uint8Array;
280
+ };
281
+ export interface VerifiedPlatformAddressesInfosWithRootHash {
282
+ rootHash: Uint8Array;
283
+ infos: VerifiedPlatformAddressInfo[];
274
284
  }
@@ -1,5 +1,6 @@
1
- import { DynamicValue, IdentifierLikeNAPI } from '../../binaries/bindingsTypes.js';
2
- import { IdentifierLike } from './types.js';
1
+ import type { DynamicValue, IdentifierLikeNAPI, PlatformAddressLikeNAPI } from '../../binaries/bindingsTypes.js';
2
+ import { IdentifierLike, PlatformAddressLike } from './types.js';
3
3
  export declare function valueToDynamicValue(value: any): DynamicValue;
4
- export declare function valueFromDynamicValue(dynamicValue: DynamicValue): any;
4
+ export declare function valueFromDynamicValue(dynamicValue: DynamicValue, jsonLike?: boolean): any;
5
5
  export declare function prepareIdentifierValue(identifier: IdentifierLike): IdentifierLikeNAPI;
6
+ export declare function preparePlatformAddressValue(address: PlatformAddressLike): PlatformAddressLikeNAPI;