@dedot/chaintypes 0.194.0 → 0.196.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.
Files changed (187) hide show
  1. package/aleph/consts.d.ts +2 -2
  2. package/aleph/errors.d.ts +228 -228
  3. package/aleph/events.d.ts +122 -226
  4. package/aleph/index.d.ts +15 -17
  5. package/aleph/json-rpc.d.ts +3 -3
  6. package/aleph/query.d.ts +171 -207
  7. package/aleph/runtime.d.ts +47 -63
  8. package/aleph/tx.d.ts +377 -550
  9. package/aleph/view-functions.d.ts +2 -2
  10. package/astar/consts.d.ts +2 -2
  11. package/astar/errors.d.ts +431 -431
  12. package/astar/events.d.ts +232 -401
  13. package/astar/index.d.ts +15 -17
  14. package/astar/json-rpc.d.ts +3 -3
  15. package/astar/query.d.ts +243 -289
  16. package/astar/runtime.d.ts +59 -87
  17. package/astar/tx.d.ts +671 -980
  18. package/astar/view-functions.d.ts +2 -2
  19. package/basilisk/consts.d.ts +2 -2
  20. package/basilisk/errors.d.ts +489 -489
  21. package/basilisk/events.d.ts +187 -408
  22. package/basilisk/index.d.ts +15 -17
  23. package/basilisk/json-rpc.d.ts +3 -3
  24. package/basilisk/query.d.ts +213 -272
  25. package/basilisk/runtime.d.ts +27 -28
  26. package/basilisk/tx.d.ts +579 -842
  27. package/basilisk/view-functions.d.ts +2 -2
  28. package/hydration/consts.d.ts +47 -14
  29. package/hydration/errors.d.ts +827 -737
  30. package/hydration/events.d.ts +639 -527
  31. package/hydration/index.d.ts +16 -18
  32. package/hydration/json-rpc.d.ts +3 -3
  33. package/hydration/query.d.ts +530 -396
  34. package/hydration/runtime.d.ts +181 -89
  35. package/hydration/tx.d.ts +1130 -1167
  36. package/hydration/types.d.ts +889 -42
  37. package/hydration/view-functions.d.ts +2 -2
  38. package/kusama/consts.d.ts +2 -2
  39. package/kusama/errors.d.ts +571 -571
  40. package/kusama/events.d.ts +216 -477
  41. package/kusama/index.d.ts +15 -17
  42. package/kusama/json-rpc.d.ts +3 -3
  43. package/kusama/query.d.ts +360 -502
  44. package/kusama/runtime.d.ts +82 -131
  45. package/kusama/tx.d.ts +851 -1246
  46. package/kusama/view-functions.d.ts +7 -12
  47. package/kusama-asset-hub/consts.d.ts +2 -2
  48. package/kusama-asset-hub/errors.d.ts +653 -653
  49. package/kusama-asset-hub/events.d.ts +286 -629
  50. package/kusama-asset-hub/index.d.ts +16 -17
  51. package/kusama-asset-hub/json-rpc.d.ts +3 -3
  52. package/kusama-asset-hub/query.d.ts +316 -448
  53. package/kusama-asset-hub/runtime.d.ts +74 -111
  54. package/kusama-asset-hub/tx.d.ts +1059 -1558
  55. package/kusama-asset-hub/view-functions.d.ts +7 -9
  56. package/kusama-people/consts.d.ts +2 -2
  57. package/kusama-people/errors.d.ts +160 -160
  58. package/kusama-people/events.d.ts +89 -176
  59. package/kusama-people/index.d.ts +15 -17
  60. package/kusama-people/json-rpc.d.ts +3 -3
  61. package/kusama-people/query.d.ts +114 -145
  62. package/kusama-people/runtime.d.ts +45 -65
  63. package/kusama-people/tx.d.ts +246 -356
  64. package/kusama-people/view-functions.d.ts +3 -5
  65. package/moonbeam/consts.d.ts +2 -2
  66. package/moonbeam/errors.d.ts +478 -478
  67. package/moonbeam/events.d.ts +182 -426
  68. package/moonbeam/index.d.ts +15 -17
  69. package/moonbeam/json-rpc.d.ts +11 -3
  70. package/moonbeam/query.d.ts +234 -294
  71. package/moonbeam/runtime.d.ts +61 -89
  72. package/moonbeam/tx.d.ts +618 -901
  73. package/moonbeam/view-functions.d.ts +2 -2
  74. package/package.json +6 -3
  75. package/paseo/consts.d.ts +2 -2
  76. package/paseo/errors.d.ts +513 -513
  77. package/paseo/events.d.ts +197 -430
  78. package/paseo/index.d.ts +16 -18
  79. package/paseo/json-rpc.d.ts +3 -3
  80. package/paseo/query.d.ts +329 -450
  81. package/paseo/runtime.d.ts +107 -131
  82. package/paseo/tx.d.ts +787 -1151
  83. package/paseo/types.d.ts +7 -0
  84. package/paseo/view-functions.d.ts +7 -12
  85. package/paseo-asset-hub/consts.d.ts +2 -2
  86. package/paseo-asset-hub/errors.d.ts +605 -605
  87. package/paseo-asset-hub/events.d.ts +268 -600
  88. package/paseo-asset-hub/index.d.ts +17 -18
  89. package/paseo-asset-hub/json-rpc.d.ts +3 -3
  90. package/paseo-asset-hub/query.d.ts +293 -413
  91. package/paseo-asset-hub/runtime.d.ts +96 -104
  92. package/paseo-asset-hub/tx.d.ts +997 -1466
  93. package/paseo-asset-hub/types.d.ts +7 -0
  94. package/paseo-asset-hub/view-functions.d.ts +7 -9
  95. package/paseo-hydration/consts.d.ts +13 -3
  96. package/paseo-hydration/errors.d.ts +756 -745
  97. package/paseo-hydration/events.d.ts +277 -554
  98. package/paseo-hydration/index.d.ts +16 -18
  99. package/paseo-hydration/json-rpc.d.ts +3 -3
  100. package/paseo-hydration/query.d.ts +321 -411
  101. package/paseo-hydration/runtime.d.ts +95 -106
  102. package/paseo-hydration/tx.d.ts +923 -1226
  103. package/paseo-hydration/types.d.ts +91 -50
  104. package/paseo-hydration/view-functions.d.ts +2 -2
  105. package/paseo-people/consts.d.ts +2 -2
  106. package/paseo-people/errors.d.ts +162 -162
  107. package/paseo-people/events.d.ts +91 -181
  108. package/paseo-people/index.d.ts +16 -18
  109. package/paseo-people/json-rpc.d.ts +3 -3
  110. package/paseo-people/query.d.ts +116 -143
  111. package/paseo-people/runtime.d.ts +70 -65
  112. package/paseo-people/tx.d.ts +257 -372
  113. package/paseo-people/types.d.ts +7 -0
  114. package/paseo-people/view-functions.d.ts +3 -5
  115. package/polkadot/consts.d.ts +2 -2
  116. package/polkadot/errors.d.ts +501 -501
  117. package/polkadot/events.d.ts +195 -426
  118. package/polkadot/index.d.ts +15 -17
  119. package/polkadot/json-rpc.d.ts +3 -3
  120. package/polkadot/query.d.ts +329 -450
  121. package/polkadot/runtime.d.ts +83 -133
  122. package/polkadot/tx.d.ts +765 -1119
  123. package/polkadot/view-functions.d.ts +7 -12
  124. package/polkadot-asset-hub/consts.d.ts +2 -2
  125. package/polkadot-asset-hub/errors.d.ts +554 -554
  126. package/polkadot-asset-hub/events.d.ts +261 -585
  127. package/polkadot-asset-hub/index.d.ts +16 -17
  128. package/polkadot-asset-hub/json-rpc.d.ts +3 -3
  129. package/polkadot-asset-hub/query.d.ts +279 -396
  130. package/polkadot-asset-hub/runtime.d.ts +65 -93
  131. package/polkadot-asset-hub/tx.d.ts +952 -1400
  132. package/polkadot-asset-hub/view-functions.d.ts +7 -9
  133. package/polkadot-people/consts.d.ts +2 -2
  134. package/polkadot-people/errors.d.ts +160 -160
  135. package/polkadot-people/events.d.ts +89 -176
  136. package/polkadot-people/index.d.ts +15 -17
  137. package/polkadot-people/json-rpc.d.ts +3 -3
  138. package/polkadot-people/query.d.ts +114 -145
  139. package/polkadot-people/runtime.d.ts +46 -67
  140. package/polkadot-people/tx.d.ts +246 -356
  141. package/polkadot-people/view-functions.d.ts +3 -5
  142. package/substrate/consts.d.ts +2 -2
  143. package/substrate/errors.d.ts +909 -909
  144. package/substrate/events.d.ts +389 -794
  145. package/substrate/index.d.ts +16 -17
  146. package/substrate/json-rpc.d.ts +3 -3
  147. package/substrate/query.d.ts +458 -572
  148. package/substrate/runtime.d.ts +82 -126
  149. package/substrate/tx.d.ts +1317 -1936
  150. package/substrate/view-functions.d.ts +2 -2
  151. package/vara/consts.d.ts +9 -37
  152. package/vara/errors.d.ts +402 -382
  153. package/vara/events.d.ts +172 -310
  154. package/vara/index.d.ts +16 -18
  155. package/vara/json-rpc.d.ts +7 -3
  156. package/vara/query.d.ts +299 -331
  157. package/vara/runtime.d.ts +61 -79
  158. package/vara/tx.d.ts +573 -754
  159. package/vara/types.d.ts +71 -26
  160. package/vara/view-functions.d.ts +2 -2
  161. package/westend/consts.d.ts +2 -2
  162. package/westend/errors.d.ts +532 -532
  163. package/westend/events.d.ts +205 -462
  164. package/westend/index.d.ts +15 -17
  165. package/westend/json-rpc.d.ts +3 -3
  166. package/westend/query.d.ts +312 -434
  167. package/westend/runtime.d.ts +83 -135
  168. package/westend/tx.d.ts +807 -1179
  169. package/westend/view-functions.d.ts +7 -12
  170. package/westend-asset-hub/consts.d.ts +2 -2
  171. package/westend-asset-hub/errors.d.ts +605 -605
  172. package/westend-asset-hub/events.d.ts +265 -614
  173. package/westend-asset-hub/index.d.ts +16 -17
  174. package/westend-asset-hub/json-rpc.d.ts +3 -3
  175. package/westend-asset-hub/query.d.ts +293 -418
  176. package/westend-asset-hub/runtime.d.ts +83 -123
  177. package/westend-asset-hub/tx.d.ts +918 -1348
  178. package/westend-asset-hub/view-functions.d.ts +8 -13
  179. package/westend-people/consts.d.ts +2 -2
  180. package/westend-people/errors.d.ts +160 -160
  181. package/westend-people/events.d.ts +93 -186
  182. package/westend-people/index.d.ts +15 -17
  183. package/westend-people/json-rpc.d.ts +3 -3
  184. package/westend-people/query.d.ts +114 -145
  185. package/westend-people/runtime.d.ts +46 -67
  186. package/westend-people/tx.d.ts +251 -363
  187. package/westend-people/view-functions.d.ts +3 -5
