dash-platform-sdk 1.0.2 → 1.0.3
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 -4
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +12 -0
- package/package.json +5 -3
- package/.github/workflows/build.yml +0 -39
- package/.github/workflows/publish.yml +0 -21
- package/babel.config.js +0 -4
- package/jest.config.js +0 -5
- package/proto/platform.proto +0 -1768
- package/src/dataContracts/getByIdentifier.js +0 -22
- package/src/documents/create.js +0 -9
- package/src/documents/get.js +0 -26
- package/src/errors/identityNotFoundError.js +0 -3
- package/src/grpcConnectionPool.js +0 -50
- package/src/identities/getByIdentifier.js +0 -22
- package/src/identities/getByPublicKeyHash.js +0 -24
- package/src/identities/getIdentityContractNonce.js +0 -26
- package/src/identities/getIdentityNonce.js +0 -25
- package/src/identities/getIdentityPublicKeys.js +0 -19
- package/src/index.js +0 -63
- package/src/names/search.js +0 -22
- package/src/node/status.js +0 -20
- package/src/stateTransitions/broadcast.js +0 -12
- package/src/stateTransitions/fromDocument.js +0 -5
- package/src/stateTransitions/waitForStateTransitionResult.js +0 -18
- package/src/utils/convertToHomographSafeChars.js +0 -17
- package/src/utils/getEvonodeList.js +0 -33
- package/src/utils/getRandomArrayItem.js +0 -3
- package/src/utils/hexToUint8Array.js +0 -3
- package/src/utils/parseIdentifier.js +0 -7
- package/test/unit/index.spec.js +0 -142
- package/webpack.config.js +0 -17
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# dash-platform-sdk v1.0.
|
|
1
|
+
# dash-platform-sdk v1.0.3
|
|
2
2
|
[](https://github.com/pshenmic/dash-platform-sdk/blob/master/LICENSE)  
|
|
3
3
|
|
|
4
4
|
|
|
@@ -25,7 +25,7 @@ $ npm install dash-platform-sdk
|
|
|
25
25
|
|
|
26
26
|
Alternatively, you could simply include the library from the CDN:
|
|
27
27
|
|
|
28
|
-
https://unpkg.com/dash-platform-sdk@1.0.
|
|
28
|
+
https://unpkg.com/dash-platform-sdk@1.0.3/dist/main.js
|
|
29
29
|
|
|
30
30
|
## Quickstart
|
|
31
31
|
To use the SDK, simply import the library and instantiate an instance of DashPlatformSDK:
|
|
@@ -34,11 +34,21 @@ To use the SDK, simply import the library and instantiate an instance of DashPla
|
|
|
34
34
|
import DashPlatformSDK from 'dash-platform-sdk'
|
|
35
35
|
|
|
36
36
|
// CommonJS
|
|
37
|
-
const
|
|
37
|
+
const DashPlatformSDK = require('dash-platform-sdk')
|
|
38
38
|
|
|
39
|
-
const sdk = new DashPlatformSDK({network: 'testnet'})
|
|
39
|
+
const sdk = new DashPlatformSDK({network: 'testnet'})
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
+
Or load it straight from the web page:
|
|
43
|
+
|
|
44
|
+
```html
|
|
45
|
+
<script src="https://unpkg.com/dash-platform-sdk@1.0.3/dist/main.js"></script>
|
|
46
|
+
<script>
|
|
47
|
+
const sdk = new DashPlatformSDK({network: 'testnet'})
|
|
48
|
+
</script>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
|
|
42
52
|
## API Documentation
|
|
43
53
|
|
|
44
54
|
### Data Contracts
|