@witnet/sdk 1.0.8 โ 1.0.9
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/LICENSE +1 -1
- package/README.md +101 -90
- package/dist/package.json +13 -13
- package/dist/src/lib/crypto/utils.d.ts.map +1 -1
- package/dist/src/lib/radon/ccdr/eth.d.ts.map +1 -1
- package/dist/src/lib/radon/ccdr/wit.d.ts.map +1 -1
- package/dist/witnet/witnet.proto.json +0 -3
- package/package.json +13 -13
- package/witnet/witnet.proto.json +0 -3
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,103 +1,114 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Witnet SDK and CLI tools
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> The **Witnet SDK** empowers devops and Web3 developers to seamlessly interact with the Witnet blockchain.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## โจ Overview
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Users of the Witnet SDK library or the embedded CLI tools, will be able to:
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
- ๐ Create HD-wallets to hold and transact with $WIT coins.
|
|
10
|
+
- ๐ฑ Stake and withdraw $WIT coins into and from Witnet validators.
|
|
11
|
+
- ๐งฎ Build oracle queries adapted to all sorts of data sources and use cases.
|
|
12
|
+
- ๐ฉบ Simulate resolution of oracle queries, locally and at no cost.
|
|
13
|
+
- ๐งโโ๏ธ Notarize resolution of oracle queries on the Witnet blockchain.
|
|
14
|
+
- ๐ฐ Report resolution of oracle queries into smart contracts.
|
|
15
|
+
- โ๏ธ Check dynamic information on the Witnet P2P network.
|
|
16
|
+
- ๐ Explore public data on the Witnet blockchain.
|
|
17
|
+
- ๐ชช Generate legit stake-authorization codes for external customers.
|
|
18
|
+
|
|
19
|
+
## ๐ฆ Installation
|
|
20
|
+
|
|
21
|
+
### CLI as a global binary
|
|
22
|
+
Install the `witsdk` binary:
|
|
23
|
+
```bash
|
|
24
|
+
$ npm install -g @witnet/sdk
|
|
25
|
+
$ witsdk --version
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### SDK as project dependency
|
|
29
|
+
- Add the @witnet/sdk package to your project:
|
|
30
|
+
```bash
|
|
31
|
+
$ npm install --save-dev @witnet/sdk`
|
|
32
|
+
```
|
|
33
|
+
- Import from Javascript:
|
|
11
34
|
```javascript
|
|
12
|
-
const Witnet = require(
|
|
13
|
-
const { RadonRequest, Wallet, Utils } from '@witnet/sdk'
|
|
35
|
+
const { assets, utils, Witnet } = require("@witnet/sdk")`
|
|
14
36
|
```
|
|
15
|
-
|
|
16
|
-
|
|
37
|
+
- Import from Typescript:
|
|
38
|
+
```typescript
|
|
39
|
+
import { assets, utils, Witnet } from "@witnet/sdk"
|
|
17
40
|
```
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"https://polygon-amoy.gateway.tenderly.co",
|
|
28
|
-
"https://rpc.ankr.com/polygon_amoy",
|
|
29
|
-
"https://polygon-amoy-bor-rpc.publicnode.com",
|
|
30
|
-
),
|
|
31
|
-
aggregate: Witnet.RadonReducers.Mode(),
|
|
32
|
-
tally: Witnet.RadonReducers.Mode(),
|
|
33
|
-
});
|
|
34
|
-
const request = template.buildRequestModal("0xfc3c17407f788c075483b0ad5383b1d5e6fbdc7ba500b08397c80423755c5eba")
|
|
35
|
-
|
|
36
|
-
// Example 2: Compose a regular randomness request
|
|
37
|
-
const request = new Witnet.RadonRequest({
|
|
38
|
-
retrieve: Witnet.RadonRetrievals.RNG(),
|
|
39
|
-
tally: Witnet.RadonReducers.ConcatHash(),
|
|
40
|
-
})
|
|
41
|
-
|
|
42
|
-
// Example 3: Leverage a pre-built price feed from the WF's pricefeeds repository
|
|
43
|
-
const assets = require('witnet-feeds')
|
|
44
|
-
const request = assets.legacy.requests.price.crypto.WitOracleRequestPriceAvaxUsd6;
|
|
45
|
-
|
|
46
|
-
// Example 4: Get WSB addresses on "conflux:core:mainnet"
|
|
47
|
-
const addresses = assets.getAddresses("conflux:core:mainnet")
|
|
48
|
-
|
|
49
|
-
// Example 5: Serialize a RadonRequest into a hexified buffer
|
|
50
|
-
const hexString = request.toBytecode()
|
|
51
|
-
|
|
52
|
-
// Example 6: Convert RadonRequest into Witnet-compliant protobuf object
|
|
53
|
-
const protobuf = request.toProtobuf()
|
|
54
|
-
|
|
55
|
-
// Example 7: Stringify a Witnet-compliant script
|
|
56
|
-
console.info(request.retrieve[0].script.toString())
|
|
57
|
-
|
|
58
|
-
// Example 8: Decode hexified bytecode into a RadonRequest
|
|
59
|
-
const request = Witnet.RadonRequest.from(hexString)
|
|
60
|
-
|
|
61
|
-
// Example 9: Get result of dry running a RadonRequest, locally
|
|
62
|
-
const result = JSON.parse(await request.execDryRun())
|
|
41
|
+
|
|
42
|
+
## โ๏ธ Requirements
|
|
43
|
+
- Node.js >= 20.
|
|
44
|
+
- Witnet wallet with sufficient $WIT balance.
|
|
45
|
+
|
|
46
|
+
## ๐ง Configuration
|
|
47
|
+
Both the CLI and the library can be configured by using a **.env** file declaring this variable:
|
|
48
|
+
```bash
|
|
49
|
+
WITNET_SDK_WALLET_MASTER_KEY="xprv_string_here_as_exported_from_a_node_mww_or_sheikah"
|
|
63
50
|
```
|
|
64
|
-
|
|
65
|
-
|
|
51
|
+
|
|
52
|
+
You can optionally:
|
|
53
|
+
- Settle your preferred WIT/RPC provider, like a Witnet node of your own, or third-party providers, by using the command-line option `--provider` (if using the CLI), or by setting the `WITNET_SDK_PROVIDER_URL` environment variable.
|
|
54
|
+
|
|
55
|
+
## ๐งช Supported Networks
|
|
56
|
+
| Witnet Network | Network id | WIT/RPC endpoints |
|
|
57
|
+
| -: | :-: | :-
|
|
58
|
+
| Mainnet | `0x9fed` | https://rpc-01.witnet.io
|
|
59
|
+
| Testnet | `0x749f` | https://rpc-testnet.witnet.io
|
|
60
|
+
|
|
61
|
+
## ๐ ๏ธ Usage
|
|
62
|
+
|
|
63
|
+
### Library modules
|
|
64
|
+
|
|
65
|
+
> *Please, find Javascript and Typescript code snippets in the [Witnet Docs site](https://docs.witnet.io/witnet-sdk/how-to-guides).*
|
|
66
|
+
|
|
67
|
+
### CLI modules
|
|
66
68
|
|
|
67
69
|
---
|
|
68
|
-
|
|
70
|
+
#### `$ npx witsdk network`
|
|
71
|
+
Retrieve dynamic information from the Witnet's P2P network:
|
|
72
|
+

|
|
69
73
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
WITNET_TOOLKIT_REPORTER_URL=
|
|
75
|
-
```
|
|
74
|
+
---
|
|
75
|
+
#### `$ npx witsdk wallet`
|
|
76
|
+
Self-custodian local wallet for spending and staking at will your own $WIT coins:
|
|
77
|
+

