pshenmic-dpp 2.0.0-dev.26 → 2.0.0-dev.28

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 (69) hide show
  1. package/dist/binaries/bindingsTypes.d.ts +266 -0
  2. package/dist/binaries/native/aarch64-apple-darwin/pshenmic_dpp.node +0 -0
  3. package/dist/binaries/native/aarch64-pc-windows-msvc/pshenmic_dpp.node +0 -0
  4. package/dist/binaries/native/aarch64-unknown-linux-gnu/pshenmic_dpp.node +0 -0
  5. package/dist/binaries/native/aarch64-unknown-linux-musl/pshenmic_dpp.node +0 -0
  6. package/dist/binaries/native/x86_64-apple-darwin/pshenmic_dpp.node +0 -0
  7. package/dist/binaries/native/x86_64-pc-windows-msvc/pshenmic_dpp.node +0 -0
  8. package/dist/binaries/native/x86_64-unknown-linux-gnu/pshenmic_dpp.node +0 -0
  9. package/dist/binaries/native/x86_64-unknown-linux-musl/pshenmic_dpp.node +0 -0
  10. package/dist/binaries/node.cjs +42 -21
  11. package/dist/binaries/node.d.cts +2 -2
  12. package/dist/binaries/pshenmic_dpp.android.node/arm64-v8a/libpshenmic_dpp.so +0 -0
  13. package/dist/binaries/pshenmic_dpp.apple.node/ios-arm64-simulator/libpshenmic_dpp.framework/libpshenmic_dpp +0 -0
  14. package/dist/binaries/pshenmic_dpp.d.ts +17 -0
  15. package/dist/binaries/pshenmic_dpp.js +1 -1
  16. package/dist/binaries/wasm/wasmBytes.cjs +1 -1
  17. package/dist/binaries/wasm.d.ts +17 -0
  18. package/dist/binaries/wasm.js +1 -1
  19. package/dist/src/dpp/dpp.d.ts +4 -0
  20. package/dist/src/dpp/dpp.js +4 -0
  21. package/dist/src/dpp/structs/AddressTransitions/AddressCreditWithdrawalTransition.d.ts +3 -1
  22. package/dist/src/dpp/structs/AddressTransitions/AddressCreditWithdrawalTransition.js +6 -0
  23. package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.d.ts +2 -1
  24. package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.js +3 -0
  25. package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.d.ts +3 -1
  26. package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.js +6 -0
  27. package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.d.ts +2 -1
  28. package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.js +3 -0
  29. package/dist/src/dpp/structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.d.ts +2 -1
  30. package/dist/src/dpp/structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.js +3 -0
  31. package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.d.ts +2 -1
  32. package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.js +3 -0
  33. package/dist/src/dpp/structs/Batch/BatchTransition.d.ts +2 -1
  34. package/dist/src/dpp/structs/Batch/BatchTransition.js +3 -0
  35. package/dist/src/dpp/structs/DataContractTransitions/DataContractCreateTransition.d.ts +2 -1
  36. package/dist/src/dpp/structs/DataContractTransitions/DataContractCreateTransition.js +3 -0
  37. package/dist/src/dpp/structs/DataContractTransitions/DataContractUpdateTransition.d.ts +2 -1
  38. package/dist/src/dpp/structs/DataContractTransitions/DataContractUpdateTransition.js +3 -0
  39. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreateTransition.d.ts +2 -1
  40. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreateTransition.js +3 -0
  41. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditTransfer.d.ts +2 -1
  42. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditTransfer.js +3 -0
  43. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditWithdrawalTransition.d.ts +2 -1
  44. package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditWithdrawalTransition.js +3 -0
  45. package/dist/src/dpp/structs/IdentityTransitions/IdentityTopUpTransition.d.ts +2 -1
  46. package/dist/src/dpp/structs/IdentityTransitions/IdentityTopUpTransition.js +3 -0
  47. package/dist/src/dpp/structs/IdentityTransitions/IdentityUpdateTransition.d.ts +2 -1
  48. package/dist/src/dpp/structs/IdentityTransitions/IdentityUpdateTransition.js +3 -0
  49. package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.d.ts +2 -1
  50. package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.js +3 -0
  51. package/dist/src/dpp/structs/PlatformAddress/PlatformAddress.d.ts +9 -1
  52. package/dist/src/dpp/structs/PlatformAddress/PlatformAddress.js +10 -0
  53. package/dist/src/dpp/structs/StateTransition.d.ts +2 -1
  54. package/dist/src/dpp/structs/StateTransition.js +3 -0
  55. package/dist/src/dpp/types.d.ts +82 -0
  56. package/dist/src/dpp/verify/AddressFunds/utils.d.ts +5 -0
  57. package/dist/src/dpp/verify/AddressFunds/utils.js +28 -0
  58. package/dist/src/dpp/verify/AddressFunds/verifyAddressesBranchState.d.ts +12 -0
  59. package/dist/src/dpp/verify/AddressFunds/verifyAddressesBranchState.js +29 -0
  60. package/dist/src/dpp/verify/AddressFunds/verifyAddressesTrunkState.d.ts +9 -0
  61. package/dist/src/dpp/verify/AddressFunds/verifyAddressesTrunkState.js +30 -0
  62. package/dist/src/dpp/verify/AddressFunds/verifyRecentAddressBalanceChanges.d.ts +9 -0
  63. package/dist/src/dpp/verify/AddressFunds/verifyRecentAddressBalanceChanges.js +24 -0
  64. package/dist/src/dpp/verify/AddressFunds/verifyRecentCompactedAddressBalanceChanges.d.ts +10 -0
  65. package/dist/src/dpp/verify/AddressFunds/verifyRecentCompactedAddressBalanceChanges.js +30 -0
  66. package/package.json +1 -1
  67. package/tests/unit/AddressTransitionsFees.spec.ts +274 -0
  68. package/tests/unit/Shielded.spec.ts +37 -4
  69. package/tests/unit/StateTransitionFees.spec.ts +177 -0
@@ -1,6 +1,8 @@
1
1
  export const orchardOvkFromSeed: any;
2
2
  export const recoverNotes: any;
3
+ export const verifyAddressesBranchState: any;
3
4
  export const verifyAddressesInfos: any;
5
+ export const verifyAddressesTrunkState: any;
4
6
  export const verifyAddressInfo: any;
5
7
  export const verifyContractProof: any;
6
8
  export const verifyDocumentsProof: any;
@@ -14,6 +16,8 @@ export const verifyIdentityContractNonceProof: any;
14
16
  export const verifyIdentityKeysByIdentifierProof: any;
15
17
  export const verifyIdentityNonceProof: any;
16
18
  export const verifyMostRecentShieldedAnchorProof: any;
19
+ export const verifyRecentAddressBalanceChanges: any;
20
+ export const verifyRecentCompactedAddressBalanceChanges: any;
17
21
  export const verifyShieldedAnchorsProof: any;
18
22
  export const verifyShieldedEncryptedNotesProof: any;
