@gmx-io/sdk 1.3.1 → 1.4.1

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 (494) 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/IStargate.js +603 -0
  17. package/build/cjs/src/abis/LayerZeroProvider.js +388 -0
  18. package/build/cjs/src/abis/MintableBaseToken.js +323 -0
  19. package/build/cjs/src/abis/Multicall.js +231 -0
  20. package/build/cjs/src/abis/MultichainClaimsRouter.js +1266 -0
  21. package/build/cjs/src/abis/MultichainGlvRouter.js +1150 -0
  22. package/build/cjs/src/abis/MultichainGmRouter.js +1449 -0
  23. package/build/cjs/src/abis/MultichainOrderRouter.js +2009 -0
  24. package/build/cjs/src/abis/MultichainSubaccountRouter.js +2069 -0
  25. package/build/cjs/src/abis/MultichainTransferRouter.js +915 -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 +31 -92
  58. package/build/cjs/src/configs/chainIds.js +17 -0
  59. package/build/cjs/src/configs/chains.js +251 -161
  60. package/build/cjs/src/configs/contracts.js +60 -85
  61. package/build/cjs/src/configs/dataStore.js +8 -11
  62. package/build/cjs/src/configs/express.js +17 -4
  63. package/build/cjs/src/configs/factors.js +2 -3
  64. package/build/cjs/src/configs/gasLimits.js +41 -0
  65. package/build/cjs/src/configs/markets.js +193 -1
  66. package/build/cjs/src/configs/multichain.js +27 -0
  67. package/build/cjs/src/configs/oracleKeeper.js +15 -2
  68. package/build/cjs/src/configs/tokens.js +162 -18
  69. package/build/cjs/src/configs/uniswapV3.js +18 -0
  70. package/build/cjs/src/configs/venus.js +58 -0
  71. package/build/cjs/src/modules/markets/index.js +42 -16
  72. package/build/cjs/src/modules/markets/markets.spec.js +5 -5
  73. package/build/cjs/src/modules/markets/query-builders.js +14 -10
  74. package/build/cjs/src/modules/orders/helpers.js +3 -2
  75. package/build/cjs/src/modules/orders/helpers.spec.js +1 -1
  76. package/build/cjs/src/modules/orders/orders.spec.js +1 -1
  77. package/build/cjs/src/modules/positions/positions.js +10 -2
  78. package/build/cjs/src/modules/positions/positions.spec.js +2 -2
  79. package/build/cjs/src/modules/tokens/tokens.spec.js +2 -2
  80. package/build/cjs/src/modules/trades/trades.js +2 -2
  81. package/build/cjs/src/modules/trades/trades.spec.js +1 -1
  82. package/build/cjs/src/modules/utils/utils.js +7 -6
  83. package/build/cjs/src/prebuilt/hashedKinkModelMarketRatesKeys.json +112 -0
  84. package/build/cjs/src/prebuilt/hashedMarketConfigKeys.json +1402 -453
  85. package/build/cjs/src/prebuilt/hashedMarketValuesKeys.json +210 -0
  86. package/build/cjs/src/test/mock.js +5 -3
  87. package/build/cjs/src/types/chains.js +2 -0
  88. package/build/cjs/src/types/orders.js +8 -2
  89. package/build/cjs/src/types/subsquid.js +433 -217
  90. package/build/cjs/src/types/tokens.js +7 -0
  91. package/build/cjs/src/types/tradeHistory.js +9 -1
  92. package/build/cjs/src/utils/LruCache.js +21 -17
  93. package/build/cjs/src/utils/__tests__/LruCache.spec.js +11 -0
  94. package/build/cjs/src/utils/__tests__/abort.spec.js +122 -0
  95. package/build/cjs/src/utils/__tests__/fees.spec.js +4 -4
  96. package/build/cjs/src/utils/__tests__/{subgraph.spec.js → indexers.spec.js} +18 -18
  97. package/build/cjs/src/utils/__tests__/numbers.spec.js +95 -15
  98. package/build/cjs/src/utils/abort.js +31 -0
  99. package/build/cjs/src/utils/bigmath.js +3 -0
  100. package/build/cjs/src/utils/buildUrl.js +1 -0
  101. package/build/cjs/src/utils/callContract.js +4 -4
  102. package/build/cjs/src/utils/errors/transactionsErrors.js +1 -0
  103. package/build/cjs/src/utils/fees/executionFee.js +14 -11
  104. package/build/cjs/src/utils/fees/index.js +13 -8
  105. package/build/cjs/src/utils/fees/priceImpact.js +29 -19
  106. package/build/cjs/src/utils/{subgraph.js → indexers.js} +17 -1
  107. package/build/cjs/src/utils/marketKeysAndConfigs.js +15 -11
  108. package/build/cjs/src/utils/markets.js +16 -1
  109. package/build/cjs/src/utils/multicall.js +54 -17
  110. package/build/cjs/src/utils/numbers.js +34 -18
  111. package/build/cjs/src/utils/orderTransactions.js +5 -5
  112. package/build/cjs/src/utils/orders.js +11 -3
  113. package/build/cjs/src/utils/prices.js +0 -2
  114. package/build/cjs/src/utils/swap/__tests__/mockRouting.spec.js +7 -6
  115. package/build/cjs/src/utils/swap/__tests__/swapRouting.spec.js +5 -4
  116. package/build/cjs/src/utils/swap/__tests__/swapStats.spec.js +10 -9
  117. package/build/cjs/src/utils/swap/botanixStaking.js +3 -3
  118. package/build/cjs/src/utils/swap/buildSwapStrategy.js +10 -9
  119. package/build/cjs/src/utils/swap/swapPath.js +6 -15
  120. package/build/cjs/src/utils/swap/swapRouting.js +8 -4
  121. package/build/cjs/src/utils/swap/swapStats.js +6 -6
  122. package/build/cjs/src/utils/swap/swapValues.js +19 -15
  123. package/build/cjs/src/utils/tokens.js +17 -1
  124. package/build/cjs/src/utils/trade/decrease.js +7 -10
  125. package/build/cjs/src/utils/trade/increase.js +9 -8
  126. package/build/cjs/src/utils/tradeHistory.js +3 -0
  127. package/build/esm/src/abis/ArbitrumNodeInterface.js +103 -0
  128. package/build/esm/src/abis/ClaimHandler.js +422 -0
  129. package/build/esm/src/abis/CustomErrors.js +1882 -0
  130. package/build/esm/src/abis/DataStore.js +637 -0
  131. package/build/esm/src/abis/ERC20PermitInterface.js +52 -0
  132. package/build/esm/src/abis/ERC721.js +194 -0
  133. package/build/esm/src/abis/EventEmitter.js +1226 -0
  134. package/build/esm/src/abis/ExchangeRouter.js +1588 -0
  135. package/build/esm/src/abis/GelatoRelayRouter.js +1577 -0
  136. package/build/esm/src/abis/GlpManager.js +244 -0
  137. package/build/esm/src/abis/GlvReader.js +1469 -0
  138. package/build/esm/src/abis/GlvRouter.js +762 -0
  139. package/build/esm/src/abis/GmxMigrator.js +267 -0
  140. package/build/esm/src/abis/GovToken.js +323 -0
  141. package/build/esm/src/abis/IStargate.js +601 -0
  142. package/build/esm/src/abis/LayerZeroProvider.js +386 -0
  143. package/build/esm/src/abis/MintableBaseToken.js +321 -0
  144. package/build/esm/src/abis/Multicall.js +229 -0
  145. package/build/esm/src/abis/MultichainClaimsRouter.js +1264 -0
  146. package/build/esm/src/abis/MultichainGlvRouter.js +1148 -0
  147. package/build/esm/src/abis/MultichainGmRouter.js +1447 -0
  148. package/build/esm/src/abis/MultichainOrderRouter.js +2007 -0
  149. package/build/esm/src/abis/MultichainSubaccountRouter.js +2067 -0
  150. package/build/esm/src/abis/MultichainTransferRouter.js +913 -0
  151. package/build/esm/src/abis/MultichainVault.js +273 -0
  152. package/build/esm/src/abis/Reader.js +138 -0
  153. package/build/esm/src/abis/ReaderV2.js +257 -0
  154. package/build/esm/src/abis/ReferralStorage.js +259 -0
  155. package/build/esm/src/abis/RelayParams.js +53 -0
  156. package/build/esm/src/abis/RewardReader.js +33 -0
  157. package/build/esm/src/abis/RewardRouter.js +458 -0
  158. package/build/esm/src/abis/RewardTracker.js +413 -0
  159. package/build/esm/src/abis/SmartAccount.js +12 -0
  160. package/build/esm/src/abis/StBTC.js +511 -0
  161. package/build/esm/src/abis/SubaccountApproval.js +15 -0
  162. package/build/esm/src/abis/SubaccountGelatoRelayRouter.js +2017 -0
  163. package/build/esm/src/abis/SubaccountRouter.js +600 -0
  164. package/build/esm/src/abis/SyntheticsReader.js +4903 -0
  165. package/build/esm/src/abis/SyntheticsRouter.js +70 -0
  166. package/build/esm/src/abis/Timelock.js +776 -0
  167. package/build/esm/src/abis/Token.js +148 -0
  168. package/build/esm/src/abis/Treasury.js +204 -0
  169. package/build/esm/src/abis/UniPool.js +34 -0
  170. package/build/esm/src/abis/UniswapV2.js +285 -0
  171. package/build/esm/src/abis/UniswapV3Factory.js +198 -0
  172. package/build/esm/src/abis/UniswapV3Pool.js +983 -0
  173. package/build/esm/src/abis/UniswapV3PositionManager.js +989 -0
  174. package/build/esm/src/abis/Vault.js +1306 -0
  175. package/build/esm/src/abis/VaultReader.js +28 -0
  176. package/build/esm/src/abis/VaultV2.js +1220 -0
  177. package/build/esm/src/abis/VaultV2b.js +1306 -0
  178. package/build/esm/src/abis/VenusVToken.js +47 -0
  179. package/build/esm/src/abis/Vester.js +454 -0
  180. package/build/esm/src/abis/WETH.js +135 -0
  181. package/build/esm/src/abis/index.js +106 -118
  182. package/build/esm/src/configs/batch.js +31 -92
  183. package/build/esm/src/configs/chainIds.js +14 -0
  184. package/build/esm/src/configs/chains.js +215 -149
  185. package/build/esm/src/configs/contracts.js +60 -85
  186. package/build/esm/src/configs/dataStore.js +4 -6
  187. package/build/esm/src/configs/express.js +16 -3
  188. package/build/esm/src/configs/factors.js +1 -2
  189. package/build/esm/src/configs/gasLimits.js +38 -0
  190. package/build/esm/src/configs/markets.js +183 -0
  191. package/build/esm/src/configs/multichain.js +22 -0
  192. package/build/esm/src/configs/oracleKeeper.js +14 -1
  193. package/build/esm/src/configs/tokens.js +160 -17
  194. package/build/esm/src/configs/uniswapV3.js +13 -0
  195. package/build/esm/src/configs/venus.js +53 -0
  196. package/build/esm/src/modules/markets/index.js +42 -16
  197. package/build/esm/src/modules/markets/markets.spec.js +5 -5
  198. package/build/esm/src/modules/markets/query-builders.js +14 -10
  199. package/build/esm/src/modules/orders/helpers.js +4 -3
  200. package/build/esm/src/modules/orders/helpers.spec.js +1 -1
  201. package/build/esm/src/modules/orders/orders.spec.js +1 -1
  202. package/build/esm/src/modules/positions/positions.js +10 -2
  203. package/build/esm/src/modules/positions/positions.spec.js +2 -2
  204. package/build/esm/src/modules/tokens/tokens.spec.js +2 -2
  205. package/build/esm/src/modules/trades/trades.js +1 -1
  206. package/build/esm/src/modules/trades/trades.spec.js +1 -1
  207. package/build/esm/src/modules/utils/utils.js +7 -6
  208. package/build/esm/src/prebuilt/hashedKinkModelMarketRatesKeys.json +112 -0
  209. package/build/esm/src/prebuilt/hashedMarketConfigKeys.json +1402 -453
  210. package/build/esm/src/prebuilt/hashedMarketValuesKeys.json +210 -0
  211. package/build/esm/src/test/mock.js +5 -3
  212. package/build/esm/src/types/orders.js +8 -2
  213. package/build/esm/src/types/subsquid.js +432 -216
  214. package/build/esm/src/types/tokens.js +6 -1
  215. package/build/esm/src/types/tradeHistory.js +6 -0
  216. package/build/esm/src/utils/LruCache.js +21 -17
  217. package/build/esm/src/utils/__tests__/LruCache.spec.js +11 -0
  218. package/build/esm/src/utils/__tests__/abort.spec.js +120 -0
  219. package/build/esm/src/utils/__tests__/fees.spec.js +4 -4
  220. package/build/esm/src/utils/__tests__/{subgraph.spec.js → indexers.spec.js} +1 -1
  221. package/build/esm/src/utils/__tests__/numbers.spec.js +96 -16
  222. package/build/esm/src/utils/abort.js +27 -0
  223. package/build/esm/src/utils/bigmath.js +3 -0
  224. package/build/esm/src/utils/buildUrl.js +1 -0
  225. package/build/esm/src/utils/callContract.js +5 -5
  226. package/build/esm/src/utils/errors/transactionsErrors.js +1 -0
  227. package/build/esm/src/utils/fees/executionFee.js +15 -12
  228. package/build/esm/src/utils/fees/index.js +13 -8
  229. package/build/esm/src/utils/fees/priceImpact.js +28 -19
  230. package/build/esm/src/utils/{subgraph.js → indexers.js} +15 -0
  231. package/build/esm/src/utils/marketKeysAndConfigs.js +16 -12
  232. package/build/esm/src/utils/markets.js +13 -0
  233. package/build/esm/src/utils/multicall.js +53 -16
  234. package/build/esm/src/utils/numbers.js +29 -16
  235. package/build/esm/src/utils/orderTransactions.js +5 -5
  236. package/build/esm/src/utils/orders.js +11 -4
  237. package/build/esm/src/utils/prices.js +0 -2
  238. package/build/esm/src/utils/swap/__tests__/mockRouting.spec.js +7 -6
  239. package/build/esm/src/utils/swap/__tests__/swapRouting.spec.js +5 -4
  240. package/build/esm/src/utils/swap/__tests__/swapStats.spec.js +10 -9
  241. package/build/esm/src/utils/swap/botanixStaking.js +3 -3
  242. package/build/esm/src/utils/swap/buildSwapStrategy.js +10 -9
  243. package/build/esm/src/utils/swap/swapPath.js +6 -15
  244. package/build/esm/src/utils/swap/swapRouting.js +8 -4
  245. package/build/esm/src/utils/swap/swapStats.js +6 -6
  246. package/build/esm/src/utils/swap/swapValues.js +19 -15
  247. package/build/esm/src/utils/tokens.js +15 -1
  248. package/build/esm/src/utils/trade/decrease.js +8 -11
  249. package/build/esm/src/utils/trade/increase.js +9 -8
  250. package/build/esm/src/utils/tradeHistory.js +3 -0
  251. package/build/types/src/abis/ArbitrumNodeInterface.d.ts +214 -0
  252. package/build/types/src/abis/ClaimHandler.d.ts +322 -0
  253. package/build/types/src/abis/CustomErrors.d.ts +3330 -0
  254. package/build/types/src/abis/DataStore.d.ts +1098 -0
  255. package/build/types/src/abis/ERC20PermitInterface.d.ts +90 -0
  256. package/build/types/src/abis/ERC721.d.ts +334 -0
  257. package/build/types/src/abis/EventEmitter.d.ts +1564 -0
  258. package/build/types/src/abis/ExchangeRouter.d.ts +1224 -0
  259. package/build/types/src/abis/GelatoRelayRouter.d.ts +1222 -0
  260. package/build/types/src/abis/GlpManager.d.ts +452 -0
  261. package/build/types/src/abis/GlvReader.d.ts +1131 -0
  262. package/build/types/src/abis/GlvRouter.d.ts +588 -0
  263. package/build/types/src/abis/GmxMigrator.d.ts +497 -0
  264. package/build/types/src/abis/GovToken.d.ts +588 -0
  265. package/build/types/src/abis/IStargate.d.ts +464 -0
  266. package/build/types/src/abis/LayerZeroProvider.d.ts +297 -0
  267. package/build/types/src/abis/MintableBaseToken.d.ts +526 -0
  268. package/build/types/src/abis/Multicall.d.ts +323 -0
  269. package/build/types/src/abis/MultichainClaimsRouter.d.ts +973 -0
  270. package/build/types/src/abis/MultichainGlvRouter.d.ts +886 -0
  271. package/build/types/src/abis/MultichainGmRouter.d.ts +1118 -0
  272. package/build/types/src/abis/MultichainOrderRouter.d.ts +1557 -0
  273. package/build/types/src/abis/MultichainSubaccountRouter.d.ts +1606 -0
  274. package/build/types/src/abis/MultichainTransferRouter.d.ts +702 -0
  275. package/build/types/src/abis/MultichainVault.d.ts +208 -0
  276. package/build/types/src/abis/Reader.d.ts +264 -0
  277. package/build/types/src/abis/ReaderV2.d.ts +474 -0
  278. package/build/types/src/abis/ReferralStorage.d.ts +429 -0
  279. package/build/types/src/abis/RelayParams.d.ts +114 -0
  280. package/build/types/src/abis/RewardReader.d.ts +60 -0
  281. package/build/types/src/abis/RewardRouter.d.ts +790 -0
  282. package/build/types/src/abis/RewardTracker.d.ts +695 -0
  283. package/build/types/src/abis/SmartAccount.d.ts +20 -0
  284. package/build/types/src/abis/StBTC.d.ts +932 -0
  285. package/build/types/src/abis/SubaccountApproval.d.ts +29 -0
  286. package/build/types/src/abis/SubaccountGelatoRelayRouter.d.ts +1567 -0
  287. package/build/types/src/abis/SubaccountRouter.d.ts +465 -0
  288. package/build/types/src/abis/SyntheticsReader.d.ts +3780 -0
  289. package/build/types/src/abis/SyntheticsRouter.d.ts +54 -0
  290. package/build/types/src/abis/Timelock.d.ts +1356 -0
  291. package/build/types/src/abis/Token.d.ts +260 -0
  292. package/build/types/src/abis/Treasury.d.ts +312 -0
  293. package/build/types/src/abis/UniPool.d.ts +64 -0
  294. package/build/types/src/abis/UniswapV2.d.ts +511 -0
  295. package/build/types/src/abis/UniswapV3Factory.d.ts +154 -0
  296. package/build/types/src/abis/UniswapV3Pool.d.ts +771 -0
  297. package/build/types/src/abis/UniswapV3PositionManager.d.ts +767 -0
  298. package/build/types/src/abis/Vault.d.ts +2482 -0
  299. package/build/types/src/abis/VaultReader.d.ts +62 -0
  300. package/build/types/src/abis/VaultV2.d.ts +2327 -0
  301. package/build/types/src/abis/VaultV2b.d.ts +2482 -0
  302. package/build/types/src/abis/VenusVToken.d.ts +36 -0
  303. package/build/types/src/abis/Vester.d.ts +782 -0
  304. package/build/types/src/abis/WETH.d.ts +240 -0
  305. package/build/types/src/abis/index.d.ts +43664 -23
  306. package/build/types/src/configs/batch.d.ts +1 -0
  307. package/build/types/src/configs/chainIds.d.ts +10 -0
  308. package/build/types/src/configs/chains.d.ts +171 -33
  309. package/build/types/src/configs/contracts.d.ts +0 -25
  310. package/build/types/src/configs/dataStore.d.ts +3 -3
  311. package/build/types/src/configs/express.d.ts +5 -1
  312. package/build/types/src/configs/factors.d.ts +1 -2
  313. package/build/types/src/configs/gasLimits.d.ts +4 -0
  314. package/build/types/src/configs/markets.d.ts +13 -1
  315. package/build/types/src/configs/multichain.d.ts +5 -0
  316. package/build/types/src/configs/oracleKeeper.d.ts +13 -0
  317. package/build/types/src/configs/tokens.d.ts +4 -0
  318. package/build/types/src/configs/uniswapV3.d.ts +7 -0
  319. package/build/types/src/configs/venus.d.ts +16 -0
  320. package/build/types/src/index.d.ts +3 -3
  321. package/build/types/src/modules/base.d.ts +2 -2
  322. package/build/types/src/modules/markets/index.d.ts +3 -0
  323. package/build/types/src/modules/markets/query-builders.d.ts +2 -2
  324. package/build/types/src/modules/markets/types.d.ts +2 -2
  325. package/build/types/src/modules/orders/orders.d.ts +2 -2
  326. package/build/types/src/modules/orders/transactions/cancelOrdersTxn.d.ts +2 -2
  327. package/build/types/src/modules/orders/transactions/createDecreaseOrderTxn.d.ts +1 -1
  328. package/build/types/src/modules/orders/transactions/createWrapOrUnwrapTxn.d.ts +1 -1
  329. package/build/types/src/modules/orders/transactions/updateOrderTxn.d.ts +1 -1
  330. package/build/types/src/modules/orders/utils.d.ts +2 -2
  331. package/build/types/src/modules/positions/positions.d.ts +1 -1
  332. package/build/types/src/modules/utils/utils.d.ts +2 -3
  333. package/build/types/src/types/chains.d.ts +57 -0
  334. package/build/types/src/types/markets.d.ts +5 -3
  335. package/build/types/src/types/orders.d.ts +9 -2
  336. package/build/types/src/types/positions.d.ts +1 -0
  337. package/build/types/src/types/subsquid.d.ts +6232 -5089
  338. package/build/types/src/types/tokens.d.ts +26 -7
  339. package/build/types/src/types/trade.d.ts +6 -0
  340. package/build/types/src/types/tradeHistory.d.ts +5 -0
  341. package/build/types/src/utils/LruCache.d.ts +2 -2
  342. package/build/types/src/utils/abort.d.ts +1 -0
  343. package/build/types/src/utils/bigmath.d.ts +1 -0
  344. package/build/types/src/utils/callContract.d.ts +1 -1
  345. package/build/types/src/utils/fees/estimateOraclePriceCount.d.ts +2 -2
  346. package/build/types/src/utils/fees/executionFee.d.ts +6 -6
  347. package/build/types/src/utils/fees/index.d.ts +2 -1
  348. package/build/types/src/utils/fees/priceImpact.d.ts +9 -3
  349. package/build/types/src/utils/hash.d.ts +1 -1
  350. package/build/types/src/utils/{subgraph.d.ts → indexers.d.ts} +1 -0
  351. package/build/types/src/utils/marketKeysAndConfigs.d.ts +4 -3
  352. package/build/types/src/utils/markets.d.ts +5 -2
  353. package/build/types/src/utils/multicall.d.ts +4 -2
  354. package/build/types/src/utils/numbers.d.ts +12 -1
  355. package/build/types/src/utils/orderTransactions.d.ts +7 -7
  356. package/build/types/src/utils/orders.d.ts +1 -0
  357. package/build/types/src/utils/prices.d.ts +0 -2
  358. package/build/types/src/utils/swap/buildSwapStrategy.d.ts +6 -3
  359. package/build/types/src/utils/swap/swapPath.d.ts +2 -2
  360. package/build/types/src/utils/swap/swapRouting.d.ts +7 -2
  361. package/build/types/src/utils/swap/swapStats.d.ts +3 -2
  362. package/build/types/src/utils/swap/swapValues.d.ts +1 -1
  363. package/build/types/src/utils/tokens.d.ts +3 -0
  364. package/build/types/src/utils/trade/decrease.d.ts +1 -0
  365. package/build/types/src/utils/trade/increase.d.ts +1 -0
  366. package/build/types/src/utils/tradeHistory.d.ts +1 -2
  367. package/package.json +13 -3
  368. package/build/cjs/src/abis/ArbitrumNodeInterface.json +0 -105
  369. package/build/cjs/src/abis/ClaimHandler.json +0 -424
  370. package/build/cjs/src/abis/CustomErrors.json +0 -4432
  371. package/build/cjs/src/abis/DataStore.json +0 -1459
  372. package/build/cjs/src/abis/ERC20PermitInterface.json +0 -118
  373. package/build/cjs/src/abis/ERC721.json +0 -442
  374. package/build/cjs/src/abis/EventEmitter.json +0 -2060
  375. package/build/cjs/src/abis/ExchangeRouter.json +0 -1706
  376. package/build/cjs/src/abis/GMT.json +0 -522
  377. package/build/cjs/src/abis/GelatoRelayRouter.json +0 -1579
  378. package/build/cjs/src/abis/GlpManager.json +0 -591
  379. package/build/cjs/src/abis/GlvReader.json +0 -1471
  380. package/build/cjs/src/abis/GlvRouter.json +0 -764
  381. package/build/cjs/src/abis/GmxMigrator.json +0 -657
  382. package/build/cjs/src/abis/GovToken.json +0 -768
  383. package/build/cjs/src/abis/LayerZeroProvider.json +0 -372
  384. package/build/cjs/src/abis/MintableBaseToken.json +0 -696
  385. package/build/cjs/src/abis/Multicall.json +0 -429
  386. package/build/cjs/src/abis/MultichainClaimsRouter.json +0 -1266
  387. package/build/cjs/src/abis/MultichainGlvRouter.json +0 -1150
  388. package/build/cjs/src/abis/MultichainGmRouter.json +0 -1449
  389. package/build/cjs/src/abis/MultichainOrderRouter.json +0 -1820
  390. package/build/cjs/src/abis/MultichainSubaccountRouter.json +0 -2069
  391. package/build/cjs/src/abis/MultichainTransferRouter.json +0 -915
  392. package/build/cjs/src/abis/MultichainUtils.json +0 -133
  393. package/build/cjs/src/abis/MultichainVault.json +0 -275
  394. package/build/cjs/src/abis/OrderBook.json +0 -1997
  395. package/build/cjs/src/abis/OrderBookReader.json +0 -111
  396. package/build/cjs/src/abis/OrderExecutor.json +0 -122
  397. package/build/cjs/src/abis/PositionManager.json +0 -1165
  398. package/build/cjs/src/abis/PositionRouter.json +0 -2030
  399. package/build/cjs/src/abis/Reader.json +0 -355
  400. package/build/cjs/src/abis/ReaderV2.json +0 -630
  401. package/build/cjs/src/abis/ReferralStorage.json +0 -557
  402. package/build/cjs/src/abis/RelayParams.json +0 -147
  403. package/build/cjs/src/abis/RewardReader.json +0 -86
  404. package/build/cjs/src/abis/RewardRouter.json +0 -1024
  405. package/build/cjs/src/abis/RewardTracker.json +0 -918
  406. package/build/cjs/src/abis/Router-v2.json +0 -605
  407. package/build/cjs/src/abis/Router.json +0 -605
  408. package/build/cjs/src/abis/SmartAccount.json +0 -28
  409. package/build/cjs/src/abis/StBTC.json +0 -1225
  410. package/build/cjs/src/abis/SubaccountApproval.json +0 -17
  411. package/build/cjs/src/abis/SubaccountGelatoRelayRouter.json +0 -2019
  412. package/build/cjs/src/abis/SubaccountRouter.json +0 -602
  413. package/build/cjs/src/abis/SyntheticsReader.json +0 -4905
  414. package/build/cjs/src/abis/SyntheticsRouter.json +0 -72
  415. package/build/cjs/src/abis/Timelock.json +0 -1737
  416. package/build/cjs/src/abis/Token.json +0 -345
  417. package/build/cjs/src/abis/Treasury.json +0 -411
  418. package/build/cjs/src/abis/UniPool.json +0 -89
  419. package/build/cjs/src/abis/UniswapV2.json +0 -1
  420. package/build/cjs/src/abis/Vault.json +0 -3220
  421. package/build/cjs/src/abis/VaultReader.json +0 -87
  422. package/build/cjs/src/abis/VaultV2.json +0 -3019
  423. package/build/cjs/src/abis/VaultV2b.json +0 -3220
  424. package/build/cjs/src/abis/Vester.json +0 -1031
  425. package/build/cjs/src/abis/WETH.json +0 -320
  426. package/build/cjs/src/abis/YieldFarm.json +0 -599
  427. package/build/cjs/src/abis/YieldToken.json +0 -560
  428. package/build/cjs/src/abis/__tests__/abis.spec.js +0 -40
  429. package/build/cjs/src/configs/__tests__/permits.spec.js +0 -109
  430. package/build/esm/src/abis/ArbitrumNodeInterface.json +0 -105
  431. package/build/esm/src/abis/ClaimHandler.json +0 -424
  432. package/build/esm/src/abis/CustomErrors.json +0 -4432
  433. package/build/esm/src/abis/DataStore.json +0 -1459
  434. package/build/esm/src/abis/ERC20PermitInterface.json +0 -118
  435. package/build/esm/src/abis/ERC721.json +0 -442
  436. package/build/esm/src/abis/EventEmitter.json +0 -2060
  437. package/build/esm/src/abis/ExchangeRouter.json +0 -1706
  438. package/build/esm/src/abis/GMT.json +0 -522
  439. package/build/esm/src/abis/GelatoRelayRouter.json +0 -1579
  440. package/build/esm/src/abis/GlpManager.json +0 -591
  441. package/build/esm/src/abis/GlvReader.json +0 -1471
  442. package/build/esm/src/abis/GlvRouter.json +0 -764
  443. package/build/esm/src/abis/GmxMigrator.json +0 -657
  444. package/build/esm/src/abis/GovToken.json +0 -768
  445. package/build/esm/src/abis/LayerZeroProvider.json +0 -372
  446. package/build/esm/src/abis/MintableBaseToken.json +0 -696
  447. package/build/esm/src/abis/Multicall.json +0 -429
  448. package/build/esm/src/abis/MultichainClaimsRouter.json +0 -1266
  449. package/build/esm/src/abis/MultichainGlvRouter.json +0 -1150
  450. package/build/esm/src/abis/MultichainGmRouter.json +0 -1449
  451. package/build/esm/src/abis/MultichainOrderRouter.json +0 -1820
  452. package/build/esm/src/abis/MultichainSubaccountRouter.json +0 -2069
  453. package/build/esm/src/abis/MultichainTransferRouter.json +0 -915
  454. package/build/esm/src/abis/MultichainUtils.json +0 -133
  455. package/build/esm/src/abis/MultichainVault.json +0 -275
  456. package/build/esm/src/abis/OrderBook.json +0 -1997
  457. package/build/esm/src/abis/OrderBookReader.json +0 -111
  458. package/build/esm/src/abis/OrderExecutor.json +0 -122
  459. package/build/esm/src/abis/PositionManager.json +0 -1165
  460. package/build/esm/src/abis/PositionRouter.json +0 -2030
  461. package/build/esm/src/abis/Reader.json +0 -355
  462. package/build/esm/src/abis/ReaderV2.json +0 -630
  463. package/build/esm/src/abis/ReferralStorage.json +0 -557
  464. package/build/esm/src/abis/RelayParams.json +0 -147
  465. package/build/esm/src/abis/RewardReader.json +0 -86
  466. package/build/esm/src/abis/RewardRouter.json +0 -1024
  467. package/build/esm/src/abis/RewardTracker.json +0 -918
  468. package/build/esm/src/abis/Router-v2.json +0 -605
  469. package/build/esm/src/abis/Router.json +0 -605
  470. package/build/esm/src/abis/SmartAccount.json +0 -28
  471. package/build/esm/src/abis/StBTC.json +0 -1225
  472. package/build/esm/src/abis/SubaccountApproval.json +0 -17
  473. package/build/esm/src/abis/SubaccountGelatoRelayRouter.json +0 -2019
  474. package/build/esm/src/abis/SubaccountRouter.json +0 -602
  475. package/build/esm/src/abis/SyntheticsReader.json +0 -4905
  476. package/build/esm/src/abis/SyntheticsRouter.json +0 -72
  477. package/build/esm/src/abis/Timelock.json +0 -1737
  478. package/build/esm/src/abis/Token.json +0 -345
  479. package/build/esm/src/abis/Treasury.json +0 -411
  480. package/build/esm/src/abis/UniPool.json +0 -89
  481. package/build/esm/src/abis/UniswapV2.json +0 -1
  482. package/build/esm/src/abis/Vault.json +0 -3220
  483. package/build/esm/src/abis/VaultReader.json +0 -87
  484. package/build/esm/src/abis/VaultV2.json +0 -3019
  485. package/build/esm/src/abis/VaultV2b.json +0 -3220
  486. package/build/esm/src/abis/Vester.json +0 -1031
  487. package/build/esm/src/abis/WETH.json +0 -320
  488. package/build/esm/src/abis/YieldFarm.json +0 -599
  489. package/build/esm/src/abis/YieldToken.json +0 -560
  490. package/build/esm/src/abis/__tests__/abis.spec.js +0 -35
  491. package/build/esm/src/configs/__tests__/permits.spec.js +0 -107
  492. /package/build/{types/src/abis/__tests__/abis.spec.d.ts → esm/src/types/chains.js} +0 -0
  493. /package/build/types/src/{configs/__tests__/permits.spec.d.ts → utils/__tests__/abort.spec.d.ts} +0 -0
  494. /package/build/types/src/utils/__tests__/{subgraph.spec.d.ts → indexers.spec.d.ts} +0 -0
