@dedot/api 1.0.0-next.a0f8d41e.25 → 1.0.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.
|
@@ -29,10 +29,10 @@ class StorageQueryExecutorV2 extends StorageQueryExecutor_js_1.StorageQueryExecu
|
|
|
29
29
|
]);
|
|
30
30
|
};
|
|
31
31
|
const pagedKeys = () => {
|
|
32
|
-
throw new utils_1.DedotError('The pagedKeys method is not yet available via the new JSON-RPC specification. Please use the
|
|
32
|
+
throw new utils_1.DedotError('The pagedKeys method is not yet available via the new JSON-RPC (v2) specification. Please use the legacy client instead.');
|
|
33
33
|
};
|
|
34
34
|
const pagedEntries = () => {
|
|
35
|
-
throw new utils_1.DedotError('The pagedEntries method is not yet available via the new JSON-RPC specification. Please use the
|
|
35
|
+
throw new utils_1.DedotError('The pagedEntries method is not yet available via the new JSON-RPC (v2) specification. Please use the legacy client instead.');
|
|
36
36
|
};
|
|
37
37
|
return { entries, pagedKeys, pagedEntries };
|
|
38
38
|
}
|
|
@@ -883,7 +883,7 @@ class ChainHead extends JsonRpcGroup_js_1.JsonRpcGroup {
|
|
|
883
883
|
let queryItems = items;
|
|
884
884
|
while (queryItems.length > 0) {
|
|
885
885
|
const [newBatch, newDiscardedItems] = await this.#getStorage(queryItems, childTrie ?? null, hash);
|
|
886
|
-
results.
|
|
886
|
+
results = results.concat(newBatch);
|
|
887
887
|
queryItems = newDiscardedItems;
|
|
888
888
|
}
|
|
889
889
|
}
|
package/client/DedotClient.d.ts
CHANGED
|
@@ -269,7 +269,7 @@ export declare class DedotClient<ChainApi extends GenericSubstrateApi = Substrat
|
|
|
269
269
|
* @param handler - The handler function to remove (optional, removes all handlers if not provided)
|
|
270
270
|
* @returns This client instance for method chaining
|
|
271
271
|
*/
|
|
272
|
-
off(event:
|
|
272
|
+
off<Event extends ApiEvent = ApiEvent>(event: Event, handler?: EventHandlerFn<Event>): this;
|
|
273
273
|
/**
|
|
274
274
|
* Get a client instance at a specific block hash.
|
|
275
275
|
*
|
|
@@ -26,10 +26,10 @@ export class StorageQueryExecutorV2 extends StorageQueryExecutor {
|
|
|
26
26
|
]);
|
|
27
27
|
};
|
|
28
28
|
const pagedKeys = () => {
|
|
29
|
-
throw new DedotError('The pagedKeys method is not yet available via the new JSON-RPC specification. Please use the
|
|
29
|
+
throw new DedotError('The pagedKeys method is not yet available via the new JSON-RPC (v2) specification. Please use the legacy client instead.');
|
|
30
30
|
};
|
|
31
31
|
const pagedEntries = () => {
|
|
32
|
-
throw new DedotError('The pagedEntries method is not yet available via the new JSON-RPC specification. Please use the
|
|
32
|
+
throw new DedotError('The pagedEntries method is not yet available via the new JSON-RPC (v2) specification. Please use the legacy client instead.');
|
|
33
33
|
};
|
|
34
34
|
return { entries, pagedKeys, pagedEntries };
|
|
35
35
|
}
|
|
@@ -880,7 +880,7 @@ export class ChainHead extends JsonRpcGroup {
|
|
|
880
880
|
let queryItems = items;
|
|
881
881
|
while (queryItems.length > 0) {
|
|
882
882
|
const [newBatch, newDiscardedItems] = await this.#getStorage(queryItems, childTrie ?? null, hash);
|
|
883
|
-
results.
|
|
883
|
+
results = results.concat(newBatch);
|
|
884
884
|
queryItems = newDiscardedItems;
|
|
885
885
|
}
|
|
886
886
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/api",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.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.0.0
|
|
17
|
-
"@dedot/providers": "1.0.0
|
|
18
|
-
"@dedot/runtime-specs": "1.0.0
|
|
19
|
-
"@dedot/shape": "1.0.0
|
|
20
|
-
"@dedot/storage": "1.0.0
|
|
21
|
-
"@dedot/types": "1.0.0
|
|
22
|
-
"@dedot/utils": "1.0.0
|
|
16
|
+
"@dedot/codecs": "1.0.0",
|
|
17
|
+
"@dedot/providers": "1.0.0",
|
|
18
|
+
"@dedot/runtime-specs": "1.0.0",
|
|
19
|
+
"@dedot/shape": "1.0.0",
|
|
20
|
+
"@dedot/storage": "1.0.0",
|
|
21
|
+
"@dedot/types": "1.0.0",
|
|
22
|
+
"@dedot/utils": "1.0.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": "7767062a2188b4ac90561c5ad3cc3f06ac608a24",
|
|
52
52
|
"module": "./index.js",
|
|
53
53
|
"types": "./index.d.ts"
|
|
54
54
|
}
|