19
23
  export const verifyShieldedNotesCountProof: any;
@@ -29,6 +33,7 @@ export const verifyTokenTotalSupplyProof: any;
29
33
  export const verifyTotalCreditsProof: any;
30
34
  export const verifyVotePollVoteStateProof: any;
31
35
  export const ActionTakerNAPI: any;
36
+ export const AddressBalanceChangeNAPI: any;
32
37
  export const AddressCreditWithdrawalTransitionNAPI: any;
33
38
  export const AddressFundingFromAssetLockTransitionNAPI: any;
34
39
  export const AddressFundsFeeStrategyStepNAPI: any;
@@ -39,11 +44,15 @@ export const AssetLockValueNAPI: any;
39
44
  export const AuthorizedActionTakersNAPI: any;
40
45
  export const BatchedTransitionNAPI: any;
41
46
  export const BatchTransitionNAPI: any;
47
+ export const BlockAddressBalanceChangesNAPI: any;
42
48
  export const BlockBasedDistributionNAPI: any;
49
+ export const BlockHeightCreditNAPI: any;
43
50
  export const BlockInfoNAPI: any;
44
51
  export const ChainAssetLockProofNAPI: any;
45
52
  export const ChangeControlRulesNAPI: any;
46
53
  export const CommitmentTreeNAPI: any;
54
+ export const CompactedAddressBalanceChangeNAPI: any;
55
+ export const CompactedBlockAddressBalanceChangesNAPI: any;
47
56
  export const ConsensusErrorNAPI: any;
48
57
  export const ContenderWithSerializedDocumentNAPI: any;
49
58
  export const ContestedDocumentVotePollQueryExecutionResultNAPI: any;
@@ -68,6 +77,10 @@ export const ExtendedEpochInfoNAPI: any;
68
77
  export const FinalizedEpochInfoNAPI: any;
69
78
  export const GroupNAPI: any;
70
79
  export const GroupStateTransitionInfoNAPI: any;
80
+ export const GroveAncestorNAPI: any;
81
+ export const GroveElementEntryNAPI: any;
82
+ export const GroveElementNAPI: any;
83
+ export const GroveLeafInfoNAPI: any;
71
84
  export const IdentifierNAPI: any;
72
85
  export const IdentityCreateFromAddressesTransitionNAPI: any;
73
86
  export const IdentityCreateFromShieldedPoolResultNAPI: any;
@@ -152,6 +165,8 @@ export const TransactionNAPI: any;
152
165
  export const TxInNAPI: any;
153
166
  export const TxOutNAPI: any;
154
167
  export const UnshieldTransitionNAPI: any;
168
+ export const VerifiedAddressesBranchStateNAPI: any;
169
+ export const VerifiedAddressesTrunkStateNAPI: any;
155
170
  export const VerifiedBalanceTransferNAPI: any;
156
171
  export const VerifiedContractNAPI: any;
157
172
  export const VerifiedDocumentNAPI: any;
@@ -171,6 +186,8 @@ export const VerifiedIdentityWithAddressInfosNAPI: any;
171
186
  export const VerifiedMostRecentShieldedAnchorNAPI: any;
172
187
  export const VerifiedPlatformAddressesInfosNAPI: any;
173
188
  export const VerifiedPlatformAddressInfoNAPI: any;
189
+ export const VerifiedRecentAddressBalanceChangesNAPI: any;
190
+ export const VerifiedRecentCompactedAddressBalanceChangesNAPI: any;
174
191
  export const VerifiedShieldedAnchorsNAPI: any;
175
192
  export const VerifiedShieldedEncryptedNoteNAPI: any;
176
193
  export const VerifiedShieldedEncryptedNotesNAPI: any;
@@ -1,2 +1,2 @@
1
1
  import * as protocol from "./wasmCreation.cjs";
