dash 3.23.0-alpha.7 → 3.23.0-alpha.8
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 +8 -8
- package/docs/README.md +3 -3
- package/docs/usage/dashcorelib-primitives.md +13 -13
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Dash SDK
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.org/package/dash)
|
|
4
|
-
[](https://github.com/dashpay/platform/actions/workflows/release.yml)
|
|
5
|
+
[](https://github.com/dashpay/platform/releases/latest)
|
|
6
6
|
[](https://github.com/RichardLitt/standard-readme)
|
|
7
7
|
|
|
8
8
|
Dash library for JavaScript/TypeScript ecosystem (Wallet, DAPI, Primitives, BLS, ...)
|
|
9
9
|
|
|
10
|
-
Dash library provides access via [DAPI](https://dashplatform.readme.io/docs/explanation-dapi) to use both the Dash Core network and Dash Platform on [supported networks](https://github.com/
|
|
10
|
+
Dash library provides access via [DAPI](https://dashplatform.readme.io/docs/explanation-dapi) to use both the Dash Core network and Dash Platform on [supported networks](https://github.com/dashpay/platform/#supported-networks). The Dash Core network can be used to broadcast and receive payments. Dash Platform can be used to manage identities, register data contracts for applications, and submit or retrieve application data via documents.
|
|
11
11
|
|
|
12
12
|
## Table of Contents
|
|
13
13
|
- [Install](#install)
|
|
@@ -120,10 +120,10 @@ const {
|
|
|
120
120
|
## Dependencies
|
|
121
121
|
|
|
122
122
|
The Dash SDK works using multiple dependencies that might interest you:
|
|
123
|
-
- [Wallet-Lib](https://github.com/
|
|
124
|
-
- [Dashcore-Lib](https://github.com/
|
|
125
|
-
- [DAPI-Client](https://github.com/
|
|
126
|
-
- [DPP](https://github.com/
|
|
123
|
+
- [Wallet-Lib](https://github.com/dashpay/platform/tree/master/packages/wallet-lib) - Wallet management for handling, signing and broadcasting transactions (BIP-44 HD).
|
|
124
|
+
- [Dashcore-Lib](https://github.com/dashpay/dashcore-lib) - Provides the main L1 blockchain primitives (Block, Transaction,...).
|
|
125
|
+
- [DAPI-Client](https://github.com/dashpay/platform/tree/master/packages/js-dapi-client) - Client library for accessing DAPI endpoints.
|
|
126
|
+
- [DPP](https://github.com/dashpay/platform/tree/master/packages/js-dpp) - Implementation (JS) of Dash Platform Protocol.
|
|
127
127
|
|
|
128
128
|
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).
|
|
129
129
|
|
|
@@ -133,7 +133,7 @@ More extensive documentation available at https://dashpay.github.io/platform/SDK
|
|
|
133
133
|
|
|
134
134
|
## Contributing
|
|
135
135
|
|
|
136
|
-
Feel free to dive in! [Open an issue](https://github.com/
|
|
136
|
+
Feel free to dive in! [Open an issue](https://github.com/dashpay/platform/issues/new/choose) or submit PRs.
|
|
137
137
|
|
|
138
138
|
## License
|
|
139
139
|
|
package/docs/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Dash SDK
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.org/package/dash)
|
|
4
|
-
[](https://github.com/dashpay/platform/actions/workflows/release.yml)
|
|
5
|
+
[](https://github.com/dashpay/platform/releases/latest)
|
|
6
6
|
[](https://github.com/RichardLitt/standard-readme)
|
|
7
7
|
|
|
8
8
|
Dash library for JavaScript/TypeScript ecosystem (Wallet, DAPI, Primitives, BLS, ...)
|
|
9
9
|
|
|
10
|
-
Dash library provides access via [DAPI](https://dashplatform.readme.io/docs/explanation-dapi) to use both the Dash Core network and Dash Platform on [supported networks](https://github.com/
|
|
10
|
+
Dash library provides access via [DAPI](https://dashplatform.readme.io/docs/explanation-dapi) to use both the Dash Core network and Dash Platform on [supported networks](https://github.com/dashpay/platform/#supported-networks). The Dash Core network can be used to broadcast and receive payments. Dash Platform can be used to manage identities, register data contracts for applications, and submit or retrieve application data via documents.
|
|
11
11
|
|
|
12
12
|
## Install
|
|
13
13
|
|
|
@@ -24,7 +24,7 @@ const { Transaction } = Dash.Core;
|
|
|
24
24
|
const tx = new Transaction(txProps)
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
Access the [Transaction documentation on
|
|
27
|
+
Access the [Transaction documentation on dashpay/dashcore-lib](https://github.com/dashpay/dashcore-lib/blob/master/docs/core-concepts/transaction.md)
|
|
28
28
|
|
|
29
29
|
## Address
|
|
30
30
|
|
|
@@ -35,7 +35,7 @@ Pay-to-script-hash (P2SH) multi-signature addresses from an array of PublicKeys
|
|
|
35
35
|
const { Address } = Dash.Core;
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
Access the [Address documentation on
|
|
38
|
+
Access the [Address documentation on dashpay/dashcore-lib](https://github.com/dashpay/dashcore-lib/blob/master/docs/core-concepts/address.md)
|
|
39
39
|
|
|
40
40
|
## Block
|
|
41
41
|
|
|
@@ -45,7 +45,7 @@ The block's transactions can also be explored by iterating over elements in arra
|
|
|
45
45
|
|
|
46
46
|
`const { Block } = Dash.Core;`
|
|
47
47
|
|
|
48
|
-
Access the [Block documentation on
|
|
48
|
+
Access the [Block documentation on dashpay/dashcore-lib](https://github.com/dashpay/dashcore-lib/blob/master/docs/core-concepts/block.md)
|
|
49
49
|
|
|
50
50
|
## UnspentOutput
|
|
51
51
|
|
|
@@ -54,7 +54,7 @@ Mostly useful in association with a Transaction and for Scripts.
|
|
|
54
54
|
|
|
55
55
|
`const { UnspentOutput } = Dash.Core.Transaction;`
|
|
56
56
|
|
|
57
|
-
Access the [UnspentOutput documentation on
|
|
57
|
+
Access the [UnspentOutput documentation on dashpay/dashcore-lib](https://github.com/dashpay/dashcore-lib/blob/master/docs/core-concepts/unspentoutput.md)
|
|
58
58
|
|
|
59
59
|
## HDPublicKey
|
|
60
60
|
|
|
@@ -63,7 +63,7 @@ Used internally by Wallet-lib and for exchange between peers (DashPay)
|
|
|
63
63
|
|
|
64
64
|
const { HDPublicKey } = Dash.Core;`
|
|
65
65
|
|
|
66
|
-
Access the [HDKeys documentation on
|
|
66
|
+
Access the [HDKeys documentation on dashpay/dashcore-lib](https://github.com/dashpay/dashcore-lib/blob/master/docs/core-concepts/hierarchical.md#hdpublickey)
|
|
67
67
|
|
|
68
68
|
## HDPrivateKey
|
|
69
69
|
|
|
@@ -72,19 +72,19 @@ Used internally by Wallet-lib.
|
|
|
72
72
|
|
|
73
73
|
`const { HDPrivateKey } = Dash.Core;`
|
|
74
74
|
|
|
75
|
-
Access the [HDKeys documentation on
|
|
75
|
+
Access the [HDKeys documentation on dashpay/dashcore-lib](https://github.com/dashpay/dashcore-lib/blob/master/docs/core-concepts/hierarchical.md#hdprivatekey)
|
|
76
76
|
|
|
77
77
|
## PublicKey
|
|
78
78
|
|
|
79
79
|
`const { PublicKey } = Dash.Core;`
|
|
80
80
|
|
|
81
|
-
Access the [PublicKey documentation on
|
|
81
|
+
Access the [PublicKey documentation on dashpay/dashcore-lib](https://github.com/dashpay/dashcore-lib/blob/master/docs/core-concepts/publickey.md)
|
|
82
82
|
|
|
83
83
|
## PrivateKey
|
|
84
84
|
|
|
85
85
|
`const { PrivateKey } = Dash.Core;`
|
|
86
86
|
|
|
87
|
-
Access the [PrivateKey documentation on
|
|
87
|
+
Access the [PrivateKey documentation on dashpay/dashcore-lib](https://github.com/dashpay/dashcore-lib/blob/master/docs/core-concepts/privatekey.md)
|
|
88
88
|
|
|
89
89
|
## Mnemonic
|
|
90
90
|
|
|
@@ -93,7 +93,7 @@ Generates a random mnemonic with the chosen language, validates a mnemonic or re
|
|
|
93
93
|
|
|
94
94
|
`const { Mnemonic } = Dash.Core;`
|
|
95
95
|
|
|
96
|
-
Access the [Mnemonic documentation on
|
|
96
|
+
Access the [Mnemonic documentation on dashpay/dashcore-lib](https://github.com/dashpay/dashcore-lib/blob/master/docs/core-concepts/mnemonic.md)
|
|
97
97
|
|
|
98
98
|
## Network
|
|
99
99
|
|
|
@@ -102,24 +102,24 @@ A representation of the internal parameters relative to the selected network. By
|
|
|
102
102
|
`const { Network } = Dash.Core;`
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
Access the [Network documentation on
|
|
105
|
+
Access the [Network documentation on dashpay/dashcore-lib](https://github.com/dashpay/dashcore-lib/blob/master/docs/core-concepts/networks.md)
|
|
106
106
|
|
|
107
107
|
## Script
|
|
108
108
|
|
|
109
109
|
`const { Script } = Dash.Core.Transaction;`
|
|
110
110
|
|
|
111
|
-
Access the [Script documentation on
|
|
111
|
+
Access the [Script documentation on dashpay/dashcore-lib](https://github.com/dashpay/dashcore-lib/blob/master/docs/core-concepts/script.md)
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
## Input
|
|
115
115
|
|
|
116
116
|
`const { Input } = Dash.Core.Transaction;`
|
|
117
117
|
|
|
118
|
-
Access the [Transaction documentation on
|
|
118
|
+
Access the [Transaction documentation on dashpay/dashcore-lib](https://github.com/dashpay/dashcore-lib/blob/master/docs/core-concepts/transaction.md#adding-inputs)
|
|
119
119
|
|
|
120
120
|
|
|
121
121
|
## Output
|
|
122
122
|
|
|
123
123
|
`const { Output } = Dash.Core.Transaction;`
|
|
124
124
|
|
|
125
|
-
Access the [Transaction documentation on
|
|
125
|
+
Access the [Transaction documentation on dashpay/dashcore-lib](https://github.com/dashpay/dashcore-lib/blob/master/docs/core-concepts/transaction.md#handling-outputs)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dash",
|
|
3
|
-
"version": "3.23.0-alpha.
|
|
3
|
+
"version": "3.23.0-alpha.8",
|
|
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",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/dashevo/DashJS#readme",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@dashevo/dapi-client": "0.23.0-alpha.
|
|
38
|
+
"@dashevo/dapi-client": "0.23.0-alpha.8",
|
|
39
39
|
"@dashevo/dashcore-lib": "~0.19.44",
|
|
40
|
-
"@dashevo/dashpay-contract": "0.23.0-alpha.
|
|
41
|
-
"@dashevo/dpns-contract": "0.23.0-alpha.
|
|
42
|
-
"@dashevo/dpp": "0.23.0-alpha.
|
|
43
|
-
"@dashevo/grpc-common": "0.23.0-alpha.
|
|
44
|
-
"@dashevo/masternode-reward-shares-contract": "0.23.0-alpha.
|
|
45
|
-
"@dashevo/wallet-lib": "7.23.0-alpha.
|
|
40
|
+
"@dashevo/dashpay-contract": "0.23.0-alpha.8",
|
|
41
|
+
"@dashevo/dpns-contract": "0.23.0-alpha.8",
|
|
42
|
+
"@dashevo/dpp": "0.23.0-alpha.8",
|
|
43
|
+
"@dashevo/grpc-common": "0.23.0-alpha.8",
|
|
44
|
+
"@dashevo/masternode-reward-shares-contract": "0.23.0-alpha.8",
|
|
45
|
+
"@dashevo/wallet-lib": "7.23.0-alpha.8",
|
|
46
46
|
"bs58": "^4.0.1",
|
|
47
47
|
"node-inspect-extracted": "^1.0.8"
|
|
48
48
|
},
|