@dedot/chaintypes 0.177.0 → 0.179.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/kusama-asset-hub/events.d.ts +50 -0
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/tx.d.ts +6 -2
- package/kusama-asset-hub/types.d.ts +57 -3
- 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
|
@@ -4896,6 +4896,56 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
4896
4896
|
}
|
|
4897
4897
|
>;
|
|
4898
4898
|
|
|
4899
|
+
/**
|
|
4900
|
+
* Failed to unreserve a multisig deposit.
|
|
4901
|
+
**/
|
|
4902
|
+
FailedToUnreserveMultisigDeposit: GenericPalletEvent<
|
|
4903
|
+
Rv,
|
|
4904
|
+
'AhMigrator',
|
|
4905
|
+
'FailedToUnreserveMultisigDeposit',
|
|
4906
|
+
{
|
|
4907
|
+
/**
|
|
4908
|
+
* The expected amount of the deposit that was expected to be unreserved.
|
|
4909
|
+
**/
|
|
4910
|
+
expectedAmount: bigint;
|
|
4911
|
+
|
|
4912
|
+
/**
|
|
4913
|
+
* The missing amount of the deposit.
|
|
4914
|
+
**/
|
|
4915
|
+
missingAmount: bigint;
|
|
4916
|
+
|
|
4917
|
+
/**
|
|
4918
|
+
* The account that the deposit was unreserved from.
|
|
4919
|
+
**/
|
|
4920
|
+
account: AccountId32;
|
|
4921
|
+
}
|
|
4922
|
+
>;
|
|
4923
|
+
|
|
4924
|
+
/**
|
|
4925
|
+
* Failed to unreserve a legacy status preimage deposit.
|
|
4926
|
+
**/
|
|
4927
|
+
FailedToUnreservePreimageDeposit: GenericPalletEvent<
|
|
4928
|
+
Rv,
|
|
4929
|
+
'AhMigrator',
|
|
4930
|
+
'FailedToUnreservePreimageDeposit',
|
|
4931
|
+
{
|
|
4932
|
+
/**
|
|
4933
|
+
* The expected amount of the deposit that was expected to be unreserved.
|
|
4934
|
+
**/
|
|
4935
|
+
expectedAmount: bigint;
|
|
4936
|
+
|
|
4937
|
+
/**
|
|
4938
|
+
* The missing amount of the deposit.
|
|
4939
|
+
**/
|
|
4940
|
+
missingAmount: bigint;
|
|
4941
|
+
|
|
4942
|
+
/**
|
|
4943
|
+
* The account that the deposit was unreserved from.
|
|
4944
|
+
**/
|
|
4945
|
+
account: AccountId32;
|
|
4946
|
+
}
|
|
4947
|
+
>;
|
|
4948
|
+
|
|
4899
4949
|
/**
|
|
4900
4950
|
* Generic pallet event
|
|
4901
4951
|
**/
|
|
@@ -58,7 +58,7 @@ export interface VersionedKusamaAssetHubApi<Rv extends RpcVersion> extends Gener
|
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* @name: KusamaAssetHubApi
|
|
61
|
-
* @specVersion:
|
|
61
|
+
* @specVersion: 2000001
|
|
62
62
|
**/
|
|
63
63
|
export interface KusamaAssetHubApi {
|
|
64
64
|
legacy: VersionedKusamaAssetHubApi<RpcLegacy>;
|
package/kusama-asset-hub/tx.d.ts
CHANGED
|
@@ -16668,16 +16668,20 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
16668
16668
|
* so we do not need to do it this time.
|
|
16669
16669
|
*
|
|
16670
16670
|
* @param {PalletRcMigratorMigrationFinishedData | undefined} data
|
|
16671
|
+
* @param {number} coolOffEndAt
|
|
16671
16672
|
**/
|
|
16672
16673
|
finishMigration: GenericTxCall<
|
|
16673
16674
|
Rv,
|
|
16674
|
-
(
|
|
16675
|
+
(
|
|
16676
|
+
data: PalletRcMigratorMigrationFinishedData | undefined,
|
|
16677
|
+
coolOffEndAt: number,
|
|
16678
|
+
) => ChainSubmittableExtrinsic<
|
|
16675
16679
|
Rv,
|
|
16676
16680
|
{
|
|
16677
16681
|
pallet: 'AhMigrator';
|
|
16678
16682
|
palletCall: {
|
|
16679
16683
|
name: 'FinishMigration';
|
|
16680
|
-
params: { data: PalletRcMigratorMigrationFinishedData | undefined };
|
|
16684
|
+
params: { data: PalletRcMigratorMigrationFinishedData | undefined; coolOffEndAt: number };
|
|
16681
16685
|
};
|
|
16682
16686
|
}
|
|
16683
16687
|
>
|
|
@@ -19117,7 +19117,10 @@ export type PalletAhMigratorCall =
|
|
|
19117
19117
|
* for some pallets and have already performed the checking account balance correction,
|
|
19118
19118
|
* so we do not need to do it this time.
|
|
19119
19119
|
**/
|
|
19120
|
-
| {
|
|
19120
|
+
| {
|
|
19121
|
+
name: 'FinishMigration';
|
|
19122
|
+
params: { data?: PalletRcMigratorMigrationFinishedData | undefined; coolOffEndAt: number };
|
|
19123
|
+
}
|
|
19121
19124
|
/**
|
|
19122
19125
|
* XCM send call identical to the [`pallet_xcm::Pallet::send`] call but with the
|
|
19123
19126
|
* [Config::SendXcm] router which will be able to send messages to the Relay Chain during
|
|
@@ -19240,7 +19243,10 @@ export type PalletAhMigratorCallLike =
|
|
|
19240
19243
|
* for some pallets and have already performed the checking account balance correction,
|
|
19241
19244
|
* so we do not need to do it this time.
|
|
19242
19245
|
**/
|
|
19243
|
-
| {
|
|
19246
|
+
| {
|
|
19247
|
+
name: 'FinishMigration';
|
|
19248
|
+
params: { data?: PalletRcMigratorMigrationFinishedData | undefined; coolOffEndAt: number };
|
|
19249
|
+
}
|
|
19244
19250
|
/**
|
|
19245
19251
|
* XCM send call identical to the [`pallet_xcm::Pallet::send`] call but with the
|
|
19246
19252
|
* [Config::SendXcm] router which will be able to send messages to the Relay Chain during
|
|
@@ -19862,7 +19868,11 @@ export type PalletRcMigratorSocietyPortableCandidacy = {
|
|
|
19862
19868
|
|
|
19863
19869
|
export type PalletRcMigratorSocietyPortableVote = { approve: boolean; weight: number };
|
|
19864
19870
|
|
|
19865
|
-
export type PalletAhMigratorMigrationStage =
|
|
19871
|
+
export type PalletAhMigratorMigrationStage =
|
|
19872
|
+
| { type: 'Pending' }
|
|
19873
|
+
| { type: 'DataMigrationOngoing' }
|
|
19874
|
+
| { type: 'MigrationDone' }
|
|
19875
|
+
| { type: 'CoolOff'; value: { endAt: number } };
|
|
19866
19876
|
|
|
19867
19877
|
export type PalletRcMigratorQueuePriority =
|
|
19868
19878
|
| { type: 'Config' }
|
|
@@ -20164,6 +20174,50 @@ export type PalletAhMigratorEvent =
|
|
|
20164
20174
|
message: StagingXcmV5Xcm;
|
|
20165
20175
|
messageId: FixedBytes<32>;
|
|
20166
20176
|
};
|
|
20177
|
+
}
|
|
20178
|
+
/**
|
|
20179
|
+
* Failed to unreserve a multisig deposit.
|
|
20180
|
+
**/
|
|
20181
|
+
| {
|
|
20182
|
+
name: 'FailedToUnreserveMultisigDeposit';
|
|
20183
|
+
data: {
|
|
20184
|
+
/**
|
|
20185
|
+
* The expected amount of the deposit that was expected to be unreserved.
|
|
20186
|
+
**/
|
|
20187
|
+
expectedAmount: bigint;
|
|
20188
|
+
|
|
20189
|
+
/**
|
|
20190
|
+
* The missing amount of the deposit.
|
|
20191
|
+
**/
|
|
20192
|
+
missingAmount: bigint;
|
|
20193
|
+
|
|
20194
|
+
/**
|
|
20195
|
+
* The account that the deposit was unreserved from.
|
|
20196
|
+
**/
|
|
20197
|
+
account: AccountId32;
|
|
20198
|
+
};
|
|
20199
|
+
}
|
|
20200
|
+
/**
|
|
20201
|
+
* Failed to unreserve a legacy status preimage deposit.
|
|
20202
|
+
**/
|
|
20203
|
+
| {
|
|
20204
|
+
name: 'FailedToUnreservePreimageDeposit';
|
|
20205
|
+
data: {
|
|
20206
|
+
/**
|
|
20207
|
+
* The expected amount of the deposit that was expected to be unreserved.
|
|
20208
|
+
**/
|
|
20209
|
+
expectedAmount: bigint;
|
|
20210
|
+
|
|
20211
|
+
/**
|
|
20212
|
+
* The missing amount of the deposit.
|
|
20213
|
+
**/
|
|
20214
|
+
missingAmount: bigint;
|
|
20215
|
+
|
|
20216
|
+
/**
|
|
20217
|
+
* The account that the deposit was unreserved from.
|
|
20218
|
+
**/
|
|
20219
|
+
account: AccountId32;
|
|
20220
|
+
};
|
|
20167
20221
|
};
|
|
20168
20222
|
|
|
20169
20223
|
export type PalletAhMigratorPalletEventName =
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.179.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": "d2bf6a19ee522c5bf28478033641ffa895e1e9a8",
|
|
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
|
**/
|