|
|
76
78
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
79
|
+
---
|
|
80
|
+
#### `$ npx witsdk inspect`
|
|
81
|
+
Inspect public data from the Witnet blockchain:
|
|
82
|
+

|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
#### `$ npx witsdk radon`
|
|
86
|
+
- Manage pre-built Witnet-compliant data requests and templates (aka. Radon assets):
|
|
87
|
+

|
|
88
|
+
|
|
89
|
+
- If willing to customize Radon assets specific to your Web3 project, please initialize the **witnet/** workspace folder, please run:
|
|
90
|
+
```bash
|
|
91
|
+
$ npx witsdk radon init
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
#### `$ npx witsdk nodes`
|
|
96
|
+
Interact with your own private Witnet nodes, if reachable:
|
|
97
|
+

|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
## ๐ Security
|
|
101
|
+
- Do not share your private keys.
|
|
102
|
+
- Use trusted RPC endpoints when using third-party providers.
|
|
103
|
+
- Disable "sensitive methods" on your Witnet node if willing to publish any of its of the RPC ports.
|
|
104
|
+
|
|
105
|
+
## Documentation
|
|
106
|
+
Learn more about Witnet, the $WIT coin and the Wit/Oracle framework for smart contracts at:
|
|
107
|
+
|
|
108
|
+
๐ https://docs.witnet.io
|
|
109
|
+
๐ https://witnet.io
|
|
110
|
+
๐ https://witnet.foundation/
|
|
111
|
+
|
|
112
|
+
## ๐งพ License
|
|
113
|
+
MIT ยฉ 2025 โ Maintained by the [Witnet Project](https://github.com/witnet).
|
|
100
114
|
|
|
101
|
-
$ npx witsdk radon
|
|
102
|
-
...
|
|
103
|
-
```
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@witnet/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "Typescript library and CLI tooling for Web3 buidlers willing to interact with the Witnet blockchain.",
|
|
5
5
|
"author": "Witnet Foundation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,34 +40,34 @@
|
|
|
40
40
|
"test": "cross-env-shell WITNET_SDK_RADON_ASSETS_PATH='../../../witnet/assets' node ./src/bin/toolkit.js"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"axios": "^1.
|
|
43
|
+
"axios": "^1.11.0",
|
|
44
44
|
"bech32": "~2.0.0",
|
|
45
45
|
"bip32": "^4.0.0",
|
|
46
|
-
"cbor": "^10.0.
|
|
47
|
-
"dotenv": "^16.
|
|
48
|
-
"ethers": "^5.
|
|
49
|
-
"keccak256": "^1.0.6",
|
|
46
|
+
"cbor": "^10.0.10",
|
|
47
|
+
"dotenv": "^16.6.1",
|
|
48
|
+
"ethers": "^5.8.0",
|
|
50
49
|
"graphql-query-compress": "1.2.4",
|
|
51
|
-
"inquirer": "^12.
|
|
50
|
+
"inquirer": "^12.9.1",
|
|
52
51
|
"json-bigint": "^1.0.0",
|
|
52
|
+
"keccak256": "^1.0.6",
|
|
53
53
|
"lodash.merge": "^4.6.2",
|
|
54
54
|
"long": "^5.3.2",
|
|
55
55
|
"moment": "^2.30.1",
|
|
56
56
|
"promise-poller": "~1.9.1",
|
|
57
|
-
"protobufjs": "^7.
|
|
57
|
+
"protobufjs": "^7.5.3",
|
|
58
58
|
"qrcode-terminal": "^0.12.0",
|
|
59
59
|
"secp256k1": "^5.0.1",
|
|
60
|
-
"tiny-secp256k1": "~2.2.
|
|
60
|
+
"tiny-secp256k1": "~2.2.4"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@types/node": "^22.
|
|
63
|
+
"@types/node": "^22.17.1",
|
|
64
64
|
"cross-env": "7.0.3",
|
|
65
65
|
"eslint": "8.56.0",
|
|
66
66
|
"eslint-config-standard": "^17.1.0",
|
|
67
|
-
"eslint-plugin-import": "^2.
|
|
68
|
-
"eslint-plugin-n": "^17.
|
|
67
|
+
"eslint-plugin-import": "^2.32.0",
|
|
68
|
+
"eslint-plugin-n": "^17.21.3",
|
|
69
69
|
"eslint-plugin-promise": "^7.2.1",
|
|
70
70
|
"protobufjs-cli": "^1.1.3",
|
|
71
|
-
"typescript": "^5.
|
|
71
|
+
"typescript": "^5.9.2"
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/lib/crypto/utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAG5D,OAAO,EAAE,MAAM,EAA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,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;CAyD1B,CAAC;AAEF,wBAAgB,WAAW,CAAC,KAAK,EAAE;IAC/B,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CACpC,GAAG,KAAK,CAAC,IAAI,CAAC,CA6Cd;AAED,wBAAgB,MAAM,CAAC,MAAM,EAAE,GAAG,2BAIjC;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,KAAK,CAMlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eth.d.ts","sourceRoot":"","sources":["../../../../../src/lib/radon/ccdr/eth.ts"],"names":[],"mappings":"AAOA,OAAO,EAEH,WAAW,EACX,KAAK,EACL,OAAO,EACP,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACX,MAAM,GAAG,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC,EAAE,CAAC,CAAC;AAC/C,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,CAAC;AAChE,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,CAAA;AAWzE;;GAEG;AACH,eAAO,MAAM,WAAW;;CAAwC,CAAC;AAEjE;;;;;GAKG;AACH,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"eth.d.ts","sourceRoot":"","sources":["../../../../../src/lib/radon/ccdr/eth.ts"],"names":[],"mappings":"AAOA,OAAO,EAEH,WAAW,EACX,KAAK,EACL,OAAO,EACP,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACX,MAAM,GAAG,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC,EAAE,CAAC,CAAC;AAC/C,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,WAA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;CAS9D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,UAAU,GAAG,QAAQ;;;CASjE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAAI,QAAQ,OAAO,GAAG,QAAQ;;;CAS/D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAM,KAAK,GAAG,QAAQ;;;CASxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wit.d.ts","sourceRoot":"","sources":["../../../../../src/lib/radon/ccdr/wit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAEtC,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG;IAC9B,QAAQ,CAAC,UAAU,EAAE,OAAO,MAAM,CAAA;CACrC,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"wit.d.ts","sourceRoot":"","sources":["../../../../../src/lib/radon/ccdr/wit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAEtC,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG;IAC9B,QAAQ,CAAC,UAAU,EAAE,OAAO,MAAM,CAAA;CACrC,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,SAAS,UAAU,GAAG,QAAQ;;;;;CAaxD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,OAAO,GAAG,QAAQ;;;CASxD,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,OAAO,GAAG,QAAQ,EAAE,MAAM,UAAU,GAAG,QAAQ,GAAG,MAAM;;;;;;CAS9F,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@witnet/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "Typescript library and CLI tooling for Web3 buidlers willing to interact with the Witnet blockchain.",
|
|
5
5
|
"author": "Witnet Foundation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,35 +32,35 @@
|
|
|
32
32
|
},
|
|
33
33
|
"types": "./dist",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"axios": "^1.
|
|
35
|
+
"axios": "^1.11.0",
|
|
36
36
|
"bech32": "~2.0.0",
|
|
37
37
|
"bip32": "^4.0.0",
|
|
38
|
-
"cbor": "^10.0.
|
|
39
|
-
"dotenv": "^16.
|
|
40
|
-
"ethers": "^5.
|
|
41
|
-
"keccak256": "^1.0.6",
|
|
38
|
+
"cbor": "^10.0.10",
|
|
39
|
+
"dotenv": "^16.6.1",
|
|
40
|
+
"ethers": "^5.8.0",
|
|
42
41
|
"graphql-query-compress": "1.2.4",
|
|
43
|
-
"inquirer": "^12.
|
|
42
|
+
"inquirer": "^12.9.1",
|
|
44
43
|
"json-bigint": "^1.0.0",
|
|
44
|
+
"keccak256": "^1.0.6",
|
|
45
45
|
"lodash.merge": "^4.6.2",
|
|
46
46
|
"long": "^5.3.2",
|
|
47
47
|
"moment": "^2.30.1",
|
|
48
48
|
"promise-poller": "~1.9.1",
|
|
49
|
-
"protobufjs": "^7.
|
|
49
|
+
"protobufjs": "^7.5.3",
|
|
50
50
|
"qrcode-terminal": "^0.12.0",
|
|
51
51
|
"secp256k1": "^5.0.1",
|
|
52
|
-
"tiny-secp256k1": "~2.2.
|
|
52
|
+
"tiny-secp256k1": "~2.2.4"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@types/node": "^22.
|
|
55
|
+
"@types/node": "^22.17.1",
|
|
56
56
|
"cross-env": "7.0.3",
|
|
57
57
|
"eslint": "8.56.0",
|
|
58
58
|
"eslint-config-standard": "^17.1.0",
|
|
59
|
-
"eslint-plugin-import": "^2.
|
|
60
|
-
"eslint-plugin-n": "^17.
|
|
59
|
+
"eslint-plugin-import": "^2.32.0",
|
|
60
|
+
"eslint-plugin-n": "^17.21.3",
|
|
61
61
|
"eslint-plugin-promise": "^7.2.1",
|
|
62
62
|
"protobufjs-cli": "^1.1.3",
|
|
63
|
-
"typescript": "^5.
|
|
63
|
+
"typescript": "^5.9.2"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "pbjs --target json witnet/witnet.proto -o witnet/witnet.proto.json && tsc -p tsconfig.json",
|