pshenmic-dpp 1.1.2-dev.8 → 2.0.0-dev.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -99
- package/dist/binaries/bindingsTypes.d.ts +1721 -0
- package/dist/binaries/bindingsTypes.js +99 -0
- package/dist/binaries/pshenmic_dpp.android.node/react-native-node-api-module +0 -0
- package/dist/binaries/pshenmic_dpp.android.node/x86_64/libpshenmic_dpp.so +0 -0
- package/dist/binaries/pshenmic_dpp.d.ts +171 -0
- package/dist/binaries/pshenmic_dpp.js +3 -0
- package/dist/binaries/wasm/wasmBytes.d.ts +2 -0
- package/dist/binaries/wasm/wasmBytes.js +2 -0
- package/dist/binaries/wasm.d.ts +171 -0
- package/dist/binaries/wasm.js +44 -0
- package/dist/src/dpp/constants.d.ts +4 -0
- package/dist/src/dpp/constants.js +19 -0
- package/dist/src/dpp/dpp.d.ts +112 -0
- package/dist/src/dpp/dpp.js +112 -0
- package/dist/src/dpp/enums.d.ts +1 -0
- package/dist/src/dpp/enums.js +1 -0
- package/dist/src/dpp/provider.d.ts +11 -0
- package/dist/src/dpp/provider.js +21 -0
- package/dist/src/dpp/structs/AddressTransitions/AddressCreditWithdrawalTransition.d.ts +38 -0
- package/dist/src/dpp/structs/AddressTransitions/AddressCreditWithdrawalTransition.js +95 -0
- package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.d.ts +35 -0
- package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.js +85 -0
- package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.d.ts +30 -0
- package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.js +72 -0
- package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.d.ts +33 -0
- package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.js +82 -0
- package/dist/src/dpp/structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.d.ts +31 -0
- package/dist/src/dpp/structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.js +77 -0
- package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.d.ts +31 -0
- package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.js +76 -0
- package/dist/src/dpp/structs/AddressTransitions/entities/AddressFundsFeeStrategyStep.d.ts +12 -0
- package/dist/src/dpp/structs/AddressTransitions/entities/AddressFundsFeeStrategyStep.js +26 -0
- package/dist/src/dpp/structs/AddressTransitions/entities/InputAddress.d.ts +15 -0
- package/dist/src/dpp/structs/AddressTransitions/entities/InputAddress.js +33 -0
- package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddress.d.ts +13 -0
- package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddress.js +27 -0
- package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddressNullableCredits.d.ts +13 -0
- package/dist/src/dpp/structs/AddressTransitions/entities/OutputAddressNullableCredits.js +30 -0
- package/dist/src/dpp/structs/AssetLockProof/AssetLockProof.d.ts +19 -0
- package/dist/src/dpp/structs/AssetLockProof/AssetLockProof.js +50 -0
- package/dist/src/dpp/structs/AssetLockProof/ChainAssetLockProof.d.ts +17 -0
- package/dist/src/dpp/structs/AssetLockProof/ChainAssetLockProof.js +36 -0
- package/dist/src/dpp/structs/AssetLockProof/InstantAssetLockProof.d.ts +24 -0
- package/dist/src/dpp/structs/AssetLockProof/InstantAssetLockProof.js +48 -0
- package/dist/src/dpp/structs/AssetLockProof/OutPoint.d.ts +15 -0
- package/dist/src/dpp/structs/AssetLockProof/OutPoint.js +40 -0
- package/dist/src/dpp/structs/AssetLockProof/Transaction.d.ts +20 -0
- package/dist/src/dpp/structs/AssetLockProof/Transaction.js +49 -0
- package/dist/src/dpp/structs/AssetLockProof/TxIn.d.ts +17 -0
- package/dist/src/dpp/structs/AssetLockProof/TxIn.js +39 -0
- package/dist/src/dpp/structs/AssetLockProof/TxOut.d.ts +13 -0
- package/dist/src/dpp/structs/AssetLockProof/TxOut.js +34 -0
- package/dist/src/dpp/structs/AssetLockProof/Witness.d.ts +11 -0
- package/dist/src/dpp/structs/AssetLockProof/Witness.js +25 -0
- package/dist/src/dpp/structs/Batch/BatchTransition.d.ts +34 -0
- package/dist/src/dpp/structs/Batch/BatchTransition.js +95 -0
- package/dist/src/dpp/structs/Batch/BatchedTransition.d.ts +14 -0
- package/dist/src/dpp/structs/Batch/BatchedTransition.js +39 -0
- package/dist/src/dpp/structs/Batch/DocumentBaseTransition.d.ts +20 -0
- package/dist/src/dpp/structs/Batch/DocumentBaseTransition.js +54 -0
- package/dist/src/dpp/structs/Batch/DocumentTransition.d.ts +33 -0
- package/dist/src/dpp/structs/Batch/DocumentTransition.js +77 -0
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentCreateTransition.d.ts +23 -0
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentCreateTransition.js +58 -0
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentDeleteTransition.d.ts +14 -0
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentDeleteTransition.js +26 -0
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentPurchaseTransition.d.ts +19 -0
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentPurchaseTransition.js +39 -0
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentReplaceTransition.d.ts +19 -0
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentReplaceTransition.js +40 -0
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentTransferTransition.d.ts +19 -0
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentTransferTransition.js +35 -0
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentUpdatePriceTransition.d.ts +17 -0
- package/dist/src/dpp/structs/Batch/DocumentTransitions/DocumentUpdatePriceTransition.js +33 -0
- package/dist/src/dpp/structs/Batch/PrefundedVotingBalance.d.ts +9 -0
- package/dist/src/dpp/structs/Batch/PrefundedVotingBalance.js +19 -0
- package/dist/src/dpp/structs/Batch/TokenBaseTransition.d.ts +20 -0
- package/dist/src/dpp/structs/Batch/TokenBaseTransition.js +49 -0
- package/dist/src/dpp/structs/Batch/TokenPaymentInfo.d.ts +19 -0
- package/dist/src/dpp/structs/Batch/TokenPaymentInfo.js +54 -0
- package/dist/src/dpp/structs/Batch/TokenPricingSchedule.d.ts +17 -0
- package/dist/src/dpp/structs/Batch/TokenPricingSchedule.js +41 -0
- package/dist/src/dpp/structs/Batch/TokenTransition.d.ts +21 -0
- package/dist/src/dpp/structs/Batch/TokenTransition.js +95 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenBurnTransition.d.ts +14 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenBurnTransition.js +32 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenClaimTransition.d.ts +15 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenClaimTransition.js +33 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenConfigUpdateTransition.d.ts +15 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenConfigUpdateTransition.js +33 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDestroyFrozenFundsTransition.d.ts +16 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDestroyFrozenFundsTransition.js +34 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDirectPurchaseTransition.d.ts +14 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenDirectPurchaseTransition.js +32 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenEmergencyActionTransition.d.ts +15 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenEmergencyActionTransition.js +33 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenFreezeTransition.d.ts +16 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenFreezeTransition.js +34 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenMintTransition.d.ts +18 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenMintTransition.js +43 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenSetPriceForDirectPurchaseTransition.d.ts +15 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenSetPriceForDirectPurchaseTransition.js +36 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenTransferTransition.d.ts +24 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenTransferTransition.js +60 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenUnFreezeTransition.d.ts +16 -0
- package/dist/src/dpp/structs/Batch/TokenTransitions/TokenUnFreezeTransition.js +34 -0
- package/dist/src/dpp/structs/ConsensusError.d.ts +8 -0
- package/dist/src/dpp/structs/ConsensusError.js +22 -0
- package/dist/src/dpp/structs/ContractBounds.d.ts +17 -0
- package/dist/src/dpp/structs/ContractBounds.js +39 -0
- package/dist/src/dpp/structs/CoreScript.d.ts +15 -0
- package/dist/src/dpp/structs/CoreScript.js +37 -0
- package/dist/src/dpp/structs/DataContract.d.ts +38 -0
- package/dist/src/dpp/structs/DataContract.js +125 -0
- package/dist/src/dpp/structs/DataContractTransitions/DataContractCreateTransition.d.ts +23 -0
- package/dist/src/dpp/structs/DataContractTransitions/DataContractCreateTransition.js +55 -0
- package/dist/src/dpp/structs/DataContractTransitions/DataContractUpdateTransition.d.ts +23 -0
- package/dist/src/dpp/structs/DataContractTransitions/DataContractUpdateTransition.js +55 -0
- package/dist/src/dpp/structs/Document.d.ts +51 -0
- package/dist/src/dpp/structs/Document.js +184 -0
- package/dist/src/dpp/structs/EncryptedNote/PrivateEncryptedNote.d.ts +13 -0
- package/dist/src/dpp/structs/EncryptedNote/PrivateEncryptedNote.js +31 -0
- package/dist/src/dpp/structs/EncryptedNote/SharedEncryptedNote.d.ts +13 -0
- package/dist/src/dpp/structs/EncryptedNote/SharedEncryptedNote.js +31 -0
- package/dist/src/dpp/structs/GroupStateTransitionInfo.d.ts +15 -0
- package/dist/src/dpp/structs/GroupStateTransitionInfo.js +33 -0
- package/dist/src/dpp/structs/Identifier.d.ts +17 -0
- package/dist/src/dpp/structs/Identifier.js +50 -0
- package/dist/src/dpp/structs/Identity.d.ts +26 -0
- package/dist/src/dpp/structs/Identity.js +73 -0
- package/dist/src/dpp/structs/IdentityPublicKey.d.ts +44 -0
- package/dist/src/dpp/structs/IdentityPublicKey.js +131 -0
- package/dist/src/dpp/structs/IdentityPublicKeyInCreation.d.ts +31 -0
- package/dist/src/dpp/structs/IdentityPublicKeyInCreation.js +82 -0
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreateTransition.d.ts +29 -0
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreateTransition.js +69 -0
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditTransfer.d.ts +33 -0
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditTransfer.js +85 -0
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditWithdrawalTransition.d.ts +42 -0
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditWithdrawalTransition.js +114 -0
- package/dist/src/dpp/structs/IdentityTransitions/IdentityTopUpTransition.d.ts +30 -0
- package/dist/src/dpp/structs/IdentityTransitions/IdentityTopUpTransition.js +75 -0
- package/dist/src/dpp/structs/IdentityTransitions/IdentityUpdateTransition.d.ts +40 -0
- package/dist/src/dpp/structs/IdentityTransitions/IdentityUpdateTransition.js +108 -0
- package/dist/src/dpp/structs/InstantLock.d.ts +17 -0
- package/dist/src/dpp/structs/InstantLock.js +43 -0
- package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.d.ts +37 -0
- package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.js +96 -0
- package/dist/src/dpp/structs/MasternodeVote/ResourceVoteChoice.d.ts +14 -0
- package/dist/src/dpp/structs/MasternodeVote/ResourceVoteChoice.js +29 -0
- package/dist/src/dpp/structs/MasternodeVote/Vote.d.ts +13 -0
- package/dist/src/dpp/structs/MasternodeVote/Vote.js +27 -0
- package/dist/src/dpp/structs/MasternodeVote/VotePoll.d.ts +18 -0
- package/dist/src/dpp/structs/MasternodeVote/VotePoll.js +42 -0
- package/dist/src/dpp/structs/PartialIdentity.d.ts +26 -0
- package/dist/src/dpp/structs/PartialIdentity.js +69 -0
- package/dist/src/dpp/structs/PlatformAddress/AddressWitness.d.ts +12 -0
- package/dist/src/dpp/structs/PlatformAddress/AddressWitness.js +23 -0
- package/dist/src/dpp/structs/PlatformAddress/PlatformAddress.d.ts +16 -0
- package/dist/src/dpp/structs/PlatformAddress/PlatformAddress.js +38 -0
- package/dist/src/dpp/structs/PrivateKey.d.ts +20 -0
- package/dist/src/dpp/structs/PrivateKey.js +48 -0
- package/dist/src/dpp/structs/PublicKey.d.ts +15 -0
- package/dist/src/dpp/structs/PublicKey.js +37 -0
- package/dist/src/dpp/structs/StateTransition.d.ts +39 -0
- package/dist/src/dpp/structs/StateTransition.js +103 -0
- package/dist/src/dpp/structs/TokenConfiguration/ActionTaker.d.ts +12 -0
- package/dist/src/dpp/structs/TokenConfiguration/ActionTaker.js +44 -0
- package/dist/src/dpp/structs/TokenConfiguration/AuthorizedActionTakers.d.ts +16 -0
- package/dist/src/dpp/structs/TokenConfiguration/AuthorizedActionTakers.js +43 -0
- package/dist/src/dpp/structs/TokenConfiguration/ChangeControlRules.d.ts +23 -0
- package/dist/src/dpp/structs/TokenConfiguration/ChangeControlRules.js +52 -0
- package/dist/src/dpp/structs/TokenConfiguration/DistributionFunction.d.ts +19 -0
- package/dist/src/dpp/structs/TokenConfiguration/DistributionFunction.js +57 -0
- package/dist/src/dpp/structs/TokenConfiguration/Group.d.ts +19 -0
- package/dist/src/dpp/structs/TokenConfiguration/Group.js +44 -0
- package/dist/src/dpp/structs/TokenConfiguration/RewardDistributionType.d.ts +13 -0
- package/dist/src/dpp/structs/TokenConfiguration/RewardDistributionType.js +40 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenConfiguration.d.ts +54 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenConfiguration.js +139 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationChangeItem.d.ts +47 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationChangeItem.js +140 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationConvention.d.ts +19 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationConvention.js +47 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationLocalization.d.ts +15 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenConfigurationLocalization.js +34 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRecipient.d.ts +14 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRecipient.js +31 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRules.d.ts +28 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenDistributionRules.js +75 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenKeepsHistoryRules.d.ts +19 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenKeepsHistoryRules.js +49 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenMarketplaceRules.d.ts +13 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenMarketplaceRules.js +27 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenPerpetualDistribution.d.ts +13 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenPerpetualDistribution.js +27 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenPreProgrammedDistribution.d.ts +21 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenPreProgrammedDistribution.js +42 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenTradeMode.d.ts +9 -0
- package/dist/src/dpp/structs/TokenConfiguration/TokenTradeMode.js +17 -0
- package/dist/src/dpp/types.d.ts +284 -0
- package/dist/src/dpp/types.js +1 -0
- package/dist/src/dpp/utils.d.ts +6 -0
- package/dist/src/dpp/utils.js +96 -0
- package/dist/src/dpp/verify/Contested/verifyVotePollVoteStateProof.d.ts +3 -0
- package/dist/src/dpp/verify/Contested/verifyVotePollVoteStateProof.js +34 -0
- package/dist/src/dpp/verify/Contract/verifyContract.d.ts +2 -0
- package/dist/src/dpp/verify/Contract/verifyContract.js +14 -0
- package/dist/src/dpp/verify/Document/verifyDocumentsProof.d.ts +3 -0
- package/dist/src/dpp/verify/Document/verifyDocumentsProof.js +10 -0
- package/dist/src/dpp/verify/Identity/verifyIdentifierByNonUniquePublicKeyHashProof.d.ts +2 -0
- package/dist/src/dpp/verify/Identity/verifyIdentifierByNonUniquePublicKeyHashProof.js +10 -0
- package/dist/src/dpp/verify/Identity/verifyIdentityBalanceProof.d.ts +2 -0
- package/dist/src/dpp/verify/Identity/verifyIdentityBalanceProof.js +9 -0
- package/dist/src/dpp/verify/Identity/verifyIdentityByIdentifierProof.d.ts +2 -0
- package/dist/src/dpp/verify/Identity/verifyIdentityByIdentifierProof.js +10 -0
- package/dist/src/dpp/verify/Identity/verifyIdentityByUniqueKeyHashProof.d.ts +2 -0
- package/dist/src/dpp/verify/Identity/verifyIdentityByUniqueKeyHashProof.js +10 -0
- package/dist/src/dpp/verify/Identity/verifyIdentityContractNonceProof.d.ts +2 -0
- package/dist/src/dpp/verify/Identity/verifyIdentityContractNonceProof.js +9 -0
- package/dist/src/dpp/verify/Identity/verifyIdentityKeysByIdentifierProof.d.ts +2 -0
- package/dist/src/dpp/verify/Identity/verifyIdentityKeysByIdentifierProof.js +10 -0
- package/dist/src/dpp/verify/Identity/verifyIdentityNonceProof.d.ts +2 -0
- package/dist/src/dpp/verify/Identity/verifyIdentityNonceProof.js +9 -0
- 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.d.ts +2 -0
- package/dist/src/dpp/verify/StateTransition/utils.js +115 -0
- package/dist/src/dpp/verify/StateTransition/verifyStateTransitionResult.d.ts +4 -0
- package/dist/src/dpp/verify/StateTransition/verifyStateTransitionResult.js +10 -0
- package/dist/src/dpp/verify/System/verifyEpochsInfoProof.d.ts +2 -0
- package/dist/src/dpp/verify/System/verifyEpochsInfoProof.js +16 -0
- package/dist/src/dpp/verify/System/verifyTotalCreditsProof.d.ts +2 -0
- package/dist/src/dpp/verify/System/verifyTotalCreditsProof.js +9 -0
- package/dist/src/dpp/verify/Tokens/verifyTokenBalancesForIdentitiesProof.d.ts +2 -0
- package/dist/src/dpp/verify/Tokens/verifyTokenBalancesForIdentitiesProof.js +13 -0
- package/dist/src/dpp/verify/Tokens/verifyTokenContractInfoProof.d.ts +2 -0
- package/dist/src/dpp/verify/Tokens/verifyTokenContractInfoProof.js +15 -0
- package/dist/src/dpp/verify/Tokens/verifyTokenDirectPurchasePrices.d.ts +2 -0
- package/dist/src/dpp/verify/Tokens/verifyTokenDirectPurchasePrices.js +14 -0
- package/dist/src/dpp/verify/Tokens/verifyTokenTotalSupplyProof.d.ts +2 -0
- package/dist/src/dpp/verify/Tokens/verifyTokenTotalSupplyProof.js +12 -0
- package/dist/src/dpp/verify/Tokens/verifyTokensBalancesForIdentityProof.d.ts +2 -0
- package/dist/src/dpp/verify/Tokens/verifyTokensBalancesForIdentityProof.js +13 -0
- package/dist/src/dpp/verify/verifySignatureDigest.d.ts +1 -0
- package/dist/src/dpp/verify/verifySignatureDigest.js +4 -0
- package/dist/src/react-native.d.ts +3 -0
- package/dist/src/react-native.js +6 -0
- package/dist/src/wasm.d.ts +3 -0
- package/dist/src/wasm.js +6 -0
- package/dist/utils/base122.d.ts +7 -0
- package/dist/utils/base122.js +63 -0
- package/package.json +30 -27
- package/tests/unit/DynamicValue.spec.ts +126 -0
- package/tests/unit/Identifier.spec.ts +105 -0
- package/tests/unit/Identity.spec.ts +119 -0
- package/tests/unit/IdentityPublicKey.spec.ts +126 -0
- package/dist/wasm/base122.d.ts +0 -1
- package/dist/wasm/base122.js +0 -67
- package/dist/wasm/index.d.ts +0 -148
- package/dist/wasm/index.js +0 -13
- package/dist/wasm/initAsync.d.ts +0 -4
- package/dist/wasm/initAsync.js +0 -20
- package/dist/wasm/initInterface.d.ts +0 -3
- package/dist/wasm/initInterface.js +0 -46
- package/dist/wasm/initWASM.d.ts +0 -1
- package/dist/wasm/initWASM.js +0 -28
- package/dist/wasm/pshenmic_dpp.d.ts +0 -5266
- package/dist/wasm/pshenmic_dpp.js +0 -25608
- package/dist/wasm/pshenmic_dpp_bg.d.ts +0 -3
- package/dist/wasm/pshenmic_dpp_bg.js +0 -2
- package/dist/wasm/pshenmic_dpp_bg.wasm.d.ts +0 -1636
- package/dist/wasm/pshenmic_dpp_zipped.d.ts +0 -3
- package/dist/wasm/pshenmic_dpp_zipped.js +0 -2
- package/dist/wasm/snippets/pshenmic_dpp_utils-23ab7381b198778d/stringify.js +0 -7
- package/tests/AssetLockProof.spec.cjs +0 -96
- package/tests/AsyncImportTest.spec.cjs +0 -930
- package/tests/AuthorizedActionTakers.spec.cjs +0 -75
- package/tests/BatchTransition.spec.cjs +0 -141
- package/tests/ChainLockProof.spec.cjs +0 -63
- package/tests/ChangeControlRules.spec.cjs +0 -184
- package/tests/CoreScript.spec.cjs +0 -37
- package/tests/DataContract.spec.cjs +0 -170
- package/tests/DataContractCreateStateTransition.spec.cjs +0 -102
- package/tests/DataContractUpdateStateTransition.spec.cjs +0 -103
- package/tests/DistributionFunction.spec.cjs +0 -416
- package/tests/Document.spec.cjs +0 -227
- package/tests/DocumentTransition.spec.cjs +0 -94
- package/tests/DocumentsTransitions.spec.cjs +0 -699
- package/tests/Identifier.spec.cjs +0 -82
- package/tests/Identity.spec.cjs +0 -107
- package/tests/IdentityCreateTransition.spec.cjs +0 -87
- package/tests/IdentityCreditTransferTransition.spec.cjs +0 -140
- package/tests/IdentityCreditWithdrawalTransition.spec.cjs +0 -186
- package/tests/IdentityPublicKey.spec.cjs +0 -166
- package/tests/IdentityTopUpTransition.spec.cjs +0 -125
- package/tests/IdentityUpdateTransition.spec.cjs +0 -141
- package/tests/InstantLockProof.spec.cjs +0 -91
- package/tests/OutPoint.spec.cjs +0 -49
- package/tests/PrivateKey.spec.cjs +0 -67
- package/tests/PublicKeyInCreation.spec.cjs +0 -252
- package/tests/RewardDistributionType.spec.cjs +0 -90
- package/tests/TokenBaseTransition.spec.cjs +0 -96
- package/tests/TokenConfiguration.spec.cjs +0 -188
- package/tests/TokenConfigurationConvention.spec.cjs +0 -93
- package/tests/TokenConfigurationLocalization.spec.cjs +0 -59
- package/tests/TokenDistributionRecipient.spec.cjs +0 -49
- package/tests/TokenDistributionRules.spec.cjs +0 -313
- package/tests/TokenKeepsHistoryRules.spec.cjs +0 -67
- package/tests/TokenPerpetualDistribution.spec.cjs +0 -130
- package/tests/TokenPreProgrammedDistribution.spec.cjs +0 -61
- package/tests/TokensTransitions.spec.cjs +0 -509
- package/tests/TxOut.spec.cjs +0 -70
- package/tests/mocks/DataContract/DataContract.json +0 -164
- package/tests/mocks/DataContract/index.js +0 -6
- package/tests/mocks/Document/DataContract.json +0 -23
- package/tests/mocks/Document/document.json +0 -3
- package/tests/mocks/Document/document2.json +0 -3
- package/tests/mocks/Document/index.js +0 -13
- package/tests/mocks/Identity/index.js +0 -13
- package/tests/mocks/Locks/index.js +0 -2
- package/tests/mocks/PrivateKey/index.js +0 -5
- package/tests/mocks/PublicKey/index.js +0 -13
- package/tests/mocks/TokenConfiguration/index.js +0 -5
- package/tests/utils/hex.js +0 -14
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
const assert = require('assert')
|
|
2
|
-
const { describe, it } = require('mocha')
|
|
3
|
-
const { identifier } = require('./mocks/Identity')
|
|
4
|
-
const { default: wasm } = require('..')
|
|
5
|
-
|
|
6
|
-
describe('AuthorizedActionTakers', function () {
|
|
7
|
-
describe('serialization / deserialization', function () {
|
|
8
|
-
it('should allows to create AuthorizedActionTakers with NoOne', function () {
|
|
9
|
-
const actionTaker = wasm.AuthorizedActionTakersWASM.NoOne()
|
|
10
|
-
|
|
11
|
-
assert.notEqual(actionTaker.__wbg_ptr, 0)
|
|
12
|
-
assert.deepEqual(actionTaker.getTakerType(), 'NoOne')
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
it('should allows to create AuthorizedActionTakers with ContractOwner', function () {
|
|
16
|
-
const actionTaker = wasm.AuthorizedActionTakersWASM.ContractOwner()
|
|
17
|
-
|
|
18
|
-
assert.notEqual(actionTaker.__wbg_ptr, 0)
|
|
19
|
-
assert.deepEqual(actionTaker.getTakerType(), 'ContractOwner')
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
it('should allows to create AuthorizedActionTakers with Identity', function () {
|
|
23
|
-
const actionTaker = wasm.AuthorizedActionTakersWASM.Identity(identifier)
|
|
24
|
-
|
|
25
|
-
assert.notEqual(actionTaker.__wbg_ptr, 0)
|
|
26
|
-
assert.deepEqual(actionTaker.getTakerType(), `Identity(${identifier})`)
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
it('should allows to create AuthorizedActionTakers with MainGroup', function () {
|
|
30
|
-
const actionTaker = wasm.AuthorizedActionTakersWASM.MainGroup()
|
|
31
|
-
|
|
32
|
-
assert.notEqual(actionTaker.__wbg_ptr, 0)
|
|
33
|
-
assert.deepEqual(actionTaker.getTakerType(), 'MainGroup')
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
it('should allows to create AuthorizedActionTakers with Group', function () {
|
|
37
|
-
const actionTaker = wasm.AuthorizedActionTakersWASM.Group(12)
|
|
38
|
-
|
|
39
|
-
assert.notEqual(actionTaker.__wbg_ptr, 0)
|
|
40
|
-
assert.deepEqual(actionTaker.getTakerType(), 'Group(12)')
|
|
41
|
-
})
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
describe('getters', function () {
|
|
45
|
-
it('should allows to get value with NoOne', function () {
|
|
46
|
-
const actionTaker = wasm.AuthorizedActionTakersWASM.NoOne()
|
|
47
|
-
|
|
48
|
-
assert.deepEqual(actionTaker.getValue(), undefined)
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
it('should allows to get value with ContractOwner', function () {
|
|
52
|
-
const actionTaker = wasm.AuthorizedActionTakersWASM.ContractOwner()
|
|
53
|
-
|
|
54
|
-
assert.deepEqual(actionTaker.getValue(), undefined)
|
|
55
|
-
})
|
|
56
|
-
|
|
57
|
-
it('should allows to get value with Identity', function () {
|
|
58
|
-
const actionTaker = wasm.AuthorizedActionTakersWASM.Identity(identifier)
|
|
59
|
-
|
|
60
|
-
assert.deepEqual(actionTaker.getValue().base58(), identifier)
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
it('should allows to get value with MainGroup', function () {
|
|
64
|
-
const actionTaker = wasm.AuthorizedActionTakersWASM.MainGroup()
|
|
65
|
-
|
|
66
|
-
assert.deepEqual(actionTaker.getValue(), undefined)
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
it('should allows to get value with Group', function () {
|
|
70
|
-
const actionTaker = wasm.AuthorizedActionTakersWASM.Group(12)
|
|
71
|
-
|
|
72
|
-
assert.deepEqual(actionTaker.getValue(), 12)
|
|
73
|
-
})
|
|
74
|
-
})
|
|
75
|
-
})
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
const assert = require('assert')
|
|
2
|
-
const { describe, it } = require('mocha')
|
|
3
|
-
const { document, documentTypeName, revision, dataContractId, ownerId, id } = require('./mocks/Document/index.js')
|
|
4
|
-
const { default: wasm } = require('..')
|
|
5
|
-
|
|
6
|
-
describe('BatchTransition', function () {
|
|
7
|
-
describe('serialization / deserialization', function () {
|
|
8
|
-
describe('documents', function () {
|
|
9
|
-
it('should allow to create from v0 transition', function () {
|
|
10
|
-
const documentInstance = new wasm.DocumentWASM(document, documentTypeName, revision, dataContractId, ownerId, id)
|
|
11
|
-
const createTransition = new wasm.DocumentCreateTransitionWASM(documentInstance, BigInt(1))
|
|
12
|
-
|
|
13
|
-
const documentTransition = createTransition.toDocumentTransition()
|
|
14
|
-
|
|
15
|
-
const batch = wasm.BatchTransitionWASM.fromV0Transitions([documentTransition, documentTransition], documentInstance.ownerId, 1)
|
|
16
|
-
|
|
17
|
-
assert.notEqual(documentInstance.__wbg_ptr, 0)
|
|
18
|
-
assert.notEqual(createTransition.__wbg_ptr, 0)
|
|
19
|
-
assert.notEqual(documentTransition.__wbg_ptr, 0)
|
|
20
|
-
assert.notEqual(batch.__wbg_ptr, 0)
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
it('should allow to create from v1 transition', function () {
|
|
24
|
-
const documentInstance = new wasm.DocumentWASM(document, documentTypeName, revision, dataContractId, ownerId, id)
|
|
25
|
-
const createTransition = new wasm.DocumentCreateTransitionWASM(documentInstance, BigInt(1))
|
|
26
|
-
|
|
27
|
-
const documentTransition = createTransition.toDocumentTransition()
|
|
28
|
-
|
|
29
|
-
const batchedTransition = new wasm.BatchedTransitionWASM(documentTransition)
|
|
30
|
-
|
|
31
|
-
const batch = wasm.BatchTransitionWASM.fromV1BatchedTransitions([batchedTransition, batchedTransition], documentInstance.ownerId, 1)
|
|
32
|
-
|
|
33
|
-
assert.notEqual(documentInstance.__wbg_ptr, 0)
|
|
34
|
-
assert.notEqual(createTransition.__wbg_ptr, 0)
|
|
35
|
-
assert.notEqual(documentTransition.__wbg_ptr, 0)
|
|
36
|
-
assert.notEqual(batchedTransition.__wbg_ptr, 0)
|
|
37
|
-
assert.notEqual(batch.__wbg_ptr, 0)
|
|
38
|
-
})
|
|
39
|
-
})
|
|
40
|
-
describe('tokens', function () {
|
|
41
|
-
it('should allow to create from v1 transition', function () {
|
|
42
|
-
const baseTransition = new wasm.TokenBaseTransitionWASM(BigInt(1), 1, dataContractId, ownerId)
|
|
43
|
-
|
|
44
|
-
const mintTransition = new wasm.TokenMintTransitionWASM(baseTransition, ownerId, BigInt(9999), 'bbbbbb')
|
|
45
|
-
|
|
46
|
-
const transition = new wasm.TokenTransitionWASM(mintTransition)
|
|
47
|
-
|
|
48
|
-
const batchedTransition = new wasm.BatchedTransitionWASM(transition)
|
|
49
|
-
|
|
50
|
-
const batch = wasm.BatchTransitionWASM.fromV1BatchedTransitions([batchedTransition, batchedTransition], ownerId, 1)
|
|
51
|
-
|
|
52
|
-
assert.notEqual(baseTransition.__wbg_ptr, 0)
|
|
53
|
-
assert.notEqual(mintTransition.__wbg_ptr, 0)
|
|
54
|
-
assert.notEqual(transition.__wbg_ptr, 0)
|
|
55
|
-
assert.notEqual(batchedTransition.__wbg_ptr, 0)
|
|
56
|
-
assert.notEqual(batch.__wbg_ptr, 0)
|
|
57
|
-
})
|
|
58
|
-
})
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
describe('getters', function () {
|
|
62
|
-
it('should allow to get transitions', function () {
|
|
63
|
-
const documentInstance = new wasm.DocumentWASM(document, documentTypeName, revision, dataContractId, ownerId, id)
|
|
64
|
-
const createTransition = new wasm.DocumentCreateTransitionWASM(documentInstance, BigInt(1))
|
|
65
|
-
|
|
66
|
-
const documentTransition = createTransition.toDocumentTransition()
|
|
67
|
-
|
|
68
|
-
const batchTransition = wasm.BatchTransitionWASM.fromV0Transitions([documentTransition, documentTransition], documentInstance.ownerId, 1, 1)
|
|
69
|
-
|
|
70
|
-
assert.equal(batchTransition.transitions.length, 2)
|
|
71
|
-
})
|
|
72
|
-
|
|
73
|
-
it('should allow to get signature', function () {
|
|
74
|
-
const documentInstance = new wasm.DocumentWASM(document, documentTypeName, revision, dataContractId, ownerId, id)
|
|
75
|
-
const createTransition = new wasm.DocumentCreateTransitionWASM(documentInstance, BigInt(1))
|
|
76
|
-
|
|
77
|
-
const documentTransition = createTransition.toDocumentTransition()
|
|
78
|
-
|
|
79
|
-
const batchTransition = wasm.BatchTransitionWASM.fromV0Transitions([documentTransition, documentTransition], documentInstance.ownerId, 1, 1)
|
|
80
|
-
|
|
81
|
-
assert.deepEqual(batchTransition.signature, new Uint8Array(0))
|
|
82
|
-
})
|
|
83
|
-
|
|
84
|
-
it('should allow to get signature public key id', function () {
|
|
85
|
-
const documentInstance = new wasm.DocumentWASM(document, documentTypeName, revision, dataContractId, ownerId, id)
|
|
86
|
-
const createTransition = new wasm.DocumentCreateTransitionWASM(documentInstance, BigInt(1))
|
|
87
|
-
|
|
88
|
-
const documentTransition = createTransition.toDocumentTransition()
|
|
89
|
-
|
|
90
|
-
const batchTransition = wasm.BatchTransitionWASM.fromV0Transitions([documentTransition, documentTransition], documentInstance.ownerId, 1, 1)
|
|
91
|
-
|
|
92
|
-
assert.equal(batchTransition.signaturePublicKeyId, 1)
|
|
93
|
-
})
|
|
94
|
-
|
|
95
|
-
it('should allow to get all purchases amount', function () {
|
|
96
|
-
const documentInstance = new wasm.DocumentWASM(document, documentTypeName, revision, dataContractId, ownerId, id)
|
|
97
|
-
const createTransition = new wasm.DocumentCreateTransitionWASM(documentInstance, BigInt(1))
|
|
98
|
-
const purchaseTransition = new wasm.DocumentPurchaseTransitionWASM(documentInstance, BigInt(1), BigInt(100))
|
|
99
|
-
|
|
100
|
-
const documentTransition = createTransition.toDocumentTransition()
|
|
101
|
-
const documentTransition2 = purchaseTransition.toDocumentTransition()
|
|
102
|
-
|
|
103
|
-
const batchTransition = wasm.BatchTransitionWASM.fromV0Transitions([documentTransition, documentTransition2], documentInstance.ownerId, 1, 1)
|
|
104
|
-
|
|
105
|
-
assert.deepEqual(batchTransition.allPurchasesAmount, BigInt(100))
|
|
106
|
-
})
|
|
107
|
-
|
|
108
|
-
it('should allow to get owner id', function () {
|
|
109
|
-
const documentInstance = new wasm.DocumentWASM(document, documentTypeName, revision, dataContractId, ownerId, id)
|
|
110
|
-
const createTransition = new wasm.DocumentCreateTransitionWASM(documentInstance, BigInt(1))
|
|
111
|
-
|
|
112
|
-
const documentTransition = createTransition.toDocumentTransition()
|
|
113
|
-
|
|
114
|
-
const batchTransition = wasm.BatchTransitionWASM.fromV0Transitions([documentTransition, documentTransition], documentInstance.ownerId, 1, 1)
|
|
115
|
-
|
|
116
|
-
assert.deepEqual(batchTransition.ownerId.base58(), documentInstance.ownerId.base58())
|
|
117
|
-
})
|
|
118
|
-
|
|
119
|
-
it('should allow to get modified data ids', function () {
|
|
120
|
-
const documentInstance = new wasm.DocumentWASM(document, documentTypeName, revision, dataContractId, ownerId, id)
|
|
121
|
-
const createTransition = new wasm.DocumentCreateTransitionWASM(documentInstance, BigInt(1))
|
|
122
|
-
|
|
123
|
-
const documentTransition = createTransition.toDocumentTransition()
|
|
124
|
-
|
|
125
|
-
const batchTransition = wasm.BatchTransitionWASM.fromV0Transitions([documentTransition, documentTransition], documentInstance.ownerId, 1, 1)
|
|
126
|
-
|
|
127
|
-
assert.deepEqual(batchTransition.modifiedDataIds.map(id => id.base58()), [documentTransition.id.base58(), documentTransition.id.base58()])
|
|
128
|
-
})
|
|
129
|
-
|
|
130
|
-
it('should allow to get allConflictingIndexCollateralVotingFunds', function () {
|
|
131
|
-
const documentInstance = new wasm.DocumentWASM(document, documentTypeName, revision, dataContractId, ownerId, id)
|
|
132
|
-
const createTransition = new wasm.DocumentCreateTransitionWASM(documentInstance, BigInt(1))
|
|
133
|
-
|
|
134
|
-
const documentTransition = createTransition.toDocumentTransition()
|
|
135
|
-
|
|
136
|
-
const batchTransition = wasm.BatchTransitionWASM.fromV0Transitions([documentTransition, documentTransition], documentInstance.ownerId, 1, 1)
|
|
137
|
-
|
|
138
|
-
assert.deepEqual(batchTransition.allConflictingIndexCollateralVotingFunds, undefined)
|
|
139
|
-
})
|
|
140
|
-
})
|
|
141
|
-
})
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
const assert = require('assert')
|
|
2
|
-
const { describe, it } = require('mocha')
|
|
3
|
-
const { default: wasm } = require('..')
|
|
4
|
-
|
|
5
|
-
describe('InstantLock', function () {
|
|
6
|
-
describe('serialization / deserialization', function () {
|
|
7
|
-
it('should allow to create chain lock proof from values', () => {
|
|
8
|
-
const outpoint = new wasm.OutPointWASM('e8b43025641eea4fd21190f01bd870ef90f1a8b199d8fc3376c5b62c0b1a179d', 1)
|
|
9
|
-
const chainlock = new wasm.ChainAssetLockProofWASM(11, outpoint)
|
|
10
|
-
|
|
11
|
-
assert.notEqual(chainlock.__wbg_ptr, 0)
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
it('should allow to create chain lock proof from object', () => {
|
|
15
|
-
const outpoint = new wasm.OutPointWASM('e8b43025641eea4fd21190f01bd870ef90f1a8b199d8fc3376c5b62c0b1a179d', 1)
|
|
16
|
-
const chainlock = wasm.ChainAssetLockProofWASM.fromRawObject({
|
|
17
|
-
coreChainLockedHeight: 11,
|
|
18
|
-
outPoint: Array.from(outpoint.bytes())
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
assert.notEqual(chainlock.__wbg_ptr, 0)
|
|
22
|
-
})
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
describe('getters', function () {
|
|
26
|
-
it('should allow to get coreChainLockedHeight', () => {
|
|
27
|
-
const outpoint = new wasm.OutPointWASM('e8b43025641eea4fd21190f01bd870ef90f1a8b199d8fc3376c5b62c0b1a179d', 1)
|
|
28
|
-
const chainlock = new wasm.ChainAssetLockProofWASM(11, outpoint)
|
|
29
|
-
|
|
30
|
-
assert.equal(chainlock.coreChainLockedHeight, 11)
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
it('should allow to get outPoint', () => {
|
|
34
|
-
const outpoint = new wasm.OutPointWASM('e8b43025641eea4fd21190f01bd870ef90f1a8b199d8fc3376c5b62c0b1a179d', 1)
|
|
35
|
-
const chainlock = new wasm.ChainAssetLockProofWASM(11, outpoint)
|
|
36
|
-
|
|
37
|
-
assert.equal(chainlock.outPoint.constructor.name, 'OutPointWASM')
|
|
38
|
-
})
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
describe('setters', function () {
|
|
42
|
-
it('should allow to set coreChainLockedHeight', () => {
|
|
43
|
-
const outpoint = new wasm.OutPointWASM('e8b43025641eea4fd21190f01bd870ef90f1a8b199d8fc3376c5b62c0b1a179d', 1)
|
|
44
|
-
const chainlock = new wasm.ChainAssetLockProofWASM(11, outpoint)
|
|
45
|
-
|
|
46
|
-
chainlock.coreChainLockedHeight = 33
|
|
47
|
-
|
|
48
|
-
assert.equal(chainlock.coreChainLockedHeight, 33)
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
it('should allow to get outPoint', () => {
|
|
52
|
-
const outpoint = new wasm.OutPointWASM('e8b43025641eea4fd21190f01bd870ef90f1a8b199d8fc3376c5b62c0b1a179d', 1)
|
|
53
|
-
const chainlock = new wasm.ChainAssetLockProofWASM(11, outpoint)
|
|
54
|
-
|
|
55
|
-
const newOutpoint = new wasm.OutPointWASM('e8b43025641eea4fd21190f01bd870ef90f1a8b199d8fc3376c5b62c0b1a179d', 222)
|
|
56
|
-
|
|
57
|
-
chainlock.outPoint = newOutpoint
|
|
58
|
-
|
|
59
|
-
assert.equal(chainlock.outPoint.getVOUT(), 222)
|
|
60
|
-
assert.notEqual(newOutpoint.__wbg_ptr, 0)
|
|
61
|
-
})
|
|
62
|
-
})
|
|
63
|
-
})
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
const assert = require('assert')
|
|
2
|
-
const { describe, it } = require('mocha')
|
|
3
|
-
const { default: wasm } = require('..')
|
|
4
|
-
|
|
5
|
-
describe('ChangeControlRules', function () {
|
|
6
|
-
describe('serialization / deserialization', function () {
|
|
7
|
-
it('should allow to create rules from values', function () {
|
|
8
|
-
const noOne = wasm.AuthorizedActionTakersWASM.NoOne()
|
|
9
|
-
|
|
10
|
-
const changeRules = new wasm.ChangeControlRulesWASM(
|
|
11
|
-
noOne,
|
|
12
|
-
noOne,
|
|
13
|
-
true,
|
|
14
|
-
true,
|
|
15
|
-
true
|
|
16
|
-
)
|
|
17
|
-
|
|
18
|
-
assert.notEqual(noOne.__wbg_ptr, 0)
|
|
19
|
-
assert.notEqual(changeRules.__wbg_ptr, 0)
|
|
20
|
-
})
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
describe('getters', function () {
|
|
24
|
-
it('should allow to get authorizedToMakeChange', function () {
|
|
25
|
-
const noOne = wasm.AuthorizedActionTakersWASM.NoOne()
|
|
26
|
-
|
|
27
|
-
const changeRules = new wasm.ChangeControlRulesWASM(
|
|
28
|
-
noOne,
|
|
29
|
-
noOne,
|
|
30
|
-
true,
|
|
31
|
-
true,
|
|
32
|
-
true
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
assert.deepEqual(changeRules.authorizedToMakeChange.constructor.name, 'AuthorizedActionTakersWASM')
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
it('should allow to get adminActionTakers', function () {
|
|
39
|
-
const noOne = wasm.AuthorizedActionTakersWASM.NoOne()
|
|
40
|
-
|
|
41
|
-
const changeRules = new wasm.ChangeControlRulesWASM(
|
|
42
|
-
noOne,
|
|
43
|
-
noOne,
|
|
44
|
-
true,
|
|
45
|
-
true,
|
|
46
|
-
true
|
|
47
|
-
)
|
|
48
|
-
|
|
49
|
-
assert.deepEqual(changeRules.adminActionTakers.constructor.name, 'AuthorizedActionTakersWASM')
|
|
50
|
-
})
|
|
51
|
-
|
|
52
|
-
it('should allow to get changingAuthorizedActionTakersToNoOneAllowed', function () {
|
|
53
|
-
const noOne = wasm.AuthorizedActionTakersWASM.NoOne()
|
|
54
|
-
|
|
55
|
-
const changeRules = new wasm.ChangeControlRulesWASM(
|
|
56
|
-
noOne,
|
|
57
|
-
noOne,
|
|
58
|
-
true,
|
|
59
|
-
true,
|
|
60
|
-
true
|
|
61
|
-
)
|
|
62
|
-
|
|
63
|
-
assert.deepEqual(changeRules.changingAuthorizedActionTakersToNoOneAllowed, true)
|
|
64
|
-
})
|
|
65
|
-
|
|
66
|
-
it('should allow to get changingAdminActionTakersToNoOneAllowed', function () {
|
|
67
|
-
const noOne = wasm.AuthorizedActionTakersWASM.NoOne()
|
|
68
|
-
|
|
69
|
-
const changeRules = new wasm.ChangeControlRulesWASM(
|
|
70
|
-
noOne,
|
|
71
|
-
noOne,
|
|
72
|
-
true,
|
|
73
|
-
true,
|
|
74
|
-
true
|
|
75
|
-
)
|
|
76
|
-
|
|
77
|
-
assert.deepEqual(changeRules.changingAdminActionTakersToNoOneAllowed, true)
|
|
78
|
-
})
|
|
79
|
-
|
|
80
|
-
it('should allow to get selfChangingAdminActionTakersAllowed', function () {
|
|
81
|
-
const noOne = wasm.AuthorizedActionTakersWASM.NoOne()
|
|
82
|
-
|
|
83
|
-
const changeRules = new wasm.ChangeControlRulesWASM(
|
|
84
|
-
noOne,
|
|
85
|
-
noOne,
|
|
86
|
-
true,
|
|
87
|
-
true,
|
|
88
|
-
true
|
|
89
|
-
)
|
|
90
|
-
|
|
91
|
-
assert.deepEqual(changeRules.selfChangingAdminActionTakersAllowed, true)
|
|
92
|
-
})
|
|
93
|
-
})
|
|
94
|
-
|
|
95
|
-
describe('setters', function () {
|
|
96
|
-
it('should allow to set authorizedToMakeChange', function () {
|
|
97
|
-
const noOne = wasm.AuthorizedActionTakersWASM.NoOne()
|
|
98
|
-
|
|
99
|
-
const changeRules = new wasm.ChangeControlRulesWASM(
|
|
100
|
-
noOne,
|
|
101
|
-
noOne,
|
|
102
|
-
true,
|
|
103
|
-
true,
|
|
104
|
-
true
|
|
105
|
-
)
|
|
106
|
-
|
|
107
|
-
const newActionTaker = wasm.AuthorizedActionTakersWASM.ContractOwner()
|
|
108
|
-
|
|
109
|
-
changeRules.authorizedToMakeChange = newActionTaker
|
|
110
|
-
|
|
111
|
-
assert.deepEqual(changeRules.authorizedToMakeChange.constructor.name, 'AuthorizedActionTakersWASM')
|
|
112
|
-
assert.deepEqual(changeRules.authorizedToMakeChange.getTakerType(), 'ContractOwner')
|
|
113
|
-
assert.notEqual(newActionTaker.__wbg_ptr, 0)
|
|
114
|
-
})
|
|
115
|
-
|
|
116
|
-
it('should allow to set adminActionTakers', function () {
|
|
117
|
-
const noOne = wasm.AuthorizedActionTakersWASM.NoOne()
|
|
118
|
-
|
|
119
|
-
const changeRules = new wasm.ChangeControlRulesWASM(
|
|
120
|
-
noOne,
|
|
121
|
-
noOne,
|
|
122
|
-
true,
|
|
123
|
-
true,
|
|
124
|
-
true
|
|
125
|
-
)
|
|
126
|
-
|
|
127
|
-
const newActionTaker = wasm.AuthorizedActionTakersWASM.ContractOwner()
|
|
128
|
-
|
|
129
|
-
changeRules.adminActionTakers = newActionTaker
|
|
130
|
-
|
|
131
|
-
assert.deepEqual(changeRules.adminActionTakers.constructor.name, 'AuthorizedActionTakersWASM')
|
|
132
|
-
assert.deepEqual(changeRules.adminActionTakers.getTakerType(), 'ContractOwner')
|
|
133
|
-
assert.notEqual(newActionTaker.__wbg_ptr, 0)
|
|
134
|
-
})
|
|
135
|
-
|
|
136
|
-
it('should allow to set changingAuthorizedActionTakersToNoOneAllowed', function () {
|
|
137
|
-
const noOne = wasm.AuthorizedActionTakersWASM.NoOne()
|
|
138
|
-
|
|
139
|
-
const changeRules = new wasm.ChangeControlRulesWASM(
|
|
140
|
-
noOne,
|
|
141
|
-
noOne,
|
|
142
|
-
true,
|
|
143
|
-
true,
|
|
144
|
-
true
|
|
145
|
-
)
|
|
146
|
-
|
|
147
|
-
changeRules.changingAuthorizedActionTakersToNoOneAllowed = false
|
|
148
|
-
|
|
149
|
-
assert.deepEqual(changeRules.changingAuthorizedActionTakersToNoOneAllowed, false)
|
|
150
|
-
})
|
|
151
|
-
|
|
152
|
-
it('should allow to set changingAdminActionTakersToNoOneAllowed', function () {
|
|
153
|
-
const noOne = wasm.AuthorizedActionTakersWASM.NoOne()
|
|
154
|
-
|
|
155
|
-
const changeRules = new wasm.ChangeControlRulesWASM(
|
|
156
|
-
noOne,
|
|
157
|
-
noOne,
|
|
158
|
-
true,
|
|
159
|
-
true,
|
|
160
|
-
true
|
|
161
|
-
)
|
|
162
|
-
|
|
163
|
-
changeRules.changingAdminActionTakersToNoOneAllowed = false
|
|
164
|
-
|
|
165
|
-
assert.deepEqual(changeRules.changingAdminActionTakersToNoOneAllowed, false)
|
|
166
|
-
})
|
|
167
|
-
|
|
168
|
-
it('should allow to set selfChangingAdminActionTakersAllowed', function () {
|
|
169
|
-
const noOne = wasm.AuthorizedActionTakersWASM.NoOne()
|
|
170
|
-
|
|
171
|
-
const changeRules = new wasm.ChangeControlRulesWASM(
|
|
172
|
-
noOne,
|
|
173
|
-
noOne,
|
|
174
|
-
true,
|
|
175
|
-
true,
|
|
176
|
-
true
|
|
177
|
-
)
|
|
178
|
-
|
|
179
|
-
changeRules.selfChangingAdminActionTakersAllowed = false
|
|
180
|
-
|
|
181
|
-
assert.deepEqual(changeRules.selfChangingAdminActionTakersAllowed, false)
|
|
182
|
-
})
|
|
183
|
-
})
|
|
184
|
-
})
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
const assert = require('assert')
|
|
2
|
-
const { describe, it } = require('mocha')
|
|
3
|
-
const { default: wasm } = require('..')
|
|
4
|
-
|
|
5
|
-
describe('CoreScript', function () {
|
|
6
|
-
describe('serialization / deserialization', function () {
|
|
7
|
-
it('should allow to create from bytes', () => {
|
|
8
|
-
const script = wasm.CoreScriptWASM.fromBytes(Buffer.from('76a914c3dbfd40e7f8a4845c2f8e868a167c984049764988ac', 'hex'))
|
|
9
|
-
|
|
10
|
-
assert.notEqual(script._wbg_ptr, 0)
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
it('should allow to create P2PKH', () => {
|
|
14
|
-
const script = wasm.CoreScriptWASM.newP2PKH([195, 219, 253, 64, 231, 248, 164, 132, 92, 47, 142, 134, 138, 22, 124, 152, 64, 73, 118, 73])
|
|
15
|
-
|
|
16
|
-
assert.notEqual(script._wbg_ptr, 0)
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
it('should allow to create P2SH', () => {
|
|
20
|
-
const script = wasm.CoreScriptWASM.newP2SH([195, 219, 253, 64, 231, 248, 164, 132, 92, 47, 142, 134, 138, 22, 124, 152, 64, 73, 118, 73])
|
|
21
|
-
|
|
22
|
-
assert.notEqual(script._wbg_ptr, 0)
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
it('should allow to convert to asm P2PKH', () => {
|
|
26
|
-
const script = wasm.CoreScriptWASM.newP2PKH([195, 219, 253, 64, 231, 248, 164, 132, 92, 47, 142, 134, 138, 22, 124, 152, 64, 73, 118, 73])
|
|
27
|
-
|
|
28
|
-
assert.equal(script.ASMString(), 'OP_DUP OP_HASH160 OP_PUSHBYTES_20 c3dbfd40e7f8a4845c2f8e868a167c9840497649 OP_EQUALVERIFY OP_CHECKSIG')
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
it('should allow to convert to adddress', () => {
|
|
32
|
-
const script = wasm.CoreScriptWASM.fromBytes(Buffer.from('76a9142de40f87177f6e167fb9fcda9a3b3c64fc42468f88ac', 'hex'))
|
|
33
|
-
|
|
34
|
-
assert.equal(script.toAddress(wasm.NetworkWASM.Testnet), 'yQW6TmUFef5CDyhEYwjoN8aUTMmKLYYNDm')
|
|
35
|
-
})
|
|
36
|
-
})
|
|
37
|
-
})
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
const assert = require('assert')
|
|
2
|
-
const { describe, it, before } = require('mocha')
|
|
3
|
-
const { value, id, ownerId } = require('./mocks/DataContract/index.js')
|
|
4
|
-
const { PlatformVersionWASM } = require('..')
|
|
5
|
-
const { fromHexString } = require('./utils/hex')
|
|
6
|
-
const { default: wasm } = require('..')
|
|
7
|
-
|
|
8
|
-
let dataContractsBytes
|
|
9
|
-
|
|
10
|
-
describe('DataContract', function () {
|
|
11
|
-
before(async function () {
|
|
12
|
-
dataContractsBytes = ['013662bb61e17fae3ea294cf603197fb0aab6d51180bd8b6104c4944a62fe2d97f0100000000010100000101000000000000000000000000000000000000000000000000000000000000000000010a7769746864726177616c1607120b6465736372697074696f6e12805769746864726177616c20646f63756d656e7420746f20747261636b20756e6465726c79696e67207769746864726177616c207472616e73616374696f6e732e205769746864726177616c732073686f756c6420626520637265617465642077697468204964656e746974795769746864726177616c5472616e736974696f6e12176372656174696f6e5265737472696374696f6e4d6f6465020212047479706512066f626a6563741207696e64696365731504160312046e616d65120e6964656e74697479537461747573120a70726f70657274696573150316011208246f776e6572496412036173631601120673746174757312036173631601120a2463726561746564417412036173631206756e697175651300160312046e616d65120e6964656e74697479526563656e74120a70726f70657274696573150316011208246f776e6572496412036173631601120a2475706461746564417412036173631601120673746174757312036173631206756e697175651300160312046e616d651207706f6f6c696e67120a70726f70657274696573150416011206737461747573120361736316011207706f6f6c696e6712036173631601120e636f72654665655065724279746512036173631601120a2475706461746564417412036173631206756e697175651300160312046e616d65120b7472616e73616374696f6e120a70726f706572746965731502160112067374617475731203617363160112107472616e73616374696f6e496e64657812036173631206756e697175651300120a70726f70657274696573160712107472616e73616374696f6e496e64657816041204747970651207696e7465676572120b6465736372697074696f6e127953657175656e7469616c20696e646578206f6620617373657420756e6c6f636b20287769746864726177616c29207472616e73616374696f6e2e20506f70756c61746564207768656e2061207769746864726177616c20706f6f6c656420696e746f207769746864726177616c207472616e73616374696f6e12076d696e696d756d02011208706f736974696f6e020012157472616e73616374696f6e5369676e48656967687416041204747970651207696e7465676572120b6465736372697074696f6e122f54686520436f726520686569676874206f6e207768696368207472616e73616374696f6e20776173207369676e656412076d696e696d756d02011208706f736974696f6e02011206616d6f756e7416041204747970651207696e7465676572120b6465736372697074696f6e121a54686520616d6f756e7420746f2062652077697468647261776e12076d696e696d756d02fb03e81208706f736974696f6e0202120e636f72654665655065724279746516051204747970651207696e7465676572120b6465736372697074696f6e1250546869732069732074686520666565207468617420796f75206172652077696c6c696e6720746f207370656e6420666f722074686973207472616e73616374696f6e20696e2044756666732f4279746512076d696e696d756d020112076d6178696d756d02fcffffffff1208706f736974696f6e02031207706f6f6c696e6716041204747970651207696e7465676572120b6465736372697074696f6e124e5468697320696e6469636174656420746865206c6576656c20617420776869636820506c6174666f726d2073686f756c642074727920746f20706f6f6c2074686973207472616e73616374696f6e1204656e756d15030200020102021208706f736974696f6e0204120c6f75747075745363726970741605120474797065120561727261791209627974654172726179130112086d696e4974656d73021712086d61784974656d7302191208706f736974696f6e0205120673746174757316041204747970651207696e74656765721204656e756d150502000201020202030204120b6465736372697074696f6e124330202d2050656e64696e672c2031202d205369676e65642c2032202d2042726f61646361737465642c2033202d20436f6d706c6574652c2034202d20457870697265641208706f736974696f6e020612146164646974696f6e616c50726f706572746965731300120872657175697265641507120a24637265617465644174120a247570646174656441741206616d6f756e74120e636f7265466565506572427974651207706f6f6c696e67120c6f7574707574536372697074120673746174757300000000000000000000']
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
describe('serialization / deserialization', function () {
|
|
16
|
-
it('should allows to create DataContract from schema without full validation', function () {
|
|
17
|
-
const identifier = new wasm.IdentifierWASM(value.ownerId)
|
|
18
|
-
|
|
19
|
-
const dataContract = new wasm.DataContractWASM(identifier, BigInt(2), value.documentSchemas, null, false)
|
|
20
|
-
|
|
21
|
-
assert.notEqual(dataContract.__wbg_ptr, 0)
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
it('should allows to create DataContract from schema with full validation', function () {
|
|
25
|
-
const identifier = new wasm.IdentifierWASM(value.ownerId)
|
|
26
|
-
|
|
27
|
-
const dataContract = new wasm.DataContractWASM(identifier, BigInt(2), value.documentSchemas, null, true)
|
|
28
|
-
|
|
29
|
-
assert.notEqual(dataContract.__wbg_ptr, 0)
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
it('should allows to create DataContract from value with full validation and without platform version', function () {
|
|
33
|
-
const dataContract = wasm.DataContractWASM.fromValue(value, true)
|
|
34
|
-
|
|
35
|
-
assert.notEqual(dataContract.__wbg_ptr, 0)
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
it('should allows to convert DataContract to bytes and from bytes', function () {
|
|
39
|
-
const [dataContractBytes] = dataContractsBytes
|
|
40
|
-
|
|
41
|
-
const dataContract = wasm.DataContractWASM.fromValue(value, true)
|
|
42
|
-
|
|
43
|
-
assert.deepEqual(dataContract.bytes(), fromHexString(dataContractBytes))
|
|
44
|
-
|
|
45
|
-
const dataContractFromBytes = wasm.DataContractWASM.fromBytes(dataContract.bytes(), false, PlatformVersionWASM.PLATFORM_V1)
|
|
46
|
-
|
|
47
|
-
assert.notEqual(dataContract.__wbg_ptr, 0)
|
|
48
|
-
|
|
49
|
-
assert.deepEqual(dataContractFromBytes.bytes(), fromHexString(dataContractBytes))
|
|
50
|
-
})
|
|
51
|
-
|
|
52
|
-
it('should allows to create DataContract from bytes without full validation', function () {
|
|
53
|
-
const [dataContractBytes] = dataContractsBytes
|
|
54
|
-
|
|
55
|
-
const dataContractFromBytes = wasm.DataContractWASM.fromBytes(fromHexString(dataContractBytes), false, PlatformVersionWASM.PLATFORM_V1)
|
|
56
|
-
const dataContractFromValue = wasm.DataContractWASM.fromValue(value, true)
|
|
57
|
-
|
|
58
|
-
assert.deepEqual(dataContractFromBytes.toValue(), dataContractFromValue.toValue())
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
it('should allows to create DataContract from bytes with full validation and without version', function () {
|
|
62
|
-
const [dataContractBytes] = dataContractsBytes
|
|
63
|
-
|
|
64
|
-
const dataContractFromBytes = wasm.DataContractWASM.fromBytes(fromHexString(dataContractBytes), true)
|
|
65
|
-
const dataContractFromValue = wasm.DataContractWASM.fromValue(value, true)
|
|
66
|
-
|
|
67
|
-
assert.deepEqual(dataContractFromBytes.toValue(), dataContractFromValue.toValue())
|
|
68
|
-
})
|
|
69
|
-
|
|
70
|
-
it('should allow to get json', function () {
|
|
71
|
-
const dataContract = wasm.DataContractWASM.fromValue(value, true)
|
|
72
|
-
|
|
73
|
-
assert.deepEqual(dataContract.toJson(), value)
|
|
74
|
-
})
|
|
75
|
-
})
|
|
76
|
-
|
|
77
|
-
describe('getters', function () {
|
|
78
|
-
it('should allow to get schemas', function () {
|
|
79
|
-
const dataContract = wasm.DataContractWASM.fromValue(value, true)
|
|
80
|
-
|
|
81
|
-
assert.deepEqual(dataContract.getSchemas(), value.documentSchemas)
|
|
82
|
-
})
|
|
83
|
-
|
|
84
|
-
it('should allow to get version', function () {
|
|
85
|
-
const dataContract = wasm.DataContractWASM.fromValue(value, true)
|
|
86
|
-
|
|
87
|
-
assert.deepEqual(dataContract.version, value.version)
|
|
88
|
-
})
|
|
89
|
-
|
|
90
|
-
it('should allow to get id', function () {
|
|
91
|
-
const dataContract = wasm.DataContractWASM.fromValue(value, true)
|
|
92
|
-
|
|
93
|
-
assert.deepEqual(dataContract.id.base58(), id)
|
|
94
|
-
})
|
|
95
|
-
|
|
96
|
-
it('should allow to get owner id', function () {
|
|
97
|
-
const dataContract = wasm.DataContractWASM.fromValue(value, true)
|
|
98
|
-
|
|
99
|
-
assert.deepEqual(dataContract.ownerId.base58(), ownerId)
|
|
100
|
-
})
|
|
101
|
-
|
|
102
|
-
it('should allow to get config', function () {
|
|
103
|
-
const dataContract = wasm.DataContractWASM.fromValue(value, true)
|
|
104
|
-
|
|
105
|
-
assert.deepEqual(dataContract.getConfig(), value.config)
|
|
106
|
-
})
|
|
107
|
-
})
|
|
108
|
-
|
|
109
|
-
describe('setters', function () {
|
|
110
|
-
it('should allow to set id', function () {
|
|
111
|
-
const dataContract = wasm.DataContractWASM.fromValue(value, true)
|
|
112
|
-
|
|
113
|
-
dataContract.id = new wasm.IdentifierWASM('7ckT6Y19HnjfqoPFmfL995i4z2HwgZ8UttNmP99LtCBH')
|
|
114
|
-
|
|
115
|
-
assert.deepEqual(dataContract.id.base58(), '7ckT6Y19HnjfqoPFmfL995i4z2HwgZ8UttNmP99LtCBH')
|
|
116
|
-
})
|
|
117
|
-
|
|
118
|
-
it('should allow to set owner id', function () {
|
|
119
|
-
const dataContract = wasm.DataContractWASM.fromValue(value, true)
|
|
120
|
-
|
|
121
|
-
dataContract.ownerId = new wasm.IdentifierWASM('3bx13Wd5k4LwHAvXJrayc5HdKPyiccKWYECPQGGYfnVL')
|
|
122
|
-
|
|
123
|
-
assert.deepEqual(dataContract.ownerId.base58(), '3bx13Wd5k4LwHAvXJrayc5HdKPyiccKWYECPQGGYfnVL')
|
|
124
|
-
})
|
|
125
|
-
|
|
126
|
-
it('should allow to set version', function () {
|
|
127
|
-
const dataContract = wasm.DataContractWASM.fromValue(value, true)
|
|
128
|
-
|
|
129
|
-
dataContract.version = 20
|
|
130
|
-
|
|
131
|
-
assert.equal(dataContract.version, 20)
|
|
132
|
-
})
|
|
133
|
-
|
|
134
|
-
it('should allow to set config', function () {
|
|
135
|
-
const dataContract = wasm.DataContractWASM.fromValue(value, true)
|
|
136
|
-
|
|
137
|
-
const oldConfig = dataContract.getConfig()
|
|
138
|
-
|
|
139
|
-
const newConfig = { ...oldConfig, canBeDeleted: !oldConfig.canBeDeleted }
|
|
140
|
-
|
|
141
|
-
dataContract.setConfig(newConfig)
|
|
142
|
-
|
|
143
|
-
assert.deepEqual(dataContract.getConfig(), newConfig)
|
|
144
|
-
})
|
|
145
|
-
|
|
146
|
-
it('should allow to set schema', function () {
|
|
147
|
-
const dataContract = wasm.DataContractWASM.fromValue(value, true)
|
|
148
|
-
|
|
149
|
-
const oldSchema = dataContract.getSchemas()
|
|
150
|
-
|
|
151
|
-
const newSchema = {
|
|
152
|
-
pupup: oldSchema.withdrawal
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
dataContract.setSchemas(newSchema)
|
|
156
|
-
|
|
157
|
-
assert.deepEqual(dataContract.getSchemas(), newSchema)
|
|
158
|
-
})
|
|
159
|
-
})
|
|
160
|
-
|
|
161
|
-
describe('static', function () {
|
|
162
|
-
it('should allow to generate id', function () {
|
|
163
|
-
const identifier = new wasm.IdentifierWASM('3bx13Wd5k4LwHAvXJrayc5HdKPyiccKWYECPQGGYfnVL')
|
|
164
|
-
|
|
165
|
-
const id = wasm.DataContractWASM.generateId(identifier, BigInt(4))
|
|
166
|
-
|
|
167
|
-
assert.deepEqual(id.base58(), '7ckT6Y19HnjfqoPFmfL995i4z2HwgZ8UttNmP99LtCBH')
|
|
168
|
-
})
|
|
169
|
-
})
|
|
170
|
-
})
|