@@ -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 selected account (usually treasury).
6836
+ * be dusted, the remaining balance is transferred to treasury account.
6827
6837
  *
6828
- * Caller is rewarded with chosen reward in native currency.
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 non-dustable account. Account whihc are excluded from udsting.
6833
- * If such account should be dusted - `AccountBlacklisted` error is returned.
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: 'AddNondustableAccount'; params: { account: AccountId32 } }
6855
+ | { name: 'WhitelistAccount'; params: { account: AccountId32 } }
6837
6856
  /**
6838
- * Remove account from list of non-dustable accounts. That means account can be dusted again.
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: 'RemoveNondustableAccount'; params: { account: AccountId32 } };
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 selected account (usually treasury).
6868
+ * be dusted, the remaining balance is transferred to treasury account.
6847
6869
  *
6848
- * Caller is rewarded with chosen reward in native currency.
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 non-dustable account. Account whihc are excluded from udsting.
6853
- * If such account should be dusted - `AccountBlacklisted` error is returned.
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: 'AddNondustableAccount'; params: { account: AccountId32Like } }
6887
+ | { name: 'WhitelistAccount'; params: { account: AccountId32Like } }
6857
6888
  /**
6858
- * Remove account from list of non-dustable accounts. That means account can be dusted again.
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: 'RemoveNondustableAccount'; params: { account: AccountId32Like } };
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
- * 1. Detects price imbalances between HSM and a stable pool for a collateral
9942
- * 2. If an opportunity exists, mints Hollar, swaps it for collateral on HSM
9943
- * 3. Swaps that collateral for Hollar on the stable pool
9944
- * 4. Burns the Hollar received from the arbitrage
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 check for arbitrage
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; flashAmount?: bigint | undefined } }
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
- * This call is designed to be triggered automatically by offchain workers. It:
10117
- * 1. Detects price imbalances between HSM and a stable pool for a collateral
10118
- * 2. If an opportunity exists, mints Hollar, swaps it for collateral on HSM
10119
- * 3. Swaps that collateral for Hollar on the stable pool
10120
- * 4. Burns the Hollar received from the arbitrage
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 check for arbitrage
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; flashAmount?: bigint | undefined } }
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
- | 'AccountBlacklisted'
17679
+ | 'AccountWhitelisted'
16921
17680
  /**
16922
17681
  * Account is not present in the non-dustable list.
16923
17682
  **/
16924
- | 'AccountNotBlacklisted'
17683
+ | 'AccountNotWhitelisted'
16925
17684
  /**
16926
17685
  * The balance is zero.
16927
17686
  **/
16928
17687
  | 'ZeroBalance'
16929
17688
  /**
16930
- * The balance is sufficient to keep account open.
17689
+ * The balance was not fully dusted, there is some leftover on the account. Normally, it should never happen.
16931
17690
  **/
16932
- | 'BalanceSufficient'
17691
+ | 'NonZeroBalance'
16933
17692
  /**
16934
- * Dust account is not set.
17693
+ * The balance is sufficient to keep account open.
16935
17694
  **/
16936
- | 'DustAccountNotSet'
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 };