2
- export const { orchardOvkFromSeed, recoverNotes, verifyAddressesInfos, verifyAddressInfo, verifyContractProof, verifyDocumentsProof, verifyEpochsInfoProof, verifyFinalizedEpochInfosProof, verifyIdentifierByNonUniquePublicKeyHashProof, verifyIdentityBalanceProof, verifyIdentityByIdentifierProof, verifyIdentityByUniqueKeyHashProof, verifyIdentityContractNonceProof, verifyIdentityKeysByIdentifierProof, verifyIdentityNonceProof, verifyMostRecentShieldedAnchorProof, verifyShieldedAnchorsProof, verifyShieldedEncryptedNotesProof, verifyShieldedNotesCountProof, verifyShieldedNullifiersProof, verifyShieldedPoolStateProof, verifySignatureDigest, verifyStateTransitionResult, verifyTokenBalancesForIdentitiesProof, verifyTokenContractInfoProof, verifyTokenDirectPurchasePrices, verifyTokensBalancesForIdentityProof, verifyTokenTotalSupplyProof, verifyTotalCreditsProof, verifyVotePollVoteStateProof, ActionTakerNAPI, AddressCreditWithdrawalTransitionNAPI, AddressFundingFromAssetLockTransitionNAPI, AddressFundsFeeStrategyStepNAPI, AddressFundsTransferTransitionNAPI, AddressWitnessNAPI, AssetLockProofNAPI, AssetLockValueNAPI, AuthorizedActionTakersNAPI, BatchedTransitionNAPI, BatchTransitionNAPI, BlockBasedDistributionNAPI, BlockInfoNAPI, ChainAssetLockProofNAPI, ChangeControlRulesNAPI, CommitmentTreeNAPI, ConsensusErrorNAPI, ContenderWithSerializedDocumentNAPI, ContestedDocumentVotePollQueryExecutionResultNAPI, ContractBoundsNAPI, CoreScriptNAPI, DataContractCreateTransitionNAPI, DataContractNAPI, DataContractUpdateTransitionNAPI, DistributionFunctionNAPI, DocumentBaseTransitionNAPI, DocumentCreateTransitionNAPI, DocumentDeleteTransitionNAPI, DocumentNAPI, DocumentPurchaseTransitionNAPI, DocumentReplaceTransitionNAPI, DocumentTransferTransitionNAPI, DocumentTransitionNAPI, DocumentUpdatePriceTransitionNAPI, DynamicValue, EpochBasedDistributionNAPI, ExtendedEpochInfoNAPI, FinalizedEpochInfoNAPI, GroupNAPI, GroupStateTransitionInfoNAPI, IdentifierNAPI, IdentityCreateFromAddressesTransitionNAPI, IdentityCreateFromShieldedPoolResultNAPI, IdentityCreateFromShieldedPoolTransitionNAPI, IdentityCreateTransitionNAPI, IdentityCreditTransferNAPI, IdentityCreditTransferToAddressesTransitionNAPI, IdentityCreditWithdrawalTransitionNAPI, IdentityNAPI, IdentityPublicKeyInCreationNAPI, IdentityPublicKeyNAPI, IdentityTokenBalanceNAPI, IdentityTokenBalanceOptionalNAPI, IdentityTokenInfoNAPI, IdentityTopUpFromAddressesTransitionNAPI, IdentityTopUpTransitionNAPI, IdentityUpdateTransitionNAPI, InputAddressNAPI, InstantAssetLockProofNAPI, InstantLockNAPI, MasternodeVoteTransitionNAPI, MerklePathNAPI, NoteNAPI, OrchardAddressNAPI, OrchardProverNAPI, OutPointNAPI, OutputAddressNAPI, OutputAddressNullableCreditsNAPI, PartialIdentityNAPI, PlatformAddressInfoNAPI, PlatformAddressNAPI, PrefundedVotingBalanceNAPI, PrivateEncryptedNoteNAPI, PrivateKeyNAPI, PublicKeyNAPI, RecoveredNoteNAPI, ResourceVoteChoiceNAPI, RewardDistributionTypeNAPI, SerializedActionNAPI, SharedEncryptedNoteNAPI, ShieldedBuilderNAPI, ShieldedMemoNAPI, ShieldedTransferTransitionNAPI, ShieldedWithdrawalResultNAPI, ShieldedWithdrawalTransitionNAPI, ShieldFromAssetLockTransitionNAPI, ShieldTransitionNAPI, SpendableNoteNAPI, StateTransitionNAPI, StoredAssetLockInfoNAPI, TimeBasedDistributionNAPI, TokenBaseTransitionNAPI, TokenBurnTransitionNAPI, TokenClaimTransitionNAPI, TokenConfigUpdateTransitionNAPI, TokenConfigurationChangeItemNAPI, TokenConfigurationConventionNAPI, TokenConfigurationLocalizationNAPI, TokenConfigurationNAPI, TokenContractInfoNAPI, TokenDestroyFrozenFundsTransitionNAPI, TokenDirectPurchaseTransitionNAPI, TokenDistributionRecipientNAPI, TokenDistributionRulesNAPI, TokenEmergencyActionTransitionNAPI, TokenFreezeTransitionNAPI, TokenKeepsHistoryRulesNAPI, TokenMarketplaceRulesNAPI, TokenMintTransitionNAPI, TokenPaymentInfoNAPI, TokenPerpetualDistributionNAPI, TokenPreProgrammedDistributionNAPI, TokenPricingScheduleNAPI, TokenSetPriceForDirectPurchaseTransitionNAPI, TokenStatusNAPI, TokenTradeModeNAPI, TokenTransferTransitionNAPI, TokenTransitionNAPI, TokenUnFreezeTransitionNAPI, TotalSingleTokenBalanceNAPI, TransactionNAPI, TxInNAPI, TxOutNAPI, UnshieldTransitionNAPI, VerifiedBalanceTransferNAPI, VerifiedContractNAPI, VerifiedDocumentNAPI, VerifiedDocumentsNAPI, VerifiedEpochsInfoNAPI, VerifiedFinlizedEpochInfosNAPI, VerifiedIdentifierByNonUniquePublicKeyHashNAPI, VerifiedIdentityBalanceRootHashNAPI, VerifiedIdentityByIdentifierNAPI, VerifiedIdentityByUniqueKeyHashNAPI, VerifiedIdentityContractNonceNAPI, VerifiedIdentityFullWithAddressInfosNAPI, VerifiedIdentityKeysByIdentifierNAPI, VerifiedIdentityNonceNAPI, VerifiedIdentityTokenInfoNAPI, VerifiedIdentityWithAddressInfosNAPI, VerifiedMostRecentShieldedAnchorNAPI, VerifiedPlatformAddressesInfosNAPI, VerifiedPlatformAddressInfoNAPI, VerifiedShieldedAnchorsNAPI, VerifiedShieldedEncryptedNoteNAPI, VerifiedShieldedEncryptedNotesNAPI, VerifiedShieldedNotesCountNAPI, VerifiedShieldedNullifierNAPI, VerifiedShieldedNullifiersNAPI, VerifiedShieldedPoolStateNAPI, VerifiedStateTransitionResultNAPI, VerifiedTokenBalancesForIdentitiesNAPI, VerifiedTokenContractInfoNAPI, VerifiedTokenDirectPurchasePricesNAPI, VerifiedTokenGroupActionWithDocumentNAPI, VerifiedTokenGroupActionWithTokenBalanceNAPI, VerifiedTokenGroupActionWithTokenIdentityInfoNAPI, VerifiedTokenGroupActionWithTokenPricingScheduleNAPI, VerifiedTokenPricingScheduleNAPI, VerifiedTokensBalancesForIdentityNAPI, VerifiedTokenTotalSupplyNAPI, VerifiedTotalCreditsNAPI, VerifiedVoteStateNAPI, VoteNAPI, VotePollNAPI, WitnessNAPI, ActionGoalNAPI, AssetLockProofTypeNAPI, BatchTypeNAPI, GasFeesPaidByNAPI, GroupActionStatusNAPI, KeyTypeNAPI, NetworkNAPI, PlatformVersionNAPI, PoolingNAPI, PurposeNAPI, SecurityLevelNAPI, TokenDistributionTypeNAPI, TokenEmergencyActionNAPI, VoteStateResultTypeNAPI } = protocol.default;
2
+ export const { orchardOvkFromSeed, recoverNotes, verifyAddressesBranchState, verifyAddressesInfos, verifyAddressesTrunkState, verifyAddressInfo, verifyContractProof, verifyDocumentsProof, verifyEpochsInfoProof, verifyFinalizedEpochInfosProof, verifyIdentifierByNonUniquePublicKeyHashProof, verifyIdentityBalanceProof, verifyIdentityByIdentifierProof, verifyIdentityByUniqueKeyHashProof, verifyIdentityContractNonceProof, verifyIdentityKeysByIdentifierProof, verifyIdentityNonceProof, verifyMostRecentShieldedAnchorProof, verifyRecentAddressBalanceChanges, verifyRecentCompactedAddressBalanceChanges, verifyShieldedAnchorsProof, verifyShieldedEncryptedNotesProof, verifyShieldedNotesCountProof, verifyShieldedNullifiersProof, verifyShieldedPoolStateProof, verifySignatureDigest, verifyStateTransitionResult, verifyTokenBalancesForIdentitiesProof, verifyTokenContractInfoProof, verifyTokenDirectPurchasePrices, verifyTokensBalancesForIdentityProof, verifyTokenTotalSupplyProof, verifyTotalCreditsProof, verifyVotePollVoteStateProof, ActionTakerNAPI, AddressBalanceChangeNAPI, AddressCreditWithdrawalTransitionNAPI, AddressFundingFromAssetLockTransitionNAPI, AddressFundsFeeStrategyStepNAPI, AddressFundsTransferTransitionNAPI, AddressWitnessNAPI, AssetLockProofNAPI, AssetLockValueNAPI, AuthorizedActionTakersNAPI, BatchedTransitionNAPI, BatchTransitionNAPI, BlockAddressBalanceChangesNAPI, BlockBasedDistributionNAPI, BlockHeightCreditNAPI, BlockInfoNAPI, ChainAssetLockProofNAPI, ChangeControlRulesNAPI, CommitmentTreeNAPI, CompactedAddressBalanceChangeNAPI, CompactedBlockAddressBalanceChangesNAPI, ConsensusErrorNAPI, ContenderWithSerializedDocumentNAPI, ContestedDocumentVotePollQueryExecutionResultNAPI, ContractBoundsNAPI, CoreScriptNAPI, DataContractCreateTransitionNAPI, DataContractNAPI, DataContractUpdateTransitionNAPI, DistributionFunctionNAPI, DocumentBaseTransitionNAPI, DocumentCreateTransitionNAPI, DocumentDeleteTransitionNAPI, DocumentNAPI, DocumentPurchaseTransitionNAPI, DocumentReplaceTransitionNAPI, DocumentTransferTransitionNAPI, DocumentTransitionNAPI, DocumentUpdatePriceTransitionNAPI, DynamicValue, EpochBasedDistributionNAPI, ExtendedEpochInfoNAPI, FinalizedEpochInfoNAPI, GroupNAPI, GroupStateTransitionInfoNAPI, GroveAncestorNAPI, GroveElementEntryNAPI, GroveElementNAPI, GroveLeafInfoNAPI, IdentifierNAPI, IdentityCreateFromAddressesTransitionNAPI, IdentityCreateFromShieldedPoolResultNAPI, IdentityCreateFromShieldedPoolTransitionNAPI, IdentityCreateTransitionNAPI, IdentityCreditTransferNAPI, IdentityCreditTransferToAddressesTransitionNAPI, IdentityCreditWithdrawalTransitionNAPI, IdentityNAPI, IdentityPublicKeyInCreationNAPI, IdentityPublicKeyNAPI, IdentityTokenBalanceNAPI, IdentityTokenBalanceOptionalNAPI, IdentityTokenInfoNAPI, IdentityTopUpFromAddressesTransitionNAPI, IdentityTopUpTransitionNAPI, IdentityUpdateTransitionNAPI, InputAddressNAPI, InstantAssetLockProofNAPI, InstantLockNAPI, MasternodeVoteTransitionNAPI, MerklePathNAPI, NoteNAPI, OrchardAddressNAPI, OrchardProverNAPI, OutPointNAPI, OutputAddressNAPI, OutputAddressNullableCreditsNAPI, PartialIdentityNAPI, PlatformAddressInfoNAPI, PlatformAddressNAPI, PrefundedVotingBalanceNAPI, PrivateEncryptedNoteNAPI, PrivateKeyNAPI, PublicKeyNAPI, RecoveredNoteNAPI, ResourceVoteChoiceNAPI, RewardDistributionTypeNAPI, SerializedActionNAPI, SharedEncryptedNoteNAPI, ShieldedBuilderNAPI, ShieldedMemoNAPI, ShieldedTransferTransitionNAPI, ShieldedWithdrawalResultNAPI, ShieldedWithdrawalTransitionNAPI, ShieldFromAssetLockTransitionNAPI, ShieldTransitionNAPI, SpendableNoteNAPI, StateTransitionNAPI, StoredAssetLockInfoNAPI, TimeBasedDistributionNAPI, TokenBaseTransitionNAPI, TokenBurnTransitionNAPI, TokenClaimTransitionNAPI, TokenConfigUpdateTransitionNAPI, TokenConfigurationChangeItemNAPI, TokenConfigurationConventionNAPI, TokenConfigurationLocalizationNAPI, TokenConfigurationNAPI, TokenContractInfoNAPI, TokenDestroyFrozenFundsTransitionNAPI, TokenDirectPurchaseTransitionNAPI, TokenDistributionRecipientNAPI, TokenDistributionRulesNAPI, TokenEmergencyActionTransitionNAPI, TokenFreezeTransitionNAPI, TokenKeepsHistoryRulesNAPI, TokenMarketplaceRulesNAPI, TokenMintTransitionNAPI, TokenPaymentInfoNAPI, TokenPerpetualDistributionNAPI, TokenPreProgrammedDistributionNAPI, TokenPricingScheduleNAPI, TokenSetPriceForDirectPurchaseTransitionNAPI, TokenStatusNAPI, TokenTradeModeNAPI, TokenTransferTransitionNAPI, TokenTransitionNAPI, TokenUnFreezeTransitionNAPI, TotalSingleTokenBalanceNAPI, TransactionNAPI, TxInNAPI, TxOutNAPI, UnshieldTransitionNAPI, VerifiedAddressesBranchStateNAPI, VerifiedAddressesTrunkStateNAPI, VerifiedBalanceTransferNAPI, VerifiedContractNAPI, VerifiedDocumentNAPI, VerifiedDocumentsNAPI, VerifiedEpochsInfoNAPI, VerifiedFinlizedEpochInfosNAPI, VerifiedIdentifierByNonUniquePublicKeyHashNAPI, VerifiedIdentityBalanceRootHashNAPI, VerifiedIdentityByIdentifierNAPI, VerifiedIdentityByUniqueKeyHashNAPI, VerifiedIdentityContractNonceNAPI, VerifiedIdentityFullWithAddressInfosNAPI, VerifiedIdentityKeysByIdentifierNAPI, VerifiedIdentityNonceNAPI, VerifiedIdentityTokenInfoNAPI, VerifiedIdentityWithAddressInfosNAPI, VerifiedMostRecentShieldedAnchorNAPI, VerifiedPlatformAddressesInfosNAPI, VerifiedPlatformAddressInfoNAPI, VerifiedRecentAddressBalanceChangesNAPI, VerifiedRecentCompactedAddressBalanceChangesNAPI, VerifiedShieldedAnchorsNAPI, VerifiedShieldedEncryptedNoteNAPI, VerifiedShieldedEncryptedNotesNAPI, VerifiedShieldedNotesCountNAPI, VerifiedShieldedNullifierNAPI, VerifiedShieldedNullifiersNAPI, VerifiedShieldedPoolStateNAPI, VerifiedStateTransitionResultNAPI, VerifiedTokenBalancesForIdentitiesNAPI, VerifiedTokenContractInfoNAPI, VerifiedTokenDirectPurchasePricesNAPI, VerifiedTokenGroupActionWithDocumentNAPI, VerifiedTokenGroupActionWithTokenBalanceNAPI, VerifiedTokenGroupActionWithTokenIdentityInfoNAPI, VerifiedTokenGroupActionWithTokenPricingScheduleNAPI, VerifiedTokenPricingScheduleNAPI, VerifiedTokensBalancesForIdentityNAPI, VerifiedTokenTotalSupplyNAPI, VerifiedTotalCreditsNAPI, VerifiedVoteStateNAPI, VoteNAPI, VotePollNAPI, WitnessNAPI, ActionGoalNAPI, AssetLockProofTypeNAPI, BatchTypeNAPI, GasFeesPaidByNAPI, GroupActionStatusNAPI, KeyTypeNAPI, NetworkNAPI, PlatformVersionNAPI, PoolingNAPI, PurposeNAPI, SecurityLevelNAPI, TokenDistributionTypeNAPI, TokenEmergencyActionNAPI, VoteStateResultTypeNAPI } = protocol.default;
@@ -111,6 +111,10 @@ export { verifyIdentityByUniqueKeyHashProof } from './verify/Identity/verifyIden
111
111
  export { verifyIdentityContractNonceProof } from './verify/Identity/verifyIdentityContractNonceProof.js';
