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