@dedot/chaintypes 0.131.0 → 0.132.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/aleph/index.d.ts +2 -0
- package/aleph/view-functions.d.ts +5 -0
- package/astar/index.d.ts +2 -0
- package/astar/view-functions.d.ts +5 -0
- package/basilisk/index.d.ts +2 -0
- package/basilisk/view-functions.d.ts +5 -0
- package/hydration/index.d.ts +2 -0
- package/hydration/view-functions.d.ts +5 -0
- package/kusama/index.d.ts +2 -0
- package/kusama/view-functions.d.ts +5 -0
- package/kusama-asset-hub/index.d.ts +2 -0
- package/kusama-asset-hub/view-functions.d.ts +5 -0
- package/kusama-people/index.d.ts +2 -0
- package/kusama-people/view-functions.d.ts +5 -0
- package/moonbeam/index.d.ts +2 -0
- package/moonbeam/view-functions.d.ts +5 -0
- package/package.json +3 -3
- package/paseo/index.d.ts +2 -0
- package/paseo/view-functions.d.ts +5 -0
- package/paseo-asset-hub/index.d.ts +2 -0
- package/paseo-asset-hub/view-functions.d.ts +5 -0
- package/paseo-hydration/index.d.ts +2 -0
- package/paseo-hydration/view-functions.d.ts +5 -0
- package/paseo-people/index.d.ts +2 -0
- package/paseo-people/view-functions.d.ts +5 -0
- package/polkadot/index.d.ts +2 -0
- package/polkadot/view-functions.d.ts +5 -0
- package/polkadot-asset-hub/index.d.ts +2 -0
- package/polkadot-asset-hub/view-functions.d.ts +5 -0
- package/polkadot-people/index.d.ts +2 -0
- package/polkadot-people/view-functions.d.ts +5 -0
- package/substrate/index.d.ts +2 -0
- package/substrate/runtime.d.ts +11 -11
- package/substrate/types.d.ts +8 -1
- package/substrate/view-functions.d.ts +5 -0
- package/vara/index.d.ts +2 -0
- package/vara/view-functions.d.ts +5 -0
- package/westend/errors.d.ts +2 -0
- package/westend/index.d.ts +2 -0
- package/westend/query.d.ts +2 -0
- package/westend/tx.d.ts +12 -0
- package/westend/types.d.ts +11 -11
- package/westend/view-functions.d.ts +84 -0
- package/westend-asset-hub/errors.d.ts +2 -0
- package/westend-asset-hub/index.d.ts +2 -0
- package/westend-asset-hub/query.d.ts +2 -0
- package/westend-asset-hub/tx.d.ts +8 -0
- package/westend-asset-hub/types.d.ts +42 -44
- package/westend-asset-hub/view-functions.d.ts +82 -0
- package/westend-people/index.d.ts +2 -0
- package/westend-people/view-functions.d.ts +5 -0
package/aleph/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedAlephApi<Rv extends RpcVersion> extends GenericSubstra
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
package/astar/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedAstarApi<Rv extends RpcVersion> extends GenericSubstra
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
package/basilisk/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedBasiliskApi<Rv extends RpcVersion> extends GenericSubs
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
package/hydration/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedHydrationApi<Rv extends RpcVersion> extends GenericSub
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
package/kusama/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedKusamaApi<Rv extends RpcVersion> extends GenericSubstr
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedKusamaAssetHubApi<Rv extends RpcVersion> extends Gener
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
package/kusama-people/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedKusamaPeopleApi<Rv extends RpcVersion> extends Generic
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
package/moonbeam/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedMoonbeamApi<Rv extends RpcVersion> extends GenericSubs
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.132.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@dedot.dev>",
|
|
6
6
|
"homepage": "https://dedot.dev",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"copy": "cp -R ./src/* ./dist && rm ./dist/index.ts"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"dedot": ">=0.
|
|
21
|
+
"dedot": ">=0.15.0"
|
|
22
22
|
},
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public",
|
|
25
25
|
"directory": "dist"
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "abe8470f261f0fda0886f86f961a033a2470447b",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
package/paseo/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedPaseoApi<Rv extends RpcVersion> extends GenericSubstra
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedPaseoAssetHubApi<Rv extends RpcVersion> extends Generi
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedPaseoHydrationApi<Rv extends RpcVersion> extends Gener
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
package/paseo-people/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedPaseoPeopleApi<Rv extends RpcVersion> extends GenericS
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
package/polkadot/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedPolkadotApi<Rv extends RpcVersion> extends GenericSubs
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedPolkadotAssetHubApi<Rv extends RpcVersion> extends Gen
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedPolkadotPeopleApi<Rv extends RpcVersion> extends Gener
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
package/substrate/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedSubstrateApi<Rv extends RpcVersion> extends GenericSub
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
package/substrate/runtime.d.ts
CHANGED
|
@@ -57,8 +57,8 @@ import type {
|
|
|
57
57
|
PalletReviveEvmApiRpcTypesGenGenericTransaction,
|
|
58
58
|
PalletRevivePrimitivesCodeUploadReturnValue,
|
|
59
59
|
PalletRevivePrimitivesContractAccessError,
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
PalletReviveEvmApiDebugRpcTypesTrace,
|
|
61
|
+
PalletReviveEvmApiDebugRpcTypesTracerType,
|
|
62
62
|
PalletTransactionPaymentRuntimeDispatchInfo,
|
|
63
63
|
PalletTransactionPaymentFeeDetails,
|
|
64
64
|
FrameSupportTokensFungibleUnionOfNativeOrWithId,
|
|
@@ -901,14 +901,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
901
901
|
*
|
|
902
902
|
* @callname: ReviveApi_trace_block
|
|
903
903
|
* @param {SpRuntimeBlock} block
|
|
904
|
-
* @param {
|
|
904
|
+
* @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
|
|
905
905
|
**/
|
|
906
906
|
traceBlock: GenericRuntimeApiMethod<
|
|
907
907
|
Rv,
|
|
908
908
|
(
|
|
909
909
|
block: SpRuntimeBlock,
|
|
910
|
-
config:
|
|
911
|
-
) => Promise<Array<[number,
|
|
910
|
+
config: PalletReviveEvmApiDebugRpcTypesTracerType,
|
|
911
|
+
) => Promise<Array<[number, PalletReviveEvmApiDebugRpcTypesTrace]>>
|
|
912
912
|
>;
|
|
913
913
|
|
|
914
914
|
/**
|
|
@@ -922,15 +922,15 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
922
922
|
* @callname: ReviveApi_trace_tx
|
|
923
923
|
* @param {SpRuntimeBlock} block
|
|
924
924
|
* @param {number} tx_index
|
|
925
|
-
* @param {
|
|
925
|
+
* @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
|
|
926
926
|
**/
|
|
927
927
|
traceTx: GenericRuntimeApiMethod<
|
|
928
928
|
Rv,
|
|
929
929
|
(
|
|
930
930
|
block: SpRuntimeBlock,
|
|
931
931
|
txIndex: number,
|
|
932
|
-
config:
|
|
933
|
-
) => Promise<
|
|
932
|
+
config: PalletReviveEvmApiDebugRpcTypesTracerType,
|
|
933
|
+
) => Promise<PalletReviveEvmApiDebugRpcTypesTrace | undefined>
|
|
934
934
|
>;
|
|
935
935
|
|
|
936
936
|
/**
|
|
@@ -940,14 +940,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
940
940
|
*
|
|
941
941
|
* @callname: ReviveApi_trace_call
|
|
942
942
|
* @param {PalletReviveEvmApiRpcTypesGenGenericTransaction} tx
|
|
943
|
-
* @param {
|
|
943
|
+
* @param {PalletReviveEvmApiDebugRpcTypesTracerType} config
|
|
944
944
|
**/
|
|
945
945
|
traceCall: GenericRuntimeApiMethod<
|
|
946
946
|
Rv,
|
|
947
947
|
(
|
|
948
948
|
tx: PalletReviveEvmApiRpcTypesGenGenericTransaction,
|
|
949
|
-
config:
|
|
950
|
-
) => Promise<Result<
|
|
949
|
+
config: PalletReviveEvmApiDebugRpcTypesTracerType,
|
|
950
|
+
) => Promise<Result<PalletReviveEvmApiDebugRpcTypesTrace, PalletRevivePrimitivesEthTransactError>>
|
|
951
951
|
>;
|
|
952
952
|
|
|
953
953
|
/**
|
package/substrate/types.d.ts
CHANGED
|
@@ -25486,7 +25486,14 @@ export type PalletRevivePrimitivesCodeUploadReturnValue = { codeHash: H256; depo
|
|
|
25486
25486
|
|
|
25487
25487
|
export type PalletRevivePrimitivesContractAccessError = 'DoesntExist' | 'KeyDecodingFailed';
|
|
25488
25488
|
|
|
25489
|
-
export type
|
|
25489
|
+
export type PalletReviveEvmApiDebugRpcTypesTracerType = {
|
|
25490
|
+
type: 'CallTracer';
|
|
25491
|
+
value?: PalletReviveEvmApiDebugRpcTypesCallTracerConfig | undefined;
|
|
25492
|
+
};
|
|
25493
|
+
|
|
25494
|
+
export type PalletReviveEvmApiDebugRpcTypesCallTracerConfig = { withLogs: boolean; onlyTopCall: boolean };
|
|
25495
|
+
|
|
25496
|
+
export type PalletReviveEvmApiDebugRpcTypesTrace = { type: 'Call'; value: PalletReviveEvmApiDebugRpcTypesCallTrace };
|
|
25490
25497
|
|
|
25491
25498
|
export type PalletReviveEvmApiDebugRpcTypesCallTrace = {
|
|
25492
25499
|
from: H160;
|
package/vara/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedVaraApi<Rv extends RpcVersion> extends GenericSubstrat
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
package/westend/errors.d.ts
CHANGED
|
@@ -2689,6 +2689,8 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2689
2689
|
|
|
2690
2690
|
/**
|
|
2691
2691
|
* Too many locations authorized to alias origin.
|
|
2692
|
+
*
|
|
2693
|
+
* @deprecated Use `LocalExecutionIncompleteWithError` instead (since 20.0.0)
|
|
2692
2694
|
**/
|
|
2693
2695
|
TooManyAuthorizedAliases: GenericPalletError<Rv>;
|
|
2694
2696
|
|
package/westend/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedWestendApi<Rv extends RpcVersion> extends GenericSubst
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
package/westend/query.d.ts
CHANGED
|
@@ -1609,6 +1609,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1609
1609
|
*
|
|
1610
1610
|
* @param {H256} arg
|
|
1611
1611
|
* @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
|
|
1612
|
+
*
|
|
1613
|
+
* @deprecated RequestStatusFor
|
|
1612
1614
|
**/
|
|
1613
1615
|
statusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
|
|
1614
1616
|
|
package/westend/tx.d.ts
CHANGED
|
@@ -6746,6 +6746,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
6746
6746
|
* Emits [`Event::Paid`] if successful.
|
|
6747
6747
|
*
|
|
6748
6748
|
* @param {number} index
|
|
6749
|
+
*
|
|
6750
|
+
* @deprecated The `spend_local` call will be removed by May 2025. Migrate to the new flow and use the `spend` call.
|
|
6749
6751
|
**/
|
|
6750
6752
|
payout: GenericTxCall<
|
|
6751
6753
|
Rv,
|
|
@@ -6783,6 +6785,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
6783
6785
|
* Emits [`Event::SpendProcessed`] if the spend payout has succeed.
|
|
6784
6786
|
*
|
|
6785
6787
|
* @param {number} index
|
|
6788
|
+
*
|
|
6789
|
+
* @deprecated The `remove_approval` call will be removed by May 2025. It associated with the deprecated `spend_local` call.
|
|
6786
6790
|
**/
|
|
6787
6791
|
checkStatus: GenericTxCall<
|
|
6788
6792
|
Rv,
|
|
@@ -8555,6 +8559,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8555
8559
|
*
|
|
8556
8560
|
* @param {bigint} maxAmount
|
|
8557
8561
|
* @param {PolkadotParachainPrimitivesPrimitivesId} paraId
|
|
8562
|
+
*
|
|
8563
|
+
* @deprecated This will be removed in favor of using `place_order_with_credits`
|
|
8558
8564
|
**/
|
|
8559
8565
|
placeOrderAllowDeath: GenericTxCall<
|
|
8560
8566
|
Rv,
|
|
@@ -8592,6 +8598,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8592
8598
|
*
|
|
8593
8599
|
* @param {bigint} maxAmount
|
|
8594
8600
|
* @param {PolkadotParachainPrimitivesPrimitivesId} paraId
|
|
8601
|
+
*
|
|
8602
|
+
* @deprecated This will be removed in favor of using `place_order_with_credits`
|
|
8595
8603
|
**/
|
|
8596
8604
|
placeOrderKeepAlive: GenericTxCall<
|
|
8597
8605
|
Rv,
|
|
@@ -10030,6 +10038,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10030
10038
|
* @param {XcmVersionedLocation} beneficiary
|
|
10031
10039
|
* @param {XcmVersionedAssets} assets
|
|
10032
10040
|
* @param {number} feeAssetItem
|
|
10041
|
+
*
|
|
10042
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_teleport_assets` or `transfer_assets`
|
|
10033
10043
|
**/
|
|
10034
10044
|
teleportAssets: GenericTxCall<
|
|
10035
10045
|
Rv,
|
|
@@ -10091,6 +10101,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10091
10101
|
* @param {XcmVersionedLocation} beneficiary
|
|
10092
10102
|
* @param {XcmVersionedAssets} assets
|
|
10093
10103
|
* @param {number} feeAssetItem
|
|
10104
|
+
*
|
|
10105
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_reserve_transfer_assets` or `transfer_assets`
|
|
10094
10106
|
**/
|
|
10095
10107
|
reserveTransferAssets: GenericTxCall<
|
|
10096
10108
|
Rv,
|
package/westend/types.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ import type {
|
|
|
22
22
|
BitSequence,
|
|
23
23
|
FixedU128,
|
|
24
24
|
Era,
|
|
25
|
-
FixedI64,
|
|
26
25
|
UncheckedExtrinsic,
|
|
26
|
+
FixedI64,
|
|
27
27
|
} from 'dedot/codecs';
|
|
28
28
|
|
|
29
29
|
export type FrameSystemAccountInfo = {
|
|
@@ -13129,6 +13129,16 @@ export type FrameSystemError =
|
|
|
13129
13129
|
**/
|
|
13130
13130
|
| 'Unauthorized';
|
|
13131
13131
|
|
|
13132
|
+
export type SpRuntimeBlock = { header: Header; extrinsics: Array<UncheckedExtrinsic> };
|
|
13133
|
+
|
|
13134
|
+
export type FrameSystemExtensionsAuthorizeCall = {};
|
|
13135
|
+
|
|
13136
|
+
export type FrameSystemExtensionsCheckWeight = {};
|
|
13137
|
+
|
|
13138
|
+
export type PalletTransactionPaymentChargeTransactionPayment = bigint;
|
|
13139
|
+
|
|
13140
|
+
export type FrameSystemExtensionsWeightReclaim = {};
|
|
13141
|
+
|
|
13132
13142
|
export type SpConsensusBabeDigestsPreDigest =
|
|
13133
13143
|
| { type: 'Primary'; value: SpConsensusBabeDigestsPrimaryPreDigest }
|
|
13134
13144
|
| { type: 'SecondaryPlain'; value: SpConsensusBabeDigestsSecondaryPlainPreDigest }
|
|
@@ -16052,16 +16062,6 @@ export type PalletBeefyError =
|
|
|
16052
16062
|
|
|
16053
16063
|
export type SpConsensusBeefyMmrBeefyAuthoritySet = { id: bigint; len: number; keysetCommitment: H256 };
|
|
16054
16064
|
|
|
16055
|
-
export type FrameSystemExtensionsAuthorizeCall = {};
|
|
16056
|
-
|
|
16057
|
-
export type FrameSystemExtensionsCheckWeight = {};
|
|
16058
|
-
|
|
16059
|
-
export type PalletTransactionPaymentChargeTransactionPayment = bigint;
|
|
16060
|
-
|
|
16061
|
-
export type FrameSystemExtensionsWeightReclaim = {};
|
|
16062
|
-
|
|
16063
|
-
export type SpRuntimeBlock = { header: Header; extrinsics: Array<UncheckedExtrinsic> };
|
|
16064
|
-
|
|
16065
16065
|
export type SpRuntimeExtrinsicInclusionMode = 'AllExtrinsics' | 'OnlyInherents';
|
|
16066
16066
|
|
|
16067
16067
|
export type SpCoreOpaqueMetadata = Bytes;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// Generated by dedot cli
|
|
2
|
+
|
|
3
|
+
import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type { AccountId32Like } from 'dedot/codecs';
|
|
5
|
+
import type {
|
|
6
|
+
WestendRuntimeRuntimeCallLike,
|
|
7
|
+
WestendRuntimeProxyType,
|
|
8
|
+
PolkadotParachainPrimitivesPrimitivesId,
|
|
9
|
+
} from './types.js';
|
|
10
|
+
|
|
11
|
+
export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {
|
|
12
|
+
/**
|
|
13
|
+
* Pallet `Proxy`'s view functions
|
|
14
|
+
**/
|
|
15
|
+
proxy: {
|
|
16
|
+
/**
|
|
17
|
+
* Check if a `RuntimeCall` is allowed for a given `ProxyType`.
|
|
18
|
+
*
|
|
19
|
+
* @param {WestendRuntimeRuntimeCallLike} call
|
|
20
|
+
* @param {WestendRuntimeProxyType} proxyType
|
|
21
|
+
**/
|
|
22
|
+
checkPermissions: GenericViewFunction<
|
|
23
|
+
Rv,
|
|
24
|
+
(call: WestendRuntimeRuntimeCallLike, proxyType: WestendRuntimeProxyType) => Promise<boolean>
|
|
25
|
+
>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Check if one `ProxyType` is a subset of another `ProxyType`.
|
|
29
|
+
*
|
|
30
|
+
* @param {WestendRuntimeProxyType} toCheck
|
|
31
|
+
* @param {WestendRuntimeProxyType} against
|
|
32
|
+
**/
|
|
33
|
+
isSuperset: GenericViewFunction<
|
|
34
|
+
Rv,
|
|
35
|
+
(toCheck: WestendRuntimeProxyType, against: WestendRuntimeProxyType) => Promise<boolean>
|
|
36
|
+
>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Generic pallet view function
|
|
40
|
+
**/
|
|
41
|
+
[name: string]: GenericViewFunction<Rv>;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Pallet `VoterList`'s view functions
|
|
45
|
+
**/
|
|
46
|
+
voterList: {
|
|
47
|
+
/**
|
|
48
|
+
* Get the current `score` of a given account.
|
|
49
|
+
*
|
|
50
|
+
* Returns `(current, real_score)`, the former being the current score that this pallet is
|
|
51
|
+
* aware of, which may or may not be up to date, and the latter being the real score, as
|
|
52
|
+
* provided by
|
|
53
|
+
*
|
|
54
|
+
* If the two differ, it means this node is eligible for [`Call::rebag`].
|
|
55
|
+
*
|
|
56
|
+
* @param {AccountId32Like} who
|
|
57
|
+
**/
|
|
58
|
+
scores: GenericViewFunction<Rv, (who: AccountId32Like) => Promise<[bigint | undefined, bigint | undefined]>>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Generic pallet view function
|
|
62
|
+
**/
|
|
63
|
+
[name: string]: GenericViewFunction<Rv>;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Pallet `Paras`'s view functions
|
|
67
|
+
**/
|
|
68
|
+
paras: {
|
|
69
|
+
/**
|
|
70
|
+
* Returns the cost for removing an upgrade cooldown for the given `para`.
|
|
71
|
+
*
|
|
72
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} para
|
|
73
|
+
**/
|
|
74
|
+
removeUpgradeCooldownCost: GenericViewFunction<
|
|
75
|
+
Rv,
|
|
76
|
+
(para: PolkadotParachainPrimitivesPrimitivesId) => Promise<bigint>
|
|
77
|
+
>;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Generic pallet view function
|
|
81
|
+
**/
|
|
82
|
+
[name: string]: GenericViewFunction<Rv>;
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -607,6 +607,8 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
607
607
|
|
|
608
608
|
/**
|
|
609
609
|
* Too many locations authorized to alias origin.
|
|
610
|
+
*
|
|
611
|
+
* @deprecated Use `LocalExecutionIncompleteWithError` instead (since 20.0.0)
|
|
610
612
|
**/
|
|
611
613
|
TooManyAuthorizedAliases: GenericPalletError<Rv>;
|
|
612
614
|
|
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedWestendAssetHubApi<Rv extends RpcVersion> extends Gene
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
|
@@ -658,6 +658,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
658
658
|
*
|
|
659
659
|
* @param {H256} arg
|
|
660
660
|
* @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
|
|
661
|
+
*
|
|
662
|
+
* @deprecated RequestStatusFor
|
|
661
663
|
**/
|
|
662
664
|
statusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
|
|
663
665
|
|
|
@@ -2041,6 +2041,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2041
2041
|
* @param {XcmVersionedLocation} beneficiary
|
|
2042
2042
|
* @param {XcmVersionedAssets} assets
|
|
2043
2043
|
* @param {number} feeAssetItem
|
|
2044
|
+
*
|
|
2045
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_teleport_assets` or `transfer_assets`
|
|
2044
2046
|
**/
|
|
2045
2047
|
teleportAssets: GenericTxCall<
|
|
2046
2048
|
Rv,
|
|
@@ -2102,6 +2104,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2102
2104
|
* @param {XcmVersionedLocation} beneficiary
|
|
2103
2105
|
* @param {XcmVersionedAssets} assets
|
|
2104
2106
|
* @param {number} feeAssetItem
|
|
2107
|
+
*
|
|
2108
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_reserve_transfer_assets` or `transfer_assets`
|
|
2105
2109
|
**/
|
|
2106
2110
|
reserveTransferAssets: GenericTxCall<
|
|
2107
2111
|
Rv,
|
|
@@ -14287,6 +14291,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
14287
14291
|
* Emits [`Event::Paid`] if successful.
|
|
14288
14292
|
*
|
|
14289
14293
|
* @param {number} index
|
|
14294
|
+
*
|
|
14295
|
+
* @deprecated The `spend_local` call will be removed by May 2025. Migrate to the new flow and use the `spend` call.
|
|
14290
14296
|
**/
|
|
14291
14297
|
payout: GenericTxCall<
|
|
14292
14298
|
Rv,
|
|
@@ -14324,6 +14330,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
14324
14330
|
* Emits [`Event::SpendProcessed`] if the spend payout has succeed.
|
|
14325
14331
|
*
|
|
14326
14332
|
* @param {number} index
|
|
14333
|
+
*
|
|
14334
|
+
* @deprecated The `remove_approval` call will be removed by May 2025. It associated with the deprecated `spend_local` call.
|
|
14327
14335
|
**/
|
|
14328
14336
|
checkStatus: GenericTxCall<
|
|
14329
14337
|
Rv,
|
|
@@ -20,9 +20,9 @@ import type {
|
|
|
20
20
|
AccountId32Like,
|
|
21
21
|
Percent,
|
|
22
22
|
PerU16,
|
|
23
|
-
FixedI64,
|
|
24
|
-
Era,
|
|
25
23
|
UncheckedExtrinsic,
|
|
24
|
+
Era,
|
|
25
|
+
FixedI64,
|
|
26
26
|
U256,
|
|
27
27
|
} from 'dedot/codecs';
|
|
28
28
|
|
|
@@ -17752,6 +17752,46 @@ export type FrameSystemError =
|
|
|
17752
17752
|
**/
|
|
17753
17753
|
| 'Unauthorized';
|
|
17754
17754
|
|
|
17755
|
+
export type SpRuntimeBlock = { header: Header; extrinsics: Array<UncheckedExtrinsic> };
|
|
17756
|
+
|
|
17757
|
+
export type CumulusPalletWeightReclaimStorageWeightReclaim = [
|
|
17758
|
+
FrameSystemExtensionsAuthorizeCall,
|
|
17759
|
+
FrameSystemExtensionsCheckNonZeroSender,
|
|
17760
|
+
FrameSystemExtensionsCheckSpecVersion,
|
|
17761
|
+
FrameSystemExtensionsCheckTxVersion,
|
|
17762
|
+
FrameSystemExtensionsCheckGenesis,
|
|
17763
|
+
FrameSystemExtensionsCheckMortality,
|
|
17764
|
+
FrameSystemExtensionsCheckNonce,
|
|
17765
|
+
FrameSystemExtensionsCheckWeight,
|
|
17766
|
+
PalletAssetConversionTxPaymentChargeAssetTxPayment,
|
|
17767
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
17768
|
+
];
|
|
17769
|
+
|
|
17770
|
+
export type FrameSystemExtensionsAuthorizeCall = {};
|
|
17771
|
+
|
|
17772
|
+
export type FrameSystemExtensionsCheckNonZeroSender = {};
|
|
17773
|
+
|
|
17774
|
+
export type FrameSystemExtensionsCheckSpecVersion = {};
|
|
17775
|
+
|
|
17776
|
+
export type FrameSystemExtensionsCheckTxVersion = {};
|
|
17777
|
+
|
|
17778
|
+
export type FrameSystemExtensionsCheckGenesis = {};
|
|
17779
|
+
|
|
17780
|
+
export type FrameSystemExtensionsCheckMortality = Era;
|
|
17781
|
+
|
|
17782
|
+
export type FrameSystemExtensionsCheckNonce = number;
|
|
17783
|
+
|
|
17784
|
+
export type FrameSystemExtensionsCheckWeight = {};
|
|
17785
|
+
|
|
17786
|
+
export type PalletAssetConversionTxPaymentChargeAssetTxPayment = {
|
|
17787
|
+
tip: bigint;
|
|
17788
|
+
assetId?: StagingXcmV5Location | undefined;
|
|
17789
|
+
};
|
|
17790
|
+
|
|
17791
|
+
export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode };
|
|
17792
|
+
|
|
17793
|
+
export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
|
|
17794
|
+
|
|
17755
17795
|
export type CumulusPalletParachainSystemUnincludedSegmentAncestor = {
|
|
17756
17796
|
usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
|
|
17757
17797
|
paraHeadHash?: H256 | undefined;
|
|
@@ -20600,50 +20640,8 @@ export type PalletAhOpsError =
|
|
|
20600
20640
|
**/
|
|
20601
20641
|
| 'AccountIdentical';
|
|
20602
20642
|
|
|
20603
|
-
export type CumulusPalletWeightReclaimStorageWeightReclaim = [
|
|
20604
|
-
FrameSystemExtensionsAuthorizeCall,
|
|
20605
|
-
FrameSystemExtensionsCheckNonZeroSender,
|
|
20606
|
-
FrameSystemExtensionsCheckSpecVersion,
|
|
20607
|
-
FrameSystemExtensionsCheckTxVersion,
|
|
20608
|
-
FrameSystemExtensionsCheckGenesis,
|
|
20609
|
-
FrameSystemExtensionsCheckMortality,
|
|
20610
|
-
FrameSystemExtensionsCheckNonce,
|
|
20611
|
-
FrameSystemExtensionsCheckWeight,
|
|
20612
|
-
PalletAssetConversionTxPaymentChargeAssetTxPayment,
|
|
20613
|
-
FrameMetadataHashExtensionCheckMetadataHash,
|
|
20614
|
-
];
|
|
20615
|
-
|
|
20616
|
-
export type FrameSystemExtensionsAuthorizeCall = {};
|
|
20617
|
-
|
|
20618
|
-
export type FrameSystemExtensionsCheckNonZeroSender = {};
|
|
20619
|
-
|
|
20620
|
-
export type FrameSystemExtensionsCheckSpecVersion = {};
|
|
20621
|
-
|
|
20622
|
-
export type FrameSystemExtensionsCheckTxVersion = {};
|
|
20623
|
-
|
|
20624
|
-
export type FrameSystemExtensionsCheckGenesis = {};
|
|
20625
|
-
|
|
20626
|
-
export type FrameSystemExtensionsCheckMortality = Era;
|
|
20627
|
-
|
|
20628
|
-
export type FrameSystemExtensionsCheckNonce = number;
|
|
20629
|
-
|
|
20630
|
-
export type FrameSystemExtensionsCheckWeight = {};
|
|
20631
|
-
|
|
20632
|
-
export type PalletAssetConversionTxPaymentChargeAssetTxPayment = {
|
|
20633
|
-
tip: bigint;
|
|
20634
|
-
assetId?: StagingXcmV5Location | undefined;
|
|
20635
|
-
};
|
|
20636
|
-
|
|
20637
|
-
export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode };
|
|
20638
|
-
|
|
20639
|
-
export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
|
|
20640
|
-
|
|
20641
|
-
export type AssetHubWestendRuntimeRuntime = {};
|
|
20642
|
-
|
|
20643
20643
|
export type SpConsensusSlotsSlotDuration = bigint;
|
|
20644
20644
|
|
|
20645
|
-
export type SpRuntimeBlock = { header: Header; extrinsics: Array<UncheckedExtrinsic> };
|
|
20646
|
-
|
|
20647
20645
|
export type SpRuntimeExtrinsicInclusionMode = 'AllExtrinsics' | 'OnlyInherents';
|
|
20648
20646
|
|
|
20649
20647
|
export type SpCoreOpaqueMetadata = Bytes;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// Generated by dedot cli
|
|
2
|
+
|
|
3
|
+
import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type { AccountId32Like } from 'dedot/codecs';
|
|
5
|
+
import type { AssetHubWestendRuntimeRuntimeCallLike, AssetHubWestendRuntimeProxyType } from './types.js';
|
|
6
|
+
|
|
7
|
+
export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {
|
|
8
|
+
/**
|
|
9
|
+
* Pallet `Proxy`'s view functions
|
|
10
|
+
**/
|
|
11
|
+
proxy: {
|
|
12
|
+
/**
|
|
13
|
+
* Check if a `RuntimeCall` is allowed for a given `ProxyType`.
|
|
14
|
+
*
|
|
15
|
+
* @param {AssetHubWestendRuntimeRuntimeCallLike} call
|
|
16
|
+
* @param {AssetHubWestendRuntimeProxyType} proxyType
|
|
17
|
+
**/
|
|
18
|
+
checkPermissions: GenericViewFunction<
|
|
19
|
+
Rv,
|
|
20
|
+
(call: AssetHubWestendRuntimeRuntimeCallLike, proxyType: AssetHubWestendRuntimeProxyType) => Promise<boolean>
|
|
21
|
+
>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Check if one `ProxyType` is a subset of another `ProxyType`.
|
|
25
|
+
*
|
|
26
|
+
* @param {AssetHubWestendRuntimeProxyType} toCheck
|
|
27
|
+
* @param {AssetHubWestendRuntimeProxyType} against
|
|
28
|
+
**/
|
|
29
|
+
isSuperset: GenericViewFunction<
|
|
30
|
+
Rv,
|
|
31
|
+
(toCheck: AssetHubWestendRuntimeProxyType, against: AssetHubWestendRuntimeProxyType) => Promise<boolean>
|
|
32
|
+
>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Generic pallet view function
|
|
36
|
+
**/
|
|
37
|
+
[name: string]: GenericViewFunction<Rv>;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Pallet `VoterList`'s view functions
|
|
41
|
+
**/
|
|
42
|
+
voterList: {
|
|
43
|
+
/**
|
|
44
|
+
* Get the current `score` of a given account.
|
|
45
|
+
*
|
|
46
|
+
* Returns `(current, real_score)`, the former being the current score that this pallet is
|
|
47
|
+
* aware of, which may or may not be up to date, and the latter being the real score, as
|
|
48
|
+
* provided by
|
|
49
|
+
*
|
|
50
|
+
* If the two differ, it means this node is eligible for [`Call::rebag`].
|
|
51
|
+
*
|
|
52
|
+
* @param {AccountId32Like} who
|
|
53
|
+
**/
|
|
54
|
+
scores: GenericViewFunction<Rv, (who: AccountId32Like) => Promise<[bigint | undefined, bigint | undefined]>>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Generic pallet view function
|
|
58
|
+
**/
|
|
59
|
+
[name: string]: GenericViewFunction<Rv>;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Pallet `MultiBlockElectionSigned`'s view functions
|
|
63
|
+
**/
|
|
64
|
+
multiBlockElectionSigned: {
|
|
65
|
+
/**
|
|
66
|
+
* Get the deposit amount that will be held for a solution of `pages`.
|
|
67
|
+
*
|
|
68
|
+
* This allows an offchain application to know what [`Config::DepositPerPage`] and
|
|
69
|
+
* [`Config::DepositBase`] are doing under the hood. It also takes into account if `who` is
|
|
70
|
+
* [`Invulnerables`] or not.
|
|
71
|
+
*
|
|
72
|
+
* @param {AccountId32Like} who
|
|
73
|
+
* @param {number} pages
|
|
74
|
+
**/
|
|
75
|
+
depositFor: GenericViewFunction<Rv, (who: AccountId32Like, pages: number) => Promise<bigint>>;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Generic pallet view function
|
|
79
|
+
**/
|
|
80
|
+
[name: string]: GenericViewFunction<Rv>;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,6 +19,7 @@ export interface VersionedWestendPeopleApi<Rv extends RpcVersion> extends Generi
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|