@dedot/chaintypes 0.175.0 → 0.176.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.
@@ -88,6 +88,10 @@ import type {
88
88
  PalletFastUnstakeUnstakeRequest,
89
89
  PalletDelegatedStakingDelegation,
90
90
  PalletDelegatedStakingAgentLedger,
91
+ PalletStakingAsyncRcClientValidatorSetReport,
92
+ PalletStakingAsyncAhClientOperatingMode,
93
+ PalletStakingAsyncRcClientSessionReport,
94
+ PalletStakingAsyncRcClientOffence,
91
95
  PolkadotRuntimeParachainsConfigurationHostConfiguration,
92
96
  PolkadotPrimitivesV8ValidatorIndex,
93
97
  PolkadotPrimitivesV8ValidatorAppPublic,
@@ -141,6 +145,14 @@ import type {
141
145
  PolkadotRuntimeCommonImplsVersionedLocatableAsset,
142
146
  SpConsensusBeefyEcdsaCryptoPublic,
143
147
  SpConsensusBeefyMmrBeefyAuthoritySet,
148
+ PalletRcMigratorMigrationStage,
149
+ PalletRcMigratorAccountsAccountState,
150
+ PalletRcMigratorAccountsMigratedBalances,
151
+ PalletRcMigratorQueuePriority,
152
+ FrameSupportScheduleDispatchTime,
153
+ PalletRcMigratorMigrationSettings,
154
+ PolkadotRuntimeRuntimeCall,
155
+ PolkadotRuntimeRuntimeCallLike,
144
156
  } from './types.js';
145
157
 
146
158
  export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
@@ -2319,6 +2331,108 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2319
2331
  **/
2320
2332
  [storage: string]: GenericStorageQuery<Rv>;
2321
2333
  };
2334
+ /**
2335
+ * Pallet `StakingAhClient`'s storage queries
2336
+ **/
2337
+ stakingAhClient: {
2338
+ /**
2339
+ * The queued validator sets for a given planning session index.
2340
+ *
2341
+ * This is received via a call from AssetHub.
2342
+ *
2343
+ * @param {Callback<[number, Array<AccountId32>] | undefined> =} callback
2344
+ **/
2345
+ validatorSet: GenericStorageQuery<Rv, () => [number, Array<AccountId32>] | undefined>;
2346
+
2347
+ /**
2348
+ * An incomplete validator set report.
2349
+ *
2350
+ * @param {Callback<PalletStakingAsyncRcClientValidatorSetReport | undefined> =} callback
2351
+ **/
2352
+ incompleteValidatorSetReport: GenericStorageQuery<
2353
+ Rv,
2354
+ () => PalletStakingAsyncRcClientValidatorSetReport | undefined
2355
+ >;
2356
+
2357
+ /**
2358
+ * All of the points of the validators.
2359
+ *
2360
+ * This is populated during a session, and is flushed and sent over via [`SendToAssetHub`]
2361
+ * at each session end.
2362
+ *
2363
+ * @param {AccountId32Like} arg
2364
+ * @param {Callback<number> =} callback
2365
+ **/
2366
+ validatorPoints: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
2367
+
2368
+ /**
2369
+ * Indicates the current operating mode of the pallet.
2370
+ *
2371
+ * This value determines how the pallet behaves in response to incoming and outgoing messages,
2372
+ * particularly whether it should execute logic directly, defer it, or delegate it entirely.
2373
+ *
2374
+ * @param {Callback<PalletStakingAsyncAhClientOperatingMode> =} callback
2375
+ **/
2376
+ mode: GenericStorageQuery<Rv, () => PalletStakingAsyncAhClientOperatingMode>;
2377
+
2378
+ /**
2379
+ * A storage value that is set when a `new_session` gives a new validator set to the session
2380
+ * pallet, and is cleared on the next call.
2381
+ *
2382
+ * The inner u32 is the id of the said activated validator set. While not relevant here, good
2383
+ * to know this is the planning era index of staking-async on AH.
2384
+ *
2385
+ * Once cleared, we know a validator set has been activated, and therefore we can send a
2386
+ * timestamp to AH.
2387
+ *
2388
+ * @param {Callback<number | undefined> =} callback
2389
+ **/
2390
+ nextSessionChangesValidators: GenericStorageQuery<Rv, () => number | undefined>;
2391
+
2392
+ /**
2393
+ * The session index at which the latest elected validator set was applied.
2394
+ *
2395
+ * This is used to determine if an offence, given a session index, is in the current active era
2396
+ * or not.
2397
+ *
2398
+ * @param {Callback<number | undefined> =} callback
2399
+ **/
2400
+ validatorSetAppliedAt: GenericStorageQuery<Rv, () => number | undefined>;
2401
+
2402
+ /**
2403
+ * A session report that is outgoing, and should be sent.
2404
+ *
2405
+ * This will be attempted to be sent, possibly on every `on_initialize` call, until it is sent,
2406
+ * or the second value reaches zero, at which point we drop it.
2407
+ *
2408
+ * @param {Callback<[PalletStakingAsyncRcClientSessionReport, number] | undefined> =} callback
2409
+ **/
2410
+ outgoingSessionReport: GenericStorageQuery<Rv, () => [PalletStakingAsyncRcClientSessionReport, number] | undefined>;
2411
+
2412
+ /**
2413
+ * Internal storage item of [`OffenceSendQueue`]. Should not be used manually.
2414
+ *
2415
+ * @param {number} arg
2416
+ * @param {Callback<Array<[number, PalletStakingAsyncRcClientOffence]>> =} callback
2417
+ **/
2418
+ offenceSendQueueOffences: GenericStorageQuery<
2419
+ Rv,
2420
+ (arg: number) => Array<[number, PalletStakingAsyncRcClientOffence]>,
2421
+ number
2422
+ >;
2423
+
2424
+ /**
2425
+ * Internal storage item of [`OffenceSendQueue`]. Should not be used manually.
2426
+ *
2427
+ * @param {Callback<number> =} callback
2428
+ **/
2429
+ offenceSendQueueCursor: GenericStorageQuery<Rv, () => number>;
2430
+
2431
+ /**
2432
+ * Generic pallet storage query
2433
+ **/
2434
+ [storage: string]: GenericStorageQuery<Rv>;
2435
+ };
2322
2436
  /**
2323
2437
  * Pallet `Configuration`'s storage queries
2324
2438
  **/
