dash-platform-sdk 1.4.0 → 1.5.0-dev.1
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 +15 -15
- package/bundle.min.js +17 -17
- package/package.json +2 -2
- package/proto/generated/platform.client.d.ts +60 -0
- package/proto/generated/platform.client.js +42 -0
- package/proto/generated/platform.d.ts +783 -0
- package/proto/generated/platform.js +1582 -1
- package/src/DashPlatformSDK.d.ts +2 -0
- package/src/DashPlatformSDK.js +3 -0
- package/src/constants.d.ts +1 -0
- package/src/constants.js +1 -0
- package/src/keyPair/index.d.ts +25 -0
- package/src/keyPair/index.js +33 -0
- package/src/shielded/createStateTransition.d.ts +3 -0
- package/src/shielded/createStateTransition.js +55 -0
- package/src/shielded/getMostRecentShieldedAnchor.d.ts +2 -0
- package/src/shielded/getMostRecentShieldedAnchor.js +36 -0
- package/src/shielded/getShieldedAnchors.d.ts +2 -0
- package/src/shielded/getShieldedAnchors.js +36 -0
- package/src/shielded/getShieldedEncryptedNotes.d.ts +3 -0
- package/src/shielded/getShieldedEncryptedNotes.js +43 -0
- package/src/shielded/getShieldedNotesCount.d.ts +2 -0
- package/src/shielded/getShieldedNotesCount.js +36 -0
- package/src/shielded/getShieldedNullifiers.d.ts +3 -0
- package/src/shielded/getShieldedNullifiers.js +40 -0
- package/src/shielded/getShieldedPoolState.d.ts +2 -0
- package/src/shielded/getShieldedPoolState.js +36 -0
- package/src/shielded/index.d.ts +130 -0
- package/src/shielded/index.js +186 -0
- package/test/unit/KeyPair.spec.js +32 -0
- package/test/unit/Shielded.spec.d.ts +1 -0
- package/test/unit/Shielded.spec.js +236 -0
- package/types.d.ts +85 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# dash-platform-sdk v1.
|
|
1
|
+
# dash-platform-sdk v1.5.0
|
|
2
2
|
[](https://github.com/pshenmic/dash-platform-sdk/blob/master/LICENSE)  
|
|
3
3
|
|
|
4
4
|
|
|
@@ -25,7 +25,7 @@ There is no input validation and error handling implemented yet relying on a hap
|
|
|
25
25
|
|
|
26
26
|
## Versioning
|
|
27
27
|
|
|
28
|
-
#### v1.5.x (
|
|
28
|
+
#### v1.5.x (current)
|
|
29
29
|
React Native support, shielded transitions support
|
|
30
30
|
#### v1.4.x
|
|
31
31
|
Node API support
|
|
@@ -83,7 +83,7 @@ Or load it straight from the web page:
|
|
|
83
83
|
|
|
84
84
|
Now you're ready to make queries in the network and push your data!
|
|
85
85
|
|
|
86
|
-
See [docs/Quickstart.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.
|
|
86
|
+
See [docs/Quickstart.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.1/docs/Quickstart.md) for basic usage examples (register data contract, push/update/delete documents).
|
|
87
87
|
|
|
88
88
|
## API Documentation
|
|
89
89
|
|
|
@@ -106,17 +106,17 @@ The folder `docs/examples` in this repo contains useful example code snippets.
|
|
|
106
106
|
|
|
107
107
|
| | |
|
|
108
108
|
|---|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
109
|
-
| [Quickstart.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.
|
|
110
|
-
| [DataContracts.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.
|
|
111
|
-
| [Documents.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.
|
|
112
|
-
| [Tokens.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.
|
|
113
|
-
| [Identities.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.
|
|
114
|
-
| [Voting.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.
|
|
115
|
-
| [StateTransitions.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.
|
|
116
|
-
| [Names.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.
|
|
117
|
-
| [Node.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.
|
|
118
|
-
| [Utils.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.
|
|
119
|
-
| [KeyPair.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.
|
|
120
|
-
| [ContestedResources.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.
|
|
109
|
+
| [Quickstart.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.1/docs/Quickstart.md) | Install, Import, Register Data Contract, Push / Update / Delete Document |
|
|
110
|
+
| [DataContracts.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.1/docs/examples/DataContracts.md) | Get Data Contract By Identifier, Create Data Contract, Create State Transition |
|
|
111
|
+
| [Documents.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.1/docs/examples/Documents.md) | Create Document, Query Documents, Create State Transition (Create / Replace/ Delete / Transfer / Purchase / UpdatePrice) |
|
|
112
|
+
| [Tokens.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.1/docs/examples/Tokens.md) | Get Balance, Get Contract Info, Get Supply, Get prices, Create State Transition |
|
|
113
|
+
| [Identities.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.1/docs/examples/Identities.md) | Get Identity, Get Identity Balance, Get Identity Nonce, Get Identity Public Keys, Create Identity (from AssetLockProof), Top Up Identity (from AssetLockProof), Update Identity, Credit Transfer, Credit Withdrawal |
|
|
114
|
+
| [Voting.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.1/docs/examples/Voting.md) | Casting Masternode Vote against Contested Resource |
|
|
115
|
+
| [StateTransitions.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.1/docs/examples/StateTransitions.md) | Broadcast Transaction, Wait for State Transition Result (wait for finalization) |
|
|
116
|
+
| [Names.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.1/docs/examples/Names.md) | Search By Dash Username (DPNS Name), Search by Identity's Identifier, Register Dash Username (DPNS Name), Test Name Contested (validation), Validate Name (validation) |
|
|
117
|
+
| [Node.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.1/docs/examples/Node.md) | Node Status, Total Credits (locked in Platform), Epochs Info |
|
|
118
|
+
| [Utils.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.1/docs/examples/Utils.md) | useful utility functions, like hex/base58 encoding, createVoterIdentifier, createMasternodeIdentifier, validateIdentifier |
|
|
119
|
+
| [KeyPair.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.1/docs/examples/KeyPair.md) | Mnemonic to Seed, Seed to HD Key, Derive Identity Private Key, Derive Child, Derive Path, P2PKH Address conversion |
|
|
120
|
+
| [ContestedResources.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.1/docs/examples/ContestedResources.md) | Contested Resource Vote State Info |
|
|
121
121
|
|
|
122
122
|
|