@dedot/chaintypes 0.122.0 → 0.131.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/astar/consts.d.ts +0 -9
- package/astar/index.d.ts +1 -1
- package/astar/query.d.ts +0 -15
- package/hydration/consts.d.ts +29 -0
- package/hydration/errors.d.ts +172 -10
- package/hydration/events.d.ts +105 -0
- package/hydration/index.d.ts +1 -1
- package/hydration/json-rpc.d.ts +1 -0
- package/hydration/query.d.ts +50 -0
- package/hydration/tx.d.ts +408 -0
- package/hydration/types.d.ts +695 -12
- package/kusama/consts.d.ts +27 -7
- package/kusama/errors.d.ts +51 -4
- package/kusama/events.d.ts +212 -4
- package/kusama/index.d.ts +1 -1
- package/kusama/query.d.ts +44 -19
- package/kusama/runtime.d.ts +22 -0
- package/kusama/tx.d.ts +377 -25
- package/kusama/types.d.ts +638 -80
- package/kusama-asset-hub/consts.d.ts +98 -2
- package/kusama-asset-hub/errors.d.ts +314 -12
- package/kusama-asset-hub/events.d.ts +157 -3
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/query.d.ts +113 -6
- package/kusama-asset-hub/runtime.d.ts +217 -1
- package/kusama-asset-hub/tx.d.ts +581 -1
- package/kusama-asset-hub/types.d.ts +1086 -26
- package/moonbeam/index.d.ts +1 -1
- package/package.json +2 -2
- package/polkadot/consts.d.ts +23 -5
- package/polkadot/errors.d.ts +51 -4
- package/polkadot/events.d.ts +207 -4
- package/polkadot/index.d.ts +1 -1
- package/polkadot/query.d.ts +44 -19
- package/polkadot/runtime.d.ts +22 -0
- package/polkadot/tx.d.ts +376 -24
- package/polkadot/types.d.ts +630 -78
- package/westend/consts.d.ts +28 -9
- package/westend/errors.d.ts +21 -37
- package/westend/events.d.ts +25 -49
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +40 -70
- package/westend/runtime.d.ts +7 -0
- package/westend/tx.d.ts +77 -124
- package/westend/types.d.ts +228 -328
- package/westend-asset-hub/consts.d.ts +41 -14
- package/westend-asset-hub/errors.d.ts +12 -96
- package/westend-asset-hub/events.d.ts +29 -81
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +61 -125
- package/westend-asset-hub/runtime.d.ts +47 -1
- package/westend-asset-hub/tx.d.ts +97 -549
- package/westend-asset-hub/types.d.ts +489 -958
package/hydration/tx.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import type {
|
|
|
22
22
|
FixedBytes,
|
|
23
23
|
Permill,
|
|
24
24
|
Perquintill,
|
|
25
|
+
Perbill,
|
|
25
26
|
} from 'dedot/codecs';
|
|
26
27
|
import type {
|
|
27
28
|
HydradxRuntimeRuntimeCallLike,
|
|
@@ -8731,6 +8732,87 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8731
8732
|
>
|
|
8732
8733
|
>;
|
|
8733
8734
|
|
|
8735
|
+
/**
|
|
8736
|
+
* Update the peg source for a specific asset in a pool.
|
|
8737
|
+
*
|
|
8738
|
+
* This function allows updating the peg source for an asset within a pool.
|
|
8739
|
+
* The pool must exist and have pegs configured. The asset must be part of the pool.
|
|
8740
|
+
* The current price is always preserved when updating the peg source.
|
|
8741
|
+
*
|
|
8742
|
+
* Parameters:
|
|
8743
|
+
* - `origin`: Must be `T::AuthorityOrigin`.
|
|
8744
|
+
* - `pool_id`: The ID of the pool containing the asset.
|
|
8745
|
+
* - `asset_id`: The ID of the asset whose peg source is to be updated.
|
|
8746
|
+
* - `peg_source`: The new peg source for the asset.
|
|
8747
|
+
*
|
|
8748
|
+
* Emits `PoolPegSourceUpdated` event when successful.
|
|
8749
|
+
*
|
|
8750
|
+
* # Errors
|
|
8751
|
+
* - `PoolNotFound`: If the specified pool does not exist.
|
|
8752
|
+
* - `NoPegSource`: If the pool does not have pegs configured.
|
|
8753
|
+
* - `AssetNotInPool`: If the specified asset is not part of the pool.
|
|
8754
|
+
*
|
|
8755
|
+
*
|
|
8756
|
+
* @param {number} poolId
|
|
8757
|
+
* @param {number} assetId
|
|
8758
|
+
* @param {PalletStableswapPegSource} pegSource
|
|
8759
|
+
**/
|
|
8760
|
+
updateAssetPegSource: GenericTxCall<
|
|
8761
|
+
Rv,
|
|
8762
|
+
(
|
|
8763
|
+
poolId: number,
|
|
8764
|
+
assetId: number,
|
|
8765
|
+
pegSource: PalletStableswapPegSource,
|
|
8766
|
+
) => ChainSubmittableExtrinsic<
|
|
8767
|
+
Rv,
|
|
8768
|
+
{
|
|
8769
|
+
pallet: 'Stableswap';
|
|
8770
|
+
palletCall: {
|
|
8771
|
+
name: 'UpdateAssetPegSource';
|
|
8772
|
+
params: { poolId: number; assetId: number; pegSource: PalletStableswapPegSource };
|
|
8773
|
+
};
|
|
8774
|
+
}
|
|
8775
|
+
>
|
|
8776
|
+
>;
|
|
8777
|
+
|
|
8778
|
+
/**
|
|
8779
|
+
* Update the maximum peg update percentage for a pool.
|
|
8780
|
+
*
|
|
8781
|
+
* This function allows updating the maximum percentage by which peg values
|
|
8782
|
+
* can change in a pool with pegs configured.
|
|
8783
|
+
*
|
|
8784
|
+
* Parameters:
|
|
8785
|
+
* - `origin`: Must be `T::AuthorityOrigin`.
|
|
8786
|
+
* - `pool_id`: The ID of the pool to update.
|
|
8787
|
+
* - `max_peg_update`: The new maximum peg update percentage.
|
|
8788
|
+
*
|
|
8789
|
+
* Emits `PoolMaxPegUpdateUpdated` event when successful.
|
|
8790
|
+
*
|
|
8791
|
+
* # Errors
|
|
8792
|
+
* - `PoolNotFound`: If the specified pool does not exist.
|
|
8793
|
+
* - `NoPegSource`: If the pool does not have pegs configured.
|
|
8794
|
+
*
|
|
8795
|
+
*
|
|
8796
|
+
* @param {number} poolId
|
|
8797
|
+
* @param {Permill} maxPegUpdate
|
|
8798
|
+
**/
|
|
8799
|
+
updatePoolMaxPegUpdate: GenericTxCall<
|
|
8800
|
+
Rv,
|
|
8801
|
+
(
|
|
8802
|
+
poolId: number,
|
|
8803
|
+
maxPegUpdate: Permill,
|
|
8804
|
+
) => ChainSubmittableExtrinsic<
|
|
8805
|
+
Rv,
|
|
8806
|
+
{
|
|
8807
|
+
pallet: 'Stableswap';
|
|
8808
|
+
palletCall: {
|
|
8809
|
+
name: 'UpdatePoolMaxPegUpdate';
|
|
8810
|
+
params: { poolId: number; maxPegUpdate: Permill };
|
|
8811
|
+
};
|
|
8812
|
+
}
|
|
8813
|
+
>
|
|
8814
|
+
>;
|
|
8815
|
+
|
|
8734
8816
|
/**
|
|
8735
8817
|
* Generic pallet tx call
|
|
8736
8818
|
**/
|
|
@@ -9638,6 +9720,332 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9638
9720
|
**/
|
|
9639
9721
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
9640
9722
|
};
|
|
9723
|
+
/**
|
|
9724
|
+
* Pallet `HSM`'s transaction calls
|
|
9725
|
+
**/
|
|
9726
|
+
hsm: {
|
|
9727
|
+
/**
|
|
9728
|
+
* Add a new collateral asset
|
|
9729
|
+
*
|
|
9730
|
+
* This function adds a new asset as an approved collateral for Hollar. Only callable by
|
|
9731
|
+
* the governance (root origin).
|
|
9732
|
+
*
|
|
9733
|
+
* Parameters:
|
|
9734
|
+
* - `origin`: Must be Root
|
|
9735
|
+
* - `asset_id`: Asset ID to be added as collateral
|
|
9736
|
+
* - `pool_id`: StableSwap pool ID where this asset and Hollar are paired
|
|
9737
|
+
* - `purchase_fee`: Fee applied when buying Hollar with this asset (added to purchase price)
|
|
9738
|
+
* - `max_buy_price_coefficient`: Maximum buy price coefficient for HSM to buy back Hollar
|
|
9739
|
+
* - `buy_back_fee`: Fee applied when buying back Hollar (subtracted from buy price)
|
|
9740
|
+
* - `buyback_rate`: Parameter that controls how quickly HSM can buy Hollar with this asset
|
|
9741
|
+
* - `max_in_holding`: Optional maximum amount of collateral HSM can hold
|
|
9742
|
+
*
|
|
9743
|
+
* Emits:
|
|
9744
|
+
* - `CollateralAdded` when the collateral is successfully added
|
|
9745
|
+
*
|
|
9746
|
+
* Errors:
|
|
9747
|
+
* - `AssetAlreadyApproved` if the asset is already registered as a collateral
|
|
9748
|
+
* - `PoolAlreadyHasCollateral` if another asset from the same pool is already approved
|
|
9749
|
+
* - `HollarNotInPool` if Hollar is not found in the specified pool
|
|
9750
|
+
* - `AssetNotInPool` if the collateral asset is not found in the specified pool
|
|
9751
|
+
* - Other errors from underlying calls
|
|
9752
|
+
*
|
|
9753
|
+
* @param {number} assetId
|
|
9754
|
+
* @param {number} poolId
|
|
9755
|
+
* @param {Permill} purchaseFee
|
|
9756
|
+
* @param {FixedU128} maxBuyPriceCoefficient
|
|
9757
|
+
* @param {Permill} buyBackFee
|
|
9758
|
+
* @param {Perbill} buybackRate
|
|
9759
|
+
* @param {bigint | undefined} maxInHolding
|
|
9760
|
+
**/
|
|
9761
|
+
addCollateralAsset: GenericTxCall<
|
|
9762
|
+
Rv,
|
|
9763
|
+
(
|
|
9764
|
+
assetId: number,
|
|
9765
|
+
poolId: number,
|
|
9766
|
+
purchaseFee: Permill,
|
|
9767
|
+
maxBuyPriceCoefficient: FixedU128,
|
|
9768
|
+
buyBackFee: Permill,
|
|
9769
|
+
buybackRate: Perbill,
|
|
9770
|
+
maxInHolding: bigint | undefined,
|
|
9771
|
+
) => ChainSubmittableExtrinsic<
|
|
9772
|
+
Rv,
|
|
9773
|
+
{
|
|
9774
|
+
pallet: 'Hsm';
|
|
9775
|
+
palletCall: {
|
|
9776
|
+
name: 'AddCollateralAsset';
|
|
9777
|
+
params: {
|
|
9778
|
+
assetId: number;
|
|
9779
|
+
poolId: number;
|
|
9780
|
+
purchaseFee: Permill;
|
|
9781
|
+
maxBuyPriceCoefficient: FixedU128;
|
|
9782
|
+
buyBackFee: Permill;
|
|
9783
|
+
buybackRate: Perbill;
|
|
9784
|
+
maxInHolding: bigint | undefined;
|
|
9785
|
+
};
|
|
9786
|
+
};
|
|
9787
|
+
}
|
|
9788
|
+
>
|
|
9789
|
+
>;
|
|
9790
|
+
|
|
9791
|
+
/**
|
|
9792
|
+
* Remove a collateral asset
|
|
9793
|
+
*
|
|
9794
|
+
* Removes an asset from the approved collaterals list. Only callable by the governance (root origin).
|
|
9795
|
+
* The collateral must have a zero balance in the HSM account before it can be removed.
|
|
9796
|
+
*
|
|
9797
|
+
* Parameters:
|
|
9798
|
+
* - `origin`: Must be Root
|
|
9799
|
+
* - `asset_id`: Asset ID to remove from collaterals
|
|
9800
|
+
*
|
|
9801
|
+
* Emits:
|
|
9802
|
+
* - `CollateralRemoved` when the collateral is successfully removed
|
|
9803
|
+
*
|
|
9804
|
+
* Errors:
|
|
9805
|
+
* - `AssetNotApproved` if the asset is not a registered collateral
|
|
9806
|
+
* - `CollateralNotEmpty` if the HSM account still holds some of this asset
|
|
9807
|
+
*
|
|
9808
|
+
* @param {number} assetId
|
|
9809
|
+
**/
|
|
9810
|
+
removeCollateralAsset: GenericTxCall<
|
|
9811
|
+
Rv,
|
|
9812
|
+
(assetId: number) => ChainSubmittableExtrinsic<
|
|
9813
|
+
Rv,
|
|
9814
|
+
{
|
|
9815
|
+
pallet: 'Hsm';
|
|
9816
|
+
palletCall: {
|
|
9817
|
+
name: 'RemoveCollateralAsset';
|
|
9818
|
+
params: { assetId: number };
|
|
9819
|
+
};
|
|
9820
|
+
}
|
|
9821
|
+
>
|
|
9822
|
+
>;
|
|
9823
|
+
|
|
9824
|
+
/**
|
|
9825
|
+
* Update collateral asset parameters
|
|
9826
|
+
*
|
|
9827
|
+
* Updates the parameters for an existing collateral asset. Only callable by the governance (root origin).
|
|
9828
|
+
* Each parameter is optional and only provided parameters will be updated.
|
|
9829
|
+
*
|
|
9830
|
+
* Parameters:
|
|
9831
|
+
* - `origin`: Must be Root
|
|
9832
|
+
* - `asset_id`: Asset ID to update
|
|
9833
|
+
* - `purchase_fee`: New purchase fee (optional)
|
|
9834
|
+
* - `max_buy_price_coefficient`: New max buy price coefficient (optional)
|
|
9835
|
+
* - `buy_back_fee`: New buy back fee (optional)
|
|
9836
|
+
* - `buyback_rate`: New buyback rate parameter (optional)
|
|
9837
|
+
* - `max_in_holding`: New maximum holding amount (optional)
|
|
9838
|
+
*
|
|
9839
|
+
* Emits:
|
|
9840
|
+
* - `CollateralUpdated` when the collateral is successfully updated
|
|
9841
|
+
*
|
|
9842
|
+
* Errors:
|
|
9843
|
+
* - `AssetNotApproved` if the asset is not a registered collateral
|
|
9844
|
+
*
|
|
9845
|
+
* @param {number} assetId
|
|
9846
|
+
* @param {Permill | undefined} purchaseFee
|
|
9847
|
+
* @param {FixedU128 | undefined} maxBuyPriceCoefficient
|
|
9848
|
+
* @param {Permill | undefined} buyBackFee
|
|
9849
|
+
* @param {Perbill | undefined} buybackRate
|
|
9850
|
+
* @param {bigint | undefined | undefined} maxInHolding
|
|
9851
|
+
**/
|
|
9852
|
+
updateCollateralAsset: GenericTxCall<
|
|
9853
|
+
Rv,
|
|
9854
|
+
(
|
|
9855
|
+
assetId: number,
|
|
9856
|
+
purchaseFee: Permill | undefined,
|
|
9857
|
+
maxBuyPriceCoefficient: FixedU128 | undefined,
|
|
9858
|
+
buyBackFee: Permill | undefined,
|
|
9859
|
+
buybackRate: Perbill | undefined,
|
|
9860
|
+
maxInHolding: bigint | undefined | undefined,
|
|
9861
|
+
) => ChainSubmittableExtrinsic<
|
|
9862
|
+
Rv,
|
|
9863
|
+
{
|
|
9864
|
+
pallet: 'Hsm';
|
|
9865
|
+
palletCall: {
|
|
9866
|
+
name: 'UpdateCollateralAsset';
|
|
9867
|
+
params: {
|
|
9868
|
+
assetId: number;
|
|
9869
|
+
purchaseFee: Permill | undefined;
|
|
9870
|
+
maxBuyPriceCoefficient: FixedU128 | undefined;
|
|
9871
|
+
buyBackFee: Permill | undefined;
|
|
9872
|
+
buybackRate: Perbill | undefined;
|
|
9873
|
+
maxInHolding: bigint | undefined | undefined;
|
|
9874
|
+
};
|
|
9875
|
+
};
|
|
9876
|
+
}
|
|
9877
|
+
>
|
|
9878
|
+
>;
|
|
9879
|
+
|
|
9880
|
+
/**
|
|
9881
|
+
* Sell asset to HSM
|
|
9882
|
+
*
|
|
9883
|
+
* This function allows users to:
|
|
9884
|
+
* 1. Sell Hollar back to HSM in exchange for collateral assets
|
|
9885
|
+
* 2. Sell collateral assets to HSM in exchange for newly minted Hollar
|
|
9886
|
+
*
|
|
9887
|
+
* The valid pairs must include Hollar as one side and an approved collateral as the other side.
|
|
9888
|
+
*
|
|
9889
|
+
* Parameters:
|
|
9890
|
+
* - `origin`: Account selling the asset
|
|
9891
|
+
* - `asset_in`: Asset ID being sold
|
|
9892
|
+
* - `asset_out`: Asset ID being bought
|
|
9893
|
+
* - `amount_in`: Amount of asset_in to sell
|
|
9894
|
+
* - `slippage_limit`: Minimum amount out for slippage protection
|
|
9895
|
+
*
|
|
9896
|
+
* Emits:
|
|
9897
|
+
* - `Swapped3` when the sell is successful
|
|
9898
|
+
*
|
|
9899
|
+
* Errors:
|
|
9900
|
+
* - `InvalidAssetPair` if the pair is not Hollar and an approved collateral
|
|
9901
|
+
* - `AssetNotApproved` if the collateral asset isn't registered
|
|
9902
|
+
* - `SlippageLimitExceeded` if the amount received is less than the slippage limit
|
|
9903
|
+
* - `MaxBuyBackExceeded` if the sell would exceed the maximum buy back rate
|
|
9904
|
+
* - `MaxBuyPriceExceeded` if the sell would exceed the maximum buy price
|
|
9905
|
+
* - `InsufficientCollateralBalance` if HSM doesn't have enough collateral
|
|
9906
|
+
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
9907
|
+
* - Other errors from underlying calls
|
|
9908
|
+
*
|
|
9909
|
+
* @param {number} assetIn
|
|
9910
|
+
* @param {number} assetOut
|
|
9911
|
+
* @param {bigint} amountIn
|
|
9912
|
+
* @param {bigint} slippageLimit
|
|
9913
|
+
**/
|
|
9914
|
+
sell: GenericTxCall<
|
|
9915
|
+
Rv,
|
|
9916
|
+
(
|
|
9917
|
+
assetIn: number,
|
|
9918
|
+
assetOut: number,
|
|
9919
|
+
amountIn: bigint,
|
|
9920
|
+
slippageLimit: bigint,
|
|
9921
|
+
) => ChainSubmittableExtrinsic<
|
|
9922
|
+
Rv,
|
|
9923
|
+
{
|
|
9924
|
+
pallet: 'Hsm';
|
|
9925
|
+
palletCall: {
|
|
9926
|
+
name: 'Sell';
|
|
9927
|
+
params: { assetIn: number; assetOut: number; amountIn: bigint; slippageLimit: bigint };
|
|
9928
|
+
};
|
|
9929
|
+
}
|
|
9930
|
+
>
|
|
9931
|
+
>;
|
|
9932
|
+
|
|
9933
|
+
/**
|
|
9934
|
+
* Buy asset from HSM
|
|
9935
|
+
*
|
|
9936
|
+
* This function allows users to:
|
|
9937
|
+
* 1. Buy Hollar from HSM using collateral assets
|
|
9938
|
+
* 2. Buy collateral assets from HSM using Hollar
|
|
9939
|
+
*
|
|
9940
|
+
* The valid pairs must include Hollar as one side and an approved collateral as the other side.
|
|
9941
|
+
*
|
|
9942
|
+
* Parameters:
|
|
9943
|
+
* - `origin`: Account buying the asset
|
|
9944
|
+
* - `asset_in`: Asset ID being sold by the user
|
|
9945
|
+
* - `asset_out`: Asset ID being bought by the user
|
|
9946
|
+
* - `amount_out`: Amount of asset_out to buy
|
|
9947
|
+
* - `slippage_limit`: Maximum amount in for slippage protection
|
|
9948
|
+
*
|
|
9949
|
+
* Emits:
|
|
9950
|
+
* - `Swapped3` when the buy is successful
|
|
9951
|
+
*
|
|
9952
|
+
* Errors:
|
|
9953
|
+
* - `InvalidAssetPair` if the pair is not Hollar and an approved collateral
|
|
9954
|
+
* - `AssetNotApproved` if the collateral asset isn't registered
|
|
9955
|
+
* - `SlippageLimitExceeded` if the amount input exceeds the slippage limit
|
|
9956
|
+
* - `MaxHoldingExceeded` if the buy would cause HSM to exceed its maximum holding
|
|
9957
|
+
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
9958
|
+
* - Other errors from underlying calls
|
|
9959
|
+
*
|
|
9960
|
+
* @param {number} assetIn
|
|
9961
|
+
* @param {number} assetOut
|
|
9962
|
+
* @param {bigint} amountOut
|
|
9963
|
+
* @param {bigint} slippageLimit
|
|
9964
|
+
**/
|
|
9965
|
+
buy: GenericTxCall<
|
|
9966
|
+
Rv,
|
|
9967
|
+
(
|
|
9968
|
+
assetIn: number,
|
|
9969
|
+
assetOut: number,
|
|
9970
|
+
amountOut: bigint,
|
|
9971
|
+
slippageLimit: bigint,
|
|
9972
|
+
) => ChainSubmittableExtrinsic<
|
|
9973
|
+
Rv,
|
|
9974
|
+
{
|
|
9975
|
+
pallet: 'Hsm';
|
|
9976
|
+
palletCall: {
|
|
9977
|
+
name: 'Buy';
|
|
9978
|
+
params: { assetIn: number; assetOut: number; amountOut: bigint; slippageLimit: bigint };
|
|
9979
|
+
};
|
|
9980
|
+
}
|
|
9981
|
+
>
|
|
9982
|
+
>;
|
|
9983
|
+
|
|
9984
|
+
/**
|
|
9985
|
+
* Execute arbitrage opportunity between HSM and collateral stable pool
|
|
9986
|
+
*
|
|
9987
|
+
* This call is designed to be triggered automatically by offchain workers. It:
|
|
9988
|
+
* 1. Detects price imbalances between HSM and a stable pool for a collateral
|
|
9989
|
+
* 2. If an opportunity exists, mints Hollar, swaps it for collateral on HSM
|
|
9990
|
+
* 3. Swaps that collateral for Hollar on the stable pool
|
|
9991
|
+
* 4. Burns the Hollar received from the arbitrage
|
|
9992
|
+
*
|
|
9993
|
+
* This helps maintain the peg of Hollar by profiting from and correcting price imbalances.
|
|
9994
|
+
* The call is unsigned and should only be executed by offchain workers.
|
|
9995
|
+
*
|
|
9996
|
+
* Parameters:
|
|
9997
|
+
* - `origin`: Must be None (unsigned)
|
|
9998
|
+
* - `collateral_asset_id`: The ID of the collateral asset to check for arbitrage
|
|
9999
|
+
*
|
|
10000
|
+
* Emits:
|
|
10001
|
+
* - `ArbitrageExecuted` when the arbitrage is successful
|
|
10002
|
+
*
|
|
10003
|
+
* Errors:
|
|
10004
|
+
* - `AssetNotApproved` if the asset is not a registered collateral
|
|
10005
|
+
* - `NoArbitrageOpportunity` if there's no profitable arbitrage opportunity
|
|
10006
|
+
* - `MaxBuyPriceExceeded` if the arbitrage would exceed the maximum buy price
|
|
10007
|
+
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
10008
|
+
* - Other errors from underlying calls
|
|
10009
|
+
*
|
|
10010
|
+
* @param {number} collateralAssetId
|
|
10011
|
+
**/
|
|
10012
|
+
executeArbitrage: GenericTxCall<
|
|
10013
|
+
Rv,
|
|
10014
|
+
(collateralAssetId: number) => ChainSubmittableExtrinsic<
|
|
10015
|
+
Rv,
|
|
10016
|
+
{
|
|
10017
|
+
pallet: 'Hsm';
|
|
10018
|
+
palletCall: {
|
|
10019
|
+
name: 'ExecuteArbitrage';
|
|
10020
|
+
params: { collateralAssetId: number };
|
|
10021
|
+
};
|
|
10022
|
+
}
|
|
10023
|
+
>
|
|
10024
|
+
>;
|
|
10025
|
+
|
|
10026
|
+
/**
|
|
10027
|
+
*
|
|
10028
|
+
* @param {H160} flashMinterAddr
|
|
10029
|
+
**/
|
|
10030
|
+
setFlashMinter: GenericTxCall<
|
|
10031
|
+
Rv,
|
|
10032
|
+
(flashMinterAddr: H160) => ChainSubmittableExtrinsic<
|
|
10033
|
+
Rv,
|
|
10034
|
+
{
|
|
10035
|
+
pallet: 'Hsm';
|
|
10036
|
+
palletCall: {
|
|
10037
|
+
name: 'SetFlashMinter';
|
|
10038
|
+
params: { flashMinterAddr: H160 };
|
|
10039
|
+
};
|
|
10040
|
+
}
|
|
10041
|
+
>
|
|
10042
|
+
>;
|
|
10043
|
+
|
|
10044
|
+
/**
|
|
10045
|
+
* Generic pallet tx call
|
|
10046
|
+
**/
|
|
10047
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
10048
|
+
};
|
|
9641
10049
|
/**
|
|
9642
10050
|
* Pallet `Tokens`'s transaction calls
|
|
9643
10051
|
**/
|