@dedot/chaintypes 0.174.0 → 0.175.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/package.json +2 -2
- package/paseo-hydration/consts.d.ts +46 -12
- package/paseo-hydration/errors.d.ts +103 -13
- package/paseo-hydration/events.d.ts +416 -0
- package/paseo-hydration/index.d.ts +1 -1
- package/paseo-hydration/query.d.ts +239 -15
- package/paseo-hydration/runtime.d.ts +121 -0
- package/paseo-hydration/tx.d.ts +353 -19
- package/paseo-hydration/types.d.ts +889 -42
|
@@ -113,6 +113,10 @@ export type HydradxRuntimeRuntimeEvent =
|
|
|
113
113
|
| { pallet: 'UnknownTokens'; palletEvent: OrmlUnknownTokensModuleEvent }
|
|
114
114
|
| { pallet: 'CollatorSelection'; palletEvent: PalletCollatorSelectionEvent }
|
|
115
115
|
| { pallet: 'Session'; palletEvent: PalletSessionEvent }
|
|
116
|
+
| { pallet: 'Ismp'; palletEvent: PalletIsmpEvent }
|
|
117
|
+
| { pallet: 'IsmpParachain'; palletEvent: IsmpParachainEvent }
|
|
118
|
+
| { pallet: 'Hyperbridge'; palletEvent: PalletHyperbridgeEvent }
|
|
119
|
+
| { pallet: 'TokenGateway'; palletEvent: PalletTokenGatewayEvent }
|
|
116
120
|
| { pallet: 'EmaOracle'; palletEvent: PalletEmaOracleEvent }
|
|
117
121
|
| { pallet: 'Broadcast'; palletEvent: PalletBroadcastEvent };
|
|
118
122
|
|
|
@@ -1308,6 +1312,9 @@ export type HydradxRuntimeRuntimeCall =
|
|
|
1308
1312
|
| { pallet: 'XTokens'; palletCall: OrmlXtokensModuleCall }
|
|
1309
1313
|
| { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCall }
|
|
1310
1314
|
| { pallet: 'Session'; palletCall: PalletSessionCall }
|
|
1315
|
+
| { pallet: 'Ismp'; palletCall: PalletIsmpCall }
|
|
1316
|
+
| { pallet: 'IsmpParachain'; palletCall: IsmpParachainCall }
|
|
1317
|
+
| { pallet: 'TokenGateway'; palletCall: PalletTokenGatewayCall }
|
|
1311
1318
|
| { pallet: 'EmaOracle'; palletCall: PalletEmaOracleCall }
|
|
1312
1319
|
| { pallet: 'Broadcast'; palletCall: PalletBroadcastCall };
|
|
1313
1320
|
|
|
@@ -1371,6 +1378,9 @@ export type HydradxRuntimeRuntimeCallLike =
|
|
|
1371
1378
|
| { pallet: 'XTokens'; palletCall: OrmlXtokensModuleCallLike }
|
|
1372
1379
|
| { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCallLike }
|
|
1373
1380
|
| { pallet: 'Session'; palletCall: PalletSessionCallLike }
|
|
1381
|
+
| { pallet: 'Ismp'; palletCall: PalletIsmpCallLike }
|
|
1382
|
+
| { pallet: 'IsmpParachain'; palletCall: IsmpParachainCallLike }
|
|
1383
|
+
| { pallet: 'TokenGateway'; palletCall: PalletTokenGatewayCallLike }
|
|
1374
1384
|
| { pallet: 'EmaOracle'; palletCall: PalletEmaOracleCallLike }
|
|
1375
1385
|
| { pallet: 'Broadcast'; palletCall: PalletBroadcastCallLike };
|
|
1376
1386
|
|
|
@@ -6823,41 +6833,65 @@ export type PalletDusterCall =
|
|
|
6823
6833
|
/**
|
|
6824
6834
|
* Dust specified account.
|
|
6825
6835
|
* IF account balance is < min. existential deposit of given currency, and account is allowed to
|
|
6826
|
-
* be dusted, the remaining balance is transferred to
|
|
6836
|
+
* be dusted, the remaining balance is transferred to treasury account.
|
|
6827
6837
|
*
|
|
6828
|
-
*
|
|
6838
|
+
* In case of AToken, we perform an erc20 dust, which does a wihtdraw all then supply atoken on behalf of the dust receiver
|
|
6839
|
+
*
|
|
6840
|
+
* The transaction fee is returned back in case of successful dusting.
|
|
6841
|
+
*
|
|
6842
|
+
* Treasury account can never be dusted.
|
|
6843
|
+
*
|
|
6844
|
+
* Emits `Dusted` event when successful.
|
|
6829
6845
|
**/
|
|
6830
6846
|
| { name: 'DustAccount'; params: { account: AccountId32; currencyId: number } }
|
|
6831
6847
|
/**
|
|
6832
|
-
* Add account to list of
|
|
6833
|
-
* If such account should be dusted - `
|
|
6848
|
+
* Add account to list of whitelist accounts. Account which are excluded from dusting.
|
|
6849
|
+
* If such account should be dusted - `AccountWhitelisted` error is returned.
|
|
6834
6850
|
* Only root can perform this action.
|
|
6851
|
+
*
|
|
6852
|
+
* Emits `Added` event when successful.
|
|
6853
|
+
*
|
|
6835
6854
|
**/
|
|
6836
|
-
| { name: '
|
|
6855
|
+
| { name: 'WhitelistAccount'; params: { account: AccountId32 } }
|
|
6837
6856
|
/**
|
|
6838
|
-
* Remove account from list of
|
|
6857
|
+
* Remove account from list of whitelist accounts. That means account can be dusted again.
|
|
6858
|
+
*
|
|
6859
|
+
* Emits `Removed` event when successful.
|
|
6860
|
+
*
|
|
6839
6861
|
**/
|
|
6840
|
-
| { name: '
|
|
6862
|
+
| { name: 'RemoveFromWhitelist'; params: { account: AccountId32 } };
|
|
6841
6863
|
|
|
6842
6864
|
export type PalletDusterCallLike =
|
|
6843
6865
|
/**
|
|
6844
6866
|
* Dust specified account.
|
|
6845
6867
|
* IF account balance is < min. existential deposit of given currency, and account is allowed to
|
|
6846
|
-
* be dusted, the remaining balance is transferred to
|
|
6868
|
+
* be dusted, the remaining balance is transferred to treasury account.
|
|
6847
6869
|
*
|
|
6848
|
-
*
|
|
6870
|
+
* In case of AToken, we perform an erc20 dust, which does a wihtdraw all then supply atoken on behalf of the dust receiver
|
|
6871
|
+
*
|
|
6872
|
+
* The transaction fee is returned back in case of successful dusting.
|
|
6873
|
+
*
|
|
6874
|
+
* Treasury account can never be dusted.
|
|
6875
|
+
*
|
|
6876
|
+
* Emits `Dusted` event when successful.
|
|
6849
6877
|
**/
|
|
6850
6878
|
| { name: 'DustAccount'; params: { account: AccountId32Like; currencyId: number } }
|
|
6851
6879
|
/**
|
|
6852
|
-
* Add account to list of
|
|
6853
|
-
* If such account should be dusted - `
|
|
6880
|
+
* Add account to list of whitelist accounts. Account which are excluded from dusting.
|
|
6881
|
+
* If such account should be dusted - `AccountWhitelisted` error is returned.
|
|
6854
6882
|
* Only root can perform this action.
|
|
6883
|
+
*
|
|
6884
|
+
* Emits `Added` event when successful.
|
|
6885
|
+
*
|
|
6855
6886
|
**/
|
|
6856
|
-
| { name: '
|
|
6887
|
+
| { name: 'WhitelistAccount'; params: { account: AccountId32Like } }
|
|
6857
6888
|
/**
|
|
6858
|
-
* Remove account from list of
|
|
6889
|
+
* Remove account from list of whitelist accounts. That means account can be dusted again.
|
|
6890
|
+
*
|
|
6891
|
+
* Emits `Removed` event when successful.
|
|
6892
|
+
*
|
|
6859
6893
|
**/
|
|
6860
|
-
| { name: '
|
|
6894
|
+
| { name: 'RemoveFromWhitelist'; params: { account: AccountId32Like } };
|
|
6861
6895
|
|
|
6862
6896
|
/**
|
|
6863
6897
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -9935,32 +9969,59 @@ export type PalletHsmCall =
|
|
|
9935
9969
|
**/
|
|
9936
9970
|
| { name: 'Buy'; params: { assetIn: number; assetOut: number; amountOut: bigint; slippageLimit: bigint } }
|
|
9937
9971
|
/**
|
|
9938
|
-
* Execute arbitrage opportunity between HSM and collateral stable pool
|
|
9972
|
+
* Execute arbitrage opportunity between HSM and collateral stable pool using flash loans
|
|
9939
9973
|
*
|
|
9940
|
-
* This call is designed to be triggered automatically by offchain workers. It
|
|
9941
|
-
*
|
|
9942
|
-
*
|
|
9943
|
-
*
|
|
9944
|
-
*
|
|
9974
|
+
* This call is designed to be triggered automatically by offchain workers. It executes
|
|
9975
|
+
* arbitrage by taking a flash loan from the GHO contract and performing trades to profit
|
|
9976
|
+
* from price imbalances between HSM and the StableSwap pool.
|
|
9977
|
+
*
|
|
9978
|
+
* The arbitrage execution flow:
|
|
9979
|
+
* 1. Takes a flash loan of Hollar from the GHO contract
|
|
9980
|
+
* 2. Executes trades between HSM and StableSwap pool based on arbitrage direction:
|
|
9981
|
+
* - For HollarIn (buy direction): Sell Hollar to HSM for collateral, then sell collateral back for Hollar in pool
|
|
9982
|
+
* - For HollarOut (sell direction): Sell Hollar for collateral in pool, then buy Hollar back from HSM
|
|
9983
|
+
* 3. Repays the flash loan
|
|
9984
|
+
* 4. Any remaining profit (in collateral) is transferred to the ArbitrageProfitReceiver
|
|
9945
9985
|
*
|
|
9946
9986
|
* This helps maintain the peg of Hollar by profiting from and correcting price imbalances.
|
|
9947
9987
|
* The call is unsigned and should only be executed by offchain workers.
|
|
9948
9988
|
*
|
|
9949
9989
|
* Parameters:
|
|
9950
9990
|
* - `origin`: Must be None (unsigned)
|
|
9951
|
-
* - `collateral_asset_id`: The ID of the collateral asset to
|
|
9991
|
+
* - `collateral_asset_id`: The ID of the collateral asset to use for arbitrage
|
|
9992
|
+
* - `arbitrage`: Optional arbitrage parameters (direction and amount). If None, the function
|
|
9993
|
+
* will automatically find and calculate the optimal arbitrage opportunity.
|
|
9952
9994
|
*
|
|
9953
9995
|
* Emits:
|
|
9954
9996
|
* - `ArbitrageExecuted` when the arbitrage is successful
|
|
9955
9997
|
*
|
|
9956
9998
|
* Errors:
|
|
9999
|
+
* - `FlashMinterNotSet` if the flash minter contract address has not been configured
|
|
9957
10000
|
* - `AssetNotApproved` if the asset is not a registered collateral
|
|
9958
10001
|
* - `NoArbitrageOpportunity` if there's no profitable arbitrage opportunity
|
|
9959
10002
|
* - `MaxBuyPriceExceeded` if the arbitrage would exceed the maximum buy price
|
|
10003
|
+
* - `MaxBuyBackExceeded` if the arbitrage would exceed the buyback limit
|
|
9960
10004
|
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
9961
10005
|
* - Other errors from underlying calls
|
|
9962
10006
|
**/
|
|
9963
|
-
| { name: 'ExecuteArbitrage'; params: { collateralAssetId: number;
|
|
10007
|
+
| { name: 'ExecuteArbitrage'; params: { collateralAssetId: number; arbitrage?: PalletHsmArbitrage | undefined } }
|
|
10008
|
+
/**
|
|
10009
|
+
* Set the flash minter contract address
|
|
10010
|
+
*
|
|
10011
|
+
* Configures the EVM address of the flash loan contract that will be used for arbitrage
|
|
10012
|
+
* operations. This contract must support the ERC-3156 flash loan standard and be trusted
|
|
10013
|
+
* to handle flash loans of Hollar tokens.
|
|
10014
|
+
*
|
|
10015
|
+
* Parameters:
|
|
10016
|
+
* - `origin`: Must be authorized (governance/root)
|
|
10017
|
+
* - `flash_minter_addr`: The EVM address of the flash minter contract
|
|
10018
|
+
*
|
|
10019
|
+
* Emits:
|
|
10020
|
+
* - `FlashMinterSet` when the address is successfully configured
|
|
10021
|
+
*
|
|
10022
|
+
* Errors:
|
|
10023
|
+
* - Authorization errors if origin is not authorized
|
|
10024
|
+
**/
|
|
9964
10025
|
| { name: 'SetFlashMinter'; params: { flashMinterAddr: H160 } };
|
|
9965
10026
|
|
|
9966
10027
|
export type PalletHsmCallLike =
|
|
@@ -10111,34 +10172,63 @@ export type PalletHsmCallLike =
|
|
|
10111
10172
|
**/
|
|
10112
10173
|
| { name: 'Buy'; params: { assetIn: number; assetOut: number; amountOut: bigint; slippageLimit: bigint } }
|
|
10113
10174
|
/**
|
|
10114
|
-
* Execute arbitrage opportunity between HSM and collateral stable pool
|
|
10175
|
+
* Execute arbitrage opportunity between HSM and collateral stable pool using flash loans
|
|
10176
|
+
*
|
|
10177
|
+
* This call is designed to be triggered automatically by offchain workers. It executes
|
|
10178
|
+
* arbitrage by taking a flash loan from the GHO contract and performing trades to profit
|
|
10179
|
+
* from price imbalances between HSM and the StableSwap pool.
|
|
10115
10180
|
*
|
|
10116
|
-
*
|
|
10117
|
-
* 1.
|
|
10118
|
-
* 2.
|
|
10119
|
-
*
|
|
10120
|
-
*
|
|
10181
|
+
* The arbitrage execution flow:
|
|
10182
|
+
* 1. Takes a flash loan of Hollar from the GHO contract
|
|
10183
|
+
* 2. Executes trades between HSM and StableSwap pool based on arbitrage direction:
|
|
10184
|
+
* - For HollarIn (buy direction): Sell Hollar to HSM for collateral, then sell collateral back for Hollar in pool
|
|
10185
|
+
* - For HollarOut (sell direction): Sell Hollar for collateral in pool, then buy Hollar back from HSM
|
|
10186
|
+
* 3. Repays the flash loan
|
|
10187
|
+
* 4. Any remaining profit (in collateral) is transferred to the ArbitrageProfitReceiver
|
|
10121
10188
|
*
|
|
10122
10189
|
* This helps maintain the peg of Hollar by profiting from and correcting price imbalances.
|
|
10123
10190
|
* The call is unsigned and should only be executed by offchain workers.
|
|
10124
10191
|
*
|
|
10125
10192
|
* Parameters:
|
|
10126
10193
|
* - `origin`: Must be None (unsigned)
|
|
10127
|
-
* - `collateral_asset_id`: The ID of the collateral asset to
|
|
10194
|
+
* - `collateral_asset_id`: The ID of the collateral asset to use for arbitrage
|
|
10195
|
+
* - `arbitrage`: Optional arbitrage parameters (direction and amount). If None, the function
|
|
10196
|
+
* will automatically find and calculate the optimal arbitrage opportunity.
|
|
10128
10197
|
*
|
|
10129
10198
|
* Emits:
|
|
10130
10199
|
* - `ArbitrageExecuted` when the arbitrage is successful
|
|
10131
10200
|
*
|
|
10132
10201
|
* Errors:
|
|
10202
|
+
* - `FlashMinterNotSet` if the flash minter contract address has not been configured
|
|
10133
10203
|
* - `AssetNotApproved` if the asset is not a registered collateral
|
|
10134
10204
|
* - `NoArbitrageOpportunity` if there's no profitable arbitrage opportunity
|
|
10135
10205
|
* - `MaxBuyPriceExceeded` if the arbitrage would exceed the maximum buy price
|
|
10206
|
+
* - `MaxBuyBackExceeded` if the arbitrage would exceed the buyback limit
|
|
10136
10207
|
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
10137
10208
|
* - Other errors from underlying calls
|
|
10138
10209
|
**/
|
|
10139
|
-
| { name: 'ExecuteArbitrage'; params: { collateralAssetId: number;
|
|
10210
|
+
| { name: 'ExecuteArbitrage'; params: { collateralAssetId: number; arbitrage?: PalletHsmArbitrage | undefined } }
|
|
10211
|
+
/**
|
|
10212
|
+
* Set the flash minter contract address
|
|
10213
|
+
*
|
|
10214
|
+
* Configures the EVM address of the flash loan contract that will be used for arbitrage
|
|
10215
|
+
* operations. This contract must support the ERC-3156 flash loan standard and be trusted
|
|
10216
|
+
* to handle flash loans of Hollar tokens.
|
|
10217
|
+
*
|
|
10218
|
+
* Parameters:
|
|
10219
|
+
* - `origin`: Must be authorized (governance/root)
|
|
10220
|
+
* - `flash_minter_addr`: The EVM address of the flash minter contract
|
|
10221
|
+
*
|
|
10222
|
+
* Emits:
|
|
10223
|
+
* - `FlashMinterSet` when the address is successfully configured
|
|
10224
|
+
*
|
|
10225
|
+
* Errors:
|
|
10226
|
+
* - Authorization errors if origin is not authorized
|
|
10227
|
+
**/
|
|
10140
10228
|
| { name: 'SetFlashMinter'; params: { flashMinterAddr: H160 } };
|
|
10141
10229
|
|
|
10230
|
+
export type PalletHsmArbitrage = { type: 'HollarOut'; value: bigint } | { type: 'HollarIn'; value: bigint };
|
|
10231
|
+
|
|
10142
10232
|
/**
|
|
10143
10233
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
10144
10234
|
**/
|
|
@@ -13628,6 +13718,323 @@ export type HydradxRuntimeOpaqueSessionKeys = { aura: SpConsensusAuraSr25519AppS
|
|
|
13628
13718
|
|
|
13629
13719
|
export type SpConsensusAuraSr25519AppSr25519Public = FixedBytes<32>;
|
|
13630
13720
|
|
|
13721
|
+
/**
|
|
13722
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
13723
|
+
**/
|
|
13724
|
+
export type PalletIsmpCall =
|
|
13725
|
+
/**
|
|
13726
|
+
* Execute the provided batch of ISMP messages, this will short-circuit and revert if any
|
|
13727
|
+
* of the provided messages are invalid. This is an unsigned extrinsic that permits anyone
|
|
13728
|
+
* execute ISMP messages for free, provided they have valid proofs and the messages have
|
|
13729
|
+
* not been previously processed.
|
|
13730
|
+
*
|
|
13731
|
+
* The dispatch origin for this call must be an unsigned one.
|
|
13732
|
+
*
|
|
13733
|
+
* - `messages`: the messages to handle or process.
|
|
13734
|
+
*
|
|
13735
|
+
* Emits different message events based on the Message received if successful.
|
|
13736
|
+
**/
|
|
13737
|
+
| { name: 'HandleUnsigned'; params: { messages: Array<IsmpMessagingMessage> } }
|
|
13738
|
+
/**
|
|
13739
|
+
* Create a consensus client, using a subjectively chosen consensus state. This can also
|
|
13740
|
+
* be used to overwrite an existing consensus state. The dispatch origin for this
|
|
13741
|
+
* call must be `T::AdminOrigin`.
|
|
13742
|
+
*
|
|
13743
|
+
* - `message`: [`CreateConsensusState`] struct.
|
|
13744
|
+
*
|
|
13745
|
+
* Emits [`Event::ConsensusClientCreated`] if successful.
|
|
13746
|
+
**/
|
|
13747
|
+
| { name: 'CreateConsensusClient'; params: { message: IsmpMessagingCreateConsensusState } }
|
|
13748
|
+
/**
|
|
13749
|
+
* Modify the unbonding period and challenge period for a consensus state.
|
|
13750
|
+
* The dispatch origin for this call must be `T::AdminOrigin`.
|
|
13751
|
+
*
|
|
13752
|
+
* - `message`: `UpdateConsensusState` struct.
|
|
13753
|
+
**/
|
|
13754
|
+
| { name: 'UpdateConsensusState'; params: { message: PalletIsmpUtilsUpdateConsensusState } }
|
|
13755
|
+
/**
|
|
13756
|
+
* Add more funds to a message (request or response) to be used for delivery and execution.
|
|
13757
|
+
*
|
|
13758
|
+
* Should not be called on a message that has been completed (delivered or timed-out) as
|
|
13759
|
+
* those funds will be lost forever.
|
|
13760
|
+
**/
|
|
13761
|
+
| { name: 'FundMessage'; params: { message: PalletIsmpUtilsFundMessageParams } };
|
|
13762
|
+
|
|
13763
|
+
export type PalletIsmpCallLike =
|
|
13764
|
+
/**
|
|
13765
|
+
* Execute the provided batch of ISMP messages, this will short-circuit and revert if any
|
|
13766
|
+
* of the provided messages are invalid. This is an unsigned extrinsic that permits anyone
|
|
13767
|
+
* execute ISMP messages for free, provided they have valid proofs and the messages have
|
|
13768
|
+
* not been previously processed.
|
|
13769
|
+
*
|
|
13770
|
+
* The dispatch origin for this call must be an unsigned one.
|
|
13771
|
+
*
|
|
13772
|
+
* - `messages`: the messages to handle or process.
|
|
13773
|
+
*
|
|
13774
|
+
* Emits different message events based on the Message received if successful.
|
|
13775
|
+
**/
|
|
13776
|
+
| { name: 'HandleUnsigned'; params: { messages: Array<IsmpMessagingMessage> } }
|
|
13777
|
+
/**
|
|
13778
|
+
* Create a consensus client, using a subjectively chosen consensus state. This can also
|
|
13779
|
+
* be used to overwrite an existing consensus state. The dispatch origin for this
|
|
13780
|
+
* call must be `T::AdminOrigin`.
|
|
13781
|
+
*
|
|
13782
|
+
* - `message`: [`CreateConsensusState`] struct.
|
|
13783
|
+
*
|
|
13784
|
+
* Emits [`Event::ConsensusClientCreated`] if successful.
|
|
13785
|
+
**/
|
|
13786
|
+
| { name: 'CreateConsensusClient'; params: { message: IsmpMessagingCreateConsensusState } }
|
|
13787
|
+
/**
|
|
13788
|
+
* Modify the unbonding period and challenge period for a consensus state.
|
|
13789
|
+
* The dispatch origin for this call must be `T::AdminOrigin`.
|
|
13790
|
+
*
|
|
13791
|
+
* - `message`: `UpdateConsensusState` struct.
|
|
13792
|
+
**/
|
|
13793
|
+
| { name: 'UpdateConsensusState'; params: { message: PalletIsmpUtilsUpdateConsensusState } }
|
|
13794
|
+
/**
|
|
13795
|
+
* Add more funds to a message (request or response) to be used for delivery and execution.
|
|
13796
|
+
*
|
|
13797
|
+
* Should not be called on a message that has been completed (delivered or timed-out) as
|
|
13798
|
+
* those funds will be lost forever.
|
|
13799
|
+
**/
|
|
13800
|
+
| { name: 'FundMessage'; params: { message: PalletIsmpUtilsFundMessageParams } };
|
|
13801
|
+
|
|
13802
|
+
export type IsmpMessagingMessage =
|
|
13803
|
+
| { type: 'Consensus'; value: IsmpMessagingConsensusMessage }
|
|
13804
|
+
| { type: 'FraudProof'; value: IsmpMessagingFraudProofMessage }
|
|
13805
|
+
| { type: 'Request'; value: IsmpMessagingRequestMessage }
|
|
13806
|
+
| { type: 'Response'; value: IsmpMessagingResponseMessage }
|
|
13807
|
+
| { type: 'Timeout'; value: IsmpMessagingTimeoutMessage };
|
|
13808
|
+
|
|
13809
|
+
export type IsmpMessagingConsensusMessage = { consensusProof: Bytes; consensusStateId: FixedBytes<4>; signer: Bytes };
|
|
13810
|
+
|
|
13811
|
+
export type IsmpMessagingFraudProofMessage = { proof1: Bytes; proof2: Bytes; consensusStateId: FixedBytes<4> };
|
|
13812
|
+
|
|
13813
|
+
export type IsmpMessagingRequestMessage = {
|
|
13814
|
+
requests: Array<IsmpRouterPostRequest>;
|
|
13815
|
+
proof: IsmpMessagingProof;
|
|
13816
|
+
signer: Bytes;
|
|
13817
|
+
};
|
|
13818
|
+
|
|
13819
|
+
export type IsmpRouterPostRequest = {
|
|
13820
|
+
source: IsmpHostStateMachine;
|
|
13821
|
+
dest: IsmpHostStateMachine;
|
|
13822
|
+
nonce: bigint;
|
|
13823
|
+
from: Bytes;
|
|
13824
|
+
to: Bytes;
|
|
13825
|
+
timeoutTimestamp: bigint;
|
|
13826
|
+
body: Bytes;
|
|
13827
|
+
};
|
|
13828
|
+
|
|
13829
|
+
export type IsmpHostStateMachine =
|
|
13830
|
+
| { type: 'Evm'; value: number }
|
|
13831
|
+
| { type: 'Polkadot'; value: number }
|
|
13832
|
+
| { type: 'Kusama'; value: number }
|
|
13833
|
+
| { type: 'Substrate'; value: FixedBytes<4> }
|
|
13834
|
+
| { type: 'Tendermint'; value: FixedBytes<4> };
|
|
13835
|
+
|
|
13836
|
+
export type IsmpMessagingProof = { height: IsmpConsensusStateMachineHeight; proof: Bytes };
|
|
13837
|
+
|
|
13838
|
+
export type IsmpConsensusStateMachineHeight = { id: IsmpConsensusStateMachineId; height: bigint };
|
|
13839
|
+
|
|
13840
|
+
export type IsmpConsensusStateMachineId = { stateId: IsmpHostStateMachine; consensusStateId: FixedBytes<4> };
|
|
13841
|
+
|
|
13842
|
+
export type IsmpMessagingResponseMessage = {
|
|
13843
|
+
datagram: IsmpRouterRequestResponse;
|
|
13844
|
+
proof: IsmpMessagingProof;
|
|
13845
|
+
signer: Bytes;
|
|
13846
|
+
};
|
|
13847
|
+
|
|
13848
|
+
export type IsmpRouterRequestResponse =
|
|
13849
|
+
| { type: 'Request'; value: Array<IsmpRouterRequest> }
|
|
13850
|
+
| { type: 'Response'; value: Array<IsmpRouterResponse> };
|
|
13851
|
+
|
|
13852
|
+
export type IsmpRouterRequest =
|
|
13853
|
+
| { type: 'Post'; value: IsmpRouterPostRequest }
|
|
13854
|
+
| { type: 'Get'; value: IsmpRouterGetRequest };
|
|
13855
|
+
|
|
13856
|
+
export type IsmpRouterGetRequest = {
|
|
13857
|
+
source: IsmpHostStateMachine;
|
|
13858
|
+
dest: IsmpHostStateMachine;
|
|
13859
|
+
nonce: bigint;
|
|
13860
|
+
from: Bytes;
|
|
13861
|
+
keys: Array<Bytes>;
|
|
13862
|
+
height: bigint;
|
|
13863
|
+
context: Bytes;
|
|
13864
|
+
timeoutTimestamp: bigint;
|
|
13865
|
+
};
|
|
13866
|
+
|
|
13867
|
+
export type IsmpRouterResponse =
|
|
13868
|
+
| { type: 'Post'; value: IsmpRouterPostResponse }
|
|
13869
|
+
| { type: 'Get'; value: IsmpRouterGetResponse };
|
|
13870
|
+
|
|
13871
|
+
export type IsmpRouterPostResponse = { post: IsmpRouterPostRequest; response: Bytes; timeoutTimestamp: bigint };
|
|
13872
|
+
|
|
13873
|
+
export type IsmpRouterGetResponse = { get: IsmpRouterGetRequest; values: Array<IsmpRouterStorageValue> };
|
|
13874
|
+
|
|
13875
|
+
export type IsmpRouterStorageValue = { key: Bytes; value?: Bytes | undefined };
|
|
13876
|
+
|
|
13877
|
+
export type IsmpMessagingTimeoutMessage =
|
|
13878
|
+
| { type: 'Post'; value: { requests: Array<IsmpRouterRequest>; timeoutProof: IsmpMessagingProof } }
|
|
13879
|
+
| { type: 'PostResponse'; value: { responses: Array<IsmpRouterPostResponse>; timeoutProof: IsmpMessagingProof } }
|
|
13880
|
+
| { type: 'Get'; value: { requests: Array<IsmpRouterRequest> } };
|
|
13881
|
+
|
|
13882
|
+
export type IsmpMessagingCreateConsensusState = {
|
|
13883
|
+
consensusState: Bytes;
|
|
13884
|
+
consensusClientId: FixedBytes<4>;
|
|
13885
|
+
consensusStateId: FixedBytes<4>;
|
|
13886
|
+
unbondingPeriod: bigint;
|
|
13887
|
+
challengePeriods: Array<[IsmpHostStateMachine, bigint]>;
|
|
13888
|
+
stateMachineCommitments: Array<[IsmpConsensusStateMachineId, IsmpMessagingStateCommitmentHeight]>;
|
|
13889
|
+
};
|
|
13890
|
+
|
|
13891
|
+
export type IsmpMessagingStateCommitmentHeight = { commitment: IsmpConsensusStateCommitment; height: bigint };
|
|
13892
|
+
|
|
13893
|
+
export type IsmpConsensusStateCommitment = { timestamp: bigint; overlayRoot?: H256 | undefined; stateRoot: H256 };
|
|
13894
|
+
|
|
13895
|
+
export type PalletIsmpUtilsUpdateConsensusState = {
|
|
13896
|
+
consensusStateId: FixedBytes<4>;
|
|
13897
|
+
unbondingPeriod?: bigint | undefined;
|
|
13898
|
+
challengePeriods: Array<[IsmpHostStateMachine, bigint]>;
|
|
13899
|
+
};
|
|
13900
|
+
|
|
13901
|
+
export type PalletIsmpUtilsFundMessageParams = { commitment: PalletIsmpUtilsMessageCommitment; amount: bigint };
|
|
13902
|
+
|
|
13903
|
+
export type PalletIsmpUtilsMessageCommitment = { type: 'Request'; value: H256 } | { type: 'Response'; value: H256 };
|
|
13904
|
+
|
|
13905
|
+
/**
|
|
13906
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
13907
|
+
**/
|
|
13908
|
+
export type IsmpParachainCall =
|
|
13909
|
+
/**
|
|
13910
|
+
* This allows block builders submit parachain consensus proofs as inherents. If the
|
|
13911
|
+
* provided [`ConsensusMessage`] is not for a parachain, this call will fail.
|
|
13912
|
+
**/
|
|
13913
|
+
| { name: 'UpdateParachainConsensus'; params: { data: IsmpMessagingConsensusMessage } }
|
|
13914
|
+
/**
|
|
13915
|
+
* Add some new parachains to the parachains whitelist
|
|
13916
|
+
**/
|
|
13917
|
+
| { name: 'AddParachain'; params: { paraIds: Array<IsmpParachainParachainData> } }
|
|
13918
|
+
/**
|
|
13919
|
+
* Removes some parachains from the parachains whitelist
|
|
13920
|
+
**/
|
|
13921
|
+
| { name: 'RemoveParachain'; params: { paraIds: Array<number> } };
|
|
13922
|
+
|
|
13923
|
+
export type IsmpParachainCallLike =
|
|
13924
|
+
/**
|
|
13925
|
+
* This allows block builders submit parachain consensus proofs as inherents. If the
|
|
13926
|
+
* provided [`ConsensusMessage`] is not for a parachain, this call will fail.
|
|
13927
|
+
**/
|
|
13928
|
+
| { name: 'UpdateParachainConsensus'; params: { data: IsmpMessagingConsensusMessage } }
|
|
13929
|
+
/**
|
|
13930
|
+
* Add some new parachains to the parachains whitelist
|
|
13931
|
+
**/
|
|
13932
|
+
| { name: 'AddParachain'; params: { paraIds: Array<IsmpParachainParachainData> } }
|
|
13933
|
+
/**
|
|
13934
|
+
* Removes some parachains from the parachains whitelist
|
|
13935
|
+
**/
|
|
13936
|
+
| { name: 'RemoveParachain'; params: { paraIds: Array<number> } };
|
|
13937
|
+
|
|
13938
|
+
export type IsmpParachainParachainData = { id: number; slotDuration: bigint };
|
|
13939
|
+
|
|
13940
|
+
/**
|
|
13941
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
13942
|
+
**/
|
|
13943
|
+
export type PalletTokenGatewayCall =
|
|
13944
|
+
/**
|
|
13945
|
+
* Teleports a registered asset
|
|
13946
|
+
* locks the asset and dispatches a request to token gateway on the destination
|
|
13947
|
+
**/
|
|
13948
|
+
| { name: 'Teleport'; params: { params: PalletTokenGatewayTeleportParams } }
|
|
13949
|
+
/**
|
|
13950
|
+
* Set the token gateway address for specified chains
|
|
13951
|
+
**/
|
|
13952
|
+
| { name: 'SetTokenGatewayAddresses'; params: { addresses: Array<[IsmpHostStateMachine, Bytes]> } }
|
|
13953
|
+
/**
|
|
13954
|
+
* Registers a multi-chain ERC6160 asset. The asset should not already exist.
|
|
13955
|
+
*
|
|
13956
|
+
* This works by dispatching a request to the TokenGateway module on each requested chain
|
|
13957
|
+
* to create the asset.
|
|
13958
|
+
* `native` should be true if this asset originates from this chain
|
|
13959
|
+
**/
|
|
13960
|
+
| { name: 'CreateErc6160Asset'; params: { asset: PalletTokenGatewayAssetRegistration } }
|
|
13961
|
+
/**
|
|
13962
|
+
* Registers a multi-chain ERC6160 asset. The asset should not already exist.
|
|
13963
|
+
*
|
|
13964
|
+
* This works by dispatching a request to the TokenGateway module on each requested chain
|
|
13965
|
+
* to create the asset.
|
|
13966
|
+
**/
|
|
13967
|
+
| { name: 'UpdateErc6160Asset'; params: { asset: TokenGatewayPrimitivesGatewayAssetUpdate } }
|
|
13968
|
+
/**
|
|
13969
|
+
* Update the precision for an existing asset
|
|
13970
|
+
**/
|
|
13971
|
+
| { name: 'UpdateAssetPrecision'; params: { update: PalletTokenGatewayPrecisionUpdate } };
|
|
13972
|
+
|
|
13973
|
+
export type PalletTokenGatewayCallLike =
|
|
13974
|
+
/**
|
|
13975
|
+
* Teleports a registered asset
|
|
13976
|
+
* locks the asset and dispatches a request to token gateway on the destination
|
|
13977
|
+
**/
|
|
13978
|
+
| { name: 'Teleport'; params: { params: PalletTokenGatewayTeleportParams } }
|
|
13979
|
+
/**
|
|
13980
|
+
* Set the token gateway address for specified chains
|
|
13981
|
+
**/
|
|
13982
|
+
| { name: 'SetTokenGatewayAddresses'; params: { addresses: Array<[IsmpHostStateMachine, BytesLike]> } }
|
|
13983
|
+
/**
|
|
13984
|
+
* Registers a multi-chain ERC6160 asset. The asset should not already exist.
|
|
13985
|
+
*
|
|
13986
|
+
* This works by dispatching a request to the TokenGateway module on each requested chain
|
|
13987
|
+
* to create the asset.
|
|
13988
|
+
* `native` should be true if this asset originates from this chain
|
|
13989
|
+
**/
|
|
13990
|
+
| { name: 'CreateErc6160Asset'; params: { asset: PalletTokenGatewayAssetRegistration } }
|
|
13991
|
+
/**
|
|
13992
|
+
* Registers a multi-chain ERC6160 asset. The asset should not already exist.
|
|
13993
|
+
*
|
|
13994
|
+
* This works by dispatching a request to the TokenGateway module on each requested chain
|
|
13995
|
+
* to create the asset.
|
|
13996
|
+
**/
|
|
13997
|
+
| { name: 'UpdateErc6160Asset'; params: { asset: TokenGatewayPrimitivesGatewayAssetUpdate } }
|
|
13998
|
+
/**
|
|
13999
|
+
* Update the precision for an existing asset
|
|
14000
|
+
**/
|
|
14001
|
+
| { name: 'UpdateAssetPrecision'; params: { update: PalletTokenGatewayPrecisionUpdate } };
|
|
14002
|
+
|
|
14003
|
+
export type PalletTokenGatewayTeleportParams = {
|
|
14004
|
+
assetId: number;
|
|
14005
|
+
destination: IsmpHostStateMachine;
|
|
14006
|
+
recepient: H256;
|
|
14007
|
+
amount: bigint;
|
|
14008
|
+
timeout: bigint;
|
|
14009
|
+
tokenGateway: Bytes;
|
|
14010
|
+
relayerFee: bigint;
|
|
14011
|
+
callData?: Bytes | undefined;
|
|
14012
|
+
redeem: boolean;
|
|
14013
|
+
};
|
|
14014
|
+
|
|
14015
|
+
export type PalletTokenGatewayAssetRegistration = {
|
|
14016
|
+
localId: number;
|
|
14017
|
+
reg: TokenGatewayPrimitivesGatewayAssetRegistration;
|
|
14018
|
+
native: boolean;
|
|
14019
|
+
precision: Array<[IsmpHostStateMachine, number]>;
|
|
14020
|
+
};
|
|
14021
|
+
|
|
14022
|
+
export type TokenGatewayPrimitivesGatewayAssetRegistration = {
|
|
14023
|
+
name: Bytes;
|
|
14024
|
+
symbol: Bytes;
|
|
14025
|
+
chains: Array<IsmpHostStateMachine>;
|
|
14026
|
+
minimumBalance?: bigint | undefined;
|
|
14027
|
+
};
|
|
14028
|
+
|
|
14029
|
+
export type TokenGatewayPrimitivesGatewayAssetUpdate = {
|
|
14030
|
+
assetId: H256;
|
|
14031
|
+
addChains: Array<IsmpHostStateMachine>;
|
|
14032
|
+
removeChains: Array<IsmpHostStateMachine>;
|
|
14033
|
+
newAdmins: Array<[IsmpHostStateMachine, H160]>;
|
|
14034
|
+
};
|
|
14035
|
+
|
|
14036
|
+
export type PalletTokenGatewayPrecisionUpdate = { assetId: number; precisions: Array<[IsmpHostStateMachine, number]> };
|
|
14037
|
+
|
|
13631
14038
|
/**
|
|
13632
14039
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
13633
14040
|
**/
|
|
@@ -14561,6 +14968,7 @@ export type PalletHsmEvent =
|
|
|
14561
14968
|
* - `max_buy_price_coefficient`: New max buy price coefficient if updated (None if not changed)
|
|
14562
14969
|
* - `buy_back_fee`: New buy back fee if updated (None if not changed)
|
|
14563
14970
|
* - `buyback_rate`: New buyback rate if updated (None if not changed)
|
|
14971
|
+
* - `max_in_holding`: New max collateral holding if updated (None if not changed)
|
|
14564
14972
|
**/
|
|
14565
14973
|
| {
|
|
14566
14974
|
name: 'CollateralUpdated';
|
|
@@ -14570,6 +14978,7 @@ export type PalletHsmEvent =
|
|
|
14570
14978
|
maxBuyPriceCoefficient?: FixedU128 | undefined;
|
|
14571
14979
|
buyBackFee?: Permill | undefined;
|
|
14572
14980
|
buybackRate?: Perbill | undefined;
|
|
14981
|
+
maxInHolding?: bigint | undefined | undefined;
|
|
14573
14982
|
};
|
|
14574
14983
|
}
|
|
14575
14984
|
/**
|
|
@@ -15502,6 +15911,356 @@ export type PalletSessionEvent =
|
|
|
15502
15911
|
**/
|
|
15503
15912
|
{ name: 'NewSession'; data: { sessionIndex: number } };
|
|
15504
15913
|
|
|
15914
|
+
/**
|
|
15915
|
+
* Pallet Events
|
|
15916
|
+
**/
|
|
15917
|
+
export type PalletIsmpEvent =
|
|
15918
|
+
/**
|
|
15919
|
+
* Emitted when a state machine is successfully updated to a new height
|
|
15920
|
+
**/
|
|
15921
|
+
| {
|
|
15922
|
+
name: 'StateMachineUpdated';
|
|
15923
|
+
data: {
|
|
15924
|
+
/**
|
|
15925
|
+
* State machine identifier
|
|
15926
|
+
**/
|
|
15927
|
+
stateMachineId: IsmpConsensusStateMachineId;
|
|
15928
|
+
|
|
15929
|
+
/**
|
|
15930
|
+
* State machine latest height
|
|
15931
|
+
**/
|
|
15932
|
+
latestHeight: bigint;
|
|
15933
|
+
};
|
|
15934
|
+
}
|
|
15935
|
+
/**
|
|
15936
|
+
* Emitted when a state commitment is vetoed by a fisherman
|
|
15937
|
+
**/
|
|
15938
|
+
| {
|
|
15939
|
+
name: 'StateCommitmentVetoed';
|
|
15940
|
+
data: {
|
|
15941
|
+
/**
|
|
15942
|
+
* State machine height
|
|
15943
|
+
**/
|
|
15944
|
+
height: IsmpConsensusStateMachineHeight;
|
|
15945
|
+
|
|
15946
|
+
/**
|
|
15947
|
+
* responsible fisherman
|
|
15948
|
+
**/
|
|
15949
|
+
fisherman: Bytes;
|
|
15950
|
+
};
|
|
15951
|
+
}
|
|
15952
|
+
/**
|
|
15953
|
+
* Indicates that a consensus client has been created
|
|
15954
|
+
**/
|
|
15955
|
+
| {
|
|
15956
|
+
name: 'ConsensusClientCreated';
|
|
15957
|
+
data: {
|
|
15958
|
+
/**
|
|
15959
|
+
* Consensus client id
|
|
15960
|
+
**/
|
|
15961
|
+
consensusClientId: FixedBytes<4>;
|
|
15962
|
+
};
|
|
15963
|
+
}
|
|
15964
|
+
/**
|
|
15965
|
+
* Indicates that a consensus client has been created
|
|
15966
|
+
**/
|
|
15967
|
+
| {
|
|
15968
|
+
name: 'ConsensusClientFrozen';
|
|
15969
|
+
data: {
|
|
15970
|
+
/**
|
|
15971
|
+
* Consensus client id
|
|
15972
|
+
**/
|
|
15973
|
+
consensusClientId: FixedBytes<4>;
|
|
15974
|
+
};
|
|
15975
|
+
}
|
|
15976
|
+
/**
|
|
15977
|
+
* An Outgoing Response has been deposited
|
|
15978
|
+
**/
|
|
15979
|
+
| {
|
|
15980
|
+
name: 'Response';
|
|
15981
|
+
data: {
|
|
15982
|
+
/**
|
|
15983
|
+
* Chain that this response will be routed to
|
|
15984
|
+
**/
|
|
15985
|
+
destChain: IsmpHostStateMachine;
|
|
15986
|
+
|
|
15987
|
+
/**
|
|
15988
|
+
* Source Chain for this response
|
|
15989
|
+
**/
|
|
15990
|
+
sourceChain: IsmpHostStateMachine;
|
|
15991
|
+
|
|
15992
|
+
/**
|
|
15993
|
+
* Nonce for the request which this response is for
|
|
15994
|
+
**/
|
|
15995
|
+
requestNonce: bigint;
|
|
15996
|
+
|
|
15997
|
+
/**
|
|
15998
|
+
* Response Commitment
|
|
15999
|
+
**/
|
|
16000
|
+
commitment: H256;
|
|
16001
|
+
|
|
16002
|
+
/**
|
|
16003
|
+
* Request commitment
|
|
16004
|
+
**/
|
|
16005
|
+
reqCommitment: H256;
|
|
16006
|
+
};
|
|
16007
|
+
}
|
|
16008
|
+
/**
|
|
16009
|
+
* An Outgoing Request has been deposited
|
|
16010
|
+
**/
|
|
16011
|
+
| {
|
|
16012
|
+
name: 'Request';
|
|
16013
|
+
data: {
|
|
16014
|
+
/**
|
|
16015
|
+
* Chain that this request will be routed to
|
|
16016
|
+
**/
|
|
16017
|
+
destChain: IsmpHostStateMachine;
|
|
16018
|
+
|
|
16019
|
+
/**
|
|
16020
|
+
* Source Chain for request
|
|
16021
|
+
**/
|
|
16022
|
+
sourceChain: IsmpHostStateMachine;
|
|
16023
|
+
|
|
16024
|
+
/**
|
|
16025
|
+
* Request nonce
|
|
16026
|
+
**/
|
|
16027
|
+
requestNonce: bigint;
|
|
16028
|
+
|
|
16029
|
+
/**
|
|
16030
|
+
* Commitment
|
|
16031
|
+
**/
|
|
16032
|
+
commitment: H256;
|
|
16033
|
+
};
|
|
16034
|
+
}
|
|
16035
|
+
/**
|
|
16036
|
+
* Some errors handling some ismp messages
|
|
16037
|
+
**/
|
|
16038
|
+
| {
|
|
16039
|
+
name: 'Errors';
|
|
16040
|
+
data: {
|
|
16041
|
+
/**
|
|
16042
|
+
* Message handling errors
|
|
16043
|
+
**/
|
|
16044
|
+
errors: Array<PalletIsmpErrorsHandlingError>;
|
|
16045
|
+
};
|
|
16046
|
+
}
|
|
16047
|
+
/**
|
|
16048
|
+
* Post Request Handled
|
|
16049
|
+
**/
|
|
16050
|
+
| { name: 'PostRequestHandled'; data: IsmpEventsRequestResponseHandled }
|
|
16051
|
+
/**
|
|
16052
|
+
* Post Response Handled
|
|
16053
|
+
**/
|
|
16054
|
+
| { name: 'PostResponseHandled'; data: IsmpEventsRequestResponseHandled }
|
|
16055
|
+
/**
|
|
16056
|
+
* Get Response Handled
|
|
16057
|
+
**/
|
|
16058
|
+
| { name: 'GetRequestHandled'; data: IsmpEventsRequestResponseHandled }
|
|
16059
|
+
/**
|
|
16060
|
+
* Post request timeout handled
|
|
16061
|
+
**/
|
|
16062
|
+
| { name: 'PostRequestTimeoutHandled'; data: IsmpEventsTimeoutHandled }
|
|
16063
|
+
/**
|
|
16064
|
+
* Post response timeout handled
|
|
16065
|
+
**/
|
|
16066
|
+
| { name: 'PostResponseTimeoutHandled'; data: IsmpEventsTimeoutHandled }
|
|
16067
|
+
/**
|
|
16068
|
+
* Get request timeout handled
|
|
16069
|
+
**/
|
|
16070
|
+
| { name: 'GetRequestTimeoutHandled'; data: IsmpEventsTimeoutHandled };
|
|
16071
|
+
|
|
16072
|
+
export type PalletIsmpErrorsHandlingError = { message: Bytes };
|
|
16073
|
+
|
|
16074
|
+
export type IsmpEventsRequestResponseHandled = { commitment: H256; relayer: Bytes };
|
|
16075
|
+
|
|
16076
|
+
export type IsmpEventsTimeoutHandled = { commitment: H256; source: IsmpHostStateMachine; dest: IsmpHostStateMachine };
|
|
16077
|
+
|
|
16078
|
+
/**
|
|
16079
|
+
* Events emitted by this pallet
|
|
16080
|
+
**/
|
|
16081
|
+
export type IsmpParachainEvent =
|
|
16082
|
+
/**
|
|
16083
|
+
* Parachains with the `para_ids` have been added to the whitelist
|
|
16084
|
+
**/
|
|
16085
|
+
| {
|
|
16086
|
+
name: 'ParachainsAdded';
|
|
16087
|
+
data: {
|
|
16088
|
+
/**
|
|
16089
|
+
* The parachains in question
|
|
16090
|
+
**/
|
|
16091
|
+
paraIds: Array<IsmpParachainParachainData>;
|
|
16092
|
+
};
|
|
16093
|
+
}
|
|
16094
|
+
/**
|
|
16095
|
+
* Parachains with the `para_ids` have been removed from the whitelist
|
|
16096
|
+
**/
|
|
16097
|
+
| {
|
|
16098
|
+
name: 'ParachainsRemoved';
|
|
16099
|
+
data: {
|
|
16100
|
+
/**
|
|
16101
|
+
* The parachains in question
|
|
16102
|
+
**/
|
|
16103
|
+
paraIds: Array<number>;
|
|
16104
|
+
};
|
|
16105
|
+
};
|
|
16106
|
+
|
|
16107
|
+
/**
|
|
16108
|
+
* The `Event` enum of this pallet
|
|
16109
|
+
**/
|
|
16110
|
+
export type PalletHyperbridgeEvent =
|
|
16111
|
+
/**
|
|
16112
|
+
* Hyperbridge governance has now updated it's host params on this chain.
|
|
16113
|
+
**/
|
|
16114
|
+
| {
|
|
16115
|
+
name: 'HostParamsUpdated';
|
|
16116
|
+
data: {
|
|
16117
|
+
/**
|
|
16118
|
+
* The old host params
|
|
16119
|
+
**/
|
|
16120
|
+
old: PalletHyperbridgeVersionedHostParams;
|
|
16121
|
+
|
|
16122
|
+
/**
|
|
16123
|
+
* The new host params
|
|
16124
|
+
**/
|
|
16125
|
+
new: PalletHyperbridgeVersionedHostParams;
|
|
16126
|
+
};
|
|
16127
|
+
}
|
|
16128
|
+
/**
|
|
16129
|
+
* A relayer has withdrawn some fees
|
|
16130
|
+
**/
|
|
16131
|
+
| {
|
|
16132
|
+
name: 'RelayerFeeWithdrawn';
|
|
16133
|
+
data: {
|
|
16134
|
+
/**
|
|
16135
|
+
* The amount that was withdrawn
|
|
16136
|
+
**/
|
|
16137
|
+
amount: bigint;
|
|
16138
|
+
|
|
16139
|
+
/**
|
|
16140
|
+
* The withdrawal beneficiary
|
|
16141
|
+
**/
|
|
16142
|
+
account: AccountId32;
|
|
16143
|
+
};
|
|
16144
|
+
}
|
|
16145
|
+
/**
|
|
16146
|
+
* Hyperbridge has withdrawn it's protocol revenue
|
|
16147
|
+
**/
|
|
16148
|
+
| {
|
|
16149
|
+
name: 'ProtocolRevenueWithdrawn';
|
|
16150
|
+
data: {
|
|
16151
|
+
/**
|
|
16152
|
+
* The amount that was withdrawn
|
|
16153
|
+
**/
|
|
16154
|
+
amount: bigint;
|
|
16155
|
+
|
|
16156
|
+
/**
|
|
16157
|
+
* The withdrawal beneficiary
|
|
16158
|
+
**/
|
|
16159
|
+
account: AccountId32;
|
|
16160
|
+
};
|
|
16161
|
+
};
|
|
16162
|
+
|
|
16163
|
+
export type PalletHyperbridgeVersionedHostParams = { type: 'V1'; value: PalletHyperbridgeSubstrateHostParams };
|
|
16164
|
+
|
|
16165
|
+
export type PalletHyperbridgeSubstrateHostParams = {
|
|
16166
|
+
defaultPerByteFee: bigint;
|
|
16167
|
+
perByteFees: Array<[IsmpHostStateMachine, bigint]>;
|
|
16168
|
+
assetRegistrationFee: bigint;
|
|
16169
|
+
};
|
|
16170
|
+
|
|
16171
|
+
/**
|
|
16172
|
+
* Pallet events that functions in this pallet can emit.
|
|
16173
|
+
**/
|
|
16174
|
+
export type PalletTokenGatewayEvent =
|
|
16175
|
+
/**
|
|
16176
|
+
* An asset has been teleported
|
|
16177
|
+
**/
|
|
16178
|
+
| {
|
|
16179
|
+
name: 'AssetTeleported';
|
|
16180
|
+
data: {
|
|
16181
|
+
/**
|
|
16182
|
+
* Source account
|
|
16183
|
+
**/
|
|
16184
|
+
from: AccountId32;
|
|
16185
|
+
|
|
16186
|
+
/**
|
|
16187
|
+
* beneficiary account on destination
|
|
16188
|
+
**/
|
|
16189
|
+
to: H256;
|
|
16190
|
+
|
|
16191
|
+
/**
|
|
16192
|
+
* Amount transferred
|
|
16193
|
+
**/
|
|
16194
|
+
amount: bigint;
|
|
16195
|
+
|
|
16196
|
+
/**
|
|
16197
|
+
* Destination chain
|
|
16198
|
+
**/
|
|
16199
|
+
dest: IsmpHostStateMachine;
|
|
16200
|
+
|
|
16201
|
+
/**
|
|
16202
|
+
* Request commitment
|
|
16203
|
+
**/
|
|
16204
|
+
commitment: H256;
|
|
16205
|
+
};
|
|
16206
|
+
}
|
|
16207
|
+
/**
|
|
16208
|
+
* An asset has been received and transferred to the beneficiary's account
|
|
16209
|
+
**/
|
|
16210
|
+
| {
|
|
16211
|
+
name: 'AssetReceived';
|
|
16212
|
+
data: {
|
|
16213
|
+
/**
|
|
16214
|
+
* beneficiary account on relaychain
|
|
16215
|
+
**/
|
|
16216
|
+
beneficiary: AccountId32;
|
|
16217
|
+
|
|
16218
|
+
/**
|
|
16219
|
+
* Amount transferred
|
|
16220
|
+
**/
|
|
16221
|
+
amount: bigint;
|
|
16222
|
+
|
|
16223
|
+
/**
|
|
16224
|
+
* Destination chain
|
|
16225
|
+
**/
|
|
16226
|
+
source: IsmpHostStateMachine;
|
|
16227
|
+
};
|
|
16228
|
+
}
|
|
16229
|
+
/**
|
|
16230
|
+
* An asset has been refunded and transferred to the beneficiary's account
|
|
16231
|
+
**/
|
|
16232
|
+
| {
|
|
16233
|
+
name: 'AssetRefunded';
|
|
16234
|
+
data: {
|
|
16235
|
+
/**
|
|
16236
|
+
* beneficiary account on relaychain
|
|
16237
|
+
**/
|
|
16238
|
+
beneficiary: AccountId32;
|
|
16239
|
+
|
|
16240
|
+
/**
|
|
16241
|
+
* Amount transferred
|
|
16242
|
+
**/
|
|
16243
|
+
amount: bigint;
|
|
16244
|
+
|
|
16245
|
+
/**
|
|
16246
|
+
* Destination chain
|
|
16247
|
+
**/
|
|
16248
|
+
source: IsmpHostStateMachine;
|
|
16249
|
+
};
|
|
16250
|
+
}
|
|
16251
|
+
/**
|
|
16252
|
+
* ERC6160 asset creation request dispatched to hyperbridge
|
|
16253
|
+
**/
|
|
16254
|
+
| {
|
|
16255
|
+
name: 'Erc6160AssetRegistrationDispatched';
|
|
16256
|
+
data: {
|
|
16257
|
+
/**
|
|
16258
|
+
* Request commitment
|
|
16259
|
+
**/
|
|
16260
|
+
commitment: H256;
|
|
16261
|
+
};
|
|
16262
|
+
};
|
|
16263
|
+
|
|
15505
16264
|
/**
|
|
15506
16265
|
* The `Event` enum of this pallet
|
|
15507
16266
|
**/
|
|
@@ -16917,23 +17676,23 @@ export type PalletDusterError =
|
|
|
16917
17676
|
/**
|
|
16918
17677
|
* Account is excluded from dusting.
|
|
16919
17678
|
**/
|
|
16920
|
-
| '
|
|
17679
|
+
| 'AccountWhitelisted'
|
|
16921
17680
|
/**
|
|
16922
17681
|
* Account is not present in the non-dustable list.
|
|
16923
17682
|
**/
|
|
16924
|
-
| '
|
|
17683
|
+
| 'AccountNotWhitelisted'
|
|
16925
17684
|
/**
|
|
16926
17685
|
* The balance is zero.
|
|
16927
17686
|
**/
|
|
16928
17687
|
| 'ZeroBalance'
|
|
16929
17688
|
/**
|
|
16930
|
-
* The balance is
|
|
17689
|
+
* The balance was not fully dusted, there is some leftover on the account. Normally, it should never happen.
|
|
16931
17690
|
**/
|
|
16932
|
-
| '
|
|
17691
|
+
| 'NonZeroBalance'
|
|
16933
17692
|
/**
|
|
16934
|
-
*
|
|
17693
|
+
* The balance is sufficient to keep account open.
|
|
16935
17694
|
**/
|
|
16936
|
-
| '
|
|
17695
|
+
| 'BalanceSufficient'
|
|
16937
17696
|
/**
|
|
16938
17697
|
* Reserve account is not set.
|
|
16939
17698
|
**/
|
|
@@ -18001,12 +18760,6 @@ export type PalletHsmError =
|
|
|
18001
18760
|
* There is no profitable arbitrage opportunity for the specified collateral.
|
|
18002
18761
|
**/
|
|
18003
18762
|
| 'NoArbitrageOpportunity'
|
|
18004
|
-
/**
|
|
18005
|
-
* Offchain lock error
|
|
18006
|
-
*
|
|
18007
|
-
* Failed to acquire the lock for offchain workers, likely because another operation is in progress.
|
|
18008
|
-
**/
|
|
18009
|
-
| 'OffchainLockError'
|
|
18010
18763
|
/**
|
|
18011
18764
|
* Asset not in the pool
|
|
18012
18765
|
*
|
|
@@ -19068,6 +19821,77 @@ export type PalletSessionError =
|
|
|
19068
19821
|
|
|
19069
19822
|
export type SpConsensusSlotsSlot = bigint;
|
|
19070
19823
|
|
|
19824
|
+
/**
|
|
19825
|
+
* Pallet errors
|
|
19826
|
+
**/
|
|
19827
|
+
export type PalletIsmpError =
|
|
19828
|
+
/**
|
|
19829
|
+
* Invalid ISMP message
|
|
19830
|
+
**/
|
|
19831
|
+
| 'InvalidMessage'
|
|
19832
|
+
/**
|
|
19833
|
+
* Requested message was not found
|
|
19834
|
+
**/
|
|
19835
|
+
| 'MessageNotFound'
|
|
19836
|
+
/**
|
|
19837
|
+
* Encountered an error while creating the consensus client.
|
|
19838
|
+
**/
|
|
19839
|
+
| 'ConsensusClientCreationFailed'
|
|
19840
|
+
/**
|
|
19841
|
+
* Couldn't update unbonding period
|
|
19842
|
+
**/
|
|
19843
|
+
| 'UnbondingPeriodUpdateFailed'
|
|
19844
|
+
/**
|
|
19845
|
+
* Couldn't update challenge period
|
|
19846
|
+
**/
|
|
19847
|
+
| 'ChallengePeriodUpdateFailed';
|
|
19848
|
+
|
|
19849
|
+
/**
|
|
19850
|
+
* The `Error` enum of this pallet.
|
|
19851
|
+
**/
|
|
19852
|
+
export type PalletHyperbridgeError = null;
|
|
19853
|
+
|
|
19854
|
+
/**
|
|
19855
|
+
* Errors that can be returned by this pallet.
|
|
19856
|
+
**/
|
|
19857
|
+
export type PalletTokenGatewayError =
|
|
19858
|
+
/**
|
|
19859
|
+
* A asset that has not been registered
|
|
19860
|
+
**/
|
|
19861
|
+
| 'UnregisteredAsset'
|
|
19862
|
+
/**
|
|
19863
|
+
* Error while teleporting asset
|
|
19864
|
+
**/
|
|
19865
|
+
| 'AssetTeleportError'
|
|
19866
|
+
/**
|
|
19867
|
+
* Coprocessor was not configured in the runtime
|
|
19868
|
+
**/
|
|
19869
|
+
| 'CoprocessorNotConfigured'
|
|
19870
|
+
/**
|
|
19871
|
+
* Asset or update Dispatch Error
|
|
19872
|
+
**/
|
|
19873
|
+
| 'DispatchError'
|
|
19874
|
+
/**
|
|
19875
|
+
* Asset Id creation failed
|
|
19876
|
+
**/
|
|
19877
|
+
| 'AssetCreationError'
|
|
19878
|
+
/**
|
|
19879
|
+
* Asset decimals not found
|
|
19880
|
+
**/
|
|
19881
|
+
| 'AssetDecimalsNotFound'
|
|
19882
|
+
/**
|
|
19883
|
+
* Protocol Params have not been initialized
|
|
19884
|
+
**/
|
|
19885
|
+
| 'NotInitialized'
|
|
19886
|
+
/**
|
|
19887
|
+
* Unknown Asset
|
|
19888
|
+
**/
|
|
19889
|
+
| 'UnknownAsset'
|
|
19890
|
+
/**
|
|
19891
|
+
* Only root or asset owner can update asset
|
|
19892
|
+
**/
|
|
19893
|
+
| 'NotAssetOwner';
|
|
19894
|
+
|
|
19071
19895
|
export type PalletEmaOracleOracleEntry = {
|
|
19072
19896
|
price: HydraDxMathRatio;
|
|
19073
19897
|
volume: HydradxTraitsOracleVolume;
|
|
@@ -19268,6 +20092,26 @@ export type HydradxRuntimeEvmAaveTradeExecutorPoolData = {
|
|
|
19268
20092
|
liqudityOut: bigint;
|
|
19269
20093
|
};
|
|
19270
20094
|
|
|
20095
|
+
export type IsmpEventsEvent =
|
|
20096
|
+
| { type: 'StateMachineUpdated'; value: IsmpEventsStateMachineUpdated }
|
|
20097
|
+
| { type: 'StateCommitmentVetoed'; value: IsmpEventsStateCommitmentVetoed }
|
|
20098
|
+
| { type: 'PostRequest'; value: IsmpRouterPostRequest }
|
|
20099
|
+
| { type: 'PostResponse'; value: IsmpRouterPostResponse }
|
|
20100
|
+
| { type: 'GetResponse'; value: IsmpRouterGetResponse }
|
|
20101
|
+
| { type: 'GetRequest'; value: IsmpRouterGetRequest }
|
|
20102
|
+
| { type: 'PostRequestHandled'; value: IsmpEventsRequestResponseHandled }
|
|
20103
|
+
| { type: 'PostResponseHandled'; value: IsmpEventsRequestResponseHandled }
|
|
20104
|
+
| { type: 'PostRequestTimeoutHandled'; value: IsmpEventsTimeoutHandled }
|
|
20105
|
+
| { type: 'PostResponseTimeoutHandled'; value: IsmpEventsTimeoutHandled }
|
|
20106
|
+
| { type: 'GetRequestHandled'; value: IsmpEventsRequestResponseHandled }
|
|
20107
|
+
| { type: 'GetRequestTimeoutHandled'; value: IsmpEventsTimeoutHandled };
|
|
20108
|
+
|
|
20109
|
+
export type IsmpEventsStateMachineUpdated = { stateMachineId: IsmpConsensusStateMachineId; latestHeight: bigint };
|
|
20110
|
+
|
|
20111
|
+
export type IsmpEventsStateCommitmentVetoed = { height: IsmpConsensusStateMachineHeight; fisherman: Bytes };
|
|
20112
|
+
|
|
20113
|
+
export type CumulusPalletParachainSystemRelayChainState = { number: number; stateRoot: H256 };
|
|
20114
|
+
|
|
19271
20115
|
export type HydradxRuntimeRuntimeError =
|
|
19272
20116
|
| { pallet: 'System'; palletError: FrameSystemError }
|
|
19273
20117
|
| { pallet: 'Balances'; palletError: PalletBalancesError }
|
|
@@ -19327,5 +20171,8 @@ export type HydradxRuntimeRuntimeError =
|
|
|
19327
20171
|
| { pallet: 'UnknownTokens'; palletError: OrmlUnknownTokensModuleError }
|
|
19328
20172
|
| { pallet: 'CollatorSelection'; palletError: PalletCollatorSelectionError }
|
|
19329
20173
|
| { pallet: 'Session'; palletError: PalletSessionError }
|
|
20174
|
+
| { pallet: 'Ismp'; palletError: PalletIsmpError }
|
|
20175
|
+
| { pallet: 'Hyperbridge'; palletError: PalletHyperbridgeError }
|
|
20176
|
+
| { pallet: 'TokenGateway'; palletError: PalletTokenGatewayError }
|
|
19330
20177
|
| { pallet: 'EmaOracle'; palletError: PalletEmaOracleError }
|
|
19331
20178
|
| { pallet: 'Broadcast'; palletError: PalletBroadcastError };
|