@dedot/chaintypes 0.131.0 → 0.133.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/aleph/index.d.ts +2 -0
- package/aleph/view-functions.d.ts +5 -0
- package/astar/index.d.ts +2 -0
- package/astar/view-functions.d.ts +5 -0
- package/basilisk/index.d.ts +2 -0
- package/basilisk/view-functions.d.ts +5 -0
- package/hydration/index.d.ts +2 -0
- package/hydration/view-functions.d.ts +5 -0
- package/kusama/index.d.ts +2 -0
- package/kusama/view-functions.d.ts +5 -0
- package/kusama-asset-hub/index.d.ts +2 -0
- package/kusama-asset-hub/view-functions.d.ts +5 -0
- package/kusama-people/index.d.ts +2 -0
- package/kusama-people/view-functions.d.ts +5 -0
- package/moonbeam/index.d.ts +2 -0
- package/moonbeam/view-functions.d.ts +5 -0
- package/package.json +3 -3
- package/paseo/index.d.ts +2 -0
- package/paseo/view-functions.d.ts +5 -0
- package/paseo-asset-hub/index.d.ts +2 -0
- package/paseo-asset-hub/view-functions.d.ts +5 -0
- package/paseo-hydration/consts.d.ts +49 -133
- package/paseo-hydration/errors.d.ts +209 -212
- package/paseo-hydration/events.d.ts +141 -158
- package/paseo-hydration/index.d.ts +3 -1
- package/paseo-hydration/query.d.ts +101 -143
- package/paseo-hydration/runtime.d.ts +25 -0
- package/paseo-hydration/tx.d.ts +596 -682
- package/paseo-hydration/types.d.ts +945 -683
- package/paseo-hydration/view-functions.d.ts +5 -0
- package/paseo-people/index.d.ts +2 -0
- package/paseo-people/view-functions.d.ts +5 -0
- package/polkadot/index.d.ts +2 -0
- package/polkadot/view-functions.d.ts +5 -0
- package/polkadot-asset-hub/index.d.ts +2 -0
- package/polkadot-asset-hub/view-functions.d.ts +5 -0
- package/polkadot-people/index.d.ts +2 -0
- package/polkadot-people/view-functions.d.ts +5 -0
- package/substrate/index.d.ts +2 -0
- package/substrate/runtime.d.ts +11 -11
- package/substrate/types.d.ts +8 -1
- package/substrate/view-functions.d.ts +5 -0
- package/vara/index.d.ts +2 -0
- package/vara/view-functions.d.ts +5 -0
- package/westend/errors.d.ts +2 -0
- package/westend/index.d.ts +2 -0
- package/westend/query.d.ts +2 -0
- package/westend/tx.d.ts +12 -0
- package/westend/types.d.ts +11 -11
- package/westend/view-functions.d.ts +84 -0
- package/westend-asset-hub/errors.d.ts +2 -0
- package/westend-asset-hub/index.d.ts +2 -0
- package/westend-asset-hub/query.d.ts +2 -0
- package/westend-asset-hub/tx.d.ts +8 -0
- package/westend-asset-hub/types.d.ts +42 -44
- package/westend-asset-hub/view-functions.d.ts +82 -0
- package/westend-people/index.d.ts +2 -0
- package/westend-people/view-functions.d.ts +5 -0
|
@@ -13,6 +13,7 @@ import type {
|
|
|
13
13
|
Permill,
|
|
14
14
|
Perquintill,
|
|
15
15
|
H160,
|
|
16
|
+
Perbill,
|
|
16
17
|
} from 'dedot/codecs';
|
|
17
18
|
import type {
|
|
18
19
|
FrameSupportTokensMiscBalanceStatus,
|
|
@@ -33,10 +34,12 @@ import type {
|
|
|
33
34
|
PalletClaimsEthereumAddress,
|
|
34
35
|
PalletOmnipoolTradability,
|
|
35
36
|
PalletLiquidityMiningLoyaltyCurve,
|
|
37
|
+
PalletDynamicFeesAssetFeeConfig,
|
|
36
38
|
NonZeroU16,
|
|
37
39
|
PalletStableswapPoolPegInfo,
|
|
38
40
|
HydradxTraitsStableswapAssetAmount,
|
|
39
41
|
PalletStableswapTradability,
|
|
42
|
+
PalletStableswapPegSource,
|
|
40
43
|
PalletLbpPool,
|
|
41
44
|
PalletReferralsAssetAmount,
|
|
42
45
|
PalletReferralsLevel,
|
|
@@ -754,130 +757,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
754
757
|
**/
|
|
755
758
|
[prop: string]: GenericPalletEvent<Rv>;
|
|
756
759
|
};
|
|
757
|
-
/**
|
|
758
|
-
* Pallet `Elections`'s events
|
|
759
|
-
**/
|
|
760
|
-
elections: {
|
|
761
|
-
/**
|
|
762
|
-
* A new term with new_members. This indicates that enough candidates existed to run
|
|
763
|
-
* the election, not that enough have has been elected. The inner value must be examined
|
|
764
|
-
* for this purpose. A `NewTerm(\[\])` indicates that some candidates got their bond
|
|
765
|
-
* slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to
|
|
766
|
-
* begin with.
|
|
767
|
-
**/
|
|
768
|
-
NewTerm: GenericPalletEvent<Rv, 'Elections', 'NewTerm', { newMembers: Array<[AccountId32, bigint]> }>;
|
|
769
|
-
|
|
770
|
-
/**
|
|
771
|
-
* No (or not enough) candidates existed for this round. This is different from
|
|
772
|
-
* `NewTerm(\[\])`. See the description of `NewTerm`.
|
|
773
|
-
**/
|
|
774
|
-
EmptyTerm: GenericPalletEvent<Rv, 'Elections', 'EmptyTerm', null>;
|
|
775
|
-
|
|
776
|
-
/**
|
|
777
|
-
* Internal error happened while trying to perform election.
|
|
778
|
-
**/
|
|
779
|
-
ElectionError: GenericPalletEvent<Rv, 'Elections', 'ElectionError', null>;
|
|
780
|
-
|
|
781
|
-
/**
|
|
782
|
-
* A member has been removed. This should always be followed by either `NewTerm` or
|
|
783
|
-
* `EmptyTerm`.
|
|
784
|
-
**/
|
|
785
|
-
MemberKicked: GenericPalletEvent<Rv, 'Elections', 'MemberKicked', { member: AccountId32 }>;
|
|
786
|
-
|
|
787
|
-
/**
|
|
788
|
-
* Someone has renounced their candidacy.
|
|
789
|
-
**/
|
|
790
|
-
Renounced: GenericPalletEvent<Rv, 'Elections', 'Renounced', { candidate: AccountId32 }>;
|
|
791
|
-
|
|
792
|
-
/**
|
|
793
|
-
* A candidate was slashed by amount due to failing to obtain a seat as member or
|
|
794
|
-
* runner-up.
|
|
795
|
-
*
|
|
796
|
-
* Note that old members and runners-up are also candidates.
|
|
797
|
-
**/
|
|
798
|
-
CandidateSlashed: GenericPalletEvent<
|
|
799
|
-
Rv,
|
|
800
|
-
'Elections',
|
|
801
|
-
'CandidateSlashed',
|
|
802
|
-
{ candidate: AccountId32; amount: bigint }
|
|
803
|
-
>;
|
|
804
|
-
|
|
805
|
-
/**
|
|
806
|
-
* A seat holder was slashed by amount by being forcefully removed from the set.
|
|
807
|
-
**/
|
|
808
|
-
SeatHolderSlashed: GenericPalletEvent<
|
|
809
|
-
Rv,
|
|
810
|
-
'Elections',
|
|
811
|
-
'SeatHolderSlashed',
|
|
812
|
-
{ seatHolder: AccountId32; amount: bigint }
|
|
813
|
-
>;
|
|
814
|
-
|
|
815
|
-
/**
|
|
816
|
-
* Generic pallet event
|
|
817
|
-
**/
|
|
818
|
-
[prop: string]: GenericPalletEvent<Rv>;
|
|
819
|
-
};
|
|
820
|
-
/**
|
|
821
|
-
* Pallet `Council`'s events
|
|
822
|
-
**/
|
|
823
|
-
council: {
|
|
824
|
-
/**
|
|
825
|
-
* A motion (given hash) has been proposed (by given account) with a threshold (given
|
|
826
|
-
* `MemberCount`).
|
|
827
|
-
**/
|
|
828
|
-
Proposed: GenericPalletEvent<
|
|
829
|
-
Rv,
|
|
830
|
-
'Council',
|
|
831
|
-
'Proposed',
|
|
832
|
-
{ account: AccountId32; proposalIndex: number; proposalHash: H256; threshold: number }
|
|
833
|
-
>;
|
|
834
|
-
|
|
835
|
-
/**
|
|
836
|
-
* A motion (given hash) has been voted on by given account, leaving
|
|
837
|
-
* a tally (yes votes and no votes given respectively as `MemberCount`).
|
|
838
|
-
**/
|
|
839
|
-
Voted: GenericPalletEvent<
|
|
840
|
-
Rv,
|
|
841
|
-
'Council',
|
|
842
|
-
'Voted',
|
|
843
|
-
{ account: AccountId32; proposalHash: H256; voted: boolean; yes: number; no: number }
|
|
844
|
-
>;
|
|
845
|
-
|
|
846
|
-
/**
|
|
847
|
-
* A motion was approved by the required threshold.
|
|
848
|
-
**/
|
|
849
|
-
Approved: GenericPalletEvent<Rv, 'Council', 'Approved', { proposalHash: H256 }>;
|
|
850
|
-
|
|
851
|
-
/**
|
|
852
|
-
* A motion was not approved by the required threshold.
|
|
853
|
-
**/
|
|
854
|
-
Disapproved: GenericPalletEvent<Rv, 'Council', 'Disapproved', { proposalHash: H256 }>;
|
|
855
|
-
|
|
856
|
-
/**
|
|
857
|
-
* A motion was executed; result will be `Ok` if it returned without error.
|
|
858
|
-
**/
|
|
859
|
-
Executed: GenericPalletEvent<Rv, 'Council', 'Executed', { proposalHash: H256; result: Result<[], DispatchError> }>;
|
|
860
|
-
|
|
861
|
-
/**
|
|
862
|
-
* A single member did some action; result will be `Ok` if it returned without error.
|
|
863
|
-
**/
|
|
864
|
-
MemberExecuted: GenericPalletEvent<
|
|
865
|
-
Rv,
|
|
866
|
-
'Council',
|
|
867
|
-
'MemberExecuted',
|
|
868
|
-
{ proposalHash: H256; result: Result<[], DispatchError> }
|
|
869
|
-
>;
|
|
870
|
-
|
|
871
|
-
/**
|
|
872
|
-
* A proposal was closed because its threshold was reached or after its duration was up.
|
|
873
|
-
**/
|
|
874
|
-
Closed: GenericPalletEvent<Rv, 'Council', 'Closed', { proposalHash: H256; yes: number; no: number }>;
|
|
875
|
-
|
|
876
|
-
/**
|
|
877
|
-
* Generic pallet event
|
|
878
|
-
**/
|
|
879
|
-
[prop: string]: GenericPalletEvent<Rv>;
|
|
880
|
-
};
|
|
881
760
|
/**
|
|
882
761
|
* Pallet `TechnicalCommittee`'s events
|
|
883
762
|
**/
|
|
@@ -944,40 +823,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
944
823
|
**/
|
|
945
824
|
[prop: string]: GenericPalletEvent<Rv>;
|
|
946
825
|
};
|
|
947
|
-
/**
|
|
948
|
-
* Pallet `Tips`'s events
|
|
949
|
-
**/
|
|
950
|
-
tips: {
|
|
951
|
-
/**
|
|
952
|
-
* A new tip suggestion has been opened.
|
|
953
|
-
**/
|
|
954
|
-
NewTip: GenericPalletEvent<Rv, 'Tips', 'NewTip', { tipHash: H256 }>;
|
|
955
|
-
|
|
956
|
-
/**
|
|
957
|
-
* A tip suggestion has reached threshold and is closing.
|
|
958
|
-
**/
|
|
959
|
-
TipClosing: GenericPalletEvent<Rv, 'Tips', 'TipClosing', { tipHash: H256 }>;
|
|
960
|
-
|
|
961
|
-
/**
|
|
962
|
-
* A tip suggestion has been closed.
|
|
963
|
-
**/
|
|
964
|
-
TipClosed: GenericPalletEvent<Rv, 'Tips', 'TipClosed', { tipHash: H256; who: AccountId32; payout: bigint }>;
|
|
965
|
-
|
|
966
|
-
/**
|
|
967
|
-
* A tip suggestion has been retracted.
|
|
968
|
-
**/
|
|
969
|
-
TipRetracted: GenericPalletEvent<Rv, 'Tips', 'TipRetracted', { tipHash: H256 }>;
|
|
970
|
-
|
|
971
|
-
/**
|
|
972
|
-
* A tip suggestion has been slashed.
|
|
973
|
-
**/
|
|
974
|
-
TipSlashed: GenericPalletEvent<Rv, 'Tips', 'TipSlashed', { tipHash: H256; finder: AccountId32; deposit: bigint }>;
|
|
975
|
-
|
|
976
|
-
/**
|
|
977
|
-
* Generic pallet event
|
|
978
|
-
**/
|
|
979
|
-
[prop: string]: GenericPalletEvent<Rv>;
|
|
980
|
-
};
|
|
981
826
|
/**
|
|
982
827
|
* Pallet `Proxy`'s events
|
|
983
828
|
**/
|
|
@@ -2376,6 +2221,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2376
2221
|
{ assetId: number; liquidityLimit?: [number, number] | undefined }
|
|
2377
2222
|
>;
|
|
2378
2223
|
|
|
2224
|
+
/**
|
|
2225
|
+
* Asset went to lockdown
|
|
2226
|
+
**/
|
|
2227
|
+
AssetLockdown: GenericPalletEvent<Rv, 'CircuitBreaker', 'AssetLockdown', { assetId: number; until: number }>;
|
|
2228
|
+
|
|
2229
|
+
/**
|
|
2230
|
+
* Asset lockdown was removed
|
|
2231
|
+
**/
|
|
2232
|
+
AssetLockdownRemoved: GenericPalletEvent<Rv, 'CircuitBreaker', 'AssetLockdownRemoved', { assetId: number }>;
|
|
2233
|
+
|
|
2234
|
+
/**
|
|
2235
|
+
* All reserved amount of deposit was released
|
|
2236
|
+
**/
|
|
2237
|
+
DepositReleased: GenericPalletEvent<Rv, 'CircuitBreaker', 'DepositReleased', { who: AccountId32; assetId: number }>;
|
|
2238
|
+
|
|
2379
2239
|
/**
|
|
2380
2240
|
* Generic pallet event
|
|
2381
2241
|
**/
|
|
@@ -2409,6 +2269,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2409
2269
|
* Pallet `DynamicFees`'s events
|
|
2410
2270
|
**/
|
|
2411
2271
|
dynamicFees: {
|
|
2272
|
+
/**
|
|
2273
|
+
* Asset fee configuration has been set
|
|
2274
|
+
**/
|
|
2275
|
+
AssetFeeConfigSet: GenericPalletEvent<
|
|
2276
|
+
Rv,
|
|
2277
|
+
'DynamicFees',
|
|
2278
|
+
'AssetFeeConfigSet',
|
|
2279
|
+
{ assetId: number; params: PalletDynamicFeesAssetFeeConfig }
|
|
2280
|
+
>;
|
|
2281
|
+
|
|
2282
|
+
/**
|
|
2283
|
+
* Asset fee configuration has been removed
|
|
2284
|
+
**/
|
|
2285
|
+
AssetFeeConfigRemoved: GenericPalletEvent<Rv, 'DynamicFees', 'AssetFeeConfigRemoved', { assetId: number }>;
|
|
2286
|
+
|
|
2412
2287
|
/**
|
|
2413
2288
|
* Generic pallet event
|
|
2414
2289
|
**/
|
|
@@ -2614,6 +2489,26 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2614
2489
|
**/
|
|
2615
2490
|
PoolDestroyed: GenericPalletEvent<Rv, 'Stableswap', 'PoolDestroyed', { poolId: number }>;
|
|
2616
2491
|
|
|
2492
|
+
/**
|
|
2493
|
+
* Pool peg source has been updated.
|
|
2494
|
+
**/
|
|
2495
|
+
PoolPegSourceUpdated: GenericPalletEvent<
|
|
2496
|
+
Rv,
|
|
2497
|
+
'Stableswap',
|
|
2498
|
+
'PoolPegSourceUpdated',
|
|
2499
|
+
{ poolId: number; assetId: number; pegSource: PalletStableswapPegSource }
|
|
2500
|
+
>;
|
|
2501
|
+
|
|
2502
|
+
/**
|
|
2503
|
+
* Pool max peg update has been updated.
|
|
2504
|
+
**/
|
|
2505
|
+
PoolMaxPegUpdateUpdated: GenericPalletEvent<
|
|
2506
|
+
Rv,
|
|
2507
|
+
'Stableswap',
|
|
2508
|
+
'PoolMaxPegUpdateUpdated',
|
|
2509
|
+
{ poolId: number; maxPegUpdate: Permill }
|
|
2510
|
+
>;
|
|
2511
|
+
|
|
2617
2512
|
/**
|
|
2618
2513
|
* Generic pallet event
|
|
2619
2514
|
**/
|
|
@@ -2918,6 +2813,89 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2918
2813
|
**/
|
|
2919
2814
|
[prop: string]: GenericPalletEvent<Rv>;
|
|
2920
2815
|
};
|
|
2816
|
+
/**
|
|
2817
|
+
* Pallet `HSM`'s events
|
|
2818
|
+
**/
|
|
2819
|
+
hsm: {
|
|
2820
|
+
/**
|
|
2821
|
+
* A new collateral asset was added
|
|
2822
|
+
*
|
|
2823
|
+
* Parameters:
|
|
2824
|
+
* - `asset_id`: The ID of the asset added as collateral
|
|
2825
|
+
* - `pool_id`: The StableSwap pool ID where this asset belongs
|
|
2826
|
+
* - `purchase_fee`: Fee applied when buying Hollar with this asset
|
|
2827
|
+
* - `max_buy_price_coefficient`: Maximum buy price coefficient for HSM to buy back Hollar
|
|
2828
|
+
* - `buy_back_fee`: Fee applied when buying back Hollar
|
|
2829
|
+
* - `buyback_rate`: Parameter that controls how quickly HSM can buy Hollar with this asset
|
|
2830
|
+
**/
|
|
2831
|
+
CollateralAdded: GenericPalletEvent<
|
|
2832
|
+
Rv,
|
|
2833
|
+
'HSM',
|
|
2834
|
+
'CollateralAdded',
|
|
2835
|
+
{
|
|
2836
|
+
assetId: number;
|
|
2837
|
+
poolId: number;
|
|
2838
|
+
purchaseFee: Permill;
|
|
2839
|
+
maxBuyPriceCoefficient: FixedU128;
|
|
2840
|
+
buyBackFee: Permill;
|
|
2841
|
+
buybackRate: Perbill;
|
|
2842
|
+
}
|
|
2843
|
+
>;
|
|
2844
|
+
|
|
2845
|
+
/**
|
|
2846
|
+
* A collateral asset was removed
|
|
2847
|
+
*
|
|
2848
|
+
* Parameters:
|
|
2849
|
+
* - `asset_id`: The ID of the asset removed from collaterals
|
|
2850
|
+
* - `amount`: The amount of the asset that was returned (should be zero)
|
|
2851
|
+
**/
|
|
2852
|
+
CollateralRemoved: GenericPalletEvent<Rv, 'HSM', 'CollateralRemoved', { assetId: number; amount: bigint }>;
|
|
2853
|
+
|
|
2854
|
+
/**
|
|
2855
|
+
* A collateral asset was updated
|
|
2856
|
+
*
|
|
2857
|
+
* Parameters:
|
|
2858
|
+
* - `asset_id`: The ID of the updated collateral asset
|
|
2859
|
+
* - `purchase_fee`: New purchase fee if updated (None if not changed)
|
|
2860
|
+
* - `max_buy_price_coefficient`: New max buy price coefficient if updated (None if not changed)
|
|
2861
|
+
* - `buy_back_fee`: New buy back fee if updated (None if not changed)
|
|
2862
|
+
* - `buyback_rate`: New buyback rate if updated (None if not changed)
|
|
2863
|
+
**/
|
|
2864
|
+
CollateralUpdated: GenericPalletEvent<
|
|
2865
|
+
Rv,
|
|
2866
|
+
'HSM',
|
|
2867
|
+
'CollateralUpdated',
|
|
2868
|
+
{
|
|
2869
|
+
assetId: number;
|
|
2870
|
+
purchaseFee?: Permill | undefined;
|
|
2871
|
+
maxBuyPriceCoefficient?: FixedU128 | undefined;
|
|
2872
|
+
buyBackFee?: Permill | undefined;
|
|
2873
|
+
buybackRate?: Perbill | undefined;
|
|
2874
|
+
}
|
|
2875
|
+
>;
|
|
2876
|
+
|
|
2877
|
+
/**
|
|
2878
|
+
* Arbitrage executed successfully
|
|
2879
|
+
*
|
|
2880
|
+
* Parameters:
|
|
2881
|
+
* - `asset_id`: The collateral asset used in the arbitrage
|
|
2882
|
+
* - `hollar_amount`: Amount of Hollar that was included in the arbitrage operation
|
|
2883
|
+
**/
|
|
2884
|
+
ArbitrageExecuted: GenericPalletEvent<Rv, 'HSM', 'ArbitrageExecuted', { assetId: number; hollarAmount: bigint }>;
|
|
2885
|
+
|
|
2886
|
+
/**
|
|
2887
|
+
* Flash minter address set
|
|
2888
|
+
*
|
|
2889
|
+
* Parameters:
|
|
2890
|
+
* - `flash_minter`: The EVM address of the flash minter contract
|
|
2891
|
+
**/
|
|
2892
|
+
FlashMinterSet: GenericPalletEvent<Rv, 'HSM', 'FlashMinterSet', { flashMinter: H160 }>;
|
|
2893
|
+
|
|
2894
|
+
/**
|
|
2895
|
+
* Generic pallet event
|
|
2896
|
+
**/
|
|
2897
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
2898
|
+
};
|
|
2921
2899
|
/**
|
|
2922
2900
|
* Pallet `Tokens`'s events
|
|
2923
2901
|
**/
|
|
@@ -3527,6 +3505,11 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
3527
3505
|
{ block: number; error: DispatchError }
|
|
3528
3506
|
>;
|
|
3529
3507
|
|
|
3508
|
+
/**
|
|
3509
|
+
* DCA reserve for the given asset have been unlocked for a user
|
|
3510
|
+
**/
|
|
3511
|
+
ReserveUnlocked: GenericPalletEvent<Rv, 'DCA', 'ReserveUnlocked', { who: AccountId32; assetId: number }>;
|
|
3512
|
+
|
|
3530
3513
|
/**
|
|
3531
3514
|
* Generic pallet event
|
|
3532
3515
|
**/
|
|
@@ -7,6 +7,7 @@ import { ChainJsonRpcApis } from './json-rpc.js';
|
|
|
7
7
|
import { ChainErrors } from './errors.js';
|
|
8
8
|
import { ChainEvents } from './events.js';
|
|
9
9
|
import { RuntimeApis } from './runtime.js';
|
|
10
|
+
import { ChainViewFunctions } from './view-functions.js';
|
|
10
11
|
import { ChainTx } from './tx.js';
|
|
11
12
|
|
|
12
13
|
export * from './types.js';
|
|
@@ -18,12 +19,13 @@ export interface VersionedPaseoHydrationApi<Rv extends RpcVersion> extends Gener
|
|
|
18
19
|
errors: ChainErrors<Rv>;
|
|
19
20
|
events: ChainEvents<Rv>;
|
|
20
21
|
call: RuntimeApis<Rv>;
|
|
22
|
+
view: ChainViewFunctions<Rv>;
|
|
21
23
|
tx: ChainTx<Rv>;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
/**
|
|
25
27
|
* @name: PaseoHydrationApi
|
|
26
|
-
* @specVersion:
|
|
28
|
+
* @specVersion: 335
|
|
27
29
|
**/
|
|
28
30
|
export interface PaseoHydrationApi {
|
|
29
31
|
legacy: VersionedPaseoHydrationApi<RpcLegacy>;
|
|
@@ -39,11 +39,8 @@ import type {
|
|
|
39
39
|
PalletDemocracyVoteVoting,
|
|
40
40
|
PalletDemocracyVoteThreshold,
|
|
41
41
|
PalletDemocracyMetadataOwner,
|
|
42
|
-
PalletElectionsPhragmenSeatHolder,
|
|
43
|
-
PalletElectionsPhragmenVoter,
|
|
44
42
|
HydradxRuntimeRuntimeCall,
|
|
45
43
|
PalletCollectiveVotes,
|
|
46
|
-
PalletTipsOpenTip,
|
|
47
44
|
PalletProxyProxyDefinition,
|
|
48
45
|
PalletProxyAnnouncement,
|
|
49
46
|
PalletMultisigMultisig,
|
|
@@ -68,9 +65,11 @@ import type {
|
|
|
68
65
|
PalletOtcOrder,
|
|
69
66
|
PalletCircuitBreakerTradeVolumeLimit,
|
|
70
67
|
PalletCircuitBreakerLiquidityLimit,
|
|
68
|
+
PalletCircuitBreakerLockdownStatus,
|
|
71
69
|
HydradxTraitsRouterTrade,
|
|
72
70
|
HydradxTraitsRouterAssetPair,
|
|
73
71
|
PalletDynamicFeesFeeEntry,
|
|
72
|
+
PalletDynamicFeesAssetFeeConfig,
|
|
74
73
|
PalletStakingStakingData,
|
|
75
74
|
PalletStakingPosition,
|
|
76
75
|
PalletStakingVoting,
|
|
@@ -78,9 +77,11 @@ import type {
|
|
|
78
77
|
PalletStableswapPoolInfo,
|
|
79
78
|
PalletStableswapPoolPegInfo,
|
|
80
79
|
PalletStableswapTradability,
|
|
80
|
+
PalletStableswapPoolSnapshot,
|
|
81
81
|
PalletLbpPool,
|
|
82
82
|
PalletReferralsLevel,
|
|
83
83
|
PalletReferralsFeeDistribution,
|
|
84
|
+
PalletHsmCollateralInfo,
|
|
84
85
|
OrmlTokensBalanceLock,
|
|
85
86
|
OrmlTokensAccountData,
|
|
86
87
|
OrmlTokensReserveData,
|
|
@@ -763,116 +764,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
763
764
|
**/
|
|
764
765
|
[storage: string]: GenericStorageQuery<Rv>;
|
|
765
766
|
};
|
|
766
|
-
/**
|
|
767
|
-
* Pallet `Elections`'s storage queries
|
|
768
|
-
**/
|
|
769
|
-
elections: {
|
|
770
|
-
/**
|
|
771
|
-
* The current elected members.
|
|
772
|
-
*
|
|
773
|
-
* Invariant: Always sorted based on account id.
|
|
774
|
-
*
|
|
775
|
-
* @param {Callback<Array<PalletElectionsPhragmenSeatHolder>> =} callback
|
|
776
|
-
**/
|
|
777
|
-
members: GenericStorageQuery<Rv, () => Array<PalletElectionsPhragmenSeatHolder>>;
|
|
778
|
-
|
|
779
|
-
/**
|
|
780
|
-
* The current reserved runners-up.
|
|
781
|
-
*
|
|
782
|
-
* Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the
|
|
783
|
-
* last (i.e. _best_) runner-up will be replaced.
|
|
784
|
-
*
|
|
785
|
-
* @param {Callback<Array<PalletElectionsPhragmenSeatHolder>> =} callback
|
|
786
|
-
**/
|
|
787
|
-
runnersUp: GenericStorageQuery<Rv, () => Array<PalletElectionsPhragmenSeatHolder>>;
|
|
788
|
-
|
|
789
|
-
/**
|
|
790
|
-
* The present candidate list. A current member or runner-up can never enter this vector
|
|
791
|
-
* and is always implicitly assumed to be a candidate.
|
|
792
|
-
*
|
|
793
|
-
* Second element is the deposit.
|
|
794
|
-
*
|
|
795
|
-
* Invariant: Always sorted based on account id.
|
|
796
|
-
*
|
|
797
|
-
* @param {Callback<Array<[AccountId32, bigint]>> =} callback
|
|
798
|
-
**/
|
|
799
|
-
candidates: GenericStorageQuery<Rv, () => Array<[AccountId32, bigint]>>;
|
|
800
|
-
|
|
801
|
-
/**
|
|
802
|
-
* The total number of vote rounds that have happened, excluding the upcoming one.
|
|
803
|
-
*
|
|
804
|
-
* @param {Callback<number> =} callback
|
|
805
|
-
**/
|
|
806
|
-
electionRounds: GenericStorageQuery<Rv, () => number>;
|
|
807
|
-
|
|
808
|
-
/**
|
|
809
|
-
* Votes and locked stake of a particular voter.
|
|
810
|
-
*
|
|
811
|
-
* TWOX-NOTE: SAFE as `AccountId` is a crypto hash.
|
|
812
|
-
*
|
|
813
|
-
* @param {AccountId32Like} arg
|
|
814
|
-
* @param {Callback<PalletElectionsPhragmenVoter> =} callback
|
|
815
|
-
**/
|
|
816
|
-
voting: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletElectionsPhragmenVoter, AccountId32>;
|
|
817
|
-
|
|
818
|
-
/**
|
|
819
|
-
* Generic pallet storage query
|
|
820
|
-
**/
|
|
821
|
-
[storage: string]: GenericStorageQuery<Rv>;
|
|
822
|
-
};
|
|
823
|
-
/**
|
|
824
|
-
* Pallet `Council`'s storage queries
|
|
825
|
-
**/
|
|
826
|
-
council: {
|
|
827
|
-
/**
|
|
828
|
-
* The hashes of the active proposals.
|
|
829
|
-
*
|
|
830
|
-
* @param {Callback<Array<H256>> =} callback
|
|
831
|
-
**/
|
|
832
|
-
proposals: GenericStorageQuery<Rv, () => Array<H256>>;
|
|
833
|
-
|
|
834
|
-
/**
|
|
835
|
-
* Actual proposal for a given hash, if it's current.
|
|
836
|
-
*
|
|
837
|
-
* @param {H256} arg
|
|
838
|
-
* @param {Callback<HydradxRuntimeRuntimeCall | undefined> =} callback
|
|
839
|
-
**/
|
|
840
|
-
proposalOf: GenericStorageQuery<Rv, (arg: H256) => HydradxRuntimeRuntimeCall | undefined, H256>;
|
|
841
|
-
|
|
842
|
-
/**
|
|
843
|
-
* Votes on a given proposal, if it is ongoing.
|
|
844
|
-
*
|
|
845
|
-
* @param {H256} arg
|
|
846
|
-
* @param {Callback<PalletCollectiveVotes | undefined> =} callback
|
|
847
|
-
**/
|
|
848
|
-
voting: GenericStorageQuery<Rv, (arg: H256) => PalletCollectiveVotes | undefined, H256>;
|
|
849
|
-
|
|
850
|
-
/**
|
|
851
|
-
* Proposals so far.
|
|
852
|
-
*
|
|
853
|
-
* @param {Callback<number> =} callback
|
|
854
|
-
**/
|
|
855
|
-
proposalCount: GenericStorageQuery<Rv, () => number>;
|
|
856
|
-
|
|
857
|
-
/**
|
|
858
|
-
* The current members of the collective. This is stored sorted (just by value).
|
|
859
|
-
*
|
|
860
|
-
* @param {Callback<Array<AccountId32>> =} callback
|
|
861
|
-
**/
|
|
862
|
-
members: GenericStorageQuery<Rv, () => Array<AccountId32>>;
|
|
863
|
-
|
|
864
|
-
/**
|
|
865
|
-
* The prime member that helps determine the default vote behavior in case of abstentions.
|
|
866
|
-
*
|
|
867
|
-
* @param {Callback<AccountId32 | undefined> =} callback
|
|
868
|
-
**/
|
|
869
|
-
prime: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
|
|
870
|
-
|
|
871
|
-
/**
|
|
872
|
-
* Generic pallet storage query
|
|
873
|
-
**/
|
|
874
|
-
[storage: string]: GenericStorageQuery<Rv>;
|
|
875
|
-
};
|
|
876
767
|
/**
|
|
877
768
|
* Pallet `TechnicalCommittee`'s storage queries
|
|
878
769
|
**/
|
|
@@ -926,34 +817,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
926
817
|
**/
|
|
927
818
|
[storage: string]: GenericStorageQuery<Rv>;
|
|
928
819
|
};
|
|
929
|
-
/**
|
|
930
|
-
* Pallet `Tips`'s storage queries
|
|
931
|
-
**/
|
|
932
|
-
tips: {
|
|
933
|
-
/**
|
|
934
|
-
* TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value.
|
|
935
|
-
* This has the insecure enumerable hash function since the key itself is already
|
|
936
|
-
* guaranteed to be a secure hash.
|
|
937
|
-
*
|
|
938
|
-
* @param {H256} arg
|
|
939
|
-
* @param {Callback<PalletTipsOpenTip | undefined> =} callback
|
|
940
|
-
**/
|
|
941
|
-
tips: GenericStorageQuery<Rv, (arg: H256) => PalletTipsOpenTip | undefined, H256>;
|
|
942
|
-
|
|
943
|
-
/**
|
|
944
|
-
* Simple preimage lookup from the reason's hash to the original data. Again, has an
|
|
945
|
-
* insecure enumerable hash since the key is guaranteed to be the result of a secure hash.
|
|
946
|
-
*
|
|
947
|
-
* @param {H256} arg
|
|
948
|
-
* @param {Callback<Bytes | undefined> =} callback
|
|
949
|
-
**/
|
|
950
|
-
reasons: GenericStorageQuery<Rv, (arg: H256) => Bytes | undefined, H256>;
|
|
951
|
-
|
|
952
|
-
/**
|
|
953
|
-
* Generic pallet storage query
|
|
954
|
-
**/
|
|
955
|
-
[storage: string]: GenericStorageQuery<Rv>;
|
|
956
|
-
};
|
|
957
820
|
/**
|
|
958
821
|
* Pallet `Proxy`'s storage queries
|
|
959
822
|
**/
|
|
@@ -1627,6 +1490,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1627
1490
|
number
|
|
1628
1491
|
>;
|
|
1629
1492
|
|
|
1493
|
+
/**
|
|
1494
|
+
*
|
|
1495
|
+
* @param {number} arg
|
|
1496
|
+
* @param {Callback<PalletCircuitBreakerLockdownStatus | undefined> =} callback
|
|
1497
|
+
**/
|
|
1498
|
+
assetLockdownState: GenericStorageQuery<
|
|
1499
|
+
Rv,
|
|
1500
|
+
(arg: number) => PalletCircuitBreakerLockdownStatus | undefined,
|
|
1501
|
+
number
|
|
1502
|
+
>;
|
|
1503
|
+
|
|
1630
1504
|
/**
|
|
1631
1505
|
* Liquidity limits of assets for removing liquidity.
|
|
1632
1506
|
* If not set, returns the default limit.
|
|
@@ -1687,6 +1561,18 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1687
1561
|
**/
|
|
1688
1562
|
assetFee: GenericStorageQuery<Rv, (arg: number) => PalletDynamicFeesFeeEntry | undefined, number>;
|
|
1689
1563
|
|
|
1564
|
+
/**
|
|
1565
|
+
* Stores per-asset fee configuration (Fixed or Dynamic)
|
|
1566
|
+
*
|
|
1567
|
+
* @param {number} arg
|
|
1568
|
+
* @param {Callback<PalletDynamicFeesAssetFeeConfig | undefined> =} callback
|
|
1569
|
+
**/
|
|
1570
|
+
assetFeeConfiguration: GenericStorageQuery<
|
|
1571
|
+
Rv,
|
|
1572
|
+
(arg: number) => PalletDynamicFeesAssetFeeConfig | undefined,
|
|
1573
|
+
number
|
|
1574
|
+
>;
|
|
1575
|
+
|
|
1690
1576
|
/**
|
|
1691
1577
|
* Generic pallet storage query
|
|
1692
1578
|
**/
|
|
@@ -1798,6 +1684,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1798
1684
|
**/
|
|
1799
1685
|
assetTradability: GenericStorageQuery<Rv, (arg: [number, number]) => PalletStableswapTradability, [number, number]>;
|
|
1800
1686
|
|
|
1687
|
+
/**
|
|
1688
|
+
* Temporary pool state storage. Used to save a state of pool in a single block.
|
|
1689
|
+
*
|
|
1690
|
+
* @param {number} arg
|
|
1691
|
+
* @param {Callback<PalletStableswapPoolSnapshot | undefined> =} callback
|
|
1692
|
+
**/
|
|
1693
|
+
poolSnapshots: GenericStorageQuery<Rv, (arg: number) => PalletStableswapPoolSnapshot | undefined, number>;
|
|
1694
|
+
|
|
1801
1695
|
/**
|
|
1802
1696
|
* Generic pallet storage query
|
|
1803
1697
|
**/
|
|
@@ -2007,6 +1901,61 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2007
1901
|
**/
|
|
2008
1902
|
[storage: string]: GenericStorageQuery<Rv>;
|
|
2009
1903
|
};
|
|
1904
|
+
/**
|
|
1905
|
+
* Pallet `HSM`'s storage queries
|
|
1906
|
+
**/
|
|
1907
|
+
hsm: {
|
|
1908
|
+
/**
|
|
1909
|
+
* List of approved assets that Hollar can be purchased with
|
|
1910
|
+
*
|
|
1911
|
+
* This storage maps asset IDs to their collateral configuration information.
|
|
1912
|
+
* Only assets in this map can be used to mint or redeem Hollar through HSM.
|
|
1913
|
+
* Each collateral has specific parameters controlling its usage in the HSM mechanism.
|
|
1914
|
+
*
|
|
1915
|
+
* @param {number} arg
|
|
1916
|
+
* @param {Callback<PalletHsmCollateralInfo | undefined> =} callback
|
|
1917
|
+
**/
|
|
1918
|
+
collaterals: GenericStorageQuery<Rv, (arg: number) => PalletHsmCollateralInfo | undefined, number>;
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* Amount of Hollar bought with an asset in a single block
|
|
1922
|
+
*
|
|
1923
|
+
* This storage tracks how much Hollar has been bought back by HSM for each collateral
|
|
1924
|
+
* asset within the current block. This is used to enforce rate limiting on Hollar redemptions.
|
|
1925
|
+
* Values are reset to zero at the end of each block in on_finalize.
|
|
1926
|
+
*
|
|
1927
|
+
* @param {number} arg
|
|
1928
|
+
* @param {Callback<bigint> =} callback
|
|
1929
|
+
**/
|
|
1930
|
+
hollarAmountReceived: GenericStorageQuery<Rv, (arg: number) => bigint, number>;
|
|
1931
|
+
|
|
1932
|
+
/**
|
|
1933
|
+
* Address of the flash loan receiver.
|
|
1934
|
+
*
|
|
1935
|
+
* @param {Callback<H160 | undefined> =} callback
|
|
1936
|
+
**/
|
|
1937
|
+
flashMinter: GenericStorageQuery<Rv, () => H160 | undefined>;
|
|
1938
|
+
|
|
1939
|
+
/**
|
|
1940
|
+
* Generic pallet storage query
|
|
1941
|
+
**/
|
|
1942
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1943
|
+
};
|
|
1944
|
+
/**
|
|
1945
|
+
* Pallet `Parameters`'s storage queries
|
|
1946
|
+
**/
|
|
1947
|
+
parameters: {
|
|
1948
|
+
/**
|
|
1949
|
+
*
|
|
1950
|
+
* @param {Callback<boolean> =} callback
|
|
1951
|
+
**/
|
|
1952
|
+
isTestnet: GenericStorageQuery<Rv, () => boolean>;
|
|
1953
|
+
|
|
1954
|
+
/**
|
|
1955
|
+
* Generic pallet storage query
|
|
1956
|
+
**/
|
|
1957
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1958
|
+
};
|
|
2010
1959
|
/**
|
|
2011
1960
|
* Pallet `Tokens`'s storage queries
|
|
2012
1961
|
**/
|
|
@@ -2141,13 +2090,22 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2141
2090
|
/**
|
|
2142
2091
|
* Current building block's transactions and receipts.
|
|
2143
2092
|
*
|
|
2144
|
-
* @param {
|
|
2093
|
+
* @param {number} arg
|
|
2094
|
+
* @param {Callback<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3] | undefined> =} callback
|
|
2145
2095
|
**/
|
|
2146
2096
|
pending: GenericStorageQuery<
|
|
2147
2097
|
Rv,
|
|
2148
|
-
() =>
|
|
2098
|
+
(arg: number) => [EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3] | undefined,
|
|
2099
|
+
number
|
|
2149
2100
|
>;
|
|
2150
2101
|
|
|
2102
|
+
/**
|
|
2103
|
+
* Counter for the related counted storage map
|
|
2104
|
+
*
|
|
2105
|
+
* @param {Callback<number> =} callback
|
|
2106
|
+
**/
|
|
2107
|
+
counterForPending: GenericStorageQuery<Rv, () => number>;
|
|
2108
|
+
|
|
2151
2109
|
/**
|
|
2152
2110
|
* The current Ethereum block.
|
|
2153
2111
|
*
|