@gmx-io/sdk 1.5.0-alpha-8 → 1.5.0-alpha-9

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 (67) hide show
  1. package/build/cjs/src/clients/v1/testUtil.js +1 -1
  2. package/build/cjs/src/clients/v2/index.js +6 -2
  3. package/build/cjs/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +34 -0
  4. package/build/cjs/src/codegen/prebuilt/hashedMarketConfigKeys.json +230 -0
  5. package/build/cjs/src/codegen/prebuilt/hashedMarketValuesKeys.json +62 -0
  6. package/build/cjs/src/configs/__tests__/tokens.spec.js +1 -0
  7. package/build/cjs/src/configs/api.js +4 -3
  8. package/build/cjs/src/configs/batch.js +13 -0
  9. package/build/cjs/src/configs/chainIds.js +2 -1
  10. package/build/cjs/src/configs/chains.js +48 -2
  11. package/build/cjs/src/configs/contracts.js +67 -0
  12. package/build/cjs/src/configs/express.js +2 -0
  13. package/build/cjs/src/configs/gasLimits.js +7 -0
  14. package/build/cjs/src/configs/markets.js +30 -0
  15. package/build/cjs/src/configs/oracleKeeper.js +2 -0
  16. package/build/cjs/src/configs/tokens.js +89 -1
  17. package/build/cjs/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +2 -0
  18. package/build/cjs/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +2 -0
  19. package/build/cjs/src/utils/__tests__/orderTransactions/swapOrders.spec.js +1 -0
  20. package/build/cjs/src/utils/__tests__/uiFeeReceiver.spec.js +24 -0
  21. package/build/cjs/src/utils/errors/parseError.js +3 -0
  22. package/build/cjs/src/utils/staking/api.js +11 -0
  23. package/build/cjs/src/utils/staking/types.js +2 -0
  24. package/build/cjs/src/utils/trade/decrease.js +131 -6
  25. package/build/cjs/src/utils/trade/increase.js +2 -6
  26. package/build/cjs/src/utils/twap/uiFeeReceiver.js +29 -13
  27. package/build/esm/src/clients/v1/testUtil.js +1 -1
  28. package/build/esm/src/clients/v2/index.js +4 -0
  29. package/build/esm/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +34 -0
  30. package/build/esm/src/codegen/prebuilt/hashedMarketConfigKeys.json +230 -0
  31. package/build/esm/src/codegen/prebuilt/hashedMarketValuesKeys.json +62 -0
  32. package/build/esm/src/configs/__tests__/tokens.spec.js +2 -1
  33. package/build/esm/src/configs/api.js +5 -4
  34. package/build/esm/src/configs/batch.js +14 -1
  35. package/build/esm/src/configs/chainIds.js +1 -0
  36. package/build/esm/src/configs/chains.js +48 -3
  37. package/build/esm/src/configs/contracts.js +68 -1
  38. package/build/esm/src/configs/express.js +3 -1
  39. package/build/esm/src/configs/gasLimits.js +8 -1
  40. package/build/esm/src/configs/markets.js +31 -1
  41. package/build/esm/src/configs/oracleKeeper.js +3 -1
  42. package/build/esm/src/configs/tokens.js +90 -2
  43. package/build/esm/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +2 -0
  44. package/build/esm/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +2 -0
  45. package/build/esm/src/utils/__tests__/orderTransactions/swapOrders.spec.js +1 -0
  46. package/build/esm/src/utils/__tests__/uiFeeReceiver.spec.js +25 -1
  47. package/build/esm/src/utils/errors/parseError.js +3 -0
  48. package/build/esm/src/utils/staking/api.js +7 -0
  49. package/build/esm/src/utils/staking/types.js +1 -0
  50. package/build/esm/src/utils/trade/decrease.js +127 -7
  51. package/build/esm/src/utils/trade/increase.js +3 -7
  52. package/build/esm/src/utils/twap/uiFeeReceiver.js +27 -12
  53. package/build/types/src/clients/v1/index.d.ts +1 -1
  54. package/build/types/src/clients/v1/modules/base.d.ts +1 -1
  55. package/build/types/src/clients/v1/multicall.d.ts +1 -1
  56. package/build/types/src/clients/v2/index.d.ts +5 -0
  57. package/build/types/src/codegen/prebuilt/index.d.ts +326 -0
  58. package/build/types/src/configs/chainIds.d.ts +1 -0
  59. package/build/types/src/configs/chains.d.ts +26 -6
  60. package/build/types/src/configs/contracts.d.ts +64 -0
  61. package/build/types/src/utils/errors/parseError.d.ts +3 -0
  62. package/build/types/src/utils/staking/api.d.ts +7 -0
  63. package/build/types/src/utils/staking/types.d.ts +14 -0
  64. package/build/types/src/utils/trade/decrease.d.ts +41 -2
  65. package/build/types/src/utils/trade/types.d.ts +8 -0
  66. package/build/types/src/utils/twap/uiFeeReceiver.d.ts +9 -6
  67. package/package.json +1 -1
@@ -17,6 +17,6 @@ exports.arbitrumSdkConfig = {
17
17
  oracleUrl: "https://arbitrum-api.gmxinfra.io",
18
18
  rpcUrl: "https://arb1.arbitrum.io/rpc",
19
19
  walletClient: client,
20
- subsquidUrl: "https://gmx.squids.live/gmx-synthetics-arbitrum@648c88/api/graphql",
20
+ subsquidUrl: "https://gmx.squids.live/gmx-synthetics-arbitrum:prod/api/graphql",
21
21
  };
22
22
  exports.arbitrumSdk = new index_1.GmxSdk(exports.arbitrumSdkConfig);
@@ -11,7 +11,8 @@ const api_6 = require("../../utils/performance/api");
11
11
  const api_7 = require("../../utils/positions/api");
12
12
  const api_8 = require("../../utils/prices/api");
13
13
  const api_9 = require("../../utils/rates/api");
