Skip to content

Commit ba36d81

Browse files
author
debot
committed
chore: regenerate chaintypes
1 parent 974baa7 commit ba36d81

18 files changed

Lines changed: 758 additions & 254 deletions

File tree

packages/chaintypes/src/westend-asset-hub/consts.d.ts

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ export interface ChainConsts extends GenericChainConsts {
343343
aura: {
344344
/**
345345
* The slot duration Aura should run with, expressed in milliseconds.
346-
* The effective value of this type should not change while the chain is running.
346+
*
347+
* The effective value of this type can be changed with a runtime upgrade.
347348
*
348349
* For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const.
349350
**/
@@ -1117,6 +1118,29 @@ export interface ChainConsts extends GenericChainConsts {
11171118
**/
11181119
[name: string]: any;
11191120
};
1121+
/**
1122+
* Pallet `AssetsPrecompiles`'s constants
1123+
**/
1124+
assetsPrecompiles: {
1125+
/**
1126+
* Generic pallet constant
1127+
**/
1128+
[name: string]: any;
1129+
};
1130+
/**
1131+
* Pallet `AssetsPrecompilesPermit`'s constants
1132+
**/
1133+
assetsPrecompilesPermit: {
1134+
/**
1135+
* The chain ID used in EIP-712 domain separator.
1136+
**/
1137+
chainId: bigint;
1138+
1139+
/**
1140+
* Generic pallet constant
1141+
**/
1142+
[name: string]: any;
1143+
};
11201144
/**
11211145
* Pallet `StateTrieMigration`'s constants
11221146
**/
@@ -1409,6 +1433,11 @@ export interface ChainConsts extends GenericChainConsts {
14091433
* Pallet `StakingRcClient`'s constants
14101434
**/
14111435
stakingRcClient: {
1436+
/**
1437+
* Deposit held when a validator sets session keys. Released on `purge_keys`.
1438+
**/
1439+
keyDeposit: bigint;
1440+
14121441
/**
14131442
* Generic pallet constant
14141443
**/

packages/chaintypes/src/westend-asset-hub/errors.d.ts

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2269,6 +2269,55 @@ export interface ChainErrors extends GenericChainErrors {
22692269
**/
22702270
[error: string]: GenericPalletError;
22712271
};
2272+
/**
2273+
* Pallet `AssetsPrecompilesPermit`'s errors
2274+
**/
2275+
assetsPrecompilesPermit: {
2276+
/**
2277+
* The permit signature is invalid.
2278+
**/
2279+
InvalidSignature: GenericPalletError;
2280+
2281+
/**
2282+
* The signer does not match the owner.
2283+
**/
2284+
SignerMismatch: GenericPalletError;
2285+
2286+
/**
2287+
* The permit has expired (deadline passed).
2288+
**/
2289+
PermitExpired: GenericPalletError;
2290+
2291+
/**
2292+
* The signature's `s` value is too high (malleability protection).
2293+
**/
2294+
SignatureSValueTooHigh: GenericPalletError;
2295+
2296+
/**
2297+
* The signature's `v` value is invalid.
2298+
**/
2299+
InvalidVValue: GenericPalletError;
2300+
2301+
/**
2302+
* Nonce overflow - account has used too many permits.
2303+
**/
2304+
NonceOverflow: GenericPalletError;
2305+
2306+
/**
2307+
* The owner address is invalid (e.g., zero address).
2308+
**/
2309+
InvalidOwner: GenericPalletError;
2310+
2311+
/**
2312+
* The spender address is invalid (e.g., zero address).
2313+
**/
2314+
InvalidSpender: GenericPalletError;
2315+
2316+
/**
2317+
* Generic pallet error
2318+
**/
2319+
[error: string]: GenericPalletError;
2320+
};
22722321
/**
22732322
* Pallet `StateTrieMigration`'s errors
22742323
**/

packages/chaintypes/src/westend-asset-hub/events.d.ts

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,6 +1781,26 @@ export interface ChainEvents extends GenericChainEvents {
17811781
**/
17821782
ReservesRemoved: GenericPalletEvent<'Assets', 'ReservesRemoved', { assetId: number }>;
17831783

1784+
/**
1785+
* Some assets were issued as Credit (no owner yet).
1786+
**/
1787+
IssuedCredit: GenericPalletEvent<'Assets', 'IssuedCredit', { assetId: number; amount: bigint }>;
1788+
1789+
/**
1790+
* Some assets Credit was destroyed.
1791+
**/
1792+
BurnedCredit: GenericPalletEvent<'Assets', 'BurnedCredit', { assetId: number; amount: bigint }>;
1793+
1794+
/**
1795+
* Some assets were burned and a Debt was created.
1796+
**/
1797+
IssuedDebt: GenericPalletEvent<'Assets', 'IssuedDebt', { assetId: number; amount: bigint }>;
1798+
1799+
/**
1800+
* Some assets Debt was destroyed (and assets issued).
1801+
**/
1802+
BurnedDebt: GenericPalletEvent<'Assets', 'BurnedDebt', { assetId: number; amount: bigint }>;
1803+
17841804
/**
17851805
* Generic pallet event
17861806
**/
@@ -2523,6 +2543,34 @@ export interface ChainEvents extends GenericChainEvents {
25232543
**/
25242544
ReservesRemoved: GenericPalletEvent<'ForeignAssets', 'ReservesRemoved', { assetId: StagingXcmV5Location }>;
25252545

2546+
/**
2547+
* Some assets were issued as Credit (no owner yet).
2548+
**/
2549+
IssuedCredit: GenericPalletEvent<
2550+
'ForeignAssets',
2551+
'IssuedCredit',
2552+
{ assetId: StagingXcmV5Location; amount: bigint }
2553+
>;
2554+
2555+
/**
2556+
* Some assets Credit was destroyed.
2557+
**/
2558+
BurnedCredit: GenericPalletEvent<
2559+
'ForeignAssets',
2560+
'BurnedCredit',
2561+
{ assetId: StagingXcmV5Location; amount: bigint }
2562+
>;
2563+
2564+
/**
2565+
* Some assets were burned and a Debt was created.
2566+
**/
2567+
IssuedDebt: GenericPalletEvent<'ForeignAssets', 'IssuedDebt', { assetId: StagingXcmV5Location; amount: bigint }>;
2568+
2569+
/**
2570+
* Some assets Debt was destroyed (and assets issued).
2571+
**/
2572+
BurnedDebt: GenericPalletEvent<'ForeignAssets', 'BurnedDebt', { assetId: StagingXcmV5Location; amount: bigint }>;
2573+
25262574
/**
25272575
* Generic pallet event
25282576
**/
@@ -2736,6 +2784,26 @@ export interface ChainEvents extends GenericChainEvents {
27362784
**/
27372785
ReservesRemoved: GenericPalletEvent<'PoolAssets', 'ReservesRemoved', { assetId: number }>;
27382786

2787+
/**
2788+
* Some assets were issued as Credit (no owner yet).
2789+
**/
2790+
IssuedCredit: GenericPalletEvent<'PoolAssets', 'IssuedCredit', { assetId: number; amount: bigint }>;
2791+
2792+
/**
2793+
* Some assets Credit was destroyed.
2794+
**/
2795+
BurnedCredit: GenericPalletEvent<'PoolAssets', 'BurnedCredit', { assetId: number; amount: bigint }>;
2796+
2797+
/**
2798+
* Some assets were burned and a Debt was created.
2799+
**/
2800+
IssuedDebt: GenericPalletEvent<'PoolAssets', 'IssuedDebt', { assetId: number; amount: bigint }>;
2801+
2802+
/**
2803+
* Some assets Debt was destroyed (and assets issued).
2804+
**/
2805+
BurnedDebt: GenericPalletEvent<'PoolAssets', 'BurnedDebt', { assetId: number; amount: bigint }>;
2806+
27392807
/**
27402808
* Generic pallet event
27412809
**/

packages/chaintypes/src/westend-asset-hub/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
5454

5555
/**
5656
* @name: WestendAssetHubApi
57-
* @specVersion: 1022000
57+
* @specVersion: 1022001
5858
**/
5959
export interface WestendAssetHubApi extends GenericSubstrateApi {
6060
rpc: ChainJsonRpcApis;

packages/chaintypes/src/westend-asset-hub/query.d.ts

Lines changed: 112 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import type {
1212
BytesLike,
1313
FixedBytes,
1414
H160,
15+
U256,
1516
Perbill,
1617
Percent,
1718
} from 'dedot/codecs';
@@ -22,6 +23,7 @@ import type {
2223
FrameSystemLastRuntimeUpgradeInfo,
2324
FrameSystemCodeUpgradeAuthorization,
2425
SpWeightsWeightV2Weight,
26+
CumulusPalletParachainSystemBlockWeightBlockWeightMode,
2527
CumulusPalletParachainSystemUnincludedSegmentAncestor,
2628
CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
2729
PolkadotPrimitivesV9PersistedValidationData,
@@ -34,6 +36,7 @@ import type {
3436
PolkadotParachainPrimitivesPrimitivesId,
3537
CumulusPalletParachainSystemParachainInherentInboundMessageId,
3638
PolkadotCorePrimitivesOutboundHrmpMessage,
39+
CumulusPalletParachainSystemPoVMessages,
3740
PalletMigrationsMigrationCursor,
3841
PalletPreimageOldRequestStatus,
3942
PalletPreimageRequestStatus,
@@ -270,6 +273,13 @@ export interface ChainStorage extends GenericChainStorage {
270273
**/
271274
lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
272275

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+
273283
/**
274284
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
275285
*
@@ -321,6 +331,27 @@ export interface ChainStorage extends GenericChainStorage {
321331
* Pallet `ParachainSystem`'s storage queries
322332
**/
323333
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+
324355
/**
325356
* Latest included block descendants the runtime accepted. In other words, these are
326357
* ancestors of the currently executing block which have not been included in the observed
@@ -349,8 +380,8 @@ export interface ChainStorage extends GenericChainStorage {
349380
* applied.
350381
*
351382
* As soon as the relay chain gives us the go-ahead signal, we will overwrite the
352-
* [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
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.
354385
*
355386
* @param {Callback<Bytes> =} callback
356387
**/
@@ -589,6 +620,15 @@ export interface ChainStorage extends GenericChainStorage {
589620
**/
590621
customValidationHeadData: GenericStorageQuery<() => Bytes | undefined>;
591622

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+
592632
/**
593633
* Generic pallet storage query
594634
**/
@@ -1040,6 +1080,17 @@ export interface ChainStorage extends GenericChainStorage {
10401080
[SpCoreCryptoKeyTypeId, Bytes]
10411081
>;
10421082

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+
10431094
/**
10441095
* Generic pallet storage query
10451096
**/
@@ -2278,6 +2329,65 @@ export interface ChainStorage extends GenericChainStorage {
22782329
**/
22792330
[storage: string]: GenericStorageQuery;
22802331
};
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+
};
22812391
/**
22822392
* Pallet `StateTrieMigration`'s storage queries
22832393
**/

0 commit comments

Comments
 (0)