dash-platform-sdk 1.5.0-dev.2 → 1.5.0-dev.4
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 -13
- package/bundle.min.js +1 -21
- package/package.json +4 -3
- package/src/platformAddresses/createStateTransition.d.ts +12 -0
- package/src/platformAddresses/createStateTransition.js +62 -0
- package/src/platformAddresses/index.d.ts +20 -2
- package/src/platformAddresses/index.js +21 -0
- package/src/shielded/createStateTransition.d.ts +1 -1
- package/src/shielded/createStateTransition.js +2 -2
- package/src/shielded/index.d.ts +3 -3
- package/src/shielded/index.js +6 -5
- package/test/unit/PlatformAddress.spec.js +111 -0
- package/test/unit/Shielded.spec.js +17 -16
- package/types.d.ts +59 -2
- package/types.js +1 -1
package/README.md
CHANGED
|
@@ -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.5.0-dev.
|
|
86
|
+
See [docs/Quickstart.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.4/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,18 @@ 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.5.0-dev.
|
|
110
|
-
| [DataContracts.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.
|
|
111
|
-
| [Documents.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.
|
|
112
|
-
| [Tokens.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.
|
|
113
|
-
| [Identities.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.
|
|
114
|
-
| [Voting.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.
|
|
115
|
-
| [StateTransitions.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.
|
|
116
|
-
| [Names.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.
|
|
117
|
-
| [Node.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.
|
|
118
|
-
| [Utils.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.
|
|
119
|
-
| [KeyPair.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.
|
|
120
|
-
| [ContestedResources.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.
|
|
109
|
+
| [Quickstart.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.4/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.4/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.4/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.4/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.4/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.4/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.4/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.4/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.4/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.4/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.4/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.4/docs/examples/ContestedResources.md) | Contested Resource Vote State Info |
|
|
121
|
+
| [PlatformAddresses.md](https://github.com/pshenmic/dash-platform-sdk/blob/v1.5.0-dev.4/docs/examples/PlatformAddresses.md) | Get Address Info, Create State Transition, Convenience builders (Transfer To Address, Create / Top Up Identity From Addresses, Transfer Between Addresses, Fund From Asset Lock, Withdrawal To Core) |
|
|
121
122
|
|
|
122
123
|
|