@dedot/chaintypes 0.55.0 → 0.57.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/moonbeam/index.d.ts +1 -1
- package/package.json +2 -2
- package/westend-asset-hub/consts.d.ts +27 -3
- package/westend-asset-hub/errors.d.ts +19 -0
- package/westend-asset-hub/events.d.ts +136 -1
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +30 -0
- package/westend-asset-hub/runtime.d.ts +68 -0
- package/westend-asset-hub/tx.d.ts +107 -0
- package/westend-asset-hub/types.d.ts +244 -7
package/moonbeam/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@coongcrafts.io>",
|
|
6
6
|
"main": "",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"directory": "dist"
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "b37a28c6463ee0ec013645a2e2896e8161c91978",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
|
@@ -108,6 +108,31 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
108
108
|
**/
|
|
109
109
|
[name: string]: any;
|
|
110
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* Pallet `MultiBlockMigrations`'s constants
|
|
113
|
+
**/
|
|
114
|
+
multiBlockMigrations: {
|
|
115
|
+
/**
|
|
116
|
+
* The maximal length of an encoded cursor.
|
|
117
|
+
*
|
|
118
|
+
* A good default needs to selected such that no migration will ever have a cursor with MEL
|
|
119
|
+
* above this limit. This is statically checked in `integrity_test`.
|
|
120
|
+
**/
|
|
121
|
+
cursorMaxLen: number;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The maximal length of an encoded identifier.
|
|
125
|
+
*
|
|
126
|
+
* A good default needs to selected such that no migration will ever have an identifier
|
|
127
|
+
* with MEL above this limit. This is statically checked in `integrity_test`.
|
|
128
|
+
**/
|
|
129
|
+
identifierMaxLen: number;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Generic pallet constant
|
|
133
|
+
**/
|
|
134
|
+
[name: string]: any;
|
|
135
|
+
};
|
|
111
136
|
/**
|
|
112
137
|
* Pallet `Balances`'s constants
|
|
113
138
|
**/
|
|
@@ -886,9 +911,8 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
886
911
|
|
|
887
912
|
/**
|
|
888
913
|
* The percentage of the storage deposit that should be held for using a code hash.
|
|
889
|
-
* Instantiating a contract,
|
|
890
|
-
*
|
|
891
|
-
* protected with a percentage of the code deposit.
|
|
914
|
+
* Instantiating a contract, protects the code from being removed. In order to prevent
|
|
915
|
+
* abuse these actions are protected with a percentage of the code deposit.
|
|
892
916
|
**/
|
|
893
917
|
codeHashLockupDepositPercent: Perbill;
|
|
894
918
|
|
|
@@ -111,6 +111,20 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
111
111
|
**/
|
|
112
112
|
[error: string]: GenericPalletError<Rv>;
|
|
113
113
|
};
|
|
114
|
+
/**
|
|
115
|
+
* Pallet `MultiBlockMigrations`'s errors
|
|
116
|
+
**/
|
|
117
|
+
multiBlockMigrations: {
|
|
118
|
+
/**
|
|
119
|
+
* The operation cannot complete since some MBMs are ongoing.
|
|
120
|
+
**/
|
|
121
|
+
Ongoing: GenericPalletError<Rv>;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Generic pallet error
|
|
125
|
+
**/
|
|
126
|
+
[error: string]: GenericPalletError<Rv>;
|
|
127
|
+
};
|
|
114
128
|
/**
|
|
115
129
|
* Pallet `Balances`'s errors
|
|
116
130
|
**/
|
|
@@ -1804,6 +1818,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1804
1818
|
**/
|
|
1805
1819
|
InvalidGenericTransaction: GenericPalletError<Rv>;
|
|
1806
1820
|
|
|
1821
|
+
/**
|
|
1822
|
+
* The refcount of a code either over or underflowed.
|
|
1823
|
+
**/
|
|
1824
|
+
RefcountOverOrUnderflow: GenericPalletError<Rv>;
|
|
1825
|
+
|
|
1807
1826
|
/**
|
|
1808
1827
|
* Generic pallet error
|
|
1809
1828
|
**/
|
|
@@ -6,9 +6,9 @@ import type {
|
|
|
6
6
|
AccountId32,
|
|
7
7
|
H256,
|
|
8
8
|
FixedBytes,
|
|
9
|
+
Bytes,
|
|
9
10
|
FixedU128,
|
|
10
11
|
Result,
|
|
11
|
-
Bytes,
|
|
12
12
|
Permill,
|
|
13
13
|
H160,
|
|
14
14
|
} from 'dedot/codecs';
|
|
@@ -144,6 +144,141 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
144
144
|
**/
|
|
145
145
|
[prop: string]: GenericPalletEvent<Rv>;
|
|
146
146
|
};
|
|
147
|
+
/**
|
|
148
|
+
* Pallet `MultiBlockMigrations`'s events
|
|
149
|
+
**/
|
|
150
|
+
multiBlockMigrations: {
|
|
151
|
+
/**
|
|
152
|
+
* A Runtime upgrade started.
|
|
153
|
+
*
|
|
154
|
+
* Its end is indicated by `UpgradeCompleted` or `UpgradeFailed`.
|
|
155
|
+
**/
|
|
156
|
+
UpgradeStarted: GenericPalletEvent<
|
|
157
|
+
Rv,
|
|
158
|
+
'MultiBlockMigrations',
|
|
159
|
+
'UpgradeStarted',
|
|
160
|
+
{
|
|
161
|
+
/**
|
|
162
|
+
* The number of migrations that this upgrade contains.
|
|
163
|
+
*
|
|
164
|
+
* This can be used to design a progress indicator in combination with counting the
|
|
165
|
+
* `MigrationCompleted` and `MigrationSkipped` events.
|
|
166
|
+
**/
|
|
167
|
+
migrations: number;
|
|
168
|
+
}
|
|
169
|
+
>;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* The current runtime upgrade completed.
|
|
173
|
+
*
|
|
174
|
+
* This implies that all of its migrations completed successfully as well.
|
|
175
|
+
**/
|
|
176
|
+
UpgradeCompleted: GenericPalletEvent<Rv, 'MultiBlockMigrations', 'UpgradeCompleted', null>;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Runtime upgrade failed.
|
|
180
|
+
*
|
|
181
|
+
* This is very bad and will require governance intervention.
|
|
182
|
+
**/
|
|
183
|
+
UpgradeFailed: GenericPalletEvent<Rv, 'MultiBlockMigrations', 'UpgradeFailed', null>;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* A migration was skipped since it was already executed in the past.
|
|
187
|
+
**/
|
|
188
|
+
MigrationSkipped: GenericPalletEvent<
|
|
189
|
+
Rv,
|
|
190
|
+
'MultiBlockMigrations',
|
|
191
|
+
'MigrationSkipped',
|
|
192
|
+
{
|
|
193
|
+
/**
|
|
194
|
+
* The index of the skipped migration within the [`Config::Migrations`] list.
|
|
195
|
+
**/
|
|
196
|
+
index: number;
|
|
197
|
+
}
|
|
198
|
+
>;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* A migration progressed.
|
|
202
|
+
**/
|
|
203
|
+
MigrationAdvanced: GenericPalletEvent<
|
|
204
|
+
Rv,
|
|
205
|
+
'MultiBlockMigrations',
|
|
206
|
+
'MigrationAdvanced',
|
|
207
|
+
{
|
|
208
|
+
/**
|
|
209
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
210
|
+
**/
|
|
211
|
+
index: number;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* The number of blocks that this migration took so far.
|
|
215
|
+
**/
|
|
216
|
+
took: number;
|
|
217
|
+
}
|
|
218
|
+
>;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* A Migration completed.
|
|
222
|
+
**/
|
|
223
|
+
MigrationCompleted: GenericPalletEvent<
|
|
224
|
+
Rv,
|
|
225
|
+
'MultiBlockMigrations',
|
|
226
|
+
'MigrationCompleted',
|
|
227
|
+
{
|
|
228
|
+
/**
|
|
229
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
230
|
+
**/
|
|
231
|
+
index: number;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* The number of blocks that this migration took so far.
|
|
235
|
+
**/
|
|
236
|
+
took: number;
|
|
237
|
+
}
|
|
238
|
+
>;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* A Migration failed.
|
|
242
|
+
*
|
|
243
|
+
* This implies that the whole upgrade failed and governance intervention is required.
|
|
244
|
+
**/
|
|
245
|
+
MigrationFailed: GenericPalletEvent<
|
|
246
|
+
Rv,
|
|
247
|
+
'MultiBlockMigrations',
|
|
248
|
+
'MigrationFailed',
|
|
249
|
+
{
|
|
250
|
+
/**
|
|
251
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
252
|
+
**/
|
|
253
|
+
index: number;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* The number of blocks that this migration took so far.
|
|
257
|
+
**/
|
|
258
|
+
took: number;
|
|
259
|
+
}
|
|
260
|
+
>;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* The set of historical migrations has been cleared.
|
|
264
|
+
**/
|
|
265
|
+
HistoricCleared: GenericPalletEvent<
|
|
266
|
+
Rv,
|
|
267
|
+
'MultiBlockMigrations',
|
|
268
|
+
'HistoricCleared',
|
|
269
|
+
{
|
|
270
|
+
/**
|
|
271
|
+
* Should be passed to `clear_historic` in a successive call.
|
|
272
|
+
**/
|
|
273
|
+
nextCursor?: Bytes | undefined;
|
|
274
|
+
}
|
|
275
|
+
>;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Generic pallet event
|
|
279
|
+
**/
|
|
280
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
281
|
+
};
|
|
147
282
|
/**
|
|
148
283
|
* Pallet `Balances`'s events
|
|
149
284
|
**/
|
|
@@ -23,7 +23,7 @@ export interface VersionedWestendAssetHubApi<Rv extends RpcVersion> extends Gene
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @name: WestendAssetHubApi
|
|
26
|
-
* @specVersion:
|
|
26
|
+
* @specVersion: 1017007
|
|
27
27
|
**/
|
|
28
28
|
export interface WestendAssetHubApi {
|
|
29
29
|
legacy: VersionedWestendAssetHubApi<RpcLegacy>;
|
|
@@ -31,6 +31,7 @@ import type {
|
|
|
31
31
|
CumulusPrimitivesParachainInherentMessageQueueChain,
|
|
32
32
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
33
33
|
PolkadotCorePrimitivesOutboundHrmpMessage,
|
|
34
|
+
PalletMigrationsMigrationCursor,
|
|
34
35
|
PalletBalancesAccountData,
|
|
35
36
|
PalletBalancesBalanceLock,
|
|
36
37
|
PalletBalancesReserveData,
|
|
@@ -549,6 +550,35 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
549
550
|
**/
|
|
550
551
|
[storage: string]: GenericStorageQuery<Rv>;
|
|
551
552
|
};
|
|
553
|
+
/**
|
|
554
|
+
* Pallet `MultiBlockMigrations`'s storage queries
|
|
555
|
+
**/
|
|
556
|
+
multiBlockMigrations: {
|
|
557
|
+
/**
|
|
558
|
+
* The currently active migration to run and its cursor.
|
|
559
|
+
*
|
|
560
|
+
* `None` indicates that no migration is running.
|
|
561
|
+
*
|
|
562
|
+
* @param {Callback<PalletMigrationsMigrationCursor | undefined> =} callback
|
|
563
|
+
**/
|
|
564
|
+
cursor: GenericStorageQuery<Rv, () => PalletMigrationsMigrationCursor | undefined>;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Set of all successfully executed migrations.
|
|
568
|
+
*
|
|
569
|
+
* This is used as blacklist, to not re-execute migrations that have not been removed from the
|
|
570
|
+
* codebase yet. Governance can regularly clear this out via `clear_historic`.
|
|
571
|
+
*
|
|
572
|
+
* @param {BytesLike} arg
|
|
573
|
+
* @param {Callback<[] | undefined> =} callback
|
|
574
|
+
**/
|
|
575
|
+
historic: GenericStorageQuery<Rv, (arg: BytesLike) => [] | undefined, Bytes>;
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Generic pallet storage query
|
|
579
|
+
**/
|
|
580
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
581
|
+
};
|
|
552
582
|
/**
|
|
553
583
|
* Pallet `Balances`'s storage queries
|
|
554
584
|
**/
|
|
@@ -59,6 +59,8 @@ import type {
|
|
|
59
59
|
PalletReviveEvmApiRpcTypesGenGenericTransaction,
|
|
60
60
|
PalletRevivePrimitivesCodeUploadReturnValue,
|
|
61
61
|
PalletRevivePrimitivesContractAccessError,
|
|
62
|
+
PalletReviveEvmApiDebugRpcTypesCallTrace,
|
|
63
|
+
PalletReviveEvmApiDebugRpcTypesTracerConfig,
|
|
62
64
|
} from './types';
|
|
63
65
|
|
|
64
66
|
export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
|
|
@@ -911,6 +913,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
911
913
|
**/
|
|
912
914
|
balance: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<U256>>;
|
|
913
915
|
|
|
916
|
+
/**
|
|
917
|
+
* Returns the gas price.
|
|
918
|
+
*
|
|
919
|
+
* @callname: ReviveApi_gas_price
|
|
920
|
+
**/
|
|
921
|
+
gasPrice: GenericRuntimeApiMethod<Rv, () => Promise<U256>>;
|
|
922
|
+
|
|
914
923
|
/**
|
|
915
924
|
* Returns the nonce of the given `[H160]` address.
|
|
916
925
|
*
|
|
@@ -1024,6 +1033,65 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
1024
1033
|
) => Promise<Result<Bytes | undefined, PalletRevivePrimitivesContractAccessError>>
|
|
1025
1034
|
>;
|
|
1026
1035
|
|
|
1036
|
+
/**
|
|
1037
|
+
* Traces the execution of an entire block and returns call traces.
|
|
1038
|
+
*
|
|
1039
|
+
* This is intended to be called through `state_call` to replay the block from the
|
|
1040
|
+
* parent block.
|
|
1041
|
+
*
|
|
1042
|
+
* See eth-rpc `debug_traceBlockByNumber` for usage.
|
|
1043
|
+
*
|
|
1044
|
+
* @callname: ReviveApi_trace_block
|
|
1045
|
+
* @param {SpRuntimeBlock} block
|
|
1046
|
+
* @param {PalletReviveEvmApiDebugRpcTypesTracerConfig} config
|
|
1047
|
+
**/
|
|
1048
|
+
traceBlock: GenericRuntimeApiMethod<
|
|
1049
|
+
Rv,
|
|
1050
|
+
(
|
|
1051
|
+
block: SpRuntimeBlock,
|
|
1052
|
+
config: PalletReviveEvmApiDebugRpcTypesTracerConfig,
|
|
1053
|
+
) => Promise<Array<[number, PalletReviveEvmApiDebugRpcTypesCallTrace]>>
|
|
1054
|
+
>;
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* Traces the execution of a specific transaction within a block.
|
|
1058
|
+
*
|
|
1059
|
+
* This is intended to be called through `state_call` to replay the block from the
|
|
1060
|
+
* parent hash up to the transaction.
|
|
1061
|
+
*
|
|
1062
|
+
* See eth-rpc `debug_traceTransaction` for usage.
|
|
1063
|
+
*
|
|
1064
|
+
* @callname: ReviveApi_trace_tx
|
|
1065
|
+
* @param {SpRuntimeBlock} block
|
|
1066
|
+
* @param {number} tx_index
|
|
1067
|
+
* @param {PalletReviveEvmApiDebugRpcTypesTracerConfig} config
|
|
1068
|
+
**/
|
|
1069
|
+
traceTx: GenericRuntimeApiMethod<
|
|
1070
|
+
Rv,
|
|
1071
|
+
(
|
|
1072
|
+
block: SpRuntimeBlock,
|
|
1073
|
+
txIndex: number,
|
|
1074
|
+
config: PalletReviveEvmApiDebugRpcTypesTracerConfig,
|
|
1075
|
+
) => Promise<PalletReviveEvmApiDebugRpcTypesCallTrace | undefined>
|
|
1076
|
+
>;
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* Dry run and return the trace of the given call.
|
|
1080
|
+
*
|
|
1081
|
+
* See eth-rpc `debug_traceCall` for usage.
|
|
1082
|
+
*
|
|
1083
|
+
* @callname: ReviveApi_trace_call
|
|
1084
|
+
* @param {PalletReviveEvmApiRpcTypesGenGenericTransaction} tx
|
|
1085
|
+
* @param {PalletReviveEvmApiDebugRpcTypesTracerConfig} config
|
|
1086
|
+
**/
|
|
1087
|
+
traceCall: GenericRuntimeApiMethod<
|
|
1088
|
+
Rv,
|
|
1089
|
+
(
|
|
1090
|
+
tx: PalletReviveEvmApiRpcTypesGenGenericTransaction,
|
|
1091
|
+
config: PalletReviveEvmApiDebugRpcTypesTracerConfig,
|
|
1092
|
+
) => Promise<Result<PalletReviveEvmApiDebugRpcTypesCallTrace, PalletRevivePrimitivesEthTransactError>>
|
|
1093
|
+
>;
|
|
1094
|
+
|
|
1027
1095
|
/**
|
|
1028
1096
|
* Generic runtime api call
|
|
1029
1097
|
**/
|
|
@@ -16,6 +16,8 @@ import type {
|
|
|
16
16
|
SpRuntimeMultiSignature,
|
|
17
17
|
FrameSystemEventRecord,
|
|
18
18
|
CumulusPrimitivesParachainInherentParachainInherentData,
|
|
19
|
+
PalletMigrationsMigrationCursor,
|
|
20
|
+
PalletMigrationsHistoricCleanupSelector,
|
|
19
21
|
PalletBalancesAdjustmentDirection,
|
|
20
22
|
AssetHubWestendRuntimeSessionKeys,
|
|
21
23
|
XcmVersionedLocation,
|
|
@@ -417,6 +419,111 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
417
419
|
**/
|
|
418
420
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
419
421
|
};
|
|
422
|
+
/**
|
|
423
|
+
* Pallet `MultiBlockMigrations`'s transaction calls
|
|
424
|
+
**/
|
|
425
|
+
multiBlockMigrations: {
|
|
426
|
+
/**
|
|
427
|
+
* Allows root to set a cursor to forcefully start, stop or forward the migration process.
|
|
428
|
+
*
|
|
429
|
+
* Should normally not be needed and is only in place as emergency measure. Note that
|
|
430
|
+
* restarting the migration process in this manner will not call the
|
|
431
|
+
* [`MigrationStatusHandler::started`] hook or emit an `UpgradeStarted` event.
|
|
432
|
+
*
|
|
433
|
+
* @param {PalletMigrationsMigrationCursor | undefined} cursor
|
|
434
|
+
**/
|
|
435
|
+
forceSetCursor: GenericTxCall<
|
|
436
|
+
Rv,
|
|
437
|
+
(cursor: PalletMigrationsMigrationCursor | undefined) => ChainSubmittableExtrinsic<
|
|
438
|
+
Rv,
|
|
439
|
+
{
|
|
440
|
+
pallet: 'MultiBlockMigrations';
|
|
441
|
+
palletCall: {
|
|
442
|
+
name: 'ForceSetCursor';
|
|
443
|
+
params: { cursor: PalletMigrationsMigrationCursor | undefined };
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
>
|
|
447
|
+
>;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Allows root to set an active cursor to forcefully start/forward the migration process.
|
|
451
|
+
*
|
|
452
|
+
* This is an edge-case version of [`Self::force_set_cursor`] that allows to set the
|
|
453
|
+
* `started_at` value to the next block number. Otherwise this would not be possible, since
|
|
454
|
+
* `force_set_cursor` takes an absolute block number. Setting `started_at` to `None`
|
|
455
|
+
* indicates that the current block number plus one should be used.
|
|
456
|
+
*
|
|
457
|
+
* @param {number} index
|
|
458
|
+
* @param {BytesLike | undefined} innerCursor
|
|
459
|
+
* @param {number | undefined} startedAt
|
|
460
|
+
**/
|
|
461
|
+
forceSetActiveCursor: GenericTxCall<
|
|
462
|
+
Rv,
|
|
463
|
+
(
|
|
464
|
+
index: number,
|
|
465
|
+
innerCursor: BytesLike | undefined,
|
|
466
|
+
startedAt: number | undefined,
|
|
467
|
+
) => ChainSubmittableExtrinsic<
|
|
468
|
+
Rv,
|
|
469
|
+
{
|
|
470
|
+
pallet: 'MultiBlockMigrations';
|
|
471
|
+
palletCall: {
|
|
472
|
+
name: 'ForceSetActiveCursor';
|
|
473
|
+
params: { index: number; innerCursor: BytesLike | undefined; startedAt: number | undefined };
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
>
|
|
477
|
+
>;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Forces the onboarding of the migrations.
|
|
481
|
+
*
|
|
482
|
+
* This process happens automatically on a runtime upgrade. It is in place as an emergency
|
|
483
|
+
* measurement. The cursor needs to be `None` for this to succeed.
|
|
484
|
+
*
|
|
485
|
+
**/
|
|
486
|
+
forceOnboardMbms: GenericTxCall<
|
|
487
|
+
Rv,
|
|
488
|
+
() => ChainSubmittableExtrinsic<
|
|
489
|
+
Rv,
|
|
490
|
+
{
|
|
491
|
+
pallet: 'MultiBlockMigrations';
|
|
492
|
+
palletCall: {
|
|
493
|
+
name: 'ForceOnboardMbms';
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
>
|
|
497
|
+
>;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Clears the `Historic` set.
|
|
501
|
+
*
|
|
502
|
+
* `map_cursor` must be set to the last value that was returned by the
|
|
503
|
+
* `HistoricCleared` event. The first time `None` can be used. `limit` must be chosen in a
|
|
504
|
+
* way that will result in a sensible weight.
|
|
505
|
+
*
|
|
506
|
+
* @param {PalletMigrationsHistoricCleanupSelector} selector
|
|
507
|
+
**/
|
|
508
|
+
clearHistoric: GenericTxCall<
|
|
509
|
+
Rv,
|
|
510
|
+
(selector: PalletMigrationsHistoricCleanupSelector) => ChainSubmittableExtrinsic<
|
|
511
|
+
Rv,
|
|
512
|
+
{
|
|
513
|
+
pallet: 'MultiBlockMigrations';
|
|
514
|
+
palletCall: {
|
|
515
|
+
name: 'ClearHistoric';
|
|
516
|
+
params: { selector: PalletMigrationsHistoricCleanupSelector };
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
>
|
|
520
|
+
>;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Generic pallet tx call
|
|
524
|
+
**/
|
|
525
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
526
|
+
};
|
|
420
527
|
/**
|
|
421
528
|
* Pallet `Balances`'s transaction calls
|
|
422
529
|
**/
|
|
@@ -6,8 +6,8 @@ import type {
|
|
|
6
6
|
DispatchError,
|
|
7
7
|
AccountId32,
|
|
8
8
|
FixedBytes,
|
|
9
|
-
FixedArray,
|
|
10
9
|
Bytes,
|
|
10
|
+
FixedArray,
|
|
11
11
|
FixedU128,
|
|
12
12
|
Result,
|
|
13
13
|
Permill,
|
|
@@ -52,6 +52,7 @@ export type FrameSystemEventRecord = { phase: Phase; event: AssetHubWestendRunti
|
|
|
52
52
|
export type AssetHubWestendRuntimeRuntimeEvent =
|
|
53
53
|
| { pallet: 'System'; palletEvent: FrameSystemEvent }
|
|
54
54
|
| { pallet: 'ParachainSystem'; palletEvent: CumulusPalletParachainSystemEvent }
|
|
55
|
+
| { pallet: 'MultiBlockMigrations'; palletEvent: PalletMigrationsEvent }
|
|
55
56
|
| { pallet: 'Balances'; palletEvent: PalletBalancesEvent }
|
|
56
57
|
| { pallet: 'TransactionPayment'; palletEvent: PalletTransactionPaymentEvent }
|
|
57
58
|
| { pallet: 'AssetTxPayment'; palletEvent: PalletAssetConversionTxPaymentEvent }
|
|
@@ -168,6 +169,117 @@ export type CumulusPalletParachainSystemEvent =
|
|
|
168
169
|
**/
|
|
169
170
|
| { name: 'UpwardMessageSent'; data: { messageHash?: FixedBytes<32> | undefined } };
|
|
170
171
|
|
|
172
|
+
/**
|
|
173
|
+
* The `Event` enum of this pallet
|
|
174
|
+
**/
|
|
175
|
+
export type PalletMigrationsEvent =
|
|
176
|
+
/**
|
|
177
|
+
* A Runtime upgrade started.
|
|
178
|
+
*
|
|
179
|
+
* Its end is indicated by `UpgradeCompleted` or `UpgradeFailed`.
|
|
180
|
+
**/
|
|
181
|
+
| {
|
|
182
|
+
name: 'UpgradeStarted';
|
|
183
|
+
data: {
|
|
184
|
+
/**
|
|
185
|
+
* The number of migrations that this upgrade contains.
|
|
186
|
+
*
|
|
187
|
+
* This can be used to design a progress indicator in combination with counting the
|
|
188
|
+
* `MigrationCompleted` and `MigrationSkipped` events.
|
|
189
|
+
**/
|
|
190
|
+
migrations: number;
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* The current runtime upgrade completed.
|
|
195
|
+
*
|
|
196
|
+
* This implies that all of its migrations completed successfully as well.
|
|
197
|
+
**/
|
|
198
|
+
| { name: 'UpgradeCompleted' }
|
|
199
|
+
/**
|
|
200
|
+
* Runtime upgrade failed.
|
|
201
|
+
*
|
|
202
|
+
* This is very bad and will require governance intervention.
|
|
203
|
+
**/
|
|
204
|
+
| { name: 'UpgradeFailed' }
|
|
205
|
+
/**
|
|
206
|
+
* A migration was skipped since it was already executed in the past.
|
|
207
|
+
**/
|
|
208
|
+
| {
|
|
209
|
+
name: 'MigrationSkipped';
|
|
210
|
+
data: {
|
|
211
|
+
/**
|
|
212
|
+
* The index of the skipped migration within the [`Config::Migrations`] list.
|
|
213
|
+
**/
|
|
214
|
+
index: number;
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* A migration progressed.
|
|
219
|
+
**/
|
|
220
|
+
| {
|
|
221
|
+
name: 'MigrationAdvanced';
|
|
222
|
+
data: {
|
|
223
|
+
/**
|
|
224
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
225
|
+
**/
|
|
226
|
+
index: number;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* The number of blocks that this migration took so far.
|
|
230
|
+
**/
|
|
231
|
+
took: number;
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* A Migration completed.
|
|
236
|
+
**/
|
|
237
|
+
| {
|
|
238
|
+
name: 'MigrationCompleted';
|
|
239
|
+
data: {
|
|
240
|
+
/**
|
|
241
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
242
|
+
**/
|
|
243
|
+
index: number;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* The number of blocks that this migration took so far.
|
|
247
|
+
**/
|
|
248
|
+
took: number;
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* A Migration failed.
|
|
253
|
+
*
|
|
254
|
+
* This implies that the whole upgrade failed and governance intervention is required.
|
|
255
|
+
**/
|
|
256
|
+
| {
|
|
257
|
+
name: 'MigrationFailed';
|
|
258
|
+
data: {
|
|
259
|
+
/**
|
|
260
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
261
|
+
**/
|
|
262
|
+
index: number;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* The number of blocks that this migration took so far.
|
|
266
|
+
**/
|
|
267
|
+
took: number;
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* The set of historical migrations has been cleared.
|
|
272
|
+
**/
|
|
273
|
+
| {
|
|
274
|
+
name: 'HistoricCleared';
|
|
275
|
+
data: {
|
|
276
|
+
/**
|
|
277
|
+
* Should be passed to `clear_historic` in a successive call.
|
|
278
|
+
**/
|
|
279
|
+
nextCursor?: Bytes | undefined;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
|
|
171
283
|
/**
|
|
172
284
|
* The `Event` enum of this pallet
|
|
173
285
|
**/
|
|
@@ -2863,6 +2975,102 @@ export type StagingParachainInfoCall = null;
|
|
|
2863
2975
|
|
|
2864
2976
|
export type StagingParachainInfoCallLike = null;
|
|
2865
2977
|
|
|
2978
|
+
export type PalletMigrationsMigrationCursor =
|
|
2979
|
+
| { type: 'Active'; value: PalletMigrationsActiveCursor }
|
|
2980
|
+
| { type: 'Stuck' };
|
|
2981
|
+
|
|
2982
|
+
export type PalletMigrationsActiveCursor = { index: number; innerCursor?: Bytes | undefined; startedAt: number };
|
|
2983
|
+
|
|
2984
|
+
/**
|
|
2985
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
2986
|
+
**/
|
|
2987
|
+
export type PalletMigrationsCall =
|
|
2988
|
+
/**
|
|
2989
|
+
* Allows root to set a cursor to forcefully start, stop or forward the migration process.
|
|
2990
|
+
*
|
|
2991
|
+
* Should normally not be needed and is only in place as emergency measure. Note that
|
|
2992
|
+
* restarting the migration process in this manner will not call the
|
|
2993
|
+
* [`MigrationStatusHandler::started`] hook or emit an `UpgradeStarted` event.
|
|
2994
|
+
**/
|
|
2995
|
+
| { name: 'ForceSetCursor'; params: { cursor?: PalletMigrationsMigrationCursor | undefined } }
|
|
2996
|
+
/**
|
|
2997
|
+
* Allows root to set an active cursor to forcefully start/forward the migration process.
|
|
2998
|
+
*
|
|
2999
|
+
* This is an edge-case version of [`Self::force_set_cursor`] that allows to set the
|
|
3000
|
+
* `started_at` value to the next block number. Otherwise this would not be possible, since
|
|
3001
|
+
* `force_set_cursor` takes an absolute block number. Setting `started_at` to `None`
|
|
3002
|
+
* indicates that the current block number plus one should be used.
|
|
3003
|
+
**/
|
|
3004
|
+
| {
|
|
3005
|
+
name: 'ForceSetActiveCursor';
|
|
3006
|
+
params: { index: number; innerCursor?: Bytes | undefined; startedAt?: number | undefined };
|
|
3007
|
+
}
|
|
3008
|
+
/**
|
|
3009
|
+
* Forces the onboarding of the migrations.
|
|
3010
|
+
*
|
|
3011
|
+
* This process happens automatically on a runtime upgrade. It is in place as an emergency
|
|
3012
|
+
* measurement. The cursor needs to be `None` for this to succeed.
|
|
3013
|
+
**/
|
|
3014
|
+
| { name: 'ForceOnboardMbms' }
|
|
3015
|
+
/**
|
|
3016
|
+
* Clears the `Historic` set.
|
|
3017
|
+
*
|
|
3018
|
+
* `map_cursor` must be set to the last value that was returned by the
|
|
3019
|
+
* `HistoricCleared` event. The first time `None` can be used. `limit` must be chosen in a
|
|
3020
|
+
* way that will result in a sensible weight.
|
|
3021
|
+
**/
|
|
3022
|
+
| { name: 'ClearHistoric'; params: { selector: PalletMigrationsHistoricCleanupSelector } };
|
|
3023
|
+
|
|
3024
|
+
export type PalletMigrationsCallLike =
|
|
3025
|
+
/**
|
|
3026
|
+
* Allows root to set a cursor to forcefully start, stop or forward the migration process.
|
|
3027
|
+
*
|
|
3028
|
+
* Should normally not be needed and is only in place as emergency measure. Note that
|
|
3029
|
+
* restarting the migration process in this manner will not call the
|
|
3030
|
+
* [`MigrationStatusHandler::started`] hook or emit an `UpgradeStarted` event.
|
|
3031
|
+
**/
|
|
3032
|
+
| { name: 'ForceSetCursor'; params: { cursor?: PalletMigrationsMigrationCursor | undefined } }
|
|
3033
|
+
/**
|
|
3034
|
+
* Allows root to set an active cursor to forcefully start/forward the migration process.
|
|
3035
|
+
*
|
|
3036
|
+
* This is an edge-case version of [`Self::force_set_cursor`] that allows to set the
|
|
3037
|
+
* `started_at` value to the next block number. Otherwise this would not be possible, since
|
|
3038
|
+
* `force_set_cursor` takes an absolute block number. Setting `started_at` to `None`
|
|
3039
|
+
* indicates that the current block number plus one should be used.
|
|
3040
|
+
**/
|
|
3041
|
+
| {
|
|
3042
|
+
name: 'ForceSetActiveCursor';
|
|
3043
|
+
params: { index: number; innerCursor?: BytesLike | undefined; startedAt?: number | undefined };
|
|
3044
|
+
}
|
|
3045
|
+
/**
|
|
3046
|
+
* Forces the onboarding of the migrations.
|
|
3047
|
+
*
|
|
3048
|
+
* This process happens automatically on a runtime upgrade. It is in place as an emergency
|
|
3049
|
+
* measurement. The cursor needs to be `None` for this to succeed.
|
|
3050
|
+
**/
|
|
3051
|
+
| { name: 'ForceOnboardMbms' }
|
|
3052
|
+
/**
|
|
3053
|
+
* Clears the `Historic` set.
|
|
3054
|
+
*
|
|
3055
|
+
* `map_cursor` must be set to the last value that was returned by the
|
|
3056
|
+
* `HistoricCleared` event. The first time `None` can be used. `limit` must be chosen in a
|
|
3057
|
+
* way that will result in a sensible weight.
|
|
3058
|
+
**/
|
|
3059
|
+
| { name: 'ClearHistoric'; params: { selector: PalletMigrationsHistoricCleanupSelector } };
|
|
3060
|
+
|
|
3061
|
+
export type PalletMigrationsHistoricCleanupSelector =
|
|
3062
|
+
| { type: 'Specific'; value: Array<Bytes> }
|
|
3063
|
+
| { type: 'Wildcard'; value: { limit?: number | undefined; previousCursor?: Bytes | undefined } };
|
|
3064
|
+
|
|
3065
|
+
/**
|
|
3066
|
+
* The `Error` enum of this pallet.
|
|
3067
|
+
**/
|
|
3068
|
+
export type PalletMigrationsError =
|
|
3069
|
+
/**
|
|
3070
|
+
* The operation cannot complete since some MBMs are ongoing.
|
|
3071
|
+
**/
|
|
3072
|
+
'Ongoing';
|
|
3073
|
+
|
|
2866
3074
|
export type PalletBalancesBalanceLock = { id: FixedBytes<8>; amount: bigint; reasons: PalletBalancesReasons };
|
|
2867
3075
|
|
|
2868
3076
|
export type PalletBalancesReasons = 'Fee' | 'Misc' | 'All';
|
|
@@ -5027,6 +5235,7 @@ export type AssetHubWestendRuntimeRuntimeCall =
|
|
|
5027
5235
|
| { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCall }
|
|
5028
5236
|
| { pallet: 'Timestamp'; palletCall: PalletTimestampCall }
|
|
5029
5237
|
| { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCall }
|
|
5238
|
+
| { pallet: 'MultiBlockMigrations'; palletCall: PalletMigrationsCall }
|
|
5030
5239
|
| { pallet: 'Balances'; palletCall: PalletBalancesCall }
|
|
5031
5240
|
| { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCall }
|
|
5032
5241
|
| { pallet: 'Session'; palletCall: PalletSessionCall }
|
|
@@ -5055,6 +5264,7 @@ export type AssetHubWestendRuntimeRuntimeCallLike =
|
|
|
5055
5264
|
| { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCallLike }
|
|
5056
5265
|
| { pallet: 'Timestamp'; palletCall: PalletTimestampCallLike }
|
|
5057
5266
|
| { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCallLike }
|
|
5267
|
+
| { pallet: 'MultiBlockMigrations'; palletCall: PalletMigrationsCallLike }
|
|
5058
5268
|
| { pallet: 'Balances'; palletCall: PalletBalancesCallLike }
|
|
5059
5269
|
| { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCallLike }
|
|
5060
5270
|
| { pallet: 'Session'; palletCall: PalletSessionCallLike }
|
|
@@ -12524,8 +12734,7 @@ export type PalletAssetConversionOpsCallLike =
|
|
|
12524
12734
|
export type AssetHubWestendRuntimeOriginCaller =
|
|
12525
12735
|
| { type: 'System'; value: FrameSupportDispatchRawOrigin }
|
|
12526
12736
|
| { type: 'PolkadotXcm'; value: PalletXcmOrigin }
|
|
12527
|
-
| { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin }
|
|
12528
|
-
| { type: 'Void'; value: SpCoreVoid };
|
|
12737
|
+
| { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin };
|
|
12529
12738
|
|
|
12530
12739
|
export type FrameSupportDispatchRawOrigin =
|
|
12531
12740
|
| { type: 'Root' }
|
|
@@ -12540,8 +12749,6 @@ export type CumulusPalletXcmOrigin =
|
|
|
12540
12749
|
| { type: 'Relay' }
|
|
12541
12750
|
| { type: 'SiblingParachain'; value: PolkadotParachainPrimitivesPrimitivesId };
|
|
12542
12751
|
|
|
12543
|
-
export type SpCoreVoid = null;
|
|
12544
|
-
|
|
12545
12752
|
/**
|
|
12546
12753
|
* The `Error` enum of this pallet.
|
|
12547
12754
|
**/
|
|
@@ -13280,7 +13487,6 @@ export type PalletReviveStorageContractInfo = {
|
|
|
13280
13487
|
storageByteDeposit: bigint;
|
|
13281
13488
|
storageItemDeposit: bigint;
|
|
13282
13489
|
storageBaseDeposit: bigint;
|
|
13283
|
-
delegateDependencies: Array<[H256, bigint]>;
|
|
13284
13490
|
immutableDataLen: number;
|
|
13285
13491
|
};
|
|
13286
13492
|
|
|
@@ -13486,7 +13692,11 @@ export type PalletReviveError =
|
|
|
13486
13692
|
/**
|
|
13487
13693
|
* The transaction used to dry-run a contract is invalid.
|
|
13488
13694
|
**/
|
|
13489
|
-
| 'InvalidGenericTransaction'
|
|
13695
|
+
| 'InvalidGenericTransaction'
|
|
13696
|
+
/**
|
|
13697
|
+
* The refcount of a code either over or underflowed.
|
|
13698
|
+
**/
|
|
13699
|
+
| 'RefcountOverOrUnderflow';
|
|
13490
13700
|
|
|
13491
13701
|
export type PalletAssetRewardsPoolStakerInfo = { amount: bigint; rewards: bigint; rewardPerTokenPaid: bigint };
|
|
13492
13702
|
|
|
@@ -13793,9 +14003,36 @@ export type PalletRevivePrimitivesCodeUploadReturnValue = { codeHash: H256; depo
|
|
|
13793
14003
|
|
|
13794
14004
|
export type PalletRevivePrimitivesContractAccessError = 'DoesntExist' | 'KeyDecodingFailed';
|
|
13795
14005
|
|
|
14006
|
+
export type PalletReviveEvmApiDebugRpcTypesTracerConfig = { type: 'CallTracer'; value: { withLogs: boolean } };
|
|
14007
|
+
|
|
14008
|
+
export type PalletReviveEvmApiDebugRpcTypesCallTrace = {
|
|
14009
|
+
from: H160;
|
|
14010
|
+
gas: U256;
|
|
14011
|
+
gasUsed: U256;
|
|
14012
|
+
to: H160;
|
|
14013
|
+
input: PalletReviveEvmApiByteBytes;
|
|
14014
|
+
output: PalletReviveEvmApiByteBytes;
|
|
14015
|
+
error?: string | undefined;
|
|
14016
|
+
revertReason?: string | undefined;
|
|
14017
|
+
calls: Array<PalletReviveEvmApiDebugRpcTypesCallTrace>;
|
|
14018
|
+
logs: Array<PalletReviveEvmApiDebugRpcTypesCallLog>;
|
|
14019
|
+
value: U256;
|
|
14020
|
+
callType: PalletReviveEvmApiDebugRpcTypesCallType;
|
|
14021
|
+
};
|
|
14022
|
+
|
|
14023
|
+
export type PalletReviveEvmApiDebugRpcTypesCallLog = {
|
|
14024
|
+
address: H160;
|
|
14025
|
+
topics: Array<H256>;
|
|
14026
|
+
data: PalletReviveEvmApiByteBytes;
|
|
14027
|
+
position: number;
|
|
14028
|
+
};
|
|
14029
|
+
|
|
14030
|
+
export type PalletReviveEvmApiDebugRpcTypesCallType = 'Call' | 'StaticCall' | 'DelegateCall';
|
|
14031
|
+
|
|
13796
14032
|
export type AssetHubWestendRuntimeRuntimeError =
|
|
13797
14033
|
| { pallet: 'System'; palletError: FrameSystemError }
|
|
13798
14034
|
| { pallet: 'ParachainSystem'; palletError: CumulusPalletParachainSystemError }
|
|
14035
|
+
| { pallet: 'MultiBlockMigrations'; palletError: PalletMigrationsError }
|
|
13799
14036
|
| { pallet: 'Balances'; palletError: PalletBalancesError }
|
|
13800
14037
|
| { pallet: 'CollatorSelection'; palletError: PalletCollatorSelectionError }
|
|
13801
14038
|
| { pallet: 'Session'; palletError: PalletSessionError }
|