@gmx-io/sdk 1.6.3 → 1.6.4
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.
- package/README.md +1 -1
- package/build/cjs/scripts/generate-synthetics-abis.js +181 -0
- package/build/cjs/scripts/subsquid-codegen.js +1 -1
- package/build/cjs/src/abis/AbstractSubaccountApprovalNonceable.js +23 -0
- package/build/cjs/src/abis/CustomErrors.js +198 -88
- package/build/cjs/src/abis/ExchangeRouter.js +155 -272
- package/build/cjs/src/abis/GelatoRelayRouter.js +331 -0
- package/build/cjs/src/abis/SimulationRouter.js +583 -0
- package/build/cjs/src/abis/SubaccountGelatoRelayRouter.js +393 -0
- package/build/cjs/src/abis/SyntheticsReader.js +40 -0
- package/build/cjs/src/abis/index.js +4 -24
- package/build/cjs/src/clients/v1/modules/markets/index.js +10 -6
- package/build/cjs/src/clients/v1/modules/orders/utils.js +1 -0
- package/build/cjs/src/clients/v1/modules/orders/utils.spec.js +66 -0
- package/build/cjs/src/clients/v1/modules/positions/positions.js +2 -10
- package/build/cjs/src/clients/v1/modules/positions/positions.spec.js +1 -1
- package/build/cjs/src/clients/v1/modules/trades/trades.js +5 -1
- package/build/cjs/src/clients/v1/simulateExecuteOrder.js +33 -54
- package/build/cjs/src/clients/v1/testUtil.js +1 -1
- package/build/cjs/src/clients/v2/__tests__/editCancel.spec.js +3 -1
- package/build/cjs/src/clients/v2/__tests__/increase.spec.js +8 -6
- package/build/cjs/src/clients/v2/index.js +6 -0
- package/build/cjs/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +0 -26
- package/build/cjs/src/codegen/prebuilt/hashedMarketConfigKeys.json +1692 -561
- package/build/cjs/src/codegen/prebuilt/hashedMarketValuesKeys.json +0 -47
- package/build/cjs/src/codegen/subsquid.js +101 -2
- package/build/cjs/src/configs/__tests__/tokens.spec.js +0 -1
- package/build/cjs/src/configs/api.js +0 -4
- package/build/cjs/src/configs/batch.js +0 -1
- package/build/cjs/src/configs/chainIds.js +1 -2
- package/build/cjs/src/configs/chains.js +2 -57
- package/build/cjs/src/configs/contracts.js +77 -133
- package/build/cjs/src/configs/dataStore.js +23 -8
- package/build/cjs/src/configs/express.js +0 -2
- package/build/cjs/src/configs/gasLimits.js +0 -7
- package/build/cjs/src/configs/markets.js +0 -23
- package/build/cjs/src/configs/multichainTokens.js +1 -1
- package/build/cjs/src/configs/oracleKeeper.js +0 -2
- package/build/cjs/src/configs/tokens.js +2 -104
- package/build/cjs/src/test/fixtures/arbitrumMarkets.json +1210 -0
- package/build/cjs/src/test/fixtures/arbitrumTickers.json +1002 -0
- package/build/cjs/src/test/fixtures/arbitrumTokens.json +136 -0
- package/build/cjs/src/test/mockCrossFetch.js +28 -0
- package/build/cjs/src/utils/__tests__/fees.spec.js +264 -0
- package/build/cjs/src/utils/__tests__/marketsRisk.spec.js +80 -0
- package/build/cjs/src/utils/__tests__/numbers.spec.js +49 -0
- package/build/cjs/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +6 -25
- package/build/cjs/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +6 -25
- package/build/cjs/src/utils/__tests__/orderTransactions/swapOrders.spec.js +3 -13
- package/build/cjs/src/utils/__tests__/parseError.spec.js +23 -0
- package/build/cjs/src/utils/__tests__/uiFeeReceiver.spec.js +159 -58
- package/build/cjs/src/utils/errors/parseError.js +13 -1
- package/build/cjs/src/utils/errors/transactionsErrors.js +2 -0
- package/build/cjs/src/utils/express/utils/batchOrderUtils.js +1 -2
- package/build/cjs/src/utils/express/utils/estimateExpressParams.js +2 -0
- package/build/cjs/src/utils/express/utils/estimateExpressParams.spec.js +81 -0
- package/build/cjs/src/utils/express/utils/expressParamsUtils.js +5 -1
- package/build/cjs/src/utils/express/utils/expressParamsUtils.spec.js +27 -0
- package/build/cjs/src/utils/fees/executionFee.js +0 -1
- package/build/cjs/src/utils/fees/priceImpact.js +61 -20
- package/build/cjs/src/utils/http/validation.js +33 -0
- package/build/cjs/src/utils/markets/__tests__/api.spec.js +168 -0
- package/build/cjs/src/utils/markets/__tests__/mockMarkets.js +14 -5
- package/build/cjs/src/utils/markets/api.js +45 -3
- package/build/cjs/src/utils/markets/hashKeys.js +34 -6
- package/build/cjs/src/utils/markets/multicall.js +110 -11
- package/build/cjs/src/utils/markets/types.js +23 -0
- package/build/cjs/src/utils/markets/utils.js +15 -1
- package/build/cjs/src/utils/numbers/utils.js +26 -5
- package/build/cjs/src/utils/orderTransactions/simulation.js +13 -0
- package/build/cjs/src/utils/orderTransactions/utils.js +21 -8
- package/build/cjs/src/utils/positions/__tests__/api.spec.js +50 -0
- package/build/cjs/src/utils/positions/api.js +7 -1
- package/build/cjs/src/utils/positions/utils.js +7 -1
- package/build/cjs/src/utils/prices/utils.js +2 -0
- package/build/cjs/src/utils/subaccount/sdkClient.js +0 -1
- package/build/cjs/src/utils/swap/buildSwapStrategy.js +6 -123
- package/build/cjs/src/utils/swap/index.js +0 -3
- package/build/cjs/src/utils/swap/swapValues.js +0 -67
- package/build/cjs/src/utils/tokens/utils.js +9 -10
- package/build/cjs/src/utils/trade/__tests__/getMaxWithdrawAmount.spec.js +44 -0
- package/build/cjs/src/utils/trade/decrease.js +47 -23
- package/build/cjs/src/utils/trade/increase.js +22 -6
- package/build/cjs/src/utils/trade/types.js +0 -1
- package/build/cjs/src/utils/tradeHistory/types.js +3 -1
- package/build/cjs/src/utils/tradeHistory/utils.js +7 -0
- package/build/cjs/src/utils/twap/uiFeeReceiver.js +134 -47
- package/build/esm/scripts/generate-synthetics-abis.js +153 -0
- package/build/esm/scripts/subsquid-codegen.js +1 -1
- package/build/esm/src/abis/AbstractSubaccountApprovalNonceable.js +21 -0
- package/build/esm/src/abis/CustomErrors.js +198 -88
- package/build/esm/src/abis/ExchangeRouter.js +155 -272
- package/build/esm/src/abis/GelatoRelayRouter.js +331 -0
- package/build/esm/src/abis/SimulationRouter.js +581 -0
- package/build/esm/src/abis/SubaccountGelatoRelayRouter.js +393 -0
- package/build/esm/src/abis/SyntheticsReader.js +40 -0
- package/build/esm/src/abis/index.js +3 -23
- package/build/esm/src/clients/v1/modules/markets/index.js +10 -6
- package/build/esm/src/clients/v1/modules/orders/utils.js +1 -0
- package/build/esm/src/clients/v1/modules/orders/utils.spec.js +64 -0
- package/build/esm/src/clients/v1/modules/positions/positions.js +2 -10
- package/build/esm/src/clients/v1/modules/positions/positions.spec.js +1 -1
- package/build/esm/src/clients/v1/modules/trades/trades.js +5 -1
- package/build/esm/src/clients/v1/simulateExecuteOrder.js +35 -55
- package/build/esm/src/clients/v1/testUtil.js +1 -1
- package/build/esm/src/clients/v2/__tests__/editCancel.spec.js +3 -1
- package/build/esm/src/clients/v2/__tests__/increase.spec.js +8 -6
- package/build/esm/src/clients/v2/__tests__/swap.spec.js +1 -1
- package/build/esm/src/clients/v2/index.js +7 -1
- package/build/esm/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +0 -26
- package/build/esm/src/codegen/prebuilt/hashedMarketConfigKeys.json +1692 -561
- package/build/esm/src/codegen/prebuilt/hashedMarketValuesKeys.json +0 -47
- package/build/esm/src/codegen/subsquid.js +99 -0
- package/build/esm/src/configs/__tests__/multichainTokens.spec.js +1 -1
- package/build/esm/src/configs/__tests__/tokens.spec.js +1 -2
- package/build/esm/src/configs/api.js +1 -5
- package/build/esm/src/configs/batch.js +1 -2
- package/build/esm/src/configs/chainIds.js +0 -1
- package/build/esm/src/configs/chains.js +3 -57
- package/build/esm/src/configs/contracts.js +76 -133
- package/build/esm/src/configs/dataStore.js +16 -4
- package/build/esm/src/configs/express.js +1 -3
- package/build/esm/src/configs/gasLimits.js +1 -8
- package/build/esm/src/configs/markets.js +1 -24
- package/build/esm/src/configs/multichainTokens.js +1 -1
- package/build/esm/src/configs/oracleKeeper.js +1 -3
- package/build/esm/src/configs/tokens.js +3 -105
- package/build/esm/src/test/fixtures/arbitrumMarkets.json +1210 -0
- package/build/esm/src/test/fixtures/arbitrumTickers.json +1002 -0
- package/build/esm/src/test/fixtures/arbitrumTokens.json +136 -0
- package/build/esm/src/test/mockCrossFetch.js +23 -0
- package/build/esm/src/utils/__tests__/fees.spec.js +266 -2
- package/build/esm/src/utils/__tests__/marketsRisk.spec.js +78 -0
- package/build/esm/src/utils/__tests__/numbers.spec.js +50 -1
- package/build/esm/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +6 -25
- package/build/esm/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +6 -25
- package/build/esm/src/utils/__tests__/orderTransactions/swapOrders.spec.js +3 -13
- package/build/esm/src/utils/__tests__/parseError.spec.js +25 -2
- package/build/esm/src/utils/__tests__/uiFeeReceiver.spec.js +161 -60
- package/build/esm/src/utils/errors/parseError.js +12 -1
- package/build/esm/src/utils/errors/transactionsErrors.js +2 -0
- package/build/esm/src/utils/express/utils/batchOrderUtils.js +2 -3
- package/build/esm/src/utils/express/utils/estimateExpressParams.js +2 -0
- package/build/esm/src/utils/express/utils/estimateExpressParams.spec.js +79 -0
- package/build/esm/src/utils/express/utils/expressParamsUtils.js +3 -0
- package/build/esm/src/utils/express/utils/expressParamsUtils.spec.js +25 -0
- package/build/esm/src/utils/fees/executionFee.js +0 -1
- package/build/esm/src/utils/fees/priceImpact.js +54 -13
- package/build/esm/src/utils/http/validation.js +28 -0
- package/build/esm/src/utils/markets/__tests__/api.spec.js +166 -0
- package/build/esm/src/utils/markets/__tests__/mockMarkets.js +15 -6
- package/build/esm/src/utils/markets/api.js +42 -2
- package/build/esm/src/utils/markets/hashKeys.js +35 -7
- package/build/esm/src/utils/markets/multicall.js +108 -11
- package/build/esm/src/utils/markets/types.js +22 -1
- package/build/esm/src/utils/markets/utils.js +13 -0
- package/build/esm/src/utils/numbers/utils.js +21 -3
- package/build/esm/src/utils/orderTransactions/simulation.js +9 -0
- package/build/esm/src/utils/orderTransactions/utils.js +22 -9
- package/build/esm/src/utils/positions/__tests__/api.spec.js +48 -0
- package/build/esm/src/utils/positions/api.js +7 -1
- package/build/esm/src/utils/positions/utils.js +7 -1
- package/build/esm/src/utils/prices/utils.js +2 -0
- package/build/esm/src/utils/subaccount/sdkClient.js +0 -1
- package/build/esm/src/utils/swap/buildSwapStrategy.js +7 -124
- package/build/esm/src/utils/swap/index.js +0 -3
- package/build/esm/src/utils/swap/swapValues.js +1 -68
- package/build/esm/src/utils/tokens/utils.js +8 -8
- package/build/esm/src/utils/trade/__tests__/getMaxWithdrawAmount.spec.js +45 -1
- package/build/esm/src/utils/trade/decrease.js +44 -22
- package/build/esm/src/utils/trade/increase.js +23 -7
- package/build/esm/src/utils/trade/types.js +0 -1
- package/build/esm/src/utils/tradeHistory/types.js +2 -0
- package/build/esm/src/utils/tradeHistory/utils.js +7 -0
- package/build/esm/src/utils/twap/uiFeeReceiver.js +127 -42
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/types/scripts/generate-synthetics-abis.d.ts +17 -0
- package/build/types/src/abis/AbstractSubaccountApprovalNonceable.d.ts +16 -0
- package/build/types/src/abis/CustomErrors.d.ts +331 -139
- package/build/types/src/abis/ExchangeRouter.d.ts +121 -209
- package/build/types/src/abis/GelatoRelayRouter.d.ts +258 -0
- package/build/types/src/abis/SimulationRouter.d.ts +448 -0
- package/build/types/src/abis/SubaccountGelatoRelayRouter.d.ts +307 -0
- package/build/types/src/abis/SyntheticsReader.d.ts +32 -0
- package/build/types/src/abis/index.d.ts +8108 -7891
- package/build/types/src/clients/v1/index.d.ts +1 -1
- package/build/types/src/clients/v1/modules/base.d.ts +1 -1
- package/build/types/src/clients/v1/modules/orders/utils.spec.d.ts +1 -0
- package/build/types/src/clients/v1/multicall.d.ts +1 -1
- package/build/types/src/clients/v1/simulateExecuteOrder.d.ts +0 -1
- package/build/types/src/clients/v2/index.d.ts +2 -0
- package/build/types/src/codegen/prebuilt/index.d.ts +1692 -634
- package/build/types/src/codegen/subsquid.d.ts +368 -0
- package/build/types/src/configs/chainIds.d.ts +0 -1
- package/build/types/src/configs/chains.d.ts +9 -34
- package/build/types/src/configs/contracts.d.ts +5 -66
- package/build/types/src/configs/dataStore.d.ts +8 -2
- package/build/types/src/configs/multichainTokens.d.ts +1 -1
- package/build/types/src/test/mockCrossFetch.d.ts +2 -0
- package/build/types/src/utils/__tests__/marketsRisk.spec.d.ts +1 -0
- package/build/types/src/utils/errors/parseError.d.ts +1 -0
- package/build/types/src/utils/errors/transactionsErrors.d.ts +2 -0
- package/build/types/src/utils/express/types.d.ts +2 -1
- package/build/types/src/utils/express/utils/batchOrderUtils.d.ts +1 -1
- package/build/types/src/utils/express/utils/estimateExpressParams.spec.d.ts +1 -0
- package/build/types/src/utils/express/utils/expressParamsUtils.d.ts +1 -0
- package/build/types/src/utils/express/utils/expressParamsUtils.spec.d.ts +1 -0
- package/build/types/src/utils/express/utils/globalExpressParams.d.ts +1 -1
- package/build/types/src/utils/fees/priceImpact.d.ts +2 -0
- package/build/types/src/utils/http/validation.d.ts +7 -0
- package/build/types/src/utils/markets/__tests__/api.spec.d.ts +1 -0
- package/build/types/src/utils/markets/api.d.ts +7 -1
- package/build/types/src/utils/markets/hashKeys.d.ts +1 -1
- package/build/types/src/utils/markets/multicall.d.ts +13 -2
- package/build/types/src/utils/markets/types.d.ts +18 -4
- package/build/types/src/utils/markets/utils.d.ts +2 -1
- package/build/types/src/utils/numbers/utils.d.ts +5 -1
- package/build/types/src/utils/orderTransactions/simulation.d.ts +1 -0
- package/build/types/src/utils/orders/types.d.ts +2 -0
- package/build/types/src/utils/positions/__tests__/api.spec.d.ts +1 -0
- package/build/types/src/utils/positions/types.d.ts +1 -0
- package/build/types/src/utils/positions/utils.d.ts +1 -0
- package/build/types/src/utils/prices/utils.d.ts +1 -0
- package/build/types/src/utils/swap/buildSwapStrategy.d.ts +3 -5
- package/build/types/src/utils/swap/index.d.ts +0 -3
- package/build/types/src/utils/swap/swapValues.d.ts +1 -1
- package/build/types/src/utils/swap/types.d.ts +2 -7
- package/build/types/src/utils/tokens/types.d.ts +0 -1
- package/build/types/src/utils/tokens/utils.d.ts +1 -2
- package/build/types/src/utils/trade/decrease.d.ts +11 -0
- package/build/types/src/utils/trade/types.d.ts +2 -8
- package/build/types/src/utils/tradeHistory/types.d.ts +7 -0
- package/build/types/src/utils/twap/types.d.ts +1 -1
- package/build/types/src/utils/twap/uiFeeReceiver.d.ts +23 -22
- package/package.json +10 -7
- package/build/cjs/src/abis/StBTC.js +0 -513
- package/build/cjs/src/utils/swap/botanixStaking.js +0 -90
- package/build/cjs/src/utils/swap/externalSwapPath.js +0 -41
- package/build/cjs/src/utils/swap/externalSwapQuoteByPath.js +0 -27
- package/build/esm/src/abis/StBTC.js +0 -511
- package/build/esm/src/utils/swap/botanixStaking.js +0 -83
- package/build/esm/src/utils/swap/externalSwapPath.js +0 -37
- package/build/esm/src/utils/swap/externalSwapQuoteByPath.js +0 -23
- package/build/types/src/abis/StBTC.d.ts +0 -932
- package/build/types/src/utils/swap/botanixStaking.d.ts +0 -11
- package/build/types/src/utils/swap/externalSwapPath.d.ts +0 -13
- package/build/types/src/utils/swap/externalSwapQuoteByPath.d.ts +0 -6
|
@@ -1,51 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"3637": {
|
|
3
|
-
"0x6682BB60590a045A956541B1433f016Ed22E361d": {
|
|
4
|
-
"longPoolAmount": "0x69a00ee30c22f748c1aa54b8f77a5b786c365e817497322cea18cba5e12f8446",
|
|
5
|
-
"shortPoolAmount": "0x69a00ee30c22f748c1aa54b8f77a5b786c365e817497322cea18cba5e12f8446",
|
|
6
|
-
"positionImpactPoolAmount": "0xe72b2da1beeaa2cde5f5861b60f1adb27ed581864c6e39ecb37f8794e03e174d",
|
|
7
|
-
"swapImpactPoolAmountLong": "0x02603eac1d091c38978f864769361f985169348da32b431d4c0ee7c8559fddc1",
|
|
8
|
-
"swapImpactPoolAmountShort": "0x02603eac1d091c38978f864769361f985169348da32b431d4c0ee7c8559fddc1",
|
|
9
|
-
"longInterestUsingLongToken": "0x214be68b117ab3421e08bccb2521f805f76ae486dc92f1464abb3d7ed9ce907c",
|
|
10
|
-
"longInterestUsingShortToken": "0x214be68b117ab3421e08bccb2521f805f76ae486dc92f1464abb3d7ed9ce907c",
|
|
11
|
-
"shortInterestUsingLongToken": "0x44a1c0cc7e5e724918f78b1ae77c240bc1dec8098ddefd9fb15dfb4e06f58b39",
|
|
12
|
-
"shortInterestUsingShortToken": "0x44a1c0cc7e5e724918f78b1ae77c240bc1dec8098ddefd9fb15dfb4e06f58b39",
|
|
13
|
-
"longInterestInTokensUsingLongToken": "0xddc7e3aefe087c9ff970def36636c36cefa45ea75bf9d99c2747b921d46e3936",
|
|
14
|
-
"longInterestInTokensUsingShortToken": "0xddc7e3aefe087c9ff970def36636c36cefa45ea75bf9d99c2747b921d46e3936",
|
|
15
|
-
"shortInterestInTokensUsingLongToken": "0x85a20a5a323d16c5f5ecbc2d6352b4f47dc7921eef88e4cc987b3c8022e6a87f",
|
|
16
|
-
"shortInterestInTokensUsingShortToken": "0x85a20a5a323d16c5f5ecbc2d6352b4f47dc7921eef88e4cc987b3c8022e6a87f"
|
|
17
|
-
},
|
|
18
|
-
"0x2f95a2529328E427d3204555F164B1102086690E": {
|
|
19
|
-
"longPoolAmount": "0xecf9656e2b727f8d13f37e55d2400a942dccac9d6381148f77d902fcbe2cf7ee",
|
|
20
|
-
"shortPoolAmount": "0xcfec2d18f35126352a2ce695309d775bbee4fafefe3413f7042939145a8b0573",
|
|
21
|
-
"positionImpactPoolAmount": "0xf6f96ba2726dd8a85b2e9405309d1d848df3d96880d59321dcc218ef8d980668",
|
|
22
|
-
"swapImpactPoolAmountLong": "0x357c18aaf9d45a361d90863904ade24e17fb77c64a416ece27086f31a0d8b054",
|
|
23
|
-
"swapImpactPoolAmountShort": "0xbbb05a1d798d61588b2c44b94b16386d41137dbe373c187371d86d997a9147e1",
|
|
24
|
-
"longInterestUsingLongToken": "0x129ec5ddb1853ff59fe335e75bd2fcfa6bbb9269fdc499282cf18e2f4d5964c9",
|
|
25
|
-
"longInterestUsingShortToken": "0x3f654d7efcfe4f6cb7c83aa01e873c16e5af513cc4f87adf6eed255042a258fc",
|
|
26
|
-
"shortInterestUsingLongToken": "0x1f410105f8be87f75b58b9cdee8d74667aced7496bb99a82f07f68db7ed1beb4",
|
|
27
|
-
"shortInterestUsingShortToken": "0x51765c7340efd23bef0fef20734bbc293d17b324540a253b57bd0337038c7668",
|
|
28
|
-
"longInterestInTokensUsingLongToken": "0x7f172a05ae40ac360e65ac522e8714499e4695d2250d219b96a6cf33fdbc083b",
|
|
29
|
-
"longInterestInTokensUsingShortToken": "0xc34e82056451cf4f589cdb5609780092eef55a11937ecb6b97120c6425979ea4",
|
|
30
|
-
"shortInterestInTokensUsingLongToken": "0xdfc2472d4b9b2c6f4b2754c1ade2bef5e4fe747aa61d86922f62b34d4f9b09bb",
|
|
31
|
-
"shortInterestInTokensUsingShortToken": "0x3eff00ec29f463c99b6b378801ecb7b167366433326231573f74fa7ae20bbe20"
|
|
32
|
-
},
|
|
33
|
-
"0x6bFDD025827F7CE130BcfC446927AEF34ae2a98d": {
|
|
34
|
-
"longPoolAmount": "0x3e705a690a4f6e12b648b46021d64b1a19979c3930bc633008e776bfdcffa768",
|
|
35
|
-
"shortPoolAmount": "0x3e705a690a4f6e12b648b46021d64b1a19979c3930bc633008e776bfdcffa768",
|
|
36
|
-
"positionImpactPoolAmount": "0x1be724cd8642f6c98c8e6633f9f575d86a98fece1cd51e45ed7069c050dd1d63",
|
|
37
|
-
"swapImpactPoolAmountLong": "0xeb84c49e6ea3a599a47e95dda2e1d815088f3d9e477e2ddec50ee2f862e98a17",
|
|
38
|
-
"swapImpactPoolAmountShort": "0xeb84c49e6ea3a599a47e95dda2e1d815088f3d9e477e2ddec50ee2f862e98a17",
|
|
39
|
-
"longInterestUsingLongToken": "0x14569ffe0e8d775adefb50fc1d34370af1b37a000cafbb1f1ae069b594f9f0bd",
|
|
40
|
-
"longInterestUsingShortToken": "0x14569ffe0e8d775adefb50fc1d34370af1b37a000cafbb1f1ae069b594f9f0bd",
|
|
41
|
-
"shortInterestUsingLongToken": "0xe37270197048b507763f8de54b0cc4c02fe2d03bf112ddf44d60e119144de97f",
|
|
42
|
-
"shortInterestUsingShortToken": "0xe37270197048b507763f8de54b0cc4c02fe2d03bf112ddf44d60e119144de97f",
|
|
43
|
-
"longInterestInTokensUsingLongToken": "0x117853215d2155afd79c91f4586cd55c7cc7fa8885a5ae4cb9203c9df1e8f7e5",
|
|
44
|
-
"longInterestInTokensUsingShortToken": "0x117853215d2155afd79c91f4586cd55c7cc7fa8885a5ae4cb9203c9df1e8f7e5",
|
|
45
|
-
"shortInterestInTokensUsingLongToken": "0xe8a3c7877b603e90c025cd38a1f20d1b94f4f7a8ec7054e17b629218c7474c27",
|
|
46
|
-
"shortInterestInTokensUsingShortToken": "0xe8a3c7877b603e90c025cd38a1f20d1b94f4f7a8ec7054e17b629218c7474c27"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
2
|
"4326": {
|
|
50
3
|
"0x31EdCc52bE2Fa55Ba68f50409F9e6b7d9EbF3D59": {
|
|
51
4
|
"longPoolAmount": "0x48cbe02151ba490e09da39093e5b8f5a17a8561b0eec2a1bac7c6ed706989b54",
|
|
@@ -1,7 +1,64 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.VolumeInfoOrderByInput = exports.TraderReferralTradeStatsByHourOrderByInput = void 0;
|
|
3
|
+
exports.TradeActionOrderByInput = exports.SwapVolumeInfoOrderByInput = exports.SwapInfoOrderByInput = exports.SwapFeesInfoWithPeriodOrderByInput = exports.SwapFeesInfoOrderByInput = exports.StakingPowerOrderByInput = exports.ReferralCodeOwnerOrderByInput = exports.ProcessorStatusOrderByInput = exports.PriceType = exports.PriceOrderByInput = exports.PositionVolumeInfoOrderByInput = exports.PositionOrderByInput = exports.PositionFeesInfoWithPeriodOrderByInput = exports.PositionFeesEntityType = exports.PositionFeesEntityOrderByInput = exports.PositionChangeType = exports.PositionChangeOrderByInput = exports.PnlAprSnapshotOrderByInput = exports.PlatformStatsOrderByInput = exports.OrderStatus = exports.OrderOrderByInput = exports.OnChainSettingType = exports.OnChainSettingOrderByInput = exports.NetworkStakingPowerOrderByInput = exports.MultichainSamechainFundingEventOrderByInput = exports.MultichainFundingSendEventOrderByInput = exports.MultichainFundingReceiveEventOrderByInput = exports.MultichainFundingOperation = exports.MarketOrderByInput = exports.MarketInfoOrderByInput = exports.GlvOrderByInput = exports.FundingRateSnapshotOrderByInput = exports.EntityType = exports.DistributionOrderByInput = exports.CumulativePoolValueOrderByInput = exports.CumulativePnlOrderByInput = exports.CollectedFeesInfoOrderByInput = exports.ClaimableFundingFeeInfoOrderByInput = exports.ClaimableCollateralOrderByInput = exports.ClaimableCollateralGroupOrderByInput = exports.ClaimableAmountOrderByInput = exports.ClaimRefOrderByInput = exports.ClaimActionType = exports.ClaimActionOrderByInput = exports.BorrowingRateSnapshotOrderByInput = exports.AprSnapshotOrderByInput = exports.AffiliateTraderStatsByHourOrderByInput = exports.AffiliateReferralTradeStatsByHourOrderByInput = exports.AccountStatOrderByInput = exports.AccountPnlRankMetricOrderByInput = void 0;
|
|
4
|
+
exports.VolumeInfoOrderByInput = exports.TraderReferralTradeStatsByHourOrderByInput = exports.TraderReferralOrderByInput = void 0;
|
|
5
|
+
var AccountPnlRankMetricOrderByInput;
|
|
6
|
+
(function (AccountPnlRankMetricOrderByInput) {
|
|
7
|
+
AccountPnlRankMetricOrderByInput["account_ASC"] = "account_ASC";
|
|
8
|
+
AccountPnlRankMetricOrderByInput["account_ASC_NULLS_FIRST"] = "account_ASC_NULLS_FIRST";
|
|
9
|
+
AccountPnlRankMetricOrderByInput["account_ASC_NULLS_LAST"] = "account_ASC_NULLS_LAST";
|
|
10
|
+
AccountPnlRankMetricOrderByInput["account_DESC"] = "account_DESC";
|
|
11
|
+
AccountPnlRankMetricOrderByInput["account_DESC_NULLS_FIRST"] = "account_DESC_NULLS_FIRST";
|
|
12
|
+
AccountPnlRankMetricOrderByInput["account_DESC_NULLS_LAST"] = "account_DESC_NULLS_LAST";
|
|
13
|
+
AccountPnlRankMetricOrderByInput["fromTimestamp_ASC"] = "fromTimestamp_ASC";
|
|
14
|
+
AccountPnlRankMetricOrderByInput["fromTimestamp_ASC_NULLS_FIRST"] = "fromTimestamp_ASC_NULLS_FIRST";
|
|
15
|
+
AccountPnlRankMetricOrderByInput["fromTimestamp_ASC_NULLS_LAST"] = "fromTimestamp_ASC_NULLS_LAST";
|
|
16
|
+
AccountPnlRankMetricOrderByInput["fromTimestamp_DESC"] = "fromTimestamp_DESC";
|
|
17
|
+
AccountPnlRankMetricOrderByInput["fromTimestamp_DESC_NULLS_FIRST"] = "fromTimestamp_DESC_NULLS_FIRST";
|
|
18
|
+
AccountPnlRankMetricOrderByInput["fromTimestamp_DESC_NULLS_LAST"] = "fromTimestamp_DESC_NULLS_LAST";
|
|
19
|
+
AccountPnlRankMetricOrderByInput["id_ASC"] = "id_ASC";
|
|
20
|
+
AccountPnlRankMetricOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
|
|
21
|
+
AccountPnlRankMetricOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
|
|
22
|
+
AccountPnlRankMetricOrderByInput["id_DESC"] = "id_DESC";
|
|
23
|
+
AccountPnlRankMetricOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
|
|
24
|
+
AccountPnlRankMetricOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
|
|
25
|
+
AccountPnlRankMetricOrderByInput["maxCapital_ASC"] = "maxCapital_ASC";
|
|
26
|
+
AccountPnlRankMetricOrderByInput["maxCapital_ASC_NULLS_FIRST"] = "maxCapital_ASC_NULLS_FIRST";
|
|
27
|
+
AccountPnlRankMetricOrderByInput["maxCapital_ASC_NULLS_LAST"] = "maxCapital_ASC_NULLS_LAST";
|
|
28
|
+
AccountPnlRankMetricOrderByInput["maxCapital_DESC"] = "maxCapital_DESC";
|
|
29
|
+
AccountPnlRankMetricOrderByInput["maxCapital_DESC_NULLS_FIRST"] = "maxCapital_DESC_NULLS_FIRST";
|
|
30
|
+
AccountPnlRankMetricOrderByInput["maxCapital_DESC_NULLS_LAST"] = "maxCapital_DESC_NULLS_LAST";
|
|
31
|
+
AccountPnlRankMetricOrderByInput["period_ASC"] = "period_ASC";
|
|
32
|
+
AccountPnlRankMetricOrderByInput["period_ASC_NULLS_FIRST"] = "period_ASC_NULLS_FIRST";
|
|
33
|
+
AccountPnlRankMetricOrderByInput["period_ASC_NULLS_LAST"] = "period_ASC_NULLS_LAST";
|
|
34
|
+
AccountPnlRankMetricOrderByInput["period_DESC"] = "period_DESC";
|
|
35
|
+
AccountPnlRankMetricOrderByInput["period_DESC_NULLS_FIRST"] = "period_DESC_NULLS_FIRST";
|
|
36
|
+
AccountPnlRankMetricOrderByInput["period_DESC_NULLS_LAST"] = "period_DESC_NULLS_LAST";
|
|
37
|
+
AccountPnlRankMetricOrderByInput["pnlBps_ASC"] = "pnlBps_ASC";
|
|
38
|
+
AccountPnlRankMetricOrderByInput["pnlBps_ASC_NULLS_FIRST"] = "pnlBps_ASC_NULLS_FIRST";
|
|
39
|
+
AccountPnlRankMetricOrderByInput["pnlBps_ASC_NULLS_LAST"] = "pnlBps_ASC_NULLS_LAST";
|
|
40
|
+
AccountPnlRankMetricOrderByInput["pnlBps_DESC"] = "pnlBps_DESC";
|
|
41
|
+
AccountPnlRankMetricOrderByInput["pnlBps_DESC_NULLS_FIRST"] = "pnlBps_DESC_NULLS_FIRST";
|
|
42
|
+
AccountPnlRankMetricOrderByInput["pnlBps_DESC_NULLS_LAST"] = "pnlBps_DESC_NULLS_LAST";
|
|
43
|
+
AccountPnlRankMetricOrderByInput["pnlUsd_ASC"] = "pnlUsd_ASC";
|
|
44
|
+
AccountPnlRankMetricOrderByInput["pnlUsd_ASC_NULLS_FIRST"] = "pnlUsd_ASC_NULLS_FIRST";
|
|
45
|
+
AccountPnlRankMetricOrderByInput["pnlUsd_ASC_NULLS_LAST"] = "pnlUsd_ASC_NULLS_LAST";
|
|
46
|
+
AccountPnlRankMetricOrderByInput["pnlUsd_DESC"] = "pnlUsd_DESC";
|
|
47
|
+
AccountPnlRankMetricOrderByInput["pnlUsd_DESC_NULLS_FIRST"] = "pnlUsd_DESC_NULLS_FIRST";
|
|
48
|
+
AccountPnlRankMetricOrderByInput["pnlUsd_DESC_NULLS_LAST"] = "pnlUsd_DESC_NULLS_LAST";
|
|
49
|
+
AccountPnlRankMetricOrderByInput["updatedAt_ASC"] = "updatedAt_ASC";
|
|
50
|
+
AccountPnlRankMetricOrderByInput["updatedAt_ASC_NULLS_FIRST"] = "updatedAt_ASC_NULLS_FIRST";
|
|
51
|
+
AccountPnlRankMetricOrderByInput["updatedAt_ASC_NULLS_LAST"] = "updatedAt_ASC_NULLS_LAST";
|
|
52
|
+
AccountPnlRankMetricOrderByInput["updatedAt_DESC"] = "updatedAt_DESC";
|
|
53
|
+
AccountPnlRankMetricOrderByInput["updatedAt_DESC_NULLS_FIRST"] = "updatedAt_DESC_NULLS_FIRST";
|
|
54
|
+
AccountPnlRankMetricOrderByInput["updatedAt_DESC_NULLS_LAST"] = "updatedAt_DESC_NULLS_LAST";
|
|
55
|
+
AccountPnlRankMetricOrderByInput["volume_ASC"] = "volume_ASC";
|
|
56
|
+
AccountPnlRankMetricOrderByInput["volume_ASC_NULLS_FIRST"] = "volume_ASC_NULLS_FIRST";
|
|
57
|
+
AccountPnlRankMetricOrderByInput["volume_ASC_NULLS_LAST"] = "volume_ASC_NULLS_LAST";
|
|
58
|
+
AccountPnlRankMetricOrderByInput["volume_DESC"] = "volume_DESC";
|
|
59
|
+
AccountPnlRankMetricOrderByInput["volume_DESC_NULLS_FIRST"] = "volume_DESC_NULLS_FIRST";
|
|
60
|
+
AccountPnlRankMetricOrderByInput["volume_DESC_NULLS_LAST"] = "volume_DESC_NULLS_LAST";
|
|
61
|
+
})(AccountPnlRankMetricOrderByInput || (exports.AccountPnlRankMetricOrderByInput = AccountPnlRankMetricOrderByInput = {}));
|
|
5
62
|
var AccountStatOrderByInput;
|
|
6
63
|
(function (AccountStatOrderByInput) {
|
|
7
64
|
AccountStatOrderByInput["account_ASC"] = "account_ASC";
|
|
@@ -926,6 +983,18 @@ var MarketInfoOrderByInput;
|
|
|
926
983
|
MarketInfoOrderByInput["fundingIncreaseFactorPerSecond_DESC"] = "fundingIncreaseFactorPerSecond_DESC";
|
|
927
984
|
MarketInfoOrderByInput["fundingIncreaseFactorPerSecond_DESC_NULLS_FIRST"] = "fundingIncreaseFactorPerSecond_DESC_NULLS_FIRST";
|
|
928
985
|
MarketInfoOrderByInput["fundingIncreaseFactorPerSecond_DESC_NULLS_LAST"] = "fundingIncreaseFactorPerSecond_DESC_NULLS_LAST";
|
|
986
|
+
MarketInfoOrderByInput["fundingUpdatedAt_ASC"] = "fundingUpdatedAt_ASC";
|
|
987
|
+
MarketInfoOrderByInput["fundingUpdatedAt_ASC_NULLS_FIRST"] = "fundingUpdatedAt_ASC_NULLS_FIRST";
|
|
988
|
+
MarketInfoOrderByInput["fundingUpdatedAt_ASC_NULLS_LAST"] = "fundingUpdatedAt_ASC_NULLS_LAST";
|
|
989
|
+
MarketInfoOrderByInput["fundingUpdatedAt_DESC"] = "fundingUpdatedAt_DESC";
|
|
990
|
+
MarketInfoOrderByInput["fundingUpdatedAt_DESC_NULLS_FIRST"] = "fundingUpdatedAt_DESC_NULLS_FIRST";
|
|
991
|
+
MarketInfoOrderByInput["fundingUpdatedAt_DESC_NULLS_LAST"] = "fundingUpdatedAt_DESC_NULLS_LAST";
|
|
992
|
+
MarketInfoOrderByInput["minFundingIncreaseRatePerSecond_ASC"] = "minFundingIncreaseRatePerSecond_ASC";
|
|
993
|
+
MarketInfoOrderByInput["minFundingIncreaseRatePerSecond_ASC_NULLS_FIRST"] = "minFundingIncreaseRatePerSecond_ASC_NULLS_FIRST";
|
|
994
|
+
MarketInfoOrderByInput["minFundingIncreaseRatePerSecond_ASC_NULLS_LAST"] = "minFundingIncreaseRatePerSecond_ASC_NULLS_LAST";
|
|
995
|
+
MarketInfoOrderByInput["minFundingIncreaseRatePerSecond_DESC"] = "minFundingIncreaseRatePerSecond_DESC";
|
|
996
|
+
MarketInfoOrderByInput["minFundingIncreaseRatePerSecond_DESC_NULLS_FIRST"] = "minFundingIncreaseRatePerSecond_DESC_NULLS_FIRST";
|
|
997
|
+
MarketInfoOrderByInput["minFundingIncreaseRatePerSecond_DESC_NULLS_LAST"] = "minFundingIncreaseRatePerSecond_DESC_NULLS_LAST";
|
|
929
998
|
MarketInfoOrderByInput["id_ASC"] = "id_ASC";
|
|
930
999
|
MarketInfoOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
|
|
931
1000
|
MarketInfoOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
|
|
@@ -1244,6 +1313,12 @@ var MarketInfoOrderByInput;
|
|
|
1244
1313
|
MarketInfoOrderByInput["reserveFactorShort_DESC"] = "reserveFactorShort_DESC";
|
|
1245
1314
|
MarketInfoOrderByInput["reserveFactorShort_DESC_NULLS_FIRST"] = "reserveFactorShort_DESC_NULLS_FIRST";
|
|
1246
1315
|
MarketInfoOrderByInput["reserveFactorShort_DESC_NULLS_LAST"] = "reserveFactorShort_DESC_NULLS_LAST";
|
|
1316
|
+
MarketInfoOrderByInput["savedFundingFactorPerSecond_ASC"] = "savedFundingFactorPerSecond_ASC";
|
|
1317
|
+
MarketInfoOrderByInput["savedFundingFactorPerSecond_ASC_NULLS_FIRST"] = "savedFundingFactorPerSecond_ASC_NULLS_FIRST";
|
|
1318
|
+
MarketInfoOrderByInput["savedFundingFactorPerSecond_ASC_NULLS_LAST"] = "savedFundingFactorPerSecond_ASC_NULLS_LAST";
|
|
1319
|
+
MarketInfoOrderByInput["savedFundingFactorPerSecond_DESC"] = "savedFundingFactorPerSecond_DESC";
|
|
1320
|
+
MarketInfoOrderByInput["savedFundingFactorPerSecond_DESC_NULLS_FIRST"] = "savedFundingFactorPerSecond_DESC_NULLS_FIRST";
|
|
1321
|
+
MarketInfoOrderByInput["savedFundingFactorPerSecond_DESC_NULLS_LAST"] = "savedFundingFactorPerSecond_DESC_NULLS_LAST";
|
|
1247
1322
|
MarketInfoOrderByInput["shortOpenInterestInTokensUsingLongToken_ASC"] = "shortOpenInterestInTokensUsingLongToken_ASC";
|
|
1248
1323
|
MarketInfoOrderByInput["shortOpenInterestInTokensUsingLongToken_ASC_NULLS_FIRST"] = "shortOpenInterestInTokensUsingLongToken_ASC_NULLS_FIRST";
|
|
1249
1324
|
MarketInfoOrderByInput["shortOpenInterestInTokensUsingLongToken_ASC_NULLS_LAST"] = "shortOpenInterestInTokensUsingLongToken_ASC_NULLS_LAST";
|
|
@@ -3089,6 +3164,12 @@ var TradeActionOrderByInput;
|
|
|
3089
3164
|
TradeActionOrderByInput["marketAddress_DESC"] = "marketAddress_DESC";
|
|
3090
3165
|
TradeActionOrderByInput["marketAddress_DESC_NULLS_FIRST"] = "marketAddress_DESC_NULLS_FIRST";
|
|
3091
3166
|
TradeActionOrderByInput["marketAddress_DESC_NULLS_LAST"] = "marketAddress_DESC_NULLS_LAST";
|
|
3167
|
+
TradeActionOrderByInput["minCollateralFactorForLiquidation_ASC"] = "minCollateralFactorForLiquidation_ASC";
|
|
3168
|
+
TradeActionOrderByInput["minCollateralFactorForLiquidation_ASC_NULLS_FIRST"] = "minCollateralFactorForLiquidation_ASC_NULLS_FIRST";
|
|
3169
|
+
TradeActionOrderByInput["minCollateralFactorForLiquidation_ASC_NULLS_LAST"] = "minCollateralFactorForLiquidation_ASC_NULLS_LAST";
|
|
3170
|
+
TradeActionOrderByInput["minCollateralFactorForLiquidation_DESC"] = "minCollateralFactorForLiquidation_DESC";
|
|
3171
|
+
TradeActionOrderByInput["minCollateralFactorForLiquidation_DESC_NULLS_FIRST"] = "minCollateralFactorForLiquidation_DESC_NULLS_FIRST";
|
|
3172
|
+
TradeActionOrderByInput["minCollateralFactorForLiquidation_DESC_NULLS_LAST"] = "minCollateralFactorForLiquidation_DESC_NULLS_LAST";
|
|
3092
3173
|
TradeActionOrderByInput["minOutputAmount_ASC"] = "minOutputAmount_ASC";
|
|
3093
3174
|
TradeActionOrderByInput["minOutputAmount_ASC_NULLS_FIRST"] = "minOutputAmount_ASC_NULLS_FIRST";
|
|
3094
3175
|
TradeActionOrderByInput["minOutputAmount_ASC_NULLS_LAST"] = "minOutputAmount_ASC_NULLS_LAST";
|
|
@@ -3125,6 +3206,24 @@ var TradeActionOrderByInput;
|
|
|
3125
3206
|
TradeActionOrderByInput["positionFeeAmount_DESC"] = "positionFeeAmount_DESC";
|
|
3126
3207
|
TradeActionOrderByInput["positionFeeAmount_DESC_NULLS_FIRST"] = "positionFeeAmount_DESC_NULLS_FIRST";
|
|
3127
3208
|
TradeActionOrderByInput["positionFeeAmount_DESC_NULLS_LAST"] = "positionFeeAmount_DESC_NULLS_LAST";
|
|
3209
|
+
TradeActionOrderByInput["positionKey_ASC"] = "positionKey_ASC";
|
|
3210
|
+
TradeActionOrderByInput["positionKey_ASC_NULLS_FIRST"] = "positionKey_ASC_NULLS_FIRST";
|
|
3211
|
+
TradeActionOrderByInput["positionKey_ASC_NULLS_LAST"] = "positionKey_ASC_NULLS_LAST";
|
|
3212
|
+
TradeActionOrderByInput["positionKey_DESC"] = "positionKey_DESC";
|
|
3213
|
+
TradeActionOrderByInput["positionKey_DESC_NULLS_FIRST"] = "positionKey_DESC_NULLS_FIRST";
|
|
3214
|
+
TradeActionOrderByInput["positionKey_DESC_NULLS_LAST"] = "positionKey_DESC_NULLS_LAST";
|
|
3215
|
+
TradeActionOrderByInput["positionSizeInTokens_ASC"] = "positionSizeInTokens_ASC";
|
|
3216
|
+
TradeActionOrderByInput["positionSizeInTokens_ASC_NULLS_FIRST"] = "positionSizeInTokens_ASC_NULLS_FIRST";
|
|
3217
|
+
TradeActionOrderByInput["positionSizeInTokens_ASC_NULLS_LAST"] = "positionSizeInTokens_ASC_NULLS_LAST";
|
|
3218
|
+
TradeActionOrderByInput["positionSizeInTokens_DESC"] = "positionSizeInTokens_DESC";
|
|
3219
|
+
TradeActionOrderByInput["positionSizeInTokens_DESC_NULLS_FIRST"] = "positionSizeInTokens_DESC_NULLS_FIRST";
|
|
3220
|
+
TradeActionOrderByInput["positionSizeInTokens_DESC_NULLS_LAST"] = "positionSizeInTokens_DESC_NULLS_LAST";
|
|
3221
|
+
TradeActionOrderByInput["positionSizeInUsd_ASC"] = "positionSizeInUsd_ASC";
|
|
3222
|
+
TradeActionOrderByInput["positionSizeInUsd_ASC_NULLS_FIRST"] = "positionSizeInUsd_ASC_NULLS_FIRST";
|
|
3223
|
+
TradeActionOrderByInput["positionSizeInUsd_ASC_NULLS_LAST"] = "positionSizeInUsd_ASC_NULLS_LAST";
|
|
3224
|
+
TradeActionOrderByInput["positionSizeInUsd_DESC"] = "positionSizeInUsd_DESC";
|
|
3225
|
+
TradeActionOrderByInput["positionSizeInUsd_DESC_NULLS_FIRST"] = "positionSizeInUsd_DESC_NULLS_FIRST";
|
|
3226
|
+
TradeActionOrderByInput["positionSizeInUsd_DESC_NULLS_LAST"] = "positionSizeInUsd_DESC_NULLS_LAST";
|
|
3128
3227
|
TradeActionOrderByInput["priceImpactAmount_ASC"] = "priceImpactAmount_ASC";
|
|
3129
3228
|
TradeActionOrderByInput["priceImpactAmount_ASC_NULLS_FIRST"] = "priceImpactAmount_ASC_NULLS_FIRST";
|
|
3130
3229
|
TradeActionOrderByInput["priceImpactAmount_ASC_NULLS_LAST"] = "priceImpactAmount_ASC_NULLS_LAST";
|
|
@@ -7,7 +7,6 @@ const API_URLS = {
|
|
|
7
7
|
[chains_1.ARBITRUM]: "https://arbitrum.gmxapi.io",
|
|
8
8
|
[chains_1.AVALANCHE]: "https://avalanche.gmxapi.io",
|
|
9
9
|
[chains_1.AVALANCHE_FUJI]: undefined,
|
|
10
|
-
[chains_1.BOTANIX]: "https://botanix.gmxapi.io",
|
|
11
10
|
[chains_1.ARBITRUM_SEPOLIA]: "https://gmx-api-arbitrum-sepolia-yp6pp.ondigitalocean.app",
|
|
12
11
|
[chains_1.MEGAETH]: "https://megaeth.gmxapi.io",
|
|
13
12
|
},
|
|
@@ -15,7 +14,6 @@ const API_URLS = {
|
|
|
15
14
|
[chains_1.ARBITRUM]: "https://arbitrum-test.gmxapi.ai",
|
|
16
15
|
[chains_1.AVALANCHE]: undefined,
|
|
17
16
|
[chains_1.AVALANCHE_FUJI]: undefined,
|
|
18
|
-
[chains_1.BOTANIX]: undefined,
|
|
19
17
|
[chains_1.ARBITRUM_SEPOLIA]: "https://arbitrum-sepolia-test.gmxapi.ai",
|
|
20
18
|
[chains_1.MEGAETH]: undefined,
|
|
21
19
|
},
|
|
@@ -25,7 +23,6 @@ const API_FALLBACK_URLS = {
|
|
|
25
23
|
[chains_1.ARBITRUM]: [],
|
|
26
24
|
[chains_1.AVALANCHE]: [],
|
|
27
25
|
[chains_1.AVALANCHE_FUJI]: [],
|
|
28
|
-
[chains_1.BOTANIX]: [],
|
|
29
26
|
[chains_1.ARBITRUM_SEPOLIA]: [],
|
|
30
27
|
[chains_1.MEGAETH]: [],
|
|
31
28
|
},
|
|
@@ -33,7 +30,6 @@ const API_FALLBACK_URLS = {
|
|
|
33
30
|
[chains_1.ARBITRUM]: [],
|
|
34
31
|
[chains_1.AVALANCHE]: [],
|
|
35
32
|
[chains_1.AVALANCHE_FUJI]: [],
|
|
36
|
-
[chains_1.BOTANIX]: [],
|
|
37
33
|
[chains_1.ARBITRUM_SEPOLIA]: [],
|
|
38
34
|
[chains_1.MEGAETH]: [],
|
|
39
35
|
},
|
|
@@ -41,7 +41,6 @@ const MEGAETH_BATCH_CONFIG = {
|
|
|
41
41
|
exports.BATCH_CONFIGS = {
|
|
42
42
|
[chains_1.ARBITRUM]: DEFAULT_PROD_BATCH_CONFIG,
|
|
43
43
|
[chains_1.AVALANCHE]: DEFAULT_PROD_BATCH_CONFIG,
|
|
44
|
-
[chains_1.BOTANIX]: DEFAULT_PROD_BATCH_CONFIG,
|
|
45
44
|
[chains_1.MEGAETH]: MEGAETH_BATCH_CONFIG,
|
|
46
45
|
[chains_1.SOURCE_BASE_MAINNET]: DEFAULT_PROD_BATCH_CONFIG,
|
|
47
46
|
[chains_1.SOURCE_BSC_MAINNET]: DEFAULT_PROD_BATCH_CONFIG,
|
|
@@ -1,10 +1,9 @@
|
|
|
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.MEGAETH = exports.
|
|
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.ARBITRUM = exports.AVALANCHE = void 0;
|
|
4
4
|
// Production
|
|
5
5
|
exports.AVALANCHE = 43114;
|
|
6
6
|
exports.ARBITRUM = 42161;
|
|
7
|
-
exports.BOTANIX = 3637;
|
|
8
7
|
exports.MEGAETH = 4326;
|
|
9
8
|
// Production source
|
|
10
9
|
exports.SOURCE_ETHEREUM_MAINNET = 1;
|
|
@@ -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.getResidualGasUsdConfig = 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.
|
|
3
|
+
exports.getExecutionFeeConfig = exports.getTokenExplorerUrl = exports.getExplorerUrl = exports.getChainDefaultCollateralSymbol = exports.getChainWrappedTokenSymbol = exports.getChainNativeTokenSymbol = exports.isChainDisabled = exports.getGasPriceBuffer = exports.getResidualGasUsdConfig = 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.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.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");
|
|
@@ -8,14 +8,13 @@ Object.defineProperty(exports, "ARBITRUM", { enumerable: true, get: function ()
|
|
|
8
8
|
Object.defineProperty(exports, "ARBITRUM_SEPOLIA", { enumerable: true, get: function () { return chainIds_1.ARBITRUM_SEPOLIA; } });
|
|
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
|
-
Object.defineProperty(exports, "BOTANIX", { enumerable: true, get: function () { return chainIds_1.BOTANIX; } });
|
|
12
11
|
Object.defineProperty(exports, "MEGAETH", { enumerable: true, get: function () { return chainIds_1.MEGAETH; } });
|
|
13
12
|
Object.defineProperty(exports, "SOURCE_ETHEREUM_MAINNET", { enumerable: true, get: function () { return chainIds_1.SOURCE_ETHEREUM_MAINNET; } });
|
|
14
13
|
Object.defineProperty(exports, "SOURCE_BASE_MAINNET", { enumerable: true, get: function () { return chainIds_1.SOURCE_BASE_MAINNET; } });
|
|
15
14
|
Object.defineProperty(exports, "SOURCE_BSC_MAINNET", { enumerable: true, get: function () { return chainIds_1.SOURCE_BSC_MAINNET; } });
|
|
16
15
|
Object.defineProperty(exports, "SOURCE_OPTIMISM_SEPOLIA", { enumerable: true, get: function () { return chainIds_1.SOURCE_OPTIMISM_SEPOLIA; } });
|
|
17
16
|
Object.defineProperty(exports, "SOURCE_SEPOLIA", { enumerable: true, get: function () { return chainIds_1.SOURCE_SEPOLIA; } });
|
|
18
|
-
exports.CONTRACTS_CHAIN_IDS = [chainIds_1.ARBITRUM, chainIds_1.AVALANCHE, chainIds_1.
|
|
17
|
+
exports.CONTRACTS_CHAIN_IDS = [chainIds_1.ARBITRUM, chainIds_1.AVALANCHE, chainIds_1.MEGAETH];
|
|
19
18
|
exports.CONTRACTS_CHAIN_IDS_DEV = [...exports.CONTRACTS_CHAIN_IDS, chainIds_1.AVALANCHE_FUJI, chainIds_1.ARBITRUM_SEPOLIA];
|
|
20
19
|
exports.SETTLEMENT_CHAIN_IDS = [chainIds_1.ARBITRUM, chainIds_1.AVALANCHE];
|
|
21
20
|
exports.SETTLEMENT_CHAIN_IDS_DEV = [...exports.SETTLEMENT_CHAIN_IDS, chainIds_1.ARBITRUM_SEPOLIA, chainIds_1.AVALANCHE_FUJI];
|
|
@@ -112,30 +111,6 @@ const CONTRACTS_CHAIN_CONFIGS = {
|
|
|
112
111
|
gasPriceBuffer: undefined,
|
|
113
112
|
isDisabled: false,
|
|
114
113
|
},
|
|
115
|
-
[chainIds_1.BOTANIX]: {
|
|
116
|
-
chainId: chainIds_1.BOTANIX,
|
|
117
|
-
name: "Botanix",
|
|
118
|
-
slug: "botanix",
|
|
119
|
-
explorerUrl: "https://botanixscan.io/",
|
|
120
|
-
nativeTokenSymbol: "BTC",
|
|
121
|
-
wrappedTokenSymbol: "PBTC",
|
|
122
|
-
defaultCollateralSymbol: "USDC.E",
|
|
123
|
-
highExecutionFee: 5,
|
|
124
|
-
shouldUseMaxPriorityFeePerGas: true,
|
|
125
|
-
defaultExecutionFeeBufferBps: 3000, // 30%
|
|
126
|
-
maxFeePerGas: 20n,
|
|
127
|
-
gasPricePremium: undefined,
|
|
128
|
-
maxPriorityFeePerGas: 7n,
|
|
129
|
-
excessiveExecutionFee: 10, // 10 USD
|
|
130
|
-
/**
|
|
131
|
-
* avoid botanix gas spikes when chain is not actively used
|
|
132
|
-
* if set, execution fee value should not be less than this in USD equivalent
|
|
133
|
-
*/
|
|
134
|
-
minExecutionFee: 1000000000000000000000000000n, // 1e27 $0.001
|
|
135
|
-
residualGasUsd: undefined,
|
|
136
|
-
gasPriceBuffer: undefined,
|
|
137
|
-
isDisabled: false,
|
|
138
|
-
},
|
|
139
114
|
[chainIds_1.MEGAETH]: {
|
|
140
115
|
chainId: chainIds_1.MEGAETH,
|
|
141
116
|
name: "MegaETH",
|
|
@@ -233,35 +208,6 @@ const ALL_CHAIN_CONFIGS = {
|
|
|
233
208
|
...CONTRACTS_CHAIN_CONFIGS,
|
|
234
209
|
...SOURCE_CHAIN_CONFIGS,
|
|
235
210
|
};
|
|
236
|
-
exports.botanix = (0, viem_1.defineChain)({
|
|
237
|
-
id: chainIds_1.BOTANIX,
|
|
238
|
-
name: "Botanix",
|
|
239
|
-
nativeCurrency: {
|
|
240
|
-
name: "Bitcoin",
|
|
241
|
-
symbol: "BTC",
|
|
242
|
-
decimals: 18,
|
|
243
|
-
},
|
|
244
|
-
rpcUrls: {
|
|
245
|
-
default: {
|
|
246
|
-
http: [
|
|
247
|
-
// this rpc returns incorrect gas price
|
|
248
|
-
// "https://rpc.botanixlabs.com",
|
|
249
|
-
"https://rpc.ankr.com/botanix_mainnet",
|
|
250
|
-
],
|
|
251
|
-
},
|
|
252
|
-
},
|
|
253
|
-
blockExplorers: {
|
|
254
|
-
default: {
|
|
255
|
-
name: "BotanixScan",
|
|
256
|
-
url: "https://botanixscan.io",
|
|
257
|
-
},
|
|
258
|
-
},
|
|
259
|
-
contracts: {
|
|
260
|
-
multicall3: {
|
|
261
|
-
address: "0x4BaA24f93a657f0c1b4A0Ffc72B91011E35cA46b",
|
|
262
|
-
},
|
|
263
|
-
},
|
|
264
|
-
});
|
|
265
211
|
exports.megaeth = (0, viem_1.defineChain)({
|
|
266
212
|
id: chainIds_1.MEGAETH,
|
|
267
213
|
name: "MegaETH",
|
|
@@ -292,7 +238,6 @@ exports.VIEM_CHAIN_BY_CHAIN_ID = {
|
|
|
292
238
|
[chainIds_1.ARBITRUM]: chains_1.arbitrum,
|
|
293
239
|
[chainIds_1.AVALANCHE]: chains_1.avalanche,
|
|
294
240
|
[chainIds_1.ARBITRUM_SEPOLIA]: chains_1.arbitrumSepolia,
|
|
295
|
-
[chainIds_1.BOTANIX]: exports.botanix,
|
|
296
241
|
[chainIds_1.MEGAETH]: exports.megaeth,
|
|
297
242
|
[chainIds_1.SOURCE_ETHEREUM_MAINNET]: chains_1.mainnet,
|
|
298
243
|
[chainIds_1.SOURCE_OPTIMISM_SEPOLIA]: chains_1.optimismSepolia,
|