Skip to content

Commit ba2327e

Browse files
author
debot
committed
chore: regenerate chaintypes
1 parent e62272c commit ba2327e

9 files changed

Lines changed: 11680 additions & 11332 deletions

File tree

packages/chaintypes/src/hydration/consts.d.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -772,11 +772,6 @@ export interface ChainConsts extends GenericChainConsts {
772772
nftCollectionId: bigint;
773773
burnProtocolFee: Permill;
774774

775-
/**
776-
* Destination account when hub asset is sold
777-
**/
778-
hubDestination: AccountId32;
779-
780775
/**
781776
* Generic pallet constant
782777
**/

packages/chaintypes/src/hydration/errors.d.ts

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,26 @@ export interface ChainErrors extends GenericChainErrors {
914914
**/
915915
BidTooLow: GenericPalletError;
916916

917+
/**
918+
* No metadata is found.
919+
**/
920+
NoMetadata: GenericPalletError;
921+
922+
/**
923+
* Wrong metadata key/value bytes supplied.
924+
**/
925+
WrongMetadata: GenericPalletError;
926+
927+
/**
928+
* An attribute is not found.
929+
**/
930+
AttributeNotFound: GenericPalletError;
931+
932+
/**
933+
* Wrong attribute key/value bytes supplied.
934+
**/
935+
WrongAttribute: GenericPalletError;
936+
917937
/**
918938
* Generic pallet error
919939
**/
@@ -1197,6 +1217,11 @@ export interface ChainErrors extends GenericChainErrors {
11971217
**/
11981218
CollateralCannotCoverNewBorrow: GenericPalletError;
11991219

1220+
/**
1221+
* Aave - the reserve is paused and no operations are allowed
1222+
**/
1223+
AaveReservePaused: GenericPalletError;
1224+
12001225
/**
12011226
* Generic pallet error
12021227
**/
@@ -3087,9 +3112,9 @@ export interface ChainErrors extends GenericChainErrors {
30873112
GasLimitTooLow: GenericPalletError;
30883113

30893114
/**
3090-
* Gas limit is too high.
3115+
* Gas limit exceeds block gas limit.
30913116
**/
3092-
GasLimitTooHigh: GenericPalletError;
3117+
GasLimitExceedsBlockLimit: GenericPalletError;
30933118

30943119
/**
30953120
* The chain id is invalid.
@@ -3121,6 +3146,11 @@ export interface ChainErrors extends GenericChainErrors {
31213146
**/
31223147
CreateOriginNotAllowed: GenericPalletError;
31233148

3149+
/**
3150+
* EIP-7825: Transaction gas limit exceeds protocol cap (2^24).
3151+
**/
3152+
TransactionGasLimitExceedsCap: GenericPalletError;
3153+
31243154
/**
31253155
* Generic pallet error
31263156
**/
@@ -3740,6 +3770,8 @@ export interface ChainErrors extends GenericChainErrors {
37403770

37413771
/**
37423772
* Too many locations authorized to alias origin.
3773+
*
3774+
* @deprecated Use `LocalExecutionIncompleteWithError` instead (since 20.0.0)
37433775
**/
37443776
TooManyAuthorizedAliases: GenericPalletError;
37453777

@@ -3753,6 +3785,12 @@ export interface ChainErrors extends GenericChainErrors {
37533785
**/
37543786
AliasNotFound: GenericPalletError;
37553787

3788+
/**
3789+
* Local XCM execution incomplete with the actual XCM error and the index of the
3790+
* instruction that caused the error.
3791+
**/
3792+
LocalExecutionIncompleteWithError: GenericPalletError;
3793+
37563794
/**
37573795
* Generic pallet error
37583796
**/

packages/chaintypes/src/hydration/events.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,15 @@ export interface ChainEvents extends GenericChainEvents {
878878
{ pure: AccountId32; who: AccountId32; proxyType: HydradxRuntimeSystemProxyType; disambiguationIndex: number }
879879
>;
880880

881+
/**
882+
* A pure proxy was killed by its spawner.
883+
**/
884+
PureKilled: GenericPalletEvent<
885+
'Proxy',
886+
'PureKilled',
887+
{ pure: AccountId32; spawner: AccountId32; proxyType: HydradxRuntimeSystemProxyType; disambiguationIndex: number }
888+
>;
889+
881890
/**
882891
* An announcement was placed to make a call in the future.
883892
**/
@@ -1596,6 +1605,11 @@ export interface ChainEvents extends GenericChainEvents {
15961605
'AaveManagerCallDispatched',
15971606
{ callHash: H256; result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> }
15981607
>;
1608+
EmergencyAdminCallDispatched: GenericPalletEvent<
1609+
'Dispatcher',
1610+
'EmergencyAdminCallDispatched',
1611+
{ callHash: H256; result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> }
1612+
>;
15991613

16001614
/**
16011615
* Generic pallet event
@@ -4496,6 +4510,12 @@ export interface ChainEvents extends GenericChainEvents {
44964510
**/
44974511
NewSession: GenericPalletEvent<'Session', 'NewSession', { sessionIndex: number }>;
44984512

4513+
/**
4514+
* The `NewSession` event in the current block also implies a new validator set to be
4515+
* queued.
4516+
**/
4517+
NewQueued: GenericPalletEvent<'Session', 'NewQueued', null>;
4518+
44994519
/**
45004520
* Validator has been disabled.
45014521
**/

packages/chaintypes/src/hydration/index.d.ts

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

5252
/**
5353
* @name: HydrationApi
54-
* @specVersion: 398
54+
* @specVersion: 405
5555
**/
5656
export interface HydrationApi extends GenericSubstrateApi {
5757
rpc: ChainJsonRpcApis;

packages/chaintypes/src/hydration/query.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,8 @@ export interface ChainStorage extends GenericChainStorage {
566566
*
567567
* @param {H256} arg
568568
* @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
569+
*
570+
* @deprecated RequestStatusFor
569571
**/
570572
statusFor: GenericStorageQuery<(arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
571573

@@ -1629,6 +1631,14 @@ export interface ChainStorage extends GenericChainStorage {
16291631
number
16301632
>;
16311633

1634+
/**
1635+
* Per-XCM-message buffer of (withdrawn_hdx, deposited_hdx).
1636+
* None means buffer is inactive (not inside XCM message processing).
1637+
*
1638+
* @param {Callback<[bigint, bigint] | undefined> =} callback
1639+
**/
1640+
xcmEgressBuffer: GenericStorageQuery<() => [bigint, bigint] | undefined>;
1641+
16321642
/**
16331643
* Generic pallet storage query
16341644
**/

packages/chaintypes/src/hydration/tx.d.ts

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,8 @@ export interface ChainTx<
946946
* Emits [`Event::Paid`] if successful.
947947
*
948948
* @param {number} index
949+
*
950+
* @deprecated The `spend_local` call will be removed by May 2025. Migrate to the new flow and use the `spend` call.
949951
**/
950952
payout: GenericTxCall<
951953
(index: number) => ChainSubmittableExtrinsic<
@@ -982,6 +984,8 @@ export interface ChainTx<
982984
* Emits [`Event::SpendProcessed`] if the spend payout has succeed.
983985
*
984986
* @param {number} index
987+
*
988+
* @deprecated The `remove_approval` call will be removed by May 2025. It associated with the deprecated `spend_local` call.
985989
**/
986990
checkStatus: GenericTxCall<
987991
(index: number) => ChainSubmittableExtrinsic<
@@ -3115,7 +3119,7 @@ export interface ChainTx<
31153119
* `pure` with corresponding parameters.
31163120
*
31173121
* - `spawner`: The account that originally called `pure` to create this account.
3118-
* - `index`: The disambiguation index originally passed to `pure`. Probably `0`.
3122+
* - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`.
31193123
* - `proxy_type`: The proxy type originally passed to `pure`.
31203124
* - `height`: The height of the chain when the call to `pure` was processed.
31213125
* - `ext_index`: The extrinsic index in which the call to `pure` was processed.
@@ -5418,6 +5422,35 @@ export interface ChainTx<
54185422
>
54195423
>;
54205424

5425+
/**
5426+
* Dispatch a call as the emergency admin account.
5427+
*
5428+
* This is a fast path for the Technical Committee to react to emergencies
5429+
* (e.g., pausing exploited markets) without waiting for a full referendum.
5430+
* The inner call is dispatched as a Signed origin from the configured
5431+
* emergency admin account.
5432+
*
5433+
* Parameters:
5434+
* - `origin`: Must satisfy `EmergencyAdminOrigin` (TC majority or Root).
5435+
* - `call`: The runtime call to dispatch as the emergency admin.
5436+
*
5437+
* Emits `EmergencyAdminCallDispatched` with the call hash and dispatch result.
5438+
*
5439+
* @param {HydradxRuntimeRuntimeCallLike} call
5440+
**/
5441+
dispatchAsEmergencyAdmin: GenericTxCall<
5442+
(call: HydradxRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<
5443+
{
5444+
pallet: 'Dispatcher';
5445+
palletCall: {
5446+
name: 'DispatchAsEmergencyAdmin';
5447+
params: { call: HydradxRuntimeRuntimeCallLike };
5448+
};
5449+
},
5450+
ChainKnownTypes
5451+
>
5452+
>;
5453+
54215454
/**
54225455
* Generic pallet tx call
54235456
**/
@@ -5763,6 +5796,47 @@ export interface ChainTx<
57635796
>
57645797
>;
57655798

5799+
/**
5800+
* Add all available liquidity of asset `asset` to Omnipool.
5801+
*
5802+
* Deposits the caller's entire free balance of `asset`. Equivalent to calling
5803+
* `do_add_liquidity` with `amount = free_balance(asset)`.
5804+
*
5805+
* Asset's tradable state must contain ADD_LIQUIDITY flag, otherwise `NotAllowed` error is returned.
5806+
*
5807+
* NFT is minted using NTFHandler which implements non-fungibles traits from frame_support.
5808+
*
5809+
* Asset weight cap must be respected, otherwise `AssetWeightExceeded` error is returned.
5810+
* Asset weight is ratio between new HubAsset reserve and total reserve of Hub asset in Omnipool.
5811+
*
5812+
* Fails if price difference between spot price and oracle price is higher than allowed by `PriceBarrier`.
5813+
*
5814+
* Parameters:
5815+
* - `asset`: The identifier of the asset to add. Must already be in the pool.
5816+
* - `min_shares_limit`: The minimum amount of shares the caller expects to receive in the position.
5817+
*
5818+
* Emits `LiquidityAdded` event when successful.
5819+
*
5820+
*
5821+
* @param {number} asset
5822+
* @param {bigint} minSharesLimit
5823+
**/
5824+
addAllLiquidity: GenericTxCall<
5825+
(
5826+
asset: number,
5827+
minSharesLimit: bigint,
5828+
) => ChainSubmittableExtrinsic<
5829+
{
5830+
pallet: 'Omnipool';
5831+
palletCall: {
5832+
name: 'AddAllLiquidity';
5833+
params: { asset: number; minSharesLimit: bigint };
5834+
};
5835+
},
5836+
ChainKnownTypes
5837+
>
5838+
>;
5839+
57665840
/**
57675841
* Remove liquidity of asset `asset` in quantity `amount` from Omnipool
57685842
*
@@ -11997,6 +12071,8 @@ export interface ChainTx<
1199712071
* @param {XcmVersionedLocation} beneficiary
1199812072
* @param {XcmVersionedAssets} assets
1199912073
* @param {number} feeAssetItem
12074+
*
12075+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_teleport_assets` or `transfer_assets`
1200012076
**/
1200112077
teleportAssets: GenericTxCall<
1200212078
(
@@ -12057,6 +12133,8 @@ export interface ChainTx<
1205712133
* @param {XcmVersionedLocation} beneficiary
1205812134
* @param {XcmVersionedAssets} assets
1205912135
* @param {number} feeAssetItem
12136+
*
12137+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_reserve_transfer_assets` or `transfer_assets`
1206012138
**/
1206112139
reserveTransferAssets: GenericTxCall<
1206212140
(

0 commit comments

Comments
 (0)