@dedot/api 1.3.0 → 1.4.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.
|
@@ -22,7 +22,7 @@ class StorageQueryExecutorV2 extends StorageQueryExecutor_js_1.StorageQueryExecu
|
|
|
22
22
|
const entries = async (...args) => {
|
|
23
23
|
const withArgs = !!args && args.length > 0;
|
|
24
24
|
const key = withArgs ? entry.encodeKey(args, true) : entry.prefixKey;
|
|
25
|
-
const results = await this.chainHead.storage([{ type: 'descendantsValues', key }]);
|
|
25
|
+
const results = await this.chainHead.storage([{ type: 'descendantsValues', key }], undefined, this.atBlockHash);
|
|
26
26
|
return results.map(({ key, value }) => [
|
|
27
27
|
entry.decodeKey(key),
|
|
28
28
|
entry.decodeValue(value),
|
|
@@ -19,7 +19,7 @@ export class StorageQueryExecutorV2 extends StorageQueryExecutor {
|
|
|
19
19
|
const entries = async (...args) => {
|
|
20
20
|
const withArgs = !!args && args.length > 0;
|
|
21
21
|
const key = withArgs ? entry.encodeKey(args, true) : entry.prefixKey;
|
|
22
|
-
const results = await this.chainHead.storage([{ type: 'descendantsValues', key }]);
|
|
22
|
+
const results = await this.chainHead.storage([{ type: 'descendantsValues', key }], undefined, this.atBlockHash);
|
|
23
23
|
return results.map(({ key, value }) => [
|
|
24
24
|
entry.decodeKey(key),
|
|
25
25
|
entry.decodeValue(value),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.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",
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"sideEffects": false,
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@dedot/codecs": "^1.
|
|
17
|
-
"@dedot/providers": "^1.
|
|
18
|
-
"@dedot/runtime-specs": "^1.
|
|
19
|
-
"@dedot/shape": "^1.
|
|
20
|
-
"@dedot/storage": "^1.
|
|
21
|
-
"@dedot/types": "^1.
|
|
22
|
-
"@dedot/utils": "^1.
|
|
16
|
+
"@dedot/codecs": "^1.4.0",
|
|
17
|
+
"@dedot/providers": "^1.4.0",
|
|
18
|
+
"@dedot/runtime-specs": "^1.4.0",
|
|
19
|
+
"@dedot/shape": "^1.4.0",
|
|
20
|
+
"@dedot/storage": "^1.4.0",
|
|
21
|
+
"@dedot/types": "^1.4.0",
|
|
22
|
+
"@dedot/utils": "^1.4.0"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "tsc --project tsconfig.build.json && tsc --project tsconfig.build.cjs.json",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"node": ">=18"
|
|
49
49
|
},
|
|
50
50
|
"license": "Apache-2.0",
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "ea82d26d46eec338a3614e611982085a2fb2974c",
|
|
52
52
|
"module": "./index.js",
|
|
53
53
|
"types": "./index.d.ts"
|
|
54
54
|
}
|