Skip to content

Commit 1f94a37

Browse files
author
debot
committed
chore: regenerate chaintypes
1 parent a201ce7 commit 1f94a37

File tree

9 files changed

+580
-504
lines changed

9 files changed

+580
-504
lines changed

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,21 +1303,6 @@ export interface ChainConsts extends GenericChainConsts {
13031303
**/
13041304
[name: string]: any;
13051305
};
1306-
/**
1307-
* Pallet `FastUnstake`'s constants
1308-
**/
1309-
fastUnstake: {
1310-
/**
1311-
* Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
1312-
* the costs of resources on unsuccessful unstake.
1313-
**/
1314-
deposit: bigint;
1315-
1316-
/**
1317-
* Generic pallet constant
1318-
**/
1319-
[name: string]: any;
1320-
};
13211306
/**
13221307
* Pallet `VoterList`'s constants
13231308
**/

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

Lines changed: 30 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,6 +1067,11 @@ export interface ChainErrors extends GenericChainErrors {
10671067
**/
10681068
ContainsHolds: GenericPalletError;
10691069

1070+
/**
1071+
* Tried setting too many reserves.
1072+
**/
1073+
TooManyReserves: GenericPalletError;
1074+
10701075
/**
10711076
* Generic pallet error
10721077
**/
@@ -1547,6 +1552,11 @@ export interface ChainErrors extends GenericChainErrors {
15471552
**/
15481553
ContainsHolds: GenericPalletError;
15491554

1555+
/**
1556+
* Tried setting too many reserves.
1557+
**/
1558+
TooManyReserves: GenericPalletError;
1559+
15501560
/**
15511561
* Generic pallet error
15521562
**/
@@ -1703,6 +1713,11 @@ export interface ChainErrors extends GenericChainErrors {
17031713
**/
17041714
ContainsHolds: GenericPalletError;
17051715

1716+
/**
1717+
* Tried setting too many reserves.
1718+
**/
1719+
TooManyReserves: GenericPalletError;
1720+
17061721
/**
17071722
* Generic pallet error
17081723
**/
@@ -2147,6 +2162,21 @@ export interface ChainErrors extends GenericChainErrors {
21472162
**/
21482163
TxFeeOverdraw: GenericPalletError;
21492164

2165+
/**
2166+
* When calling an EVM constructor `data` has to be empty.
2167+
*
2168+
* EVM constructors do not accept data. Their input data is part of the code blob itself.
2169+
**/
2170+
EvmConstructorNonEmptyData: GenericPalletError;
2171+
2172+
/**
2173+
* Tried to construct an EVM contract via code hash.
2174+
*
2175+
* EVM contracts can only be instantiated via code upload as no initcode is
2176+
* stored on-chain.
2177+
**/
2178+
EvmConstructedFromHash: GenericPalletError;
2179+
21502180
/**
21512181
* Generic pallet error
21522182
**/
@@ -2659,47 +2689,6 @@ export interface ChainErrors extends GenericChainErrors {
26592689
**/
26602690
[error: string]: GenericPalletError;
26612691
};
2662-
/**
2663-
* Pallet `FastUnstake`'s errors
2664-
**/
2665-
fastUnstake: {
2666-
/**
2667-
* The provided Controller account was not found.
2668-
*
2669-
* This means that the given account is not bonded.
2670-
**/
2671-
NotController: GenericPalletError;
2672-
2673-
/**
2674-
* The bonded account has already been queued.
2675-
**/
2676-
AlreadyQueued: GenericPalletError;
2677-
2678-
/**
2679-
* The bonded account has active unlocking chunks.
2680-
**/
2681-
NotFullyBonded: GenericPalletError;
2682-
2683-
/**
2684-
* The provided un-staker is not in the `Queue`.
2685-
**/
2686-
NotQueued: GenericPalletError;
2687-
2688-
/**
2689-
* The provided un-staker is already in Head, and cannot deregister.
2690-
**/
2691-
AlreadyHead: GenericPalletError;
2692-
2693-
/**
2694-
* The call is not allowed at this point because the pallet is not active.
2695-
**/
2696-
CallNotAllowed: GenericPalletError;
2697-
2698-
/**
2699-
* Generic pallet error
2700-
**/
2701-
[error: string]: GenericPalletError;
2702-
};
27032692
/**
27042693
* Pallet `VoterList`'s errors
27052694
**/

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

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import type {
3737
PalletNftsAttributeNamespace,
3838
PalletNftsPriceWithDirection,
3939
PalletNftsPalletAttributes,
40+
AssetsCommonLocalAndForeignAssetsForeignAssetReserveData,
4041
PalletStateTrieMigrationMigrationCompute,
4142
PalletStateTrieMigrationError,
4243
PalletStakingAsyncRewardDestination,
@@ -1770,6 +1771,16 @@ export interface ChainEvents extends GenericChainEvents {
17701771
**/
17711772
Withdrawn: GenericPalletEvent<'Assets', 'Withdrawn', { assetId: number; who: AccountId32; amount: bigint }>;
17721773

1774+
/**
1775+
* Reserve information was set or updated for `asset_id`.
1776+
**/
1777+
ReservesUpdated: GenericPalletEvent<'Assets', 'ReservesUpdated', { assetId: number; reserves: Array<[]> }>;
1778+
1779+
/**
1780+
* Reserve information was removed for `asset_id`.
1781+
**/
1782+
ReservesRemoved: GenericPalletEvent<'Assets', 'ReservesRemoved', { assetId: number }>;
1783+
17731784
/**
17741785
* Generic pallet event
17751786
**/
@@ -2498,6 +2509,20 @@ export interface ChainEvents extends GenericChainEvents {
24982509
{ assetId: StagingXcmV5Location; who: AccountId32; amount: bigint }
24992510
>;
25002511

2512+
/**
2513+
* Reserve information was set or updated for `asset_id`.
2514+
**/
2515+
ReservesUpdated: GenericPalletEvent<
2516+
'ForeignAssets',
2517+
'ReservesUpdated',
2518+
{ assetId: StagingXcmV5Location; reserves: Array<AssetsCommonLocalAndForeignAssetsForeignAssetReserveData> }
2519+
>;
2520+
2521+
/**
2522+
* Reserve information was removed for `asset_id`.
2523+
**/
2524+
ReservesRemoved: GenericPalletEvent<'ForeignAssets', 'ReservesRemoved', { assetId: StagingXcmV5Location }>;
2525+
25012526
/**
25022527
* Generic pallet event
25032528
**/
@@ -2701,6 +2726,16 @@ export interface ChainEvents extends GenericChainEvents {
27012726
**/
27022727
Withdrawn: GenericPalletEvent<'PoolAssets', 'Withdrawn', { assetId: number; who: AccountId32; amount: bigint }>;
27032728

2729+
/**
2730+
* Reserve information was set or updated for `asset_id`.
2731+
**/
2732+
ReservesUpdated: GenericPalletEvent<'PoolAssets', 'ReservesUpdated', { assetId: number; reserves: Array<[]> }>;
2733+
2734+
/**
2735+
* Reserve information was removed for `asset_id`.
2736+
**/
2737+
ReservesRemoved: GenericPalletEvent<'PoolAssets', 'ReservesRemoved', { assetId: number }>;
2738+
27042739
/**
27052740
* Generic pallet event
27062741
**/
@@ -3660,43 +3695,6 @@ export interface ChainEvents extends GenericChainEvents {
36603695
**/
36613696
[prop: string]: GenericPalletEvent;
36623697
};
3663-
/**
3664-
* Pallet `FastUnstake`'s events
3665-
**/
3666-
fastUnstake: {
3667-
/**
3668-
* A staker was unstaked.
3669-
**/
3670-
Unstaked: GenericPalletEvent<'FastUnstake', 'Unstaked', { stash: AccountId32; result: Result<[], DispatchError> }>;
3671-
3672-
/**
3673-
* A staker was slashed for requesting fast-unstake whilst being exposed.
3674-
**/
3675-
Slashed: GenericPalletEvent<'FastUnstake', 'Slashed', { stash: AccountId32; amount: bigint }>;
3676-
3677-
/**
3678-
* A batch was partially checked for the given eras, but the process did not finish.
3679-
**/
3680-
BatchChecked: GenericPalletEvent<'FastUnstake', 'BatchChecked', { eras: Array<number> }>;
3681-
3682-
/**
3683-
* A batch of a given size was terminated.
3684-
*
3685-
* This is always follows by a number of `Unstaked` or `Slashed` events, marking the end
3686-
* of the batch. A new batch will be created upon next block.
3687-
**/
3688-
BatchFinished: GenericPalletEvent<'FastUnstake', 'BatchFinished', { size: number }>;
3689-
3690-
/**
3691-
* An internal error happened. Operations will be paused now.
3692-
**/
3693-
InternalError: GenericPalletEvent<'FastUnstake', 'InternalError', null>;
3694-
3695-
/**
3696-
* Generic pallet event
3697-
**/
3698-
[prop: string]: GenericPalletEvent;
3699-
};
37003698
/**
37013699
* Pallet `VoterList`'s events
37023700
**/

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: 1020005
57+
* @specVersion: 1021000
5858
**/
5959
export interface WestendAssetHubApi extends GenericSubstrateApi {
6060
rpc: ChainJsonRpcApis;

0 commit comments

Comments
 (0)