dash 3.22.0-dev.4 → 3.22.0-dev.5
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
CHANGED
|
@@ -77,20 +77,20 @@ client.getWalletAccount().then(async (account) => {
|
|
|
77
77
|
## Dependencies
|
|
78
78
|
|
|
79
79
|
The Dash SDK works using multiple dependencies that might interest you:
|
|
80
|
-
- [Wallet-Lib](https://github.com/dashevo/wallet-lib) - Wallet management for handling, signing and broadcasting transactions (BIP-44 HD).
|
|
80
|
+
- [Wallet-Lib](https://github.com/dashevo/platform/tree/master/packages/wallet-lib) - Wallet management for handling, signing and broadcasting transactions (BIP-44 HD).
|
|
81
81
|
- [Dashcore-Lib](https://github.com/dashevo/dashcore-lib) - Provides the main L1 blockchain primitives (Block, Transaction,...).
|
|
82
|
-
- [DAPI-Client](https://github.com/dashevo/dapi-client) - Client library for accessing DAPI endpoints.
|
|
83
|
-
- [DPP](https://github.com/dashevo/js-dpp) - Implementation (JS) of Dash Platform Protocol.
|
|
82
|
+
- [DAPI-Client](https://github.com/dashevo/platform/tree/master/packages/js-dapi-client) - Client library for accessing DAPI endpoints.
|
|
83
|
+
- [DPP](https://github.com/dashevo/platform/tree/master/packages/js-dpp) - Implementation (JS) of Dash Platform Protocol.
|
|
84
84
|
|
|
85
85
|
Some features might be more extensive in those libs, as Dash SDK only wraps around them to provide a single interface that is easy to use (and thus has less features).
|
|
86
86
|
|
|
87
87
|
## Documentation
|
|
88
88
|
|
|
89
|
-
More extensive documentation available at https://dashevo.github.io/
|
|
89
|
+
More extensive documentation available at https://dashevo.github.io/platform/SDK/.
|
|
90
90
|
|
|
91
91
|
## Contributing
|
|
92
92
|
|
|
93
|
-
Feel free to dive in! [Open an issue](https://github.com/dashevo/
|
|
93
|
+
Feel free to dive in! [Open an issue](https://github.com/dashevo/platform/issues/new/choose) or submit PRs.
|
|
94
94
|
|
|
95
95
|
## License
|
|
96
96
|
|
|
@@ -125,6 +125,9 @@ var Client = /** @class */ (function (_super) {
|
|
|
125
125
|
dashpay: {
|
|
126
126
|
contractId: '2Vuou3EfbrtunwCZvQp1XS5PXZ5CgC1pGBz4VPT4ojmy',
|
|
127
127
|
},
|
|
128
|
+
masternodeRewardShares: {
|
|
129
|
+
contractId: '2Vuou3EfbrtunwCZvQp1XS5PXZ5CgC1pGBz4VPT4ojmy',
|
|
130
|
+
}
|
|
128
131
|
}, _this.options.apps));
|
|
129
132
|
_this.platform = new Platform_1.Platform({
|
|
130
133
|
client: _this,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../src/SDK/Client/Client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAsC;AACtC,kDAAsD;AACtD,kIAA2G;AAC3G,uCAAsC;AAEtC,qEAA8C;AAC9C,2CAA6D;AAgC7D;;;GAGG;AACH;IAA4B,0BAAY;IAUpC;;;;OAIG;IACH,gBAAY,OAAwB;QAAxB,wBAAA,EAAA,YAAwB;;QAApC,YACI,iBAAO,
|
|
1
|
+
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../src/SDK/Client/Client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAsC;AACtC,kDAAsD;AACtD,kIAA2G;AAC3G,uCAAsC;AAEtC,qEAA8C;AAC9C,2CAA6D;AAgC7D;;;GAGG;AACH;IAA4B,0BAAY;IAUpC;;;;OAIG;IACH,gBAAY,OAAwB;QAAxB,wBAAA,EAAA,YAAwB;;QAApC,YACI,iBAAO,SAkEV;QAjFM,aAAO,GAAW,SAAS,CAAC;QAI5B,yBAAmB,GAAuB,CAAC,CAAC;QAa/C,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,KAAI,CAAC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,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED;;;;;;;OAOG;IACH,wBAAO,GAAP;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IACL,aAAC;AAAD,CAAC,AArID,CAA4B,qBAAY,GAqIvC;AArIY,wBAAM;AAuInB,kBAAe,MAAM,CAAC"}
|
|
@@ -11,4 +11,4 @@ const signed = account.sign(message, pk);
|
|
|
11
11
|
const verify = message.verify(pk.toAddress().toString(), signed.toString());
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
See [code snippet](https://github.com/dashevo/
|
|
14
|
+
See [code snippet](https://github.com/dashevo/platform/blob/master/packages/js-dash-sdk/examples/node/sign-and-verify-messages.js).
|
|
@@ -4,4 +4,4 @@ When Dash.Client is initiated with a `mnemonic` property, a wallet instance is a
|
|
|
4
4
|
|
|
5
5
|
In order to ensure the sync-up with the network has happened, you will need to wait for the method `client.isReady()` to resolve.
|
|
6
6
|
|
|
7
|
-
You will find else where the [complete documentation of Wallet-lib](https://github.com/dashevo/wallet-lib), as we only cover the most basic pieces in this documentation.
|
|
7
|
+
You will find else where the [complete documentation of Wallet-lib](https://github.com/dashevo/platform/tree/master/packages/wallet-lib), as we only cover the most basic pieces in this documentation.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dash",
|
|
3
|
-
"version": "3.22.0-dev.
|
|
3
|
+
"version": "3.22.0-dev.5",
|
|
4
4
|
"description": "Dash library for JavaScript/TypeScript ecosystem (Wallet, DAPI, Primitives, BLS, ...)",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"unpkg": "dist/dash.min.js",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://github.com/dashevo/DashJS#readme",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@dashevo/dapi-client": "~0.22.0-dev.
|
|
37
|
+
"@dashevo/dapi-client": "~0.22.0-dev.5",
|
|
38
38
|
"@dashevo/dashcore-lib": "~0.19.28",
|
|
39
|
-
"@dashevo/dpp": "~0.22.0-dev.
|
|
40
|
-
"@dashevo/grpc-common": "~0.22.0-dev.
|
|
41
|
-
"@dashevo/wallet-lib": "~7.22.0-dev.
|
|
39
|
+
"@dashevo/dpp": "~0.22.0-dev.5",
|
|
40
|
+
"@dashevo/grpc-common": "~0.22.0-dev.5",
|
|
41
|
+
"@dashevo/wallet-lib": "~7.22.0-dev.5",
|
|
42
42
|
"bs58": "^4.0.1",
|
|
43
43
|
"node-inspect-extracted": "^1.0.8"
|
|
44
44
|
},
|
package/src/SDK/Client/Client.ts
CHANGED
|
@@ -112,6 +112,9 @@ export class Client extends EventEmitter {
|
|
|
112
112
|
dashpay: {
|
|
113
113
|
contractId: '2Vuou3EfbrtunwCZvQp1XS5PXZ5CgC1pGBz4VPT4ojmy',
|
|
114
114
|
},
|
|
115
|
+
masternodeRewardShares: {
|
|
116
|
+
contractId: '2Vuou3EfbrtunwCZvQp1XS5PXZ5CgC1pGBz4VPT4ojmy',
|
|
117
|
+
}
|
|
115
118
|
}, this.options.apps));
|
|
116
119
|
|
|
117
120
|
this.platform = new Platform({
|