dedot 0.10.0 → 0.11.0
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 +4 -3
- package/cjs/smoldot/index.js +17 -0
- package/cjs/smoldot/with-worker/index.js +18 -0
- package/cjs/smoldot/worker/index.js +18 -0
- package/package.json +31 -12
- package/smoldot/index.d.ts +1 -0
- package/smoldot/index.js +1 -0
- package/smoldot/with-worker/index.d.ts +1 -0
- package/smoldot/with-worker/index.js +2 -0
- package/smoldot/worker/index.d.ts +1 -0
- package/smoldot/worker/index.js +2 -0
package/README.md
CHANGED
|
@@ -9,14 +9,15 @@ Delightful JavaScript/TypeScript client for [Polkadot](https://polkadot.com/) &
|
|
|
9
9
|
![Unit test][ico-unit-test]
|
|
10
10
|
![E2E test][ico-e2e-test]
|
|
11
11
|
![License][ico-license]
|
|
12
|
+
![weekly downloads][ico-downloads]
|
|
12
13
|
[![Chat on Telegram][ico-telegram]][link-telegram]
|
|
13
14
|
|
|
14
15
|
[ico-telegram]: https://img.shields.io/badge/Dedot-2CA5E0.svg?style=flat-square&logo=telegram&label=Telegram
|
|
15
16
|
[ico-unit-test]: https://img.shields.io/github/actions/workflow/status/dedotdev/dedot/run-tests.yml?label=unit%20tests&style=flat-square
|
|
16
|
-
[ico-e2e-test]: https://img.shields.io/github/actions/workflow/status/dedotdev/dedot/zombienet-tests.yml?label=e2e%20tests&style=flat-square
|
|
17
|
+
[ico-e2e-test]: https://img.shields.io/github/actions/workflow/status/dedotdev/dedot/zombienet-tests-batch-01.yml?label=e2e%20tests&style=flat-square
|
|
17
18
|
[ico-version]: https://img.shields.io/github/package-json/v/dedotdev/dedot?filename=packages%2Fapi%2Fpackage.json&style=flat-square
|
|
18
19
|
[ico-license]: https://img.shields.io/github/license/dedotdev/dedot?style=flat-square
|
|
19
|
-
|
|
20
|
+
[ico-downloads]: https://img.shields.io/npm/dw/dedot?style=flat-square
|
|
20
21
|
[link-telegram]: https://t.me/JoinDedot
|
|
21
22
|
|
|
22
23
|
---
|
|
@@ -87,7 +88,7 @@ console.log('Polkadot ss58Prefix:', ss58Prefix);
|
|
|
87
88
|
const pendingRewards = await client.call.nominationPoolsApi.pendingRewards(<address>)
|
|
88
89
|
console.log('Pending rewards:', pendingRewards);
|
|
89
90
|
|
|
90
|
-
//
|
|
91
|
+
// Disconnect
|
|
91
92
|
// await client.disconnect();
|
|
92
93
|
```
|
|
93
94
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("@dedot/smoldot"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// @ts-nocheck
|
|
18
|
+
__exportStar(require("@dedot/smoldot/with-worker"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// @ts-nocheck
|
|
18
|
+
__exportStar(require("@dedot/smoldot/worker"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dedot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "A delightful JavaScript/TypeScript client for Polkadot & Substrate",
|
|
5
5
|
"author": "Thang X. Vu <thang@dedot.dev>",
|
|
6
6
|
"homepage": "https://dedot.dev",
|
|
@@ -21,16 +21,17 @@
|
|
|
21
21
|
"clean": "rm -rf ./dist && rm -rf ./tsconfig.tsbuildinfo ./tsconfig.build.tsbuildinfo"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@dedot/api": "0.
|
|
25
|
-
"@dedot/cli": "0.
|
|
26
|
-
"@dedot/codecs": "0.
|
|
27
|
-
"@dedot/contracts": "0.
|
|
28
|
-
"@dedot/merkleized-metadata": "0.
|
|
29
|
-
"@dedot/providers": "0.
|
|
30
|
-
"@dedot/runtime-specs": "0.
|
|
31
|
-
"@dedot/shape": "0.
|
|
32
|
-
"@dedot/
|
|
33
|
-
"@dedot/
|
|
24
|
+
"@dedot/api": "0.11.0",
|
|
25
|
+
"@dedot/cli": "0.11.0",
|
|
26
|
+
"@dedot/codecs": "0.11.0",
|
|
27
|
+
"@dedot/contracts": "0.11.0",
|
|
28
|
+
"@dedot/merkleized-metadata": "0.11.0",
|
|
29
|
+
"@dedot/providers": "0.11.0",
|
|
30
|
+
"@dedot/runtime-specs": "0.11.0",
|
|
31
|
+
"@dedot/shape": "0.11.0",
|
|
32
|
+
"@dedot/smoldot": "0.11.0",
|
|
33
|
+
"@dedot/types": "0.11.0",
|
|
34
|
+
"@dedot/utils": "0.11.0"
|
|
34
35
|
},
|
|
35
36
|
"exports": {
|
|
36
37
|
".": {
|
|
@@ -92,6 +93,24 @@
|
|
|
92
93
|
"import": "./merkleized-metadata/index.js",
|
|
93
94
|
"require": "./cjs/merkleized-metadata/index.js",
|
|
94
95
|
"default": "./merkleized-metadata/index.js"
|
|
96
|
+
},
|
|
97
|
+
"./smoldot": {
|
|
98
|
+
"types": "./smoldot/index.d.ts",
|
|
99
|
+
"import": "./smoldot/index.js",
|
|
100
|
+
"require": "./cjs/smoldot/index.js",
|
|
101
|
+
"default": "./smoldot/index.js"
|
|
102
|
+
},
|
|
103
|
+
"./smoldot/worker": {
|
|
104
|
+
"types": "./smoldot/worker/index.d.ts",
|
|
105
|
+
"import": "./smoldot/worker/index.js",
|
|
106
|
+
"require": "./cjs/smoldot/worker/index.js",
|
|
107
|
+
"default": "./smoldot/worker/index.js"
|
|
108
|
+
},
|
|
109
|
+
"./smoldot/with-worker": {
|
|
110
|
+
"types": "./smoldot/with-worker/index.d.ts",
|
|
111
|
+
"import": "./smoldot/with-worker/index.js",
|
|
112
|
+
"require": "./cjs/smoldot/with-worker/index.js",
|
|
113
|
+
"default": "./smoldot/with-worker/index.js"
|
|
95
114
|
}
|
|
96
115
|
},
|
|
97
116
|
"publishConfig": {
|
|
@@ -102,7 +121,7 @@
|
|
|
102
121
|
"node": ">=18"
|
|
103
122
|
},
|
|
104
123
|
"license": "Apache-2.0",
|
|
105
|
-
"gitHead": "
|
|
124
|
+
"gitHead": "5aa20d8c24305df30528f008b55dc0f6f89b9e95",
|
|
106
125
|
"module": "./index.js",
|
|
107
126
|
"types": "./index.d.ts"
|
|
108
127
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@dedot/smoldot';
|
package/smoldot/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@dedot/smoldot';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@dedot/smoldot/with-worker';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@dedot/smoldot/worker';
|