pshenmic-dpp 2.0.0-dev.8 → 2.0.0
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 +164 -77
- package/dist/binaries/bindingsTypes.d.ts +903 -18
- package/dist/binaries/bindingsTypes.js +13 -0
- package/dist/binaries/memory.cjs +7 -0
- package/dist/binaries/memory.d.cts +2 -0
- package/dist/binaries/native/aarch64-apple-darwin/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/aarch64-pc-windows-msvc/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/aarch64-unknown-linux-gnu/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/aarch64-unknown-linux-musl/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/x86_64-apple-darwin/pshenmic_dpp.node +0 -0
- package/dist/binaries/native/x86_64-pc-windows-msvc/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/node.cjs +71 -0
- package/dist/binaries/node.d.cts +2 -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 +60 -0
- package/dist/binaries/pshenmic_dpp.js +1 -1
- package/dist/binaries/wasm/wasmBytes.cjs +4 -0
- package/dist/binaries/wasm/wasmBytes.d.cts +2 -0
- package/dist/binaries/wasm/workerBundle.cjs +6 -0
- package/dist/binaries/wasm/workerBundle.d.cts +2 -0
- package/dist/binaries/wasm.d.ts +60 -0
- package/dist/binaries/wasm.js +2 -44
- package/dist/binaries/wasmCreation.cjs +127 -0
- package/dist/binaries/wasmCreation.d.cts +4 -0
- package/dist/src/dpp/dpp.d.ts +33 -0
- package/dist/src/dpp/dpp.js +33 -0
- 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 +3 -1
- package/dist/src/dpp/structs/AddressTransitions/AddressCreditWithdrawalTransition.js +6 -0
- package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.d.ts +2 -1
- package/dist/src/dpp/structs/AddressTransitions/AddressFundingFromAssetLockTransition.js +3 -0
- package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.d.ts +3 -1
- package/dist/src/dpp/structs/AddressTransitions/AddressFundsTransferTransition.js +6 -0
- package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.d.ts +2 -1
- package/dist/src/dpp/structs/AddressTransitions/IdentityCreateFromAddressesTransition.js +3 -0
- package/dist/src/dpp/structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.d.ts +2 -1
- package/dist/src/dpp/structs/AddressTransitions/IdentityCreditTransferToAddressesTransition.js +3 -0
- package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.d.ts +2 -1
- package/dist/src/dpp/structs/AddressTransitions/IdentityTopUpFromAddressesTransition.js +3 -0
- package/dist/src/dpp/structs/Batch/BatchTransition.d.ts +2 -1
- package/dist/src/dpp/structs/Batch/BatchTransition.js +3 -0
- package/dist/src/dpp/structs/DataContractTransitions/DataContractCreateTransition.d.ts +2 -1
- package/dist/src/dpp/structs/DataContractTransitions/DataContractCreateTransition.js +3 -0
- package/dist/src/dpp/structs/DataContractTransitions/DataContractUpdateTransition.d.ts +2 -1
- package/dist/src/dpp/structs/DataContractTransitions/DataContractUpdateTransition.js +3 -0
- package/dist/src/dpp/structs/Identifier.js +3 -0
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreateTransition.d.ts +2 -1
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreateTransition.js +3 -0
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditTransfer.d.ts +2 -1
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditTransfer.js +3 -0
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditWithdrawalTransition.d.ts +2 -1
- package/dist/src/dpp/structs/IdentityTransitions/IdentityCreditWithdrawalTransition.js +3 -0
- package/dist/src/dpp/structs/IdentityTransitions/IdentityTopUpTransition.d.ts +2 -1
- package/dist/src/dpp/structs/IdentityTransitions/IdentityTopUpTransition.js +3 -0
- package/dist/src/dpp/structs/IdentityTransitions/IdentityUpdateTransition.d.ts +2 -1
- package/dist/src/dpp/structs/IdentityTransitions/IdentityUpdateTransition.js +3 -0
- package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.d.ts +2 -3
- package/dist/src/dpp/structs/MasternodeVote/MasternodeVoteTransition.js +3 -6
- package/dist/src/dpp/structs/Orchard/CommitmentTree.d.ts +14 -0
- package/dist/src/dpp/structs/Orchard/CommitmentTree.js +31 -0
- package/dist/src/dpp/structs/Orchard/FullViewingKey.d.ts +27 -0
- package/dist/src/dpp/structs/Orchard/FullViewingKey.js +45 -0
- package/dist/src/dpp/structs/Orchard/IdentityCreateFromShieldedPoolResult.d.ts +21 -0
- package/dist/src/dpp/structs/Orchard/IdentityCreateFromShieldedPoolResult.js +38 -0
- package/dist/src/dpp/structs/Orchard/IncomingViewingKey.d.ts +29 -0
- package/dist/src/dpp/structs/Orchard/IncomingViewingKey.js +44 -0
- package/dist/src/dpp/structs/Orchard/MerklePath.d.ts +11 -0
- package/dist/src/dpp/structs/Orchard/MerklePath.js +25 -0
- package/dist/src/dpp/structs/Orchard/Note.d.ts +18 -0
- package/dist/src/dpp/structs/Orchard/Note.js +42 -0
- package/dist/src/dpp/structs/Orchard/OrchardAddress.d.ts +27 -0
- package/dist/src/dpp/structs/Orchard/OrchardAddress.js +45 -0
- package/dist/src/dpp/structs/Orchard/OrchardProver.d.ts +19 -0
- package/dist/src/dpp/structs/Orchard/OrchardProver.js +34 -0
- package/dist/src/dpp/structs/Orchard/RecoveredNote.d.ts +19 -0
- package/dist/src/dpp/structs/Orchard/RecoveredNote.js +32 -0
- package/dist/src/dpp/structs/Orchard/ShieldedBuilder.d.ts +64 -0
- package/dist/src/dpp/structs/Orchard/ShieldedBuilder.js +79 -0
- package/dist/src/dpp/structs/Orchard/ShieldedMemo.d.ts +11 -0
- package/dist/src/dpp/structs/Orchard/ShieldedMemo.js +25 -0
- package/dist/src/dpp/structs/Orchard/ShieldedOutput.d.ts +23 -0
- package/dist/src/dpp/structs/Orchard/ShieldedOutput.js +41 -0
- package/dist/src/dpp/structs/Orchard/ShieldedWithdrawalResult.d.ts +11 -0
- package/dist/src/dpp/structs/Orchard/ShieldedWithdrawalResult.js +18 -0
- package/dist/src/dpp/structs/Orchard/SpendableNote.d.ts +13 -0
- package/dist/src/dpp/structs/Orchard/SpendableNote.js +27 -0
- package/dist/src/dpp/structs/PlatformAddress/PlatformAddress.d.ts +9 -1
- package/dist/src/dpp/structs/PlatformAddress/PlatformAddress.js +10 -0
- package/dist/src/dpp/structs/ShieldedTransitions/IdentityCreateFromShieldedPoolTransition.d.ts +32 -0
- package/dist/src/dpp/structs/ShieldedTransitions/IdentityCreateFromShieldedPoolTransition.js +76 -0
- package/dist/src/dpp/structs/ShieldedTransitions/SerializedAction.d.ts +19 -0
- package/dist/src/dpp/structs/ShieldedTransitions/SerializedAction.js +49 -0
- package/dist/src/dpp/structs/ShieldedTransitions/ShieldFromAssetLockTransition.d.ts +31 -0
- package/dist/src/dpp/structs/ShieldedTransitions/ShieldFromAssetLockTransition.js +80 -0
- package/dist/src/dpp/structs/ShieldedTransitions/ShieldTransition.d.ts +33 -0
- package/dist/src/dpp/structs/ShieldedTransitions/ShieldTransition.js +81 -0
- package/dist/src/dpp/structs/ShieldedTransitions/ShieldedTransferTransition.d.ts +22 -0
- package/dist/src/dpp/structs/ShieldedTransitions/ShieldedTransferTransition.js +54 -0
- package/dist/src/dpp/structs/ShieldedTransitions/ShieldedWithdrawalTransition.d.ts +30 -0
- package/dist/src/dpp/structs/ShieldedTransitions/ShieldedWithdrawalTransition.js +74 -0
- package/dist/src/dpp/structs/ShieldedTransitions/UnshieldTransition.d.ts +26 -0
- package/dist/src/dpp/structs/ShieldedTransitions/UnshieldTransition.js +62 -0
- package/dist/src/dpp/structs/StateTransition.d.ts +2 -1
- package/dist/src/dpp/structs/StateTransition.js +3 -0
- package/dist/src/dpp/types.d.ts +177 -3
- package/dist/src/dpp/verify/AddressFunds/utils.d.ts +5 -0
- package/dist/src/dpp/verify/AddressFunds/utils.js +28 -0
- package/dist/src/dpp/verify/AddressFunds/verifyAddressesBranchState.d.ts +12 -0
- package/dist/src/dpp/verify/AddressFunds/verifyAddressesBranchState.js +29 -0
- package/dist/src/dpp/verify/AddressFunds/verifyAddressesTrunkState.d.ts +9 -0
- package/dist/src/dpp/verify/AddressFunds/verifyAddressesTrunkState.js +30 -0
- package/dist/src/dpp/verify/AddressFunds/verifyRecentAddressBalanceChanges.d.ts +9 -0
- package/dist/src/dpp/verify/AddressFunds/verifyRecentAddressBalanceChanges.js +24 -0
- package/dist/src/dpp/verify/AddressFunds/verifyRecentCompactedAddressBalanceChanges.d.ts +10 -0
- package/dist/src/dpp/verify/AddressFunds/verifyRecentCompactedAddressBalanceChanges.js +30 -0
- 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/Shielded/verifyMostRecentShieldedAnchorProof.d.ts +2 -0
- package/dist/src/dpp/verify/Shielded/verifyMostRecentShieldedAnchorProof.js +9 -0
- package/dist/src/dpp/verify/Shielded/verifyShieldedAnchorsProof.d.ts +2 -0
- package/dist/src/dpp/verify/Shielded/verifyShieldedAnchorsProof.js +9 -0
- package/dist/src/dpp/verify/Shielded/verifyShieldedEncryptedNotesProof.d.ts +2 -0
- package/dist/src/dpp/verify/Shielded/verifyShieldedEncryptedNotesProof.js +15 -0
- package/dist/src/dpp/verify/Shielded/verifyShieldedNotesCountProof.d.ts +2 -0
- package/dist/src/dpp/verify/Shielded/verifyShieldedNotesCountProof.js +9 -0
- package/dist/src/dpp/verify/Shielded/verifyShieldedNullifiersProof.d.ts +2 -0
- package/dist/src/dpp/verify/Shielded/verifyShieldedNullifiersProof.js +12 -0
- package/dist/src/dpp/verify/Shielded/verifyShieldedPoolStateProof.d.ts +2 -0
- package/dist/src/dpp/verify/Shielded/verifyShieldedPoolStateProof.js +9 -0
- package/dist/src/dpp/verify/StateTransition/utils.js +76 -11
- package/dist/src/dpp/verify/StateTransition/verifyStateTransitionResult.js +2 -1
- package/dist/src/dpp/verify/System/verifyFinalizedEpochInfosProof.d.ts +2 -0
- package/dist/src/dpp/verify/System/verifyFinalizedEpochInfosProof.js +27 -0
- package/dist/src/native.d.ts +3 -0
- package/dist/src/native.js +8 -0
- package/dist/utils/{base122.js → base122.cjs} +3 -1
- package/package.json +19 -29
- package/tests/unit/AddressTransitionsFees.spec.ts +274 -0
- package/tests/unit/DataContract.spec.ts +281 -0
- package/tests/unit/DynamicValue.spec.ts +2 -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/tests/unit/Shielded.spec.ts +555 -0
- package/tests/unit/ShieldedTransitions.spec.ts +877 -0
- package/tests/unit/StateTransitionFees.spec.ts +177 -0
- package/tests/unit/TokenConfiguration.spec.ts +114 -0
- package/tests/unit/WebAssembly.spec.ts +88 -0
- package/tests/unit/utils/buildTokenConfiguration.ts +66 -0
- package/dist/binaries/pshenmic_dpp.android.node/x86_64/libpshenmic_dpp.so +0 -0
- package/dist/binaries/wasm/wasmBytes.d.ts +0 -2
- package/dist/binaries/wasm/wasmBytes.js +0 -2
- /package/dist/utils/{base122.d.ts → base122.d.cts} +0 -0
package/README.md
CHANGED
|
@@ -1,108 +1,195 @@
|
|
|
1
|
-
## NOTE: v2.0.0-dev under active development and until the first stable release, it may not correspond to previous versions in terms of functionality.
|
|
2
|
-
## At this moment supported platforms: WebAssembly, aarch64-apple-ios-sim, x86_64-linux-android
|
|
3
1
|
___
|
|
4
2
|
# PSHENMIC-DPP
|
|
5
3
|
|
|
6
4
|
## General
|
|
7
|
-
Pshenmic-dpp is package with
|
|
5
|
+
Pshenmic-dpp is a package with Rust bindings for JS.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
The module uses [rs-dpp](https://github.com/dashpay/platform) (Dash Platform `v4.1.0`) and exposes its structures,
|
|
8
|
+
state transitions and proof verification to JavaScript/TypeScript via [napi-rs](https://napi.rs).
|
|
9
|
+
The same API is available on WebAssembly, Node.js native addons and React Native.
|
|
11
10
|
|
|
12
11
|
___
|
|
13
12
|
## How To Install
|
|
14
13
|
`yarn add pshenmic-dpp`
|
|
15
14
|
|
|
15
|
+
or
|
|
16
|
+
|
|
17
|
+
`npm i pshenmic-dpp`
|
|
18
|
+
|
|
19
|
+
___
|
|
20
|
+
## Supported Platforms
|
|
21
|
+
|
|
22
|
+
| Entry point | Environment | Targets |
|
|
23
|
+
|---|---|---|
|
|
24
|
+
| `pshenmic-dpp/wasm` (`browser` / `default`) | Browsers, bundlers, any JS runtime | `wasm32-wasip1-threads` (via emnapi) |
|
|
25
|
+
| `pshenmic-dpp/native` (`node`) | Node.js | `x86_64-unknown-linux-gnu`, `aarch64-unknown-linux-gnu`, `x86_64-unknown-linux-musl`, `aarch64-unknown-linux-musl`, `x86_64-apple-darwin`, `aarch64-apple-darwin`, `x86_64-pc-windows-msvc`, `aarch64-pc-windows-msvc` |
|
|
26
|
+
| `react-native` | React Native (via `react-native-node-api`) | `aarch64-linux-android`, `x86_64-linux-android`, `aarch64-apple-ios-sim` |
|
|
27
|
+
|
|
28
|
+
The root import `pshenmic-dpp` resolves to the right build automatically through the `exports` conditions.
|
|
29
|
+
|
|
30
|
+
```ts
|
|
31
|
+
import { IdentifierWASM } from 'pshenmic-dpp'
|
|
32
|
+
|
|
33
|
+
const identifier = IdentifierWASM.fromBase58('ckBqfQe7LU7vwrwXopyCB4n5phZShjA16BGhNGpsD5U')
|
|
34
|
+
console.log(identifier.hex())
|
|
35
|
+
```
|
|
36
|
+
|
|
16
37
|
___
|
|
17
38
|
## Current features
|
|
18
39
|
|
|
19
|
-
|
|
40
|
+
### Core
|
|
41
|
+
- `IdentifierWASM`
|
|
42
|
+
- `IdentityWASM`
|
|
43
|
+
- `PartialIdentityWASM`
|
|
44
|
+
- `IdentityPublicKeyWASM`
|
|
45
|
+
- `IdentityPublicKeyInCreationWASM`
|
|
46
|
+
- `PrivateKeyWASM`
|
|
47
|
+
- `PublicKeyWASM`
|
|
48
|
+
- `CoreScriptWASM`
|
|
49
|
+
- `ContractBoundsWASM`
|
|
50
|
+
- `ConsensusErrorWASM`
|
|
51
|
+
- `StateTransitionWASM`
|
|
52
|
+
- `GroupStateTransitionInfoWASM`
|
|
53
|
+
- `PrivateEncryptedNoteWASM`
|
|
54
|
+
- `SharedEncryptedNoteWASM`
|
|
55
|
+
- Enums: `KeyType`, `Purpose`, `SecurityLevel`, `NetworkWASM`, `PlatformVersionWASM`, `ActionGoal`,
|
|
56
|
+
`TokenDistributionType`, `TokenEmergencyActionWASM`, `AssetLockProofType`, `PoolingWASM`, `GasFeesPaidByWASM`,
|
|
57
|
+
`VoteStateResultType`, `ScopeWASM`
|
|
58
|
+
|
|
59
|
+
### Asset Lock
|
|
60
|
+
- `AssetLockProofWASM`
|
|
61
|
+
- `ChainAssetLockProofWASM`
|
|
62
|
+
- `InstantAssetLockProofWASM`
|
|
63
|
+
- `InstantLockWASM`
|
|
64
|
+
- `TransactionWASM`
|
|
65
|
+
- `TxInWASM`
|
|
66
|
+
- `TxOutWASM`
|
|
67
|
+
- `OutPointWASM`
|
|
68
|
+
- `WitnessWASM`
|
|
69
|
+
|
|
70
|
+
### Identity Transitions
|
|
71
|
+
- `IdentityCreateTransitionWASM`
|
|
72
|
+
- `IdentityTopUpTransitionWASM`
|
|
73
|
+
- `IdentityUpdateTransitionWASM`
|
|
74
|
+
- `IdentityCreditTransferWASM`
|
|
75
|
+
- `IdentityCreditWithdrawalTransitionWASM`
|
|
76
|
+
|
|
77
|
+
### Platform Addresses
|
|
78
|
+
- `PlatformAddressWASM`
|
|
79
|
+
- `AddressWitnessWASM`
|
|
80
|
+
- `InputAddressWASM`
|
|
81
|
+
- `OutputAddressWASM`
|
|
82
|
+
- `OutputAddressNullableCreditsWASM`
|
|
83
|
+
- `AddressFundsFeeStrategyStepWASM`
|
|
84
|
+
- Address Transitions:
|
|
85
|
+
- `AddressCreditWithdrawalTransitionWASM`
|
|
86
|
+
- `AddressFundingFromAssetLockTransitionWASM`
|
|
87
|
+
- `AddressFundsTransferTransitionWASM`
|
|
88
|
+
- `IdentityCreateFromAddressesTransitionWASM`
|
|
89
|
+
- `IdentityCreditTransferToAddressesTransitionWASM`
|
|
90
|
+
- `IdentityTopUpFromAddressesTransitionWASM`
|
|
91
|
+
|
|
92
|
+
### Shielded Pool (Orchard)
|
|
93
|
+
- `OrchardAddressWASM`, `orchardOvkFromSeed`
|
|
94
|
+
- `FullViewingKeyWASM`
|
|
95
|
+
- `IncomingViewingKeyWASM`
|
|
96
|
+
- `NoteWASM`
|
|
97
|
+
- `SpendableNoteWASM`
|
|
98
|
+
- `RecoveredNoteWASM`, `recoverNotes`
|
|
99
|
+
- `ShieldedMemoWASM`
|
|
100
|
+
- `ShieldedOutputWASM`
|
|
101
|
+
- `MerklePathWASM`
|
|
102
|
+
- `CommitmentTreeWASM`
|
|
103
|
+
- `OrchardProverWASM`
|
|
104
|
+
- `ShieldedBuilderWASM`
|
|
105
|
+
- `ShieldedWithdrawalResultWASM`
|
|
106
|
+
- `IdentityCreateFromShieldedPoolResultWASM`
|
|
107
|
+
- Shielded Transitions:
|
|
108
|
+
- `ShieldTransitionWASM`
|
|
109
|
+
- `ShieldFromAssetLockTransitionWASM`
|
|
110
|
+
- `ShieldedTransferTransitionWASM`
|
|
111
|
+
- `UnshieldTransitionWASM`
|
|
112
|
+
- `ShieldedWithdrawalTransitionWASM`
|
|
113
|
+
- `IdentityCreateFromShieldedPoolTransitionWASM`
|
|
114
|
+
- `SerializedActionWASM`
|
|
115
|
+
|
|
116
|
+
### Data Contracts & Documents
|
|
117
|
+
- `DataContractWASM`
|
|
118
|
+
- `DataContractCreateTransitionWASM`
|
|
119
|
+
- `DataContractUpdateTransitionWASM`
|
|
20
120
|
- `DocumentWASM`
|
|
21
|
-
|
|
22
|
-
|
|
121
|
+
|
|
122
|
+
### Batch
|
|
123
|
+
- `BatchTransitionWASM`
|
|
124
|
+
- `BatchedTransitionWASM`
|
|
125
|
+
- `DocumentTransitionWASM`
|
|
126
|
+
- `DocumentBaseTransitionWASM`
|
|
127
|
+
- `TokenTransitionWASM`
|
|
23
128
|
- `TokenBaseTransitionWASM`
|
|
129
|
+
- `TokenPaymentInfoWASM`
|
|
24
130
|
- `TokenPricingScheduleWASM`
|
|
25
|
-
- `TokenTransitionWASM`
|
|
26
|
-
- `BatchedTransitionWASM`
|
|
27
|
-
- `TokenConfigurationChangeItemWASM`
|
|
28
|
-
- `TokenConfigurationWASM`
|
|
29
|
-
- `ActionTakerWASM`
|
|
30
|
-
- `AuthorizedActionTakersWASM`
|
|
31
|
-
- `ChangeControlRulesWASM`
|
|
32
|
-
- `TokenConfigurationConventionWASM`
|
|
33
|
-
- `DistributionFunctionWASM`
|
|
34
|
-
- `TokenDistributionRecipientWASM`
|
|
35
|
-
- `TokenDistributionRulesWASM`
|
|
36
|
-
- distribution structs:
|
|
37
|
-
- `DistributionFixedAmountWASM`
|
|
38
|
-
- `DistributionRandomWASM`
|
|
39
|
-
- `DistributionStepDecreasingAmountWASM`
|
|
40
|
-
- `DistributionLinearWASM`
|
|
41
|
-
- `DistributionPolynomialWASM`
|
|
42
|
-
- `DistributionExponentialWASM`
|
|
43
|
-
- `DistributionLogarithmicWASM`
|
|
44
|
-
- `DistributionInvertedLogarithmicWASM`
|
|
45
|
-
- `GroupWASM`
|
|
46
|
-
- `TokenKeepsHistoryRulesWASM`
|
|
47
|
-
- `TokenConfigurationLocalizationWASM`
|
|
48
|
-
- `TokenMarketplaceRulesWASM`
|
|
49
|
-
- `TokenPerpetualDistributionWASM`
|
|
50
|
-
- `TokenPreProgrammedDistributionWASM`
|
|
51
|
-
- `RewardDistributionTypeWASM`
|
|
52
|
-
- `TokenTradeModeWASM`
|
|
53
|
-
- `GroupStateTransitionInfoWASM`
|
|
54
|
-
- `DocumentsTransitionWASM`
|
|
55
131
|
- `PrefundedVotingBalanceWASM`
|
|
56
|
-
-
|
|
57
|
-
- `
|
|
58
|
-
-
|
|
59
|
-
- `
|
|
60
|
-
- `
|
|
61
|
-
- `DocuemntPurchaseTransitionWASM`
|
|
62
|
-
- `DocuemntReplaceTransitionWASM`
|
|
132
|
+
- Document Transitions:
|
|
133
|
+
- `DocumentCreateTransitionWASM`
|
|
134
|
+
- `DocumentDeleteTransitionWASM`
|
|
135
|
+
- `DocumentPurchaseTransitionWASM`
|
|
136
|
+
- `DocumentReplaceTransitionWASM`
|
|
63
137
|
- `DocumentTransferTransitionWASM`
|
|
64
138
|
- `DocumentUpdatePriceTransitionWASM`
|
|
65
|
-
-
|
|
66
|
-
- `TokenConfigUpdateTransitionWASM`
|
|
67
|
-
- `TokenDirectPurchaseTransitionWASM`
|
|
68
|
-
- `TokenSetPriceForDirectPurchaseTransitionWASM`
|
|
139
|
+
- Token Transitions:
|
|
69
140
|
- `TokenBurnTransitionWASM`
|
|
70
141
|
- `TokenClaimTransitionWASM`
|
|
142
|
+
- `TokenConfigUpdateTransitionWASM`
|
|
71
143
|
- `TokenDestroyFrozenFundsTransitionWASM`
|
|
144
|
+
- `TokenDirectPurchaseTransitionWASM`
|
|
72
145
|
- `TokenEmergencyActionTransitionWASM`
|
|
73
146
|
- `TokenFreezeTransitionWASM`
|
|
74
147
|
- `TokenMintTransitionWASM`
|
|
148
|
+
- `TokenSetPriceForDirectPurchaseTransitionWASM`
|
|
75
149
|
- `TokenTransferTransitionWASM`
|
|
76
150
|
- `TokenUnFreezeTransitionWASM`
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
- `
|
|
92
|
-
- `
|
|
93
|
-
- `
|
|
94
|
-
- `
|
|
95
|
-
- `
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
- `IdentityWASM`
|
|
99
|
-
- `IdentifierWASM`
|
|
100
|
-
- `StateTransitionWASM`
|
|
101
|
-
- `DataContractWASM`
|
|
102
|
-
- `ContractBoundsWASM`
|
|
151
|
+
|
|
152
|
+
### Token Configuration
|
|
153
|
+
- `TokenConfigurationWASM`
|
|
154
|
+
- `TokenConfigurationChangeItemWASM`
|
|
155
|
+
- `TokenConfigurationConventionWASM`
|
|
156
|
+
- `TokenConfigurationLocalizationWASM`
|
|
157
|
+
- `TokenKeepsHistoryRulesWASM`
|
|
158
|
+
- `TokenMarketplaceRulesWASM`
|
|
159
|
+
- `TokenTradeModeWASM`
|
|
160
|
+
- `TokenDistributionRulesWASM`
|
|
161
|
+
- `TokenDistributionRecipientWASM`
|
|
162
|
+
- `TokenPerpetualDistributionWASM`
|
|
163
|
+
- `TokenPreProgrammedDistributionWASM`
|
|
164
|
+
- `RewardDistributionTypeWASM`
|
|
165
|
+
- `DistributionFunctionWASM`
|
|
166
|
+
- `ActionTakerWASM`
|
|
167
|
+
- `AuthorizedActionTakersWASM`
|
|
168
|
+
- `ChangeControlRulesWASM`
|
|
169
|
+
- `GroupWASM`
|
|
170
|
+
|
|
171
|
+
### Masternode Voting
|
|
103
172
|
- `MasternodeVoteTransitionWASM`
|
|
104
|
-
- `VotePollWASM`
|
|
105
173
|
- `VoteWASM`
|
|
174
|
+
- `VotePollWASM`
|
|
106
175
|
- `ResourceVoteChoiceWASM`
|
|
107
|
-
- `Enums`
|
|
108
176
|
|
|
177
|
+
### Proof Verification
|
|
178
|
+
- Signatures: `verifySignatureDigest`
|
|
179
|
+
- System: `verifyEpochsInfoProof`, `verifyFinalizedEpochInfosProof`, `verifyTotalCreditsProof`
|
|
180
|
+
- State transitions: `verifyStateTransitionResult`
|
|
181
|
+
- Contracts & documents: `verifyContractProof`, `verifyDocumentsProof`
|
|
182
|
+
- Contested resources: `verifyVotePollVoteStateProof`
|
|
183
|
+
- Identity: `verifyIdentityByIdentifierProof`, `verifyIdentityByUniqueKeyHashProof`,
|
|
184
|
+
`verifyIdentifierByNonUniquePublicKeyHashProof`, `verifyIdentityBalanceProof`, `verifyIdentityKeysByIdentifierProof`,
|
|
185
|
+
`verifyIdentityNonceProof`, `verifyIdentityContractNonceProof`
|
|
186
|
+
- Tokens: `verifyTokenBalancesForIdentitiesProof`, `verifyTokensBalancesForIdentityProof`, `verifyTokenContractInfoProof`,
|
|
187
|
+
`verifyTokenDirectPurchasePrices`, `verifyTokenTotalSupplyProof`
|
|
188
|
+
- Platform addresses: `verifyPlatformAddressInfo`, `verifyPlatformAddressesInfos`, `verifyAddressesTrunkState`,
|
|
189
|
+
`verifyAddressesBranchState`, `verifyRecentAddressBalanceChanges`, `verifyRecentCompactedAddressBalanceChanges`
|
|
190
|
+
- Shielded pool: `verifyShieldedPoolStateProof`, `verifyShieldedAnchorsProof`, `verifyMostRecentShieldedAnchorProof`,
|
|
191
|
+
`verifyShieldedEncryptedNotesProof`, `verifyShieldedNotesCountProof`, `verifyShieldedNullifiersProof`
|
|
192
|
+
|
|
193
|
+
### Utils (`pshenmic-dpp/wasm/utils`)
|
|
194
|
+
- `valueToDynamicValue`, `valueFromDynamicValue`
|
|
195
|
+
- `prepareIdentifierValue`, `preparePlatformAddressValue`
|