@gmx-io/sdk 1.3.1 → 1.4.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 (435) hide show
  1. package/README.md +37 -37
  2. package/build/cjs/src/abis/ArbitrumNodeInterface.js +105 -0
  3. package/build/cjs/src/abis/ClaimHandler.js +424 -0
  4. package/build/cjs/src/abis/CustomErrors.js +1884 -0
  5. package/build/cjs/src/abis/DataStore.js +639 -0
  6. package/build/cjs/src/abis/ERC20PermitInterface.js +54 -0
  7. package/build/cjs/src/abis/ERC721.js +196 -0
  8. package/build/cjs/src/abis/EventEmitter.js +1228 -0
  9. package/build/cjs/src/abis/ExchangeRouter.js +1590 -0
  10. package/build/cjs/src/abis/GelatoRelayRouter.js +1579 -0
  11. package/build/cjs/src/abis/GlpManager.js +246 -0
  12. package/build/cjs/src/abis/GlvReader.js +1471 -0
  13. package/build/cjs/src/abis/GlvRouter.js +764 -0
  14. package/build/cjs/src/abis/GmxMigrator.js +269 -0
  15. package/build/cjs/src/abis/GovToken.js +325 -0
  16. package/build/cjs/src/abis/LayerZeroProvider.js +161 -0
  17. package/build/cjs/src/abis/MintableBaseToken.js +323 -0
  18. package/build/cjs/src/abis/Multicall.js +231 -0
  19. package/build/cjs/src/abis/MultichainClaimsRouter.js +1266 -0
  20. package/build/cjs/src/abis/MultichainGlvRouter.js +1150 -0
  21. package/build/cjs/src/abis/MultichainGmRouter.js +1449 -0
  22. package/build/cjs/src/abis/MultichainOrderRouter.js +2009 -0
  23. package/build/cjs/src/abis/MultichainSubaccountRouter.js +2069 -0
  24. package/build/cjs/src/abis/MultichainTransferRouter.js +915 -0
  25. package/build/cjs/src/abis/MultichainUtils.js +133 -0
  26. package/build/cjs/src/abis/MultichainVault.js +275 -0
  27. package/build/cjs/src/abis/Reader.js +140 -0
  28. package/build/cjs/src/abis/ReaderV2.js +259 -0
  29. package/build/cjs/src/abis/ReferralStorage.js +261 -0
  30. package/build/cjs/src/abis/RelayParams.js +55 -0
  31. package/build/cjs/src/abis/RewardReader.js +35 -0
  32. package/build/cjs/src/abis/RewardRouter.js +460 -0
  33. package/build/cjs/src/abis/RewardTracker.js +415 -0
  34. package/build/cjs/src/abis/SmartAccount.js +14 -0
  35. package/build/cjs/src/abis/StBTC.js +513 -0
  36. package/build/cjs/src/abis/SubaccountApproval.js +17 -0
  37. package/build/cjs/src/abis/SubaccountGelatoRelayRouter.js +2019 -0
  38. package/build/cjs/src/abis/SubaccountRouter.js +602 -0
  39. package/build/cjs/src/abis/SyntheticsReader.js +4905 -0
  40. package/build/cjs/src/abis/SyntheticsRouter.js +72 -0
  41. package/build/cjs/src/abis/Timelock.js +778 -0
  42. package/build/cjs/src/abis/Token.js +150 -0
  43. package/build/cjs/src/abis/Treasury.js +206 -0
  44. package/build/cjs/src/abis/UniPool.js +36 -0
  45. package/build/cjs/src/abis/UniswapV2.js +287 -0
  46. package/build/cjs/src/abis/UniswapV3Factory.js +200 -0
  47. package/build/cjs/src/abis/UniswapV3Pool.js +985 -0
  48. package/build/cjs/src/abis/UniswapV3PositionManager.js +991 -0
  49. package/build/cjs/src/abis/Vault.js +1308 -0
  50. package/build/cjs/src/abis/VaultReader.js +30 -0
  51. package/build/cjs/src/abis/VaultV2.js +1222 -0
  52. package/build/cjs/src/abis/VaultV2b.js +1308 -0
  53. package/build/cjs/src/abis/VenusVToken.js +49 -0
  54. package/build/cjs/src/abis/Vester.js +456 -0
  55. package/build/cjs/src/abis/WETH.js +137 -0
  56. package/build/cjs/src/abis/index.js +106 -118
  57. package/build/cjs/src/configs/batch.js +14 -1
  58. package/build/cjs/src/configs/chainIds.js +17 -0
  59. package/build/cjs/src/configs/chains.js +77 -66
  60. package/build/cjs/src/configs/contracts.js +59 -80
  61. package/build/cjs/src/configs/dataStore.js +6 -10
  62. package/build/cjs/src/configs/express.js +16 -3
  63. package/build/cjs/src/configs/factors.js +2 -3
  64. package/build/cjs/src/configs/markets.js +127 -1
  65. package/build/cjs/src/configs/multichain.js +26 -0
  66. package/build/cjs/src/configs/oracleKeeper.js +19 -4
  67. package/build/cjs/src/configs/tokens.js +110 -5
  68. package/build/cjs/src/configs/uniswapV3.js +18 -0
  69. package/build/cjs/src/configs/venus.js +58 -0
  70. package/build/cjs/src/modules/markets/index.js +36 -14
  71. package/build/cjs/src/modules/markets/query-builders.js +6 -10
  72. package/build/cjs/src/modules/orders/helpers.js +1 -0
  73. package/build/cjs/src/modules/positions/positions.js +10 -2
  74. package/build/cjs/src/modules/trades/trades.js +2 -2
  75. package/build/cjs/src/prebuilt/hashedKinkModelMarketRatesKeys.json +88 -0
  76. package/build/cjs/src/prebuilt/hashedMarketConfigKeys.json +907 -453
  77. package/build/cjs/src/prebuilt/hashedMarketValuesKeys.json +165 -0
  78. package/build/cjs/src/test/mock.js +3 -3
  79. package/build/cjs/src/types/subsquid.js +193 -217
  80. package/build/cjs/src/types/tradeHistory.js +9 -1
  81. package/build/cjs/src/utils/LruCache.js +21 -17
  82. package/build/cjs/src/utils/__tests__/LruCache.spec.js +11 -0
  83. package/build/cjs/src/utils/__tests__/fees.spec.js +4 -4
  84. package/build/cjs/src/utils/__tests__/{subgraph.spec.js → indexers.spec.js} +18 -18
  85. package/build/cjs/src/utils/__tests__/numbers.spec.js +1 -1
  86. package/build/cjs/src/utils/bigmath.js +3 -0
  87. package/build/cjs/src/utils/buildUrl.js +1 -0
  88. package/build/cjs/src/utils/errors/transactionsErrors.js +1 -0
  89. package/build/cjs/src/utils/fees/index.js +5 -6
  90. package/build/cjs/src/utils/fees/priceImpact.js +29 -19
  91. package/build/cjs/src/utils/{subgraph.js → indexers.js} +17 -1
  92. package/build/cjs/src/utils/marketKeysAndConfigs.js +7 -11
  93. package/build/cjs/src/utils/markets.js +10 -1
  94. package/build/cjs/src/utils/numbers.js +11 -6
  95. package/build/cjs/src/utils/orderTransactions.js +5 -5
  96. package/build/cjs/src/utils/orders.js +9 -1
  97. package/build/cjs/src/utils/prices.js +0 -2
  98. package/build/cjs/src/utils/swap/botanixStaking.js +3 -3
  99. package/build/cjs/src/utils/swap/swapPath.js +1 -10
  100. package/build/cjs/src/utils/swap/swapValues.js +15 -15
  101. package/build/cjs/src/utils/trade/decrease.js +6 -9
  102. package/build/cjs/src/utils/trade/increase.js +9 -8
  103. package/build/cjs/src/utils/tradeHistory.js +3 -0
  104. package/build/esm/src/abis/ArbitrumNodeInterface.js +103 -0
  105. package/build/esm/src/abis/ClaimHandler.js +422 -0
  106. package/build/esm/src/abis/CustomErrors.js +1882 -0
  107. package/build/esm/src/abis/DataStore.js +637 -0
  108. package/build/esm/src/abis/ERC20PermitInterface.js +52 -0
  109. package/build/esm/src/abis/ERC721.js +194 -0
  110. package/build/esm/src/abis/EventEmitter.js +1226 -0
  111. package/build/esm/src/abis/ExchangeRouter.js +1588 -0
  112. package/build/esm/src/abis/GelatoRelayRouter.js +1577 -0
  113. package/build/esm/src/abis/GlpManager.js +244 -0
  114. package/build/esm/src/abis/GlvReader.js +1469 -0
  115. package/build/esm/src/abis/GlvRouter.js +762 -0
  116. package/build/esm/src/abis/GmxMigrator.js +267 -0
  117. package/build/esm/src/abis/GovToken.js +323 -0
  118. package/build/esm/src/abis/LayerZeroProvider.js +159 -0
  119. package/build/esm/src/abis/MintableBaseToken.js +321 -0
  120. package/build/esm/src/abis/Multicall.js +229 -0
  121. package/build/esm/src/abis/MultichainClaimsRouter.js +1264 -0
  122. package/build/esm/src/abis/MultichainGlvRouter.js +1148 -0
  123. package/build/esm/src/abis/MultichainGmRouter.js +1447 -0
  124. package/build/esm/src/abis/MultichainOrderRouter.js +2007 -0
  125. package/build/esm/src/abis/MultichainSubaccountRouter.js +2067 -0
  126. package/build/esm/src/abis/MultichainTransferRouter.js +913 -0
  127. package/build/esm/src/abis/MultichainUtils.js +131 -0
  128. package/build/esm/src/abis/MultichainVault.js +273 -0
  129. package/build/esm/src/abis/Reader.js +138 -0
  130. package/build/esm/src/abis/ReaderV2.js +257 -0
  131. package/build/esm/src/abis/ReferralStorage.js +259 -0
  132. package/build/esm/src/abis/RelayParams.js +53 -0
  133. package/build/esm/src/abis/RewardReader.js +33 -0
  134. package/build/esm/src/abis/RewardRouter.js +458 -0
  135. package/build/esm/src/abis/RewardTracker.js +413 -0
  136. package/build/esm/src/abis/SmartAccount.js +12 -0
  137. package/build/esm/src/abis/StBTC.js +511 -0
  138. package/build/esm/src/abis/SubaccountApproval.js +15 -0
  139. package/build/esm/src/abis/SubaccountGelatoRelayRouter.js +2017 -0
  140. package/build/esm/src/abis/SubaccountRouter.js +600 -0
  141. package/build/esm/src/abis/SyntheticsReader.js +4903 -0
  142. package/build/esm/src/abis/SyntheticsRouter.js +70 -0
  143. package/build/esm/src/abis/Timelock.js +776 -0
  144. package/build/esm/src/abis/Token.js +148 -0
  145. package/build/esm/src/abis/Treasury.js +204 -0
  146. package/build/esm/src/abis/UniPool.js +34 -0
  147. package/build/esm/src/abis/UniswapV2.js +285 -0
  148. package/build/esm/src/abis/UniswapV3Factory.js +198 -0
  149. package/build/esm/src/abis/UniswapV3Pool.js +983 -0
  150. package/build/esm/src/abis/UniswapV3PositionManager.js +989 -0
  151. package/build/esm/src/abis/Vault.js +1306 -0
  152. package/build/esm/src/abis/VaultReader.js +28 -0
  153. package/build/esm/src/abis/VaultV2.js +1220 -0
  154. package/build/esm/src/abis/VaultV2b.js +1306 -0
  155. package/build/esm/src/abis/VenusVToken.js +47 -0
  156. package/build/esm/src/abis/Vester.js +454 -0
  157. package/build/esm/src/abis/WETH.js +135 -0
  158. package/build/esm/src/abis/index.js +106 -118
  159. package/build/esm/src/configs/batch.js +14 -1
  160. package/build/esm/src/configs/chainIds.js +14 -0
  161. package/build/esm/src/configs/chains.js +15 -14
  162. package/build/esm/src/configs/contracts.js +59 -80
  163. package/build/esm/src/configs/dataStore.js +3 -6
  164. package/build/esm/src/configs/express.js +15 -2
  165. package/build/esm/src/configs/factors.js +1 -2
  166. package/build/esm/src/configs/markets.js +124 -0
  167. package/build/esm/src/configs/multichain.js +21 -0
  168. package/build/esm/src/configs/oracleKeeper.js +19 -4
  169. package/build/esm/src/configs/tokens.js +108 -4
  170. package/build/esm/src/configs/uniswapV3.js +13 -0
  171. package/build/esm/src/configs/venus.js +53 -0
  172. package/build/esm/src/modules/markets/index.js +36 -14
  173. package/build/esm/src/modules/markets/query-builders.js +6 -10
  174. package/build/esm/src/modules/orders/helpers.js +1 -0
  175. package/build/esm/src/modules/positions/positions.js +10 -2
  176. package/build/esm/src/modules/trades/trades.js +1 -1
  177. package/build/esm/src/prebuilt/hashedKinkModelMarketRatesKeys.json +88 -0
  178. package/build/esm/src/prebuilt/hashedMarketConfigKeys.json +907 -453
  179. package/build/esm/src/prebuilt/hashedMarketValuesKeys.json +165 -0
  180. package/build/esm/src/test/mock.js +3 -3
  181. package/build/esm/src/types/subsquid.js +192 -216
  182. package/build/esm/src/types/tradeHistory.js +6 -0
  183. package/build/esm/src/utils/LruCache.js +21 -17
  184. package/build/esm/src/utils/__tests__/LruCache.spec.js +11 -0
  185. package/build/esm/src/utils/__tests__/fees.spec.js +4 -4
  186. package/build/esm/src/utils/__tests__/{subgraph.spec.js → indexers.spec.js} +1 -1
  187. package/build/esm/src/utils/__tests__/numbers.spec.js +1 -1
  188. package/build/esm/src/utils/bigmath.js +3 -0
  189. package/build/esm/src/utils/buildUrl.js +1 -0
  190. package/build/esm/src/utils/errors/transactionsErrors.js +1 -0
  191. package/build/esm/src/utils/fees/index.js +5 -6
  192. package/build/esm/src/utils/fees/priceImpact.js +28 -19
  193. package/build/esm/src/utils/{subgraph.js → indexers.js} +15 -0
  194. package/build/esm/src/utils/marketKeysAndConfigs.js +8 -12
  195. package/build/esm/src/utils/markets.js +8 -0
  196. package/build/esm/src/utils/numbers.js +8 -4
  197. package/build/esm/src/utils/orderTransactions.js +5 -5
  198. package/build/esm/src/utils/orders.js +8 -1
  199. package/build/esm/src/utils/prices.js +0 -2
  200. package/build/esm/src/utils/swap/botanixStaking.js +3 -3
  201. package/build/esm/src/utils/swap/swapPath.js +1 -10
  202. package/build/esm/src/utils/swap/swapValues.js +15 -15
  203. package/build/esm/src/utils/trade/decrease.js +6 -9
  204. package/build/esm/src/utils/trade/increase.js +9 -8
  205. package/build/esm/src/utils/tradeHistory.js +3 -0
  206. package/build/types/src/abis/ArbitrumNodeInterface.d.ts +214 -0
  207. package/build/types/src/abis/ClaimHandler.d.ts +322 -0
  208. package/build/types/src/abis/CustomErrors.d.ts +3330 -0
  209. package/build/types/src/abis/DataStore.d.ts +1098 -0
  210. package/build/types/src/abis/ERC20PermitInterface.d.ts +90 -0
  211. package/build/types/src/abis/ERC721.d.ts +334 -0
  212. package/build/types/src/abis/EventEmitter.d.ts +1564 -0
  213. package/build/types/src/abis/ExchangeRouter.d.ts +1224 -0
  214. package/build/types/src/abis/GelatoRelayRouter.d.ts +1222 -0
  215. package/build/types/src/abis/GlpManager.d.ts +452 -0
  216. package/build/types/src/abis/GlvReader.d.ts +1131 -0
  217. package/build/types/src/abis/GlvRouter.d.ts +588 -0
  218. package/build/types/src/abis/GmxMigrator.d.ts +497 -0
  219. package/build/types/src/abis/GovToken.d.ts +588 -0
  220. package/build/types/src/abis/LayerZeroProvider.d.ts +285 -0
  221. package/build/types/src/abis/MintableBaseToken.d.ts +526 -0
  222. package/build/types/src/abis/Multicall.d.ts +323 -0
  223. package/build/types/src/abis/MultichainClaimsRouter.d.ts +973 -0
  224. package/build/types/src/abis/MultichainGlvRouter.d.ts +886 -0
  225. package/build/types/src/abis/MultichainGmRouter.d.ts +1118 -0
  226. package/build/types/src/abis/MultichainOrderRouter.d.ts +1557 -0
  227. package/build/types/src/abis/MultichainSubaccountRouter.d.ts +1606 -0
  228. package/build/types/src/abis/MultichainTransferRouter.d.ts +702 -0
  229. package/build/types/src/abis/MultichainUtils.d.ts +100 -0
  230. package/build/types/src/abis/MultichainVault.d.ts +208 -0
  231. package/build/types/src/abis/Reader.d.ts +264 -0
  232. package/build/types/src/abis/ReaderV2.d.ts +474 -0
  233. package/build/types/src/abis/ReferralStorage.d.ts +429 -0
  234. package/build/types/src/abis/RelayParams.d.ts +114 -0
  235. package/build/types/src/abis/RewardReader.d.ts +60 -0
  236. package/build/types/src/abis/RewardRouter.d.ts +790 -0
  237. package/build/types/src/abis/RewardTracker.d.ts +695 -0
  238. package/build/types/src/abis/SmartAccount.d.ts +20 -0
  239. package/build/types/src/abis/StBTC.d.ts +932 -0
  240. package/build/types/src/abis/SubaccountApproval.d.ts +29 -0
  241. package/build/types/src/abis/SubaccountGelatoRelayRouter.d.ts +1567 -0
  242. package/build/types/src/abis/SubaccountRouter.d.ts +465 -0
  243. package/build/types/src/abis/SyntheticsReader.d.ts +3780 -0
  244. package/build/types/src/abis/SyntheticsRouter.d.ts +54 -0
  245. package/build/types/src/abis/Timelock.d.ts +1356 -0
  246. package/build/types/src/abis/Token.d.ts +260 -0
  247. package/build/types/src/abis/Treasury.d.ts +312 -0
  248. package/build/types/src/abis/UniPool.d.ts +64 -0
  249. package/build/types/src/abis/UniswapV2.d.ts +511 -0
  250. package/build/types/src/abis/UniswapV3Factory.d.ts +154 -0
  251. package/build/types/src/abis/UniswapV3Pool.d.ts +771 -0
  252. package/build/types/src/abis/UniswapV3PositionManager.d.ts +767 -0
  253. package/build/types/src/abis/Vault.d.ts +2482 -0
  254. package/build/types/src/abis/VaultReader.d.ts +62 -0
  255. package/build/types/src/abis/VaultV2.d.ts +2327 -0
  256. package/build/types/src/abis/VaultV2b.d.ts +2482 -0
  257. package/build/types/src/abis/VenusVToken.d.ts +36 -0
  258. package/build/types/src/abis/Vester.d.ts +782 -0
  259. package/build/types/src/abis/WETH.d.ts +240 -0
  260. package/build/types/src/abis/index.d.ts +43288 -23
  261. package/build/types/src/configs/batch.d.ts +1 -0
  262. package/build/types/src/configs/chainIds.d.ts +10 -0
  263. package/build/types/src/configs/chains.d.ts +7 -12
  264. package/build/types/src/configs/contracts.d.ts +0 -21
  265. package/build/types/src/configs/dataStore.d.ts +2 -3
  266. package/build/types/src/configs/express.d.ts +4 -0
  267. package/build/types/src/configs/factors.d.ts +1 -2
  268. package/build/types/src/configs/markets.d.ts +3 -0
  269. package/build/types/src/configs/multichain.d.ts +5 -0
  270. package/build/types/src/configs/tokens.d.ts +1 -0
  271. package/build/types/src/configs/uniswapV3.d.ts +7 -0
  272. package/build/types/src/configs/venus.d.ts +16 -0
  273. package/build/types/src/index.d.ts +2 -2
  274. package/build/types/src/modules/base.d.ts +1 -1
  275. package/build/types/src/modules/markets/index.d.ts +1 -0
  276. package/build/types/src/modules/markets/query-builders.d.ts +2 -2
  277. package/build/types/src/modules/markets/types.d.ts +2 -2
  278. package/build/types/src/modules/orders/orders.d.ts +2 -2
  279. package/build/types/src/modules/orders/transactions/cancelOrdersTxn.d.ts +2 -2
  280. package/build/types/src/modules/orders/transactions/createDecreaseOrderTxn.d.ts +1 -1
  281. package/build/types/src/modules/orders/transactions/createWrapOrUnwrapTxn.d.ts +1 -1
  282. package/build/types/src/modules/orders/transactions/updateOrderTxn.d.ts +1 -1
  283. package/build/types/src/modules/orders/utils.d.ts +2 -2
  284. package/build/types/src/modules/positions/positions.d.ts +1 -1
  285. package/build/types/src/types/markets.d.ts +3 -3
  286. package/build/types/src/types/orders.d.ts +1 -0
  287. package/build/types/src/types/positions.d.ts +1 -0
  288. package/build/types/src/types/subsquid.d.ts +633 -305
  289. package/build/types/src/types/tokens.d.ts +15 -4
  290. package/build/types/src/types/trade.d.ts +1 -0
  291. package/build/types/src/types/tradeHistory.d.ts +5 -0
  292. package/build/types/src/utils/LruCache.d.ts +2 -2
  293. package/build/types/src/utils/bigmath.d.ts +1 -0
  294. package/build/types/src/utils/callContract.d.ts +1 -1
  295. package/build/types/src/utils/fees/priceImpact.d.ts +9 -3
  296. package/build/types/src/utils/hash.d.ts +1 -1
  297. package/build/types/src/utils/{subgraph.d.ts → indexers.d.ts} +1 -0
  298. package/build/types/src/utils/marketKeysAndConfigs.d.ts +2 -3
  299. package/build/types/src/utils/markets.d.ts +1 -0
  300. package/build/types/src/utils/numbers.d.ts +4 -0
  301. package/build/types/src/utils/orderTransactions.d.ts +7 -7
  302. package/build/types/src/utils/orders.d.ts +1 -0
  303. package/build/types/src/utils/prices.d.ts +0 -2
  304. package/build/types/src/utils/swap/swapPath.d.ts +0 -1
  305. package/build/types/src/utils/trade/decrease.d.ts +1 -0
  306. package/build/types/src/utils/trade/increase.d.ts +1 -0
  307. package/build/types/src/utils/tradeHistory.d.ts +1 -2
  308. package/package.json +6 -2
  309. package/build/cjs/src/abis/ArbitrumNodeInterface.json +0 -105
  310. package/build/cjs/src/abis/ClaimHandler.json +0 -424
  311. package/build/cjs/src/abis/CustomErrors.json +0 -4432
  312. package/build/cjs/src/abis/DataStore.json +0 -1459
  313. package/build/cjs/src/abis/ERC20PermitInterface.json +0 -118
  314. package/build/cjs/src/abis/ERC721.json +0 -442
  315. package/build/cjs/src/abis/EventEmitter.json +0 -2060
  316. package/build/cjs/src/abis/ExchangeRouter.json +0 -1706
  317. package/build/cjs/src/abis/GMT.json +0 -522
  318. package/build/cjs/src/abis/GelatoRelayRouter.json +0 -1579
  319. package/build/cjs/src/abis/GlpManager.json +0 -591
  320. package/build/cjs/src/abis/GlvReader.json +0 -1471
  321. package/build/cjs/src/abis/GlvRouter.json +0 -764
  322. package/build/cjs/src/abis/GmxMigrator.json +0 -657
  323. package/build/cjs/src/abis/GovToken.json +0 -768
  324. package/build/cjs/src/abis/LayerZeroProvider.json +0 -372
  325. package/build/cjs/src/abis/MintableBaseToken.json +0 -696
  326. package/build/cjs/src/abis/Multicall.json +0 -429
  327. package/build/cjs/src/abis/MultichainClaimsRouter.json +0 -1266
  328. package/build/cjs/src/abis/MultichainGlvRouter.json +0 -1150
  329. package/build/cjs/src/abis/MultichainGmRouter.json +0 -1449
  330. package/build/cjs/src/abis/MultichainOrderRouter.json +0 -1820
  331. package/build/cjs/src/abis/MultichainSubaccountRouter.json +0 -2069
  332. package/build/cjs/src/abis/MultichainTransferRouter.json +0 -915
  333. package/build/cjs/src/abis/MultichainUtils.json +0 -133
  334. package/build/cjs/src/abis/MultichainVault.json +0 -275
  335. package/build/cjs/src/abis/OrderBook.json +0 -1997
  336. package/build/cjs/src/abis/OrderBookReader.json +0 -111
  337. package/build/cjs/src/abis/OrderExecutor.json +0 -122
  338. package/build/cjs/src/abis/PositionManager.json +0 -1165
  339. package/build/cjs/src/abis/PositionRouter.json +0 -2030
  340. package/build/cjs/src/abis/Reader.json +0 -355
  341. package/build/cjs/src/abis/ReaderV2.json +0 -630
  342. package/build/cjs/src/abis/ReferralStorage.json +0 -557
  343. package/build/cjs/src/abis/RelayParams.json +0 -147
  344. package/build/cjs/src/abis/RewardReader.json +0 -86
  345. package/build/cjs/src/abis/RewardRouter.json +0 -1024
  346. package/build/cjs/src/abis/RewardTracker.json +0 -918
  347. package/build/cjs/src/abis/Router-v2.json +0 -605
  348. package/build/cjs/src/abis/Router.json +0 -605
  349. package/build/cjs/src/abis/SmartAccount.json +0 -28
  350. package/build/cjs/src/abis/StBTC.json +0 -1225
  351. package/build/cjs/src/abis/SubaccountApproval.json +0 -17
  352. package/build/cjs/src/abis/SubaccountGelatoRelayRouter.json +0 -2019
  353. package/build/cjs/src/abis/SubaccountRouter.json +0 -602
  354. package/build/cjs/src/abis/SyntheticsReader.json +0 -4905
  355. package/build/cjs/src/abis/SyntheticsRouter.json +0 -72
  356. package/build/cjs/src/abis/Timelock.json +0 -1737
  357. package/build/cjs/src/abis/Token.json +0 -345
  358. package/build/cjs/src/abis/Treasury.json +0 -411
  359. package/build/cjs/src/abis/UniPool.json +0 -89
  360. package/build/cjs/src/abis/UniswapV2.json +0 -1
  361. package/build/cjs/src/abis/Vault.json +0 -3220
  362. package/build/cjs/src/abis/VaultReader.json +0 -87
  363. package/build/cjs/src/abis/VaultV2.json +0 -3019
  364. package/build/cjs/src/abis/VaultV2b.json +0 -3220
  365. package/build/cjs/src/abis/Vester.json +0 -1031
  366. package/build/cjs/src/abis/WETH.json +0 -320
  367. package/build/cjs/src/abis/YieldFarm.json +0 -599
  368. package/build/cjs/src/abis/YieldToken.json +0 -560
  369. package/build/cjs/src/abis/__tests__/abis.spec.js +0 -40
  370. package/build/cjs/src/configs/__tests__/permits.spec.js +0 -109
  371. package/build/esm/src/abis/ArbitrumNodeInterface.json +0 -105
  372. package/build/esm/src/abis/ClaimHandler.json +0 -424
  373. package/build/esm/src/abis/CustomErrors.json +0 -4432
  374. package/build/esm/src/abis/DataStore.json +0 -1459
  375. package/build/esm/src/abis/ERC20PermitInterface.json +0 -118
  376. package/build/esm/src/abis/ERC721.json +0 -442
  377. package/build/esm/src/abis/EventEmitter.json +0 -2060
  378. package/build/esm/src/abis/ExchangeRouter.json +0 -1706
  379. package/build/esm/src/abis/GMT.json +0 -522
  380. package/build/esm/src/abis/GelatoRelayRouter.json +0 -1579
  381. package/build/esm/src/abis/GlpManager.json +0 -591
  382. package/build/esm/src/abis/GlvReader.json +0 -1471
  383. package/build/esm/src/abis/GlvRouter.json +0 -764
  384. package/build/esm/src/abis/GmxMigrator.json +0 -657
  385. package/build/esm/src/abis/GovToken.json +0 -768
  386. package/build/esm/src/abis/LayerZeroProvider.json +0 -372
  387. package/build/esm/src/abis/MintableBaseToken.json +0 -696
  388. package/build/esm/src/abis/Multicall.json +0 -429
  389. package/build/esm/src/abis/MultichainClaimsRouter.json +0 -1266
  390. package/build/esm/src/abis/MultichainGlvRouter.json +0 -1150
  391. package/build/esm/src/abis/MultichainGmRouter.json +0 -1449
  392. package/build/esm/src/abis/MultichainOrderRouter.json +0 -1820
  393. package/build/esm/src/abis/MultichainSubaccountRouter.json +0 -2069
  394. package/build/esm/src/abis/MultichainTransferRouter.json +0 -915
  395. package/build/esm/src/abis/MultichainUtils.json +0 -133
  396. package/build/esm/src/abis/MultichainVault.json +0 -275
  397. package/build/esm/src/abis/OrderBook.json +0 -1997
  398. package/build/esm/src/abis/OrderBookReader.json +0 -111
  399. package/build/esm/src/abis/OrderExecutor.json +0 -122
  400. package/build/esm/src/abis/PositionManager.json +0 -1165
  401. package/build/esm/src/abis/PositionRouter.json +0 -2030
  402. package/build/esm/src/abis/Reader.json +0 -355
  403. package/build/esm/src/abis/ReaderV2.json +0 -630
  404. package/build/esm/src/abis/ReferralStorage.json +0 -557
  405. package/build/esm/src/abis/RelayParams.json +0 -147
  406. package/build/esm/src/abis/RewardReader.json +0 -86
  407. package/build/esm/src/abis/RewardRouter.json +0 -1024
  408. package/build/esm/src/abis/RewardTracker.json +0 -918
  409. package/build/esm/src/abis/Router-v2.json +0 -605
  410. package/build/esm/src/abis/Router.json +0 -605
  411. package/build/esm/src/abis/SmartAccount.json +0 -28
  412. package/build/esm/src/abis/StBTC.json +0 -1225
  413. package/build/esm/src/abis/SubaccountApproval.json +0 -17
  414. package/build/esm/src/abis/SubaccountGelatoRelayRouter.json +0 -2019
  415. package/build/esm/src/abis/SubaccountRouter.json +0 -602
  416. package/build/esm/src/abis/SyntheticsReader.json +0 -4905
  417. package/build/esm/src/abis/SyntheticsRouter.json +0 -72
  418. package/build/esm/src/abis/Timelock.json +0 -1737
  419. package/build/esm/src/abis/Token.json +0 -345
  420. package/build/esm/src/abis/Treasury.json +0 -411
  421. package/build/esm/src/abis/UniPool.json +0 -89
  422. package/build/esm/src/abis/UniswapV2.json +0 -1
  423. package/build/esm/src/abis/Vault.json +0 -3220
  424. package/build/esm/src/abis/VaultReader.json +0 -87
  425. package/build/esm/src/abis/VaultV2.json +0 -3019
  426. package/build/esm/src/abis/VaultV2b.json +0 -3220
  427. package/build/esm/src/abis/Vester.json +0 -1031
  428. package/build/esm/src/abis/WETH.json +0 -320
  429. package/build/esm/src/abis/YieldFarm.json +0 -599
  430. package/build/esm/src/abis/YieldToken.json +0 -560
  431. package/build/esm/src/abis/__tests__/abis.spec.js +0 -35
  432. package/build/esm/src/configs/__tests__/permits.spec.js +0 -107
  433. package/build/types/src/configs/__tests__/permits.spec.d.ts +0 -1
  434. package/build/types/src/utils/__tests__/subgraph.spec.d.ts +0 -1
  435. /package/build/types/src/{abis/__tests__/abis.spec.d.ts → utils/__tests__/indexers.spec.d.ts} +0 -0