112
112
  export { verifyIdentityKeysByIdentifierProof } from './verify/Identity/verifyIdentityKeysByIdentifierProof.js';
113
113
  export { verifyIdentityNonceProof } from './verify/Identity/verifyIdentityNonceProof.js';
114
+ export { verifyAddressesTrunkState } from './verify/AddressFunds/verifyAddressesTrunkState.js';
115
+ export { verifyAddressesBranchState } from './verify/AddressFunds/verifyAddressesBranchState.js';
116
+ export { verifyRecentAddressBalanceChanges } from './verify/AddressFunds/verifyRecentAddressBalanceChanges.js';
117
+ export { verifyRecentCompactedAddressBalanceChanges } from './verify/AddressFunds/verifyRecentCompactedAddressBalanceChanges.js';
114
118
  export { verifyTokenBalancesForIdentitiesProof } from './verify/Tokens/verifyTokenBalancesForIdentitiesProof.js';
115
119
  export { verifyTokenContractInfoProof } from './verify/Tokens/verifyTokenContractInfoProof.js';
116
120
  export { verifyTokenDirectPurchasePrices } from './verify/Tokens/verifyTokenDirectPurchasePrices.js';
@@ -111,6 +111,10 @@ export { verifyIdentityByUniqueKeyHashProof } from './verify/Identity/verifyIden
111
111
  export { verifyIdentityContractNonceProof } from './verify/Identity/verifyIdentityContractNonceProof.js';
