pshenmic-dpp 1.0.5 → 1.0.6
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/.github/workflows/build.yml +1 -1
- package/.github/workflows/publish.yml +1 -1
- package/Cargo.lock +147 -49
- package/Cargo.toml +13 -7
- package/README.md +10 -1
- package/dist/wasm/index.d.ts +52 -0
- package/dist/wasm/pshenmic_dpp.d.ts +962 -0
- package/dist/wasm/pshenmic_dpp.js +3342 -875
- package/dist/wasm/pshenmic_dpp_bg.js +1 -1
- package/dist/wasm/pshenmic_dpp_bg.wasm.d.ts +440 -0
- package/docs/AssetLockProof.md +107 -0
- package/docs/Building.md +50 -0
- package/docs/ChainLockProof.md +63 -0
- package/docs/CoreScript.md +17 -0
- package/docs/DataContract.md +192 -0
- package/docs/DataContractCreateTransition.md +84 -0
- package/docs/DataContractUpdateTransition.md +84 -0
- package/docs/Document.md +396 -0
- package/docs/DocumentBaseTransition.md +111 -0
- package/docs/DocumentCreateTransition.md +132 -0
- package/docs/DocumentDeleteTransition.md +82 -0
- package/docs/DocumentPurchaseTransition.md +109 -0
- package/docs/DocumentReplaceTransition.md +112 -0
- package/docs/DocumentTransferTransition.md +96 -0
- package/docs/DocumentTransition.md +125 -0
- package/docs/DocumentUpdatePriceTransition.md +109 -0
- package/docs/DocumentsBatch.md +133 -0
- package/docs/Enums.md +103 -0
- package/docs/Home.md +28 -0
- package/docs/Identifier.md +37 -0
- package/docs/Identity.md +140 -0
- package/docs/IdentityCreateTransition.md +155 -0
- package/docs/IdentityCreditTransfer.md +187 -0
- package/docs/IdentityCreditWithdrawalTransition.md +244 -0
- package/docs/IdentityPublicKey.md +348 -0
- package/docs/IdentityPublicKeyInCreation.md +141 -0
- package/docs/IdentityTopUpTransition.md +166 -0
- package/docs/IdentityUpdateTransition.md +234 -0
- package/docs/InstantAssetLockProof.md +117 -0
- package/docs/InstantLock.md +100 -0
- package/docs/OutPoint.md +80 -0
- package/docs/PrefundedVotingBalance.md +48 -0
- package/docs/PrivateKey.md +112 -0
- package/docs/TxOut.md +93 -0
- package/package.json +3 -3
- package/packages/asset_lock_proof/Cargo.toml +19 -0
- package/packages/asset_lock_proof/src/chain/mod.rs +79 -0
- package/packages/asset_lock_proof/src/instant/instant_lock.rs +111 -0
- package/packages/asset_lock_proof/src/instant/mod.rs +115 -0
- package/packages/asset_lock_proof/src/lib.rs +133 -0
- package/packages/asset_lock_proof/src/outpoint/mod.rs +79 -0
- package/packages/asset_lock_proof/src/tx_out/mod.rs +80 -0
- package/packages/cbor_conversation/Cargo.toml +1 -1
- package/packages/core_script/Cargo.toml +13 -0
- package/packages/core_script/src/lib.rs +69 -0
- package/packages/data_contract/Cargo.toml +2 -1
- package/packages/data_contract/src/lib.rs +34 -30
- package/packages/data_contract_transitions/Cargo.toml +1 -1
- package/packages/data_contract_transitions/src/create/mod.rs +3 -3
- package/packages/data_contract_transitions/src/update/mod.rs +3 -3
- package/packages/document/Cargo.toml +2 -1
- package/packages/document/src/lib.rs +13 -12
- package/packages/document/src/methods/mod.rs +41 -38
- package/packages/documents_batch/Cargo.toml +2 -1
- package/packages/documents_batch/src/document_base_transition/mod.rs +16 -20
- package/packages/documents_batch/src/document_transition/mod.rs +9 -9
- package/packages/documents_batch/src/lib.rs +23 -16
- package/packages/documents_batch/src/transitions/create/mod.rs +5 -2
- package/packages/documents_batch/src/transitions/transfer/mod.rs +9 -11
- package/packages/enums/Cargo.toml +1 -1
- package/packages/enums/src/batch/batch_enum.rs +2 -2
- package/packages/enums/src/lib.rs +2 -0
- package/packages/enums/src/lock_types/mod.rs +65 -0
- package/packages/enums/src/platform/mod.rs +2 -0
- package/packages/enums/src/withdrawal/mod.rs +72 -0
- package/packages/identifier/Cargo.toml +9 -0
- package/packages/identifier/src/lib.rs +105 -0
- package/packages/identity/Cargo.toml +2 -1
- package/packages/identity/src/lib.rs +13 -18
- package/packages/identity_public_key/Cargo.toml +1 -1
- package/packages/identity_transitions/Cargo.toml +7 -3
- package/packages/identity_transitions/src/create_transition/mod.rs +99 -36
- package/packages/identity_transitions/src/credit_withdrawal_transition/mod.rs +212 -0
- package/packages/identity_transitions/src/identity_credit_transfer_transition/mod.rs +169 -0
- package/packages/identity_transitions/src/lib.rs +6 -1
- package/packages/identity_transitions/src/{create_transition/public_key_in_creation → public_key_in_creation}/mod.rs +67 -20
- package/packages/identity_transitions/src/top_up_transition/mod.rs +141 -0
- package/packages/identity_transitions/src/update_transition/mod.rs +213 -0
- package/packages/private_key/Cargo.toml +1 -1
- package/packages/state_transition/Cargo.toml +2 -1
- package/packages/state_transition/src/lib.rs +3 -2
- package/packages/utils/Cargo.toml +2 -2
- package/packages/utils/src/lib.rs +0 -3
- package/scripts/build-js.sh +16 -0
- package/scripts/build.sh +5 -1
- package/src/lib.rs +1 -0
- package/tests/AssetLockProof.spec.js +80 -0
- package/tests/ChainLockProof.spec.js +69 -0
- package/tests/CoreScript.spec.js +37 -0
- package/tests/DataContract.spec.js +17 -14
- package/tests/Document.spec.js +14 -8
- package/tests/DocumentBatchTransition.spec.js +11 -11
- package/tests/DocumentTransition.spec.js +4 -4
- package/tests/DocumentsTransitions.spec.js +22 -22
- package/tests/Identifier.spec.js +84 -0
- package/tests/Identity.spec.js +1 -1
- package/tests/IdentityCreateTransition.spec.js +93 -0
- package/tests/IdentityCreditTransferTransition.spec.js +146 -0
- package/tests/IdentityCreditWithdrawalTransition.spec.js +192 -0
- package/tests/IdentityTopUpTransition.spec.js +131 -0
- package/tests/IdentityUpdateTransition.spec.js +147 -0
- package/tests/InstantLockProof.spec.js +97 -0
- package/tests/OutPoint.spec.js +55 -0
- package/tests/PublicKeyInCreation.spec.js +258 -0
- package/tests/TxOut.spec.js +76 -0
- package/tests/mocks/Locks/index.js +5 -0
- package/tests/mocks/PublicKey/index.js +1 -1
- package/typings/index.d.ts +52 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as DPP from './pshenmic_dpp';
|
|
2
|
+
|
|
3
|
+
export * from './pshenmic_dpp';
|
|
4
|
+
|
|
5
|
+
export class DashPlatformProtocolWASM {
|
|
6
|
+
// CLASSES
|
|
7
|
+
AssetLockProofWASM: typeof DPP.AssetLockProofWASM
|
|
8
|
+
ChainAssetLockProofWASM: typeof DPP.ChainAssetLockProofWASM
|
|
9
|
+
CoreScriptWASM: typeof DPP.CoreScriptWASM
|
|
10
|
+
DataContractCreateTransitionWASM: typeof DPP.DataContractCreateTransitionWASM
|
|
11
|
+
DataContractUpdateTransitionWASM: typeof DPP.DataContractUpdateTransitionWASM
|
|
12
|
+
DataContractWASM: typeof DPP.DataContractWASM
|
|
13
|
+
DocumentBaseTransitionWASM: typeof DPP.DocumentBaseTransitionWASM
|
|
14
|
+
DocumentCreateTransitionWASM: typeof DPP.DocumentCreateTransitionWASM
|
|
15
|
+
DocumentDeleteTransitionWASM: typeof DPP.DocumentDeleteTransitionWASM
|
|
16
|
+
DocumentPurchaseTransitionWASM: typeof DPP.DocumentPurchaseTransitionWASM
|
|
17
|
+
DocumentReplaceTransitionWASM: typeof DPP.DocumentReplaceTransitionWASM
|
|
18
|
+
DocumentTransferTransitionWASM: typeof DPP.DocumentTransferTransitionWASM
|
|
19
|
+
DocumentTransitionWASM: typeof DPP.DocumentTransitionWASM
|
|
20
|
+
DocumentUpdatePriceTransitionWASM: typeof DPP.DocumentUpdatePriceTransitionWASM
|
|
21
|
+
DocumentWASM: typeof DPP.DocumentWASM
|
|
22
|
+
DocumentsBatchWASM: typeof DPP.DocumentsBatchWASM
|
|
23
|
+
IdentifierWASM: typeof DPP.IdentifierWASM
|
|
24
|
+
IdentityCreateTransitionWASM: typeof DPP.IdentityCreateTransitionWASM
|
|
25
|
+
IdentityCreditTransferWASM: typeof DPP.IdentityCreditTransferWASM
|
|
26
|
+
IdentityCreditWithdrawalTransitionWASM: typeof DPP.IdentityCreditWithdrawalTransitionWASM
|
|
27
|
+
IdentityPublicKeyInCreationWASM: typeof DPP.IdentityPublicKeyInCreationWASM
|
|
28
|
+
IdentityPublicKeyWASM: typeof DPP.IdentityPublicKeyWASM
|
|
29
|
+
IdentityTopUpTransitionWASM: typeof DPP.IdentityTopUpTransitionWASM
|
|
30
|
+
IdentityUpdateTransitionWASM: typeof DPP.IdentityUpdateTransitionWASM
|
|
31
|
+
IdentityWASM: typeof DPP.IdentityWASM
|
|
32
|
+
InstantAssetLockProofWASM: typeof DPP.InstantAssetLockProofWASM
|
|
33
|
+
InstantLockWASM: typeof DPP.InstantLockWASM
|
|
34
|
+
OutPointWASM: typeof DPP.OutPointWASM
|
|
35
|
+
PrefundedVotingBalanceWASM: typeof DPP.PrefundedVotingBalanceWASM
|
|
36
|
+
PrivateKeyWASM: typeof DPP.PrivateKeyWASM
|
|
37
|
+
StateTransitionWASM: typeof DPP.StateTransitionWASM
|
|
38
|
+
TxOutWASM: typeof DPP.TxOutWASM
|
|
39
|
+
// ENUMS
|
|
40
|
+
AssetLockProofTypeWASM: typeof DPP.AssetLockProofTypeWASM
|
|
41
|
+
BatchType: typeof DPP.BatchType
|
|
42
|
+
KeyType: typeof DPP.KeyType
|
|
43
|
+
NetworkWASM: typeof DPP.NetworkWASM
|
|
44
|
+
PlatformVersionWASM: typeof DPP.PlatformVersionWASM
|
|
45
|
+
PoolingWASM: typeof DPP.PoolingWASM
|
|
46
|
+
Purpose: typeof DPP.Purpose
|
|
47
|
+
SecurityLevel: typeof DPP.SecurityLevel
|
|
48
|
+
// METHODS
|
|
49
|
+
cborToObject: typeof DPP.cborToObject
|
|
50
|
+
objectToCbor: typeof DPP.objectToCbor
|
|
51
|
+
initSync: typeof DPP.initSync
|
|
52
|
+
}
|