@@ -0,0 +1,1606 @@
1
+ declare const _default: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly components: readonly [{
4
+ readonly internalType: "contract Router";
5
+ readonly name: "router";
6
+ readonly type: "address";
7
+ }, {
8
+ readonly internalType: "contract RoleStore";
9
+ readonly name: "roleStore";
10
+ readonly type: "address";
11
+ }, {
12
+ readonly internalType: "contract DataStore";
13
+ readonly name: "dataStore";
14
+ readonly type: "address";
15
+ }, {
16
+ readonly internalType: "contract EventEmitter";
17
+ readonly name: "eventEmitter";
18
+ readonly type: "address";
19
+ }, {
20
+ readonly internalType: "contract IOracle";
21
+ readonly name: "oracle";
22
+ readonly type: "address";
23
+ }, {
24
+ readonly internalType: "contract OrderVault";
25
+ readonly name: "orderVault";
26
+ readonly type: "address";
27
+ }, {
28
+ readonly internalType: "contract IOrderHandler";
29
+ readonly name: "orderHandler";
30
+ readonly type: "address";
31
+ }, {
32
+ readonly internalType: "contract ISwapHandler";
33
+ readonly name: "swapHandler";
34
+ readonly type: "address";
35
+ }, {
36
+ readonly internalType: "contract IExternalHandler";
37
+ readonly name: "externalHandler";
38
+ readonly type: "address";
39
+ }, {
40
+ readonly internalType: "contract MultichainVault";
41
+ readonly name: "multichainVault";
42
+ readonly type: "address";
43
+ }];
44
+ readonly internalType: "struct MultichainRouter.BaseConstructorParams";
45
+ readonly name: "params";
46
+ readonly type: "tuple";
47
+ }];
48
+ readonly stateMutability: "nonpayable";
49
+ readonly type: "constructor";
50
+ }, {
51
+ readonly inputs: readonly [{
52
+ readonly internalType: "uint256";
53
+ readonly name: "currentTimestamp";
54
+ readonly type: "uint256";
55
+ }, {
56
+ readonly internalType: "uint256";
57
+ readonly name: "deadline";
58
+ readonly type: "uint256";
59
+ }];
60
+ readonly name: "DeadlinePassed";
61
+ readonly type: "error";
62
+ }, {
63
+ readonly inputs: readonly [{
64
+ readonly internalType: "bytes32";
65
+ readonly name: "key";
66
+ readonly type: "bytes32";
67
+ }];
68
+ readonly name: "DisabledFeature";
69
+ readonly type: "error";
70
+ }, {
71
+ readonly inputs: readonly [];
72
+ readonly name: "EmptyHoldingAddress";
73
+ readonly type: "error";
74
+ }, {
75
+ readonly inputs: readonly [];
76
+ readonly name: "EmptyOrder";
77
+ readonly type: "error";
78
+ }, {
79
+ readonly inputs: readonly [];
80
+ readonly name: "EmptyReceiver";
81
+ readonly type: "error";
82
+ }, {
83
+ readonly inputs: readonly [{
84
+ readonly internalType: "address";
85
+ readonly name: "token";
86
+ readonly type: "address";
87
+ }];
88
+ readonly name: "EmptyTokenTranferGasLimit";
89
+ readonly type: "error";
90
+ }, {
91
+ readonly inputs: readonly [{
92
+ readonly internalType: "uint256";
93
+ readonly name: "requiredRelayFee";
94
+ readonly type: "uint256";
95
+ }, {
96
+ readonly internalType: "uint256";
97
+ readonly name: "availableFeeAmount";
98
+ readonly type: "uint256";
99
+ }];
100
+ readonly name: "InsufficientRelayFee";
101
+ readonly type: "error";
102
+ }, {
103
+ readonly inputs: readonly [{
104
+ readonly internalType: "uint256";
105
+ readonly name: "desChainId";
106
+ readonly type: "uint256";
107
+ }];
108
+ readonly name: "InvalidDestinationChainId";
109
+ readonly type: "error";
110
+ }, {
111
+ readonly inputs: readonly [{
112
+ readonly internalType: "uint256";
113
+ readonly name: "sendTokensLength";
114
+ readonly type: "uint256";
115
+ }, {
116
+ readonly internalType: "uint256";
117
+ readonly name: "sendAmountsLength";
118
+ readonly type: "uint256";
119
+ }];
120
+ readonly name: "InvalidExternalCalls";
121
+ readonly type: "error";
122
+ }, {
123
+ readonly inputs: readonly [{
124
+ readonly internalType: "address";
125
+ readonly name: "spender";
126
+ readonly type: "address";
127
+ }, {
128
+ readonly internalType: "address";
129
+ readonly name: "expectedSpender";
130
+ readonly type: "address";
131
+ }];
132
+ readonly name: "InvalidPermitSpender";
133
+ readonly type: "error";
134
+ }, {
135
+ readonly inputs: readonly [{
136
+ readonly internalType: "uint256";
137
+ readonly name: "srcChainId";
138
+ readonly type: "uint256";
139
+ }];
140
+ readonly name: "InvalidSrcChainId";
141
+ readonly type: "error";
142
+ }, {
143
+ readonly inputs: readonly [{
144
+ readonly internalType: "bytes32";
145
+ readonly name: "digest";
146
+ readonly type: "bytes32";
147
+ }];
148
+ readonly name: "InvalidUserDigest";
149
+ readonly type: "error";
150
+ }, {
151
+ readonly inputs: readonly [{
152
+ readonly internalType: "uint256";
153
+ readonly name: "feeUsd";
154
+ readonly type: "uint256";
155
+ }, {
156
+ readonly internalType: "uint256";
157
+ readonly name: "maxFeeUsd";
158
+ readonly type: "uint256";
159
+ }];
160
+ readonly name: "MaxRelayFeeSwapForSubaccountExceeded";
161
+ readonly type: "error";
162
+ }, {
163
+ readonly inputs: readonly [];
164
+ readonly name: "NonEmptyExternalCallsForSubaccountOrder";
165
+ readonly type: "error";
166
+ }, {
167
+ readonly inputs: readonly [];
168
+ readonly name: "RelayEmptyBatch";
169
+ readonly type: "error";
170
+ }, {
171
+ readonly inputs: readonly [];
172
+ readonly name: "TokenPermitsNotAllowedForMultichain";
173
+ readonly type: "error";
174
+ }, {
175
+ readonly inputs: readonly [{
176
+ readonly internalType: "address";
177
+ readonly name: "token";
178
+ readonly type: "address";
179
+ }, {
180
+ readonly internalType: "address";
181
+ readonly name: "receiver";
182
+ readonly type: "address";
183
+ }, {
184
+ readonly internalType: "uint256";
185
+ readonly name: "amount";
186
+ readonly type: "uint256";
187
+ }];
188
+ readonly name: "TokenTransferError";
189
+ readonly type: "error";
190
+ }, {
191
+ readonly inputs: readonly [{
192
+ readonly internalType: "address";
193
+ readonly name: "msgSender";
194
+ readonly type: "address";
195
+ }, {
196
+ readonly internalType: "string";
197
+ readonly name: "role";
198
+ readonly type: "string";
199
+ }];
200
+ readonly name: "Unauthorized";
201
+ readonly type: "error";
202
+ }, {
203
+ readonly inputs: readonly [{
204
+ readonly internalType: "address";
205
+ readonly name: "feeToken";
206
+ readonly type: "address";
207
+ }, {
208
+ readonly internalType: "address";
209
+ readonly name: "expectedFeeToken";
210
+ readonly type: "address";
211
+ }];
212
+ readonly name: "UnexpectedRelayFeeToken";
213
+ readonly type: "error";
214
+ }, {
215
+ readonly inputs: readonly [{
216
+ readonly internalType: "address";
217
+ readonly name: "feeToken";
218
+ readonly type: "address";
219
+ }, {
220
+ readonly internalType: "address";
221
+ readonly name: "expectedFeeToken";
222
+ readonly type: "address";
223
+ }];
224
+ readonly name: "UnsupportedRelayFeeToken";
225
+ readonly type: "error";
226
+ }, {
227
+ readonly anonymous: false;
228
+ readonly inputs: readonly [{
229
+ readonly indexed: false;
230
+ readonly internalType: "string";
231
+ readonly name: "reason";
232
+ readonly type: "string";
233
+ }, {
234
+ readonly indexed: false;
235
+ readonly internalType: "bytes";
236
+ readonly name: "returndata";
237
+ readonly type: "bytes";
238
+ }];
239
+ readonly name: "TokenTransferReverted";
240
+ readonly type: "event";
241
+ }, {
242
+ readonly inputs: readonly [{
243
+ readonly components: readonly [{
244
+ readonly components: readonly [{
245
+ readonly internalType: "address[]";
246
+ readonly name: "tokens";
247
+ readonly type: "address[]";
248
+ }, {
249
+ readonly internalType: "address[]";
250
+ readonly name: "providers";
251
+ readonly type: "address[]";
252
+ }, {
253
+ readonly internalType: "bytes[]";
254
+ readonly name: "data";
255
+ readonly type: "bytes[]";
256
+ }];
257
+ readonly internalType: "struct OracleUtils.SetPricesParams";
258
+ readonly name: "oracleParams";
259
+ readonly type: "tuple";
260
+ }, {
261
+ readonly components: readonly [{
262
+ readonly internalType: "address[]";
263
+ readonly name: "sendTokens";
264
+ readonly type: "address[]";
265
+ }, {
266
+ readonly internalType: "uint256[]";
267
+ readonly name: "sendAmounts";
268
+ readonly type: "uint256[]";
269
+ }, {
270
+ readonly internalType: "address[]";
271
+ readonly name: "externalCallTargets";
272
+ readonly type: "address[]";
273
+ }, {
274
+ readonly internalType: "bytes[]";
275
+ readonly name: "externalCallDataList";
276
+ readonly type: "bytes[]";
277
+ }, {
278
+ readonly internalType: "address[]";
279
+ readonly name: "refundTokens";
280
+ readonly type: "address[]";
281
+ }, {
282
+ readonly internalType: "address[]";
283
+ readonly name: "refundReceivers";
284
+ readonly type: "address[]";
285
+ }];
286
+ readonly internalType: "struct IRelayUtils.ExternalCalls";
287
+ readonly name: "externalCalls";
288
+ readonly type: "tuple";
289
+ }, {
290
+ readonly components: readonly [{
291
+ readonly internalType: "address";
292
+ readonly name: "owner";
293
+ readonly type: "address";
294
+ }, {
295
+ readonly internalType: "address";
296
+ readonly name: "spender";
297
+ readonly type: "address";
298
+ }, {
299
+ readonly internalType: "uint256";
300
+ readonly name: "value";
301
+ readonly type: "uint256";
302
+ }, {
303
+ readonly internalType: "uint256";
304
+ readonly name: "deadline";
305
+ readonly type: "uint256";
306
+ }, {
307
+ readonly internalType: "uint8";
308
+ readonly name: "v";
309
+ readonly type: "uint8";
310
+ }, {
311
+ readonly internalType: "bytes32";
312
+ readonly name: "r";
313
+ readonly type: "bytes32";
314
+ }, {
315
+ readonly internalType: "bytes32";
316
+ readonly name: "s";
317
+ readonly type: "bytes32";
318
+ }, {
319
+ readonly internalType: "address";
320
+ readonly name: "token";
321
+ readonly type: "address";
322
+ }];
323
+ readonly internalType: "struct IRelayUtils.TokenPermit[]";
324
+ readonly name: "tokenPermits";
325
+ readonly type: "tuple[]";
326
+ }, {
327
+ readonly components: readonly [{
328
+ readonly internalType: "address";
329
+ readonly name: "feeToken";
330
+ readonly type: "address";
331
+ }, {
332
+ readonly internalType: "uint256";
333
+ readonly name: "feeAmount";
334
+ readonly type: "uint256";
335
+ }, {
336
+ readonly internalType: "address[]";
337
+ readonly name: "feeSwapPath";
338
+ readonly type: "address[]";
339
+ }];
340
+ readonly internalType: "struct IRelayUtils.FeeParams";
341
+ readonly name: "fee";
342
+ readonly type: "tuple";
343
+ }, {
344
+ readonly internalType: "uint256";
345
+ readonly name: "userNonce";
346
+ readonly type: "uint256";
347
+ }, {
348
+ readonly internalType: "uint256";
349
+ readonly name: "deadline";
350
+ readonly type: "uint256";
351
+ }, {
352
+ readonly internalType: "bytes";
353
+ readonly name: "signature";
354
+ readonly type: "bytes";
355
+ }, {
356
+ readonly internalType: "uint256";
357
+ readonly name: "desChainId";
358
+ readonly type: "uint256";
359
+ }];
360
+ readonly internalType: "struct IRelayUtils.RelayParams";
361
+ readonly name: "relayParams";
362
+ readonly type: "tuple";
363
+ }, {
364
+ readonly components: readonly [{
365
+ readonly internalType: "address";
366
+ readonly name: "subaccount";
367
+ readonly type: "address";
368
+ }, {
369
+ readonly internalType: "bool";
370
+ readonly name: "shouldAdd";
371
+ readonly type: "bool";
372
+ }, {
373
+ readonly internalType: "uint256";
374
+ readonly name: "expiresAt";
375
+ readonly type: "uint256";
376
+ }, {
377
+ readonly internalType: "uint256";
378
+ readonly name: "maxAllowedCount";
379
+ readonly type: "uint256";
380
+ }, {
381
+ readonly internalType: "bytes32";
382
+ readonly name: "actionType";
383
+ readonly type: "bytes32";
384
+ }, {
385
+ readonly internalType: "uint256";
386
+ readonly name: "nonce";
387
+ readonly type: "uint256";
388
+ }, {
389
+ readonly internalType: "uint256";
390
+ readonly name: "desChainId";
391
+ readonly type: "uint256";
392
+ }, {
393
+ readonly internalType: "uint256";
394
+ readonly name: "deadline";
395
+ readonly type: "uint256";
396
+ }, {
397
+ readonly internalType: "bytes32";
398
+ readonly name: "integrationId";
399
+ readonly type: "bytes32";
400
+ }, {
401
+ readonly internalType: "bytes";
402
+ readonly name: "signature";
403
+ readonly type: "bytes";
404
+ }];
405
+ readonly internalType: "struct SubaccountApproval";
406
+ readonly name: "subaccountApproval";
407
+ readonly type: "tuple";
408
+ }, {
409
+ readonly internalType: "address";
410
+ readonly name: "account";
411
+ readonly type: "address";
412
+ }, {
413
+ readonly internalType: "uint256";
414
+ readonly name: "srcChainId";
415
+ readonly type: "uint256";
416
+ }, {
417
+ readonly internalType: "address";
418
+ readonly name: "subaccount";
419
+ readonly type: "address";
420
+ }, {
421
+ readonly components: readonly [{
422
+ readonly components: readonly [{
423
+ readonly components: readonly [{
424
+ readonly internalType: "address";
425
+ readonly name: "receiver";
426
+ readonly type: "address";
427
+ }, {
428
+ readonly internalType: "address";
429
+ readonly name: "cancellationReceiver";
430
+ readonly type: "address";
431
+ }, {
432
+ readonly internalType: "address";
433
+ readonly name: "callbackContract";
434
+ readonly type: "address";
435
+ }, {
436
+ readonly internalType: "address";
437
+ readonly name: "uiFeeReceiver";
438
+ readonly type: "address";
439
+ }, {
440
+ readonly internalType: "address";
441
+ readonly name: "market";
442
+ readonly type: "address";
443
+ }, {
444
+ readonly internalType: "address";
445
+ readonly name: "initialCollateralToken";
446
+ readonly type: "address";
447
+ }, {
448
+ readonly internalType: "address[]";
449
+ readonly name: "swapPath";
450
+ readonly type: "address[]";
451
+ }];
452
+ readonly internalType: "struct IBaseOrderUtils.CreateOrderParamsAddresses";
453
+ readonly name: "addresses";
454
+ readonly type: "tuple";
455
+ }, {
456
+ readonly components: readonly [{
457
+ readonly internalType: "uint256";
458
+ readonly name: "sizeDeltaUsd";
459
+ readonly type: "uint256";
460
+ }, {
461
+ readonly internalType: "uint256";
462
+ readonly name: "initialCollateralDeltaAmount";
463
+ readonly type: "uint256";
464
+ }, {
465
+ readonly internalType: "uint256";
466
+ readonly name: "triggerPrice";
467
+ readonly type: "uint256";
468
+ }, {
469
+ readonly internalType: "uint256";
470
+ readonly name: "acceptablePrice";
471
+ readonly type: "uint256";
472
+ }, {
473
+ readonly internalType: "uint256";
474
+ readonly name: "executionFee";
475
+ readonly type: "uint256";
476
+ }, {
477
+ readonly internalType: "uint256";
478
+ readonly name: "callbackGasLimit";
479
+ readonly type: "uint256";
480
+ }, {
481
+ readonly internalType: "uint256";
482
+ readonly name: "minOutputAmount";
483
+ readonly type: "uint256";
484
+ }, {
485
+ readonly internalType: "uint256";
486
+ readonly name: "validFromTime";
487
+ readonly type: "uint256";
488
+ }];
489
+ readonly internalType: "struct IBaseOrderUtils.CreateOrderParamsNumbers";
490
+ readonly name: "numbers";
491
+ readonly type: "tuple";
492
+ }, {
493
+ readonly internalType: "enum Order.OrderType";
494
+ readonly name: "orderType";
495
+ readonly type: "uint8";
496
+ }, {
497
+ readonly internalType: "enum Order.DecreasePositionSwapType";
498
+ readonly name: "decreasePositionSwapType";
499
+ readonly type: "uint8";
500
+ }, {
501
+ readonly internalType: "bool";
502
+ readonly name: "isLong";
503
+ readonly type: "bool";
504
+ }, {
505
+ readonly internalType: "bool";
506
+ readonly name: "shouldUnwrapNativeToken";
507
+ readonly type: "bool";
508
+ }, {
509
+ readonly internalType: "bool";
510
+ readonly name: "autoCancel";
511
+ readonly type: "bool";
512
+ }, {
513
+ readonly internalType: "bytes32";
514
+ readonly name: "referralCode";
515
+ readonly type: "bytes32";
516
+ }, {
517
+ readonly internalType: "bytes32[]";
518
+ readonly name: "dataList";
519
+ readonly type: "bytes32[]";
520
+ }];
521
+ readonly internalType: "struct IBaseOrderUtils.CreateOrderParams[]";
522
+ readonly name: "createOrderParamsList";
523
+ readonly type: "tuple[]";
524
+ }, {
525
+ readonly components: readonly [{
526
+ readonly internalType: "bytes32";
527
+ readonly name: "key";
528
+ readonly type: "bytes32";
529
+ }, {
530
+ readonly internalType: "uint256";
531
+ readonly name: "sizeDeltaUsd";
532
+ readonly type: "uint256";
533
+ }, {
534
+ readonly internalType: "uint256";
535
+ readonly name: "acceptablePrice";
536
+ readonly type: "uint256";
537
+ }, {
538
+ readonly internalType: "uint256";
539
+ readonly name: "triggerPrice";
540
+ readonly type: "uint256";
541
+ }, {
542
+ readonly internalType: "uint256";
543
+ readonly name: "minOutputAmount";
544
+ readonly type: "uint256";
545
+ }, {
546
+ readonly internalType: "uint256";
547
+ readonly name: "validFromTime";
548
+ readonly type: "uint256";
549
+ }, {
550
+ readonly internalType: "bool";
551
+ readonly name: "autoCancel";
552
+ readonly type: "bool";
553
+ }, {
554
+ readonly internalType: "uint256";
555
+ readonly name: "executionFeeIncrease";
556
+ readonly type: "uint256";
557
+ }];
558
+ readonly internalType: "struct IRelayUtils.UpdateOrderParams[]";
559
+ readonly name: "updateOrderParamsList";
560
+ readonly type: "tuple[]";
561
+ }, {
562
+ readonly internalType: "bytes32[]";
563
+ readonly name: "cancelOrderKeys";
564
+ readonly type: "bytes32[]";
565
+ }];
566
+ readonly internalType: "struct IRelayUtils.BatchParams";
567
+ readonly name: "params";
568
+ readonly type: "tuple";
569
+ }];
570
+ readonly name: "batch";
571
+ readonly outputs: readonly [{
572
+ readonly internalType: "bytes32[]";
573
+ readonly name: "";
574
+ readonly type: "bytes32[]";
575
+ }];
576
+ readonly stateMutability: "nonpayable";
577
+ readonly type: "function";
578
+ }, {
579
+ readonly inputs: readonly [{
580
+ readonly components: readonly [{
581
+ readonly components: readonly [{
582
+ readonly internalType: "address[]";
583
+ readonly name: "tokens";
584
+ readonly type: "address[]";
585
+ }, {
586
+ readonly internalType: "address[]";
587
+ readonly name: "providers";
588
+ readonly type: "address[]";
589
+ }, {
590
+ readonly internalType: "bytes[]";
591
+ readonly name: "data";
592
+ readonly type: "bytes[]";
593
+ }];
594
+ readonly internalType: "struct OracleUtils.SetPricesParams";
595
+ readonly name: "oracleParams";
596
+ readonly type: "tuple";
597
+ }, {
598
+ readonly components: readonly [{
599
+ readonly internalType: "address[]";
600
+ readonly name: "sendTokens";
601
+ readonly type: "address[]";
602
+ }, {
603
+ readonly internalType: "uint256[]";
604
+ readonly name: "sendAmounts";
605
+ readonly type: "uint256[]";
606
+ }, {
607
+ readonly internalType: "address[]";
608
+ readonly name: "externalCallTargets";
609
+ readonly type: "address[]";
610
+ }, {
611
+ readonly internalType: "bytes[]";
612
+ readonly name: "externalCallDataList";
613
+ readonly type: "bytes[]";
614
+ }, {
615
+ readonly internalType: "address[]";
616
+ readonly name: "refundTokens";
617
+ readonly type: "address[]";
618
+ }, {
619
+ readonly internalType: "address[]";
620
+ readonly name: "refundReceivers";
621
+ readonly type: "address[]";
622
+ }];
623
+ readonly internalType: "struct IRelayUtils.ExternalCalls";
624
+ readonly name: "externalCalls";
625
+ readonly type: "tuple";
626
+ }, {
627
+ readonly components: readonly [{
628
+ readonly internalType: "address";
629
+ readonly name: "owner";
630
+ readonly type: "address";
631
+ }, {
632
+ readonly internalType: "address";
633
+ readonly name: "spender";
634
+ readonly type: "address";
635
+ }, {
636
+ readonly internalType: "uint256";
637
+ readonly name: "value";
638
+ readonly type: "uint256";
639
+ }, {
640
+ readonly internalType: "uint256";
641
+ readonly name: "deadline";
642
+ readonly type: "uint256";
643
+ }, {
644
+ readonly internalType: "uint8";
645
+ readonly name: "v";
646
+ readonly type: "uint8";
647
+ }, {
648
+ readonly internalType: "bytes32";
649
+ readonly name: "r";
650
+ readonly type: "bytes32";
651
+ }, {
652
+ readonly internalType: "bytes32";
653
+ readonly name: "s";
654
+ readonly type: "bytes32";
655
+ }, {
656
+ readonly internalType: "address";
657
+ readonly name: "token";
658
+ readonly type: "address";
659
+ }];
660
+ readonly internalType: "struct IRelayUtils.TokenPermit[]";
661
+ readonly name: "tokenPermits";
662
+ readonly type: "tuple[]";
663
+ }, {
664
+ readonly components: readonly [{
665
+ readonly internalType: "address";
666
+ readonly name: "feeToken";
667
+ readonly type: "address";
668
+ }, {
669
+ readonly internalType: "uint256";
670
+ readonly name: "feeAmount";
671
+ readonly type: "uint256";
672
+ }, {
673
+ readonly internalType: "address[]";
674
+ readonly name: "feeSwapPath";
675
+ readonly type: "address[]";
676
+ }];
677
+ readonly internalType: "struct IRelayUtils.FeeParams";
678
+ readonly name: "fee";
679
+ readonly type: "tuple";
680
+ }, {
681
+ readonly internalType: "uint256";
682
+ readonly name: "userNonce";
683
+ readonly type: "uint256";
684
+ }, {
685
+ readonly internalType: "uint256";
686
+ readonly name: "deadline";
687
+ readonly type: "uint256";
688
+ }, {
689
+ readonly internalType: "bytes";
690
+ readonly name: "signature";
691
+ readonly type: "bytes";
692
+ }, {
693
+ readonly internalType: "uint256";
694
+ readonly name: "desChainId";
695
+ readonly type: "uint256";
696
+ }];
697
+ readonly internalType: "struct IRelayUtils.RelayParams";
698
+ readonly name: "relayParams";
699
+ readonly type: "tuple";
700
+ }, {
701
+ readonly components: readonly [{
702
+ readonly internalType: "address";
703
+ readonly name: "subaccount";
704
+ readonly type: "address";
705
+ }, {
706
+ readonly internalType: "bool";
707
+ readonly name: "shouldAdd";
708
+ readonly type: "bool";
709
+ }, {
710
+ readonly internalType: "uint256";
711
+ readonly name: "expiresAt";
712
+ readonly type: "uint256";
713
+ }, {
714
+ readonly internalType: "uint256";
715
+ readonly name: "maxAllowedCount";
716
+ readonly type: "uint256";
717
+ }, {
718
+ readonly internalType: "bytes32";
719
+ readonly name: "actionType";
720
+ readonly type: "bytes32";
721
+ }, {
722
+ readonly internalType: "uint256";
723
+ readonly name: "nonce";
724
+ readonly type: "uint256";
725
+ }, {
726
+ readonly internalType: "uint256";
727
+ readonly name: "desChainId";
728
+ readonly type: "uint256";
729
+ }, {
730
+ readonly internalType: "uint256";
731
+ readonly name: "deadline";
732
+ readonly type: "uint256";
733
+ }, {
734
+ readonly internalType: "bytes32";
735
+ readonly name: "integrationId";
736
+ readonly type: "bytes32";
737
+ }, {
738
+ readonly internalType: "bytes";
739
+ readonly name: "signature";
740
+ readonly type: "bytes";
741
+ }];
742
+ readonly internalType: "struct SubaccountApproval";
743
+ readonly name: "subaccountApproval";
744
+ readonly type: "tuple";
745
+ }, {
746
+ readonly internalType: "address";
747
+ readonly name: "account";
748
+ readonly type: "address";
749
+ }, {
750
+ readonly internalType: "uint256";
751
+ readonly name: "srcChainId";
752
+ readonly type: "uint256";
753
+ }, {
754
+ readonly internalType: "address";
755
+ readonly name: "subaccount";
756
+ readonly type: "address";
757
+ }, {
758
+ readonly internalType: "bytes32";
759
+ readonly name: "key";
760
+ readonly type: "bytes32";
761
+ }];
762
+ readonly name: "cancelOrder";
763
+ readonly outputs: readonly [];
764
+ readonly stateMutability: "nonpayable";
765
+ readonly type: "function";
766
+ }, {
767
+ readonly inputs: readonly [{
768
+ readonly components: readonly [{
769
+ readonly components: readonly [{
770
+ readonly internalType: "address[]";
771
+ readonly name: "tokens";
772
+ readonly type: "address[]";
773
+ }, {
774
+ readonly internalType: "address[]";
775
+ readonly name: "providers";
776
+ readonly type: "address[]";
777
+ }, {
778
+ readonly internalType: "bytes[]";
779
+ readonly name: "data";
780
+ readonly type: "bytes[]";
781
+ }];
782
+ readonly internalType: "struct OracleUtils.SetPricesParams";
783
+ readonly name: "oracleParams";
784
+ readonly type: "tuple";
785
+ }, {
786
+ readonly components: readonly [{
787
+ readonly internalType: "address[]";
788
+ readonly name: "sendTokens";
789
+ readonly type: "address[]";
790
+ }, {
791
+ readonly internalType: "uint256[]";
792
+ readonly name: "sendAmounts";
793
+ readonly type: "uint256[]";
794
+ }, {
795
+ readonly internalType: "address[]";
796
+ readonly name: "externalCallTargets";
797
+ readonly type: "address[]";
798
+ }, {
799
+ readonly internalType: "bytes[]";
800
+ readonly name: "externalCallDataList";
801
+ readonly type: "bytes[]";
802
+ }, {
803
+ readonly internalType: "address[]";
804
+ readonly name: "refundTokens";
805
+ readonly type: "address[]";
806
+ }, {
807
+ readonly internalType: "address[]";
808
+ readonly name: "refundReceivers";
809
+ readonly type: "address[]";
810
+ }];
811
+ readonly internalType: "struct IRelayUtils.ExternalCalls";
812
+ readonly name: "externalCalls";
813
+ readonly type: "tuple";
814
+ }, {
815
+ readonly components: readonly [{
816
+ readonly internalType: "address";
817
+ readonly name: "owner";
818
+ readonly type: "address";
819
+ }, {
820
+ readonly internalType: "address";
821
+ readonly name: "spender";
822
+ readonly type: "address";
823
+ }, {
824
+ readonly internalType: "uint256";
825
+ readonly name: "value";
826
+ readonly type: "uint256";
827
+ }, {
828
+ readonly internalType: "uint256";
829
+ readonly name: "deadline";
830
+ readonly type: "uint256";
831
+ }, {
832
+ readonly internalType: "uint8";
833
+ readonly name: "v";
834
+ readonly type: "uint8";
835
+ }, {
836
+ readonly internalType: "bytes32";
837
+ readonly name: "r";
838
+ readonly type: "bytes32";
839
+ }, {
840
+ readonly internalType: "bytes32";
841
+ readonly name: "s";
842
+ readonly type: "bytes32";
843
+ }, {
844
+ readonly internalType: "address";
845
+ readonly name: "token";
846
+ readonly type: "address";
847
+ }];
848
+ readonly internalType: "struct IRelayUtils.TokenPermit[]";
849
+ readonly name: "tokenPermits";
850
+ readonly type: "tuple[]";
851
+ }, {
852
+ readonly components: readonly [{
853
+ readonly internalType: "address";
854
+ readonly name: "feeToken";
855
+ readonly type: "address";
856
+ }, {
857
+ readonly internalType: "uint256";
858
+ readonly name: "feeAmount";
859
+ readonly type: "uint256";
860
+ }, {
861
+ readonly internalType: "address[]";
862
+ readonly name: "feeSwapPath";
863
+ readonly type: "address[]";
864
+ }];
865
+ readonly internalType: "struct IRelayUtils.FeeParams";
866
+ readonly name: "fee";
867
+ readonly type: "tuple";
868
+ }, {
869
+ readonly internalType: "uint256";
870
+ readonly name: "userNonce";
871
+ readonly type: "uint256";
872
+ }, {
873
+ readonly internalType: "uint256";
874
+ readonly name: "deadline";
875
+ readonly type: "uint256";
876
+ }, {
877
+ readonly internalType: "bytes";
878
+ readonly name: "signature";
879
+ readonly type: "bytes";
880
+ }, {
881
+ readonly internalType: "uint256";
882
+ readonly name: "desChainId";
883
+ readonly type: "uint256";
884
+ }];
885
+ readonly internalType: "struct IRelayUtils.RelayParams";
886
+ readonly name: "relayParams";
887
+ readonly type: "tuple";
888
+ }, {
889
+ readonly components: readonly [{
890
+ readonly internalType: "address";
891
+ readonly name: "subaccount";
892
+ readonly type: "address";
893
+ }, {
894
+ readonly internalType: "bool";
895
+ readonly name: "shouldAdd";
896
+ readonly type: "bool";
897
+ }, {
898
+ readonly internalType: "uint256";
899
+ readonly name: "expiresAt";
900
+ readonly type: "uint256";
901
+ }, {
902
+ readonly internalType: "uint256";
903
+ readonly name: "maxAllowedCount";
904
+ readonly type: "uint256";
905
+ }, {
906
+ readonly internalType: "bytes32";
907
+ readonly name: "actionType";
908
+ readonly type: "bytes32";
909
+ }, {
910
+ readonly internalType: "uint256";
911
+ readonly name: "nonce";
912
+ readonly type: "uint256";
913
+ }, {
914
+ readonly internalType: "uint256";
915
+ readonly name: "desChainId";
916
+ readonly type: "uint256";
917
+ }, {
918
+ readonly internalType: "uint256";
919
+ readonly name: "deadline";
920
+ readonly type: "uint256";
921
+ }, {
922
+ readonly internalType: "bytes32";
923
+ readonly name: "integrationId";
924
+ readonly type: "bytes32";
925
+ }, {
926
+ readonly internalType: "bytes";
927
+ readonly name: "signature";
928
+ readonly type: "bytes";
929
+ }];
930
+ readonly internalType: "struct SubaccountApproval";
931
+ readonly name: "subaccountApproval";
932
+ readonly type: "tuple";
933
+ }, {
934
+ readonly internalType: "address";
935
+ readonly name: "account";
936
+ readonly type: "address";
937
+ }, {
938
+ readonly internalType: "uint256";
939
+ readonly name: "srcChainId";
940
+ readonly type: "uint256";
941
+ }, {
942
+ readonly internalType: "address";
943
+ readonly name: "subaccount";
944
+ readonly type: "address";
945
+ }, {
946
+ readonly components: readonly [{
947
+ readonly components: readonly [{
948
+ readonly internalType: "address";
949
+ readonly name: "receiver";
950
+ readonly type: "address";
951
+ }, {
952
+ readonly internalType: "address";
953
+ readonly name: "cancellationReceiver";
954
+ readonly type: "address";
955
+ }, {
956
+ readonly internalType: "address";
957
+ readonly name: "callbackContract";
958
+ readonly type: "address";
959
+ }, {
960
+ readonly internalType: "address";
961
+ readonly name: "uiFeeReceiver";
962
+ readonly type: "address";
963
+ }, {
964
+ readonly internalType: "address";
965
+ readonly name: "market";
966
+ readonly type: "address";
967
+ }, {
968
+ readonly internalType: "address";
969
+ readonly name: "initialCollateralToken";
970
+ readonly type: "address";
971
+ }, {
972
+ readonly internalType: "address[]";
973
+ readonly name: "swapPath";
974
+ readonly type: "address[]";
975
+ }];
976
+ readonly internalType: "struct IBaseOrderUtils.CreateOrderParamsAddresses";
977
+ readonly name: "addresses";
978
+ readonly type: "tuple";
979
+ }, {
980
+ readonly components: readonly [{
981
+ readonly internalType: "uint256";
982
+ readonly name: "sizeDeltaUsd";
983
+ readonly type: "uint256";
984
+ }, {
985
+ readonly internalType: "uint256";
986
+ readonly name: "initialCollateralDeltaAmount";
987
+ readonly type: "uint256";
988
+ }, {
989
+ readonly internalType: "uint256";
990
+ readonly name: "triggerPrice";
991
+ readonly type: "uint256";
992
+ }, {
993
+ readonly internalType: "uint256";
994
+ readonly name: "acceptablePrice";
995
+ readonly type: "uint256";
996
+ }, {
997
+ readonly internalType: "uint256";
998
+ readonly name: "executionFee";
999
+ readonly type: "uint256";
1000
+ }, {
1001
+ readonly internalType: "uint256";
1002
+ readonly name: "callbackGasLimit";
1003
+ readonly type: "uint256";
1004
+ }, {
1005
+ readonly internalType: "uint256";
1006
+ readonly name: "minOutputAmount";
1007
+ readonly type: "uint256";
1008
+ }, {
1009
+ readonly internalType: "uint256";
1010
+ readonly name: "validFromTime";
1011
+ readonly type: "uint256";
1012
+ }];
1013
+ readonly internalType: "struct IBaseOrderUtils.CreateOrderParamsNumbers";
1014
+ readonly name: "numbers";
1015
+ readonly type: "tuple";
1016
+ }, {
1017
+ readonly internalType: "enum Order.OrderType";
1018
+ readonly name: "orderType";
1019
+ readonly type: "uint8";
1020
+ }, {
1021
+ readonly internalType: "enum Order.DecreasePositionSwapType";
1022
+ readonly name: "decreasePositionSwapType";
1023
+ readonly type: "uint8";
1024
+ }, {
1025
+ readonly internalType: "bool";
1026
+ readonly name: "isLong";
1027
+ readonly type: "bool";
1028
+ }, {
1029
+ readonly internalType: "bool";
1030
+ readonly name: "shouldUnwrapNativeToken";
1031
+ readonly type: "bool";
1032
+ }, {
1033
+ readonly internalType: "bool";
1034
+ readonly name: "autoCancel";
1035
+ readonly type: "bool";
1036
+ }, {
1037
+ readonly internalType: "bytes32";
1038
+ readonly name: "referralCode";
1039
+ readonly type: "bytes32";
1040
+ }, {
1041
+ readonly internalType: "bytes32[]";
1042
+ readonly name: "dataList";
1043
+ readonly type: "bytes32[]";
1044
+ }];
1045
+ readonly internalType: "struct IBaseOrderUtils.CreateOrderParams";
1046
+ readonly name: "params";
1047
+ readonly type: "tuple";
1048
+ }];
1049
+ readonly name: "createOrder";
1050
+ readonly outputs: readonly [{
1051
+ readonly internalType: "bytes32";
1052
+ readonly name: "";
1053
+ readonly type: "bytes32";
1054
+ }];
1055
+ readonly stateMutability: "nonpayable";
1056
+ readonly type: "function";
1057
+ }, {
1058
+ readonly inputs: readonly [];
1059
+ readonly name: "dataStore";
1060
+ readonly outputs: readonly [{
1061
+ readonly internalType: "contract DataStore";
1062
+ readonly name: "";
1063
+ readonly type: "address";
1064
+ }];
1065
+ readonly stateMutability: "view";
1066
+ readonly type: "function";
1067
+ }, {
1068
+ readonly inputs: readonly [{
1069
+ readonly internalType: "bytes32";
1070
+ readonly name: "";
1071
+ readonly type: "bytes32";
1072
+ }];
1073
+ readonly name: "digests";
1074
+ readonly outputs: readonly [{
1075
+ readonly internalType: "bool";
1076
+ readonly name: "";
1077
+ readonly type: "bool";
1078
+ }];
1079
+ readonly stateMutability: "view";
1080
+ readonly type: "function";
1081
+ }, {
1082
+ readonly inputs: readonly [];
1083
+ readonly name: "eventEmitter";
1084
+ readonly outputs: readonly [{
1085
+ readonly internalType: "contract EventEmitter";
1086
+ readonly name: "";
1087
+ readonly type: "address";
1088
+ }];
1089
+ readonly stateMutability: "view";
1090
+ readonly type: "function";
1091
+ }, {
1092
+ readonly inputs: readonly [];
1093
+ readonly name: "externalHandler";
1094
+ readonly outputs: readonly [{
1095
+ readonly internalType: "contract IExternalHandler";
1096
+ readonly name: "";
1097
+ readonly type: "address";
1098
+ }];
1099
+ readonly stateMutability: "view";
1100
+ readonly type: "function";
1101
+ }, {
1102
+ readonly inputs: readonly [{
1103
+ readonly internalType: "bytes[]";
1104
+ readonly name: "data";
1105
+ readonly type: "bytes[]";
1106
+ }];
1107
+ readonly name: "multicall";
1108
+ readonly outputs: readonly [{
1109
+ readonly internalType: "bytes[]";
1110
+ readonly name: "results";
1111
+ readonly type: "bytes[]";
1112
+ }];
1113
+ readonly stateMutability: "payable";
1114
+ readonly type: "function";
1115
+ }, {
1116
+ readonly inputs: readonly [];
1117
+ readonly name: "multichainVault";
1118
+ readonly outputs: readonly [{
1119
+ readonly internalType: "contract MultichainVault";
1120
+ readonly name: "";
1121
+ readonly type: "address";
1122
+ }];
1123
+ readonly stateMutability: "view";
1124
+ readonly type: "function";
1125
+ }, {
1126
+ readonly inputs: readonly [];
1127
+ readonly name: "oracle";
1128
+ readonly outputs: readonly [{
1129
+ readonly internalType: "contract IOracle";
1130
+ readonly name: "";
1131
+ readonly type: "address";
1132
+ }];
1133
+ readonly stateMutability: "view";
1134
+ readonly type: "function";
1135
+ }, {
1136
+ readonly inputs: readonly [];
1137
+ readonly name: "orderHandler";
1138
+ readonly outputs: readonly [{
1139
+ readonly internalType: "contract IOrderHandler";
1140
+ readonly name: "";
1141
+ readonly type: "address";
1142
+ }];
1143
+ readonly stateMutability: "view";
1144
+ readonly type: "function";
1145
+ }, {
1146
+ readonly inputs: readonly [];
1147
+ readonly name: "orderVault";
1148
+ readonly outputs: readonly [{
1149
+ readonly internalType: "contract OrderVault";
1150
+ readonly name: "";
1151
+ readonly type: "address";
1152
+ }];
1153
+ readonly stateMutability: "view";
1154
+ readonly type: "function";
1155
+ }, {
1156
+ readonly inputs: readonly [{
1157
+ readonly components: readonly [{
1158
+ readonly components: readonly [{
1159
+ readonly internalType: "address[]";
1160
+ readonly name: "tokens";
1161
+ readonly type: "address[]";
1162
+ }, {
1163
+ readonly internalType: "address[]";
1164
+ readonly name: "providers";
1165
+ readonly type: "address[]";
1166
+ }, {
1167
+ readonly internalType: "bytes[]";
1168
+ readonly name: "data";
1169
+ readonly type: "bytes[]";
1170
+ }];
1171
+ readonly internalType: "struct OracleUtils.SetPricesParams";
1172
+ readonly name: "oracleParams";
1173
+ readonly type: "tuple";
1174
+ }, {
1175
+ readonly components: readonly [{
1176
+ readonly internalType: "address[]";
1177
+ readonly name: "sendTokens";
1178
+ readonly type: "address[]";
1179
+ }, {
1180
+ readonly internalType: "uint256[]";
1181
+ readonly name: "sendAmounts";
1182
+ readonly type: "uint256[]";
1183
+ }, {
1184
+ readonly internalType: "address[]";
1185
+ readonly name: "externalCallTargets";
1186
+ readonly type: "address[]";
1187
+ }, {
1188
+ readonly internalType: "bytes[]";
1189
+ readonly name: "externalCallDataList";
1190
+ readonly type: "bytes[]";
1191
+ }, {
1192
+ readonly internalType: "address[]";
1193
+ readonly name: "refundTokens";
1194
+ readonly type: "address[]";
1195
+ }, {
1196
+ readonly internalType: "address[]";
1197
+ readonly name: "refundReceivers";
1198
+ readonly type: "address[]";
1199
+ }];
1200
+ readonly internalType: "struct IRelayUtils.ExternalCalls";
1201
+ readonly name: "externalCalls";
1202
+ readonly type: "tuple";
1203
+ }, {
1204
+ readonly components: readonly [{
1205
+ readonly internalType: "address";
1206
+ readonly name: "owner";
1207
+ readonly type: "address";
1208
+ }, {
1209
+ readonly internalType: "address";
1210
+ readonly name: "spender";
1211
+ readonly type: "address";
1212
+ }, {
1213
+ readonly internalType: "uint256";
1214
+ readonly name: "value";
1215
+ readonly type: "uint256";
1216
+ }, {
1217
+ readonly internalType: "uint256";
1218
+ readonly name: "deadline";
1219
+ readonly type: "uint256";
1220
+ }, {
1221
+ readonly internalType: "uint8";
1222
+ readonly name: "v";
1223
+ readonly type: "uint8";
1224
+ }, {
1225
+ readonly internalType: "bytes32";
1226
+ readonly name: "r";
1227
+ readonly type: "bytes32";
1228
+ }, {
1229
+ readonly internalType: "bytes32";
1230
+ readonly name: "s";
1231
+ readonly type: "bytes32";
1232
+ }, {
1233
+ readonly internalType: "address";
1234
+ readonly name: "token";
1235
+ readonly type: "address";
1236
+ }];
1237
+ readonly internalType: "struct IRelayUtils.TokenPermit[]";
1238
+ readonly name: "tokenPermits";
1239
+ readonly type: "tuple[]";
1240
+ }, {
1241
+ readonly components: readonly [{
1242
+ readonly internalType: "address";
1243
+ readonly name: "feeToken";
1244
+ readonly type: "address";
1245
+ }, {
1246
+ readonly internalType: "uint256";
1247
+ readonly name: "feeAmount";
1248
+ readonly type: "uint256";
1249
+ }, {
1250
+ readonly internalType: "address[]";
1251
+ readonly name: "feeSwapPath";
1252
+ readonly type: "address[]";
1253
+ }];
1254
+ readonly internalType: "struct IRelayUtils.FeeParams";
1255
+ readonly name: "fee";
1256
+ readonly type: "tuple";
1257
+ }, {
1258
+ readonly internalType: "uint256";
1259
+ readonly name: "userNonce";
1260
+ readonly type: "uint256";
1261
+ }, {
1262
+ readonly internalType: "uint256";
1263
+ readonly name: "deadline";
1264
+ readonly type: "uint256";
1265
+ }, {
1266
+ readonly internalType: "bytes";
1267
+ readonly name: "signature";
1268
+ readonly type: "bytes";
1269
+ }, {
1270
+ readonly internalType: "uint256";
1271
+ readonly name: "desChainId";
1272
+ readonly type: "uint256";
1273
+ }];
1274
+ readonly internalType: "struct IRelayUtils.RelayParams";
1275
+ readonly name: "relayParams";
1276
+ readonly type: "tuple";
1277
+ }, {
1278
+ readonly internalType: "address";
1279
+ readonly name: "account";
1280
+ readonly type: "address";
1281
+ }, {
1282
+ readonly internalType: "uint256";
1283
+ readonly name: "srcChainId";
1284
+ readonly type: "uint256";
1285
+ }, {
1286
+ readonly internalType: "address";
1287
+ readonly name: "subaccount";
1288
+ readonly type: "address";
1289
+ }];
1290
+ readonly name: "removeSubaccount";
1291
+ readonly outputs: readonly [];
1292
+ readonly stateMutability: "nonpayable";
1293
+ readonly type: "function";
1294
+ }, {
1295
+ readonly inputs: readonly [];
1296
+ readonly name: "roleStore";
1297
+ readonly outputs: readonly [{
1298
+ readonly internalType: "contract RoleStore";
1299
+ readonly name: "";
1300
+ readonly type: "address";
1301
+ }];
1302
+ readonly stateMutability: "view";
1303
+ readonly type: "function";
1304
+ }, {
1305
+ readonly inputs: readonly [];
1306
+ readonly name: "router";
1307
+ readonly outputs: readonly [{
1308
+ readonly internalType: "contract Router";
1309
+ readonly name: "";
1310
+ readonly type: "address";
1311
+ }];
1312
+ readonly stateMutability: "view";
1313
+ readonly type: "function";
1314
+ }, {
1315
+ readonly inputs: readonly [{
1316
+ readonly internalType: "address";
1317
+ readonly name: "receiver";
1318
+ readonly type: "address";
1319
+ }, {
1320
+ readonly internalType: "uint256";
1321
+ readonly name: "amount";
1322
+ readonly type: "uint256";
1323
+ }];
1324
+ readonly name: "sendNativeToken";
1325
+ readonly outputs: readonly [];
1326
+ readonly stateMutability: "payable";
1327
+ readonly type: "function";
1328
+ }, {
1329
+ readonly inputs: readonly [{
1330
+ readonly internalType: "address";
1331
+ readonly name: "token";
1332
+ readonly type: "address";
1333
+ }, {
1334
+ readonly internalType: "address";
1335
+ readonly name: "receiver";
1336
+ readonly type: "address";
1337
+ }, {
1338
+ readonly internalType: "uint256";
1339
+ readonly name: "amount";
1340
+ readonly type: "uint256";
1341
+ }];
1342
+ readonly name: "sendTokens";
1343
+ readonly outputs: readonly [];
1344
+ readonly stateMutability: "payable";
1345
+ readonly type: "function";
1346
+ }, {
1347
+ readonly inputs: readonly [{
1348
+ readonly internalType: "address";
1349
+ readonly name: "receiver";
1350
+ readonly type: "address";
1351
+ }, {
1352
+ readonly internalType: "uint256";
1353
+ readonly name: "amount";
1354
+ readonly type: "uint256";
1355
+ }];
1356
+ readonly name: "sendWnt";
1357
+ readonly outputs: readonly [];
1358
+ readonly stateMutability: "payable";
1359
+ readonly type: "function";
1360
+ }, {
1361
+ readonly inputs: readonly [{
1362
+ readonly internalType: "address";
1363
+ readonly name: "";
1364
+ readonly type: "address";
1365
+ }];
1366
+ readonly name: "subaccountApprovalNonces";
1367
+ readonly outputs: readonly [{
1368
+ readonly internalType: "uint256";
1369
+ readonly name: "";
1370
+ readonly type: "uint256";
1371
+ }];
1372
+ readonly stateMutability: "view";
1373
+ readonly type: "function";
1374
+ }, {
1375
+ readonly inputs: readonly [];
1376
+ readonly name: "swapHandler";
1377
+ readonly outputs: readonly [{
1378
+ readonly internalType: "contract ISwapHandler";
1379
+ readonly name: "";
1380
+ readonly type: "address";
1381
+ }];
1382
+ readonly stateMutability: "view";
1383
+ readonly type: "function";
1384
+ }, {
1385
+ readonly inputs: readonly [{
1386
+ readonly components: readonly [{
1387
+ readonly components: readonly [{
1388
+ readonly internalType: "address[]";
1389
+ readonly name: "tokens";
1390
+ readonly type: "address[]";
1391
+ }, {
1392
+ readonly internalType: "address[]";
1393
+ readonly name: "providers";
1394
+ readonly type: "address[]";
1395
+ }, {
1396
+ readonly internalType: "bytes[]";
1397
+ readonly name: "data";
1398
+ readonly type: "bytes[]";
1399
+ }];
1400
+ readonly internalType: "struct OracleUtils.SetPricesParams";
1401
+ readonly name: "oracleParams";
1402
+ readonly type: "tuple";
1403
+ }, {
1404
+ readonly components: readonly [{
1405
+ readonly internalType: "address[]";
1406
+ readonly name: "sendTokens";
1407
+ readonly type: "address[]";
1408
+ }, {
1409
+ readonly internalType: "uint256[]";
1410
+ readonly name: "sendAmounts";
1411
+ readonly type: "uint256[]";
1412
+ }, {
1413
+ readonly internalType: "address[]";
1414
+ readonly name: "externalCallTargets";
1415
+ readonly type: "address[]";
1416
+ }, {
1417
+ readonly internalType: "bytes[]";
1418
+ readonly name: "externalCallDataList";
1419
+ readonly type: "bytes[]";
1420
+ }, {
1421
+ readonly internalType: "address[]";
1422
+ readonly name: "refundTokens";
1423
+ readonly type: "address[]";
1424
+ }, {
1425
+ readonly internalType: "address[]";
1426
+ readonly name: "refundReceivers";
1427
+ readonly type: "address[]";
1428
+ }];
1429
+ readonly internalType: "struct IRelayUtils.ExternalCalls";
1430
+ readonly name: "externalCalls";
1431
+ readonly type: "tuple";
1432
+ }, {
1433
+ readonly components: readonly [{
1434
+ readonly internalType: "address";
1435
+ readonly name: "owner";
1436
+ readonly type: "address";
1437
+ }, {
1438
+ readonly internalType: "address";
1439
+ readonly name: "spender";
1440
+ readonly type: "address";
1441
+ }, {
1442
+ readonly internalType: "uint256";
1443
+ readonly name: "value";
1444
+ readonly type: "uint256";
1445
+ }, {
1446
+ readonly internalType: "uint256";
1447
+ readonly name: "deadline";
1448
+ readonly type: "uint256";
1449
+ }, {
1450
+ readonly internalType: "uint8";
1451
+ readonly name: "v";
1452
+ readonly type: "uint8";
1453
+ }, {
1454
+ readonly internalType: "bytes32";
1455
+ readonly name: "r";
1456
+ readonly type: "bytes32";
1457
+ }, {
1458
+ readonly internalType: "bytes32";
1459
+ readonly name: "s";
1460
+ readonly type: "bytes32";
1461
+ }, {
1462
+ readonly internalType: "address";
1463
+ readonly name: "token";
1464
+ readonly type: "address";
1465
+ }];
1466
+ readonly internalType: "struct IRelayUtils.TokenPermit[]";
1467
+ readonly name: "tokenPermits";
1468
+ readonly type: "tuple[]";
1469
+ }, {
1470
+ readonly components: readonly [{
1471
+ readonly internalType: "address";
1472
+ readonly name: "feeToken";
1473
+ readonly type: "address";
1474
+ }, {
1475
+ readonly internalType: "uint256";
1476
+ readonly name: "feeAmount";
1477
+ readonly type: "uint256";
1478
+ }, {
1479
+ readonly internalType: "address[]";
1480
+ readonly name: "feeSwapPath";
1481
+ readonly type: "address[]";
1482
+ }];
1483
+ readonly internalType: "struct IRelayUtils.FeeParams";
1484
+ readonly name: "fee";
1485
+ readonly type: "tuple";
1486
+ }, {
1487
+ readonly internalType: "uint256";
1488
+ readonly name: "userNonce";
1489
+ readonly type: "uint256";
1490
+ }, {
1491
+ readonly internalType: "uint256";
1492
+ readonly name: "deadline";
1493
+ readonly type: "uint256";
1494
+ }, {
1495
+ readonly internalType: "bytes";
1496
+ readonly name: "signature";
1497
+ readonly type: "bytes";
1498
+ }, {
1499
+ readonly internalType: "uint256";
1500
+ readonly name: "desChainId";
1501
+ readonly type: "uint256";
1502
+ }];
1503
+ readonly internalType: "struct IRelayUtils.RelayParams";
1504
+ readonly name: "relayParams";
1505
+ readonly type: "tuple";
1506
+ }, {
1507
+ readonly components: readonly [{
1508
+ readonly internalType: "address";
1509
+ readonly name: "subaccount";
1510
+ readonly type: "address";
1511
+ }, {
1512
+ readonly internalType: "bool";
1513
+ readonly name: "shouldAdd";
1514
+ readonly type: "bool";
1515
+ }, {
1516
+ readonly internalType: "uint256";
1517
+ readonly name: "expiresAt";
1518
+ readonly type: "uint256";
1519
+ }, {
1520
+ readonly internalType: "uint256";
1521
+ readonly name: "maxAllowedCount";
1522
+ readonly type: "uint256";
1523
+ }, {
1524
+ readonly internalType: "bytes32";
1525
+ readonly name: "actionType";
1526
+ readonly type: "bytes32";
1527
+ }, {
1528
+ readonly internalType: "uint256";
1529
+ readonly name: "nonce";
1530
+ readonly type: "uint256";
1531
+ }, {
1532
+ readonly internalType: "uint256";
1533
+ readonly name: "desChainId";
1534
+ readonly type: "uint256";
1535
+ }, {
1536
+ readonly internalType: "uint256";
1537
+ readonly name: "deadline";
1538
+ readonly type: "uint256";
1539
+ }, {
1540
+ readonly internalType: "bytes32";
1541
+ readonly name: "integrationId";
1542
+ readonly type: "bytes32";
1543
+ }, {
1544
+ readonly internalType: "bytes";
1545
+ readonly name: "signature";
1546
+ readonly type: "bytes";
1547
+ }];
1548
+ readonly internalType: "struct SubaccountApproval";
1549
+ readonly name: "subaccountApproval";
1550
+ readonly type: "tuple";
1551
+ }, {
1552
+ readonly internalType: "address";
1553
+ readonly name: "account";
1554
+ readonly type: "address";
1555
+ }, {
1556
+ readonly internalType: "uint256";
1557
+ readonly name: "srcChainId";
1558
+ readonly type: "uint256";
1559
+ }, {
1560
+ readonly internalType: "address";
1561
+ readonly name: "subaccount";
1562
+ readonly type: "address";
1563
+ }, {
1564
+ readonly components: readonly [{
1565
+ readonly internalType: "bytes32";
1566
+ readonly name: "key";
1567
+ readonly type: "bytes32";
1568
+ }, {
1569
+ readonly internalType: "uint256";
1570
+ readonly name: "sizeDeltaUsd";
1571
+ readonly type: "uint256";
1572
+ }, {
1573
+ readonly internalType: "uint256";
1574
+ readonly name: "acceptablePrice";
1575
+ readonly type: "uint256";
1576
+ }, {
1577
+ readonly internalType: "uint256";
1578
+ readonly name: "triggerPrice";
1579
+ readonly type: "uint256";
1580
+ }, {
1581
+ readonly internalType: "uint256";
1582
+ readonly name: "minOutputAmount";
1583
+ readonly type: "uint256";
1584
+ }, {
1585
+ readonly internalType: "uint256";
1586
+ readonly name: "validFromTime";
1587
+ readonly type: "uint256";
1588
+ }, {
1589
+ readonly internalType: "bool";
1590
+ readonly name: "autoCancel";
1591
+ readonly type: "bool";
1592
+ }, {
1593
+ readonly internalType: "uint256";
1594
+ readonly name: "executionFeeIncrease";
1595
+ readonly type: "uint256";
1596
+ }];
1597
+ readonly internalType: "struct IRelayUtils.UpdateOrderParams";
1598
+ readonly name: "params";
1599
+ readonly type: "tuple";
1600
+ }];
1601
+ readonly name: "updateOrder";
1602
+ readonly outputs: readonly [];
1603
+ readonly stateMutability: "nonpayable";
1604
+ readonly type: "function";
1605
+ }];
1606
+ export default _default;