@dedot/chaintypes 0.176.0 → 0.178.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/package.json +2 -2
- package/polkadot-people/index.d.ts +1 -1
- package/polkadot-people/runtime.d.ts +26 -0
- package/polkadot-people/types.d.ts +7 -0
- package/westend-asset-hub/consts.d.ts +35 -1
- package/westend-asset-hub/errors.d.ts +23 -1
- package/westend-asset-hub/events.d.ts +10 -0
- package/westend-asset-hub/index.d.ts +3 -1
- package/westend-asset-hub/query.d.ts +118 -14
- package/westend-asset-hub/runtime.d.ts +80 -7
- package/westend-asset-hub/tx.d.ts +44 -18
- package/westend-asset-hub/types.d.ts +352 -58
- package/westend-asset-hub/view-functions.d.ts +79 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.178.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@dedot.dev>",
|
|
6
6
|
"homepage": "https://dedot.dev",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "dist"
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "64bb631a1bb3b7d0d389002e485b8a087dc2230f",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
|
@@ -58,7 +58,7 @@ export interface VersionedPolkadotPeopleApi<Rv extends RpcVersion> extends Gener
|
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* @name: PolkadotPeopleApi
|
|
61
|
-
* @specVersion:
|
|
61
|
+
* @specVersion: 2000000
|
|
62
62
|
**/
|
|
63
63
|
export interface PolkadotPeopleApi {
|
|
64
64
|
legacy: VersionedPolkadotPeopleApi<RpcLegacy>;
|
|
@@ -27,6 +27,8 @@ import type {
|
|
|
27
27
|
SpRuntimeTransactionValidityValidTransaction,
|
|
28
28
|
SpRuntimeTransactionValidityTransactionSource,
|
|
29
29
|
SpCoreCryptoKeyTypeId,
|
|
30
|
+
FrameSupportViewFunctionsViewFunctionDispatchError,
|
|
31
|
+
FrameSupportViewFunctionsViewFunctionId,
|
|
30
32
|
PalletTransactionPaymentRuntimeDispatchInfo,
|
|
31
33
|
PalletTransactionPaymentFeeDetails,
|
|
32
34
|
SpWeightsWeightV2Weight,
|
|
@@ -330,6 +332,30 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
330
332
|
**/
|
|
331
333
|
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
332
334
|
};
|
|
335
|
+
/**
|
|
336
|
+
* @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
|
|
337
|
+
**/
|
|
338
|
+
runtimeViewFunction: {
|
|
339
|
+
/**
|
|
340
|
+
* Execute a view function query.
|
|
341
|
+
*
|
|
342
|
+
* @callname: RuntimeViewFunction_execute_view_function
|
|
343
|
+
* @param {FrameSupportViewFunctionsViewFunctionId} query_id
|
|
344
|
+
* @param {BytesLike} input
|
|
345
|
+
**/
|
|
346
|
+
executeViewFunction: GenericRuntimeApiMethod<
|
|
347
|
+
Rv,
|
|
348
|
+
(
|
|
349
|
+
queryId: FrameSupportViewFunctionsViewFunctionId,
|
|
350
|
+
input: BytesLike,
|
|
351
|
+
) => Promise<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>
|
|
352
|
+
>;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Generic runtime api call
|
|
356
|
+
**/
|
|
357
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
358
|
+
};
|
|
333
359
|
/**
|
|
334
360
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
335
361
|
**/
|
|
@@ -6037,6 +6037,13 @@ export type SpRuntimeTransactionValidityValidTransaction = {
|
|
|
6037
6037
|
propagate: boolean;
|
|
6038
6038
|
};
|
|
6039
6039
|
|
|
6040
|
+
export type FrameSupportViewFunctionsViewFunctionId = { prefix: FixedBytes<16>; suffix: FixedBytes<16> };
|
|
6041
|
+
|
|
6042
|
+
export type FrameSupportViewFunctionsViewFunctionDispatchError =
|
|
6043
|
+
| { type: 'NotImplemented' }
|
|
6044
|
+
| { type: 'NotFound'; value: FrameSupportViewFunctionsViewFunctionId }
|
|
6045
|
+
| { type: 'Codec' };
|
|
6046
|
+
|
|
6040
6047
|
export type PalletTransactionPaymentRuntimeDispatchInfo = {
|
|
6041
6048
|
weight: SpWeightsWeightV2Weight;
|
|
6042
6049
|
class: FrameSupportDispatchDispatchClass;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainConsts, RpcVersion } from 'dedot/types';
|
|
4
|
-
import type { RuntimeVersion, AccountId32, Bytes, Permill, Perbill } from 'dedot/codecs';
|
|
4
|
+
import type { RuntimeVersion, AccountId32, Bytes, Permill, Perbill, FixedU128 } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
6
|
FrameSystemLimitsBlockWeights,
|
|
7
7
|
FrameSystemLimitsBlockLength,
|
|
@@ -1016,6 +1016,19 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1016
1016
|
**/
|
|
1017
1017
|
depositPerItem: bigint;
|
|
1018
1018
|
|
|
1019
|
+
/**
|
|
1020
|
+
* The amount of balance a caller has to pay for each child trie storage item.
|
|
1021
|
+
*
|
|
1022
|
+
* Those are the items created by a contract. In Solidity each value is a single
|
|
1023
|
+
* storage item. This is why we need to set a lower value here than for the main
|
|
1024
|
+
* trie items. Otherwise the storage deposit is too high.
|
|
1025
|
+
*
|
|
1026
|
+
* # Note
|
|
1027
|
+
*
|
|
1028
|
+
* It is safe to change this value on a live chain as all refunds are pro rata.
|
|
1029
|
+
**/
|
|
1030
|
+
depositPerChildTrieItem: bigint;
|
|
1031
|
+
|
|
1019
1032
|
/**
|
|
1020
1033
|
* The percentage of the storage deposit that should be held for using a code hash.
|
|
1021
1034
|
* Instantiating a contract, protects the code from being removed. In order to prevent
|
|
@@ -1054,6 +1067,27 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1054
1067
|
**/
|
|
1055
1068
|
nativeToEthRatio: number;
|
|
1056
1069
|
|
|
1070
|
+
/**
|
|
1071
|
+
* The fraction the maximum extrinsic weight `eth_transact` extrinsics are capped to.
|
|
1072
|
+
*
|
|
1073
|
+
* This is not a security measure but a requirement due to how we map gas to `(Weight,
|
|
1074
|
+
* StorageDeposit)`. The mapping might derive a `Weight` that is too large to fit into an
|
|
1075
|
+
* extrinsic. In this case we cap it to the limit specified here.
|
|
1076
|
+
*
|
|
1077
|
+
* `eth_transact` transactions that use more weight than specified will fail with an out of
|
|
1078
|
+
* gas error during execution. Larger fractions will allow more transactions to run.
|
|
1079
|
+
* Smaller values waste less block space: Choose as small as possible and as large as
|
|
1080
|
+
* necessary.
|
|
1081
|
+
*
|
|
1082
|
+
* Default: `0.5`.
|
|
1083
|
+
**/
|
|
1084
|
+
maxEthExtrinsicWeight: FixedU128;
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* Allows debug-mode configuration, such as enabling unlimited contract size.
|
|
1088
|
+
**/
|
|
1089
|
+
debugEnabled: boolean;
|
|
1090
|
+
|
|
1057
1091
|
/**
|
|
1058
1092
|
* Generic pallet constant
|
|
1059
1093
|
**/
|
|
@@ -1939,7 +1939,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1939
1939
|
ContractTrapped: GenericPalletError<Rv>;
|
|
1940
1940
|
|
|
1941
1941
|
/**
|
|
1942
|
-
* Event body or storage item exceeds [`limits::
|
|
1942
|
+
* Event body or storage item exceeds [`limits::STORAGE_BYTES`].
|
|
1943
1943
|
**/
|
|
1944
1944
|
ValueTooLarge: GenericPalletError<Rv>;
|
|
1945
1945
|
|
|
@@ -2125,6 +2125,28 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2125
2125
|
**/
|
|
2126
2126
|
ReturnDataTooLarge: GenericPalletError<Rv>;
|
|
2127
2127
|
|
|
2128
|
+
/**
|
|
2129
|
+
* Invalid jump destination. Dynamic jumps points to invalid not jumpdest opcode.
|
|
2130
|
+
**/
|
|
2131
|
+
InvalidJump: GenericPalletError<Rv>;
|
|
2132
|
+
|
|
2133
|
+
/**
|
|
2134
|
+
* Attempting to pop a value from an empty stack.
|
|
2135
|
+
**/
|
|
2136
|
+
StackUnderflow: GenericPalletError<Rv>;
|
|
2137
|
+
|
|
2138
|
+
/**
|
|
2139
|
+
* Attempting to push a value onto a full stack.
|
|
2140
|
+
**/
|
|
2141
|
+
StackOverflow: GenericPalletError<Rv>;
|
|
2142
|
+
|
|
2143
|
+
/**
|
|
2144
|
+
* Too much deposit was drawn from the shared txfee and deposit credit.
|
|
2145
|
+
*
|
|
2146
|
+
* This happens if the passed `gas` inside the ethereum transaction is too low.
|
|
2147
|
+
**/
|
|
2148
|
+
TxFeeOverdraw: GenericPalletError<Rv>;
|
|
2149
|
+
|
|
2128
2150
|
/**
|
|
2129
2151
|
* Generic pallet error
|
|
2130
2152
|
**/
|
|
@@ -3227,6 +3227,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
3227
3227
|
**/
|
|
3228
3228
|
Instantiated: GenericPalletEvent<Rv, 'Revive', 'Instantiated', { deployer: H160; contract: H160 }>;
|
|
3229
3229
|
|
|
3230
|
+
/**
|
|
3231
|
+
* Emitted when an Ethereum transaction reverts.
|
|
3232
|
+
*
|
|
3233
|
+
* Ethereum transactions always complete successfully at the extrinsic level,
|
|
3234
|
+
* as even reverted calls must store their `ReceiptInfo`.
|
|
3235
|
+
* To distinguish reverted calls from successful ones, this event is emitted
|
|
3236
|
+
* for failed Ethereum transactions.
|
|
3237
|
+
**/
|
|
3238
|
+
EthExtrinsicRevert: GenericPalletEvent<Rv, 'Revive', 'EthExtrinsicRevert', { dispatchError: DispatchError }>;
|
|
3239
|
+
|
|
3230
3240
|
/**
|
|
3231
3241
|
* Generic pallet event
|
|
3232
3242
|
**/
|
|
@@ -15,6 +15,7 @@ import type {
|
|
|
15
15
|
FrameSystemExtensionsCheckWeight,
|
|
16
16
|
PalletAssetConversionTxPaymentChargeAssetTxPayment,
|
|
17
17
|
FrameMetadataHashExtensionCheckMetadataHash,
|
|
18
|
+
PalletReviveEvmTxExtensionSetOrigin,
|
|
18
19
|
} from './types.js';
|
|
19
20
|
import { ChainConsts } from './consts.js';
|
|
20
21
|
import { ChainStorage } from './query.js';
|
|
@@ -42,6 +43,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
|
42
43
|
FrameSystemExtensionsCheckWeight,
|
|
43
44
|
PalletAssetConversionTxPaymentChargeAssetTxPayment,
|
|
44
45
|
FrameMetadataHashExtensionCheckMetadataHash,
|
|
46
|
+
PalletReviveEvmTxExtensionSetOrigin,
|
|
45
47
|
[],
|
|
46
48
|
];
|
|
47
49
|
}
|
|
@@ -61,7 +63,7 @@ export interface VersionedWestendAssetHubApi<Rv extends RpcVersion> extends Gene
|
|
|
61
63
|
|
|
62
64
|
/**
|
|
63
65
|
* @name: WestendAssetHubApi
|
|
64
|
-
* @specVersion:
|
|
66
|
+
* @specVersion: 1020005
|
|
65
67
|
**/
|
|
66
68
|
export interface WestendAssetHubApi {
|
|
67
69
|
legacy: VersionedWestendAssetHubApi<RpcLegacy>;
|
|
@@ -12,6 +12,7 @@ import type {
|
|
|
12
12
|
BytesLike,
|
|
13
13
|
FixedBytes,
|
|
14
14
|
H160,
|
|
15
|
+
U256,
|
|
15
16
|
Perbill,
|
|
16
17
|
Percent,
|
|
17
18
|
} from 'dedot/codecs';
|
|
@@ -24,12 +25,12 @@ import type {
|
|
|
24
25
|
SpWeightsWeightV2Weight,
|
|
25
26
|
CumulusPalletParachainSystemUnincludedSegmentAncestor,
|
|
26
27
|
CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
PolkadotPrimitivesV9PersistedValidationData,
|
|
29
|
+
PolkadotPrimitivesV9UpgradeRestriction,
|
|
30
|
+
PolkadotPrimitivesV9UpgradeGoAhead,
|
|
30
31
|
SpTrieStorageProof,
|
|
31
32
|
CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
|
|
32
|
-
|
|
33
|
+
PolkadotPrimitivesV9AbridgedHostConfiguration,
|
|
33
34
|
CumulusPrimitivesParachainInherentMessageQueueChain,
|
|
34
35
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
35
36
|
CumulusPalletParachainSystemParachainInherentInboundMessageId,
|
|
@@ -45,6 +46,7 @@ import type {
|
|
|
45
46
|
FrameSupportTokensMiscIdAmount,
|
|
46
47
|
FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
|
|
47
48
|
PalletTransactionPaymentReleases,
|
|
49
|
+
FrameSupportStorageNoDrop,
|
|
48
50
|
PalletVestingVestingInfo,
|
|
49
51
|
PalletVestingReleases,
|
|
50
52
|
PalletCollatorSelectionCandidateInfo,
|
|
@@ -94,6 +96,10 @@ import type {
|
|
|
94
96
|
PalletReviveVmCodeInfo,
|
|
95
97
|
PalletReviveStorageAccountInfo,
|
|
96
98
|
PalletReviveStorageDeletionQueueManager,
|
|
99
|
+
PalletReviveEvmApiRpcTypesGenBlock,
|
|
100
|
+
PalletReviveEvmBlockHashReceiptGasInfo,
|
|
101
|
+
PalletReviveEvmBlockHashBlockBuilderEthereumBlockBuilderIR,
|
|
102
|
+
PalletReviveDebugDebugSettings,
|
|
97
103
|
PalletAssetRewardsPoolStakerInfo,
|
|
98
104
|
PalletAssetRewardsPoolInfo,
|
|
99
105
|
FrameSupportTokensFungibleHoldConsideration,
|
|
@@ -361,12 +367,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
361
367
|
|
|
362
368
|
/**
|
|
363
369
|
* The [`PersistedValidationData`] set for this block.
|
|
364
|
-
* This value is expected to be set only once per block and it's never stored
|
|
365
|
-
* in the trie.
|
|
366
370
|
*
|
|
367
|
-
*
|
|
371
|
+
* This value is expected to be set only once by the [`Pallet::set_validation_data`] inherent.
|
|
372
|
+
*
|
|
373
|
+
* @param {Callback<PolkadotPrimitivesV9PersistedValidationData | undefined> =} callback
|
|
368
374
|
**/
|
|
369
|
-
validationData: GenericStorageQuery<Rv, () =>
|
|
375
|
+
validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV9PersistedValidationData | undefined>;
|
|
370
376
|
|
|
371
377
|
/**
|
|
372
378
|
* Were the validation data set to notify the relay chain?
|
|
@@ -393,9 +399,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
393
399
|
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
394
400
|
* set after the inherent.
|
|
395
401
|
*
|
|
396
|
-
* @param {Callback<
|
|
402
|
+
* @param {Callback<PolkadotPrimitivesV9UpgradeRestriction | undefined> =} callback
|
|
397
403
|
**/
|
|
398
|
-
upgradeRestrictionSignal: GenericStorageQuery<Rv, () =>
|
|
404
|
+
upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV9UpgradeRestriction | undefined>;
|
|
399
405
|
|
|
400
406
|
/**
|
|
401
407
|
* Optional upgrade go-ahead signal from the relay-chain.
|
|
@@ -404,9 +410,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
404
410
|
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
405
411
|
* set after the inherent.
|
|
406
412
|
*
|
|
407
|
-
* @param {Callback<
|
|
413
|
+
* @param {Callback<PolkadotPrimitivesV9UpgradeGoAhead | undefined> =} callback
|
|
408
414
|
**/
|
|
409
|
-
upgradeGoAhead: GenericStorageQuery<Rv, () =>
|
|
415
|
+
upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV9UpgradeGoAhead | undefined>;
|
|
410
416
|
|
|
411
417
|
/**
|
|
412
418
|
* The state proof for the last relay parent block.
|
|
@@ -444,9 +450,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
444
450
|
*
|
|
445
451
|
* This data is also absent from the genesis.
|
|
446
452
|
*
|
|
447
|
-
* @param {Callback<
|
|
453
|
+
* @param {Callback<PolkadotPrimitivesV9AbridgedHostConfiguration | undefined> =} callback
|
|
448
454
|
**/
|
|
449
|
-
hostConfiguration: GenericStorageQuery<Rv, () =>
|
|
455
|
+
hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV9AbridgedHostConfiguration | undefined>;
|
|
450
456
|
|
|
451
457
|
/**
|
|
452
458
|
* The last downward message queue chain head we have observed.
|
|
@@ -859,6 +865,15 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
859
865
|
**/
|
|
860
866
|
storageVersion: GenericStorageQuery<Rv, () => PalletTransactionPaymentReleases>;
|
|
861
867
|
|
|
868
|
+
/**
|
|
869
|
+
* The `OnChargeTransaction` stores the withdrawn tx fee here.
|
|
870
|
+
*
|
|
871
|
+
* Use `withdraw_txfee` and `remaining_txfee` to access from outside the crate.
|
|
872
|
+
*
|
|
873
|
+
* @param {Callback<FrameSupportStorageNoDrop | undefined> =} callback
|
|
874
|
+
**/
|
|
875
|
+
txPaymentCredit: GenericStorageQuery<Rv, () => FrameSupportStorageNoDrop | undefined>;
|
|
876
|
+
|
|
862
877
|
/**
|
|
863
878
|
* Generic pallet storage query
|
|
864
879
|
**/
|
|
@@ -2188,6 +2203,67 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2188
2203
|
**/
|
|
2189
2204
|
originalAccount: GenericStorageQuery<Rv, (arg: H160) => AccountId32 | undefined, H160>;
|
|
2190
2205
|
|
|
2206
|
+
/**
|
|
2207
|
+
* The current Ethereum block that is stored in the `on_finalize` method.
|
|
2208
|
+
*
|
|
2209
|
+
* # Note
|
|
2210
|
+
*
|
|
2211
|
+
* This could be further optimized into the future to store only the minimum
|
|
2212
|
+
* information needed to reconstruct the Ethereum block at the RPC level.
|
|
2213
|
+
*
|
|
2214
|
+
* Since the block is convenient to have around, and the extra details are capped
|
|
2215
|
+
* by a few hashes and the vector of transaction hashes, we store the block here.
|
|
2216
|
+
*
|
|
2217
|
+
* @param {Callback<PalletReviveEvmApiRpcTypesGenBlock> =} callback
|
|
2218
|
+
**/
|
|
2219
|
+
ethereumBlock: GenericStorageQuery<Rv, () => PalletReviveEvmApiRpcTypesGenBlock>;
|
|
2220
|
+
|
|
2221
|
+
/**
|
|
2222
|
+
* Mapping for block number and hashes.
|
|
2223
|
+
*
|
|
2224
|
+
* The maximum number of elements stored is capped by the block hash count `BLOCK_HASH_COUNT`.
|
|
2225
|
+
*
|
|
2226
|
+
* @param {U256} arg
|
|
2227
|
+
* @param {Callback<H256> =} callback
|
|
2228
|
+
**/
|
|
2229
|
+
blockHash: GenericStorageQuery<Rv, (arg: U256) => H256, U256>;
|
|
2230
|
+
|
|
2231
|
+
/**
|
|
2232
|
+
* The details needed to reconstruct the receipt info offchain.
|
|
2233
|
+
*
|
|
2234
|
+
* This contains valuable information about the gas used by the transaction.
|
|
2235
|
+
*
|
|
2236
|
+
* NOTE: The item is unbound and should therefore never be read on chain.
|
|
2237
|
+
* It could otherwise inflate the PoV size of a block.
|
|
2238
|
+
*
|
|
2239
|
+
* @param {Callback<Array<PalletReviveEvmBlockHashReceiptGasInfo>> =} callback
|
|
2240
|
+
**/
|
|
2241
|
+
receiptInfoData: GenericStorageQuery<Rv, () => Array<PalletReviveEvmBlockHashReceiptGasInfo>>;
|
|
2242
|
+
|
|
2243
|
+
/**
|
|
2244
|
+
* Incremental ethereum block builder.
|
|
2245
|
+
*
|
|
2246
|
+
* @param {Callback<PalletReviveEvmBlockHashBlockBuilderEthereumBlockBuilderIR> =} callback
|
|
2247
|
+
**/
|
|
2248
|
+
ethBlockBuilderIR: GenericStorageQuery<Rv, () => PalletReviveEvmBlockHashBlockBuilderEthereumBlockBuilderIR>;
|
|
2249
|
+
|
|
2250
|
+
/**
|
|
2251
|
+
* The first transaction and receipt of the ethereum block.
|
|
2252
|
+
*
|
|
2253
|
+
* These values are moved out of the `EthBlockBuilderIR` to avoid serializing and
|
|
2254
|
+
* deserializing them on every transaction. Instead, they are loaded when needed.
|
|
2255
|
+
*
|
|
2256
|
+
* @param {Callback<[Bytes, Bytes] | undefined> =} callback
|
|
2257
|
+
**/
|
|
2258
|
+
ethBlockBuilderFirstValues: GenericStorageQuery<Rv, () => [Bytes, Bytes] | undefined>;
|
|
2259
|
+
|
|
2260
|
+
/**
|
|
2261
|
+
* Debugging settings that can be configured when DebugEnabled config is true.
|
|
2262
|
+
*
|
|
2263
|
+
* @param {Callback<PalletReviveDebugDebugSettings> =} callback
|
|
2264
|
+
**/
|
|
2265
|
+
debugSettingsOf: GenericStorageQuery<Rv, () => PalletReviveDebugDebugSettings>;
|
|
2266
|
+
|
|
2191
2267
|
/**
|
|
2192
2268
|
* Generic pallet storage query
|
|
2193
2269
|
**/
|
|
@@ -3062,6 +3138,34 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3062
3138
|
**/
|
|
3063
3139
|
lock: GenericStorageQuery<Rv, () => [] | undefined>;
|
|
3064
3140
|
|
|
3141
|
+
/**
|
|
3142
|
+
* Accounts that failed to be inserted into the bags-list due to locking.
|
|
3143
|
+
* These accounts will be processed with priority in `on_idle` or via `rebag` extrinsic.
|
|
3144
|
+
*
|
|
3145
|
+
* Note: This storage is intentionally unbounded. The following factors make bounding
|
|
3146
|
+
* unnecessary:
|
|
3147
|
+
* 1. The storage usage is temporary - accounts are processed and removed in `on_idle`
|
|
3148
|
+
* 2. The pallet is only locked during snapshot generation, which is weight-limited
|
|
3149
|
+
* 3. Processing happens at multiple accounts per block, clearing even large backlogs quickly
|
|
3150
|
+
* 4. An artificial limit could be exhausted by an attacker, preventing legitimate
|
|
3151
|
+
* auto-rebagging from putting accounts in the correct position
|
|
3152
|
+
*
|
|
3153
|
+
* We don't store the score here - it's always fetched from `ScoreProvider` when processing,
|
|
3154
|
+
* ensuring we use the most up-to-date score (accounts may have been slashed, rewarded, etc.
|
|
3155
|
+
* while waiting in the queue).
|
|
3156
|
+
*
|
|
3157
|
+
* @param {AccountId32Like} arg
|
|
3158
|
+
* @param {Callback<[] | undefined> =} callback
|
|
3159
|
+
**/
|
|
3160
|
+
pendingRebag: GenericStorageQuery<Rv, (arg: AccountId32Like) => [] | undefined, AccountId32>;
|
|
3161
|
+
|
|
3162
|
+
/**
|
|
3163
|
+
* Counter for the related counted storage map
|
|
3164
|
+
*
|
|
3165
|
+
* @param {Callback<number> =} callback
|
|
3166
|
+
**/
|
|
3167
|
+
counterForPendingRebag: GenericStorageQuery<Rv, () => number>;
|
|
3168
|
+
|
|
3065
3169
|
/**
|
|
3066
3170
|
* Generic pallet storage query
|
|
3067
3171
|
**/
|
|
@@ -21,8 +21,9 @@ import type {
|
|
|
21
21
|
SpConsensusSlotsSlotDuration,
|
|
22
22
|
SpConsensusAuraSr25519AppSr25519Public,
|
|
23
23
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
24
|
+
CumulusPrimitivesCoreNextSlotSchedule,
|
|
24
25
|
SpConsensusSlotsSlot,
|
|
25
|
-
|
|
26
|
+
SpRuntimeBlockLazyBlock,
|
|
26
27
|
SpRuntimeExtrinsicInclusionMode,
|
|
27
28
|
SpCoreOpaqueMetadata,
|
|
28
29
|
SpRuntimeTransactionValidityTransactionValidityError,
|
|
@@ -52,6 +53,8 @@ import type {
|
|
|
52
53
|
XcmRuntimeApisAuthorizedAliasesError,
|
|
53
54
|
AssetsCommonRuntimeApiFungiblesAccessError,
|
|
54
55
|
CumulusPrimitivesCoreCollationInfo,
|
|
56
|
+
PalletReviveEvmApiRpcTypesGenBlock,
|
|
57
|
+
PalletReviveEvmBlockHashReceiptGasInfo,
|
|
55
58
|
PalletRevivePrimitivesContractResult,
|
|
56
59
|
PalletRevivePrimitivesContractResultInstantiateReturnValue,
|
|
57
60
|
PalletRevivePrimitivesCode,
|
|
@@ -61,7 +64,9 @@ import type {
|
|
|
61
64
|
PalletRevivePrimitivesCodeUploadReturnValue,
|
|
62
65
|
PalletRevivePrimitivesContractAccessError,
|
|
63
66
|
PalletReviveEvmApiDebugRpcTypesTrace,
|
|
67
|
+
SpRuntimeBlock,
|
|
64
68
|
PalletReviveEvmApiDebugRpcTypesTracerType,
|
|
69
|
+
PalletRevivePrimitivesBalanceConversionError,
|
|
65
70
|
} from './types.js';
|
|
66
71
|
|
|
67
72
|
export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
|
|
@@ -122,6 +127,27 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
122
127
|
**/
|
|
123
128
|
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
124
129
|
};
|
|
130
|
+
/**
|
|
131
|
+
* @runtimeapi: SlotSchedule - 0x5bfafc20876faaf0
|
|
132
|
+
**/
|
|
133
|
+
slotSchedule: {
|
|
134
|
+
/**
|
|
135
|
+
* Get the block production schedule for the next relay chain slot.
|
|
136
|
+
*
|
|
137
|
+
* - `num_cores`: The number of cores assigned to this parachain
|
|
138
|
+
*
|
|
139
|
+
* Returns a [`NextSlotSchedule`].
|
|
140
|
+
*
|
|
141
|
+
* @callname: SlotSchedule_next_slot_schedule
|
|
142
|
+
* @param {number} num_cores
|
|
143
|
+
**/
|
|
144
|
+
nextSlotSchedule: GenericRuntimeApiMethod<Rv, (numCores: number) => Promise<CumulusPrimitivesCoreNextSlotSchedule>>;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Generic runtime api call
|
|
148
|
+
**/
|
|
149
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
150
|
+
};
|
|
125
151
|
/**
|
|
126
152
|
* @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
|
|
127
153
|
**/
|
|
@@ -164,9 +190,9 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
164
190
|
* Execute the given block.
|
|
165
191
|
*
|
|
166
192
|
* @callname: Core_execute_block
|
|
167
|
-
* @param {
|
|
193
|
+
* @param {SpRuntimeBlockLazyBlock} block
|
|
168
194
|
**/
|
|
169
|
-
executeBlock: GenericRuntimeApiMethod<Rv, (block:
|
|
195
|
+
executeBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlockLazyBlock) => Promise<[]>>;
|
|
170
196
|
|
|
171
197
|
/**
|
|
172
198
|
* Initialize a block with the given header and return the runtime executive mode.
|
|
@@ -259,12 +285,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
259
285
|
* Check that the inherents are valid. The inherent data will vary from chain to chain.
|
|
260
286
|
*
|
|
261
287
|
* @callname: BlockBuilder_check_inherents
|
|
262
|
-
* @param {
|
|
288
|
+
* @param {SpRuntimeBlockLazyBlock} block
|
|
263
289
|
* @param {SpInherentsInherentData} data
|
|
264
290
|
**/
|
|
265
291
|
checkInherents: GenericRuntimeApiMethod<
|
|
266
292
|
Rv,
|
|
267
|
-
(block:
|
|
293
|
+
(block: SpRuntimeBlockLazyBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
268
294
|
>;
|
|
269
295
|
|
|
270
296
|
/**
|
|
@@ -1019,7 +1045,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1019
1045
|
erasStakersPageCount: GenericRuntimeApiMethod<Rv, (era: number, account: AccountId32Like) => Promise<number>>;
|
|
1020
1046
|
|
|
1021
1047
|
/**
|
|
1022
|
-
* Returns true if validator `account` has pages to be claimed for the given era.
|
|
1048
|
+
* Returns true if a validator `account` has pages to be claimed for the given era.
|
|
1023
1049
|
*
|
|
1024
1050
|
* @callname: StakingApi_pending_rewards
|
|
1025
1051
|
* @param {number} era
|
|
@@ -1093,6 +1119,34 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1093
1119
|
* @runtimeapi: ReviveApi - 0x8c403e5c4a9fd442
|
|
1094
1120
|
**/
|
|
1095
1121
|
reviveApi: {
|
|
1122
|
+
/**
|
|
1123
|
+
* Returns the current ETH block.
|
|
1124
|
+
*
|
|
1125
|
+
* This is one block behind the substrate block.
|
|
1126
|
+
*
|
|
1127
|
+
* @callname: ReviveApi_eth_block
|
|
1128
|
+
**/
|
|
1129
|
+
ethBlock: GenericRuntimeApiMethod<Rv, () => Promise<PalletReviveEvmApiRpcTypesGenBlock>>;
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* Returns the ETH block hash for the given block number.
|
|
1133
|
+
*
|
|
1134
|
+
* @callname: ReviveApi_eth_block_hash
|
|
1135
|
+
* @param {U256} number
|
|
1136
|
+
**/
|
|
1137
|
+
ethBlockHash: GenericRuntimeApiMethod<Rv, (number: U256) => Promise<H256 | undefined>>;
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* The details needed to reconstruct the receipt information offchain.
|
|
1141
|
+
*
|
|
1142
|
+
* # Note
|
|
1143
|
+
*
|
|
1144
|
+
* Each entry corresponds to the appropriate Ethereum transaction in the current block.
|
|
1145
|
+
*
|
|
1146
|
+
* @callname: ReviveApi_eth_receipt_data
|
|
1147
|
+
**/
|
|
1148
|
+
ethReceiptData: GenericRuntimeApiMethod<Rv, () => Promise<Array<PalletReviveEvmBlockHashReceiptGasInfo>>>;
|
|
1149
|
+
|
|
1096
1150
|
/**
|
|
1097
1151
|
* Returns the block gas limit.
|
|
1098
1152
|
*
|
|
@@ -1308,7 +1362,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1308
1362
|
*
|
|
1309
1363
|
* @callname: ReviveApi_block_author
|
|
1310
1364
|
**/
|
|
1311
|
-
blockAuthor: GenericRuntimeApiMethod<Rv, () => Promise<H160
|
|
1365
|
+
blockAuthor: GenericRuntimeApiMethod<Rv, () => Promise<H160>>;
|
|
1312
1366
|
|
|
1313
1367
|
/**
|
|
1314
1368
|
* Get the H160 address associated to this account id
|
|
@@ -1318,6 +1372,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1318
1372
|
**/
|
|
1319
1373
|
address: GenericRuntimeApiMethod<Rv, (accountId: AccountId32Like) => Promise<H160>>;
|
|
1320
1374
|
|
|
1375
|
+
/**
|
|
1376
|
+
* Get the account id associated to this H160 address.
|
|
1377
|
+
*
|
|
1378
|
+
* @callname: ReviveApi_account_id
|
|
1379
|
+
* @param {H160} address
|
|
1380
|
+
**/
|
|
1381
|
+
accountId: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<AccountId32>>;
|
|
1382
|
+
|
|
1321
1383
|
/**
|
|
1322
1384
|
* The address used to call the runtime's pallets dispatchables
|
|
1323
1385
|
*
|
|
@@ -1333,6 +1395,17 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1333
1395
|
**/
|
|
1334
1396
|
code: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<Bytes>>;
|
|
1335
1397
|
|
|
1398
|
+
/**
|
|
1399
|
+
* Construct the new balance and dust components of this EVM balance.
|
|
1400
|
+
*
|
|
1401
|
+
* @callname: ReviveApi_new_balance_with_dust
|
|
1402
|
+
* @param {U256} balance
|
|
1403
|
+
**/
|
|
1404
|
+
newBalanceWithDust: GenericRuntimeApiMethod<
|
|
1405
|
+
Rv,
|
|
1406
|
+
(balance: U256) => Promise<Result<[bigint, number], PalletRevivePrimitivesBalanceConversionError>>
|
|
1407
|
+
>;
|
|
1408
|
+
|
|
1336
1409
|
/**
|
|
1337
1410
|
* Generic runtime api call
|
|
1338
1411
|
**/
|