@@ -3894,6 +4008,221 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3894
4008
  **/
3895
4009
  beefyNextAuthorities: GenericStorageQuery<Rv, () => SpConsensusBeefyMmrBeefyAuthoritySet>;
3896
4010
 
4011
+ /**
4012
+ * Generic pallet storage query
4013
+ **/
4014
+ [storage: string]: GenericStorageQuery<Rv>;
4015
+ };
4016
+ /**
4017
+ * Pallet `RcMigrator`'s storage queries
4018
+ **/
4019
+ rcMigrator: {
4020
+ /**
4021
+ * The Relay Chain migration state.
4022
+ *
4023
+ * @param {Callback<PalletRcMigratorMigrationStage> =} callback
4024
+ **/
4025
+ rcMigrationStage: GenericStorageQuery<Rv, () => PalletRcMigratorMigrationStage>;
4026
+
4027
+ /**
4028
+ * Helper storage item to obtain and store the known accounts that should be kept partially or
4029
+ * fully on Relay Chain.
4030
+ *
4031
+ * @param {AccountId32Like} arg
4032
+ * @param {Callback<PalletRcMigratorAccountsAccountState | undefined> =} callback
4033
+ **/
4034
+ rcAccounts: GenericStorageQuery<
4035
+ Rv,
4036
+ (arg: AccountId32Like) => PalletRcMigratorAccountsAccountState | undefined,
4037
+ AccountId32
4038
+ >;
4039
+
4040
+ /**
4041
+ * Counter for the related counted storage map
4042
+ *
4043
+ * @param {Callback<number> =} callback
4044
+ **/
4045
+ counterForRcAccounts: GenericStorageQuery<Rv, () => number>;
4046
+
4047
+ /**
4048
+ * Helper storage item to store the total balance that should be kept on Relay Chain.
4049
+ *
4050
+ * @param {Callback<PalletRcMigratorAccountsMigratedBalances> =} callback
4051
+ **/
4052
+ rcMigratedBalance: GenericStorageQuery<Rv, () => PalletRcMigratorAccountsMigratedBalances>;
4053
+
4054
+ /**
4055
+ * Helper storage item to store the total balance that should be kept on Relay Chain after
4056
+ * it is consumed from the `RcMigratedBalance` storage item and sent to the Asset Hub.
4057
+ *
4058
+ * This let us to take the value from the `RcMigratedBalance` storage item and keep the
4059
+ * `SignalMigrationFinish` stage to be idempotent while preserving these values for tests and
4060
+ * later discoveries.
4061
+ *
4062
+ * @param {Callback<PalletRcMigratorAccountsMigratedBalances> =} callback
4063
+ **/
4064
+ rcMigratedBalanceArchive: GenericStorageQuery<Rv, () => PalletRcMigratorAccountsMigratedBalances>;
4065
+
4066
+ /**
4067
+ * The pending XCM messages.
4068
+ *
4069
+ * Contains data messages that have been sent to the Asset Hub but not yet confirmed.
4070
+ *
4071
+ * Unconfirmed messages can be resent by calling the [`Pallet::resend_xcm`] function.
4072
+ *
4073
+ * @param {[bigint, H256]} arg
4074
+ * @param {Callback<StagingXcmV5Xcm | undefined> =} callback
4075
+ **/
4076
+ pendingXcmMessages: GenericStorageQuery<Rv, (arg: [bigint, H256]) => StagingXcmV5Xcm | undefined, [bigint, H256]>;
4077
+
4078
+ /**
4079
+ * Counter for the related counted storage map
4080
+ *
4081
+ * @param {Callback<number> =} callback
4082
+ **/
4083
+ counterForPendingXcmMessages: GenericStorageQuery<Rv, () => number>;
4084
+
4085
+ /**
4086
+ * Accounts that use the proxy pallet to delegate permissions and have no nonce.
4087
+ *
4088
+ * Boolean value is whether they have been migrated to the Asset Hub. Needed for idempotency.
4089
+ *
4090
+ * @param {AccountId32Like} arg
4091
+ * @param {Callback<boolean | undefined> =} callback
4092
+ **/
4093
+ pureProxyCandidatesMigrated: GenericStorageQuery<Rv, (arg: AccountId32Like) => boolean | undefined, AccountId32>;
4094
+
4095
+ /**
4096
+ * The pending XCM response queries and their XCM hash referencing the message in the
4097
+ * [`PendingXcmMessages`] storage.
4098
+ *
4099
+ * The `QueryId` is the identifier from the [`pallet_xcm`] query handler registry. The XCM
4100
+ * pallet will notify about the status of the message by calling the
4101
+ * [`Pallet::receive_query_response`] function with the `QueryId` and the
4102
+ * response.
4103
+ *
4104
+ * @param {bigint} arg
4105
+ * @param {Callback<H256 | undefined> =} callback
4106
+ **/
4107
+ pendingXcmQueries: GenericStorageQuery<Rv, (arg: bigint) => H256 | undefined, bigint>;
4108
+
4109
+ /**
4110
+ * Manual override for `type UnprocessedMsgBuffer: Get<u32>`. Look there for docs.
4111
+ *
4112
+ * @param {Callback<number | undefined> =} callback
4113
+ **/
4114
+ unprocessedMsgBuffer: GenericStorageQuery<Rv, () => number | undefined>;
4115
+
4116
+ /**
4117
+ * The priority of the Asset Hub UMP queue during migration.
4118
+ *
4119
+ * Controls how the Asset Hub UMP (Upward Message Passing) queue is processed relative to other
4120
+ * queues during the migration process. This helps ensure timely processing of migration
4121
+ * messages. The default priority pattern is defined in the pallet configuration, but can be
4122
+ * overridden by a storage value of this type.
4123
+ *
4124
+ * @param {Callback<PalletRcMigratorQueuePriority> =} callback
4125
+ **/
4126
+ ahUmpQueuePriorityConfig: GenericStorageQuery<Rv, () => PalletRcMigratorQueuePriority>;
4127
+
4128
+ /**
4129
+ * An optional account id of a manager.
4130
+ *
4131
+ * This account id has similar privileges to [`Config::AdminOrigin`] except that it
4132
+ * can not set the manager account id via `set_manager` call.
4133
+ *
4134
+ * @param {Callback<AccountId32 | undefined> =} callback
4135
+ **/
4136
+ manager: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
4137
+
4138
+ /**
4139
+ * An optional account id of a canceller.
4140
+ *
4141
+ * This account id can only stop scheduled migration.
4142
+ *
4143
+ * @param {Callback<AccountId32 | undefined> =} callback
4144
+ **/
4145
+ canceller: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
4146
+
4147
+ /**
4148
+ * The block number at which the migration began and the pallet's extrinsics were locked.
4149
+ *
4150
+ * This value is set when entering the `WaitingForAh` stage, i.e., when
4151
+ * `RcMigrationStage::is_ongoing()` becomes `true`.
4152
+ *
4153
+ * @param {Callback<number | undefined> =} callback
4154
+ **/
4155
+ migrationStartBlock: GenericStorageQuery<Rv, () => number | undefined>;
4156
+
4157
+ /**
4158
+ * Block number when migration finished and extrinsics were unlocked.
4159
+ *
4160
+ * This is set when entering the `MigrationDone` stage hence when
4161
+ * `RcMigrationStage::is_finished()` becomes `true`.
4162
+ *
4163
+ * @param {Callback<number | undefined> =} callback
4164
+ **/
4165
+ migrationEndBlock: GenericStorageQuery<Rv, () => number | undefined>;
4166
+
4167
+ /**
4168
+ * The duration of the pre migration warm-up period.
4169
+ *
4170
+ * This is the duration of the warm-up period before the data migration starts. During this
4171
+ * period, the migration will be in ongoing state and the concerned extrinsics will be locked.
4172
+ *
4173
+ * @param {Callback<FrameSupportScheduleDispatchTime | undefined> =} callback
4174
+ **/
4175
+ warmUpPeriod: GenericStorageQuery<Rv, () => FrameSupportScheduleDispatchTime | undefined>;
4176
+
4177
+ /**
4178
+ * The duration of the post migration cool-off period.
4179
+ *
4180
+ * This is the duration of the cool-off period after the data migration is finished. During
4181
+ * this period, the migration will be still in ongoing state and the concerned extrinsics will
4182
+ * be locked.
4183
+ *
4184
+ * @param {Callback<FrameSupportScheduleDispatchTime | undefined> =} callback
4185
+ **/
4186
+ coolOffPeriod: GenericStorageQuery<Rv, () => FrameSupportScheduleDispatchTime | undefined>;
4187
+
4188
+ /**
4189
+ * The migration settings.
4190
+ *
4191
+ * @param {Callback<PalletRcMigratorMigrationSettings | undefined> =} callback
4192
+ **/
4193
+ settings: GenericStorageQuery<Rv, () => PalletRcMigratorMigrationSettings | undefined>;
4194
+
4195
+ /**
4196
+ * The multisig AccountIDs that votes to execute a specific call.
4197
+ *
4198
+ * @param {PolkadotRuntimeRuntimeCallLike} arg
4199
+ * @param {Callback<Array<AccountId32>> =} callback
4200
+ **/
4201
+ managerMultisigs: GenericStorageQuery<
4202
+ Rv,
4203
+ (arg: PolkadotRuntimeRuntimeCallLike) => Array<AccountId32>,
4204
+ PolkadotRuntimeRuntimeCall
4205
+ >;
4206
+
4207
+ /**
4208
+ * The current round of the multisig voting.
4209
+ *
4210
+ * Votes are only valid for the current round.
4211
+ *
4212
+ * @param {Callback<number> =} callback
4213
+ **/
4214
+ managerMultisigRound: GenericStorageQuery<Rv, () => number>;
4215
+
4216
+ /**
4217
+ * How often each participant voted in the current round.
4218
+ *
4219
+ * Will be cleared at the end of each round.
4220
+ *
4221
+ * @param {AccountId32Like} arg
4222
+ * @param {Callback<number> =} callback
4223
+ **/
4224
+ managerVotesInCurrentRound: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
4225
+
3897
4226
  /**
3898
4227
  * Generic pallet storage query
3899
4228
  **/
@@ -74,6 +74,8 @@ import type {
74
74
  SpConsensusSlotsEquivocationProof,
75
75
  SpAuthorityDiscoveryAppPublic,
76
76
  SpCoreCryptoKeyTypeId,
77
+ FrameSupportViewFunctionsViewFunctionDispatchError,
78
+ FrameSupportViewFunctionsViewFunctionId,
77
79
  PalletTransactionPaymentRuntimeDispatchInfo,
78
80
  PalletTransactionPaymentFeeDetails,
79
81
  SpWeightsWeightV2Weight,
@@ -1267,6 +1269,30 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1267
1269
  **/
1268
1270
  [method: string]: GenericRuntimeApiMethod<Rv>;
1269
1271
  };
1272
+ /**
1273
+ * @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
1274
+ **/
1275
+ runtimeViewFunction: {
1276
+ /**
1277
+ * Execute a view function query.
1278
+ *
1279
+ * @callname: RuntimeViewFunction_execute_view_function
1280
+ * @param {FrameSupportViewFunctionsViewFunctionId} query_id
1281
+ * @param {BytesLike} input
1282
+ **/
1283
+ executeViewFunction: GenericRuntimeApiMethod<
1284
+ Rv,
1285
+ (
1286
+ queryId: FrameSupportViewFunctionsViewFunctionId,
1287
+ input: BytesLike,
1288
+ ) => Promise<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>
1289
+ >;
1290
+
1291
+ /**
1292
+ * Generic runtime api call
1293
+ **/
1294
+ [method: string]: GenericRuntimeApiMethod<Rv>;
1295
+ };
1270
1296
  /**
1271
1297
  * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
1272
1298
  **/