@dedot/chaintypes 0.177.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/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": {
|
|
@@ -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
|
**/
|
|
@@ -5060,9 +5060,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5060
5060
|
*
|
|
5061
5061
|
* A deposit will be taken from the signer account.
|
|
5062
5062
|
*
|
|
5063
|
-
* - `origin`: Must be Signed
|
|
5064
|
-
*
|
|
5065
|
-
* - `id`: The identifier of the asset for the account to be created
|
|
5063
|
+
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
5064
|
+
* to be taken.
|
|
5065
|
+
* - `id`: The identifier of the asset for the account to be created, the asset status must
|
|
5066
|
+
* be live.
|
|
5066
5067
|
* - `who`: The account to be created.
|
|
5067
5068
|
*
|
|
5068
5069
|
* Emits `Touched` event when successful.
|
|
@@ -8745,9 +8746,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8745
8746
|
*
|
|
8746
8747
|
* A deposit will be taken from the signer account.
|
|
8747
8748
|
*
|
|
8748
|
-
* - `origin`: Must be Signed
|
|
8749
|
-
*
|
|
8750
|
-
* - `id`: The identifier of the asset for the account to be created
|
|
8749
|
+
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
8750
|
+
* to be taken.
|
|
8751
|
+
* - `id`: The identifier of the asset for the account to be created, the asset status must
|
|
8752
|
+
* be live.
|
|
8751
8753
|
* - `who`: The account to be created.
|
|
8752
8754
|
*
|
|
8753
8755
|
* Emits `Touched` event when successful.
|
|
@@ -10058,9 +10060,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10058
10060
|
*
|
|
10059
10061
|
* A deposit will be taken from the signer account.
|
|
10060
10062
|
*
|
|
10061
|
-
* - `origin`: Must be Signed
|
|
10062
|
-
*
|
|
10063
|
-
* - `id`: The identifier of the asset for the account to be created
|
|
10063
|
+
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
10064
|
+
* to be taken.
|
|
10065
|
+
* - `id`: The identifier of the asset for the account to be created, the asset status must
|
|
10066
|
+
* be live.
|
|
10064
10067
|
* - `who`: The account to be created.
|
|
10065
10068
|
*
|
|
10066
10069
|
* Emits `Touched` event when successful.
|
|
@@ -10449,9 +10452,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10449
10452
|
* # Parameters
|
|
10450
10453
|
*
|
|
10451
10454
|
* * `payload`: The encoded [`crate::evm::TransactionSigned`].
|
|
10452
|
-
* * `gas_limit`: The gas limit enforced during contract execution.
|
|
10453
|
-
* * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
|
|
10454
|
-
* storage usage.
|
|
10455
10455
|
*
|
|
10456
10456
|
* # Note
|
|
10457
10457
|
*
|
|
@@ -10636,6 +10636,20 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10636
10636
|
* Same as [`Self::instantiate_with_code`], but intended to be dispatched **only**
|
|
10637
10637
|
* by an EVM transaction through the EVM compatibility layer.
|
|
10638
10638
|
*
|
|
10639
|
+
* # Parameters
|
|
10640
|
+
*
|
|
10641
|
+
* * `value`: The balance to transfer from the `origin` to the newly created contract.
|
|
10642
|
+
* * `gas_limit`: The gas limit enforced when executing the constructor.
|
|
10643
|
+
* * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
|
|
10644
|
+
* from the caller to pay for the storage consumed.
|
|
10645
|
+
* * `code`: The contract code to deploy in raw bytes.
|
|
10646
|
+
* * `data`: The input data to pass to the contract constructor.
|
|
10647
|
+
* * `salt`: Used for the address derivation. If `Some` is supplied then `CREATE2`
|
|
10648
|
+
* semantics are used. If `None` then `CRATE1` is used.
|
|
10649
|
+
* * `transaction_encoded`: The RLP encoding of the signed Ethereum transaction,
|
|
10650
|
+
* represented as [crate::evm::TransactionSigned], provided by the Ethereum wallet. This
|
|
10651
|
+
* is used for building the Ethereum transaction root.
|
|
10652
|
+
*
|
|
10639
10653
|
* Calling this dispatchable ensures that the origin's nonce is bumped only once,
|
|
10640
10654
|
* via the `CheckNonce` transaction extension. In contrast, [`Self::instantiate_with_code`]
|
|
10641
10655
|
* also bumps the nonce after contract instantiation, since it may be invoked multiple
|
|
@@ -10643,18 +10657,22 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10643
10657
|
*
|
|
10644
10658
|
* @param {U256} value
|
|
10645
10659
|
* @param {SpWeightsWeightV2Weight} gasLimit
|
|
10646
|
-
* @param {bigint} storageDepositLimit
|
|
10647
10660
|
* @param {BytesLike} code
|
|
10648
10661
|
* @param {BytesLike} data
|
|
10662
|
+
* @param {BytesLike} transactionEncoded
|
|
10663
|
+
* @param {U256} effectiveGasPrice
|
|
10664
|
+
* @param {number} encodedLen
|
|
10649
10665
|
**/
|
|
10650
10666
|
ethInstantiateWithCode: GenericTxCall<
|
|
10651
10667
|
Rv,
|
|
10652
10668
|
(
|
|
10653
10669
|
value: U256,
|
|
10654
10670
|
gasLimit: SpWeightsWeightV2Weight,
|
|
10655
|
-
storageDepositLimit: bigint,
|
|
10656
10671
|
code: BytesLike,
|
|
10657
10672
|
data: BytesLike,
|
|
10673
|
+
transactionEncoded: BytesLike,
|
|
10674
|
+
effectiveGasPrice: U256,
|
|
10675
|
+
encodedLen: number,
|
|
10658
10676
|
) => ChainSubmittableExtrinsic<
|
|
10659
10677
|
Rv,
|
|
10660
10678
|
{
|
|
@@ -10664,9 +10682,11 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10664
10682
|
params: {
|
|
10665
10683
|
value: U256;
|
|
10666
10684
|
gasLimit: SpWeightsWeightV2Weight;
|
|
10667
|
-
storageDepositLimit: bigint;
|
|
10668
10685
|
code: BytesLike;
|
|
10669
10686
|
data: BytesLike;
|
|
10687
|
+
transactionEncoded: BytesLike;
|
|
10688
|
+
effectiveGasPrice: U256;
|
|
10689
|
+
encodedLen: number;
|
|
10670
10690
|
};
|
|
10671
10691
|
};
|
|
10672
10692
|
}
|
|
@@ -10680,8 +10700,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10680
10700
|
* @param {H160} dest
|
|
10681
10701
|
* @param {U256} value
|
|
10682
10702
|
* @param {SpWeightsWeightV2Weight} gasLimit
|
|
10683
|
-
* @param {bigint} storageDepositLimit
|
|
10684
10703
|
* @param {BytesLike} data
|
|
10704
|
+
* @param {BytesLike} transactionEncoded
|
|
10705
|
+
* @param {U256} effectiveGasPrice
|
|
10706
|
+
* @param {number} encodedLen
|
|
10685
10707
|
**/
|
|
10686
10708
|
ethCall: GenericTxCall<
|
|
10687
10709
|
Rv,
|
|
@@ -10689,8 +10711,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10689
10711
|
dest: H160,
|
|
10690
10712
|
value: U256,
|
|
10691
10713
|
gasLimit: SpWeightsWeightV2Weight,
|
|
10692
|
-
storageDepositLimit: bigint,
|
|
10693
10714
|
data: BytesLike,
|
|
10715
|
+
transactionEncoded: BytesLike,
|
|
10716
|
+
effectiveGasPrice: U256,
|
|
10717
|
+
encodedLen: number,
|
|
10694
10718
|
) => ChainSubmittableExtrinsic<
|
|
10695
10719
|
Rv,
|
|
10696
10720
|
{
|
|
@@ -10701,8 +10725,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10701
10725
|
dest: H160;
|
|
10702
10726
|
value: U256;
|
|
10703
10727
|
gasLimit: SpWeightsWeightV2Weight;
|
|
10704
|
-
storageDepositLimit: bigint;
|
|
10705
10728
|
data: BytesLike;
|
|
10729
|
+
transactionEncoded: BytesLike;
|
|
10730
|
+
effectiveGasPrice: U256;
|
|
10731
|
+
encodedLen: number;
|
|
10706
10732
|
};
|
|
10707
10733
|
};
|
|
10708
10734
|
}
|