@dedot/chaintypes 0.54.0 → 0.56.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.
@@ -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 }