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