14
- const api_10 = require("../../utils/tokens/api");
14
+ const api_10 = require("../../utils/staking/api");
15
+ const api_11 = require("../../utils/tokens/api");
15
16
  class GmxApiSdk {
16
17
  constructor({ chainId }) {
17
18
  const apiUrl = (0, api_1.getApiUrl)(chainId);
@@ -36,7 +37,7 @@ class GmxApiSdk {
36
37
  return (0, api_3.fetchApiTokensData)(this.ctx);
37
38
  }
38
39
  fetchTokens() {
39
- return (0, api_10.fetchApiTokens)(this.ctx);
40
+ return (0, api_11.fetchApiTokens)(this.ctx);
40
41
  }
41
42
  fetchPositionsInfo(params) {
42
43
  return (0, api_7.fetchApiPositionsInfo)(this.ctx, params);
@@ -62,5 +63,8 @@ class GmxApiSdk {
62
63
  fetchPerformanceSnapshots(params) {
63
64
  return (0, api_6.fetchApiPerformanceSnapshots)(this.ctx, params);
64
65
  }
66
+ fetchStakingPower(params) {
67
+ return (0, api_10.fetchApiStakingPower)(this.ctx, params);
68
+ }
65
69
  }
66
70
  exports.GmxApiSdk = GmxApiSdk;
@@ -25,6 +25,40 @@
25
25
  "aboveOptimalUsageBorrowingFactorShort": "0x9e1a14e48896d7b69cbcd1632d3dd4061324a789f9be86617408fe12ec5700e6"
26
26
  }
27
27
  },
28
+ "4326": {
29
+ "0x31EdCc52bE2Fa55Ba68f50409F9e6b7d9EbF3D59": {
30
+ "optimalUsageFactorLong": "0x4ea5d5fdfc9198f1c2ad95fbc8cbb3915dc1304e3908b35f49beaea1e305935d",
31
+ "optimalUsageFactorShort": "0x31a4ea527935c832a446cf9ec290a3b633e72b9dc23e058f606920b4b52e3af8",
32
+ "baseBorrowingFactorLong": "0x0affce66e89f1b584a7e72b0ff6014d583349aefb23bab5c48d636adc07b425b",
33
+ "baseBorrowingFactorShort": "0x39dbc4639a28bf9b66490bf1530953da9977ac3b331475a2b16814c5a50f76b9",
34
+ "aboveOptimalUsageBorrowingFactorLong": "0x322f1590bbf69909e58b7040ed99e4154ccbb77e91ec7ec0d3031f340fcf7e0d",
35
+ "aboveOptimalUsageBorrowingFactorShort": "0x84550a4426160f0bd497bbe4b7dea44ba6ede56fbc063552c70c4c7dd1815340"
36
+ },
37
+ "0x9b1B72720f6D277F3b1e607a0c5fab1B300248b1": {
38
+ "optimalUsageFactorLong": "0xa5dfb096855671082ba925b3613530685b406e3c4b7fa29f98e43d4707f06d68",
39
+ "optimalUsageFactorShort": "0x07bac6af11544c80ad683b13fa2cb715094dce18e8c1d63acb50d038a6dbc265",
40
+ "baseBorrowingFactorLong": "0x9e09bbb7c39b779c617eb7ad12d467fc015a784e7eb217371231993a0c737110",
41
+ "baseBorrowingFactorShort": "0x2557e615d4065cb18930709ec0534f8ddaed68a2def4f655cd0585f2908efc80",
42
+ "aboveOptimalUsageBorrowingFactorLong": "0x64db36fb103f3403fbe698eaa7d9cded054668fb5c2c908bcfc799665253b32b",
43
+ "aboveOptimalUsageBorrowingFactorShort": "0x495935ab450721f09ab3c379258eef2bfd7a62e13eb7fd0d25359332d24e8c2c"
44
+ },
45
+ "0xe8E716F1cddfFD0698B86919D41A8228d701fEe9": {
46
+ "optimalUsageFactorLong": "0xd0d3e58be482605f96438a59083cf516dd9fa8bd0367381f84e0f042f8aa16dd",
47
+ "optimalUsageFactorShort": "0xfc6c1cae2083783ec7bab6c9e9803986bc434cf8a85706ecaab1a6a955ac6836",
48
+ "baseBorrowingFactorLong": "0xe7ed419893bfa74033a99bb4db929a74a70bf2c8d47775737443d13ef12d69af",
49
+ "baseBorrowingFactorShort": "0xba2903e21561635620a8531f9a67b13b5ab91b4e287cfe86730f018556ccfe11",
50
+ "aboveOptimalUsageBorrowingFactorLong": "0x7a6c2c5606edbf4ad6d99540c5788fc9bdc10e90e63a84e11c4129a2f04c8cf9",
51
+ "aboveOptimalUsageBorrowingFactorShort": "0xc6f8f13437ac5a034a7a93a8a4bfa46e8d83b49c61b45c01240003e491de9d72"
52
+ },
53
+ "0xc5c9B5E23810565763De41144741477eeCB25e2e": {
54
+ "optimalUsageFactorLong": "0x009bc89771e196346b3d41cf47c8234c6843f977392651e5a122511445fdc304",
55
+ "optimalUsageFactorShort": "0x522a6a2270cc21374e753b06f2df5dabe018d2135aa58d75bd64ab43b16dc98f",
56
+ "baseBorrowingFactorLong": "0xa31b390ddb98909cf5bd6218b4bd0a0affb55f69ea3c22a7a8015c702dddf025",
57
+ "baseBorrowingFactorShort": "0x6789ec24a6e628080ce7aa22ce18d49cae3f42af7055dec69879750470610e34",
58
+ "aboveOptimalUsageBorrowingFactorLong": "0x0480d6e58df7605f9634a97ef752af8271c32e1a347f0df555e7aa166031b002",
59
+ "aboveOptimalUsageBorrowingFactorShort": "0x49462b580dbab070f9a1cf4e7518286e155ed5aea7e97b4e8bd8b1bb521bf9e7"
60
+ }
61
+ },
28
62
  "42161": {
29
63
  "0x47c031236e19d024b42f8AE6780E44A573170703": {
30
64
  "optimalUsageFactorLong": "0x81cc37ff3833298b6114d8317fd6c5996dc7a8ab53fefd3edb9f415ca4267824",
@@ -172,6 +172,236 @@
172
172
  "virtualShortTokenId": "0xad11454a7b68db8683667df39c97a96eeae88909e5fb849428193697b0dc2492"
173
173
  }
174
174
  },
175
+ "4326": {
176
+ "0x31EdCc52bE2Fa55Ba68f50409F9e6b7d9EbF3D59": {
177
+ "isDisabled": "0xae8a6ed8d09718006334426f636339666ce7faefa60b8bd33c0fb49fb52b432f",
178
+ "maxLongPoolAmount": "0xa30942c9a7bc8b242df7fcfe4630fedc6b85cc511b571ba3e4fbd0cc7aa53d0f",
179
+ "maxShortPoolAmount": "0xa30942c9a7bc8b242df7fcfe4630fedc6b85cc511b571ba3e4fbd0cc7aa53d0f",
180
+ "maxLongPoolUsdForDeposit": "0xf85a55cd0210fc90dba34a48beca75f08082e7b4a4157b0ba722e5245346d3b8",
181
+ "maxShortPoolUsdForDeposit": "0xf85a55cd0210fc90dba34a48beca75f08082e7b4a4157b0ba722e5245346d3b8",
182
+ "reserveFactorLong": "0x51da817e12c6e1f18a361fcc32c232c62123cc5f6f6d7873ead67bc9b52f8054",
183
+ "reserveFactorShort": "0xf69d24d2392c8e82250c7e0d7a13f4ab144d224b5c173db35a6e70f3c0c0d87a",
184
+ "openInterestReserveFactorLong": "0xe43170e359b51cad1a35faaf7a297614be0a9179964498aba8a7af45166c9db0",
185
+ "openInterestReserveFactorShort": "0x88d96702ae669e2c9d05665bfb3070b5b6c08a674d5112f5cdc6459e5a48d2e7",
186
+ "maxOpenInterestLong": "0x096974f463abb58dfec519f43c776a72f094c11b61d4a68a579568d3bc1e04d0",
187
+ "maxOpenInterestShort": "0x6330e54a68eb05335a459b7ebd9966744ba72085617c4342b878907cb04e9b25",
188
+ "minPositionImpactPoolAmount": "0xee8966087676ee3118a4d3c5061268e56600d26a3816524a77c588443eca082d",
189
+ "positionImpactPoolDistributionRate": "0xf7712ae2d066eb874e96461d3fb5f35b8714cbdfc57b5b44be83145d563f7527",
190
+ "borrowingFactorLong": "0x3680f66f4799bd57a03af5df71623bf463aa70d25f2449c9b532e516f6dd497b",
191
+ "borrowingFactorShort": "0xeafd6f7fdf31c27459df837162a584e7d51afe3deb2baadc2025b8e4609f442b",
192
+ "borrowingExponentFactorLong": "0x7a87f0f48e6d340b5feb51604abcbbda0f7035d0fe05a951475b4ac82af11081",
193
+ "borrowingExponentFactorShort": "0xca959d4827809bbcf3b0551609e641a1b7816df279a3787d45008f3f9f97f3ad",
194
+ "fundingFactor": "0x798e3853314be07da25fd30c8d94a39d7257b392ce349ab75084d1994bdc55ea",
195
+ "fundingExponentFactor": "0x5a446c3df251d77d79ed872078c05e3efbb0df45ec6d13642af040e471abfcad",
196
+ "fundingIncreaseFactorPerSecond": "0x1588d8c818cd32410899b0d97329d71364cb66a0d3a5d32854c4cb86d6e7407f",
197
+ "fundingDecreaseFactorPerSecond": "0x02b497407443eceb6b8160a6f288693e26a007947ff0d546f39a031929e52cac",
198
+ "thresholdForStableFunding": "0x2298730d9c45436a4616c3a37a811614a31625e4a8309e9cc23b9bed510539eb",
199
+ "thresholdForDecreaseFunding": "0x754fedfbafa87925429b94a6ec993498a1ca6a48bdc553402ff625f50b4073d0",
200
+ "minFundingFactorPerSecond": "0x95926b8ae26d333ead36e0f57640ebee113585f46fa4dc5ad4be4d396701a8cd",
201
+ "maxFundingFactorPerSecond": "0x0b5533bff855d5d8ea29962e3cd15d3ffcb9883a72a1352318a3e48b10f8c56f",
202
+ "maxPnlFactorForTradersLong": "0xde04629d4430abe68488ae29384d4830dd1814828ac4c2bb61818067c9d0581e",
203
+ "maxPnlFactorForTradersShort": "0x92c70e80a1ab4e4c1742d6cf083d6184921a950bdcab49c2ee3e58c137a20a15",
204
+ "positionFeeFactorForBalanceWasImproved": "0x74b0741cf43d8fb875f4b1d45c9be7a1299d772c607521e8643c906dea98db9c",
205
+ "positionFeeFactorForBalanceWasNotImproved": "0xb89d100d5157ac19f524ef2626dbd87c2704bbe9910e83388be65c8841ed0d5c",
206
+ "positionImpactFactorPositive": "0xa26effddf188f70372e88d0892ec4c8d821ea8ca8c27c10548d7d10080a8d316",
207
+ "positionImpactFactorNegative": "0xbbb426963d3ddaed181f858f95b69d9acfc151d83831a1b5fe9d26178416b32f",
208
+ "maxPositionImpactFactorPositive": "0x72b76d1a1060cca1e6b3435cfb0966f749f08efa4012949d11e6a82a9e249188",
209
+ "maxPositionImpactFactorNegative": "0xa7decd3317279c2d59279b238baa87ef8a5ff93b018360917f691aaa24eed2dd",
210
+ "maxPositionImpactFactorForLiquidations": "0x9beac8618123cbd9a9d15eb5ad3b6b14ac9c1dbe6665c966187e90fe4989c821",
211
+ "maxLendableImpactFactor": "0x16a06b8defdc88d137100ebc6ac3b68c9432ab206045cff3ead57b45808a79c1",
212
+ "maxLendableImpactFactorForWithdrawals": "0xcc6e7382c94ffba6fd67fc372fc2b6a2c83a2bf4585dd5cb7aea60fc3700c9dd",
213
+ "maxLendableImpactUsd": "0x9c96d2580180cbea509c950e351a90b614c97e238291aff8167217426ba497c0",
214
+ "lentPositionImpactPoolAmount": "0xc423b882015e7e99d165659777ac9ab176fa18801cb7cd59f29525a046e62444",
215
+ "minCollateralFactor": "0x7299edf3b26663f748eb392415f4cf01b518fb2c0098860617636ffcc50e497a",
216
+ "minCollateralFactorForLiquidation": "0x8cccfb970dc5bcf447689e5052fc3a5d2ff60bb5b5e1290b67e75fe8cdcf6197",
217
+ "minCollateralFactorForOpenInterestLong": "0xb1b3a273e137ff8151249e9bbfa0fe0ccbc24a7db395799962559f3fc689317f",
218
+ "minCollateralFactorForOpenInterestShort": "0x3d2a054c6ae22db00830b7a66001cd0adcbaf84546e979d0300dc9292d00bd02",
219
+ "positionImpactExponentFactorPositive": "0xd569592850ba04ba787ebe82476ac3e299fe9097b198f753741e41d2d9158ce5",
220
+ "positionImpactExponentFactorNegative": "0xa2f13054cb18737a5fd6bf0ecab95a264d8177a01f62bcbdf0e7a406d8474093",
221
+ "swapFeeFactorForBalanceWasImproved": "0x20ead897df02220e8c083a8294be528d244002faa942e240c2d2c44460aaa360",
222
+ "swapFeeFactorForBalanceWasNotImproved": "0x72b8041240c5a25f82cd803520a17ccab15d0af1614fdf2f58dea9a22aa23834",
223
+ "atomicSwapFeeFactor": "0xd03530aa8216fff08f6583bff5f931533d943f74caf2a91a08bec2b9d50098e0",
224
+ "swapImpactFactorPositive": "0x9de69b1ccc587e1ed5c3e396fac5609cf8a8d9644e1409c9e0e56078854c1240",
225
+ "swapImpactFactorNegative": "0x55fe058f4229b78c4b839092377aa742334dad75470315b37071dab4287dc153",
226
+ "swapImpactExponentFactor": "0x74af0c05218ee7432ede7da966ff71bc8fa23ed20cf2f1da0d97bb0abc07f052",
227
+ "withdrawalFeeFactorBalanceWasImproved": "0xd7ea5f26490cc4e35570087f34c193a6de2da24ce1c027ea8e15e7a0894b42b1",
228
+ "withdrawalFeeFactorBalanceWasNotImproved": "0x4150b13d3345f3bdfddc545d2cd19a755f2a38efa6a625b43e6b1ef901fa03bc",
229
+ "virtualMarketId": "0x6beb3bce915f72cee28af17145ad036258aedf3e60ed9240109d39b45d6a07c5",
230
+ "virtualLongTokenId": "0x4dd17e45519b6398f395ed0297a67002668c720c17b5043a9623eec83970f300",
231
+ "virtualShortTokenId": "0x4dd17e45519b6398f395ed0297a67002668c720c17b5043a9623eec83970f300"
232
+ },
233
+ "0x9b1B72720f6D277F3b1e607a0c5fab1B300248b1": {
234
+ "isDisabled": "0xb61101a794164950150ac813609a44e7d0b32094b807d7ff53c08ab77f60dbf5",
235
+ "maxLongPoolAmount": "0x6f6943bb35b46f52c97d3581c5695bfe058c6946351b9be9a4f0b5fa05020ea9",
236
+ "maxShortPoolAmount": "0x6f6943bb35b46f52c97d3581c5695bfe058c6946351b9be9a4f0b5fa05020ea9",
237
+ "maxLongPoolUsdForDeposit": "0x5e22d003ad14747b212c859a357b14b710550b37f1c5550f209677dd55dff209",
238
+ "maxShortPoolUsdForDeposit": "0x5e22d003ad14747b212c859a357b14b710550b37f1c5550f209677dd55dff209",
239
+ "reserveFactorLong": "0x6ba9239ceae40b7cb9a256e7b62f94db86318ff98245b14833520d64e122c575",
240
+ "reserveFactorShort": "0x2a9a4628141cb9d5c27dc8c7596cad7fdba51f4d68814c3b068ffc82a774f34e",
241
+ "openInterestReserveFactorLong": "0x628a6dd72de9769f1ed8a88e48405f79c3f2c1685038ffa6fdba197d0a8a48a1",
242
+ "openInterestReserveFactorShort": "0x8c481826f5f651ee71f47802ae24410a25f02ede7b71b3d2f0bee0cbff266bbe",
243
+ "maxOpenInterestLong": "0x90b9d65dc14dac6c5717df33b725272e2a5ee8db9bd7cbd556fd6aa299d53a6e",
244
+ "maxOpenInterestShort": "0xb2719880773cec2ea3080fa3f94aee80fbdeb2da5e7ade2635b11d485da01dc6",
245
+ "minPositionImpactPoolAmount": "0x39790e3c0566b9ad8012393056a413a65fac1ed51b38360e0b534dd11ad00045",
246
+ "positionImpactPoolDistributionRate": "0xb27d96552805eb424c6779766c63533dcc42ffae571d4e9bb120d3d8cb1591cd",
247
+ "borrowingFactorLong": "0xe7decaea8088b758033a46444d79f8adc3ce8d701e4372b3ed814de6d4a8141f",
248
+ "borrowingFactorShort": "0x8179d15c3f58f97780fea9cb40f951536ea74ed14ba5399164d1814774065467",
249
+ "borrowingExponentFactorLong": "0x7eaf9d6417ad10c66dd4bd8e66f288c55e6dbc1ec8e91b002390fcc1febd9ee3",
250
+ "borrowingExponentFactorShort": "0x1c92ab2b1206bb39218953c9511884c57510fcadb94079d5698343d55c0f5f90",
251
+ "fundingFactor": "0x5e1ce46776d680f470ca0d55ce1eaf08926657d082a760278cc08e89e053cc3c",
252
+ "fundingExponentFactor": "0xb9255f866ae4d5e81eaad80b830a7c8a6be8a6a1a2baf42fe2746e96136d7422",
253
+ "fundingIncreaseFactorPerSecond": "0x166b2bec80acaebf4ae4c35314edba0d48123abd2eda579a33cbbcedaef6022e",
254
+ "fundingDecreaseFactorPerSecond": "0x7d25b1b62d83d842222a95bfa1b65c8bb702fe51ce9243fd5200aa9d4404a675",
255
+ "thresholdForStableFunding": "0x793a1a1ddaa8a208edd771dd422aacec38253530857c84b16454aaa63a20f507",
256
+ "thresholdForDecreaseFunding": "0xc43cda9a456f2eb31194e59a7303eee46eef4efeb3542fcf467c44fb764efee4",
257
+ "minFundingFactorPerSecond": "0x81a209cfa624c8eb39f749fee536743c9a47725b840991adee787c3c704ed8a0",
258
+ "maxFundingFactorPerSecond": "0xbbde21636d2c776fcf9339d3720f15f29c1a41950c3b054f68d5d98f71896214",
259
+ "maxPnlFactorForTradersLong": "0xf491ccfd730b238cf8688311a5e69cd7fc96e03d3145e47cc684cd5bb84af563",
260
+ "maxPnlFactorForTradersShort": "0xee64c21372a0337e8cfeb1b986798794cc2d5cc4df39fd8c955dbc5312f3238d",
261
+ "positionFeeFactorForBalanceWasImproved": "0x60e426562cb42da9e99c69aa9f2cd5c0ae6e9b8fd7faaa087eefaaaa00c8a145",
262
+ "positionFeeFactorForBalanceWasNotImproved": "0x182ac374e8271e6493592d876c2180c2ed93fcc76af7cd0ead86c3ae33fa6e5f",
263
+ "positionImpactFactorPositive": "0x8e1ec46536b2ee11576d88be07bedcd5a1cd7b6f4504556663476dc035de8867",
264
+ "positionImpactFactorNegative": "0x162f5cc484e465f2b54a36ecac460d580bd230653e9d213b6aeb8d7388efe02d",
265
+ "maxPositionImpactFactorPositive": "0x195217d0af50fbe8b3eb5de985b146f2c223e6258a1f04729bd89380e74ffd38",
266
+ "maxPositionImpactFactorNegative": "0xae913bfdff89c368b9e67a25849c9137b788bbe698c4542fc9c8597a5d241b81",
267
+ "maxPositionImpactFactorForLiquidations": "0xd8e12e357800bcd38922051c9e64b81412f2c0f11410ebe8e0780a42147d6758",
268
+ "maxLendableImpactFactor": "0x92c0bc5b0a1cd50638b03555d787361a97909453e35b144193aff737b989d5f3",
269
+ "maxLendableImpactFactorForWithdrawals": "0xbcfe03014c6db674fb84026fcf9c6f815f45913378b15fdd1cd1c9482cd3edbe",
270
+ "maxLendableImpactUsd": "0xff76f0ea61f43271c9d81a37b76a2e9af35b920ea9b479f2b0b4039d0d6ab6af",
271
+ "lentPositionImpactPoolAmount": "0xc2e23901fde017ce4fb226e7c67de9851594821356b7e6dad754d67ded0a4284",
272
+ "minCollateralFactor": "0x088b26272caa62ca7f9e11f47ed34e48bd1ec58edcea938b3f1097827227ae30",
273
+ "minCollateralFactorForLiquidation": "0x3a294b563162bcc13d4a045d0b365009c952a1afe88d15dd6dd23cae8427481d",
274
+ "minCollateralFactorForOpenInterestLong": "0xfa9d213443937ca4ca07e226abae3eb8ba2e1c7fbacf8afe1e8ed41b07d0ae58",
275
+ "minCollateralFactorForOpenInterestShort": "0x700e403bd70e5a4160d8174a5e70219bcbd4899cb2805c9bb86c9d43eff559b2",
276
+ "positionImpactExponentFactorPositive": "0xc0b86a0d39d0f0c01741b15ba9631a2d02a4cf06fdce5f5f50fd5d46fab76077",
277
+ "positionImpactExponentFactorNegative": "0x9f4da92fa095f0b0bf5aeb73a0d12026b85f0655f9c59fbf8578ef513769a01e",
278
+ "swapFeeFactorForBalanceWasImproved": "0x2a7214f281fc80f936c181bcda69d6a5ef168ca636e86739e1ce6bef4f74aacb",
279
+ "swapFeeFactorForBalanceWasNotImproved": "0x88aafd2ec020502b6ffe85243e5e9abe3da8558b8b2691c27700747051ab2f7a",
280
+ "atomicSwapFeeFactor": "0xb7cfd8f2e8a120a2723815e4f0202e1d1a1e1e7a93c4a4d8c960c7d576a74f26",
281
+ "swapImpactFactorPositive": "0x01fb110e0e4b315aa3fde87a549788a97fd062126fb55e5cd7df35fb430ea40e",
282
+ "swapImpactFactorNegative": "0x12292ec218dd03844aae4c84f9bbc73505909f815591f8eb887d73388ed8f68b",
283
+ "swapImpactExponentFactor": "0x9d3c14011225c1deecc21d7044cdef5caf520f28563126b8d57ce91991855b24",
284
+ "withdrawalFeeFactorBalanceWasImproved": "0x88a9af1c999d0b941d917839e5d0091ec4b7546fb382e0056fa6198bfb8cd018",
285
+ "withdrawalFeeFactorBalanceWasNotImproved": "0xf3ce34f351fe717caa58cd5091af41546faa9806ec928e2f93a1866fd8c90de0",
286
+ "virtualMarketId": "0x1247029ae78b3acd464ae3fe154473185efc0a328b2cde24da6fa20840e49b26",
287
+ "virtualLongTokenId": "0x4dd17e45519b6398f395ed0297a67002668c720c17b5043a9623eec83970f300",
288
+ "virtualShortTokenId": "0x4dd17e45519b6398f395ed0297a67002668c720c17b5043a9623eec83970f300"
289
+ },
290
+ "0xe8E716F1cddfFD0698B86919D41A8228d701fEe9": {
291
+ "isDisabled": "0xd7e22d524f370d1c3c2b078aab0cd349cf3d8fab34c2e45314af1ac123adec6a",
292
+ "maxLongPoolAmount": "0xdb6d78c48b1a20527b5172a5677261cad7f9952f61b85973213479f66a010521",
293
+ "maxShortPoolAmount": "0xdb6d78c48b1a20527b5172a5677261cad7f9952f61b85973213479f66a010521",
294
+ "maxLongPoolUsdForDeposit": "0xf2257cda3aebbcb2e2f83dc9a307147031569d78b4670b363de3b20c4564ea15",
295
+ "maxShortPoolUsdForDeposit": "0xf2257cda3aebbcb2e2f83dc9a307147031569d78b4670b363de3b20c4564ea15",
296
+ "reserveFactorLong": "0x8c99fc3065e5dd1f28ec9c83d6fbfaa0dd846d1767d39b5d7ad3e54ca1471e83",
297
+ "reserveFactorShort": "0x3bb4598c4a2e872c86ab36f2b4ec0508978adac7d6fe094ab5e1eaeb3053b946",
298
+ "openInterestReserveFactorLong": "0x9bceae70be392eb25f5cc6b89e6092cf0acd2ae1f1b0e0b2293e01a3944e8a59",
299
+ "openInterestReserveFactorShort": "0x61f717bc494b536696c0e9ea781e6afab2a8cd13c1c64999acbc0d58a336046f",
300
+ "maxOpenInterestLong": "0x0971838c0854a3cb208495099282413c338435fb5d9a8ec67d2342fd91f96a41",
301
+ "maxOpenInterestShort": "0xf845767d968866d21d28c1e3aa03820db10aa14bae3a0c7e5424a33b9f01bc21",
302
+ "minPositionImpactPoolAmount": "0x9cadc62e60df83b5c306414e9f098c102ff99f41a0987f764d84ac5c0d12faff",
303
+ "positionImpactPoolDistributionRate": "0xc1d837843e9dac1c196e18201400bf4bd8847f5daae6f4317b6c516f1604b3dc",
304
+ "borrowingFactorLong": "0xc1c9d9c65cfc04a15d02dfce6943933f803656c07f023e6788f4149136107b8a",
305
+ "borrowingFactorShort": "0x0f7e8e01b9385cbbc417c691b45e3a3c6c3e40de19612d6cfd2c669f9260db2a",
306
+ "borrowingExponentFactorLong": "0x29890eef2ca9bc2e3be732384612e3803feb5c8e577f82dff99a44b88f1f4c19",
307
+ "borrowingExponentFactorShort": "0x02a64ec74661fe76b5dd399fa3399241595726f164d330d32e39b3b6344f2334",
308
+ "fundingFactor": "0x4b3dbd7fd272ef177d91349b2509923716b7f30e0f97fb5e35389815dc4afa7c",
309
+ "fundingExponentFactor": "0x429bb54c6b173aebb75435b4beacd7281b3b804269aaeeb6b9baa0246d7990cf",
310
+ "fundingIncreaseFactorPerSecond": "0x114f2cb129c95681b467040af66f102c66aaaa9553c68d4b1eb68b694e2404d1",
311
+ "fundingDecreaseFactorPerSecond": "0x59e184be250fed1e52cb78db026ac6800d7365500ae19182273fae7e59e88224",
312
+ "thresholdForStableFunding": "0x0b8ab244bd4ccf19975f99e382fdeaa13b635607a09f68a7ef923e4f3d453c73",
313
+ "thresholdForDecreaseFunding": "0x817754b8da19f3c600317bc7329db764e98d48a6fc9604bff246f5acd7b80c6c",
314
+ "minFundingFactorPerSecond": "0xd92f4a4ee74218e7cafe998b5492160854169991423c27d387932f4c7bce7d39",
315
+ "maxFundingFactorPerSecond": "0x47da176edae45c6df20ac16c674c10812d5912ab08df17d6ee04a8926731f47b",
316
+ "maxPnlFactorForTradersLong": "0x9da80b14c8e9e229d8b017ca6b6de1923e884cd1dee51d5e5272a8f11ba14658",
317
+ "maxPnlFactorForTradersShort": "0xdd7f9e952c087bc315a7f2b954ec8924533e935a6973256513c0e7ce116d443d",
318
+ "positionFeeFactorForBalanceWasImproved": "0xabb44994d03b370b413921afaedd1fa928130e5a86f7ba185be13b57d134fb83",
319
+ "positionFeeFactorForBalanceWasNotImproved": "0xb7352e7b24ac346202100a3849099c9f92c3f35ce665837e453da8afb3bac0ea",
320
+ "positionImpactFactorPositive": "0x5351c53d102a88d81f87da38e0d7128f00ab861459d25e3f327268b59ba35739",
321
+ "positionImpactFactorNegative": "0x08ea0c9fd16ff2c36d0879bcb081684bae3ecf846882736b8e96a01483f8e81c",
322
+ "maxPositionImpactFactorPositive": "0xe882331cd8d827b3f3b800be2f28bd7321ea1f68640105d9c4987e047a979c3e",
323
+ "maxPositionImpactFactorNegative": "0x0e9144a940e71bd5591315397af4a66343ee4ce0f3686ad51e04fe9a7de3cc11",
324
+ "maxPositionImpactFactorForLiquidations": "0x75d027fb039f0ac805b6a744ef609eb65c3d2d22c81e013e8bbadede903a53f2",
325
+ "maxLendableImpactFactor": "0x2f97bdddbd38adc72be7881a48e9586a6a25d0e067f38b2593c02af56f41bebd",
326
+ "maxLendableImpactFactorForWithdrawals": "0x7f6c0e28daa4345fe90e4674af269462df35a93c8cce08937f48f22e4d995852",
327
+ "maxLendableImpactUsd": "0xd79bd8e76363adbf6a60cd430e7407f41c5d2caacf29a5981565c8c00b52b294",
328
+ "lentPositionImpactPoolAmount": "0x3052dcdad7b2c084dcfc902ec2193762ca7148b6ecff5a67771ea3fc731421a2",
329
+ "minCollateralFactor": "0x771d3d7681f3b2d67e1477e0c1c83260e18b3b95d8ceaff4b51eb9ac660f0787",
330
+ "minCollateralFactorForLiquidation": "0x6511ec82aec5c627156bdc93cfd68bf5e2e7e0e512b100f6c6edc0d1c7217324",
331
+ "minCollateralFactorForOpenInterestLong": "0x506d7fb0d035d516cd4b4485993c6e2320f63ac68b87febda346db4b9ba334b1",
332
+ "minCollateralFactorForOpenInterestShort": "0xcc05c2790be4e5b3145f03f126600244bdefea31708d481562b42b65514564a3",
333
+ "positionImpactExponentFactorPositive": "0x51332a3f234fc039362816042ec2fea609425e1cde494b983ca2479523fd7700",
334
+ "positionImpactExponentFactorNegative": "0x0b59b314625bed0fbe09e1eff5fda37dcbd4935899f3feb99bc34b52751db6d6",
335
+ "swapFeeFactorForBalanceWasImproved": "0xdc421cdc9646e716ad5d580da13a00621127f7002824643e6dece3ff173b2a0e",
336
+ "swapFeeFactorForBalanceWasNotImproved": "0x86fab0626b53e4eb44faf7cce76dc7b3f7cb5e5df183c34fa2acf5f97478a5ad",
337
+ "atomicSwapFeeFactor": "0x6f0b8af5ad395b811d824a0581020d5f5d07ef3a12777fd2f6cffb9b03f39894",
338
+ "swapImpactFactorPositive": "0x85bb476297118365678fa846b6fb4e6146db9c0b583eaae8c331141954137fc1",
339
+ "swapImpactFactorNegative": "0x57fcb1a1bbd6efadf21cc13aac87753ee9f6f88d7331cc6b4f54b0e43cf2f741",
340
+ "swapImpactExponentFactor": "0x04ab650cd13b61dc06141b0a322bbae0f89c6d4fbb2c26ffdac3e00eb515f1fc",
341
+ "withdrawalFeeFactorBalanceWasImproved": "0x66fa924e0ecd9b4c100519724dfd38cded415310bcb636f3339142447be52ce6",
342
+ "withdrawalFeeFactorBalanceWasNotImproved": "0xecbb69b314d94b1f849e88e772b9b1936ee28d3974f091117dde1f434adba06b",
343
+ "virtualMarketId": "0x96b96ca2de06a52b14f1fe3e980a3ad196e9b16d39ccc258ba64d10b03005b2a",
344
+ "virtualLongTokenId": "0x4dd17e45519b6398f395ed0297a67002668c720c17b5043a9623eec83970f300",
345
+ "virtualShortTokenId": "0x4dd17e45519b6398f395ed0297a67002668c720c17b5043a9623eec83970f300"
346
+ },
347
+ "0xc5c9B5E23810565763De41144741477eeCB25e2e": {
348
+ "isDisabled": "0xa49e0fc2306a1447bc9bd8c575d55503e7c332ac97b4d679e428c7fe8fa9cf91",
349
+ "maxLongPoolAmount": "0x95faa8ab4cb72d45ef4d4b5497dff66d75e31840f083692073d40a804384f3d4",
350
+ "maxShortPoolAmount": "0xdf88030a865eeabca1b97af1d69d870885f5464126b36a135a22d336de21d59f",
351
+ "maxLongPoolUsdForDeposit": "0x36a57fbec8418c0e6fc78e6641792e1556b109bf232f52d0d6fffee53bd46fe9",
352
+ "maxShortPoolUsdForDeposit": "0x6cb2d5e992efaa7cdc65627a0d80e100f61a05944593a28f3e7a01385688f145",
353
+ "reserveFactorLong": "0x4bd4d49e73a6ad5cc4426d4e7c1965e3c6574987960e5608024cb755cbe328c7",
354
+ "reserveFactorShort": "0x25682fb7b0997a98ebb2a006179736c6dc29b82174431913be73b32860473da4",
355
+ "openInterestReserveFactorLong": "0x4b560220cb1b09f719b44281605ce7b56f8576d22f5f229f801fbb1c0320269e",
356
+ "openInterestReserveFactorShort": "0xbd48ad8064da2875359495e0ef5e3c38076a482c9bbef160519d3e6217ed163e",
357
+ "maxOpenInterestLong": "0x147fbec84878ddb2847e3b9a3b3d530907eef9850eda7892a1bcbca151aebb66",
358
+ "maxOpenInterestShort": "0x7d4cacc64aae1d56f442aabbd618cb5333fd3fff69baafbe4c08c7c283cff4ab",
359
+ "minPositionImpactPoolAmount": "0x64389999d00e6d098d55b41f0a9dfb605c65937c6951aab9d7d607ed73f02149",
360
+ "positionImpactPoolDistributionRate": "0xe6976cfd74514f1979206be44fcf33c57c25b2eb66b001799842aaf8ddccb7ce",
361
+ "borrowingFactorLong": "0x54c76f42c48125d54598106f5b496b3a19f2679f1db95ed79f888c34cf9c6674",
362
+ "borrowingFactorShort": "0xe29c3ef7248483334dc3765114e1e994f64c7ec9b78e22b909308666493a99d3",
363
+ "borrowingExponentFactorLong": "0x553e32c371441c86ff123ee29a99c58792f183d00bd872a0e25f99559b1a61a7",
364
+ "borrowingExponentFactorShort": "0xebc0a747707ba229f0beff5c2fbd17200be76299c06a4a9571eb125b538b9d15",
365
+ "fundingFactor": "0x805b62a2508161c2a05885f1a3f362a7c152fa2adf6c7cde1fa4a895bc72609f",
366
+ "fundingExponentFactor": "0xd660e3494556021be84acae791b5806a460c525f20922f0b4461e03a4dc0897f",
367
+ "fundingIncreaseFactorPerSecond": "0xb3abdc0067cdb97ea2c8785d873c2e9975a09c87117901908848aac5e88838e2",
368
+ "fundingDecreaseFactorPerSecond": "0x46adf84a001f73b051c17f9eaa0568dfe346707f4d36dcafd4e687fe3587aa0f",
369
+ "thresholdForStableFunding": "0xee8f522b2c3ba996556e069b10ee11ec097921756c08107ac464121a0a31fc3d",
370
+ "thresholdForDecreaseFunding": "0x554f0de537afd78341eaff8ae4eadf60cf3c091d2061fb52050f2d740358cf63",
371
+ "minFundingFactorPerSecond": "0xc4222a95a8bc705c6f90e657e2dbf2b04d63c000aede62f5d54235b1f7c119f6",
372
+ "maxFundingFactorPerSecond": "0x97196ae2d1e77efa5a04f9931d798cd3c78ff67a80626ecc6b4269779c4aafe6",
373
+ "maxPnlFactorForTradersLong": "0x968515b52ea4589c4c4dc536e383d5e268cabe431805c69e4f1c651dfa3cfd58",
374
+ "maxPnlFactorForTradersShort": "0xb6e6ac2ec4c4364fb8e8bc2d35756aade9e4e69fe5712572a7a89821fe02ec6c",
375
+ "positionFeeFactorForBalanceWasImproved": "0x319a53319d2652aea2d1dd69504de1c1a3dd8b564073491a69f3b20bca9f728c",
376
+ "positionFeeFactorForBalanceWasNotImproved": "0x43db20898a275b5add2ed4ab50a28ae1f9d6f5b953fe212e47c279724b836bcd",
377
+ "positionImpactFactorPositive": "0x5984e23f8cabfe65965baff287ef685c00a440e4f6c0188b383641fb59858522",
378
+ "positionImpactFactorNegative": "0xa33b1c56fd59a359706b9e2efed8ed7ed194391494f81472eb70f08a69cd6297",
379
+ "maxPositionImpactFactorPositive": "0xf99ec7d2f5ac20153ed8851b80c6c0ec0e35424d39a21308fe2ad1ceeab8cd2d",
380
+ "maxPositionImpactFactorNegative": "0x101a5a513ac9bf6e866f5776a0facf3ace8ba03cf01ec54bb357c1ec3c4601d6",
381
+ "maxPositionImpactFactorForLiquidations": "0x138c6203900d74feca8ed4373d32d7e77be3f30c82fdfe090d75664e8aae68f7",
382
+ "maxLendableImpactFactor": "0xaed3c24b40984c4a843f9ec30d1caf70fb1c474f415707beb5086c05bb81ecde",
383
+ "maxLendableImpactFactorForWithdrawals": "0x00d99f280a2d5eb1b05e79610141d91b4f21390218ee9f75d70edb4415c7eb68",
384
+ "maxLendableImpactUsd": "0x5fe47d214698757512655e43f276828c425a2e13a22c5ee0d2cc8140c230cc45",
385
+ "lentPositionImpactPoolAmount": "0xad8ff97f2f0cf5df4d6256e4e8d7a07d051267dfe189a2d2fa56c0fa79a78dfa",
386
+ "minCollateralFactor": "0x30e3ac6cd5244fccad6d2e8167ea08e7802d021001ef53b7911eba2f6455e853",
387
+ "minCollateralFactorForLiquidation": "0xa8544eae5f19ce2b3f10b388583e24b143d7507f9fb99c4c01c9c5656723c421",
388
+ "minCollateralFactorForOpenInterestLong": "0x75f534a9d4d59de0a5b16e9e6e1ab602b43875220dcc7b28c0b72f9ddb72d1b7",
389
+ "minCollateralFactorForOpenInterestShort": "0x4e06fa87db910fb3b26b03825794e9ade7dfd283f7f845fe49264e3117f523e1",
390
+ "positionImpactExponentFactorPositive": "0x50979ba8050ea02a4167b68522995e63342de5975099810c8260063aaec3fddd",
391
+ "positionImpactExponentFactorNegative": "0xf75d6078898629a1cd75bd5db3f5f1f77419e06a983cd392d5b66ce3e2be4076",
392
+ "swapFeeFactorForBalanceWasImproved": "0x45278fdb063b0f48cff9dc1e0e207763e30cfc10f3a4290a81ce38c19304b5b4",
393
+ "swapFeeFactorForBalanceWasNotImproved": "0xf75e547798df80537016c9176d7cbdb51e0fa22169aabc763a83281efa9fac9c",
394
+ "atomicSwapFeeFactor": "0xd7190ccb9778c3f232b52a04ee75af37dd4517778ab09111c09111bcbd3ed353",
395
+ "swapImpactFactorPositive": "0x70fb5dcc8fb64dac2711efad93652424abfaa5916ebb958397a7130a90bf9d20",
396
+ "swapImpactFactorNegative": "0xc8b49a268d08b26e238b54ad7270c8ca5acf83f8d7da6dc7d00e6a030b73931d",
397
+ "swapImpactExponentFactor": "0xc18083858fe0ded690ce43653cb4618876250943dcd617c3fdbacdc74763a3b2",
398
+ "withdrawalFeeFactorBalanceWasImproved": "0x937cef50d020c55f9477dd01f0c2f8f6a51794ce34a97a595ec4ae46476858da",
399
+ "withdrawalFeeFactorBalanceWasNotImproved": "0xf026be74180cb1055be7c220eeed2eca5d2dedce6f20673f9bd3e08c70ae7ffe",
400
+ "virtualMarketId": "0x1bce47d5cb3a3d02f37c2e7717d913d3b6e45269a0f0fe014d2d9f7aa3027ea7",
401
+ "virtualLongTokenId": "0x0585ee8f04d41fba5002b80d24710ecce0210ab0e8e46df01e09801cc5421702",
402
+ "virtualShortTokenId": "0x4dd17e45519b6398f395ed0297a67002668c720c17b5043a9623eec83970f300"
403
+ }
404
+ },
175
405
  "42161": {
176
406
  "0x47c031236e19d024b42f8AE6780E44A573170703": {
177
407
  "isDisabled": "0xe8b3327a4f36a032e9c4b5c62bd478f8f7dcb358be17e031c08af181054f89e9",
@@ -46,6 +46,68 @@
46
46
  "shortInterestInTokensUsingShortToken": "0xe8a3c7877b603e90c025cd38a1f20d1b94f4f7a8ec7054e17b629218c7474c27"
47
47
  }
48
48
  },
49
+ "4326": {
50
+ "0x31EdCc52bE2Fa55Ba68f50409F9e6b7d9EbF3D59": {
51
+ "longPoolAmount": "0x48cbe02151ba490e09da39093e5b8f5a17a8561b0eec2a1bac7c6ed706989b54",
52
+ "shortPoolAmount": "0x48cbe02151ba490e09da39093e5b8f5a17a8561b0eec2a1bac7c6ed706989b54",
53
+ "positionImpactPoolAmount": "0x7015ba3a5ac6f8ff863cf86151e6b230d9649ef7e36833aaf8adaf13ddfcdfff",
54
+ "swapImpactPoolAmountLong": "0x8d91547b49495c07544f33f2bcf83ec84dea215121b5d2063a36a9a0e39a4009",
55
+ "swapImpactPoolAmountShort": "0x8d91547b49495c07544f33f2bcf83ec84dea215121b5d2063a36a9a0e39a4009",
56
+ "longInterestUsingLongToken": "0x587dc7127539bef4935798f59017771f74b4877a64a7da6b7778ac16fd0e7965",
57
+ "longInterestUsingShortToken": "0x587dc7127539bef4935798f59017771f74b4877a64a7da6b7778ac16fd0e7965",
58
+ "shortInterestUsingLongToken": "0x6f4851fe1dba157760dc697bc24b3bd716d7b2f4d931a7162564d1468fcf7a46",
59
+ "shortInterestUsingShortToken": "0x6f4851fe1dba157760dc697bc24b3bd716d7b2f4d931a7162564d1468fcf7a46",
60
+ "longInterestInTokensUsingLongToken": "0x2257116aaa5d3939acb4136c61bd4f1c137b9fd537b9bb9b64a34ae4da72ad85",
61
+ "longInterestInTokensUsingShortToken": "0x2257116aaa5d3939acb4136c61bd4f1c137b9fd537b9bb9b64a34ae4da72ad85",
62
+ "shortInterestInTokensUsingLongToken": "0xc397b857f5e7e7c6d019de1c4772dd6db2ac94e7f1e63d2d5157995f283d28db",
63
+ "shortInterestInTokensUsingShortToken": "0xc397b857f5e7e7c6d019de1c4772dd6db2ac94e7f1e63d2d5157995f283d28db"
64
+ },
65
+ "0x9b1B72720f6D277F3b1e607a0c5fab1B300248b1": {
66
+ "longPoolAmount": "0x452c889d68f2c79409d484addb8841fcab0ec40d5b6225674b678f5a1395a963",
67
+ "shortPoolAmount": "0x452c889d68f2c79409d484addb8841fcab0ec40d5b6225674b678f5a1395a963",
68
+ "positionImpactPoolAmount": "0x507970dab266c82ac938c6edac601cc3320e2b4609ae88674e376cc2ee1f41ff",
69
+ "swapImpactPoolAmountLong": "0xdf452274e20a0d12a239c49819399c454bf1d85515d4418ca2b24aef657e5f88",
70
+ "swapImpactPoolAmountShort": "0xdf452274e20a0d12a239c49819399c454bf1d85515d4418ca2b24aef657e5f88",
71
+ "longInterestUsingLongToken": "0x12d084fddbeec7845f6d540a721164b2d276f7d2b642d05d4c597eb6844764ef",
72
+ "longInterestUsingShortToken": "0x12d084fddbeec7845f6d540a721164b2d276f7d2b642d05d4c597eb6844764ef",
73
+ "shortInterestUsingLongToken": "0xe82feaa2812ea3ae11ecbbb194f9ed0c970bb6730019a3ce10b30676f58bc0e5",
74
+ "shortInterestUsingShortToken": "0xe82feaa2812ea3ae11ecbbb194f9ed0c970bb6730019a3ce10b30676f58bc0e5",
75
+ "longInterestInTokensUsingLongToken": "0x56ab7f3c720b55cb3817d7756dff83cacdac11a40196f54a18b169b4e98c2f9a",
76
+ "longInterestInTokensUsingShortToken": "0x56ab7f3c720b55cb3817d7756dff83cacdac11a40196f54a18b169b4e98c2f9a",
77
+ "shortInterestInTokensUsingLongToken": "0xeb676c0c24bcc7d43c4339cf8ea522dd4a1dc6e5cefeb27bcfa7597d7ff670bf",
78
+ "shortInterestInTokensUsingShortToken": "0xeb676c0c24bcc7d43c4339cf8ea522dd4a1dc6e5cefeb27bcfa7597d7ff670bf"
79
+ },
80
+ "0xe8E716F1cddfFD0698B86919D41A8228d701fEe9": {
81
+ "longPoolAmount": "0xdd04b7bdf4f392234c9f7575f01d192a963d771a62aadb109bebd3b9e0bbfee3",
82
+ "shortPoolAmount": "0xdd04b7bdf4f392234c9f7575f01d192a963d771a62aadb109bebd3b9e0bbfee3",
83
+ "positionImpactPoolAmount": "0x3fb82e2a6edfbbbfc446e7c7c7346f61049c702de3341438ceb2e685e1fb8cb3",
84
+ "swapImpactPoolAmountLong": "0xab062d1c76c49aa33596a8dcaf26e0bc756d44507ae7b81e99dc517ae0521b2a",
85
+ "swapImpactPoolAmountShort": "0xab062d1c76c49aa33596a8dcaf26e0bc756d44507ae7b81e99dc517ae0521b2a",
86
+ "longInterestUsingLongToken": "0x361420c792d75d2c2ce47b6e463a51266acc2bd5e55897d0d7ada3c40c4d2e1a",
87
+ "longInterestUsingShortToken": "0x361420c792d75d2c2ce47b6e463a51266acc2bd5e55897d0d7ada3c40c4d2e1a",
88
+ "shortInterestUsingLongToken": "0xb9d62a8bd37ab199c88f038b3356143d808de0ca2d753add70710a2a4e6ea3e2",
89
+ "shortInterestUsingShortToken": "0xb9d62a8bd37ab199c88f038b3356143d808de0ca2d753add70710a2a4e6ea3e2",
90
+ "longInterestInTokensUsingLongToken": "0xac085f8e1e00d63fb6f540faca1d4d354009e61e034ca6dddf65a4ffe2015241",
91
+ "longInterestInTokensUsingShortToken": "0xac085f8e1e00d63fb6f540faca1d4d354009e61e034ca6dddf65a4ffe2015241",
92
+ "shortInterestInTokensUsingLongToken": "0xc9d6814f7afb11ad28efba7548a877fd702ce6f20100a22028aefd13bcdda320",
93
+ "shortInterestInTokensUsingShortToken": "0xc9d6814f7afb11ad28efba7548a877fd702ce6f20100a22028aefd13bcdda320"
94
+ },
95
+ "0xc5c9B5E23810565763De41144741477eeCB25e2e": {
96
+ "longPoolAmount": "0x7c7a0a88c4e728b99ea46549faef00dc7f38dd06cc788aa991683ec87fa9d5da",
97
+ "shortPoolAmount": "0xacce4845b7ef6fa3cf28e16cef47786c1759e08039fb6a65196ff8b50c1c051d",
98
+ "positionImpactPoolAmount": "0xe661cf4e73d12f956d127f08d466fc5e8214a59a96cc665cf5c4409ab73ffd19",
99
+ "swapImpactPoolAmountLong": "0xfb2d731fbdbd9eb52dbad8e5de5b2360dc88dfbf9424a94afd08dce332665b1b",
100
+ "swapImpactPoolAmountShort": "0x643b8167c905f512c59186c00b1c12408865c9d9d637d2a749689745dd666210",
101
+ "longInterestUsingLongToken": "0x71abcd6439512f888025f264a7d5147b4c72a06041df10dff3a4fa2996b69091",
102
+ "longInterestUsingShortToken": "0x93f689ed2491cd6699a8b152adc04964d0de4e6e5abe4f92a8b6819f4418ff3c",
103
+ "shortInterestUsingLongToken": "0x3a969b6bd6d67988446f774517b5a339e90853c06ecb66dc26e4e55217ace19e",
104
+ "shortInterestUsingShortToken": "0xd32d937eb46b570171c2e9bf515b2c62bf1163f44e1645cd3a5a656fe7bfb3ea",
105
+ "longInterestInTokensUsingLongToken": "0x56f82712bbe9fc0258f4e4ccfa0f67d7ed58723065a2014ea7ecc4b55794736c",
106
+ "longInterestInTokensUsingShortToken": "0xe83d97fc3908771363a263be1ed69a24555dc7c5cc76b3373274672002c155bb",
107
+ "shortInterestInTokensUsingLongToken": "0xef8d4b7d16675162321444d2bc5bfd1a4f632bcf2a111aab8275f04f8d81bc6d",
108
+ "shortInterestInTokensUsingShortToken": "0x42eb2e77b42509e3ed711f04a4727277703e0dfb80e6a4af0713aa4a072e894f"
109
+ }
110
+ },
49
111
  "42161": {
50
112
  "0x47c031236e19d024b42f8AE6780E44A573170703": {
51
113
  "longPoolAmount": "0xc97d6ba9e3cbf19c2bdb3eb671109e97cbbb0c4684ac5ea9b34fffbf3fff84fb",
@@ -18,6 +18,7 @@ const getIgnoredTokensByChain = (chainId) => {
18
18
  [chains_1.ARBITRUM]: ["FRAX", "MIM"],
19
19
  [chains_1.AVALANCHE]: ["MIM", "WBTC"],
20
20
  [chains_1.BOTANIX]: ["GMX"],
21
+ [chains_1.MEGAETH]: ["GMX"],
21
22
  }[chainId] ?? []);
22
23
  };
23
24
  (0, vitest_1.describe)("tokens config", () => {
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isApiSupported = exports.getApiUrl = void 0;
4
4
  const chains_1 = require("./chains");
5
5
  const API_URLS = {
6
- [chains_1.ARBITRUM]: "https://gmx-api-arbitrum-2nlbk.ondigitalocean.app/api/v1",
7
- [chains_1.AVALANCHE]: "https://gmx-api-avalanche-vxjas.ondigitalocean.app/api/v1",
6
+ [chains_1.ARBITRUM]: "https://arbitrum-temp.gmxapi.ai/api/v1",
7
+ [chains_1.AVALANCHE]: "https://avalanche-temp.gmxapi.ai/api/v1",
8
8
  [chains_1.AVALANCHE_FUJI]: undefined,
9
- [chains_1.BOTANIX]: undefined,
9
+ [chains_1.BOTANIX]: "https://botanix-temp.gmxapi.ai/api/v1",
10
10
  [chains_1.ARBITRUM_SEPOLIA]: "https://gmx-api-arbitrum-sepolia-yp6pp.ondigitalocean.app/api/v1",
11
+ [chains_1.MEGAETH]: "https://megaeth-temp.gmxapi.ai/api/v1",
11
12
  };
12
13
  function getApiUrl(chainId) {
13
14
  return API_URLS[chainId];
@@ -26,10 +26,23 @@ const DEFAULT_TESTNET_BATCH_CONFIG = {
26
26
  },
27
27
  },
28
28
  };
29
+ const MEGAETH_BATCH_CONFIG = {
30
+ http: {
31
+ batchSize: 0,
32
+ wait: 0,
33
+ },
34
+ client: {
35
+ multicall: {
36
+ batchSize: 4096,
37
+ wait: 0,
38
+ },
39
+ },
40
+ };
29
41
  exports.BATCH_CONFIGS = {
30
42
  [chains_1.ARBITRUM]: DEFAULT_PROD_BATCH_CONFIG,
31
43
  [chains_1.AVALANCHE]: DEFAULT_PROD_BATCH_CONFIG,
32
44
  [chains_1.BOTANIX]: DEFAULT_PROD_BATCH_CONFIG,
45
+ [chains_1.MEGAETH]: MEGAETH_BATCH_CONFIG,
33
46
  [chains_1.SOURCE_BASE_MAINNET]: DEFAULT_PROD_BATCH_CONFIG,
34
47
  [chains_1.SOURCE_BSC_MAINNET]: DEFAULT_PROD_BATCH_CONFIG,
35
48
  [chains_1.SOURCE_ETHEREUM_MAINNET]: DEFAULT_PROD_BATCH_CONFIG,
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SOURCE_SEPOLIA = exports.SOURCE_OPTIMISM_SEPOLIA = exports.ARBITRUM_SEPOLIA = exports.AVALANCHE_FUJI = exports.SOURCE_BSC_MAINNET = exports.SOURCE_BASE_MAINNET = exports.SOURCE_ETHEREUM_MAINNET = exports.BOTANIX = exports.ARBITRUM = exports.AVALANCHE = void 0;
3
+ exports.SOURCE_SEPOLIA = exports.SOURCE_OPTIMISM_SEPOLIA = exports.ARBITRUM_SEPOLIA = exports.AVALANCHE_FUJI = exports.SOURCE_BSC_MAINNET = exports.SOURCE_BASE_MAINNET = exports.SOURCE_ETHEREUM_MAINNET = exports.MEGAETH = exports.BOTANIX = exports.ARBITRUM = exports.AVALANCHE = void 0;
4
4
  // Production
5
5
  exports.AVALANCHE = 43114;
6
6
  exports.ARBITRUM = 42161;
7
7
  exports.BOTANIX = 3637;
8
+ exports.MEGAETH = 4326;
8
9
  // Production source
9
10
  exports.SOURCE_ETHEREUM_MAINNET = 1;
10
11
  exports.SOURCE_BASE_MAINNET = 8453;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getExecutionFeeConfig = exports.getTokenExplorerUrl = exports.getExplorerUrl = exports.getChainDefaultCollateralSymbol = exports.getChainWrappedTokenSymbol = exports.getChainNativeTokenSymbol = exports.isChainDisabled = exports.getGasPriceBuffer = exports.getMinExecutionFeeUsd = exports.getMaxPriorityFeePerGas = exports.getGasPricePremium = exports.getMaxFeePerGas = exports.isTestnetChain = exports.isContractsChain = exports.getExcessiveExecutionFee = exports.getHighExecutionFee = exports.getViemChain = exports.getChainIdBySlug = exports.getChainSlug = exports.getChainName = exports.VIEM_CHAIN_BY_CHAIN_ID = exports.botanix = exports.GMX_ACCOUNT_PSEUDO_CHAIN_ID = exports.SOURCE_CHAIN_IDS = exports.SETTLEMENT_CHAIN_IDS_DEV = exports.SETTLEMENT_CHAIN_IDS = exports.CONTRACTS_CHAIN_IDS_DEV = exports.CONTRACTS_CHAIN_IDS = exports.SOURCE_SEPOLIA = exports.SOURCE_OPTIMISM_SEPOLIA = exports.SOURCE_BSC_MAINNET = exports.SOURCE_BASE_MAINNET = exports.SOURCE_ETHEREUM_MAINNET = exports.ARBITRUM_SEPOLIA = exports.BOTANIX = exports.AVALANCHE_FUJI = exports.AVALANCHE = exports.ARBITRUM = void 0;
3
+ exports.getExecutionFeeConfig = exports.getTokenExplorerUrl = exports.getExplorerUrl = exports.getChainDefaultCollateralSymbol = exports.getChainWrappedTokenSymbol = exports.getChainNativeTokenSymbol = exports.isChainDisabled = exports.getGasPriceBuffer = exports.getMinExecutionFeeUsd = exports.getMaxPriorityFeePerGas = exports.getGasPricePremium = exports.getMaxFeePerGas = exports.isTestnetChain = exports.isContractsChain = exports.getExcessiveExecutionFee = exports.getHighExecutionFee = exports.getViemChain = exports.getChainIdBySlug = exports.getChainSlug = exports.getChainName = exports.VIEM_CHAIN_BY_CHAIN_ID = exports.megaeth = exports.botanix = exports.GMX_ACCOUNT_PSEUDO_CHAIN_ID = exports.SOURCE_CHAIN_IDS = exports.SETTLEMENT_CHAIN_IDS_DEV = exports.SETTLEMENT_CHAIN_IDS = exports.CONTRACTS_CHAIN_IDS_DEV = exports.CONTRACTS_CHAIN_IDS = exports.SOURCE_SEPOLIA = exports.SOURCE_OPTIMISM_SEPOLIA = exports.SOURCE_BSC_MAINNET = exports.SOURCE_BASE_MAINNET = exports.SOURCE_ETHEREUM_MAINNET = exports.ARBITRUM_SEPOLIA = exports.MEGAETH = exports.BOTANIX = exports.AVALANCHE_FUJI = exports.AVALANCHE = exports.ARBITRUM = void 0;
4
4
  const viem_1 = require("viem");
5
5
  const chains_1 = require("viem/chains");
6
6
  const chainIds_1 = require("./chainIds");
@@ -9,12 +9,13 @@ Object.defineProperty(exports, "ARBITRUM_SEPOLIA", { enumerable: true, get: func
9
9
  Object.defineProperty(exports, "AVALANCHE", { enumerable: true, get: function () { return chainIds_1.AVALANCHE; } });
10
10
  Object.defineProperty(exports, "AVALANCHE_FUJI", { enumerable: true, get: function () { return chainIds_1.AVALANCHE_FUJI; } });
11
11
  Object.defineProperty(exports, "BOTANIX", { enumerable: true, get: function () { return chainIds_1.BOTANIX; } });
12
+ Object.defineProperty(exports, "MEGAETH", { enumerable: true, get: function () { return chainIds_1.MEGAETH; } });
12
13
  Object.defineProperty(exports, "SOURCE_ETHEREUM_MAINNET", { enumerable: true, get: function () { return chainIds_1.SOURCE_ETHEREUM_MAINNET; } });
13
14
  Object.defineProperty(exports, "SOURCE_BASE_MAINNET", { enumerable: true, get: function () { return chainIds_1.SOURCE_BASE_MAINNET; } });
14
15
  Object.defineProperty(exports, "SOURCE_BSC_MAINNET", { enumerable: true, get: function () { return chainIds_1.SOURCE_BSC_MAINNET; } });
15
16
  Object.defineProperty(exports, "SOURCE_OPTIMISM_SEPOLIA", { enumerable: true, get: function () { return chainIds_1.SOURCE_OPTIMISM_SEPOLIA; } });
16
17
  Object.defineProperty(exports, "SOURCE_SEPOLIA", { enumerable: true, get: function () { return chainIds_1.SOURCE_SEPOLIA; } });
17
- exports.CONTRACTS_CHAIN_IDS = [chainIds_1.ARBITRUM, chainIds_1.AVALANCHE, chainIds_1.BOTANIX];
18
+ exports.CONTRACTS_CHAIN_IDS = [chainIds_1.ARBITRUM, chainIds_1.AVALANCHE, chainIds_1.BOTANIX, chainIds_1.MEGAETH];
18
19
  exports.CONTRACTS_CHAIN_IDS_DEV = [...exports.CONTRACTS_CHAIN_IDS, chainIds_1.AVALANCHE_FUJI, chainIds_1.ARBITRUM_SEPOLIA];
19
20
  exports.SETTLEMENT_CHAIN_IDS = [chainIds_1.ARBITRUM, chainIds_1.AVALANCHE];
20
21
  exports.SETTLEMENT_CHAIN_IDS_DEV = [...exports.SETTLEMENT_CHAIN_IDS, chainIds_1.ARBITRUM_SEPOLIA, chainIds_1.AVALANCHE_FUJI];
@@ -130,6 +131,25 @@ const CONTRACTS_CHAIN_CONFIGS = {
130
131
  gasPriceBuffer: undefined,
131
132
  isDisabled: false,
132
133
  },
134
+ [chainIds_1.MEGAETH]: {
135
+ chainId: chainIds_1.MEGAETH,
136
+ name: "MegaETH",
137
+ slug: "megaeth",
138
+ explorerUrl: "https://megaeth.blockscout.com/",
139
+ nativeTokenSymbol: "ETH",
140
+ wrappedTokenSymbol: "WETH",
141
+ defaultCollateralSymbol: "USDM",
142
+ highExecutionFee: 5,
143
+ shouldUseMaxPriorityFeePerGas: true,
144
+ defaultExecutionFeeBufferBps: 3000, // 30%
145
+ maxFeePerGas: undefined,
146
+ gasPricePremium: 0n,
147
+ maxPriorityFeePerGas: 500000n, // 0.0005 gwei
148
+ excessiveExecutionFee: 10, // 10 USD
149
+ minExecutionFee: undefined,
150
+ gasPriceBuffer: 2000n, // 20%
151
+ isDisabled: false,
152
+ },
133
153
  // Use this notation to correctly infer chain names, etc. from config
134
154
  };
135
155
  const SOURCE_CHAIN_CONFIGS = {
@@ -222,12 +242,38 @@ exports.botanix = (0, viem_1.defineChain)({
222
242
  },
223
243
  },
224
244
  });
245
+ exports.megaeth = (0, viem_1.defineChain)({
246
+ id: chainIds_1.MEGAETH,
247
+ name: "MegaETH",
248
+ nativeCurrency: {
249
+ name: "Ether",
250
+ symbol: "ETH",
251
+ decimals: 18,
252
+ },
253
+ rpcUrls: {
254
+ default: {
255
+ http: ["https://mainnet.megaeth.com/rpc"],
256
+ },
257
+ },
258
+ blockExplorers: {
259
+ default: {
260
+ name: "MegaExplorer",
261
+ url: "https://megaeth.blockscout.com",
262
+ },
263
+ },
264
+ contracts: {
265
+ multicall3: {
266
+ address: "0xF516BC01c50eebdBad4d7E506c8f690ae8EAFc52",
267
+ },
268
+ },
269
+ });
225
270
  exports.VIEM_CHAIN_BY_CHAIN_ID = {
226
271
  [chainIds_1.AVALANCHE_FUJI]: chains_1.avalancheFuji,
227
272
  [chainIds_1.ARBITRUM]: chains_1.arbitrum,
228
273
  [chainIds_1.AVALANCHE]: chains_1.avalanche,
229
274
  [chainIds_1.ARBITRUM_SEPOLIA]: chains_1.arbitrumSepolia,
230
275
  [chainIds_1.BOTANIX]: exports.botanix,
276
+ [chainIds_1.MEGAETH]: exports.megaeth,
231
277
  [chainIds_1.SOURCE_ETHEREUM_MAINNET]: chains_1.mainnet,
232
278
  [chainIds_1.SOURCE_OPTIMISM_SEPOLIA]: chains_1.optimismSepolia,
233
279
  [chainIds_1.SOURCE_SEPOLIA]: chains_1.sepolia,