@dedot/chaintypes 0.250.0 → 0.251.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/hydration/consts.d.ts +0 -5
- package/hydration/errors.d.ts +40 -2
- package/hydration/events.d.ts +20 -0
- package/hydration/index.d.ts +1 -1
- package/hydration/query.d.ts +10 -0
- package/hydration/tx.d.ts +79 -1
- package/hydration/types.d.ts +11497 -11322
- package/hydration/view-functions.d.ts +32 -1
- package/package.json +2 -2
- package/paseo-people/json-rpc.d.ts +1 -0
package/hydration/consts.d.ts
CHANGED
|
@@ -772,11 +772,6 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
772
772
|
nftCollectionId: bigint;
|
|
773
773
|
burnProtocolFee: Permill;
|
|
774
774
|
|
|
775
|
-
/**
|
|
776
|
-
* Destination account when hub asset is sold
|
|
777
|
-
**/
|
|
778
|
-
hubDestination: AccountId32;
|
|
779
|
-
|
|
780
775
|
/**
|
|
781
776
|
* Generic pallet constant
|
|
782
777
|
**/
|
package/hydration/errors.d.ts
CHANGED
|
@@ -914,6 +914,26 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
914
914
|
**/
|
|
915
915
|
BidTooLow: GenericPalletError;
|
|
916
916
|
|
|
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
|
+
|
|
917
937
|
/**
|
|
918
938
|
* Generic pallet error
|
|
919
939
|
**/
|
|
@@ -1197,6 +1217,11 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1197
1217
|
**/
|
|
1198
1218
|
CollateralCannotCoverNewBorrow: GenericPalletError;
|
|
1199
1219
|
|
|
1220
|
+
/**
|
|
1221
|
+
* Aave - the reserve is paused and no operations are allowed
|
|
1222
|
+
**/
|
|
1223
|
+
AaveReservePaused: GenericPalletError;
|
|
1224
|
+
|
|
1200
1225
|
/**
|
|
1201
1226
|
* Generic pallet error
|
|
1202
1227
|
**/
|
|
@@ -3087,9 +3112,9 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
3087
3112
|
GasLimitTooLow: GenericPalletError;
|
|
3088
3113
|
|
|
3089
3114
|
/**
|
|
3090
|
-
* Gas limit
|
|
3115
|
+
* Gas limit exceeds block gas limit.
|
|
3091
3116
|
**/
|
|
3092
|
-
|
|
3117
|
+
GasLimitExceedsBlockLimit: GenericPalletError;
|
|
3093
3118
|
|
|
3094
3119
|
/**
|
|
3095
3120
|
* The chain id is invalid.
|
|
@@ -3121,6 +3146,11 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
3121
3146
|
**/
|
|
3122
3147
|
CreateOriginNotAllowed: GenericPalletError;
|
|
3123
3148
|
|
|
3149
|
+
/**
|
|
3150
|
+
* EIP-7825: Transaction gas limit exceeds protocol cap (2^24).
|
|
3151
|
+
**/
|
|
3152
|
+
TransactionGasLimitExceedsCap: GenericPalletError;
|
|
3153
|
+
|
|
3124
3154
|
/**
|
|
3125
3155
|
* Generic pallet error
|
|
3126
3156
|
**/
|
|
@@ -3740,6 +3770,8 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
3740
3770
|
|
|
3741
3771
|
/**
|
|
3742
3772
|
* Too many locations authorized to alias origin.
|
|
3773
|
+
*
|
|
3774
|
+
* @deprecated Use `LocalExecutionIncompleteWithError` instead (since 20.0.0)
|
|
3743
3775
|
**/
|
|
3744
3776
|
TooManyAuthorizedAliases: GenericPalletError;
|
|
3745
3777
|
|
|
@@ -3753,6 +3785,12 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
3753
3785
|
**/
|
|
3754
3786
|
AliasNotFound: GenericPalletError;
|
|
3755
3787
|
|
|
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
|
+
|
|
3756
3794
|
/**
|
|
3757
3795
|
* Generic pallet error
|
|
3758
3796
|
**/
|
package/hydration/events.d.ts
CHANGED
|
@@ -878,6 +878,15 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
878
878
|
{ pure: AccountId32; who: AccountId32; proxyType: HydradxRuntimeSystemProxyType; disambiguationIndex: number }
|
|
879
879
|
>;
|
|
880
880
|
|
|
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
|
+
|
|
881
890
|
/**
|
|
882
891
|
* An announcement was placed to make a call in the future.
|
|
883
892
|
**/
|
|
@@ -1596,6 +1605,11 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
1596
1605
|
'AaveManagerCallDispatched',
|
|
1597
1606
|
{ callHash: H256; result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> }
|
|
1598
1607
|
>;
|
|
1608
|
+
EmergencyAdminCallDispatched: GenericPalletEvent<
|
|
1609
|
+
'Dispatcher',
|
|
1610
|
+
'EmergencyAdminCallDispatched',
|
|
1611
|
+
{ callHash: H256; result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> }
|
|
1612
|
+
>;
|
|
1599
1613
|
|
|
1600
1614
|
/**
|
|
1601
1615
|
* Generic pallet event
|
|
@@ -4496,6 +4510,12 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
4496
4510
|
**/
|
|
4497
4511
|
NewSession: GenericPalletEvent<'Session', 'NewSession', { sessionIndex: number }>;
|
|
4498
4512
|
|
|
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
|
+
|
|
4499
4519
|
/**
|
|
4500
4520
|
* Validator has been disabled.
|
|
4501
4521
|
**/
|
package/hydration/index.d.ts
CHANGED
package/hydration/query.d.ts
CHANGED
|
@@ -566,6 +566,8 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
566
566
|
*
|
|
567
567
|
* @param {H256} arg
|
|
568
568
|
* @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
|
|
569
|
+
*
|
|
570
|
+
* @deprecated RequestStatusFor
|
|
569
571
|
**/
|
|
570
572
|
statusFor: GenericStorageQuery<(arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
|
|
571
573
|
|
|
@@ -1629,6 +1631,14 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1629
1631
|
number
|
|
1630
1632
|
>;
|
|
1631
1633
|
|
|
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
|
+
|
|
1632
1642
|
/**
|
|
1633
1643
|
* Generic pallet storage query
|
|
1634
1644
|
**/
|
package/hydration/tx.d.ts
CHANGED
|
@@ -946,6 +946,8 @@ export interface ChainTx<
|
|
|
946
946
|
* Emits [`Event::Paid`] if successful.
|
|
947
947
|
*
|
|
948
948
|
* @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.
|
|
949
951
|
**/
|
|
950
952
|
payout: GenericTxCall<
|
|
951
953
|
(index: number) => ChainSubmittableExtrinsic<
|
|
@@ -982,6 +984,8 @@ export interface ChainTx<
|
|
|
982
984
|
* Emits [`Event::SpendProcessed`] if the spend payout has succeed.
|
|
983
985
|
*
|
|
984
986
|
* @param {number} index
|
|
987
|
+
*
|
|
988
|
+
* @deprecated The `remove_approval` call will be removed by May 2025. It associated with the deprecated `spend_local` call.
|
|
985
989
|
**/
|
|
986
990
|
checkStatus: GenericTxCall<
|
|
987
991
|
(index: number) => ChainSubmittableExtrinsic<
|
|
@@ -3115,7 +3119,7 @@ export interface ChainTx<
|
|
|
3115
3119
|
* `pure` with corresponding parameters.
|
|
3116
3120
|
*
|
|
3117
3121
|
* - `spawner`: The account that originally called `pure` to create this account.
|
|
3118
|
-
* - `index`: The disambiguation index originally passed to `
|
|
3122
|
+
* - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`.
|
|
3119
3123
|
* - `proxy_type`: The proxy type originally passed to `pure`.
|
|
3120
3124
|
* - `height`: The height of the chain when the call to `pure` was processed.
|
|
3121
3125
|
* - `ext_index`: The extrinsic index in which the call to `pure` was processed.
|
|
@@ -5418,6 +5422,35 @@ export interface ChainTx<
|
|
|
5418
5422
|
>
|
|
5419
5423
|
>;
|
|
5420
5424
|
|
|
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
|
+
|
|
5421
5454
|
/**
|
|
5422
5455
|
* Generic pallet tx call
|
|
5423
5456
|
**/
|
|
@@ -5763,6 +5796,47 @@ export interface ChainTx<
|
|
|
5763
5796
|
>
|
|
5764
5797
|
>;
|
|
5765
5798
|
|
|
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
|
+
|
|
5766
5840
|
/**
|
|
5767
5841
|
* Remove liquidity of asset `asset` in quantity `amount` from Omnipool
|
|
5768
5842
|
*
|
|
@@ -11997,6 +12071,8 @@ export interface ChainTx<
|
|
|
11997
12071
|
* @param {XcmVersionedLocation} beneficiary
|
|
11998
12072
|
* @param {XcmVersionedAssets} assets
|
|
11999
12073
|
* @param {number} feeAssetItem
|
|
12074
|
+
*
|
|
12075
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_teleport_assets` or `transfer_assets`
|
|
12000
12076
|
**/
|
|
12001
12077
|
teleportAssets: GenericTxCall<
|
|
12002
12078
|
(
|
|
@@ -12057,6 +12133,8 @@ export interface ChainTx<
|
|
|
12057
12133
|
* @param {XcmVersionedLocation} beneficiary
|
|
12058
12134
|
* @param {XcmVersionedAssets} assets
|
|
12059
12135
|
* @param {number} feeAssetItem
|
|
12136
|
+
*
|
|
12137
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_reserve_transfer_assets` or `transfer_assets`
|
|
12060
12138
|
**/
|
|
12061
12139
|
reserveTransferAssets: GenericTxCall<
|
|
12062
12140
|
(
|