@dedot/api 0.16.1-next.fa430c5d.7 → 0.17.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/client/BaseSubstrateClient.d.ts +2 -2
- package/executor/Executor.d.ts +1 -1
- package/package.json +9 -9
- package/types.d.ts +1 -1
|
@@ -15,7 +15,7 @@ export declare function ensurePresence<T>(value: T): NonNullable<T>;
|
|
|
15
15
|
export declare abstract class BaseSubstrateClient<Rv extends RpcVersion, ChainApi extends VersionedGenericSubstrateApi = SubstrateApi, Events extends string = ApiEvent> extends JsonRpcClient<ChainApi, Events> implements ISubstrateClient<ChainApi[Rv], Events> {
|
|
16
16
|
rpcVersion: RpcVersion;
|
|
17
17
|
protected _options: ApiOptions;
|
|
18
|
-
protected _registry?: PortableRegistry<ChainApi[Rv]>;
|
|
18
|
+
protected _registry?: PortableRegistry<ChainApi[Rv]['types']>;
|
|
19
19
|
protected _metadata?: Metadata;
|
|
20
20
|
protected _genesisHash?: Hash;
|
|
21
21
|
protected _runtimeVersion?: SubstrateRuntimeVersion;
|
|
@@ -63,7 +63,7 @@ export declare abstract class BaseSubstrateClient<Rv extends RpcVersion, ChainAp
|
|
|
63
63
|
disconnect(): Promise<void>;
|
|
64
64
|
get options(): ApiOptions;
|
|
65
65
|
get metadata(): Metadata;
|
|
66
|
-
get registry(): PortableRegistry<ChainApi[Rv]>;
|
|
66
|
+
get registry(): PortableRegistry<ChainApi[Rv]['types']>;
|
|
67
67
|
get genesisHash(): Hash;
|
|
68
68
|
get runtimeVersion(): SubstrateRuntimeVersion;
|
|
69
69
|
getRuntimeVersion(): Promise<SubstrateRuntimeVersion>;
|
package/executor/Executor.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare abstract class Executor<ChainApi extends GenericSubstrateApi = Ge
|
|
|
16
16
|
readonly client: ISubstrateClientAt<ChainApi> | ISubstrateClient<ChainApi, any>;
|
|
17
17
|
constructor(client: ISubstrateClientAt<ChainApi> | ISubstrateClient<ChainApi, any>, atBlockHash?: BlockHash);
|
|
18
18
|
get atBlockHash(): any;
|
|
19
|
-
get registry(): import("@dedot/codecs").PortableRegistry<ChainApi>;
|
|
19
|
+
get registry(): import("@dedot/codecs").PortableRegistry<ChainApi["types"]>;
|
|
20
20
|
get metadata(): {
|
|
21
21
|
types: {
|
|
22
22
|
id: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.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": "0.
|
|
17
|
-
"@dedot/providers": "0.
|
|
18
|
-
"@dedot/runtime-specs": "0.
|
|
19
|
-
"@dedot/shape": "0.
|
|
20
|
-
"@dedot/storage": "0.
|
|
21
|
-
"@dedot/types": "0.
|
|
22
|
-
"@dedot/utils": "0.
|
|
16
|
+
"@dedot/codecs": "0.17.0",
|
|
17
|
+
"@dedot/providers": "0.17.0",
|
|
18
|
+
"@dedot/runtime-specs": "0.17.0",
|
|
19
|
+
"@dedot/shape": "0.17.0",
|
|
20
|
+
"@dedot/storage": "0.17.0",
|
|
21
|
+
"@dedot/types": "0.17.0",
|
|
22
|
+
"@dedot/utils": "0.17.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": "77e751248ad7bca0cb374e17e65afef791fb3e4d",
|
|
52
52
|
"module": "./index.js",
|
|
53
53
|
"types": "./index.d.ts"
|
|
54
54
|
}
|
package/types.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export interface IGenericSubstrateClient<ChainApi extends GenericSubstrateApi =
|
|
|
91
91
|
genesisHash: Hash;
|
|
92
92
|
runtimeVersion: SubstrateRuntimeVersion;
|
|
93
93
|
metadata: Metadata;
|
|
94
|
-
registry: PortableRegistry<ChainApi>;
|
|
94
|
+
registry: PortableRegistry<ChainApi['types']>;
|
|
95
95
|
rpc: ChainApi['rpc'];
|
|
96
96
|
consts: ChainApi['consts'];
|
|
97
97
|
query: ChainApi['query'];
|