@dedot/chaintypes 0.246.0 → 0.247.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/consts.d.ts +18 -10
- package/westend/errors.d.ts +30 -18
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +84 -87
- package/westend/runtime.d.ts +21 -0
- package/westend/tx.d.ts +37 -11
- package/westend/types.d.ts +95 -93
- package/westend-asset-hub/consts.d.ts +30 -1
- package/westend-asset-hub/errors.d.ts +49 -0
- package/westend-asset-hub/events.d.ts +68 -0
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +112 -2
- package/westend-asset-hub/tx.d.ts +6 -7
- package/westend-asset-hub/types.d.ts +106 -17
- package/westend-people/consts.d.ts +19 -1
- package/westend-people/index.d.ts +3 -1
- package/westend-people/query.d.ts +52 -2
- package/westend-people/types.d.ts +26 -2
|
@@ -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';
|
|
@@ -22,6 +23,7 @@ import type {
|
|
|
22
23
|
FrameSystemLastRuntimeUpgradeInfo,
|
|
23
24
|
FrameSystemCodeUpgradeAuthorization,
|
|
24
25
|
SpWeightsWeightV2Weight,
|
|
26
|
+
CumulusPalletParachainSystemBlockWeightBlockWeightMode,
|
|
25
27
|
CumulusPalletParachainSystemUnincludedSegmentAncestor,
|
|
26
28
|
CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
|
|
27
29
|
PolkadotPrimitivesV9PersistedValidationData,
|
|
@@ -34,6 +36,7 @@ import type {
|
|
|
34
36
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
35
37
|
CumulusPalletParachainSystemParachainInherentInboundMessageId,
|
|
36
38
|
PolkadotCorePrimitivesOutboundHrmpMessage,
|
|
39
|
+
CumulusPalletParachainSystemPoVMessages,
|
|
37
40
|
PalletMigrationsMigrationCursor,
|
|
38
41
|
PalletPreimageOldRequestStatus,
|
|
39
42
|
PalletPreimageRequestStatus,
|
|
@@ -270,6 +273,13 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
270
273
|
**/
|
|
271
274
|
lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
|
|
272
275
|
|
|
276
|
+
/**
|
|
277
|
+
* Number of blocks till the pending code upgrade is applied.
|
|
278
|
+
*
|
|
279
|
+
* @param {Callback<number | undefined> =} callback
|
|
280
|
+
**/
|
|
281
|
+
blocksTillUpgrade: GenericStorageQuery<() => number | undefined>;
|
|
282
|
+
|
|
273
283
|
/**
|
|
274
284
|
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
|
|
275
285
|
*
|
|
@@ -321,6 +331,27 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
321
331
|
* Pallet `ParachainSystem`'s storage queries
|
|
322
332
|
**/
|
|
323
333
|
parachainSystem: {
|
|
334
|
+
/**
|
|
335
|
+
* The current block weight mode.
|
|
336
|
+
*
|
|
337
|
+
* This is used to determine what is the maximum allowed block weight, for more information see
|
|
338
|
+
* [`block_weight`].
|
|
339
|
+
*
|
|
340
|
+
* Killed in [`Self::on_initialize`] and set by the [`block_weight`] logic.
|
|
341
|
+
*
|
|
342
|
+
* @param {Callback<CumulusPalletParachainSystemBlockWeightBlockWeightMode | undefined> =} callback
|
|
343
|
+
**/
|
|
344
|
+
blockWeightMode: GenericStorageQuery<() => CumulusPalletParachainSystemBlockWeightBlockWeightMode | undefined>;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* The core count available to the parachain in the previous block.
|
|
348
|
+
*
|
|
349
|
+
* This is mainly used for offchain functionality to calculate the correct target block weight.
|
|
350
|
+
*
|
|
351
|
+
* @param {Callback<number | undefined> =} callback
|
|
352
|
+
**/
|
|
353
|
+
previousCoreCount: GenericStorageQuery<() => number | undefined>;
|
|
354
|
+
|
|
324
355
|
/**
|
|
325
356
|
* Latest included block descendants the runtime accepted. In other words, these are
|
|
326
357
|
* ancestors of the currently executing block which have not been included in the observed
|
|
@@ -349,8 +380,8 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
349
380
|
* applied.
|
|
350
381
|
*
|
|
351
382
|
* As soon as the relay chain gives us the go-ahead signal, we will overwrite the
|
|
352
|
-
* [`:
|
|
353
|
-
* with the new validation code. This concludes the upgrade process.
|
|
383
|
+
* [`:pending_code`][sp_core::storage::well_known_keys::PENDING_CODE] which will result the
|
|
384
|
+
* next block to be processed with the new validation code. This concludes the upgrade process.
|
|
354
385
|
*
|
|
355
386
|
* @param {Callback<Bytes> =} callback
|
|
356
387
|
**/
|
|
@@ -589,6 +620,15 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
589
620
|
**/
|
|
590
621
|
customValidationHeadData: GenericStorageQuery<() => Bytes | undefined>;
|
|
591
622
|
|
|
623
|
+
/**
|
|
624
|
+
* Tracks cumulative `UMP` and `HRMP` messages sent across blocks in the current `PoV`.
|
|
625
|
+
*
|
|
626
|
+
* Across different candidates/PoVs the budgets are tracked by [`AggregatedUnincludedSegment`].
|
|
627
|
+
*
|
|
628
|
+
* @param {Callback<CumulusPalletParachainSystemPoVMessages | undefined> =} callback
|
|
629
|
+
**/
|
|
630
|
+
poVMessagesTracker: GenericStorageQuery<() => CumulusPalletParachainSystemPoVMessages | undefined>;
|
|
631
|
+
|
|
592
632
|
/**
|
|
593
633
|
* Generic pallet storage query
|
|
594
634
|
**/
|
|
@@ -1040,6 +1080,17 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1040
1080
|
[SpCoreCryptoKeyTypeId, Bytes]
|
|
1041
1081
|
>;
|
|
1042
1082
|
|
|
1083
|
+
/**
|
|
1084
|
+
* Accounts whose keys were set via `SessionInterface` (external path) without
|
|
1085
|
+
* incrementing the consumer reference or placing a key deposit. `do_purge_keys`
|
|
1086
|
+
* only decrements consumers for accounts that were registered through the local
|
|
1087
|
+
* session pallet.
|
|
1088
|
+
*
|
|
1089
|
+
* @param {AccountId32Like} arg
|
|
1090
|
+
* @param {Callback<[] | undefined> =} callback
|
|
1091
|
+
**/
|
|
1092
|
+
externallySetKeys: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>;
|
|
1093
|
+
|
|
1043
1094
|
/**
|
|
1044
1095
|
* Generic pallet storage query
|
|
1045
1096
|
**/
|
|
@@ -2278,6 +2329,65 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2278
2329
|
**/
|
|
2279
2330
|
[storage: string]: GenericStorageQuery;
|
|
2280
2331
|
};
|
|
2332
|
+
/**
|
|
2333
|
+
* Pallet `AssetsPrecompiles`'s storage queries
|
|
2334
|
+
**/
|
|
2335
|
+
assetsPrecompiles: {
|
|
2336
|
+
/**
|
|
2337
|
+
* The next available asset index for foreign assets.
|
|
2338
|
+
* This is incremented each time a new foreign asset mapping is created.
|
|
2339
|
+
*
|
|
2340
|
+
* @param {Callback<number> =} callback
|
|
2341
|
+
**/
|
|
2342
|
+
nextAssetIndex: GenericStorageQuery<() => number>;
|
|
2343
|
+
|
|
2344
|
+
/**
|
|
2345
|
+
* Mapping an asset index (derived from the precompile address) to a `ForeignAssetId`.
|
|
2346
|
+
*
|
|
2347
|
+
* @param {number} arg
|
|
2348
|
+
* @param {Callback<StagingXcmV5Location | undefined> =} callback
|
|
2349
|
+
**/
|
|
2350
|
+
assetIndexToForeignAssetId: GenericStorageQuery<(arg: number) => StagingXcmV5Location | undefined, number>;
|
|
2351
|
+
|
|
2352
|
+
/**
|
|
2353
|
+
* Mapping a `ForeignAssetId` to an asset index (used for deriving precompile addresses).
|
|
2354
|
+
*
|
|
2355
|
+
* @param {StagingXcmV5Location} arg
|
|
2356
|
+
* @param {Callback<number | undefined> =} callback
|
|
2357
|
+
**/
|
|
2358
|
+
foreignAssetIdToAssetIndex: GenericStorageQuery<
|
|
2359
|
+
(arg: StagingXcmV5Location) => number | undefined,
|
|
2360
|
+
StagingXcmV5Location
|
|
2361
|
+
>;
|
|
2362
|
+
|
|
2363
|
+
/**
|
|
2364
|
+
* Generic pallet storage query
|
|
2365
|
+
**/
|
|
2366
|
+
[storage: string]: GenericStorageQuery;
|
|
2367
|
+
};
|
|
2368
|
+
/**
|
|
2369
|
+
* Pallet `AssetsPrecompilesPermit`'s storage queries
|
|
2370
|
+
**/
|
|
2371
|
+
assetsPrecompilesPermit: {
|
|
2372
|
+
/**
|
|
2373
|
+
* Nonces for permit signatures.
|
|
2374
|
+
* Mapping: (verifying_contract, owner_address) => nonce
|
|
2375
|
+
*
|
|
2376
|
+
* Uses Blake2_128Concat for the first key to prevent storage collision attacks
|
|
2377
|
+
* when the verifying_contract address could be influenced by an attacker.
|
|
2378
|
+
*
|
|
2379
|
+
* Note: EIP-2612 specifies uint256 nonce. We store as U256 for compatibility.
|
|
2380
|
+
*
|
|
2381
|
+
* @param {[H160, H160]} arg
|
|
2382
|
+
* @param {Callback<U256> =} callback
|
|
2383
|
+
**/
|
|
2384
|
+
nonces: GenericStorageQuery<(arg: [H160, H160]) => U256, [H160, H160]>;
|
|
2385
|
+
|
|
2386
|
+
/**
|
|
2387
|
+
* Generic pallet storage query
|
|
2388
|
+
**/
|
|
2389
|
+
[storage: string]: GenericStorageQuery;
|
|
2390
|
+
};
|
|
2281
2391
|
/**
|
|
2282
2392
|
* Pallet `StateTrieMigration`'s storage queries
|
|
2283
2393
|
**/
|
|
@@ -11914,7 +11914,7 @@ export interface ChainTx<
|
|
|
11914
11914
|
*
|
|
11915
11915
|
* If a validator has more than [`Config::MaxExposurePageSize`] nominators backing
|
|
11916
11916
|
* them, then the list of nominators is paged, with each page being capped at
|
|
11917
|
-
* [`Config::MaxExposurePageSize
|
|
11917
|
+
* [`Config::MaxExposurePageSize`]. If a validator has more than one page of nominators,
|
|
11918
11918
|
* the call needs to be made for each page separately in order for all the nominators
|
|
11919
11919
|
* backing a validator to receive the reward. The nominators are not sorted across pages
|
|
11920
11920
|
* and so it should not be assumed the highest staker would be on the topmost page and vice
|
|
@@ -13084,17 +13084,16 @@ export interface ChainTx<
|
|
|
13084
13084
|
/**
|
|
13085
13085
|
* Set session keys for a validator. Keys are validated on AssetHub and forwarded to RC.
|
|
13086
13086
|
*
|
|
13087
|
+
* On the first call, a deposit of `KeyDeposit` is held from the stash. Subsequent calls
|
|
13088
|
+
* do not charge again. The deposit is released on `purge_keys`.
|
|
13089
|
+
*
|
|
13087
13090
|
* **Validation on AssetHub:**
|
|
13088
13091
|
* - Keys are decoded as `T::RelayChainSessionKeys` to ensure they match RC's expected
|
|
13089
13092
|
* format.
|
|
13090
13093
|
* - Ownership proof is validated using `OpaqueKeys::ownership_proof_is_valid`.
|
|
13091
13094
|
*
|
|
13092
13095
|
* If validation passes, only the validated keys are sent to RC (with empty proof),
|
|
13093
|
-
* since RC trusts AH's validation.
|
|
13094
|
-
* the XCM queue with garbage data.
|
|
13095
|
-
*
|
|
13096
|
-
* This, combined with the enforcement of a high minimum validator bond, makes it
|
|
13097
|
-
* reasonable not to require a deposit.
|
|
13096
|
+
* since RC trusts AH's validation.
|
|
13098
13097
|
*
|
|
13099
13098
|
* **Fees:**
|
|
13100
13099
|
* The actual cost of this call is higher than what the weight-based fee estimate shows.
|
|
@@ -13137,7 +13136,7 @@ export interface ChainTx<
|
|
|
13137
13136
|
>;
|
|
13138
13137
|
|
|
13139
13138
|
/**
|
|
13140
|
-
* Remove session keys for a validator.
|
|
13139
|
+
* Remove session keys for a validator and release the key deposit.
|
|
13141
13140
|
*
|
|
13142
13141
|
* This purges the keys from the Relay Chain.
|
|
13143
13142
|
*
|
|
@@ -11798,7 +11798,7 @@ export type PalletStakingAsyncPalletCall =
|
|
|
11798
11798
|
*
|
|
11799
11799
|
* If a validator has more than [`Config::MaxExposurePageSize`] nominators backing
|
|
11800
11800
|
* them, then the list of nominators is paged, with each page being capped at
|
|
11801
|
-
* [`Config::MaxExposurePageSize
|
|
11801
|
+
* [`Config::MaxExposurePageSize`]. If a validator has more than one page of nominators,
|
|
11802
11802
|
* the call needs to be made for each page separately in order for all the nominators
|
|
11803
11803
|
* backing a validator to receive the reward. The nominators are not sorted across pages
|
|
11804
11804
|
* and so it should not be assumed the highest staker would be on the topmost page and vice
|
|
@@ -12254,7 +12254,7 @@ export type PalletStakingAsyncPalletCallLike =
|
|
|
12254
12254
|
*
|
|
12255
12255
|
* If a validator has more than [`Config::MaxExposurePageSize`] nominators backing
|
|
12256
12256
|
* them, then the list of nominators is paged, with each page being capped at
|
|
12257
|
-
* [`Config::MaxExposurePageSize
|
|
12257
|
+
* [`Config::MaxExposurePageSize`]. If a validator has more than one page of nominators,
|
|
12258
12258
|
* the call needs to be made for each page separately in order for all the nominators
|
|
12259
12259
|
* backing a validator to receive the reward. The nominators are not sorted across pages
|
|
12260
12260
|
* and so it should not be assumed the highest staker would be on the topmost page and vice
|
|
@@ -13259,17 +13259,16 @@ export type PalletStakingAsyncRcClientCall =
|
|
|
13259
13259
|
/**
|
|
13260
13260
|
* Set session keys for a validator. Keys are validated on AssetHub and forwarded to RC.
|
|
13261
13261
|
*
|
|
13262
|
+
* On the first call, a deposit of `KeyDeposit` is held from the stash. Subsequent calls
|
|
13263
|
+
* do not charge again. The deposit is released on `purge_keys`.
|
|
13264
|
+
*
|
|
13262
13265
|
* **Validation on AssetHub:**
|
|
13263
13266
|
* - Keys are decoded as `T::RelayChainSessionKeys` to ensure they match RC's expected
|
|
13264
13267
|
* format.
|
|
13265
13268
|
* - Ownership proof is validated using `OpaqueKeys::ownership_proof_is_valid`.
|
|
13266
13269
|
*
|
|
13267
13270
|
* If validation passes, only the validated keys are sent to RC (with empty proof),
|
|
13268
|
-
* since RC trusts AH's validation.
|
|
13269
|
-
* the XCM queue with garbage data.
|
|
13270
|
-
*
|
|
13271
|
-
* This, combined with the enforcement of a high minimum validator bond, makes it
|
|
13272
|
-
* reasonable not to require a deposit.
|
|
13271
|
+
* since RC trusts AH's validation.
|
|
13273
13272
|
*
|
|
13274
13273
|
* **Fees:**
|
|
13275
13274
|
* The actual cost of this call is higher than what the weight-based fee estimate shows.
|
|
@@ -13292,7 +13291,7 @@ export type PalletStakingAsyncRcClientCall =
|
|
|
13292
13291
|
**/
|
|
13293
13292
|
| { name: 'SetKeys'; params: { keys: Bytes; proof: Bytes; maxDeliveryAndRemoteExecutionFee?: bigint | undefined } }
|
|
13294
13293
|
/**
|
|
13295
|
-
* Remove session keys for a validator.
|
|
13294
|
+
* Remove session keys for a validator and release the key deposit.
|
|
13296
13295
|
*
|
|
13297
13296
|
* This purges the keys from the Relay Chain.
|
|
13298
13297
|
*
|
|
@@ -13330,17 +13329,16 @@ export type PalletStakingAsyncRcClientCallLike =
|
|
|
13330
13329
|
/**
|
|
13331
13330
|
* Set session keys for a validator. Keys are validated on AssetHub and forwarded to RC.
|
|
13332
13331
|
*
|
|
13332
|
+
* On the first call, a deposit of `KeyDeposit` is held from the stash. Subsequent calls
|
|
13333
|
+
* do not charge again. The deposit is released on `purge_keys`.
|
|
13334
|
+
*
|
|
13333
13335
|
* **Validation on AssetHub:**
|
|
13334
13336
|
* - Keys are decoded as `T::RelayChainSessionKeys` to ensure they match RC's expected
|
|
13335
13337
|
* format.
|
|
13336
13338
|
* - Ownership proof is validated using `OpaqueKeys::ownership_proof_is_valid`.
|
|
13337
13339
|
*
|
|
13338
13340
|
* If validation passes, only the validated keys are sent to RC (with empty proof),
|
|
13339
|
-
* since RC trusts AH's validation.
|
|
13340
|
-
* the XCM queue with garbage data.
|
|
13341
|
-
*
|
|
13342
|
-
* This, combined with the enforcement of a high minimum validator bond, makes it
|
|
13343
|
-
* reasonable not to require a deposit.
|
|
13341
|
+
* since RC trusts AH's validation.
|
|
13344
13342
|
*
|
|
13345
13343
|
* **Fees:**
|
|
13346
13344
|
* The actual cost of this call is higher than what the weight-based fee estimate shows.
|
|
@@ -13366,7 +13364,7 @@ export type PalletStakingAsyncRcClientCallLike =
|
|
|
13366
13364
|
params: { keys: BytesLike; proof: BytesLike; maxDeliveryAndRemoteExecutionFee?: bigint | undefined };
|
|
13367
13365
|
}
|
|
13368
13366
|
/**
|
|
13369
|
-
* Remove session keys for a validator.
|
|
13367
|
+
* Remove session keys for a validator and release the key deposit.
|
|
13370
13368
|
*
|
|
13371
13369
|
* This purges the keys from the Relay Chain.
|
|
13372
13370
|
*
|
|
@@ -15169,6 +15167,7 @@ export type AssetHubWestendRuntimeRuntimeHoldReason =
|
|
|
15169
15167
|
| { type: 'StateTrieMigration'; value: PalletStateTrieMigrationHoldReason }
|
|
15170
15168
|
| { type: 'Staking'; value: PalletStakingAsyncPalletHoldReason }
|
|
15171
15169
|
| { type: 'DelegatedStaking'; value: PalletDelegatedStakingHoldReason }
|
|
15170
|
+
| { type: 'StakingRcClient'; value: PalletStakingAsyncRcClientHoldReason }
|
|
15172
15171
|
| { type: 'MultiBlockElectionSigned'; value: PalletElectionProviderMultiBlockSignedPalletHoldReason }
|
|
15173
15172
|
| { type: 'MultiAssetBounties'; value: PalletMultiAssetBountiesHoldReason };
|
|
15174
15173
|
|
|
@@ -15190,6 +15189,8 @@ export type PalletStakingAsyncPalletHoldReason = 'Staking';
|
|
|
15190
15189
|
|
|
15191
15190
|
export type PalletDelegatedStakingHoldReason = 'StakingDelegation';
|
|
15192
15191
|
|
|
15192
|
+
export type PalletStakingAsyncRcClientHoldReason = 'Keys';
|
|
15193
|
+
|
|
15193
15194
|
export type PalletElectionProviderMultiBlockSignedPalletHoldReason = 'SignedSubmission';
|
|
15194
15195
|
|
|
15195
15196
|
export type PalletMultiAssetBountiesHoldReason = 'CuratorDeposit';
|
|
@@ -16611,7 +16612,23 @@ export type PalletAssetsEvent =
|
|
|
16611
16612
|
/**
|
|
16612
16613
|
* Reserve information was removed for `asset_id`.
|
|
16613
16614
|
**/
|
|
16614
|
-
| { name: 'ReservesRemoved'; data: { assetId: number } }
|
|
16615
|
+
| { name: 'ReservesRemoved'; data: { assetId: number } }
|
|
16616
|
+
/**
|
|
16617
|
+
* Some assets were issued as Credit (no owner yet).
|
|
16618
|
+
**/
|
|
16619
|
+
| { name: 'IssuedCredit'; data: { assetId: number; amount: bigint } }
|
|
16620
|
+
/**
|
|
16621
|
+
* Some assets Credit was destroyed.
|
|
16622
|
+
**/
|
|
16623
|
+
| { name: 'BurnedCredit'; data: { assetId: number; amount: bigint } }
|
|
16624
|
+
/**
|
|
16625
|
+
* Some assets were burned and a Debt was created.
|
|
16626
|
+
**/
|
|
16627
|
+
| { name: 'IssuedDebt'; data: { assetId: number; amount: bigint } }
|
|
16628
|
+
/**
|
|
16629
|
+
* Some assets Debt was destroyed (and assets issued).
|
|
16630
|
+
**/
|
|
16631
|
+
| { name: 'BurnedDebt'; data: { assetId: number; amount: bigint } };
|
|
16615
16632
|
|
|
16616
16633
|
/**
|
|
16617
16634
|
* The `Event` enum of this pallet
|
|
@@ -17121,7 +17138,23 @@ export type PalletAssetsEvent002 =
|
|
|
17121
17138
|
/**
|
|
17122
17139
|
* Reserve information was removed for `asset_id`.
|
|
17123
17140
|
**/
|
|
17124
|
-
| { name: 'ReservesRemoved'; data: { assetId: StagingXcmV5Location } }
|
|
17141
|
+
| { name: 'ReservesRemoved'; data: { assetId: StagingXcmV5Location } }
|
|
17142
|
+
/**
|
|
17143
|
+
* Some assets were issued as Credit (no owner yet).
|
|
17144
|
+
**/
|
|
17145
|
+
| { name: 'IssuedCredit'; data: { assetId: StagingXcmV5Location; amount: bigint } }
|
|
17146
|
+
/**
|
|
17147
|
+
* Some assets Credit was destroyed.
|
|
17148
|
+
**/
|
|
17149
|
+
| { name: 'BurnedCredit'; data: { assetId: StagingXcmV5Location; amount: bigint } }
|
|
17150
|
+
/**
|
|
17151
|
+
* Some assets were burned and a Debt was created.
|
|
17152
|
+
**/
|
|
17153
|
+
| { name: 'IssuedDebt'; data: { assetId: StagingXcmV5Location; amount: bigint } }
|
|
17154
|
+
/**
|
|
17155
|
+
* Some assets Debt was destroyed (and assets issued).
|
|
17156
|
+
**/
|
|
17157
|
+
| { name: 'BurnedDebt'; data: { assetId: StagingXcmV5Location; amount: bigint } };
|
|
17125
17158
|
|
|
17126
17159
|
/**
|
|
17127
17160
|
* The `Event` enum of this pallet
|
|
@@ -18775,6 +18808,14 @@ export type CumulusPalletWeightReclaimStorageWeightReclaim = [
|
|
|
18775
18808
|
PalletReviveEvmTxExtensionSetOrigin,
|
|
18776
18809
|
];
|
|
18777
18810
|
|
|
18811
|
+
export type CumulusPalletParachainSystemBlockWeightBlockWeightMode =
|
|
18812
|
+
| { type: 'FullCore'; value: { context: number } }
|
|
18813
|
+
| {
|
|
18814
|
+
type: 'PotentialFullCore';
|
|
18815
|
+
value: { context: number; firstTransactionIndex?: number | undefined; targetWeight: SpWeightsWeightV2Weight };
|
|
18816
|
+
}
|
|
18817
|
+
| { type: 'FractionOfCore'; value: { context: number; firstTransactionIndex?: number | undefined } };
|
|
18818
|
+
|
|
18778
18819
|
export type CumulusPalletParachainSystemUnincludedSegmentAncestor = {
|
|
18779
18820
|
usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
|
|
18780
18821
|
paraHeadHash?: H256 | undefined;
|
|
@@ -18849,6 +18890,14 @@ export type PolkadotCorePrimitivesOutboundHrmpMessage = {
|
|
|
18849
18890
|
data: Bytes;
|
|
18850
18891
|
};
|
|
18851
18892
|
|
|
18893
|
+
export type CumulusPalletParachainSystemPoVMessages = {
|
|
18894
|
+
relayStorageRootOrHash: H256;
|
|
18895
|
+
coreSelector: number;
|
|
18896
|
+
bundleIndex: number;
|
|
18897
|
+
umpMsgCount: number;
|
|
18898
|
+
hrmpOutboundCount: number;
|
|
18899
|
+
};
|
|
18900
|
+
|
|
18852
18901
|
/**
|
|
18853
18902
|
* The `Error` enum of this pallet.
|
|
18854
18903
|
**/
|
|
@@ -19226,10 +19275,13 @@ export type CumulusPalletXcmpQueueOutboundChannelDetails = {
|
|
|
19226
19275
|
signalsExist: boolean;
|
|
19227
19276
|
firstIndex: number;
|
|
19228
19277
|
lastIndex: number;
|
|
19278
|
+
flags: CumulusPalletXcmpQueueOutboundChannelFlags;
|
|
19229
19279
|
};
|
|
19230
19280
|
|
|
19231
19281
|
export type CumulusPalletXcmpQueueOutboundState = 'Ok' | 'Suspended';
|
|
19232
19282
|
|
|
19283
|
+
export type CumulusPalletXcmpQueueOutboundChannelFlags = { bits: number };
|
|
19284
|
+
|
|
19233
19285
|
export type CumulusPalletXcmpQueueQueueConfigData = {
|
|
19234
19286
|
suspendThreshold: number;
|
|
19235
19287
|
dropThreshold: number;
|
|
@@ -20473,7 +20525,6 @@ export type PalletReviveEvmApiRpcTypesGenTransaction7702Unsigned = {
|
|
|
20473
20525
|
authorizationList: Array<PalletReviveEvmApiRpcTypesGenAuthorizationListEntry>;
|
|
20474
20526
|
chainId: U256;
|
|
20475
20527
|
gas: U256;
|
|
20476
|
-
gasPrice: U256;
|
|
20477
20528
|
input: PalletReviveEvmApiByteBytes;
|
|
20478
20529
|
maxFeePerGas: U256;
|
|
20479
20530
|
maxPriorityFeePerGas: U256;
|
|
@@ -20933,6 +20984,43 @@ export type PalletAssetRewardsError =
|
|
|
20933
20984
|
**/
|
|
20934
20985
|
| 'NonEmptyPool';
|
|
20935
20986
|
|
|
20987
|
+
/**
|
|
20988
|
+
* Error types for the permit pallet.
|
|
20989
|
+
**/
|
|
20990
|
+
export type PalletAssetsPrecompilesPermitPalletError =
|
|
20991
|
+
/**
|
|
20992
|
+
* The permit signature is invalid.
|
|
20993
|
+
**/
|
|
20994
|
+
| 'InvalidSignature'
|
|
20995
|
+
/**
|
|
20996
|
+
* The signer does not match the owner.
|
|
20997
|
+
**/
|
|
20998
|
+
| 'SignerMismatch'
|
|
20999
|
+
/**
|
|
21000
|
+
* The permit has expired (deadline passed).
|
|
21001
|
+
**/
|
|
21002
|
+
| 'PermitExpired'
|
|
21003
|
+
/**
|
|
21004
|
+
* The signature's `s` value is too high (malleability protection).
|
|
21005
|
+
**/
|
|
21006
|
+
| 'SignatureSValueTooHigh'
|
|
21007
|
+
/**
|
|
21008
|
+
* The signature's `v` value is invalid.
|
|
21009
|
+
**/
|
|
21010
|
+
| 'InvalidVValue'
|
|
21011
|
+
/**
|
|
21012
|
+
* Nonce overflow - account has used too many permits.
|
|
21013
|
+
**/
|
|
21014
|
+
| 'NonceOverflow'
|
|
21015
|
+
/**
|
|
21016
|
+
* The owner address is invalid (e.g., zero address).
|
|
21017
|
+
**/
|
|
21018
|
+
| 'InvalidOwner'
|
|
21019
|
+
/**
|
|
21020
|
+
* The spender address is invalid (e.g., zero address).
|
|
21021
|
+
**/
|
|
21022
|
+
| 'InvalidSpender';
|
|
21023
|
+
|
|
20936
21024
|
export type PalletStakingAsyncLedgerStakingLedger = {
|
|
20937
21025
|
stash: AccountId32;
|
|
20938
21026
|
total: bigint;
|
|
@@ -22400,6 +22488,7 @@ export type AssetHubWestendRuntimeRuntimeError =
|
|
|
22400
22488
|
| { pallet: 'PoolAssetsFreezer'; palletError: PalletAssetsFreezerError }
|
|
22401
22489
|
| { pallet: 'Revive'; palletError: PalletReviveError }
|
|
22402
22490
|
| { pallet: 'AssetRewards'; palletError: PalletAssetRewardsError }
|
|
22491
|
+
| { pallet: 'AssetsPrecompilesPermit'; palletError: PalletAssetsPrecompilesPermitPalletError }
|
|
22403
22492
|
| { pallet: 'StateTrieMigration'; palletError: PalletStateTrieMigrationError }
|
|
22404
22493
|
| { pallet: 'Staking'; palletError: PalletStakingAsyncPalletError }
|
|
22405
22494
|
| { pallet: 'NominationPools'; palletError: PalletNominationPoolsError }
|
|
@@ -182,6 +182,23 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
182
182
|
**/
|
|
183
183
|
[name: string]: any;
|
|
184
184
|
};
|
|
185
|
+
/**
|
|
186
|
+
* Pallet `DapSatellite`'s constants
|
|
187
|
+
**/
|
|
188
|
+
dapSatellite: {
|
|
189
|
+
/**
|
|
190
|
+
* The pallet ID used to derive the satellite account.
|
|
191
|
+
*
|
|
192
|
+
* Each runtime should configure a unique ID to avoid collisions if multiple
|
|
193
|
+
* DAP satellite instances are used.
|
|
194
|
+
**/
|
|
195
|
+
palletId: FrameSupportPalletId;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Generic pallet constant
|
|
199
|
+
**/
|
|
200
|
+
[name: string]: any;
|
|
201
|
+
};
|
|
185
202
|
/**
|
|
186
203
|
* Pallet `Authorship`'s constants
|
|
187
204
|
**/
|
|
@@ -250,7 +267,8 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
250
267
|
aura: {
|
|
251
268
|
/**
|
|
252
269
|
* The slot duration Aura should run with, expressed in milliseconds.
|
|
253
|
-
*
|
|
270
|
+
*
|
|
271
|
+
* The effective value of this type can be changed with a runtime upgrade.
|
|
254
272
|
*
|
|
255
273
|
* For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const.
|
|
256
274
|
**/
|
|
@@ -15,6 +15,7 @@ import type {
|
|
|
15
15
|
FrameSystemExtensionsCheckNonce,
|
|
16
16
|
FrameSystemExtensionsCheckWeight,
|
|
17
17
|
PalletTransactionPaymentChargeTransactionPayment,
|
|
18
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
18
19
|
} from './types.js';
|
|
19
20
|
import { ChainConsts } from './consts.js';
|
|
20
21
|
import { ChainStorage } from './query.js';
|
|
@@ -41,6 +42,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
|
41
42
|
FrameSystemExtensionsCheckNonce,
|
|
42
43
|
FrameSystemExtensionsCheckWeight,
|
|
43
44
|
PalletTransactionPaymentChargeTransactionPayment,
|
|
45
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
44
46
|
[],
|
|
45
47
|
];
|
|
46
48
|
AssetId: undefined;
|
|
@@ -49,7 +51,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
|
49
51
|
|
|
50
52
|
/**
|
|
51
53
|
* @name: WestendPeopleApi
|
|
52
|
-
* @specVersion:
|
|
54
|
+
* @specVersion: 1022001
|
|
53
55
|
**/
|
|
54
56
|
export interface WestendPeopleApi extends GenericSubstrateApi {
|
|
55
57
|
rpc: ChainJsonRpcApis;
|
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
FrameSystemLastRuntimeUpgradeInfo,
|
|
21
21
|
FrameSystemCodeUpgradeAuthorization,
|
|
22
22
|
SpWeightsWeightV2Weight,
|
|
23
|
+
CumulusPalletParachainSystemBlockWeightBlockWeightMode,
|
|
23
24
|
CumulusPalletParachainSystemUnincludedSegmentAncestor,
|
|
24
25
|
CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
|
|
25
26
|
PolkadotPrimitivesV9PersistedValidationData,
|
|
@@ -32,6 +33,7 @@ import type {
|
|
|
32
33
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
33
34
|
CumulusPalletParachainSystemParachainInherentInboundMessageId,
|
|
34
35
|
PolkadotCorePrimitivesOutboundHrmpMessage,
|
|
36
|
+
CumulusPalletParachainSystemPoVMessages,
|
|
35
37
|
PalletBalancesAccountData,
|
|
36
38
|
PalletBalancesBalanceLock,
|
|
37
39
|
PalletBalancesReserveData,
|
|
@@ -192,6 +194,13 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
192
194
|
**/
|
|
193
195
|
lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
|
|
194
196
|
|
|
197
|
+
/**
|
|
198
|
+
* Number of blocks till the pending code upgrade is applied.
|
|
199
|
+
*
|
|
200
|
+
* @param {Callback<number | undefined> =} callback
|
|
201
|
+
**/
|
|
202
|
+
blocksTillUpgrade: GenericStorageQuery<() => number | undefined>;
|
|
203
|
+
|
|
195
204
|
/**
|
|
196
205
|
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
|
|
197
206
|
*
|
|
@@ -243,6 +252,27 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
243
252
|
* Pallet `ParachainSystem`'s storage queries
|
|
244
253
|
**/
|
|
245
254
|
parachainSystem: {
|
|
255
|
+
/**
|
|
256
|
+
* The current block weight mode.
|
|
257
|
+
*
|
|
258
|
+
* This is used to determine what is the maximum allowed block weight, for more information see
|
|
259
|
+
* [`block_weight`].
|
|
260
|
+
*
|
|
261
|
+
* Killed in [`Self::on_initialize`] and set by the [`block_weight`] logic.
|
|
262
|
+
*
|
|
263
|
+
* @param {Callback<CumulusPalletParachainSystemBlockWeightBlockWeightMode | undefined> =} callback
|
|
264
|
+
**/
|
|
265
|
+
blockWeightMode: GenericStorageQuery<() => CumulusPalletParachainSystemBlockWeightBlockWeightMode | undefined>;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* The core count available to the parachain in the previous block.
|
|
269
|
+
*
|
|
270
|
+
* This is mainly used for offchain functionality to calculate the correct target block weight.
|
|
271
|
+
*
|
|
272
|
+
* @param {Callback<number | undefined> =} callback
|
|
273
|
+
**/
|
|
274
|
+
previousCoreCount: GenericStorageQuery<() => number | undefined>;
|
|
275
|
+
|
|
246
276
|
/**
|
|
247
277
|
* Latest included block descendants the runtime accepted. In other words, these are
|
|
248
278
|
* ancestors of the currently executing block which have not been included in the observed
|
|
@@ -271,8 +301,8 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
271
301
|
* applied.
|
|
272
302
|
*
|
|
273
303
|
* As soon as the relay chain gives us the go-ahead signal, we will overwrite the
|
|
274
|
-
* [`:
|
|
275
|
-
* with the new validation code. This concludes the upgrade process.
|
|
304
|
+
* [`:pending_code`][sp_core::storage::well_known_keys::PENDING_CODE] which will result the
|
|
305
|
+
* next block to be processed with the new validation code. This concludes the upgrade process.
|
|
276
306
|
*
|
|
277
307
|
* @param {Callback<Bytes> =} callback
|
|
278
308
|
**/
|
|
@@ -511,6 +541,15 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
511
541
|
**/
|
|
512
542
|
customValidationHeadData: GenericStorageQuery<() => Bytes | undefined>;
|
|
513
543
|
|
|
544
|
+
/**
|
|
545
|
+
* Tracks cumulative `UMP` and `HRMP` messages sent across blocks in the current `PoV`.
|
|
546
|
+
*
|
|
547
|
+
* Across different candidates/PoVs the budgets are tracked by [`AggregatedUnincludedSegment`].
|
|
548
|
+
*
|
|
549
|
+
* @param {Callback<CumulusPalletParachainSystemPoVMessages | undefined> =} callback
|
|
550
|
+
**/
|
|
551
|
+
poVMessagesTracker: GenericStorageQuery<() => CumulusPalletParachainSystemPoVMessages | undefined>;
|
|
552
|
+
|
|
514
553
|
/**
|
|
515
554
|
* Generic pallet storage query
|
|
516
555
|
**/
|
|
@@ -811,6 +850,17 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
811
850
|
[SpCoreCryptoKeyTypeId, Bytes]
|
|
812
851
|
>;
|
|
813
852
|
|
|
853
|
+
/**
|
|
854
|
+
* Accounts whose keys were set via `SessionInterface` (external path) without
|
|
855
|
+
* incrementing the consumer reference or placing a key deposit. `do_purge_keys`
|
|
856
|
+
* only decrements consumers for accounts that were registered through the local
|
|
857
|
+
* session pallet.
|
|
858
|
+
*
|
|
859
|
+
* @param {AccountId32Like} arg
|
|
860
|
+
* @param {Callback<[] | undefined> =} callback
|
|
861
|
+
**/
|
|
862
|
+
externallySetKeys: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>;
|
|
863
|
+
|
|
814
864
|
/**
|
|
815
865
|
* Generic pallet storage query
|
|
816
866
|
**/
|
|
@@ -4014,6 +4014,10 @@ export type FrameSystemExtensionsCheckWeight = {};
|
|
|
4014
4014
|
|
|
4015
4015
|
export type PalletTransactionPaymentChargeTransactionPayment = bigint;
|
|
4016
4016
|
|
|
4017
|
+
export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode };
|
|
4018
|
+
|
|
4019
|
+
export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
|
|
4020
|
+
|
|
4017
4021
|
export type FrameSystemAccountInfo = {
|
|
4018
4022
|
nonce: number;
|
|
4019
4023
|
consumers: number;
|
|
@@ -5223,8 +5227,17 @@ export type CumulusPalletWeightReclaimStorageWeightReclaim = [
|
|
|
5223
5227
|
FrameSystemExtensionsCheckNonce,
|
|
5224
5228
|
FrameSystemExtensionsCheckWeight,
|
|
5225
5229
|
PalletTransactionPaymentChargeTransactionPayment,
|
|
5230
|
+
FrameMetadataHashExtensionCheckMetadataHash,
|
|
5226
5231
|
];
|
|
5227
5232
|
|
|
5233
|
+
export type CumulusPalletParachainSystemBlockWeightBlockWeightMode =
|
|
5234
|
+
| { type: 'FullCore'; value: { context: number } }
|
|
5235
|
+
| {
|
|
5236
|
+
type: 'PotentialFullCore';
|
|
5237
|
+
value: { context: number; firstTransactionIndex?: number | undefined; targetWeight: SpWeightsWeightV2Weight };
|
|
5238
|
+
}
|
|
5239
|
+
| { type: 'FractionOfCore'; value: { context: number; firstTransactionIndex?: number | undefined } };
|
|
5240
|
+
|
|
5228
5241
|
export type CumulusPalletParachainSystemUnincludedSegmentAncestor = {
|
|
5229
5242
|
usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
|
|
5230
5243
|
paraHeadHash?: H256 | undefined;
|
|
@@ -5299,6 +5312,14 @@ export type PolkadotCorePrimitivesOutboundHrmpMessage = {
|
|
|
5299
5312
|
data: Bytes;
|
|
5300
5313
|
};
|
|
5301
5314
|
|
|
5315
|
+
export type CumulusPalletParachainSystemPoVMessages = {
|
|
5316
|
+
relayStorageRootOrHash: H256;
|
|
5317
|
+
coreSelector: number;
|
|
5318
|
+
bundleIndex: number;
|
|
5319
|
+
umpMsgCount: number;
|
|
5320
|
+
hrmpOutboundCount: number;
|
|
5321
|
+
};
|
|
5322
|
+
|
|
5302
5323
|
/**
|
|
5303
5324
|
* The `Error` enum of this pallet.
|
|
5304
5325
|
**/
|
|
@@ -5398,10 +5419,10 @@ export type FrameSupportStorageNoDrop = FrameSupportTokensFungibleImbalance;
|
|
|
5398
5419
|
|
|
5399
5420
|
export type FrameSupportTokensFungibleImbalance = { amount: bigint };
|
|
5400
5421
|
|
|
5401
|
-
export type PalletCollatorSelectionCandidateInfo = { who: AccountId32; deposit: bigint };
|
|
5402
|
-
|
|
5403
5422
|
export type FrameSupportPalletId = FixedBytes<8>;
|
|
5404
5423
|
|
|
5424
|
+
export type PalletCollatorSelectionCandidateInfo = { who: AccountId32; deposit: bigint };
|
|
5425
|
+
|
|
5405
5426
|
/**
|
|
5406
5427
|
* The `Error` enum of this pallet.
|
|
5407
5428
|
**/
|
|
@@ -5512,10 +5533,13 @@ export type CumulusPalletXcmpQueueOutboundChannelDetails = {
|
|
|
5512
5533
|
signalsExist: boolean;
|
|
5513
5534
|
firstIndex: number;
|
|
5514
5535
|
lastIndex: number;
|
|
5536
|
+
flags: CumulusPalletXcmpQueueOutboundChannelFlags;
|
|
5515
5537
|
};
|
|
5516
5538
|
|
|
5517
5539
|
export type CumulusPalletXcmpQueueOutboundState = 'Ok' | 'Suspended';
|
|
5518
5540
|
|
|
5541
|
+
export type CumulusPalletXcmpQueueOutboundChannelFlags = { bits: number };
|
|
5542
|
+
|
|
5519
5543
|
export type CumulusPalletXcmpQueueQueueConfigData = {
|
|
5520
5544
|
suspendThreshold: number;
|
|
5521
5545
|
dropThreshold: number;
|