@@ -0,0 +1,1884 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = [
4
+ { inputs: [], name: "ActionAlreadySignalled", type: "error" },
5
+ { inputs: [], name: "ActionNotSignalled", type: "error" },
6
+ { inputs: [], name: "AdlNotEnabled", type: "error" },
7
+ {
8
+ inputs: [
9
+ { internalType: "int256", name: "pnlToPoolFactor", type: "int256" },
10
+ { internalType: "uint256", name: "maxPnlFactorForAdl", type: "uint256" },
11
+ ],
12
+ name: "AdlNotRequired",
13
+ type: "error",
14
+ },
15
+ {
16
+ inputs: [
17
+ { internalType: "bytes[]", name: "values", type: "bytes[]" },
18
+ { internalType: "uint256", name: "index", type: "uint256" },
19
+ { internalType: "string", name: "label", type: "string" },
20
+ ],
21
+ name: "ArrayOutOfBoundsBytes",
22
+ type: "error",
23
+ },
24
+ {
25
+ inputs: [
26
+ { internalType: "uint256[]", name: "values", type: "uint256[]" },
27
+ { internalType: "uint256", name: "index", type: "uint256" },
28
+ { internalType: "string", name: "label", type: "string" },
29
+ ],
30
+ name: "ArrayOutOfBoundsUint256",
31
+ type: "error",
32
+ },
33
+ {
34
+ inputs: [
35
+ { internalType: "address", name: "feeToken", type: "address" },
36
+ { internalType: "address", name: "buybackToken", type: "address" },
37
+ { internalType: "uint256", name: "availableFeeAmount", type: "uint256" },
38
+ ],
39
+ name: "AvailableFeeAmountIsZero",
40
+ type: "error",
41
+ },
42
+ {
43
+ inputs: [
44
+ { internalType: "uint256", name: "minOracleBlockNumber", type: "uint256" },
45
+ { internalType: "uint256", name: "prevMinOracleBlockNumber", type: "uint256" },
46
+ ],
47
+ name: "BlockNumbersNotSorted",
48
+ type: "error",
49
+ },
50
+ { inputs: [], name: "BridgeOutNotSupportedDuringShift", type: "error" },
51
+ {
52
+ inputs: [
53
+ { internalType: "address", name: "feeToken", type: "address" },
54
+ { internalType: "address", name: "buybackToken", type: "address" },
55
+ ],
56
+ name: "BuybackAndFeeTokenAreEqual",
57
+ type: "error",
58
+ },
59
+ {
60
+ inputs: [
61
+ { internalType: "address", name: "token", type: "address" },
62
+ { internalType: "uint256", name: "timestamp", type: "uint256" },
63
+ { internalType: "uint256", name: "heartbeatDuration", type: "uint256" },
64
+ ],
65
+ name: "ChainlinkPriceFeedNotUpdated",
66
+ type: "error",
67
+ },
68
+ {
69
+ inputs: [
70
+ { internalType: "uint256", name: "adjustedClaimableAmount", type: "uint256" },
71
+ { internalType: "uint256", name: "claimedAmount", type: "uint256" },
72
+ ],
73
+ name: "CollateralAlreadyClaimed",
74
+ type: "error",
75
+ },
76
+ {
77
+ inputs: [
78
+ { internalType: "uint256[]", name: "compactedValues", type: "uint256[]" },
79
+ { internalType: "uint256", name: "index", type: "uint256" },
80
+ { internalType: "uint256", name: "slotIndex", type: "uint256" },
81
+ { internalType: "string", name: "label", type: "string" },
82
+ ],
83
+ name: "CompactedArrayOutOfBounds",
84
+ type: "error",
85
+ },
86
+ {
87
+ inputs: [
88
+ { internalType: "bytes32", name: "baseKey", type: "bytes32" },
89
+ { internalType: "uint256", name: "value", type: "uint256" },
90
+ ],
91
+ name: "ConfigValueExceedsAllowedRange",
92
+ type: "error",
93
+ },
94
+ { inputs: [], name: "DataListLengthExceeded", type: "error" },
95
+ {
96
+ inputs: [{ internalType: "address", name: "token", type: "address" }],
97
+ name: "DataStreamIdAlreadyExistsForToken",
98
+ type: "error",
99
+ },
100
+ {
101
+ inputs: [
102
+ { internalType: "uint256", name: "currentTimestamp", type: "uint256" },
103
+ { internalType: "uint256", name: "deadline", type: "uint256" },
104
+ ],
105
+ name: "DeadlinePassed",
106
+ type: "error",
107
+ },
108
+ { inputs: [{ internalType: "bytes32", name: "key", type: "bytes32" }], name: "DepositNotFound", type: "error" },
109
+ { inputs: [{ internalType: "bytes32", name: "key", type: "bytes32" }], name: "DisabledFeature", type: "error" },
110
+ { inputs: [{ internalType: "address", name: "market", type: "address" }], name: "DisabledMarket", type: "error" },
111
+ {
112
+ inputs: [{ internalType: "uint256", name: "existingDistributionId", type: "uint256" }],
113
+ name: "DuplicateClaimTerms",
114
+ type: "error",
115
+ },
116
+ {
117
+ inputs: [
118
+ { internalType: "uint256", name: "index", type: "uint256" },
119
+ { internalType: "string", name: "label", type: "string" },
120
+ ],
121
+ name: "DuplicatedIndex",
122
+ type: "error",
123
+ },
124
+ {
125
+ inputs: [{ internalType: "address", name: "market", type: "address" }],
126
+ name: "DuplicatedMarketInSwapPath",
127
+ type: "error",
128
+ },
129
+ {
130
+ inputs: [{ internalType: "address", name: "token", type: "address" }],
131
+ name: "EdgeDataStreamIdAlreadyExistsForToken",
132
+ type: "error",
133
+ },
134
+ { inputs: [], name: "EmptyAccount", type: "error" },
135
+ {
136
+ inputs: [
137
+ { internalType: "address", name: "market", type: "address" },
138
+ { internalType: "address", name: "token", type: "address" },
139
+ ],
140
+ name: "EmptyAddressInMarketTokenBalanceValidation",
141
+ type: "error",
142
+ },
143
+ { inputs: [], name: "EmptyAmount", type: "error" },
144
+ {
145
+ inputs: [{ internalType: "address", name: "token", type: "address" }],
146
+ name: "EmptyChainlinkPriceFeed",
147
+ type: "error",
148
+ },
149
+ {
150
+ inputs: [{ internalType: "address", name: "token", type: "address" }],
151
+ name: "EmptyChainlinkPriceFeedMultiplier",
152
+ type: "error",
153
+ },
154
+ { inputs: [], name: "EmptyClaimFeesMarket", type: "error" },
155
+ {
156
+ inputs: [{ internalType: "address", name: "token", type: "address" }],
157
+ name: "EmptyClaimableAmount",
158
+ type: "error",
159
+ },
160
+ {
161
+ inputs: [{ internalType: "address", name: "token", type: "address" }],
162
+ name: "EmptyDataStreamFeedId",
163
+ type: "error",
164
+ },
165
+ {
166
+ inputs: [{ internalType: "address", name: "token", type: "address" }],
167
+ name: "EmptyDataStreamMultiplier",
168
+ type: "error",
169
+ },
170
+ { inputs: [], name: "EmptyDeposit", type: "error" },
171
+ { inputs: [], name: "EmptyDepositAmounts", type: "error" },
172
+ { inputs: [], name: "EmptyDepositAmountsAfterSwap", type: "error" },
173
+ { inputs: [], name: "EmptyFundingAccount", type: "error" },
174
+ { inputs: [{ internalType: "address", name: "glv", type: "address" }], name: "EmptyGlv", type: "error" },
175
+ { inputs: [], name: "EmptyGlvDeposit", type: "error" },
176
+ { inputs: [], name: "EmptyGlvDepositAmounts", type: "error" },
177
+ { inputs: [], name: "EmptyGlvMarketAmount", type: "error" },
178
+ { inputs: [], name: "EmptyGlvTokenSupply", type: "error" },
179
+ { inputs: [], name: "EmptyGlvWithdrawal", type: "error" },
180
+ { inputs: [], name: "EmptyGlvWithdrawalAmount", type: "error" },
181
+ { inputs: [], name: "EmptyHoldingAddress", type: "error" },
182
+ { inputs: [], name: "EmptyMarket", type: "error" },
183
+ { inputs: [{ internalType: "address", name: "market", type: "address" }], name: "EmptyMarketPrice", type: "error" },
184
+ { inputs: [], name: "EmptyMarketTokenSupply", type: "error" },
185
+ {
186
+ inputs: [
187
+ { internalType: "address", name: "account", type: "address" },
188
+ { internalType: "address", name: "token", type: "address" },
189
+ ],
190
+ name: "EmptyMultichainTransferInAmount",
191
+ type: "error",
192
+ },
193
+ {
194
+ inputs: [
195
+ { internalType: "address", name: "account", type: "address" },
196
+ { internalType: "address", name: "token", type: "address" },
197
+ ],
198
+ name: "EmptyMultichainTransferOutAmount",
199
+ type: "error",
200
+ },
201
+ { inputs: [], name: "EmptyOrder", type: "error" },
202
+ { inputs: [], name: "EmptyPosition", type: "error" },
203
+ { inputs: [], name: "EmptyPositionImpactWithdrawalAmount", type: "error" },
204
+ { inputs: [{ internalType: "address", name: "token", type: "address" }], name: "EmptyPrimaryPrice", type: "error" },
205
+ { inputs: [], name: "EmptyReceiver", type: "error" },
206
+ { inputs: [], name: "EmptyReduceLentAmount", type: "error" },
207
+ { inputs: [], name: "EmptyRelayFeeAddress", type: "error" },
208
+ { inputs: [], name: "EmptyShift", type: "error" },
209
+ { inputs: [], name: "EmptyShiftAmount", type: "error" },
210
+ { inputs: [], name: "EmptySizeDeltaInTokens", type: "error" },
211
+ { inputs: [], name: "EmptyTarget", type: "error" },
212
+ { inputs: [], name: "EmptyToken", type: "error" },
213
+ {
214
+ inputs: [{ internalType: "address", name: "token", type: "address" }],
215
+ name: "EmptyTokenTranferGasLimit",
216
+ type: "error",
217
+ },
218
+ { inputs: [], name: "EmptyValidatedPrices", type: "error" },
219
+ { inputs: [], name: "EmptyWithdrawal", type: "error" },
220
+ { inputs: [], name: "EmptyWithdrawalAmount", type: "error" },
221
+ { inputs: [], name: "EndOfOracleSimulation", type: "error" },
222
+ { inputs: [{ internalType: "string", name: "key", type: "string" }], name: "EventItemNotFound", type: "error" },
223
+ { inputs: [{ internalType: "bytes", name: "data", type: "bytes" }], name: "ExternalCallFailed", type: "error" },
224
+ { inputs: [{ internalType: "bytes32", name: "key", type: "bytes32" }], name: "FeeBatchNotFound", type: "error" },
225
+ {
226
+ inputs: [
227
+ { internalType: "bytes32", name: "salt", type: "bytes32" },
228
+ { internalType: "address", name: "glv", type: "address" },
229
+ ],
230
+ name: "GlvAlreadyExists",
231
+ type: "error",
232
+ },
233
+ { inputs: [{ internalType: "bytes32", name: "key", type: "bytes32" }], name: "GlvDepositNotFound", type: "error" },
234
+ {
235
+ inputs: [
236
+ { internalType: "address", name: "glv", type: "address" },
237
+ { internalType: "address", name: "market", type: "address" },
238
+ ],
239
+ name: "GlvDisabledMarket",
240
+ type: "error",
241
+ },
242
+ {
243
+ inputs: [
244
+ { internalType: "address", name: "glv", type: "address" },
245
+ { internalType: "address", name: "market", type: "address" },
246
+ ],
247
+ name: "GlvEnabledMarket",
248
+ type: "error",
249
+ },
250
+ {
251
+ inputs: [
252
+ { internalType: "address", name: "glv", type: "address" },
253
+ { internalType: "address", name: "market", type: "address" },
254
+ { internalType: "uint256", name: "marketTokenBalance", type: "uint256" },
255
+ { internalType: "uint256", name: "marketTokenAmount", type: "uint256" },
256
+ ],
257
+ name: "GlvInsufficientMarketTokenBalance",
258
+ type: "error",
259
+ },
260
+ {
261
+ inputs: [
262
+ { internalType: "address", name: "glv", type: "address" },
263
+ { internalType: "address", name: "provided", type: "address" },
264
+ { internalType: "address", name: "expected", type: "address" },
265
+ ],
266
+ name: "GlvInvalidLongToken",
267
+ type: "error",
268
+ },
269
+ {
270
+ inputs: [
271
+ { internalType: "address", name: "glv", type: "address" },
272
+ { internalType: "address", name: "provided", type: "address" },
273
+ { internalType: "address", name: "expected", type: "address" },
274
+ ],
275
+ name: "GlvInvalidShortToken",
276
+ type: "error",
277
+ },
278
+ {
279
+ inputs: [
280
+ { internalType: "address", name: "glv", type: "address" },
281
+ { internalType: "address", name: "market", type: "address" },
282
+ ],
283
+ name: "GlvMarketAlreadyExists",
284
+ type: "error",
285
+ },
286
+ {
287
+ inputs: [
288
+ { internalType: "address", name: "glv", type: "address" },
289
+ { internalType: "uint256", name: "glvMaxMarketCount", type: "uint256" },
290
+ ],
291
+ name: "GlvMaxMarketCountExceeded",
292
+ type: "error",
293
+ },
294
+ {
295
+ inputs: [
296
+ { internalType: "address", name: "glv", type: "address" },
297
+ { internalType: "address", name: "market", type: "address" },
298
+ { internalType: "uint256", name: "maxMarketTokenBalanceAmount", type: "uint256" },
299
+ { internalType: "uint256", name: "marketTokenBalanceAmount", type: "uint256" },
300
+ ],
301
+ name: "GlvMaxMarketTokenBalanceAmountExceeded",
302
+ type: "error",
303
+ },
304
+ {
305
+ inputs: [
306
+ { internalType: "address", name: "glv", type: "address" },
307
+ { internalType: "address", name: "market", type: "address" },
308
+ { internalType: "uint256", name: "maxMarketTokenBalanceUsd", type: "uint256" },
309
+ { internalType: "uint256", name: "marketTokenBalanceUsd", type: "uint256" },
310
+ ],
311
+ name: "GlvMaxMarketTokenBalanceUsdExceeded",
312
+ type: "error",
313
+ },
314
+ { inputs: [], name: "GlvNameTooLong", type: "error" },
315
+ {
316
+ inputs: [
317
+ { internalType: "address", name: "glv", type: "address" },
318
+ { internalType: "address", name: "market", type: "address" },
319
+ ],
320
+ name: "GlvNegativeMarketPoolValue",
321
+ type: "error",
322
+ },
323
+ {
324
+ inputs: [
325
+ { internalType: "address", name: "glv", type: "address" },
326
+ { internalType: "address", name: "market", type: "address" },
327
+ ],
328
+ name: "GlvNonZeroMarketBalance",
329
+ type: "error",
330
+ },
331
+ { inputs: [{ internalType: "address", name: "key", type: "address" }], name: "GlvNotFound", type: "error" },
332
+ {
333
+ inputs: [
334
+ { internalType: "uint256", name: "currentTimestamp", type: "uint256" },
335
+ { internalType: "uint256", name: "lastGlvShiftExecutedAt", type: "uint256" },
336
+ { internalType: "uint256", name: "glvShiftMinInterval", type: "uint256" },
337
+ ],
338
+ name: "GlvShiftIntervalNotYetPassed",
339
+ type: "error",
340
+ },
341
+ {
342
+ inputs: [
343
+ { internalType: "uint256", name: "effectivePriceImpactFactor", type: "uint256" },
344
+ { internalType: "uint256", name: "glvMaxShiftPriceImpactFactor", type: "uint256" },
345
+ ],
346
+ name: "GlvShiftMaxPriceImpactExceeded",
347
+ type: "error",
348
+ },
349
+ { inputs: [{ internalType: "bytes32", name: "key", type: "bytes32" }], name: "GlvShiftNotFound", type: "error" },
350
+ { inputs: [], name: "GlvSymbolTooLong", type: "error" },
351
+ {
352
+ inputs: [
353
+ { internalType: "address", name: "glv", type: "address" },
354
+ { internalType: "address", name: "market", type: "address" },
355
+ ],
356
+ name: "GlvUnsupportedMarket",
357
+ type: "error",
358
+ },
359
+ { inputs: [{ internalType: "bytes32", name: "key", type: "bytes32" }], name: "GlvWithdrawalNotFound", type: "error" },
360
+ { inputs: [{ internalType: "uint256", name: "signerIndex", type: "uint256" }], name: "GmEmptySigner", type: "error" },
361
+ {
362
+ inputs: [
363
+ { internalType: "uint256", name: "minOracleBlockNumber", type: "uint256" },
364
+ { internalType: "uint256", name: "currentBlockNumber", type: "uint256" },
365
+ ],
366
+ name: "GmInvalidBlockNumber",
367
+ type: "error",
368
+ },
369
+ {
370
+ inputs: [
371
+ { internalType: "uint256", name: "minOracleBlockNumber", type: "uint256" },
372
+ { internalType: "uint256", name: "maxOracleBlockNumber", type: "uint256" },
373
+ ],
374
+ name: "GmInvalidMinMaxBlockNumber",
375
+ type: "error",
376
+ },
377
+ {
378
+ inputs: [
379
+ { internalType: "uint256", name: "oracleSigners", type: "uint256" },
380
+ { internalType: "uint256", name: "maxOracleSigners", type: "uint256" },
381
+ ],
382
+ name: "GmMaxOracleSigners",
383
+ type: "error",
384
+ },
385
+ {
386
+ inputs: [
387
+ { internalType: "address", name: "token", type: "address" },
388
+ { internalType: "uint256", name: "price", type: "uint256" },
389
+ { internalType: "uint256", name: "prevPrice", type: "uint256" },
390
+ ],
391
+ name: "GmMaxPricesNotSorted",
392
+ type: "error",
393
+ },
394
+ {
395
+ inputs: [
396
+ { internalType: "uint256", name: "signerIndex", type: "uint256" },
397
+ { internalType: "uint256", name: "maxSignerIndex", type: "uint256" },
398
+ ],
399
+ name: "GmMaxSignerIndex",
400
+ type: "error",
401
+ },
402
+ {
403
+ inputs: [
404
+ { internalType: "uint256", name: "oracleSigners", type: "uint256" },
405
+ { internalType: "uint256", name: "minOracleSigners", type: "uint256" },
406
+ ],
407
+ name: "GmMinOracleSigners",
408
+ type: "error",
409
+ },
410
+ {
411
+ inputs: [
412
+ { internalType: "address", name: "token", type: "address" },
413
+ { internalType: "uint256", name: "price", type: "uint256" },
414
+ { internalType: "uint256", name: "prevPrice", type: "uint256" },
415
+ ],
416
+ name: "GmMinPricesNotSorted",
417
+ type: "error",
418
+ },
419
+ {
420
+ inputs: [
421
+ { internalType: "address", name: "feeToken", type: "address" },
422
+ { internalType: "address", name: "buybackToken", type: "address" },
423
+ { internalType: "uint256", name: "outputAmount", type: "uint256" },
424
+ { internalType: "uint256", name: "minOutputAmount", type: "uint256" },
425
+ ],
426
+ name: "InsufficientBuybackOutputAmount",
427
+ type: "error",
428
+ },
429
+ {
430
+ inputs: [
431
+ { internalType: "uint256", name: "collateralAmount", type: "uint256" },
432
+ { internalType: "int256", name: "collateralDeltaAmount", type: "int256" },
433
+ ],
434
+ name: "InsufficientCollateralAmount",
435
+ type: "error",
436
+ },
437
+ {
438
+ inputs: [{ internalType: "int256", name: "remainingCollateralUsd", type: "int256" }],
439
+ name: "InsufficientCollateralUsd",
440
+ type: "error",
441
+ },
442
+ {
443
+ inputs: [
444
+ { internalType: "uint256", name: "minExecutionFee", type: "uint256" },
445
+ { internalType: "uint256", name: "executionFee", type: "uint256" },
446
+ ],
447
+ name: "InsufficientExecutionFee",
448
+ type: "error",
449
+ },
450
+ {
451
+ inputs: [
452
+ { internalType: "uint256", name: "startingGas", type: "uint256" },
453
+ { internalType: "uint256", name: "estimatedGasLimit", type: "uint256" },
454
+ { internalType: "uint256", name: "minAdditionalGasForExecution", type: "uint256" },
455
+ ],
456
+ name: "InsufficientExecutionGas",
457
+ type: "error",
458
+ },
459
+ {
460
+ inputs: [
461
+ { internalType: "uint256", name: "startingGas", type: "uint256" },
462
+ { internalType: "uint256", name: "minHandleErrorGas", type: "uint256" },
463
+ ],
464
+ name: "InsufficientExecutionGasForErrorHandling",
465
+ type: "error",
466
+ },
467
+ {
468
+ inputs: [
469
+ { internalType: "uint256", name: "feeProvided", type: "uint256" },
470
+ { internalType: "uint256", name: "feeRequired", type: "uint256" },
471
+ ],
472
+ name: "InsufficientFee",
473
+ type: "error",
474
+ },
475
+ { inputs: [{ internalType: "address", name: "token", type: "address" }], name: "InsufficientFunds", type: "error" },
476
+ {
477
+ inputs: [
478
+ { internalType: "uint256", name: "remainingCostUsd", type: "uint256" },
479
+ { internalType: "string", name: "step", type: "string" },
480
+ ],
481
+ name: "InsufficientFundsToPayForCosts",
482
+ type: "error",
483
+ },
484
+ {
485
+ inputs: [
486
+ { internalType: "uint256", name: "gas", type: "uint256" },
487
+ { internalType: "uint256", name: "minHandleExecutionErrorGas", type: "uint256" },
488
+ ],
489
+ name: "InsufficientGasForAutoCancellation",
490
+ type: "error",
491
+ },
492
+ {
493
+ inputs: [
494
+ { internalType: "uint256", name: "gas", type: "uint256" },
495
+ { internalType: "uint256", name: "minHandleExecutionErrorGas", type: "uint256" },
496
+ ],
497
+ name: "InsufficientGasForCancellation",
498
+ type: "error",
499
+ },
500
+ {
501
+ inputs: [
502
+ { internalType: "uint256", name: "gas", type: "uint256" },
503
+ { internalType: "uint256", name: "estimatedGasLimit", type: "uint256" },
504
+ ],
505
+ name: "InsufficientGasLeft",
506
+ type: "error",
507
+ },
508
+ {
509
+ inputs: [
510
+ { internalType: "uint256", name: "gasToBeForwarded", type: "uint256" },
511
+ { internalType: "uint256", name: "callbackGasLimit", type: "uint256" },
512
+ ],
513
+ name: "InsufficientGasLeftForCallback",
514
+ type: "error",
515
+ },
516
+ {
517
+ inputs: [
518
+ { internalType: "uint256", name: "gas", type: "uint256" },
519
+ { internalType: "uint256", name: "minHandleExecutionErrorGas", type: "uint256" },
520
+ ],
521
+ name: "InsufficientHandleExecutionErrorGas",
522
+ type: "error",
523
+ },
524
+ {
525
+ inputs: [
526
+ { internalType: "uint256", name: "withdrawalAmount", type: "uint256" },
527
+ { internalType: "uint256", name: "poolValue", type: "uint256" },
528
+ { internalType: "int256", name: "totalPendingImpactAmount", type: "int256" },
529
+ ],
530
+ name: "InsufficientImpactPoolValueForWithdrawal",
531
+ type: "error",
532
+ },
533
+ {
534
+ inputs: [
535
+ { internalType: "uint256", name: "balance", type: "uint256" },
536
+ { internalType: "uint256", name: "expected", type: "uint256" },
537
+ ],
538
+ name: "InsufficientMarketTokens",
539
+ type: "error",
540
+ },
541
+ {
542
+ inputs: [
543
+ { internalType: "address", name: "account", type: "address" },
544
+ { internalType: "address", name: "token", type: "address" },
545
+ { internalType: "uint256", name: "balance", type: "uint256" },
546
+ { internalType: "uint256", name: "amount", type: "uint256" },
547
+ ],
548
+ name: "InsufficientMultichainBalance",
549
+ type: "error",
550
+ },
551
+ {
552
+ inputs: [
553
+ { internalType: "uint256", name: "outputAmount", type: "uint256" },
554
+ { internalType: "uint256", name: "minOutputAmount", type: "uint256" },
555
+ ],
556
+ name: "InsufficientOutputAmount",
557
+ type: "error",
558
+ },
559
+ {
560
+ inputs: [
561
+ { internalType: "uint256", name: "poolAmount", type: "uint256" },
562
+ { internalType: "uint256", name: "amount", type: "uint256" },
563
+ ],
564
+ name: "InsufficientPoolAmount",
565
+ type: "error",
566
+ },
567
+ {
568
+ inputs: [
569
+ { internalType: "uint256", name: "requiredRelayFee", type: "uint256" },
570
+ { internalType: "uint256", name: "availableFeeAmount", type: "uint256" },
571
+ ],
572
+ name: "InsufficientRelayFee",
573
+ type: "error",
574
+ },
575
+ {
576
+ inputs: [
577
+ { internalType: "uint256", name: "reservedUsd", type: "uint256" },
578
+ { internalType: "uint256", name: "maxReservedUsd", type: "uint256" },
579
+ ],
580
+ name: "InsufficientReserve",
581
+ type: "error",
582
+ },
583
+ {
584
+ inputs: [
585
+ { internalType: "uint256", name: "reservedUsd", type: "uint256" },
586
+ { internalType: "uint256", name: "maxReservedUsd", type: "uint256" },
587
+ ],
588
+ name: "InsufficientReserveForOpenInterest",
589
+ type: "error",
590
+ },
591
+ {
592
+ inputs: [
593
+ { internalType: "uint256", name: "outputAmount", type: "uint256" },
594
+ { internalType: "uint256", name: "minOutputAmount", type: "uint256" },
595
+ ],
596
+ name: "InsufficientSwapOutputAmount",
597
+ type: "error",
598
+ },
599
+ {
600
+ inputs: [
601
+ { internalType: "uint256", name: "wntAmount", type: "uint256" },
602
+ { internalType: "uint256", name: "executionFee", type: "uint256" },
603
+ ],
604
+ name: "InsufficientWntAmountForExecutionFee",
605
+ type: "error",
606
+ },
607
+ {
608
+ inputs: [
609
+ { internalType: "int256", name: "nextPnlToPoolFactor", type: "int256" },
610
+ { internalType: "int256", name: "pnlToPoolFactor", type: "int256" },
611
+ ],
612
+ name: "InvalidAdl",
613
+ type: "error",
614
+ },
615
+ {
616
+ inputs: [
617
+ { internalType: "uint256", name: "amountIn", type: "uint256" },
618
+ { internalType: "uint256", name: "remainingAmount", type: "uint256" },
619
+ ],
620
+ name: "InvalidAmountInForFeeBatch",
621
+ type: "error",
622
+ },
623
+ { inputs: [{ internalType: "bytes32", name: "baseKey", type: "bytes32" }], name: "InvalidBaseKey", type: "error" },
624
+ {
625
+ inputs: [
626
+ { internalType: "uint256", name: "largestMinBlockNumber", type: "uint256" },
627
+ { internalType: "uint256", name: "smallestMaxBlockNumber", type: "uint256" },
628
+ ],
629
+ name: "InvalidBlockRangeSet",
630
+ type: "error",
631
+ },
632
+ {
633
+ inputs: [{ internalType: "address", name: "token", type: "address" }],
634
+ name: "InvalidBridgeOutToken",
635
+ type: "error",
636
+ },
637
+ {
638
+ inputs: [{ internalType: "address", name: "buybackToken", type: "address" }],
639
+ name: "InvalidBuybackToken",
640
+ type: "error",
641
+ },
642
+ {
643
+ inputs: [
644
+ { internalType: "address", name: "cancellationReceiver", type: "address" },
645
+ { internalType: "address", name: "expectedCancellationReceiver", type: "address" },
646
+ ],
647
+ name: "InvalidCancellationReceiverForSubaccountOrder",
648
+ type: "error",
649
+ },
650
+ {
651
+ inputs: [
652
+ { internalType: "uint256", name: "marketsLength", type: "uint256" },
653
+ { internalType: "uint256", name: "tokensLength", type: "uint256" },
654
+ ],
655
+ name: "InvalidClaimAffiliateRewardsInput",
656
+ type: "error",
657
+ },
658
+ {
659
+ inputs: [
660
+ { internalType: "uint256", name: "marketsLength", type: "uint256" },
661
+ { internalType: "uint256", name: "tokensLength", type: "uint256" },
662
+ { internalType: "uint256", name: "timeKeysLength", type: "uint256" },
663
+ ],
664
+ name: "InvalidClaimCollateralInput",
665
+ type: "error",
666
+ },
667
+ {
668
+ inputs: [
669
+ { internalType: "uint256", name: "marketsLength", type: "uint256" },
670
+ { internalType: "uint256", name: "tokensLength", type: "uint256" },
671
+ ],
672
+ name: "InvalidClaimFundingFeesInput",
673
+ type: "error",
674
+ },
675
+ {
676
+ inputs: [
677
+ { internalType: "address", name: "recoveredSigner", type: "address" },
678
+ { internalType: "address", name: "expectedSigner", type: "address" },
679
+ ],
680
+ name: "InvalidClaimTermsSignature",
681
+ type: "error",
682
+ },
683
+ {
684
+ inputs: [{ internalType: "address", name: "expectedSigner", type: "address" }],
685
+ name: "InvalidClaimTermsSignatureForContract",
686
+ type: "error",
687
+ },
688
+ {
689
+ inputs: [
690
+ { internalType: "uint256", name: "marketsLength", type: "uint256" },
691
+ { internalType: "uint256", name: "tokensLength", type: "uint256" },
692
+ ],
693
+ name: "InvalidClaimUiFeesInput",
694
+ type: "error",
695
+ },
696
+ {
697
+ inputs: [{ internalType: "uint256", name: "value", type: "uint256" }],
698
+ name: "InvalidClaimableFactor",
699
+ type: "error",
700
+ },
701
+ {
702
+ inputs: [{ internalType: "uint256", name: "value", type: "uint256" }],
703
+ name: "InvalidClaimableReductionFactor",
704
+ type: "error",
705
+ },
706
+ {
707
+ inputs: [
708
+ { internalType: "address", name: "market", type: "address" },
709
+ { internalType: "address", name: "token", type: "address" },
710
+ ],
711
+ name: "InvalidCollateralTokenForMarket",
712
+ type: "error",
713
+ },
714
+ {
715
+ inputs: [{ internalType: "address", name: "token", type: "address" }],
716
+ name: "InvalidContributorToken",
717
+ type: "error",
718
+ },
719
+ {
720
+ inputs: [
721
+ { internalType: "address", name: "token", type: "address" },
722
+ { internalType: "int192", name: "bid", type: "int192" },
723
+ { internalType: "int192", name: "ask", type: "int192" },
724
+ ],
725
+ name: "InvalidDataStreamBidAsk",
726
+ type: "error",
727
+ },
728
+ {
729
+ inputs: [
730
+ { internalType: "address", name: "token", type: "address" },
731
+ { internalType: "bytes32", name: "feedId", type: "bytes32" },
732
+ { internalType: "bytes32", name: "expectedFeedId", type: "bytes32" },
733
+ ],
734
+ name: "InvalidDataStreamFeedId",
735
+ type: "error",
736
+ },
737
+ {
738
+ inputs: [
739
+ { internalType: "address", name: "token", type: "address" },
740
+ { internalType: "int192", name: "bid", type: "int192" },
741
+ { internalType: "int192", name: "ask", type: "int192" },
742
+ ],
743
+ name: "InvalidDataStreamPrices",
744
+ type: "error",
745
+ },
746
+ {
747
+ inputs: [
748
+ { internalType: "address", name: "token", type: "address" },
749
+ { internalType: "uint256", name: "spreadReductionFactor", type: "uint256" },
750
+ ],
751
+ name: "InvalidDataStreamSpreadReductionFactor",
752
+ type: "error",
753
+ },
754
+ {
755
+ inputs: [
756
+ { internalType: "uint256", name: "sizeDeltaUsd", type: "uint256" },
757
+ { internalType: "uint256", name: "positionSizeInUsd", type: "uint256" },
758
+ ],
759
+ name: "InvalidDecreaseOrderSize",
760
+ type: "error",
761
+ },
762
+ {
763
+ inputs: [{ internalType: "uint256", name: "decreasePositionSwapType", type: "uint256" }],
764
+ name: "InvalidDecreasePositionSwapType",
765
+ type: "error",
766
+ },
767
+ {
768
+ inputs: [{ internalType: "uint256", name: "desChainId", type: "uint256" }],
769
+ name: "InvalidDestinationChainId",
770
+ type: "error",
771
+ },
772
+ {
773
+ inputs: [
774
+ { internalType: "address", name: "token", type: "address" },
775
+ { internalType: "uint256", name: "bid", type: "uint256" },
776
+ { internalType: "uint256", name: "ask", type: "uint256" },
777
+ ],
778
+ name: "InvalidEdgeDataStreamBidAsk",
779
+ type: "error",
780
+ },
781
+ {
782
+ inputs: [{ internalType: "int256", name: "expo", type: "int256" }],
783
+ name: "InvalidEdgeDataStreamExpo",
784
+ type: "error",
785
+ },
786
+ {
787
+ inputs: [
788
+ { internalType: "address", name: "token", type: "address" },
789
+ { internalType: "uint256", name: "bid", type: "uint256" },
790
+ { internalType: "uint256", name: "ask", type: "uint256" },
791
+ ],
792
+ name: "InvalidEdgeDataStreamPrices",
793
+ type: "error",
794
+ },
795
+ {
796
+ inputs: [{ internalType: "uint256", name: "recoverError", type: "uint256" }],
797
+ name: "InvalidEdgeSignature",
798
+ type: "error",
799
+ },
800
+ { inputs: [], name: "InvalidEdgeSigner", type: "error" },
801
+ { inputs: [{ internalType: "uint256", name: "eid", type: "uint256" }], name: "InvalidEid", type: "error" },
802
+ {
803
+ inputs: [
804
+ { internalType: "uint256", name: "executionFee", type: "uint256" },
805
+ { internalType: "uint256", name: "minExecutionFee", type: "uint256" },
806
+ { internalType: "uint256", name: "maxExecutionFee", type: "uint256" },
807
+ ],
808
+ name: "InvalidExecutionFee",
809
+ type: "error",
810
+ },
811
+ {
812
+ inputs: [
813
+ { internalType: "uint256", name: "totalExecutionFee", type: "uint256" },
814
+ { internalType: "uint256", name: "msgValue", type: "uint256" },
815
+ ],
816
+ name: "InvalidExecutionFeeForMigration",
817
+ type: "error",
818
+ },
819
+ {
820
+ inputs: [
821
+ { internalType: "uint256", name: "targetsLength", type: "uint256" },
822
+ { internalType: "uint256", name: "dataListLength", type: "uint256" },
823
+ ],
824
+ name: "InvalidExternalCallInput",
825
+ type: "error",
826
+ },
827
+ {
828
+ inputs: [{ internalType: "address", name: "target", type: "address" }],
829
+ name: "InvalidExternalCallTarget",
830
+ type: "error",
831
+ },
832
+ {
833
+ inputs: [
834
+ { internalType: "uint256", name: "sendTokensLength", type: "uint256" },
835
+ { internalType: "uint256", name: "sendAmountsLength", type: "uint256" },
836
+ ],
837
+ name: "InvalidExternalCalls",
838
+ type: "error",
839
+ },
840
+ {
841
+ inputs: [
842
+ { internalType: "uint256", name: "refundTokensLength", type: "uint256" },
843
+ { internalType: "uint256", name: "refundReceiversLength", type: "uint256" },
844
+ ],
845
+ name: "InvalidExternalReceiversInput",
846
+ type: "error",
847
+ },
848
+ {
849
+ inputs: [
850
+ { internalType: "uint256", name: "tokenIndex", type: "uint256" },
851
+ { internalType: "uint256", name: "feeBatchTokensLength", type: "uint256" },
852
+ ],
853
+ name: "InvalidFeeBatchTokenIndex",
854
+ type: "error",
855
+ },
856
+ {
857
+ inputs: [{ internalType: "address", name: "receiver", type: "address" }],
858
+ name: "InvalidFeeReceiver",
859
+ type: "error",
860
+ },
861
+ {
862
+ inputs: [
863
+ { internalType: "address", name: "token", type: "address" },
864
+ { internalType: "int256", name: "price", type: "int256" },
865
+ ],
866
+ name: "InvalidFeedPrice",
867
+ type: "error",
868
+ },
869
+ {
870
+ inputs: [
871
+ { internalType: "uint256", name: "totalGlpAmountToRedeem", type: "uint256" },
872
+ { internalType: "uint256", name: "totalGlpAmount", type: "uint256" },
873
+ ],
874
+ name: "InvalidGlpAmount",
875
+ type: "error",
876
+ },
877
+ {
878
+ inputs: [{ internalType: "address", name: "initialLongToken", type: "address" }],
879
+ name: "InvalidGlvDepositInitialLongToken",
880
+ type: "error",
881
+ },
882
+ {
883
+ inputs: [{ internalType: "address", name: "initialShortToken", type: "address" }],
884
+ name: "InvalidGlvDepositInitialShortToken",
885
+ type: "error",
886
+ },
887
+ {
888
+ inputs: [
889
+ { internalType: "uint256", name: "longTokenSwapPathLength", type: "uint256" },
890
+ { internalType: "uint256", name: "shortTokenSwapPathLength", type: "uint256" },
891
+ ],
892
+ name: "InvalidGlvDepositSwapPath",
893
+ type: "error",
894
+ },
895
+ {
896
+ inputs: [
897
+ { internalType: "uint256", name: "minPrice", type: "uint256" },
898
+ { internalType: "uint256", name: "maxPrice", type: "uint256" },
899
+ ],
900
+ name: "InvalidGmMedianMinMaxPrice",
901
+ type: "error",
902
+ },
903
+ {
904
+ inputs: [{ internalType: "address", name: "token", type: "address" }],
905
+ name: "InvalidGmOraclePrice",
906
+ type: "error",
907
+ },
908
+ {
909
+ inputs: [
910
+ { internalType: "address", name: "recoveredSigner", type: "address" },
911
+ { internalType: "address", name: "expectedSigner", type: "address" },
912
+ ],
913
+ name: "InvalidGmSignature",
914
+ type: "error",
915
+ },
916
+ {
917
+ inputs: [
918
+ { internalType: "uint256", name: "minPrice", type: "uint256" },
919
+ { internalType: "uint256", name: "maxPrice", type: "uint256" },
920
+ ],
921
+ name: "InvalidGmSignerMinMaxPrice",
922
+ type: "error",
923
+ },
924
+ {
925
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
926
+ name: "InvalidHoldingAddress",
927
+ type: "error",
928
+ },
929
+ { inputs: [], name: "InvalidInitializer", type: "error" },
930
+ {
931
+ inputs: [{ internalType: "address", name: "keeper", type: "address" }],
932
+ name: "InvalidKeeperForFrozenOrder",
933
+ type: "error",
934
+ },
935
+ {
936
+ inputs: [
937
+ { internalType: "address", name: "market", type: "address" },
938
+ { internalType: "address", name: "token", type: "address" },
939
+ { internalType: "uint256", name: "balance", type: "uint256" },
940
+ { internalType: "uint256", name: "expectedMinBalance", type: "uint256" },
941
+ ],
942
+ name: "InvalidMarketTokenBalance",
943
+ type: "error",
944
+ },
945
+ {
946
+ inputs: [
947
+ { internalType: "address", name: "market", type: "address" },
948
+ { internalType: "address", name: "token", type: "address" },
949
+ { internalType: "uint256", name: "balance", type: "uint256" },
950
+ { internalType: "uint256", name: "claimableFundingFeeAmount", type: "uint256" },
951
+ ],
952
+ name: "InvalidMarketTokenBalanceForClaimableFunding",
953
+ type: "error",
954
+ },
955
+ {
956
+ inputs: [
957
+ { internalType: "address", name: "market", type: "address" },
958
+ { internalType: "address", name: "token", type: "address" },
959
+ { internalType: "uint256", name: "balance", type: "uint256" },
960
+ { internalType: "uint256", name: "collateralAmount", type: "uint256" },
961
+ ],
962
+ name: "InvalidMarketTokenBalanceForCollateralAmount",
963
+ type: "error",
964
+ },
965
+ {
966
+ inputs: [
967
+ { internalType: "uint256", name: "minGlvTokens", type: "uint256" },
968
+ { internalType: "uint256", name: "expectedMinGlvTokens", type: "uint256" },
969
+ ],
970
+ name: "InvalidMinGlvTokensForFirstGlvDeposit",
971
+ type: "error",
972
+ },
973
+ {
974
+ inputs: [
975
+ { internalType: "uint256", name: "minMarketTokens", type: "uint256" },
976
+ { internalType: "uint256", name: "expectedMinMarketTokens", type: "uint256" },
977
+ ],
978
+ name: "InvalidMinMarketTokensForFirstDeposit",
979
+ type: "error",
980
+ },
981
+ {
982
+ inputs: [
983
+ { internalType: "address", name: "token", type: "address" },
984
+ { internalType: "uint256", name: "min", type: "uint256" },
985
+ { internalType: "uint256", name: "max", type: "uint256" },
986
+ ],
987
+ name: "InvalidMinMaxForPrice",
988
+ type: "error",
989
+ },
990
+ {
991
+ inputs: [{ internalType: "address", name: "endpoint", type: "address" }],
992
+ name: "InvalidMultichainEndpoint",
993
+ type: "error",
994
+ },
995
+ {
996
+ inputs: [{ internalType: "address", name: "provider", type: "address" }],
997
+ name: "InvalidMultichainProvider",
998
+ type: "error",
999
+ },
1000
+ {
1001
+ inputs: [{ internalType: "address", name: "msgSender", type: "address" }],
1002
+ name: "InvalidNativeTokenSender",
1003
+ type: "error",
1004
+ },
1005
+ {
1006
+ inputs: [{ internalType: "address", name: "provider", type: "address" }],
1007
+ name: "InvalidOracleProvider",
1008
+ type: "error",
1009
+ },
1010
+ {
1011
+ inputs: [
1012
+ { internalType: "address", name: "provider", type: "address" },
1013
+ { internalType: "address", name: "expectedProvider", type: "address" },
1014
+ ],
1015
+ name: "InvalidOracleProviderForToken",
1016
+ type: "error",
1017
+ },
1018
+ {
1019
+ inputs: [
1020
+ { internalType: "uint256", name: "tokensLength", type: "uint256" },
1021
+ { internalType: "uint256", name: "dataLength", type: "uint256" },
1022
+ ],
1023
+ name: "InvalidOracleSetPricesDataParam",
1024
+ type: "error",
1025
+ },
1026
+ {
1027
+ inputs: [
1028
+ { internalType: "uint256", name: "tokensLength", type: "uint256" },
1029
+ { internalType: "uint256", name: "providersLength", type: "uint256" },
1030
+ ],
1031
+ name: "InvalidOracleSetPricesProvidersParam",
1032
+ type: "error",
1033
+ },
1034
+ {
1035
+ inputs: [{ internalType: "address", name: "signer", type: "address" }],
1036
+ name: "InvalidOracleSigner",
1037
+ type: "error",
1038
+ },
1039
+ {
1040
+ inputs: [
1041
+ { internalType: "uint256", name: "primaryPriceMin", type: "uint256" },
1042
+ { internalType: "uint256", name: "primaryPriceMax", type: "uint256" },
1043
+ { internalType: "uint256", name: "triggerPrice", type: "uint256" },
1044
+ { internalType: "uint256", name: "orderType", type: "uint256" },
1045
+ ],
1046
+ name: "InvalidOrderPrices",
1047
+ type: "error",
1048
+ },
1049
+ {
1050
+ inputs: [
1051
+ { internalType: "address", name: "tokenOut", type: "address" },
1052
+ { internalType: "address", name: "expectedTokenOut", type: "address" },
1053
+ ],
1054
+ name: "InvalidOutputToken",
1055
+ type: "error",
1056
+ },
1057
+ { inputs: [{ internalType: "string", name: "reason", type: "string" }], name: "InvalidParams", type: "error" },
1058
+ {
1059
+ inputs: [
1060
+ { internalType: "address", name: "spender", type: "address" },
1061
+ { internalType: "address", name: "expectedSpender", type: "address" },
1062
+ ],
1063
+ name: "InvalidPermitSpender",
1064
+ type: "error",
1065
+ },
1066
+ {
1067
+ inputs: [{ internalType: "int256", name: "poolValue", type: "int256" }],
1068
+ name: "InvalidPoolValueForDeposit",
1069
+ type: "error",
1070
+ },
1071
+ {
1072
+ inputs: [{ internalType: "int256", name: "poolValue", type: "int256" }],
1073
+ name: "InvalidPoolValueForWithdrawal",
1074
+ type: "error",
1075
+ },
1076
+ {
1077
+ inputs: [
1078
+ { internalType: "uint256", name: "distributionAmount", type: "uint256" },
1079
+ { internalType: "uint256", name: "positionImpactPoolAmount", type: "uint256" },
1080
+ ],
1081
+ name: "InvalidPositionImpactPoolDistributionRate",
1082
+ type: "error",
1083
+ },
1084
+ {
1085
+ inputs: [{ internalType: "address", name: "market", type: "address" }],
1086
+ name: "InvalidPositionMarket",
1087
+ type: "error",
1088
+ },
1089
+ {
1090
+ inputs: [
1091
+ { internalType: "uint256", name: "sizeInUsd", type: "uint256" },
1092
+ { internalType: "uint256", name: "sizeInTokens", type: "uint256" },
1093
+ ],
1094
+ name: "InvalidPositionSizeValues",
1095
+ type: "error",
1096
+ },
1097
+ {
1098
+ inputs: [
1099
+ { internalType: "uint256", name: "primaryTokensLength", type: "uint256" },
1100
+ { internalType: "uint256", name: "primaryPricesLength", type: "uint256" },
1101
+ ],
1102
+ name: "InvalidPrimaryPricesForSimulation",
1103
+ type: "error",
1104
+ },
1105
+ { inputs: [{ internalType: "address", name: "receiver", type: "address" }], name: "InvalidReceiver", type: "error" },
1106
+ {
1107
+ inputs: [
1108
+ { internalType: "address", name: "receiver", type: "address" },
1109
+ { internalType: "address", name: "expectedReceiver", type: "address" },
1110
+ ],
1111
+ name: "InvalidReceiverForFirstDeposit",
1112
+ type: "error",
1113
+ },
1114
+ {
1115
+ inputs: [
1116
+ { internalType: "address", name: "receiver", type: "address" },
1117
+ { internalType: "address", name: "expectedReceiver", type: "address" },
1118
+ ],
1119
+ name: "InvalidReceiverForFirstGlvDeposit",
1120
+ type: "error",
1121
+ },
1122
+ {
1123
+ inputs: [
1124
+ { internalType: "address", name: "receiver", type: "address" },
1125
+ { internalType: "address", name: "expectedReceiver", type: "address" },
1126
+ ],
1127
+ name: "InvalidReceiverForSubaccountOrder",
1128
+ type: "error",
1129
+ },
1130
+ {
1131
+ inputs: [
1132
+ { internalType: "string", name: "signatureType", type: "string" },
1133
+ { internalType: "address", name: "recovered", type: "address" },
1134
+ { internalType: "address", name: "recoveredFromMinified", type: "address" },
1135
+ { internalType: "address", name: "expectedSigner", type: "address" },
1136
+ ],
1137
+ name: "InvalidRecoveredSigner",
1138
+ type: "error",
1139
+ },
1140
+ {
1141
+ inputs: [
1142
+ { internalType: "uint256", name: "tokensLength", type: "uint256" },
1143
+ { internalType: "uint256", name: "amountsLength", type: "uint256" },
1144
+ ],
1145
+ name: "InvalidSetContributorPaymentInput",
1146
+ type: "error",
1147
+ },
1148
+ {
1149
+ inputs: [
1150
+ { internalType: "uint256", name: "tokensLength", type: "uint256" },
1151
+ { internalType: "uint256", name: "amountsLength", type: "uint256" },
1152
+ ],
1153
+ name: "InvalidSetMaxTotalContributorTokenAmountInput",
1154
+ type: "error",
1155
+ },
1156
+ {
1157
+ inputs: [{ internalType: "string", name: "signatureType", type: "string" }],
1158
+ name: "InvalidSignature",
1159
+ type: "error",
1160
+ },
1161
+ {
1162
+ inputs: [
1163
+ { internalType: "uint256", name: "sizeDeltaUsd", type: "uint256" },
1164
+ { internalType: "uint256", name: "positionSizeInUsd", type: "uint256" },
1165
+ ],
1166
+ name: "InvalidSizeDeltaForAdl",
1167
+ type: "error",
1168
+ },
1169
+ {
1170
+ inputs: [{ internalType: "uint256", name: "srcChainId", type: "uint256" }],
1171
+ name: "InvalidSrcChainId",
1172
+ type: "error",
1173
+ },
1174
+ {
1175
+ inputs: [{ internalType: "uint256", name: "desChainId", type: "uint256" }],
1176
+ name: "InvalidSubaccountApprovalDesChainId",
1177
+ type: "error",
1178
+ },
1179
+ {
1180
+ inputs: [
1181
+ { internalType: "uint256", name: "storedNonce", type: "uint256" },
1182
+ { internalType: "uint256", name: "nonce", type: "uint256" },
1183
+ ],
1184
+ name: "InvalidSubaccountApprovalNonce",
1185
+ type: "error",
1186
+ },
1187
+ { inputs: [], name: "InvalidSubaccountApprovalSubaccount", type: "error" },
1188
+ { inputs: [{ internalType: "address", name: "market", type: "address" }], name: "InvalidSwapMarket", type: "error" },
1189
+ {
1190
+ inputs: [
1191
+ { internalType: "address", name: "outputToken", type: "address" },
1192
+ { internalType: "address", name: "expectedOutputToken", type: "address" },
1193
+ ],
1194
+ name: "InvalidSwapOutputToken",
1195
+ type: "error",
1196
+ },
1197
+ {
1198
+ inputs: [
1199
+ { internalType: "address[]", name: "path", type: "address[]" },
1200
+ { internalType: "address", name: "bridgingToken", type: "address" },
1201
+ ],
1202
+ name: "InvalidSwapPathForV1",
1203
+ type: "error",
1204
+ },
1205
+ {
1206
+ inputs: [{ internalType: "uint256", name: "timelockDelay", type: "uint256" }],
1207
+ name: "InvalidTimelockDelay",
1208
+ type: "error",
1209
+ },
1210
+ { inputs: [{ internalType: "address", name: "token", type: "address" }], name: "InvalidToken", type: "error" },
1211
+ {
1212
+ inputs: [
1213
+ { internalType: "address", name: "tokenIn", type: "address" },
1214
+ { internalType: "address", name: "market", type: "address" },
1215
+ ],
1216
+ name: "InvalidTokenIn",
1217
+ type: "error",
1218
+ },
1219
+ { inputs: [], name: "InvalidTransferRequestsLength", type: "error" },
1220
+ { inputs: [], name: "InvalidTrustedSignerAddress", type: "error" },
1221
+ {
1222
+ inputs: [
1223
+ { internalType: "uint256", name: "uiFeeFactor", type: "uint256" },
1224
+ { internalType: "uint256", name: "maxUiFeeFactor", type: "uint256" },
1225
+ ],
1226
+ name: "InvalidUiFeeFactor",
1227
+ type: "error",
1228
+ },
1229
+ { inputs: [{ internalType: "bytes32", name: "digest", type: "bytes32" }], name: "InvalidUserDigest", type: "error" },
1230
+ { inputs: [{ internalType: "uint256", name: "version", type: "uint256" }], name: "InvalidVersion", type: "error" },
1231
+ {
1232
+ inputs: [
1233
+ { internalType: "string", name: "reason", type: "string" },
1234
+ { internalType: "int256", name: "remainingCollateralUsd", type: "int256" },
1235
+ { internalType: "int256", name: "minCollateralUsd", type: "int256" },
1236
+ { internalType: "int256", name: "minCollateralUsdForLeverage", type: "int256" },
1237
+ ],
1238
+ name: "LiquidatablePosition",
1239
+ type: "error",
1240
+ },
1241
+ {
1242
+ inputs: [
1243
+ { internalType: "address", name: "fromMarketLongToken", type: "address" },
1244
+ { internalType: "address", name: "toMarketLongToken", type: "address" },
1245
+ ],
1246
+ name: "LongTokensAreNotEqual",
1247
+ type: "error",
1248
+ },
1249
+ {
1250
+ inputs: [
1251
+ { internalType: "bytes32", name: "salt", type: "bytes32" },
1252
+ { internalType: "address", name: "existingMarketAddress", type: "address" },
1253
+ ],
1254
+ name: "MarketAlreadyExists",
1255
+ type: "error",
1256
+ },
1257
+ { inputs: [{ internalType: "address", name: "key", type: "address" }], name: "MarketNotFound", type: "error" },
1258
+ {
1259
+ inputs: [
1260
+ { internalType: "uint256", name: "index", type: "uint256" },
1261
+ { internalType: "string", name: "label", type: "string" },
1262
+ ],
1263
+ name: "MaskIndexOutOfBounds",
1264
+ type: "error",
1265
+ },
1266
+ {
1267
+ inputs: [
1268
+ { internalType: "uint256", name: "count", type: "uint256" },
1269
+ { internalType: "uint256", name: "maxAutoCancelOrders", type: "uint256" },
1270
+ ],
1271
+ name: "MaxAutoCancelOrdersExceeded",
1272
+ type: "error",
1273
+ },
1274
+ {
1275
+ inputs: [
1276
+ { internalType: "uint256", name: "priceTimestamp", type: "uint256" },
1277
+ { internalType: "uint256", name: "buybackMaxPriceAge", type: "uint256" },
1278
+ { internalType: "uint256", name: "currentTimestamp", type: "uint256" },
1279
+ ],
1280
+ name: "MaxBuybackPriceAgeExceeded",
1281
+ type: "error",
1282
+ },
1283
+ {
1284
+ inputs: [
1285
+ { internalType: "uint256", name: "callbackGasLimit", type: "uint256" },
1286
+ { internalType: "uint256", name: "maxCallbackGasLimit", type: "uint256" },
1287
+ ],
1288
+ name: "MaxCallbackGasLimitExceeded",
1289
+ type: "error",
1290
+ },
1291
+ {
1292
+ inputs: [
1293
+ { internalType: "uint256", name: "dataLength", type: "uint256" },
1294
+ { internalType: "uint256", name: "maxDataLength", type: "uint256" },
1295
+ ],
1296
+ name: "MaxDataListLengthExceeded",
1297
+ type: "error",
1298
+ },
1299
+ {
1300
+ inputs: [
1301
+ { internalType: "uint256", name: "maxFundingFactorPerSecond", type: "uint256" },
1302
+ { internalType: "uint256", name: "limit", type: "uint256" },
1303
+ ],
1304
+ name: "MaxFundingFactorPerSecondLimitExceeded",
1305
+ type: "error",
1306
+ },
1307
+ {
1308
+ inputs: [
1309
+ { internalType: "uint256", name: "poolUsd", type: "uint256" },
1310
+ { internalType: "uint256", name: "maxLendableUsd", type: "uint256" },
1311
+ { internalType: "uint256", name: "lentUsd", type: "uint256" },
1312
+ ],
1313
+ name: "MaxLendableFactorForWithdrawalsExceeded",
1314
+ type: "error",
1315
+ },
1316
+ {
1317
+ inputs: [
1318
+ { internalType: "uint256", name: "openInterest", type: "uint256" },
1319
+ { internalType: "uint256", name: "maxOpenInterest", type: "uint256" },
1320
+ ],
1321
+ name: "MaxOpenInterestExceeded",
1322
+ type: "error",
1323
+ },
1324
+ {
1325
+ inputs: [
1326
+ { internalType: "uint256", name: "range", type: "uint256" },
1327
+ { internalType: "uint256", name: "maxRange", type: "uint256" },
1328
+ ],
1329
+ name: "MaxOracleTimestampRangeExceeded",
1330
+ type: "error",
1331
+ },
1332
+ {
1333
+ inputs: [
1334
+ { internalType: "uint256", name: "poolAmount", type: "uint256" },
1335
+ { internalType: "uint256", name: "maxPoolAmount", type: "uint256" },
1336
+ ],
1337
+ name: "MaxPoolAmountExceeded",
1338
+ type: "error",
1339
+ },
1340
+ {
1341
+ inputs: [
1342
+ { internalType: "uint256", name: "poolUsd", type: "uint256" },
1343
+ { internalType: "uint256", name: "maxPoolUsdForDeposit", type: "uint256" },
1344
+ ],
1345
+ name: "MaxPoolUsdForDepositExceeded",
1346
+ type: "error",
1347
+ },
1348
+ {
1349
+ inputs: [
1350
+ { internalType: "uint256", name: "oracleTimestamp", type: "uint256" },
1351
+ { internalType: "uint256", name: "currentTimestamp", type: "uint256" },
1352
+ ],
1353
+ name: "MaxPriceAgeExceeded",
1354
+ type: "error",
1355
+ },
1356
+ {
1357
+ inputs: [
1358
+ { internalType: "address", name: "token", type: "address" },
1359
+ { internalType: "uint256", name: "price", type: "uint256" },
1360
+ { internalType: "uint256", name: "refPrice", type: "uint256" },
1361
+ { internalType: "uint256", name: "maxRefPriceDeviationFactor", type: "uint256" },
1362
+ ],
1363
+ name: "MaxRefPriceDeviationExceeded",
1364
+ type: "error",
1365
+ },
1366
+ {
1367
+ inputs: [
1368
+ { internalType: "uint256", name: "feeUsd", type: "uint256" },
1369
+ { internalType: "uint256", name: "maxFeeUsd", type: "uint256" },
1370
+ ],
1371
+ name: "MaxRelayFeeSwapForSubaccountExceeded",
1372
+ type: "error",
1373
+ },
1374
+ {
1375
+ inputs: [
1376
+ { internalType: "address", name: "account", type: "address" },
1377
+ { internalType: "address", name: "subaccount", type: "address" },
1378
+ { internalType: "uint256", name: "count", type: "uint256" },
1379
+ { internalType: "uint256", name: "maxCount", type: "uint256" },
1380
+ ],
1381
+ name: "MaxSubaccountActionCountExceeded",
1382
+ type: "error",
1383
+ },
1384
+ {
1385
+ inputs: [
1386
+ { internalType: "uint256", name: "swapPathLengh", type: "uint256" },
1387
+ { internalType: "uint256", name: "maxSwapPathLength", type: "uint256" },
1388
+ ],
1389
+ name: "MaxSwapPathLengthExceeded",
1390
+ type: "error",
1391
+ },
1392
+ {
1393
+ inputs: [{ internalType: "uint256", name: "timelockDelay", type: "uint256" }],
1394
+ name: "MaxTimelockDelayExceeded",
1395
+ type: "error",
1396
+ },
1397
+ {
1398
+ inputs: [
1399
+ { internalType: "uint256", name: "totalCallbackGasLimit", type: "uint256" },
1400
+ { internalType: "uint256", name: "maxTotalCallbackGasLimit", type: "uint256" },
1401
+ ],
1402
+ name: "MaxTotalCallbackGasLimitForAutoCancelOrdersExceeded",
1403
+ type: "error",
1404
+ },
1405
+ {
1406
+ inputs: [
1407
+ { internalType: "address", name: "token", type: "address" },
1408
+ { internalType: "uint256", name: "totalAmount", type: "uint256" },
1409
+ { internalType: "uint256", name: "maxTotalAmount", type: "uint256" },
1410
+ ],
1411
+ name: "MaxTotalContributorTokenAmountExceeded",
1412
+ type: "error",
1413
+ },
1414
+ {
1415
+ inputs: [{ internalType: "uint256", name: "interval", type: "uint256" }],
1416
+ name: "MinContributorPaymentIntervalBelowAllowedRange",
1417
+ type: "error",
1418
+ },
1419
+ {
1420
+ inputs: [{ internalType: "uint256", name: "minPaymentInterval", type: "uint256" }],
1421
+ name: "MinContributorPaymentIntervalNotYetPassed",
1422
+ type: "error",
1423
+ },
1424
+ {
1425
+ inputs: [
1426
+ { internalType: "uint256", name: "received", type: "uint256" },
1427
+ { internalType: "uint256", name: "expected", type: "uint256" },
1428
+ ],
1429
+ name: "MinGlvTokens",
1430
+ type: "error",
1431
+ },
1432
+ {
1433
+ inputs: [
1434
+ { internalType: "uint256", name: "received", type: "uint256" },
1435
+ { internalType: "uint256", name: "expected", type: "uint256" },
1436
+ ],
1437
+ name: "MinLongTokens",
1438
+ type: "error",
1439
+ },
1440
+ {
1441
+ inputs: [
1442
+ { internalType: "uint256", name: "received", type: "uint256" },
1443
+ { internalType: "uint256", name: "expected", type: "uint256" },
1444
+ ],
1445
+ name: "MinMarketTokens",
1446
+ type: "error",
1447
+ },
1448
+ {
1449
+ inputs: [
1450
+ { internalType: "uint256", name: "positionSizeInUsd", type: "uint256" },
1451
+ { internalType: "uint256", name: "minPositionSizeUsd", type: "uint256" },
1452
+ ],
1453
+ name: "MinPositionSize",
1454
+ type: "error",
1455
+ },
1456
+ {
1457
+ inputs: [
1458
+ { internalType: "uint256", name: "received", type: "uint256" },
1459
+ { internalType: "uint256", name: "expected", type: "uint256" },
1460
+ ],
1461
+ name: "MinShortTokens",
1462
+ type: "error",
1463
+ },
1464
+ {
1465
+ inputs: [
1466
+ { internalType: "int256", name: "executionPrice", type: "int256" },
1467
+ { internalType: "uint256", name: "price", type: "uint256" },
1468
+ { internalType: "uint256", name: "positionSizeInUsd", type: "uint256" },
1469
+ { internalType: "int256", name: "priceImpactUsd", type: "int256" },
1470
+ { internalType: "uint256", name: "sizeDeltaUsd", type: "uint256" },
1471
+ ],
1472
+ name: "NegativeExecutionPrice",
1473
+ type: "error",
1474
+ },
1475
+ {
1476
+ inputs: [{ internalType: "address", name: "provider", type: "address" }],
1477
+ name: "NonAtomicOracleProvider",
1478
+ type: "error",
1479
+ },
1480
+ { inputs: [], name: "NonEmptyExternalCallsForSubaccountOrder", type: "error" },
1481
+ {
1482
+ inputs: [{ internalType: "uint256", name: "tokensWithPricesLength", type: "uint256" }],
1483
+ name: "NonEmptyTokensWithPrices",
1484
+ type: "error",
1485
+ },
1486
+ {
1487
+ inputs: [{ internalType: "address", name: "market", type: "address" }],
1488
+ name: "OpenInterestCannotBeUpdatedForSwapOnlyMarket",
1489
+ type: "error",
1490
+ },
1491
+ { inputs: [], name: "OraclePriceOutdated", type: "error" },
1492
+ {
1493
+ inputs: [
1494
+ { internalType: "address", name: "oracle", type: "address" },
1495
+ { internalType: "address", name: "token", type: "address" },
1496
+ ],
1497
+ name: "OracleProviderAlreadyExistsForToken",
1498
+ type: "error",
1499
+ },
1500
+ {
1501
+ inputs: [
1502
+ { internalType: "address", name: "token", type: "address" },
1503
+ { internalType: "address", name: "provider", type: "address" },
1504
+ ],
1505
+ name: "OracleProviderMinChangeDelayNotYetPassed",
1506
+ type: "error",
1507
+ },
1508
+ {
1509
+ inputs: [
1510
+ { internalType: "uint256", name: "maxOracleTimestamp", type: "uint256" },
1511
+ { internalType: "uint256", name: "requestTimestamp", type: "uint256" },
1512
+ { internalType: "uint256", name: "requestExpirationTime", type: "uint256" },
1513
+ ],
1514
+ name: "OracleTimestampsAreLargerThanRequestExpirationTime",
1515
+ type: "error",
1516
+ },
1517
+ {
1518
+ inputs: [
1519
+ { internalType: "uint256", name: "minOracleTimestamp", type: "uint256" },
1520
+ { internalType: "uint256", name: "expectedTimestamp", type: "uint256" },
1521
+ ],
1522
+ name: "OracleTimestampsAreSmallerThanRequired",
1523
+ type: "error",
1524
+ },
1525
+ { inputs: [], name: "OrderAlreadyFrozen", type: "error" },
1526
+ { inputs: [{ internalType: "bytes32", name: "key", type: "bytes32" }], name: "OrderNotFound", type: "error" },
1527
+ {
1528
+ inputs: [
1529
+ { internalType: "uint256", name: "price", type: "uint256" },
1530
+ { internalType: "uint256", name: "acceptablePrice", type: "uint256" },
1531
+ ],
1532
+ name: "OrderNotFulfillableAtAcceptablePrice",
1533
+ type: "error",
1534
+ },
1535
+ {
1536
+ inputs: [{ internalType: "uint256", name: "orderType", type: "uint256" }],
1537
+ name: "OrderNotUpdatable",
1538
+ type: "error",
1539
+ },
1540
+ {
1541
+ inputs: [{ internalType: "uint256", name: "orderType", type: "uint256" }],
1542
+ name: "OrderTypeCannotBeCreated",
1543
+ type: "error",
1544
+ },
1545
+ {
1546
+ inputs: [
1547
+ { internalType: "uint256", name: "validFromTime", type: "uint256" },
1548
+ { internalType: "uint256", name: "currentTimestamp", type: "uint256" },
1549
+ ],
1550
+ name: "OrderValidFromTimeNotReached",
1551
+ type: "error",
1552
+ },
1553
+ {
1554
+ inputs: [
1555
+ { internalType: "int256", name: "pnlToPoolFactor", type: "int256" },
1556
+ { internalType: "uint256", name: "maxPnlFactor", type: "uint256" },
1557
+ ],
1558
+ name: "PnlFactorExceededForLongs",
1559
+ type: "error",
1560
+ },
1561
+ {
1562
+ inputs: [
1563
+ { internalType: "int256", name: "pnlToPoolFactor", type: "int256" },
1564
+ { internalType: "uint256", name: "maxPnlFactor", type: "uint256" },
1565
+ ],
1566
+ name: "PnlFactorExceededForShorts",
1567
+ type: "error",
1568
+ },
1569
+ {
1570
+ inputs: [
1571
+ { internalType: "int256", name: "nextPnlToPoolFactor", type: "int256" },
1572
+ { internalType: "uint256", name: "minPnlFactorForAdl", type: "uint256" },
1573
+ ],
1574
+ name: "PnlOvercorrected",
1575
+ type: "error",
1576
+ },
1577
+ { inputs: [{ internalType: "bytes32", name: "key", type: "bytes32" }], name: "PositionNotFound", type: "error" },
1578
+ {
1579
+ inputs: [
1580
+ { internalType: "string", name: "reason", type: "string" },
1581
+ { internalType: "int256", name: "remainingCollateralUsd", type: "int256" },
1582
+ { internalType: "int256", name: "minCollateralUsd", type: "int256" },
1583
+ { internalType: "int256", name: "minCollateralUsdForLeverage", type: "int256" },
1584
+ ],
1585
+ name: "PositionShouldNotBeLiquidated",
1586
+ type: "error",
1587
+ },
1588
+ {
1589
+ inputs: [
1590
+ { internalType: "address", name: "token", type: "address" },
1591
+ { internalType: "uint256", name: "minPrice", type: "uint256" },
1592
+ { internalType: "uint256", name: "maxPrice", type: "uint256" },
1593
+ ],
1594
+ name: "PriceAlreadySet",
1595
+ type: "error",
1596
+ },
1597
+ {
1598
+ inputs: [{ internalType: "address", name: "token", type: "address" }],
1599
+ name: "PriceFeedAlreadyExistsForToken",
1600
+ type: "error",
1601
+ },
1602
+ {
1603
+ inputs: [
1604
+ { internalType: "int256", name: "priceImpactUsd", type: "int256" },
1605
+ { internalType: "uint256", name: "sizeDeltaUsd", type: "uint256" },
1606
+ ],
1607
+ name: "PriceImpactLargerThanOrderSize",
1608
+ type: "error",
1609
+ },
1610
+ {
1611
+ inputs: [
1612
+ { internalType: "uint256", name: "lentAmount", type: "uint256" },
1613
+ { internalType: "uint256", name: "totalReductionAmount", type: "uint256" },
1614
+ ],
1615
+ name: "ReductionExceedsLentAmount",
1616
+ type: "error",
1617
+ },
1618
+ {
1619
+ inputs: [{ internalType: "uint256", name: "calldataLength", type: "uint256" }],
1620
+ name: "RelayCalldataTooLong",
1621
+ type: "error",
1622
+ },
1623
+ { inputs: [], name: "RelayEmptyBatch", type: "error" },
1624
+ {
1625
+ inputs: [
1626
+ { internalType: "uint256", name: "requestAge", type: "uint256" },
1627
+ { internalType: "uint256", name: "requestExpirationAge", type: "uint256" },
1628
+ { internalType: "string", name: "requestType", type: "string" },
1629
+ ],
1630
+ name: "RequestNotYetCancellable",
1631
+ type: "error",
1632
+ },
1633
+ {
1634
+ inputs: [{ internalType: "address", name: "receiver", type: "address" }],
1635
+ name: "SelfTransferNotSupported",
1636
+ type: "error",
1637
+ },
1638
+ { inputs: [], name: "SequencerDown", type: "error" },
1639
+ {
1640
+ inputs: [
1641
+ { internalType: "uint256", name: "timeSinceUp", type: "uint256" },
1642
+ { internalType: "uint256", name: "sequencerGraceDuration", type: "uint256" },
1643
+ ],
1644
+ name: "SequencerGraceDurationNotYetPassed",
1645
+ type: "error",
1646
+ },
1647
+ {
1648
+ inputs: [{ internalType: "address", name: "market", type: "address" }],
1649
+ name: "ShiftFromAndToMarketAreEqual",
1650
+ type: "error",
1651
+ },
1652
+ { inputs: [{ internalType: "bytes32", name: "key", type: "bytes32" }], name: "ShiftNotFound", type: "error" },
1653
+ {
1654
+ inputs: [
1655
+ { internalType: "address", name: "fromMarketLongToken", type: "address" },
1656
+ { internalType: "address", name: "toMarketLongToken", type: "address" },
1657
+ ],
1658
+ name: "ShortTokensAreNotEqual",
1659
+ type: "error",
1660
+ },
1661
+ {
1662
+ inputs: [{ internalType: "uint256", name: "signalTime", type: "uint256" }],
1663
+ name: "SignalTimeNotYetPassed",
1664
+ type: "error",
1665
+ },
1666
+ {
1667
+ inputs: [
1668
+ { internalType: "uint256", name: "currentTimestamp", type: "uint256" },
1669
+ { internalType: "uint256", name: "deadline", type: "uint256" },
1670
+ ],
1671
+ name: "SubaccountApprovalDeadlinePassed",
1672
+ type: "error",
1673
+ },
1674
+ {
1675
+ inputs: [
1676
+ { internalType: "address", name: "account", type: "address" },
1677
+ { internalType: "address", name: "subaccount", type: "address" },
1678
+ { internalType: "uint256", name: "deadline", type: "uint256" },
1679
+ { internalType: "uint256", name: "currentTimestamp", type: "uint256" },
1680
+ ],
1681
+ name: "SubaccountApprovalExpired",
1682
+ type: "error",
1683
+ },
1684
+ {
1685
+ inputs: [{ internalType: "bytes32", name: "integrationId", type: "bytes32" }],
1686
+ name: "SubaccountIntegrationIdDisabled",
1687
+ type: "error",
1688
+ },
1689
+ {
1690
+ inputs: [
1691
+ { internalType: "address", name: "account", type: "address" },
1692
+ { internalType: "address", name: "subaccount", type: "address" },
1693
+ ],
1694
+ name: "SubaccountNotAuthorized",
1695
+ type: "error",
1696
+ },
1697
+ {
1698
+ inputs: [
1699
+ { internalType: "uint256", name: "amountAfterFees", type: "uint256" },
1700
+ { internalType: "int256", name: "negativeImpactAmount", type: "int256" },
1701
+ ],
1702
+ name: "SwapPriceImpactExceedsAmountIn",
1703
+ type: "error",
1704
+ },
1705
+ {
1706
+ inputs: [
1707
+ { internalType: "uint256", name: "longTokenSwapPathLength", type: "uint256" },
1708
+ { internalType: "uint256", name: "shortTokenSwapPathLength", type: "uint256" },
1709
+ ],
1710
+ name: "SwapsNotAllowedForAtomicWithdrawal",
1711
+ type: "error",
1712
+ },
1713
+ {
1714
+ inputs: [
1715
+ { internalType: "uint256", name: "marketsLength", type: "uint256" },
1716
+ { internalType: "uint256", name: "parametersLength", type: "uint256" },
1717
+ ],
1718
+ name: "SyncConfigInvalidInputLengths",
1719
+ type: "error",
1720
+ },
1721
+ {
1722
+ inputs: [
1723
+ { internalType: "address", name: "market", type: "address" },
1724
+ { internalType: "address", name: "marketFromData", type: "address" },
1725
+ ],
1726
+ name: "SyncConfigInvalidMarketFromData",
1727
+ type: "error",
1728
+ },
1729
+ {
1730
+ inputs: [{ internalType: "address", name: "market", type: "address" }],
1731
+ name: "SyncConfigUpdatesDisabledForMarket",
1732
+ type: "error",
1733
+ },
1734
+ {
1735
+ inputs: [
1736
+ { internalType: "address", name: "market", type: "address" },
1737
+ { internalType: "string", name: "parameter", type: "string" },
1738
+ ],
1739
+ name: "SyncConfigUpdatesDisabledForMarketParameter",
1740
+ type: "error",
1741
+ },
1742
+ {
1743
+ inputs: [{ internalType: "string", name: "parameter", type: "string" }],
1744
+ name: "SyncConfigUpdatesDisabledForParameter",
1745
+ type: "error",
1746
+ },
1747
+ { inputs: [], name: "ThereMustBeAtLeastOneRoleAdmin", type: "error" },
1748
+ { inputs: [], name: "ThereMustBeAtLeastOneTimelockMultiSig", type: "error" },
1749
+ { inputs: [], name: "TokenPermitsNotAllowedForMultichain", type: "error" },
1750
+ {
1751
+ inputs: [
1752
+ { internalType: "address", name: "token", type: "address" },
1753
+ { internalType: "address", name: "receiver", type: "address" },
1754
+ { internalType: "uint256", name: "amount", type: "uint256" },
1755
+ ],
1756
+ name: "TokenTransferError",
1757
+ type: "error",
1758
+ },
1759
+ {
1760
+ inputs: [{ internalType: "uint256", name: "length", type: "uint256" }],
1761
+ name: "Uint256AsBytesLengthExceeds32Bytes",
1762
+ type: "error",
1763
+ },
1764
+ { inputs: [], name: "UnableToGetBorrowingFactorEmptyPoolUsd", type: "error" },
1765
+ {
1766
+ inputs: [
1767
+ { internalType: "address", name: "token", type: "address" },
1768
+ { internalType: "address", name: "market", type: "address" },
1769
+ ],
1770
+ name: "UnableToGetCachedTokenPrice",
1771
+ type: "error",
1772
+ },
1773
+ { inputs: [], name: "UnableToGetFundingFactorEmptyOpenInterest", type: "error" },
1774
+ {
1775
+ inputs: [
1776
+ { internalType: "address", name: "inputToken", type: "address" },
1777
+ { internalType: "address", name: "market", type: "address" },
1778
+ ],
1779
+ name: "UnableToGetOppositeToken",
1780
+ type: "error",
1781
+ },
1782
+ { inputs: [], name: "UnableToPayOrderFee", type: "error" },
1783
+ { inputs: [], name: "UnableToPayOrderFeeFromCollateral", type: "error" },
1784
+ {
1785
+ inputs: [{ internalType: "int256", name: "estimatedRemainingCollateralUsd", type: "int256" }],
1786
+ name: "UnableToWithdrawCollateral",
1787
+ type: "error",
1788
+ },
1789
+ {
1790
+ inputs: [
1791
+ { internalType: "address", name: "msgSender", type: "address" },
1792
+ { internalType: "string", name: "role", type: "string" },
1793
+ ],
1794
+ name: "Unauthorized",
1795
+ type: "error",
1796
+ },
1797
+ {
1798
+ inputs: [
1799
+ { internalType: "uint256", name: "positionBorrowingFactor", type: "uint256" },
1800
+ { internalType: "uint256", name: "cumulativeBorrowingFactor", type: "uint256" },
1801
+ ],
1802
+ name: "UnexpectedBorrowingFactor",
1803
+ type: "error",
1804
+ },
1805
+ { inputs: [], name: "UnexpectedMarket", type: "error" },
1806
+ {
1807
+ inputs: [{ internalType: "int256", name: "poolValue", type: "int256" }],
1808
+ name: "UnexpectedPoolValue",
1809
+ type: "error",
1810
+ },
1811
+ { inputs: [], name: "UnexpectedPositionState", type: "error" },
1812
+ {
1813
+ inputs: [
1814
+ { internalType: "address", name: "feeToken", type: "address" },
1815
+ { internalType: "address", name: "expectedFeeToken", type: "address" },
1816
+ ],
1817
+ name: "UnexpectedRelayFeeToken",
1818
+ type: "error",
1819
+ },
1820
+ {
1821
+ inputs: [
1822
+ { internalType: "address", name: "feeToken", type: "address" },
1823
+ { internalType: "address", name: "expectedFeeToken", type: "address" },
1824
+ ],
1825
+ name: "UnexpectedRelayFeeTokenAfterSwap",
1826
+ type: "error",
1827
+ },
1828
+ {
1829
+ inputs: [
1830
+ { internalType: "address", name: "token", type: "address" },
1831
+ { internalType: "address", name: "market", type: "address" },
1832
+ ],
1833
+ name: "UnexpectedTokenForVirtualInventory",
1834
+ type: "error",
1835
+ },
1836
+ {
1837
+ inputs: [{ internalType: "uint256", name: "orderType", type: "uint256" }],
1838
+ name: "UnexpectedValidFromTime",
1839
+ type: "error",
1840
+ },
1841
+ {
1842
+ inputs: [{ internalType: "uint256", name: "orderType", type: "uint256" }],
1843
+ name: "UnsupportedOrderType",
1844
+ type: "error",
1845
+ },
1846
+ {
1847
+ inputs: [{ internalType: "uint256", name: "orderType", type: "uint256" }],
1848
+ name: "UnsupportedOrderTypeForAutoCancellation",
1849
+ type: "error",
1850
+ },
1851
+ {
1852
+ inputs: [
1853
+ { internalType: "address", name: "feeToken", type: "address" },
1854
+ { internalType: "address", name: "expectedFeeToken", type: "address" },
1855
+ ],
1856
+ name: "UnsupportedRelayFeeToken",
1857
+ type: "error",
1858
+ },
1859
+ {
1860
+ inputs: [
1861
+ { internalType: "int256", name: "usdDelta", type: "int256" },
1862
+ { internalType: "uint256", name: "longOpenInterest", type: "uint256" },
1863
+ ],
1864
+ name: "UsdDeltaExceedsLongOpenInterest",
1865
+ type: "error",
1866
+ },
1867
+ {
1868
+ inputs: [
1869
+ { internalType: "int256", name: "usdDelta", type: "int256" },
1870
+ { internalType: "uint256", name: "poolUsd", type: "uint256" },
1871
+ ],
1872
+ name: "UsdDeltaExceedsPoolValue",
1873
+ type: "error",
1874
+ },
1875
+ {
1876
+ inputs: [
1877
+ { internalType: "int256", name: "usdDelta", type: "int256" },
1878
+ { internalType: "uint256", name: "shortOpenInterest", type: "uint256" },
1879
+ ],
1880
+ name: "UsdDeltaExceedsShortOpenInterest",
1881
+ type: "error",
1882
+ },
1883
+ { inputs: [{ internalType: "bytes32", name: "key", type: "bytes32" }], name: "WithdrawalNotFound", type: "error" },
1884
+ ];