112
112
  export { verifyIdentityKeysByIdentifierProof } from './verify/Identity/verifyIdentityKeysByIdentifierProof.js';
113
113
  export { verifyIdentityNonceProof } from './verify/Identity/verifyIdentityNonceProof.js';
114
+ export { verifyAddressesTrunkState } from './verify/AddressFunds/verifyAddressesTrunkState.js';
115
+ export { verifyAddressesBranchState } from './verify/AddressFunds/verifyAddressesBranchState.js';
116
+ export { verifyRecentAddressBalanceChanges } from './verify/AddressFunds/verifyRecentAddressBalanceChanges.js';
117
+ export { verifyRecentCompactedAddressBalanceChanges } from './verify/AddressFunds/verifyRecentCompactedAddressBalanceChanges.js';
114
118
  export { verifyTokenBalancesForIdentitiesProof } from './verify/Tokens/verifyTokenBalancesForIdentitiesProof.js';
115
119
  export { verifyTokenContractInfoProof } from './verify/Tokens/verifyTokenContractInfoProof.js';
116
120
  export { verifyTokenDirectPurchasePrices } from './verify/Tokens/verifyTokenDirectPurchasePrices.js';
@@ -1,4 +1,4 @@
1
- import type { AddressCreditWithdrawalTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { AddressCreditWithdrawalTransitionNAPI, PlatformVersionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { InputAddressWASM } from './entities/InputAddress.js';
3
3
  import { AddressFundsFeeStrategyStepWASM } from './entities/AddressFundsFeeStrategyStep.js';
4
4
  import { PoolingLike } from '../../types.js';
@@ -26,6 +26,8 @@ export declare class AddressCreditWithdrawalTransitionWASM {
26
26
  set userFeeIncrease(value: number);
27
27
  get inputWitness(): AddressWitnessWASM[];
28
28
  set inputWitness(value: AddressWitnessWASM[]);
29
+ static estimateMinFee(inputCount: number, hasChangeOutput: boolean, platformVersion?: PlatformVersionNAPI): bigint;
30
+ calculateMinRequiredFee(platformVersion?: PlatformVersionNAPI): bigint;
29
31
  bytes(): Uint8Array;
30
32
  hex(): string;
31
33
  base64(): string;
@@ -63,6 +63,12 @@ export class AddressCreditWithdrawalTransitionWASM {
63
63
  set inputWitness(value) {
64
64
  this._rawAddressCreditWithdrawalTransition.inputWitness = value.map(witness => witness._rawWitness);
65
65
  }
66
+ static estimateMinFee(inputCount, hasChangeOutput, platformVersion) {
67
+ return BigInt(dppProvider.dpp.AddressCreditWithdrawalTransitionNAPI.estimateMinFee(inputCount, hasChangeOutput, platformVersion));
68
+ }
69
+ calculateMinRequiredFee(platformVersion) {
70
+ return BigInt(this._rawAddressCreditWithdrawalTransition.calculateMinRequiredFee(platformVersion));
71
+ }
66
72
  bytes() {
67
73
  return this._rawAddressCreditWithdrawalTransition.bytes();
68
74
  }
@@ -1,4 +1,4 @@
1
- import type { AddressFundingFromAssetLockTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { AddressFundingFromAssetLockTransitionNAPI, PlatformVersionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { AssetLockProofWASM } from '../AssetLockProof/AssetLockProof.js';
3
3
  import { InputAddressWASM } from './entities/InputAddress.js';
4
4
  import { AddressFundsFeeStrategyStepWASM } from './entities/AddressFundsFeeStrategyStep.js';
@@ -23,6 +23,7 @@ export declare class AddressFundingFromAssetLockTransitionWASM {
23
23
  set inputWitness(value: AddressWitnessWASM[]);
24
24
  get signature(): Uint8Array;
25
25
  set signature(value: Uint8Array);
26
+ calculateMinRequiredFee(platformVersion?: PlatformVersionNAPI): bigint;
26
27
  bytes(): Uint8Array;
27
28
  hex(): string;
28
29
  base64(): string;
@@ -53,6 +53,9 @@ export class AddressFundingFromAssetLockTransitionWASM {
53
53
  set signature(value) {
54
54
  this._rawAddressFundingFromAssetLockTransition.signature = value;
55
55
  }
56
+ calculateMinRequiredFee(platformVersion) {
57
+ return BigInt(this._rawAddressFundingFromAssetLockTransition.calculateMinRequiredFee(platformVersion));
58
+ }
56
59
  bytes() {
57
60
  return this._rawAddressFundingFromAssetLockTransition.bytes();
58
61
  }
@@ -1,4 +1,4 @@
1
- import type { AddressFundsTransferTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { AddressFundsTransferTransitionNAPI, PlatformVersionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { InputAddressWASM } from './entities/InputAddress.js';
3
3
  import { AddressFundsFeeStrategyStepWASM } from './entities/AddressFundsFeeStrategyStep.js';
4
4
  import { AddressWitnessWASM } from '../PlatformAddress/AddressWitness.js';
@@ -18,6 +18,8 @@ export declare class AddressFundsTransferTransitionWASM {
18
18
  set userFeeIncrease(value: number);
19
19
  get inputWitness(): AddressWitnessWASM[];
20
20
  set inputWitness(witness: AddressWitnessWASM[]);
21
+ static estimateMinFee(inputCount: number, outputCount: number, platformVersion?: PlatformVersionNAPI): bigint;
22
+ calculateMinRequiredFee(platformVersion?: PlatformVersionNAPI): bigint;
21
23
  bytes(): Uint8Array;
22
24
  hex(): string;
23
25
  base64(): string;
@@ -40,6 +40,12 @@ export class AddressFundsTransferTransitionWASM {
40
40
  set inputWitness(witness) {
41
41
  this._rawAddressFundsTransferTransition.inputWitness = witness.map(w => w._rawWitness);
42
42
  }
43
+ static estimateMinFee(inputCount, outputCount, platformVersion) {
44
+ return BigInt(dppProvider.dpp.AddressFundsTransferTransitionNAPI.estimateMinFee(inputCount, outputCount, platformVersion));
45
+ }
46
+ calculateMinRequiredFee(platformVersion) {
47
+ return BigInt(this._rawAddressFundsTransferTransition.calculateMinRequiredFee(platformVersion));
48
+ }
43
49
  bytes() {
44
50
  return this._rawAddressFundsTransferTransition.bytes();
45
51
  }
@@ -1,4 +1,4 @@
1
- import type { IdentityCreateFromAddressesTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { IdentityCreateFromAddressesTransitionNAPI, PlatformVersionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { IdentityPublicKeyInCreationWASM } from '../IdentityPublicKeyInCreation.js';
3
3
  import { InputAddressWASM } from './entities/InputAddress.js';
4
4
  import { AddressFundsFeeStrategyStepWASM } from './entities/AddressFundsFeeStrategyStep.js';
@@ -21,6 +21,7 @@ export declare class IdentityCreateFromAddressesTransitionWASM {
21
21
  set userFeeIncrease(value: number);
22
22
  get inputWitness(): AddressWitnessWASM[];
23
23
  set inputWitness(value: AddressWitnessWASM[]);
24
+ calculateMinRequiredFee(platformVersion?: PlatformVersionNAPI): bigint;
24
25
  bytes(): Uint8Array;
25
26
  hex(): string;
26
27
  base64(): string;
@@ -50,6 +50,9 @@ export class IdentityCreateFromAddressesTransitionWASM {
50
50
  set inputWitness(value) {
51
51
  this._rawIdentityCreateFromAddressesTransition.inputWitness = value.map(w => w._rawWitness);
52
52
  }
53
+ calculateMinRequiredFee(platformVersion) {
54
+ return BigInt(this._rawIdentityCreateFromAddressesTransition.calculateMinRequiredFee(platformVersion));
55
+ }
53
56
  bytes() {
54
57
  return this._rawIdentityCreateFromAddressesTransition.bytes();
55
58
  }
@@ -1,4 +1,4 @@
1
- import type { IdentityCreditTransferToAddressesTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { IdentityCreditTransferToAddressesTransitionNAPI, PlatformVersionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { IdentifierLike } from '../../types.js';
3
3
  import { OutputAddressWASM } from './entities/OutputAddress.js';
4
4
  import { IdentifierWASM } from '../Identifier.js';
@@ -19,6 +19,7 @@ export declare class IdentityCreditTransferToAddressesTransitionWASM {
19
19
  set signaturePublicKeyId(value: number);
20
20
  get signature(): Uint8Array;
21
21
  set signature(sig: Uint8Array);
22
+ calculateMinRequiredFee(platformVersion?: PlatformVersionNAPI): bigint;
22
23
  bytes(): Uint8Array;
23
24
  hex(): string;
24
25
  base64(): string;
@@ -45,6 +45,9 @@ export class IdentityCreditTransferToAddressesTransitionWASM {
45
45
  set signature(sig) {
46
46
  this._rawIdentityCreditTransferToAddressesTransition.signature = sig;
47
47
  }
48
+ calculateMinRequiredFee(platformVersion) {
49
+ return BigInt(this._rawIdentityCreditTransferToAddressesTransition.calculateMinRequiredFee(platformVersion));
50
+ }
48
51
  bytes() {
49
52
  return this._rawIdentityCreditTransferToAddressesTransition.bytes();
50
53
  }
@@ -1,4 +1,4 @@
1
- import type { IdentityTopUpFromAddressesTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { IdentityTopUpFromAddressesTransitionNAPI, PlatformVersionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { IdentifierLike } from '../../types.js';
3
3
  import { InputAddressWASM } from './entities/InputAddress.js';
4
4
  import { AddressFundsFeeStrategyStepWASM } from './entities/AddressFundsFeeStrategyStep.js';
@@ -19,6 +19,7 @@ export declare class IdentityTopUpFromAddressesTransitionWASM {
19
19
  set userFeeIncrease(userFeeIncrease: number);
20
20
  get inputWitness(): AddressWitnessWASM[];
21
21
  set inputWitness(addressWitness: AddressWitnessWASM[]);
22
+ calculateMinRequiredFee(platformVersion?: PlatformVersionNAPI): bigint;
22
23
  bytes(): Uint8Array;
23
24
  hex(): string;
24
25
  base64(): string;
@@ -44,6 +44,9 @@ export class IdentityTopUpFromAddressesTransitionWASM {
44
44
  set inputWitness(addressWitness) {
45
45
  this._rawIdentityTopUpFromAddressesTransition.inputWitness = addressWitness.map(w => w._rawWitness);
46
46
  }
47
+ calculateMinRequiredFee(platformVersion) {
48
+ return BigInt(this._rawIdentityTopUpFromAddressesTransition.calculateMinRequiredFee(platformVersion));
49
+ }
47
50
  bytes() {
48
51
  return this._rawIdentityTopUpFromAddressesTransition.bytes();
49
52
  }
@@ -1,4 +1,4 @@
1
- import type { BatchTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { BatchTransitionNAPI, PlatformVersionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { IdentifierLike } from '../../types.js';
3
3
  import { BatchedTransitionWASM } from './BatchedTransition.js';
4
4
  import { DocumentTransitionWASM } from './DocumentTransition.js';
@@ -20,6 +20,7 @@ export declare class BatchTransitionWASM {
20
20
  get modifiedDataIds(): IdentifierWASM[];
21
21
  get allConflictingIndexCollateralVotingFunds(): bigint | undefined;
22
22
  setIdentityContractNonce(nonce: bigint): void;
23
+ calculateMinRequiredFee(platformVersion?: PlatformVersionNAPI): bigint;
23
24
  bytes(): Uint8Array;
24
25
  hex(): string;
25
26
  base64(): string;
@@ -57,6 +57,9 @@ export class BatchTransitionWASM {
57
57
  setIdentityContractNonce(nonce) {
58
58
  this._rawBatchTransition.setIdentityContractNonce(nonce.toString());
59
59
  }
60
+ calculateMinRequiredFee(platformVersion) {
61
+ return BigInt(this._rawBatchTransition.calculateMinRequiredFee(platformVersion));
62
+ }
60
63
  bytes() {
61
64
  return this._rawBatchTransition.bytes();
62
65
  }
@@ -1,4 +1,4 @@
1
- import type { DataContractCreateTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { DataContractCreateTransitionNAPI, PlatformVersionNAPI } 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';
@@ -11,6 +11,7 @@ export declare class DataContractCreateTransitionWASM {
11
11
  verifyProtocolVersion(protocolVersion: number): boolean;
12
12
  setDataContract(dataContract: DataContractWASM, platformVersion?: PlatformVersionLike): void;
13
13
  getDataContract(platformVersion?: PlatformVersionLike, fullValidation?: boolean): DataContractWASM;
14
+ calculateMinRequiredFee(platformVersion?: PlatformVersionNAPI): bigint;
14
15
  bytes(): Uint8Array;
15
16
  hex(): string;
16
17
  base64(): string;
@@ -23,6 +23,9 @@ export class DataContractCreateTransitionWASM {
23
23
  getDataContract(platformVersion, fullValidation) {
24
24
  return DataContractWASM.createFromRawInstance(this._rawDataContractCreateTransition.getDataContract(valueToDynamicValue(platformVersion), fullValidation));
25
25
  }
26
+ calculateMinRequiredFee(platformVersion) {
27
+ return BigInt(this._rawDataContractCreateTransition.calculateMinRequiredFee(platformVersion));
28
+ }
26
29
  bytes() {
27
30
  return this._rawDataContractCreateTransition.bytes();
28
31
  }
@@ -1,4 +1,4 @@
1
- import type { DataContractUpdateTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { DataContractUpdateTransitionNAPI, PlatformVersionNAPI } 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';
@@ -11,6 +11,7 @@ export declare class DataContractUpdateTransitionWASM {
11
11
  verifyProtocolVersion(protocolVersion: number): boolean;
12
12
  setDataContract(dataContract: DataContractWASM, platformVersion?: PlatformVersionLike): void;
13
13
  getDataContract(fullValidation?: boolean, platformVersion?: PlatformVersionLike): DataContractWASM;
14
+ calculateMinRequiredFee(platformVersion?: PlatformVersionNAPI): bigint;
14
15
  bytes(): Uint8Array;
15
16
  hex(): string;
16
17
  base64(): string;
@@ -23,6 +23,9 @@ export class DataContractUpdateTransitionWASM {
23
23
  getDataContract(fullValidation, platformVersion) {
24
24
  return DataContractWASM.createFromRawInstance(this._rawDataContractUpdateTransition.getDataContract(fullValidation, valueToDynamicValue(platformVersion)));
25
25
  }
26
+ calculateMinRequiredFee(platformVersion) {
27
+ return BigInt(this._rawDataContractUpdateTransition.calculateMinRequiredFee(platformVersion));
28
+ }
26
29
  bytes() {
27
30
  return this._rawDataContractUpdateTransition.bytes();
28
31
  }
@@ -1,4 +1,4 @@
1
- import type { IdentityCreateTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { IdentityCreateTransitionNAPI, PlatformVersionNAPI } 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';
@@ -18,6 +18,7 @@ export declare class IdentityCreateTransitionWASM {
18
18
  set assetLock(value: AssetLockProofWASM);
19
19
  getSignableBytes(): Uint8Array;
20
20
  getIdentifier(): IdentifierWASM;
21
+ calculateMinRequiredFee(platformVersion?: PlatformVersionNAPI): bigint;
21
22
  bytes(): Uint8Array;
22
23
  toStateTransition(): StateTransitionWASM;
23
24
  static default(platformVersion: PlatformVersionLike): IdentityCreateTransitionWASM;
@@ -40,6 +40,9 @@ export class IdentityCreateTransitionWASM {
40
40
  getIdentifier() {
41
41
  return IdentifierWASM.createFromRawInstance(this._rawIdentityCreateTransition.getIdentifier());
42
42
  }
43
+ calculateMinRequiredFee(platformVersion) {
44
+ return BigInt(this._rawIdentityCreateTransition.calculateMinRequiredFee(platformVersion));
45
+ }
43
46
  bytes() {
44
47
  return this._rawIdentityCreateTransition.bytes();
45
48
  }
@@ -1,4 +1,4 @@
1
- import type { IdentityCreditTransferNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { IdentityCreditTransferNAPI, PlatformVersionNAPI } 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';
@@ -21,6 +21,7 @@ export declare class IdentityCreditTransferWASM {
21
21
  get userFeeIncrease(): number;
22
22
  set userFeeIncrease(value: number);
23
23
  getSignableBytes(): Uint8Array;
24
+ calculateMinRequiredFee(platformVersion?: PlatformVersionNAPI): bigint;
24
25
  bytes(): Uint8Array;
25
26
  hex(): string;
26
27
  base64(): string;
@@ -53,6 +53,9 @@ export class IdentityCreditTransferWASM {
53
53
  getSignableBytes() {
54
54
  return this._rawIdentityCreditTransfer.getSignableBytes();
55
55
  }
56
+ calculateMinRequiredFee(platformVersion) {
57
+ return BigInt(this._rawIdentityCreditTransfer.calculateMinRequiredFee(platformVersion));
58
+ }
56
59
  bytes() {
57
60
  return this._rawIdentityCreditTransfer.bytes();
58
61
  }
@@ -1,4 +1,4 @@
1
- import type { IdentityCreditWithdrawalTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { IdentityCreditWithdrawalTransitionNAPI, PlatformVersionNAPI } 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';
@@ -30,6 +30,7 @@ export declare class IdentityCreditWithdrawalTransitionWASM {
30
30
  getPurposeRequirement(): string[];
31
31
  getModifiedDataIds(): IdentifierWASM[];
32
32
  getOptionalAssetLockProof(): AssetLockProofWASM | undefined;
33
+ calculateMinRequiredFee(platformVersion?: PlatformVersionNAPI): bigint;
33
34
  bytes(): Uint8Array;
34
35
  hex(): string;
35
36
  base64(): string;
@@ -82,6 +82,9 @@ export class IdentityCreditWithdrawalTransitionWASM {
82
82
  return AssetLockProofWASM.createFromRawInstance(lock);
83
83
  }
84
84
  }
85
+ calculateMinRequiredFee(platformVersion) {
86
+ return BigInt(this._rawIdentityCreditWithdrawalTransition.calculateMinRequiredFee(platformVersion));
87
+ }
85
88
  bytes() {
86
89
  return this._rawIdentityCreditWithdrawalTransition.bytes();
87
90
  }
@@ -1,4 +1,4 @@
1
- import type { IdentityTopUpTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { IdentityTopUpTransitionNAPI, PlatformVersionNAPI } 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';
@@ -18,6 +18,7 @@ export declare class IdentityTopUpTransitionWASM {
18
18
  getSignableBytes(): Uint8Array;
19
19
  getModifiedDataIds(): IdentifierWASM[];
20
20
  getOptionalAssetLockProof(): AssetLockProofWASM | undefined;
21
+ calculateMinRequiredFee(platformVersion?: PlatformVersionNAPI): bigint;
21
22
  bytes(): Uint8Array;
22
23
  hex(): string;
23
24
  base64(): string;
@@ -43,6 +43,9 @@ export class IdentityTopUpTransitionWASM {
43
43
  const lock = this._rawIdentityTopUpTransition.getOptionalAssetLockProof();
44
44
  return (lock != null) ? AssetLockProofWASM.createFromRawInstance(lock) : undefined;
45
45
  }
46
+ calculateMinRequiredFee(platformVersion) {
47
+ return BigInt(this._rawIdentityTopUpTransition.calculateMinRequiredFee(platformVersion));
48
+ }
46
49
  bytes() {
47
50
  return this._rawIdentityTopUpTransition.bytes();
48
51
  }
@@ -1,4 +1,4 @@
1
- import type { IdentityUpdateTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { IdentityUpdateTransitionNAPI, PlatformVersionNAPI } 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';
@@ -28,6 +28,7 @@ export declare class IdentityUpdateTransitionWASM {
28
28
  getPurposeRequirement(): string[];
29
29
  getModifiedDataIds(): IdentifierWASM[];
30
30
  getOptionalAssetLockProof(): AssetLockProofWASM | undefined;
31
+ calculateMinRequiredFee(platformVersion?: PlatformVersionNAPI): bigint;
31
32
  bytes(): Uint8Array;
32
33
  hex(): string;
33
34
  base64(): string;
@@ -76,6 +76,9 @@ export class IdentityUpdateTransitionWASM {
76
76
  return undefined;
77
77
  }
78
78
  }
79
+ calculateMinRequiredFee(platformVersion) {
80
+ return BigInt(this._rawIdentityUpdateTransition.calculateMinRequiredFee(platformVersion));
81
+ }
79
82
  bytes() {
80
83
  return this._rawIdentityUpdateTransition.bytes();
81
84
  }
@@ -1,4 +1,4 @@
1
- import type { MasternodeVoteTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { MasternodeVoteTransitionNAPI, PlatformVersionNAPI } 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';
@@ -23,6 +23,7 @@ export declare class MasternodeVoteTransitionWASM {
23
23
  get assetLock(): AssetLockProofWASM | undefined;
24
24
  get modifiedDataIds(): IdentifierWASM[];
25
25
  getSignableBytes(): Uint8Array;
26
+ calculateMinRequiredFee(platformVersion?: PlatformVersionNAPI): bigint;
26
27
  bytes(): Uint8Array;
27
28
  hex(): string;
28
29
  base64(): string;
@@ -58,6 +58,9 @@ export class MasternodeVoteTransitionWASM {
58
58
  getSignableBytes() {
59
59
  return this._rawMasternodeVoteTransition.getSignableBytes();
60
60
  }
61
+ calculateMinRequiredFee(platformVersion) {
62
+ return BigInt(this._rawMasternodeVoteTransition.calculateMinRequiredFee(platformVersion));
63
+ }
61
64
  bytes() {
62
65
  return this._rawMasternodeVoteTransition.bytes();
63
66
  }
@@ -1,4 +1,4 @@
1
- import type { PlatformAddressNAPI } from '../../../../binaries/bindingsTypes.js';
1
+ import type { PlatformAddressNAPI, PlatformVersionNAPI } from '../../../../binaries/bindingsTypes.js';
2
2
  import { NetworkLike, PlatformAddressLike } from '../../types.js';
3
3
  export declare class PlatformAddressWASM {
4
4
  /** @private **/
@@ -10,6 +10,14 @@ export declare class PlatformAddressWASM {
10
10
  isP2PKH(): boolean;
11
11
  isP2SH(): boolean;
12
12
  hash(): Uint8Array;
13
+ /**
14
+ * Storage fee charged for creating balance entries for addresses that are not in state yet.
15
+ *
16
+ * A minimum fee prices every output as a fresh address, but the fee actually charged is
17
+ * metered: paying an address that already exists adds no bytes, while each address created
18
+ * costs this much storage on top of processing.
19
+ */
20
+ static estimateStorageFeeForNewAddresses(addressCount: number, platformVersion?: PlatformVersionNAPI): bigint;
13
21
  static fromBech32m(bech32m: string): PlatformAddressWASM;
14
22
  static fromBytes(bytes: Uint8Array): PlatformAddressWASM;
15
23
  static createFromRawInstance(rawInstance: PlatformAddressNAPI): PlatformAddressWASM;
@@ -24,6 +24,16 @@ export class PlatformAddressWASM {
24
24
  hash() {
25
25
  return this._rawPlatformAddress.hash();
26
26
  }
27
+ /**
28
+ * Storage fee charged for creating balance entries for addresses that are not in state yet.
29
+ *
30
+ * A minimum fee prices every output as a fresh address, but the fee actually charged is
31
+ * metered: paying an address that already exists adds no bytes, while each address created
32
+ * costs this much storage on top of processing.
33
+ */
34
+ static estimateStorageFeeForNewAddresses(addressCount, platformVersion) {
35
+ return BigInt(dppProvider.dpp.PlatformAddressNAPI.estimateStorageFeeForNewAddresses(addressCount, platformVersion));
36
+ }
27
37
  static fromBech32m(bech32m) {
28
38
  return PlatformAddressWASM.createFromRawInstance(dppProvider.dpp.PlatformAddressNAPI.fromBech32m(bech32m));
29
39
  }
@@ -1,4 +1,4 @@
1
- import type { StateTransitionNAPI } from '../../../binaries/bindingsTypes.js';
1
+ import type { StateTransitionNAPI, PlatformVersionNAPI } 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';
@@ -29,6 +29,7 @@ export declare class StateTransitionWASM {
29
29
  setIdentityContractNonce(nonce: bigint): void;
30
30
  setIdentityNonce(nonce: bigint): void;
31
31
  getSignableBytes(): Uint8Array;
32
+ calculateMinRequiredFee(platformVersion?: PlatformVersionNAPI): bigint;
32
33
  bytes(): Uint8Array;
33
34
  hex(): string;
34
35
  base64(): string;
@@ -79,6 +79,9 @@ export class StateTransitionWASM {
79
79
  getSignableBytes() {
80
80
  return this._rawStateTransition.getSignableBytes();
81
81
  }
82
+ calculateMinRequiredFee(platformVersion) {
83
+ return BigInt(this._rawStateTransition.calculateMinRequiredFee(platformVersion));
84
+ }
82
85
  bytes() {
83
86
  return this._rawStateTransition.bytes();
84
87
  }