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.
Files changed (118) hide show
  1. package/.github/workflows/build.yml +1 -1
  2. package/.github/workflows/publish.yml +1 -1
  3. package/Cargo.lock +147 -49
  4. package/Cargo.toml +13 -7
  5. package/README.md +10 -1
  6. package/dist/wasm/index.d.ts +52 -0
  7. package/dist/wasm/pshenmic_dpp.d.ts +962 -0
  8. package/dist/wasm/pshenmic_dpp.js +3342 -875
  9. package/dist/wasm/pshenmic_dpp_bg.js +1 -1
  10. package/dist/wasm/pshenmic_dpp_bg.wasm.d.ts +440 -0
  11. package/docs/AssetLockProof.md +107 -0
  12. package/docs/Building.md +50 -0
  13. package/docs/ChainLockProof.md +63 -0
  14. package/docs/CoreScript.md +17 -0
  15. package/docs/DataContract.md +192 -0
  16. package/docs/DataContractCreateTransition.md +84 -0
  17. package/docs/DataContractUpdateTransition.md +84 -0
  18. package/docs/Document.md +396 -0
  19. package/docs/DocumentBaseTransition.md +111 -0
  20. package/docs/DocumentCreateTransition.md +132 -0
  21. package/docs/DocumentDeleteTransition.md +82 -0
  22. package/docs/DocumentPurchaseTransition.md +109 -0
  23. package/docs/DocumentReplaceTransition.md +112 -0
  24. package/docs/DocumentTransferTransition.md +96 -0
  25. package/docs/DocumentTransition.md +125 -0
  26. package/docs/DocumentUpdatePriceTransition.md +109 -0
  27. package/docs/DocumentsBatch.md +133 -0
  28. package/docs/Enums.md +103 -0
  29. package/docs/Home.md +28 -0
  30. package/docs/Identifier.md +37 -0
  31. package/docs/Identity.md +140 -0
  32. package/docs/IdentityCreateTransition.md +155 -0
  33. package/docs/IdentityCreditTransfer.md +187 -0
  34. package/docs/IdentityCreditWithdrawalTransition.md +244 -0
  35. package/docs/IdentityPublicKey.md +348 -0
  36. package/docs/IdentityPublicKeyInCreation.md +141 -0
  37. package/docs/IdentityTopUpTransition.md +166 -0
  38. package/docs/IdentityUpdateTransition.md +234 -0
  39. package/docs/InstantAssetLockProof.md +117 -0
  40. package/docs/InstantLock.md +100 -0
  41. package/docs/OutPoint.md +80 -0
  42. package/docs/PrefundedVotingBalance.md +48 -0
  43. package/docs/PrivateKey.md +112 -0
  44. package/docs/TxOut.md +93 -0
  45. package/package.json +3 -3
  46. package/packages/asset_lock_proof/Cargo.toml +19 -0
  47. package/packages/asset_lock_proof/src/chain/mod.rs +79 -0
  48. package/packages/asset_lock_proof/src/instant/instant_lock.rs +111 -0
  49. package/packages/asset_lock_proof/src/instant/mod.rs +115 -0
  50. package/packages/asset_lock_proof/src/lib.rs +133 -0
  51. package/packages/asset_lock_proof/src/outpoint/mod.rs +79 -0
  52. package/packages/asset_lock_proof/src/tx_out/mod.rs +80 -0
  53. package/packages/cbor_conversation/Cargo.toml +1 -1
  54. package/packages/core_script/Cargo.toml +13 -0
  55. package/packages/core_script/src/lib.rs +69 -0
  56. package/packages/data_contract/Cargo.toml +2 -1
  57. package/packages/data_contract/src/lib.rs +34 -30
  58. package/packages/data_contract_transitions/Cargo.toml +1 -1
  59. package/packages/data_contract_transitions/src/create/mod.rs +3 -3
  60. package/packages/data_contract_transitions/src/update/mod.rs +3 -3
  61. package/packages/document/Cargo.toml +2 -1
  62. package/packages/document/src/lib.rs +13 -12
  63. package/packages/document/src/methods/mod.rs +41 -38
  64. package/packages/documents_batch/Cargo.toml +2 -1
  65. package/packages/documents_batch/src/document_base_transition/mod.rs +16 -20
  66. package/packages/documents_batch/src/document_transition/mod.rs +9 -9
  67. package/packages/documents_batch/src/lib.rs +23 -16
  68. package/packages/documents_batch/src/transitions/create/mod.rs +5 -2
  69. package/packages/documents_batch/src/transitions/transfer/mod.rs +9 -11
  70. package/packages/enums/Cargo.toml +1 -1
  71. package/packages/enums/src/batch/batch_enum.rs +2 -2
  72. package/packages/enums/src/lib.rs +2 -0
  73. package/packages/enums/src/lock_types/mod.rs +65 -0
  74. package/packages/enums/src/platform/mod.rs +2 -0
  75. package/packages/enums/src/withdrawal/mod.rs +72 -0
  76. package/packages/identifier/Cargo.toml +9 -0
  77. package/packages/identifier/src/lib.rs +105 -0
  78. package/packages/identity/Cargo.toml +2 -1
  79. package/packages/identity/src/lib.rs +13 -18
  80. package/packages/identity_public_key/Cargo.toml +1 -1
  81. package/packages/identity_transitions/Cargo.toml +7 -3
  82. package/packages/identity_transitions/src/create_transition/mod.rs +99 -36
  83. package/packages/identity_transitions/src/credit_withdrawal_transition/mod.rs +212 -0
  84. package/packages/identity_transitions/src/identity_credit_transfer_transition/mod.rs +169 -0
  85. package/packages/identity_transitions/src/lib.rs +6 -1
  86. package/packages/identity_transitions/src/{create_transition/public_key_in_creation → public_key_in_creation}/mod.rs +67 -20
  87. package/packages/identity_transitions/src/top_up_transition/mod.rs +141 -0
  88. package/packages/identity_transitions/src/update_transition/mod.rs +213 -0
  89. package/packages/private_key/Cargo.toml +1 -1
  90. package/packages/state_transition/Cargo.toml +2 -1
  91. package/packages/state_transition/src/lib.rs +3 -2
  92. package/packages/utils/Cargo.toml +2 -2
  93. package/packages/utils/src/lib.rs +0 -3
  94. package/scripts/build-js.sh +16 -0
  95. package/scripts/build.sh +5 -1
  96. package/src/lib.rs +1 -0
  97. package/tests/AssetLockProof.spec.js +80 -0
  98. package/tests/ChainLockProof.spec.js +69 -0
  99. package/tests/CoreScript.spec.js +37 -0
  100. package/tests/DataContract.spec.js +17 -14
  101. package/tests/Document.spec.js +14 -8
  102. package/tests/DocumentBatchTransition.spec.js +11 -11
  103. package/tests/DocumentTransition.spec.js +4 -4
  104. package/tests/DocumentsTransitions.spec.js +22 -22
  105. package/tests/Identifier.spec.js +84 -0
  106. package/tests/Identity.spec.js +1 -1
  107. package/tests/IdentityCreateTransition.spec.js +93 -0
  108. package/tests/IdentityCreditTransferTransition.spec.js +146 -0
  109. package/tests/IdentityCreditWithdrawalTransition.spec.js +192 -0
  110. package/tests/IdentityTopUpTransition.spec.js +131 -0
  111. package/tests/IdentityUpdateTransition.spec.js +147 -0
  112. package/tests/InstantLockProof.spec.js +97 -0
  113. package/tests/OutPoint.spec.js +55 -0
  114. package/tests/PublicKeyInCreation.spec.js +258 -0
  115. package/tests/TxOut.spec.js +76 -0
  116. package/tests/mocks/Locks/index.js +5 -0
  117. package/tests/mocks/PublicKey/index.js +1 -1
  118. 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
+ }