pshenmic-dpp 2.0.0-dev.1 → 2.0.0-dev.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/binaries/bindingsTypes.d.ts +48 -23
- package/dist/binaries/bindingsTypes.js +4 -3
- package/dist/binaries/native/aarch64-apple-darwin/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/x86_64-apple-darwin/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/x86_64-unknown-linux-gnu/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/x86_64-unknown-linux-musl/pshenmic_dpp.node +0 -0
- package/dist/binaries/native.d.ts +171 -0
- package/dist/binaries/native.js +10 -0
- package/dist/binaries/node.d.ts +171 -0
- package/dist/binaries/node.js +51 -0
- package/dist/binaries/pshenmic_dpp.android.node/arm64-v8a/libpshenmic_dpp.so +0 -0
- package/dist/binaries/pshenmic_dpp.apple.node/Info.plist +29 -0
- package/dist/binaries/pshenmic_dpp.apple.node/ios-arm64-simulator/libpshenmic_dpp.framework/Info.plist +24 -0
- package/dist/binaries/pshenmic_dpp.apple.node/ios-arm64-simulator/libpshenmic_dpp.framework/libpshenmic_dpp +0 -0
- package/dist/binaries/pshenmic_dpp.apple.node/react-native-node-api-module +0 -0
- package/dist/binaries/pshenmic_dpp.d.ts +6 -1
- package/dist/binaries/pshenmic_dpp.js +1 -1
- package/dist/binaries/wasm/wasmBytes.js +1 -1
- package/dist/binaries/wasm.d.ts +6 -1
- package/dist/binaries/wasm.js +1 -1
- package/dist/src/dpp/dpp.d.ts +4 -2
- package/dist/src/dpp/dpp.js +4 -2
- package/dist/src/dpp/enums.d.ts +1 -1
- package/dist/src/dpp/enums.js +1 -1
- package/dist/src/dpp/structs/AddressTransitions/AddressCreditWithdrawalTransition.d.ts +2 -2
- package/dist/src/dpp/structs/AddressTransitions/AddressCreditWithdrawalTransition.js +2 -2
- package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.d.ts +2 -2
- package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.js +3 -3
- package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.d.ts +2 -2
- package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.js +3 -3
- package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.d.ts +2 -2
- package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.js +2 -2
- package/dist/src/dpp/structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.d.ts +1 -1
- package/dist/src/dpp/structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.js +1 -1
- package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.d.ts +2 -2
- package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.js +2 -2
- package/dist/src/dpp/structs/AddressTransitions/entities/AddressFundsFeeStrategyStep.d.ts +1 -1
- package/dist/src/dpp/structs/AddressTransitions/entities/InputAddress.d.ts +5 -4
- package/dist/src/dpp/structs/AddressTransitions/entities/InputAddress.js +5 -4
- package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddress.d.ts +5 -4
- package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddress.js +5 -4
- package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddressNullableCredits.d.ts +5 -4
- package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddressNullableCredits.js +5 -4
- package/dist/src/dpp/structs/AssetLockProof/AssetLockProof.d.ts +1 -1
- package/dist/src/dpp/structs/AssetLockProof/AssetLockProof.js +2 -3
- package/dist/src/dpp/structs/AssetLockProof/ChainAssetLockProof.d.ts +1 -1
- package/dist/src/dpp/structs/AssetLockProof/ChainAssetLockProof.js +2 -2
- package/dist/src/dpp/structs/AssetLockProof/InstantAssetLockProof.d.ts +1 -1
- package/dist/src/dpp/structs/AssetLockProof/InstantAssetLockProof.js +1 -1
- package/dist/src/dpp/structs/AssetLockProof/OutPoint.d.ts +1 -1
- package/dist/src/dpp/structs/AssetLockProof/OutPoint.js +1 -1
- package/dist/src/dpp/structs/AssetLockProof/Transaction.d.ts +1 -1
- package/dist/src/dpp/structs/AssetLockProof/Transaction.js +1 -1
- package/dist/src/dpp/structs/AssetLockProof/TxIn.d.ts +1 -1
- package/dist/src/dpp/structs/AssetLockProof/TxIn.js +1 -1
- package/dist/src/dpp/structs/AssetLockProof/TxOut.d.ts +1 -1
- package/dist/src/dpp/structs/AssetLockProof/TxOut.js +1 -1
- package/dist/src/dpp/structs/AssetLockProof/Witness.d.ts +1 -1
- package/dist/src/dpp/structs/AssetLockProof/Witness.js +1 -1
- package/dist/src/dpp/structs/Batch/BatchTransition.d.ts +1 -1
- package/dist/src/dpp/structs/Batch/BatchTransition.js +1 -1
- package/dist/src/dpp/structs/Batch/BatchedTransition.d.ts +3 -2
- package/dist/src/dpp/structs/Batch/BatchedTransition.js +1 -1
- package/dist/src/dpp/structs/Batch/DocumentBaseTransition.d.ts +3 -3
- package/dist/src/dpp/structs/Batch/DocumentBaseTransition.js +3 -3
- package/dist/src/dpp/structs/Batch/DocumentTransition.d.ts +2 -1
- package/dist/src/dpp/structs/Batch/DocumentTransition.js +4 -1
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentCreateTransition.d.ts +2 -2
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentCreateTransition.js +2 -2
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentDeleteTransition.d.ts +1 -1
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentDeleteTransition.js +1 -1
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentPurchaseTransition.d.ts +1 -1
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentPurchaseTransition.js +1 -1
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentReplaceTransition.d.ts +2 -2
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentReplaceTransition.js +2 -2
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentTransferTransition.d.ts +1 -1
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentTransferTransition.js +1 -1
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentUpdatePriceTransition.d.ts +1 -1
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentUpdatePriceTransition.js +1 -1
- package/dist/src/dpp/structs/Batch/PrefundedVotingBalance.d.ts +1 -1
- package/dist/src/dpp/structs/Batch/PrefundedVotingBalance.js +1 -1
- package/dist/src/dpp/structs/Batch/TokenBaseTransition.d.ts +1 -1
- package/dist/src/dpp/structs/Batch/TokenBaseTransition.js +1 -1
- package/dist/src/dpp/structs/Batch/TokenPaymentInfo.d.ts +2 -2
- package/dist/src/dpp/structs/Batch/TokenPaymentInfo.js +2 -2
- package/dist/src/dpp/structs/Batch/TokenPricingSchedule.d.ts +1 -1
- package/dist/src/dpp/structs/Batch/TokenPricingSchedule.js +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransition.d.ts +3 -2
- package/dist/src/dpp/structs/Batch/TokenTransition.js +4 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenBurnTransition.d.ts +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenBurnTransition.js +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenClaimTransition.d.ts +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenClaimTransition.js +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenConfigUpdateTransition.d.ts +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenConfigUpdateTransition.js +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDestroyFrozenFundsTransition.d.ts +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDestroyFrozenFundsTransition.js +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDirectPurchaseTransition.d.ts +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDirectPurchaseTransition.js +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenEmergencyActionTransition.d.ts +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenEmergencyActionTransition.js +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenFreezeTransition.d.ts +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenFreezeTransition.js +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenMintTransition.d.ts +2 -2
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenMintTransition.js +2 -2
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenSetPriceForDirectPurchaseTransition.d.ts +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenSetPriceForDirectPurchaseTransition.js +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenTransferTransition.d.ts +4 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenTransferTransition.js +8 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenUnFreezeTransition.d.ts +1 -1
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenUnFreezeTransition.js +1 -1
- package/dist/src/dpp/structs/ConsensusError.d.ts +2 -2
- package/dist/src/dpp/structs/ConsensusError.js +1 -1
- package/dist/src/dpp/structs/ContractBounds.d.ts +1 -1
- package/dist/src/dpp/structs/ContractBounds.js +1 -1
- package/dist/src/dpp/structs/CoreScript.d.ts +1 -1
- package/dist/src/dpp/structs/CoreScript.js +1 -1
- package/dist/src/dpp/structs/DataContract.d.ts +9 -6
- package/dist/src/dpp/structs/DataContract.js +12 -3
- package/dist/src/dpp/structs/DataContractTransitions/DataContractCreateTransition.d.ts +1 -1
- package/dist/src/dpp/structs/DataContractTransitions/DataContractCreateTransition.js +1 -1
- package/dist/src/dpp/structs/DataContractTransitions/DataContractUpdateTransition.d.ts +1 -1
- package/dist/src/dpp/structs/DataContractTransitions/DataContractUpdateTransition.js +1 -1
- package/dist/src/dpp/structs/Document.d.ts +3 -3
- package/dist/src/dpp/structs/Document.js +3 -3
- package/dist/src/dpp/structs/EncryptedNote/PrivateEncryptedNote.d.ts +1 -1
- package/dist/src/dpp/structs/EncryptedNote/PrivateEncryptedNote.js +1 -1
- package/dist/src/dpp/structs/EncryptedNote/SharedEncryptedNote.d.ts +1 -1
- package/dist/src/dpp/structs/EncryptedNote/SharedEncryptedNote.js +1 -1
- package/dist/src/dpp/structs/GroupStateTransitionInfo.d.ts +1 -1
- package/dist/src/dpp/structs/GroupStateTransitionInfo.js +1 -1
- package/dist/src/dpp/structs/Identifier.d.ts +1 -1
- package/dist/src/dpp/structs/Identifier.js +1 -1
- package/dist/src/dpp/structs/Identity.d.ts +1 -1
- package/dist/src/dpp/structs/Identity.js +1 -1
- package/dist/src/dpp/structs/IdentityPublicKey.d.ts +2 -1
- package/dist/src/dpp/structs/IdentityPublicKey.js +6 -1
- package/dist/src/dpp/structs/IdentityPublicKeyInCreation.d.ts +2 -1
- package/dist/src/dpp/structs/IdentityPublicKeyInCreation.js +6 -1
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreateTransition.d.ts +1 -1
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreateTransition.js +1 -1
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditTransfer.d.ts +1 -1
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditTransfer.js +1 -1
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditWithdrawalTransition.d.ts +2 -2
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditWithdrawalTransition.js +1 -1
- package/dist/src/dpp/structs/IdentityTransitions/IdentityTopUpTransition.d.ts +2 -2
- package/dist/src/dpp/structs/IdentityTransitions/IdentityTopUpTransition.js +2 -2
- package/dist/src/dpp/structs/IdentityTransitions/IdentityUpdateTransition.d.ts +2 -2
- package/dist/src/dpp/structs/IdentityTransitions/IdentityUpdateTransition.js +2 -2
- package/dist/src/dpp/structs/InstantLock.d.ts +1 -1
- package/dist/src/dpp/structs/InstantLock.js +1 -1
- package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.d.ts +1 -1
- package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.js +1 -1
- package/dist/src/dpp/structs/MasternodeVote/ResourceVoteChoice.d.ts +1 -1
- package/dist/src/dpp/structs/MasternodeVote/Vote.d.ts +1 -1
- package/dist/src/dpp/structs/MasternodeVote/Vote.js +1 -1
- package/dist/src/dpp/structs/MasternodeVote/VotePoll.d.ts +2 -2
- package/dist/src/dpp/structs/MasternodeVote/VotePoll.js +3 -3
- package/dist/src/dpp/structs/PartialIdentity.d.ts +1 -1
- package/dist/src/dpp/structs/PartialIdentity.js +1 -1
- package/dist/src/dpp/structs/{Address → PlatformAddress}/AddressWitness.d.ts +3 -3
- package/dist/src/dpp/structs/{Address → PlatformAddress}/AddressWitness.js +2 -2
- package/dist/src/dpp/structs/{Address → PlatformAddress}/PlatformAddress.d.ts +5 -3
- package/dist/src/dpp/structs/{Address → PlatformAddress}/PlatformAddress.js +9 -3
- package/dist/src/dpp/structs/PrivateKey.d.ts +1 -1
- package/dist/src/dpp/structs/PrivateKey.js +1 -1
- package/dist/src/dpp/structs/PublicKey.d.ts +1 -1
- package/dist/src/dpp/structs/PublicKey.js +1 -1
- package/dist/src/dpp/structs/StateTransition.d.ts +2 -1
- package/dist/src/dpp/structs/StateTransition.js +3 -0
- package/dist/src/dpp/structs/TokenConfiguration/ActionTaker.d.ts +2 -2
- package/dist/src/dpp/structs/TokenConfiguration/ActionTaker.js +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/AuthorizedActionTakers.d.ts +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/ChangeControlRules.d.ts +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/ChangeControlRules.js +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/DistributionFunction.d.ts +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/Group.d.ts +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/Group.js +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/RewardDistributionType.d.ts +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenConfiguration.d.ts +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenConfiguration.js +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationChangeItem.d.ts +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationConvention.d.ts +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationConvention.js +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationLocalization.d.ts +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationLocalization.js +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRecipient.d.ts +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRules.d.ts +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRules.js +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenKeepsHistoryRules.d.ts +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenKeepsHistoryRules.js +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenMarketplaceRules.d.ts +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenMarketplaceRules.js +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenPerpetualDistribution.d.ts +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenPerpetualDistribution.js +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenPreProgrammedDistribution.d.ts +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenPreProgrammedDistribution.js +1 -1
- package/dist/src/dpp/structs/TokenConfiguration/TokenTradeMode.d.ts +1 -1
- package/dist/src/dpp/types.d.ts +50 -40
- package/dist/src/dpp/utils.d.ts +4 -3
- package/dist/src/dpp/utils.js +38 -6
- package/dist/src/dpp/verify/Contested/verifyVotePollVoteStateProof.d.ts +1 -1
- package/dist/src/dpp/verify/Contested/verifyVotePollVoteStateProof.js +1 -1
- package/dist/src/dpp/verify/Document/verifyDocumentsProof.d.ts +1 -1
- package/dist/src/dpp/verify/Document/verifyDocumentsProof.js +1 -1
- package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressInfo.d.ts +2 -0
- package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressInfo.js +12 -0
- package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressesInfos.d.ts +2 -0
- package/dist/src/dpp/verify/PlatformAddress/verifyPlatformAddressesInfos.js +14 -0
- package/dist/src/dpp/verify/StateTransition/utils.js +8 -8
- package/dist/src/dpp/verify/System/verifyEpochsInfoProof.js +1 -1
- package/dist/src/dpp/verify/Tokens/verifyTokenBalancesForIdentitiesProof.js +1 -1
- package/dist/src/dpp/verify/Tokens/verifyTokenDirectPurchasePrices.js +1 -1
- package/dist/src/dpp/verify/Tokens/verifyTokensBalancesForIdentityProof.js +1 -1
- package/dist/src/native.d.ts +3 -0
- package/dist/src/native.js +6 -0
- package/package.json +17 -28
- package/tests/unit/DynamicValue.spec.ts +42 -2
- package/tests/unit/Identifier.spec.ts +1 -1
- package/tests/unit/Identity.spec.ts +1 -1
- package/tests/unit/IdentityPublicKey.spec.ts +1 -1
- package/tests/unit/NodeApi.spec.ts +49 -0
- package/dist/binaries/pshenmic_dpp.android.node/x86_64/libpshenmic_dpp.so +0 -0
|
@@ -88,7 +88,7 @@ export class BatchTransitionWASM {
|
|
|
88
88
|
return BatchTransitionWASM.createFromRawInstance(dppProvider.dpp.BatchTransitionNAPI.fromStateTransition(stateTransition._rawStateTransition));
|
|
89
89
|
}
|
|
90
90
|
static createFromRawInstance(rawInstance) {
|
|
91
|
-
const instance = Object.create(
|
|
91
|
+
const instance = Object.create(BatchTransitionWASM.prototype);
|
|
92
92
|
instance._rawBatchTransition = rawInstance;
|
|
93
93
|
return instance;
|
|
94
94
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { BatchedTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { BatchedTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { TokenTransitionWASM } from './TokenTransition.js';
|
|
3
3
|
import { DocumentTransitionWASM } from './DocumentTransition.js';
|
|
4
4
|
import { IdentifierWASM } from '../Identifier.js';
|
|
5
|
+
import { IdentifierLike } from '../../types.js';
|
|
5
6
|
export declare class BatchedTransitionWASM {
|
|
6
7
|
/** @private **/
|
|
7
8
|
_rawTransition: BatchedTransitionNAPI;
|
|
8
9
|
constructor(transition: TokenTransitionWASM | DocumentTransitionWASM);
|
|
9
10
|
get dataContractId(): IdentifierWASM;
|
|
10
|
-
set dataContractId(value:
|
|
11
|
+
set dataContractId(value: IdentifierLike);
|
|
11
12
|
toTransition(): DocumentTransitionWASM | TokenTransitionWASM;
|
|
12
13
|
static createFromRawInstance(rawInstance: BatchedTransitionNAPI): BatchedTransitionWASM;
|
|
13
14
|
}
|
|
@@ -32,7 +32,7 @@ export class BatchedTransitionWASM {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
static createFromRawInstance(rawInstance) {
|
|
35
|
-
const instance = Object.create(
|
|
35
|
+
const instance = Object.create(BatchedTransitionWASM.prototype);
|
|
36
36
|
instance._rawTransition = rawInstance;
|
|
37
37
|
return instance;
|
|
38
38
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DocumentBaseTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { DocumentBaseTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { IdentifierLike } from '../../types.js';
|
|
3
3
|
import { TokenPaymentInfoWASM } from './TokenPaymentInfo.js';
|
|
4
4
|
import { IdentifierWASM } from '../Identifier.js';
|
|
@@ -7,11 +7,11 @@ export declare class DocumentBaseTransitionWASM {
|
|
|
7
7
|
_rawDocumentBaseTransition: DocumentBaseTransitionNAPI;
|
|
8
8
|
constructor(documentId: IdentifierLike, identityContractNonce: bigint, documentTypeName: string, dataContractId: IdentifierLike, tokenPaymentInfo?: TokenPaymentInfoWASM);
|
|
9
9
|
get id(): IdentifierWASM;
|
|
10
|
-
set id(id:
|
|
10
|
+
set id(id: IdentifierLike);
|
|
11
11
|
get identityContractNonce(): bigint;
|
|
12
12
|
set identityContractNonce(identityContractNonce: bigint);
|
|
13
13
|
get dataContractId(): IdentifierWASM;
|
|
14
|
-
set dataContractId(id:
|
|
14
|
+
set dataContractId(id: IdentifierLike);
|
|
15
15
|
get documentTypeName(): string;
|
|
16
16
|
set documentTypeName(name: string);
|
|
17
17
|
get tokenPaymentInfo(): TokenPaymentInfoWASM | undefined;
|
|
@@ -12,7 +12,7 @@ export class DocumentBaseTransitionWASM {
|
|
|
12
12
|
return IdentifierWASM.createFromRawInstance(this._rawDocumentBaseTransition.id);
|
|
13
13
|
}
|
|
14
14
|
set id(id) {
|
|
15
|
-
this._rawDocumentBaseTransition.id = id
|
|
15
|
+
this._rawDocumentBaseTransition.id = prepareIdentifierValue(id);
|
|
16
16
|
}
|
|
17
17
|
get identityContractNonce() {
|
|
18
18
|
return BigInt(this._rawDocumentBaseTransition.identityContractNonce);
|
|
@@ -24,7 +24,7 @@ export class DocumentBaseTransitionWASM {
|
|
|
24
24
|
return IdentifierWASM.createFromRawInstance(this._rawDocumentBaseTransition.dataContractId);
|
|
25
25
|
}
|
|
26
26
|
set dataContractId(id) {
|
|
27
|
-
this._rawDocumentBaseTransition.dataContractId = id
|
|
27
|
+
this._rawDocumentBaseTransition.dataContractId = prepareIdentifierValue(id);
|
|
28
28
|
}
|
|
29
29
|
get documentTypeName() {
|
|
30
30
|
return this._rawDocumentBaseTransition.documentTypeName;
|
|
@@ -47,7 +47,7 @@ export class DocumentBaseTransitionWASM {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
static createFromRawInstance(rawInstance) {
|
|
50
|
-
const instance = Object.create(
|
|
50
|
+
const instance = Object.create(DocumentBaseTransitionWASM.prototype);
|
|
51
51
|
instance._rawDocumentBaseTransition = rawInstance;
|
|
52
52
|
return instance;
|
|
53
53
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DocumentTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { DocumentTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { DocumentCreateTransitionWASM } from './DocumentTransitions/DocumentCreateTransition.js';
|
|
3
3
|
import { DocumentReplaceTransitionWASM } from './DocumentTransitions/DocumentReplaceTransition.js';
|
|
4
4
|
import { DocumentDeleteTransitionWASM } from './DocumentTransitions/DocumentDeleteTransition.js';
|
|
@@ -28,5 +28,6 @@ export declare class DocumentTransitionWASM {
|
|
|
28
28
|
get replaceTransition(): DocumentReplaceTransitionWASM;
|
|
29
29
|
get transferTransition(): DocumentTransferTransitionWASM;
|
|
30
30
|
get updatePriceTransition(): DocumentUpdatePriceTransitionWASM;
|
|
31
|
+
idDocumentTransition(): boolean;
|
|
31
32
|
static createFromRawInstance(rawInstance: DocumentTransitionNAPI): DocumentTransitionWASM;
|
|
32
33
|
}
|
|
@@ -66,8 +66,11 @@ export class DocumentTransitionWASM {
|
|
|
66
66
|
get updatePriceTransition() {
|
|
67
67
|
return DocumentUpdatePriceTransitionWASM.createFromRawInstance(this._rawTransition.updatePriceTransition);
|
|
68
68
|
}
|
|
69
|
+
idDocumentTransition() {
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
69
72
|
static createFromRawInstance(rawInstance) {
|
|
70
|
-
const instance = Object.create(
|
|
73
|
+
const instance = Object.create(DocumentTransitionWASM.prototype);
|
|
71
74
|
instance._rawTransition = rawInstance;
|
|
72
75
|
return instance;
|
|
73
76
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DocumentCreateTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { DocumentCreateTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { DocumentWASM } from '../../Document.js';
|
|
3
3
|
import { PrefundedVotingBalanceWASM } from '../PrefundedVotingBalance.js';
|
|
4
4
|
import { TokenPaymentInfoWASM } from '../TokenPaymentInfo.js';
|
|
@@ -8,7 +8,7 @@ export declare class DocumentCreateTransitionWASM {
|
|
|
8
8
|
/** @private **/
|
|
9
9
|
_rawDocumentCreateTransition: DocumentCreateTransitionNAPI;
|
|
10
10
|
constructor(document: DocumentWASM, identityContractNonce: bigint, prefundedVotingBalance?: PrefundedVotingBalanceWASM, tokenPaymentInfo?: TokenPaymentInfoWASM);
|
|
11
|
-
get data():
|
|
11
|
+
get data(): any;
|
|
12
12
|
set data(value: object);
|
|
13
13
|
get base(): DocumentBaseTransitionWASM;
|
|
14
14
|
set base(value: DocumentBaseTransitionWASM);
|
|
@@ -10,7 +10,7 @@ export class DocumentCreateTransitionWASM {
|
|
|
10
10
|
this._rawDocumentCreateTransition = new dppProvider.dpp.DocumentCreateTransitionNAPI(document._rawDocument, identityContractNonce.toString(), prefundedVotingBalance?._rawPrefundedVotingBalance, tokenPaymentInfo?._rawTokenPaymentInfo);
|
|
11
11
|
}
|
|
12
12
|
get data() {
|
|
13
|
-
return valueFromDynamicValue(this._rawDocumentCreateTransition.data);
|
|
13
|
+
return valueFromDynamicValue(this._rawDocumentCreateTransition.data, true);
|
|
14
14
|
}
|
|
15
15
|
set data(value) {
|
|
16
16
|
this._rawDocumentCreateTransition.data = valueToDynamicValue(value);
|
|
@@ -51,7 +51,7 @@ export class DocumentCreateTransitionWASM {
|
|
|
51
51
|
return DocumentCreateTransitionWASM.createFromRawInstance(dppProvider.dpp.DocumentCreateTransitionNAPI.fromDocumentTransition(transition._rawTransition));
|
|
52
52
|
}
|
|
53
53
|
static createFromRawInstance(rawInstance) {
|
|
54
|
-
const instance = Object.create(
|
|
54
|
+
const instance = Object.create(DocumentCreateTransitionWASM.prototype);
|
|
55
55
|
instance._rawDocumentCreateTransition = rawInstance;
|
|
56
56
|
return instance;
|
|
57
57
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DocumentDeleteTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { DocumentDeleteTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { DocumentWASM } from '../../Document.js';
|
|
3
3
|
import { TokenPaymentInfoWASM } from '../TokenPaymentInfo.js';
|
|
4
4
|
import { DocumentBaseTransitionWASM, DocumentTransitionWASM } from '../../../dpp.js';
|
|
@@ -19,7 +19,7 @@ export class DocumentDeleteTransitionWASM {
|
|
|
19
19
|
return DocumentDeleteTransitionWASM.createFromRawInstance(dppProvider.dpp.DocumentDeleteTransitionNAPI.fromDocumentTransition(transition._rawTransition));
|
|
20
20
|
}
|
|
21
21
|
static createFromRawInstance(rawInstance) {
|
|
22
|
-
const instance = Object.create(
|
|
22
|
+
const instance = Object.create(DocumentDeleteTransitionWASM.prototype);
|
|
23
23
|
instance._rawDocumentDeleteTransition = rawInstance;
|
|
24
24
|
return instance;
|
|
25
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DocumentPurchaseTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { DocumentPurchaseTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { DocumentWASM } from '../../Document.js';
|
|
3
3
|
import { TokenPaymentInfoWASM } from '../TokenPaymentInfo.js';
|
|
4
4
|
import { DocumentBaseTransitionWASM } from '../DocumentBaseTransition.js';
|
|
@@ -32,7 +32,7 @@ export class DocumentPurchaseTransitionWASM {
|
|
|
32
32
|
return DocumentPurchaseTransitionWASM.createFromRawInstance(dppProvider.dpp.DocumentPurchaseTransitionNAPI.fromDocumentTransition(transition._rawTransition));
|
|
33
33
|
}
|
|
34
34
|
static createFromRawInstance(rawInstance) {
|
|
35
|
-
const instance = Object.create(
|
|
35
|
+
const instance = Object.create(DocumentPurchaseTransitionWASM.prototype);
|
|
36
36
|
instance._rawDocumentPurchaseTransition = rawInstance;
|
|
37
37
|
return instance;
|
|
38
38
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DocumentReplaceTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { DocumentReplaceTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { DocumentWASM } from '../../Document.js';
|
|
3
3
|
import { TokenPaymentInfoWASM } from '../TokenPaymentInfo.js';
|
|
4
4
|
import { DocumentBaseTransitionWASM } from '../DocumentBaseTransition.js';
|
|
@@ -7,7 +7,7 @@ export declare class DocumentReplaceTransitionWASM {
|
|
|
7
7
|
/** @private **/
|
|
8
8
|
_rawDocumentReplaceTransition: DocumentReplaceTransitionNAPI;
|
|
9
9
|
constructor(document: DocumentWASM, identityContractNonce: bigint, tokenPaymentInfo?: TokenPaymentInfoWASM);
|
|
10
|
-
get data():
|
|
10
|
+
get data(): any;
|
|
11
11
|
set data(value: object);
|
|
12
12
|
get base(): DocumentBaseTransitionWASM;
|
|
13
13
|
set base(value: DocumentBaseTransitionWASM);
|
|
@@ -9,7 +9,7 @@ export class DocumentReplaceTransitionWASM {
|
|
|
9
9
|
this._rawDocumentReplaceTransition = new dppProvider.dpp.DocumentReplaceTransitionNAPI(document._rawDocument, identityContractNonce.toString(), tokenPaymentInfo?._rawTokenPaymentInfo);
|
|
10
10
|
}
|
|
11
11
|
get data() {
|
|
12
|
-
return valueFromDynamicValue(this._rawDocumentReplaceTransition.data);
|
|
12
|
+
return valueFromDynamicValue(this._rawDocumentReplaceTransition.data, true);
|
|
13
13
|
}
|
|
14
14
|
set data(value) {
|
|
15
15
|
this._rawDocumentReplaceTransition.data = valueToDynamicValue(value);
|
|
@@ -33,7 +33,7 @@ export class DocumentReplaceTransitionWASM {
|
|
|
33
33
|
return DocumentReplaceTransitionWASM.createFromRawInstance(dppProvider.dpp.DocumentReplaceTransitionNAPI.fromDocumentTransition(transition._rawTransition));
|
|
34
34
|
}
|
|
35
35
|
static createFromRawInstance(rawInstance) {
|
|
36
|
-
const instance = Object.create(
|
|
36
|
+
const instance = Object.create(DocumentReplaceTransitionWASM.prototype);
|
|
37
37
|
instance._rawDocumentReplaceTransition = rawInstance;
|
|
38
38
|
return instance;
|
|
39
39
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DocumentTransferTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { DocumentTransferTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { DocumentWASM } from '../../Document.js';
|
|
3
3
|
import { IdentifierLike } from '../../../types.js';
|
|
4
4
|
import { TokenPaymentInfoWASM } from '../TokenPaymentInfo.js';
|
|
@@ -28,7 +28,7 @@ export class DocumentTransferTransitionWASM {
|
|
|
28
28
|
return DocumentTransferTransitionWASM.createFromRawInstance(dppProvider.dpp.DocumentTransferTransitionNAPI.fromDocumentTransition(transition._rawTransition));
|
|
29
29
|
}
|
|
30
30
|
static createFromRawInstance(rawInstance) {
|
|
31
|
-
const instance = Object.create(
|
|
31
|
+
const instance = Object.create(DocumentTransferTransitionWASM.prototype);
|
|
32
32
|
instance._rawDocumentTransferTransition = rawInstance;
|
|
33
33
|
return instance;
|
|
34
34
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DocumentUpdatePriceTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { DocumentUpdatePriceTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { DocumentWASM } from '../../Document.js';
|
|
3
3
|
import { TokenPaymentInfoWASM } from '../TokenPaymentInfo.js';
|
|
4
4
|
import { DocumentBaseTransitionWASM } from '../DocumentBaseTransition.js';
|
|
@@ -26,7 +26,7 @@ export class DocumentUpdatePriceTransitionWASM {
|
|
|
26
26
|
return DocumentUpdatePriceTransitionWASM.createFromRawInstance(dppProvider.dpp.DocumentUpdatePriceTransitionNAPI.fromDocumentTransition(transition._rawTransition));
|
|
27
27
|
}
|
|
28
28
|
static createFromRawInstance(rawInstance) {
|
|
29
|
-
const instance = Object.create(
|
|
29
|
+
const instance = Object.create(DocumentUpdatePriceTransitionWASM.prototype);
|
|
30
30
|
instance._rawDocumentUpdatePriceTransition = rawInstance;
|
|
31
31
|
return instance;
|
|
32
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PrefundedVotingBalanceNAPI } from '../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { PrefundedVotingBalanceNAPI } from '../../../../binaries/bindingsTypes.js';
|
|
2
2
|
export declare class PrefundedVotingBalanceWASM {
|
|
3
3
|
/** @private **/
|
|
4
4
|
_rawPrefundedVotingBalance: PrefundedVotingBalanceNAPI;
|
|
@@ -12,7 +12,7 @@ export class PrefundedVotingBalanceWASM {
|
|
|
12
12
|
return BigInt(this._rawPrefundedVotingBalance.credits);
|
|
13
13
|
}
|
|
14
14
|
static createFromRawInstance(rawInstance) {
|
|
15
|
-
const instance = Object.create(
|
|
15
|
+
const instance = Object.create(PrefundedVotingBalanceWASM.prototype);
|
|
16
16
|
instance._rawPrefundedVotingBalance = rawInstance;
|
|
17
17
|
return instance;
|
|
18
18
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TokenBaseTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { TokenBaseTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { IdentifierLike } from '../../types.js';
|
|
3
3
|
import { GroupStateTransitionInfoWASM } from '../GroupStateTransitionInfo.js';
|
|
4
4
|
import { IdentifierWASM } from '../Identifier.js';
|
|
@@ -42,7 +42,7 @@ export class TokenBaseTransitionWASM {
|
|
|
42
42
|
this._rawTokenBaseTransition.usingGroupInfo = value?._rawGroupStateTransitionInfo;
|
|
43
43
|
}
|
|
44
44
|
static createFromRawInstance(rawInstance) {
|
|
45
|
-
const instance = Object.create(
|
|
45
|
+
const instance = Object.create(TokenBaseTransitionWASM.prototype);
|
|
46
46
|
instance._rawTokenBaseTransition = rawInstance;
|
|
47
47
|
return instance;
|
|
48
48
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { TokenPaymentInfoNAPI } from '../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { TokenPaymentInfoNAPI } from '../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { GasFeesPaidByLike, IdentifierLike } from '../../types.js';
|
|
3
3
|
import { IdentifierWASM } from '../Identifier.js';
|
|
4
4
|
export declare class TokenPaymentInfoWASM {
|
|
5
5
|
/** @private **/
|
|
6
6
|
_rawTokenPaymentInfo: TokenPaymentInfoNAPI;
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(paymentTokenContractId: IdentifierLike | undefined | null, tokenContractPosition: number, minimumTokenCost?: bigint, maximumTokenCost?: bigint, gasFeesPaidBy?: GasFeesPaidByLike);
|
|
8
8
|
get paymentTokenContractId(): IdentifierWASM | undefined;
|
|
9
9
|
set paymentTokenContractId(id: IdentifierWASM | undefined);
|
|
10
10
|
get tokenContractPosition(): number;
|
|
@@ -4,7 +4,7 @@ import { IdentifierWASM } from '../Identifier.js';
|
|
|
4
4
|
export class TokenPaymentInfoWASM {
|
|
5
5
|
/** @private **/
|
|
6
6
|
_rawTokenPaymentInfo;
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(paymentTokenContractId, tokenContractPosition, minimumTokenCost, maximumTokenCost, gasFeesPaidBy) {
|
|
8
8
|
this._rawTokenPaymentInfo = new dppProvider.dpp.TokenPaymentInfoNAPI(paymentTokenContractId != null ? prepareIdentifierValue(paymentTokenContractId) : undefined, tokenContractPosition, minimumTokenCost?.toString(), maximumTokenCost?.toString(), valueToDynamicValue(gasFeesPaidBy));
|
|
9
9
|
}
|
|
10
10
|
get paymentTokenContractId() {
|
|
@@ -47,7 +47,7 @@ export class TokenPaymentInfoWASM {
|
|
|
47
47
|
this._rawTokenPaymentInfo.gasFeesPaidBy = valueToDynamicValue(value);
|
|
48
48
|
}
|
|
49
49
|
static crateFromRawInstance(rawInstance) {
|
|
50
|
-
const instance = Object.create(
|
|
50
|
+
const instance = Object.create(TokenPaymentInfoWASM.prototype);
|
|
51
51
|
instance._rawTokenPaymentInfo = rawInstance;
|
|
52
52
|
return instance;
|
|
53
53
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TokenPricingScheduleNAPI } from '../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { TokenPricingScheduleNAPI } from '../../../../binaries/bindingsTypes.js';
|
|
2
2
|
export declare class TokenPricingScheduleWASM {
|
|
3
3
|
/** @private **/
|
|
4
4
|
_rawTokenPricingSchedule: TokenPricingScheduleNAPI;
|
|
@@ -34,7 +34,7 @@ export class TokenPricingScheduleWASM {
|
|
|
34
34
|
return TokenPricingScheduleWASM.createFromRawInstance(dppProvider.dpp.TokenPricingScheduleNAPI.SetPrices(valueToDynamicValue(prices)));
|
|
35
35
|
}
|
|
36
36
|
static createFromRawInstance(rawInstance) {
|
|
37
|
-
const instance = Object.create(
|
|
37
|
+
const instance = Object.create(TokenPricingScheduleWASM.prototype);
|
|
38
38
|
instance._rawTokenPricingSchedule = rawInstance;
|
|
39
39
|
return instance;
|
|
40
40
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TokenTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { TokenTransitionNAPI } from '../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { IdentifierLike, TokenTransitionLike } from '../../types.js';
|
|
3
3
|
import { IdentifierWASM } from '../Identifier.js';
|
|
4
4
|
export declare class TokenTransitionWASM {
|
|
@@ -10,11 +10,12 @@ export declare class TokenTransitionWASM {
|
|
|
10
10
|
get tokenId(): IdentifierWASM;
|
|
11
11
|
set tokenId(value: IdentifierLike);
|
|
12
12
|
get contractId(): IdentifierWASM;
|
|
13
|
-
set contractId(value:
|
|
13
|
+
set contractId(value: IdentifierLike);
|
|
14
14
|
getTransition(): TokenTransitionLike;
|
|
15
15
|
getTransitionTypeNumber(): number;
|
|
16
16
|
getTransitionType(): string;
|
|
17
17
|
getHistoricalDocumentTypeName(): string;
|
|
18
18
|
getHistoricalDocumentId(ownerId: IdentifierLike): IdentifierWASM;
|
|
19
|
+
idDocumentTransition(): boolean;
|
|
19
20
|
static createFromRawInstance(rawInstance: TokenTransitionNAPI): TokenTransitionWASM;
|
|
20
21
|
}
|
|
@@ -84,8 +84,11 @@ export class TokenTransitionWASM {
|
|
|
84
84
|
getHistoricalDocumentId(ownerId) {
|
|
85
85
|
return IdentifierWASM.createFromRawInstance(this._rawTokenTransition.getHistoricalDocumentId(prepareIdentifierValue(ownerId)));
|
|
86
86
|
}
|
|
87
|
+
idDocumentTransition() {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
87
90
|
static createFromRawInstance(rawInstance) {
|
|
88
|
-
const instance = Object.create(
|
|
91
|
+
const instance = Object.create(TokenTransitionWASM.prototype);
|
|
89
92
|
instance._rawTokenTransition = rawInstance;
|
|
90
93
|
return instance;
|
|
91
94
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TokenBurnTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { TokenBurnTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { TokenBaseTransitionWASM } from '../TokenBaseTransition.js';
|
|
3
3
|
export declare class TokenBurnTransitionWASM {
|
|
4
4
|
/** @private **/
|
|
@@ -25,7 +25,7 @@ export class TokenBurnTransitionWASM {
|
|
|
25
25
|
this._rawTransition.publicNote = value;
|
|
26
26
|
}
|
|
27
27
|
static createFromRawInstance(rawInstance) {
|
|
28
|
-
const instance = Object.create(
|
|
28
|
+
const instance = Object.create(TokenBurnTransitionWASM.prototype);
|
|
29
29
|
instance._rawTransition = rawInstance;
|
|
30
30
|
return instance;
|
|
31
31
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TokenClaimTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { TokenClaimTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { TokenBaseTransitionWASM } from '../TokenBaseTransition.js';
|
|
3
3
|
import { TokenDistributionLike } from '../../../types.js';
|
|
4
4
|
export declare class TokenClaimTransitionWASM {
|
|
@@ -26,7 +26,7 @@ export class TokenClaimTransitionWASM {
|
|
|
26
26
|
this._rawTransition.publicNote = value;
|
|
27
27
|
}
|
|
28
28
|
static createFromRawInstance(rawInstance) {
|
|
29
|
-
const instance = Object.create(
|
|
29
|
+
const instance = Object.create(TokenClaimTransitionWASM.prototype);
|
|
30
30
|
instance._rawTransition = rawInstance;
|
|
31
31
|
return instance;
|
|
32
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TokenConfigUpdateTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { TokenConfigUpdateTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { TokenBaseTransitionWASM } from '../TokenBaseTransition.js';
|
|
3
3
|
import { TokenConfigurationChangeItemWASM } from '../../TokenConfiguration/TokenConfigurationChangeItem.js';
|
|
4
4
|
export declare class TokenConfigUpdateTransitionWASM {
|
|
@@ -26,7 +26,7 @@ export class TokenConfigUpdateTransitionWASM {
|
|
|
26
26
|
this._rawTransition.updateTokenConfigurationItem = value._rawTokenConfigurationChangeItem;
|
|
27
27
|
}
|
|
28
28
|
static createFromRawInstance(rawInstance) {
|
|
29
|
-
const instance = Object.create(
|
|
29
|
+
const instance = Object.create(TokenConfigUpdateTransitionWASM.prototype);
|
|
30
30
|
instance._rawTransition = rawInstance;
|
|
31
31
|
return instance;
|
|
32
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TokenDestroyFrozenFundsTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { TokenDestroyFrozenFundsTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { TokenBaseTransitionWASM } from '../TokenBaseTransition.js';
|
|
3
3
|
import { IdentifierLike } from '../../../types.js';
|
|
4
4
|
import { IdentifierWASM } from '../../Identifier.js';
|
|
@@ -27,7 +27,7 @@ export class TokenDestroyFrozenFundsTransitionWASM {
|
|
|
27
27
|
this._rawTransition.publicNote = value;
|
|
28
28
|
}
|
|
29
29
|
static createFromRawInstance(rawInstance) {
|
|
30
|
-
const instance = Object.create(
|
|
30
|
+
const instance = Object.create(TokenDestroyFrozenFundsTransitionWASM.prototype);
|
|
31
31
|
instance._rawTransition = rawInstance;
|
|
32
32
|
return instance;
|
|
33
33
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TokenDirectPurchaseTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { TokenDirectPurchaseTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { TokenBaseTransitionWASM } from '../TokenBaseTransition.js';
|
|
3
3
|
export declare class TokenDirectPurchaseTransitionWASM {
|
|
4
4
|
/** @private **/
|
|
@@ -25,7 +25,7 @@ export class TokenDirectPurchaseTransitionWASM {
|
|
|
25
25
|
this._rawTransition.totalAgreedPrice = value.toString();
|
|
26
26
|
}
|
|
27
27
|
static createFromRawInstance(rawInstance) {
|
|
28
|
-
const instance = Object.create(
|
|
28
|
+
const instance = Object.create(TokenDirectPurchaseTransitionWASM.prototype);
|
|
29
29
|
instance._rawTransition = rawInstance;
|
|
30
30
|
return instance;
|
|
31
31
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TokenEmergencyActionTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { TokenEmergencyActionTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { TokenBaseTransitionWASM } from '../TokenBaseTransition.js';
|
|
3
3
|
import { TokenEmergencyActionLike } from '../../../types.js';
|
|
4
4
|
export declare class TokenEmergencyActionTransitionWASM {
|
|
@@ -26,7 +26,7 @@ export class TokenEmergencyActionTransitionWASM {
|
|
|
26
26
|
this._rawTransition.publicNote = value;
|
|
27
27
|
}
|
|
28
28
|
static createFromRawInstance(rawInstance) {
|
|
29
|
-
const instance = Object.create(
|
|
29
|
+
const instance = Object.create(TokenEmergencyActionTransitionWASM.prototype);
|
|
30
30
|
instance._rawTransition = rawInstance;
|
|
31
31
|
return instance;
|
|
32
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TokenFreezeTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { TokenFreezeTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { TokenBaseTransitionWASM } from '../TokenBaseTransition.js';
|
|
3
3
|
import { IdentifierLike } from '../../../types.js';
|
|
4
4
|
import { IdentifierWASM } from '../../Identifier.js';
|
|
@@ -27,7 +27,7 @@ export class TokenFreezeTransitionWASM {
|
|
|
27
27
|
this._rawTransition.publicNote = value;
|
|
28
28
|
}
|
|
29
29
|
static createFromRawInstance(rawInstance) {
|
|
30
|
-
const instance = Object.create(
|
|
30
|
+
const instance = Object.create(TokenFreezeTransitionWASM.prototype);
|
|
31
31
|
instance._rawTransition = rawInstance;
|
|
32
32
|
return instance;
|
|
33
33
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TokenMintTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { TokenMintTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { TokenBaseTransitionWASM } from '../TokenBaseTransition.js';
|
|
3
3
|
import { IdentifierLike } from '../../../types.js';
|
|
4
4
|
import { IdentifierWASM } from '../../Identifier.js';
|
|
5
5
|
export declare class TokenMintTransitionWASM {
|
|
6
6
|
/** @private **/
|
|
7
7
|
_rawTransition: TokenMintTransitionNAPI;
|
|
8
|
-
constructor(base: TokenBaseTransitionWASM,
|
|
8
|
+
constructor(base: TokenBaseTransitionWASM, issueToIdentityId: IdentifierLike | undefined, amount: bigint, publicNote?: string);
|
|
9
9
|
get base(): TokenBaseTransitionWASM;
|
|
10
10
|
set base(value: TokenBaseTransitionWASM);
|
|
11
11
|
get issuedToIdentityId(): IdentifierWASM | undefined;
|
|
@@ -5,7 +5,7 @@ import { IdentifierWASM } from '../../Identifier.js';
|
|
|
5
5
|
export class TokenMintTransitionWASM {
|
|
6
6
|
/** @private **/
|
|
7
7
|
_rawTransition;
|
|
8
|
-
constructor(base,
|
|
8
|
+
constructor(base, issueToIdentityId, amount, publicNote) {
|
|
9
9
|
this._rawTransition = new dppProvider.dpp.TokenMintTransitionNAPI(base._rawTokenBaseTransition, issueToIdentityId != null ? prepareIdentifierValue(issueToIdentityId) : undefined, amount.toString(), publicNote);
|
|
10
10
|
}
|
|
11
11
|
get base() {
|
|
@@ -36,7 +36,7 @@ export class TokenMintTransitionWASM {
|
|
|
36
36
|
this._rawTransition.publicNote = value;
|
|
37
37
|
}
|
|
38
38
|
static createFromRawInstance(rawInstance) {
|
|
39
|
-
const instance = Object.create(
|
|
39
|
+
const instance = Object.create(TokenMintTransitionWASM.prototype);
|
|
40
40
|
instance._rawTransition = rawInstance;
|
|
41
41
|
return instance;
|
|
42
42
|
}
|
package/dist/src/dpp/structs/Batch/TokenTransitions/TokenSetPriceForDirectPurchaseTransition.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TokenSetPriceForDirectPurchaseTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { TokenSetPriceForDirectPurchaseTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { TokenBaseTransitionWASM } from '../TokenBaseTransition.js';
|
|
3
3
|
import { TokenPricingScheduleWASM } from '../TokenPricingSchedule.js';
|
|
4
4
|
export declare class TokenSetPriceForDirectPurchaseTransitionWASM {
|
package/dist/src/dpp/structs/Batch/TokenTransitions/TokenSetPriceForDirectPurchaseTransition.js
CHANGED
|
@@ -29,7 +29,7 @@ export class TokenSetPriceForDirectPurchaseTransitionWASM {
|
|
|
29
29
|
this._rawTransition.publicNote = value;
|
|
30
30
|
}
|
|
31
31
|
static createFromRawInstance(rawInstance) {
|
|
32
|
-
const instance = Object.create(
|
|
32
|
+
const instance = Object.create(TokenSetPriceForDirectPurchaseTransitionWASM.prototype);
|
|
33
33
|
instance._rawTransition = rawInstance;
|
|
34
34
|
return instance;
|
|
35
35
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { TokenTransferTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { TokenTransferTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { TokenBaseTransitionWASM } from '../TokenBaseTransition.js';
|
|
3
3
|
import { IdentifierLike } from '../../../types.js';
|
|
4
4
|
import { SharedEncryptedNoteWASM } from '../../EncryptedNote/SharedEncryptedNote.js';
|
|
5
5
|
import { PrivateEncryptedNoteWASM } from '../../EncryptedNote/PrivateEncryptedNote.js';
|
|
6
|
+
import { IdentifierWASM } from '../../Identifier.js';
|
|
6
7
|
export declare class TokenTransferTransitionWASM {
|
|
7
8
|
/** @private **/
|
|
8
9
|
_rawTransition: TokenTransferTransitionNAPI;
|
|
9
10
|
constructor(base: TokenBaseTransitionWASM, recipientId: IdentifierLike, amount: bigint, publicNote?: string, sharedEncryptedNote?: SharedEncryptedNoteWASM, privateEncryptedNote?: PrivateEncryptedNoteWASM);
|
|
11
|
+
get recipientId(): IdentifierWASM;
|
|
12
|
+
set recipientId(value: IdentifierLike);
|
|
10
13
|
get base(): TokenBaseTransitionWASM;
|
|
11
14
|
set base(value: TokenBaseTransitionWASM);
|
|
12
15
|
get amount(): bigint;
|
|
@@ -3,12 +3,19 @@ import { SharedEncryptedNoteWASM } from '../../EncryptedNote/SharedEncryptedNote
|
|
|
3
3
|
import { PrivateEncryptedNoteWASM } from '../../EncryptedNote/PrivateEncryptedNote.js';
|
|
4
4
|
import { dppProvider } from '../../../provider.js';
|
|
5
5
|
import { prepareIdentifierValue } from '../../../utils.js';
|
|
6
|
+
import { IdentifierWASM } from '../../Identifier.js';
|
|
6
7
|
export class TokenTransferTransitionWASM {
|
|
7
8
|
/** @private **/
|
|
8
9
|
_rawTransition;
|
|
9
10
|
constructor(base, recipientId, amount, publicNote, sharedEncryptedNote, privateEncryptedNote) {
|
|
10
11
|
this._rawTransition = new dppProvider.dpp.TokenTransferTransitionNAPI(base._rawTokenBaseTransition, prepareIdentifierValue(recipientId), amount.toString(), publicNote, sharedEncryptedNote?._rawSharedNote, privateEncryptedNote?._rawEncryptedNote);
|
|
11
12
|
}
|
|
13
|
+
get recipientId() {
|
|
14
|
+
return IdentifierWASM.createFromRawInstance(this._rawTransition.recipientId);
|
|
15
|
+
}
|
|
16
|
+
set recipientId(value) {
|
|
17
|
+
this._rawTransition.recipientId = prepareIdentifierValue(value);
|
|
18
|
+
}
|
|
12
19
|
get base() {
|
|
13
20
|
return TokenBaseTransitionWASM.createFromRawInstance(this._rawTransition.base);
|
|
14
21
|
}
|
|
@@ -46,7 +53,7 @@ export class TokenTransferTransitionWASM {
|
|
|
46
53
|
this._rawTransition.privateEncryptedNote = value?._rawEncryptedNote;
|
|
47
54
|
}
|
|
48
55
|
static createFromRawInstance(rawInstance) {
|
|
49
|
-
const instance = Object.create(
|
|
56
|
+
const instance = Object.create(TokenTransferTransitionWASM.prototype);
|
|
50
57
|
instance._rawTransition = rawInstance;
|
|
51
58
|
return instance;
|
|
52
59
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TokenUnFreezeTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
1
|
+
import type { TokenUnFreezeTransitionNAPI } from '../../../../../binaries/bindingsTypes.js';
|
|
2
2
|
import { TokenBaseTransitionWASM } from '../TokenBaseTransition.js';
|
|
3
3
|
import { IdentifierLike } from '../../../types.js';
|
|
4
4
|
import { IdentifierWASM } from '../../Identifier.js';
|