@gmx-io/sdk 1.5.0-alpha-1 → 1.5.0-alpha-3
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/build/cjs/scripts/generate-platform-tokens.js +200 -0
- package/build/cjs/scripts/subsquid-codegen.js +1 -1
- package/build/cjs/src/clients/v1/modules/accounts/accounts.js +1 -1
- package/build/cjs/src/clients/v1/modules/markets/index.js +1 -1
- package/build/cjs/src/clients/v1/modules/markets/markets.spec.js +2 -2
- package/build/cjs/src/clients/v1/modules/orders/orders.js +4 -4
- package/build/cjs/src/clients/v1/modules/positions/positions.js +9 -151
- package/build/cjs/src/clients/v1/modules/tokens/tokens.js +1 -1
- package/build/cjs/src/clients/v1/modules/tokens/tokens.spec.js +2 -2
- package/build/cjs/src/clients/v1/modules/trades/trades.js +1 -1
- package/build/cjs/src/clients/v1/modules/utils/utils.js +1 -1
- package/build/cjs/src/clients/v2/index.js +13 -1
- package/build/cjs/src/codegen/platformTokens.json +134 -0
- package/build/cjs/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +24 -0
- package/build/cjs/src/codegen/prebuilt/hashedMarketConfigKeys.json +171 -0
- package/build/cjs/src/codegen/prebuilt/hashedMarketValuesKeys.json +45 -0
- package/build/cjs/src/codegen/subsquid.js +142 -22
- package/build/cjs/src/configs/api.js +10 -6
- package/build/cjs/src/configs/markets.js +21 -0
- package/build/cjs/src/configs/tokens.js +35 -0
- package/build/cjs/src/utils/__tests__/fees.spec.js +1 -1
- package/build/cjs/src/utils/__tests__/numbers.spec.js +1 -1
- package/build/cjs/src/utils/__tests__/orderTransactions/batchUtils.spec.js +1 -1
- package/build/cjs/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +1 -1
- package/build/cjs/src/utils/__tests__/orderTransactions/exchangeRouterMulticall.spec.js +1 -1
- package/build/cjs/src/utils/__tests__/orderTransactions/externalCalls.spec.js +1 -1
- package/build/cjs/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +1 -1
- package/build/cjs/src/utils/__tests__/orderTransactions/swapOrders.spec.js +1 -1
- package/build/cjs/src/utils/__tests__/orderTransactions/updateOrder.spec.js +1 -1
- package/build/cjs/src/utils/__tests__/parseError.spec.js +40 -0
- package/build/cjs/src/utils/__tests__/positions.spec.js +1 -1
- package/build/cjs/src/utils/__tests__/prices.spec.js +1 -1
- package/build/cjs/src/utils/__tests__/tokens.spec.js +191 -4
- package/build/cjs/src/utils/errors/parseError.js +67 -25
- package/build/cjs/src/utils/fees/executionFee.js +1 -1
- package/build/cjs/src/utils/fees/priceImpact.js +6 -1
- package/build/cjs/src/utils/markets/__tests__/mockMarkets.js +1 -1
- package/build/cjs/src/utils/markets/utils.js +15 -4
- package/build/cjs/src/utils/numbers/utils.js +4 -2
- package/build/cjs/src/utils/orders/api.js +13 -0
- package/build/cjs/src/utils/orders/index.js +1 -0
- package/build/cjs/src/utils/orders/utils.js +2 -2
- package/build/cjs/src/utils/positions/api.js +14 -0
- package/build/cjs/src/utils/positions/index.js +1 -0
- package/build/cjs/src/utils/positions/utils.js +213 -1
- package/build/cjs/src/utils/swap/__tests__/mockRouting.spec.js +1 -1
- package/build/cjs/src/utils/swap/__tests__/swapRouting.spec.js +1 -1
- package/build/cjs/src/utils/swap/__tests__/swapStats.spec.js +1 -1
- package/build/cjs/src/utils/swap/buildSwapStrategy.js +1 -1
- package/build/cjs/src/utils/swap/externalSwapQuoteByPath.js +1 -1
- package/build/cjs/src/utils/swap/swapPath.js +1 -1
- package/build/cjs/src/utils/swap/swapValues.js +1 -1
- package/build/cjs/src/utils/tokens/utils.js +23 -3
- package/build/cjs/src/utils/trade/decrease.js +1 -1
- package/build/cjs/src/utils/trade/increase.js +1 -1
- package/build/cjs/src/utils/trade/trade.js +1 -1
- package/build/esm/scripts/generate-platform-tokens.js +195 -0
- package/build/esm/scripts/subsquid-codegen.js +1 -1
- package/build/esm/src/clients/v1/modules/accounts/accounts.js +1 -1
- package/build/esm/src/clients/v1/modules/markets/index.js +1 -1
- package/build/esm/src/clients/v1/modules/markets/markets.spec.js +1 -1
- package/build/esm/src/clients/v1/modules/orders/orders.js +4 -4
- package/build/esm/src/clients/v1/modules/positions/positions.js +12 -154
- package/build/esm/src/clients/v1/modules/tokens/tokens.js +1 -1
- package/build/esm/src/clients/v1/modules/tokens/tokens.spec.js +1 -1
- package/build/esm/src/clients/v1/modules/trades/trades.js +1 -1
- package/build/esm/src/clients/v1/modules/utils/utils.js +1 -1
- package/build/esm/src/clients/v2/index.js +13 -1
- package/build/esm/src/codegen/platformTokens.json +134 -0
- package/build/esm/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +24 -0
- package/build/esm/src/codegen/prebuilt/hashedMarketConfigKeys.json +171 -0
- package/build/esm/src/codegen/prebuilt/hashedMarketValuesKeys.json +45 -0
- package/build/esm/src/codegen/subsquid.js +141 -21
- package/build/esm/src/configs/api.js +8 -5
- package/build/esm/src/configs/markets.js +21 -0
- package/build/esm/src/configs/tokens.js +35 -0
- package/build/esm/src/utils/__tests__/fees.spec.js +1 -1
- package/build/esm/src/utils/__tests__/numbers.spec.js +1 -1
- package/build/esm/src/utils/__tests__/orderTransactions/batchUtils.spec.js +1 -1
- package/build/esm/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +1 -1
- package/build/esm/src/utils/__tests__/orderTransactions/exchangeRouterMulticall.spec.js +1 -1
- package/build/esm/src/utils/__tests__/orderTransactions/externalCalls.spec.js +1 -1
- package/build/esm/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +1 -1
- package/build/esm/src/utils/__tests__/orderTransactions/swapOrders.spec.js +1 -1
- package/build/esm/src/utils/__tests__/orderTransactions/updateOrder.spec.js +1 -1
- package/build/esm/src/utils/__tests__/parseError.spec.js +40 -0
- package/build/esm/src/utils/__tests__/positions.spec.js +1 -1
- package/build/esm/src/utils/__tests__/prices.spec.js +1 -1
- package/build/esm/src/utils/__tests__/tokens.spec.js +192 -5
- package/build/esm/src/utils/errors/parseError.js +64 -24
- package/build/esm/src/utils/fees/executionFee.js +1 -1
- package/build/esm/src/utils/fees/priceImpact.js +5 -1
- package/build/esm/src/utils/markets/__tests__/mockMarkets.js +1 -1
- package/build/esm/src/utils/markets/utils.js +15 -4
- package/build/esm/src/utils/numbers/utils.js +2 -0
- package/build/esm/src/utils/orders/api.js +9 -0
- package/build/esm/src/utils/orders/index.js +1 -0
- package/build/esm/src/utils/orders/utils.js +2 -2
- package/build/esm/src/utils/positions/api.js +10 -0
- package/build/esm/src/utils/positions/index.js +1 -0
- package/build/esm/src/utils/positions/utils.js +213 -3
- package/build/esm/src/utils/swap/__tests__/mockRouting.spec.js +1 -1
- package/build/esm/src/utils/swap/__tests__/swapRouting.spec.js +1 -1
- package/build/esm/src/utils/swap/__tests__/swapStats.spec.js +1 -1
- package/build/esm/src/utils/swap/buildSwapStrategy.js +1 -1
- package/build/esm/src/utils/swap/externalSwapQuoteByPath.js +1 -1
- package/build/esm/src/utils/swap/swapPath.js +1 -1
- package/build/esm/src/utils/swap/swapValues.js +1 -1
- package/build/esm/src/utils/tokens/utils.js +23 -3
- package/build/esm/src/utils/trade/decrease.js +1 -1
- package/build/esm/src/utils/trade/increase.js +1 -1
- package/build/esm/src/utils/trade/trade.js +1 -1
- package/build/types/scripts/generate-platform-tokens.d.ts +27 -0
- package/build/types/src/clients/v1/modules/markets/index.d.ts +1 -1
- package/build/types/src/clients/v1/modules/oracle.d.ts +1 -1
- package/build/types/src/clients/v1/modules/orders/helpers.d.ts +1 -1
- package/build/types/src/clients/v1/modules/orders/orders.d.ts +2 -2
- package/build/types/src/clients/v1/modules/orders/transactions/cancelOrdersTxn.d.ts +1 -1
- package/build/types/src/clients/v1/modules/orders/transactions/createDecreaseOrderTxn.d.ts +1 -1
- package/build/types/src/clients/v1/modules/orders/transactions/createIncreaseOrderTxn.d.ts +1 -1
- package/build/types/src/clients/v1/modules/orders/transactions/createSwapOrderTxn.d.ts +1 -1
- package/build/types/src/clients/v1/modules/orders/transactions/createWrapOrUnwrapTxn.d.ts +1 -1
- package/build/types/src/clients/v1/modules/orders/transactions/updateOrderTxn.d.ts +1 -1
- package/build/types/src/clients/v1/modules/orders/utils.d.ts +2 -2
- package/build/types/src/clients/v1/modules/positions/positions.d.ts +1 -1
- package/build/types/src/clients/v1/modules/tokens/tokens.d.ts +1 -1
- package/build/types/src/clients/v1/modules/trades/trades.d.ts +2 -2
- package/build/types/src/clients/v1/modules/utils/utils.d.ts +1 -1
- package/build/types/src/clients/v2/index.d.ts +7 -0
- package/build/types/src/codegen/prebuilt/index.d.ts +240 -0
- package/build/types/src/codegen/subsquid.d.ts +492 -60
- package/build/types/src/configs/api.d.ts +1 -0
- package/build/types/src/utils/errors/parseError.d.ts +13 -1
- package/build/types/src/utils/fees/executionFee.d.ts +1 -1
- package/build/types/src/utils/fees/getNaiveEstimatedGasBySwapCount.d.ts +1 -1
- package/build/types/src/utils/fees/index.d.ts +1 -1
- package/build/types/src/utils/fees/priceImpact.d.ts +1 -0
- package/build/types/src/utils/markets/api.d.ts +1 -1
- package/build/types/src/utils/markets/multicall.d.ts +1 -1
- package/build/types/src/utils/markets/types.d.ts +8 -2
- package/build/types/src/utils/markets/utils.d.ts +1 -1
- package/build/types/src/utils/numbers/utils.d.ts +2 -0
- package/build/types/src/utils/orders/api.d.ts +7 -0
- package/build/types/src/utils/orders/index.d.ts +1 -0
- package/build/types/src/utils/orders/types.d.ts +27 -0
- package/build/types/src/utils/orders/utils.d.ts +1 -1
- package/build/types/src/utils/positions/api.d.ts +8 -0
- package/build/types/src/utils/positions/index.d.ts +1 -0
- package/build/types/src/utils/positions/types.d.ts +5 -16
- package/build/types/src/utils/positions/utils.d.ts +42 -1
- package/build/types/src/utils/swap/buildSwapStrategy.d.ts +1 -1
- package/build/types/src/utils/swap/findSwapPathsBetweenTokens.d.ts +1 -1
- package/build/types/src/utils/swap/preparedSwapData.d.ts +1 -1
- package/build/types/src/utils/swap/swapRouting.d.ts +1 -1
- package/build/types/src/utils/tokens/types.d.ts +1 -1
- package/build/types/src/utils/trade/decrease.d.ts +1 -1
- package/build/types/src/utils/trade/increase.d.ts +1 -1
- package/build/types/src/utils/trade/trade.d.ts +1 -1
- package/build/types/src/utils/tradeHistory/types.d.ts +2 -2
- package/build/types/src/utils/tradeHistory/utils.d.ts +1 -1
- package/build/types/src/utils/twap/index.d.ts +1 -1
- package/package.json +4 -3
|
@@ -1001,6 +1001,30 @@
|
|
|
1001
1001
|
"baseBorrowingFactorShort": "0x933c6fd4c00cf204a5dd89da7d9a1fc42250c2871d054d8f4212a84103b123c5",
|
|
1002
1002
|
"aboveOptimalUsageBorrowingFactorLong": "0x7423eb29097c16fa9d217ac13e48608a6e6ccbed20a7b213b9e5c96a6d4fcb9f",
|
|
1003
1003
|
"aboveOptimalUsageBorrowingFactorShort": "0x93e5817e0667fabbbbca6c9047a7fc132a5f6d131e07966e1708b6d9f855b75b"
|
|
1004
|
+
},
|
|
1005
|
+
"0xeb28aD1a2e497F4Acc5D9b87e7B496623C93061E": {
|
|
1006
|
+
"optimalUsageFactorLong": "0x4c80b73a42cae96ae8bc00481c1e299030dcc3ec17d4a02943dc56f6d95cb049",
|
|
1007
|
+
"optimalUsageFactorShort": "0xd3edd7024f19a8861497f67a228aaed24a1394ad240c443a62214e7034382830",
|
|
1008
|
+
"baseBorrowingFactorLong": "0x3ebc5147a19e7123009f85b53b625a7cacaeaef135511fc19043f2a1d8aa0c03",
|
|
1009
|
+
"baseBorrowingFactorShort": "0x39dda3811c31b254e2e7145098f25d99e7f0f9af738b3c6e628e92e52c8021c4",
|
|
1010
|
+
"aboveOptimalUsageBorrowingFactorLong": "0x1a1cc2aedfeff1b6073f7e4611e1d72e70de0a36dc6aafb588b8169f6bb11ba6",
|
|
1011
|
+
"aboveOptimalUsageBorrowingFactorShort": "0xd4e93d5458296a2d3d721c8e9d9edc392442edac87f8aa842c8f855e22aed6dc"
|
|
1012
|
+
},
|
|
1013
|
+
"0x044dFE01863CE85f9ECd5639eE5485c90AC320FC": {
|
|
1014
|
+
"optimalUsageFactorLong": "0xcc17f175bd577b0dfbda76592ffeb7bcab68311cecb173e06d33aa59c21f15e2",
|
|
1015
|
+
"optimalUsageFactorShort": "0x74942d757ccf9531b9411867f83ed9cef6f492320edcf8f0f3f7c4b714d9f47f",
|
|
1016
|
+
"baseBorrowingFactorLong": "0x8e4cc70c5f86ad94edc8ee165fc29b2e4ac745d7ad4b7dcbc932c8d54a84180a",
|
|
1017
|
+
"baseBorrowingFactorShort": "0xf83f2f14a2f6cd9b5482c0d02d581de9fd22f15824c3a414edbccfab27d47709",
|
|
1018
|
+
"aboveOptimalUsageBorrowingFactorLong": "0x9b49595bf1c06b2af9075471d310f10ff4686ce1adc150920356f9a2ffafc1af",
|
|
1019
|
+
"aboveOptimalUsageBorrowingFactorShort": "0x4cf786d3462cb4996ccbcc234565c373f5632e8357b2df781c699f9b10dfd8b1"
|
|
1020
|
+
},
|
|
1021
|
+
"0x5ff52BE1968107D7886a8E9A64874A45c8F5D96a": {
|
|
1022
|
+
"optimalUsageFactorLong": "0xe829a6999287c2aa6c973e8c3df6db0676d22cab7a294b07d9d4fd7111429cb4",
|
|
1023
|
+
"optimalUsageFactorShort": "0x630bee33f40d9ac9b352260a7bc9573260f85ef5d63dbdb682e42e07e38536e9",
|
|
1024
|
+
"baseBorrowingFactorLong": "0x8f790e894db30905dd4ac9285603266de6e068fe12a93ba365e716fd2be44d72",
|
|
1025
|
+
"baseBorrowingFactorShort": "0x80c5b6569f8349524228859090ee98f0031070e6ea22026627ad923e0f65c180",
|
|
1026
|
+
"aboveOptimalUsageBorrowingFactorLong": "0x869d8c2c73b3ab76092d6448b49b444009f165a6b99bf09b98bbb5506eea6db6",
|
|
1027
|
+
"aboveOptimalUsageBorrowingFactorShort": "0xe8f2eac941593eddfd6a2b0501b308d3c654a363c8b2a249cdd23173373f40ec"
|
|
1004
1028
|
}
|
|
1005
1029
|
},
|
|
1006
1030
|
"43113": {
|
|
@@ -7126,6 +7126,177 @@
|
|
|
7126
7126
|
"virtualMarketId": "0x841882a446312167f062b94703f31d90437c94aeb0f26da7966c9f8064afb2e7",
|
|
7127
7127
|
"virtualLongTokenId": "0xaab37f889b9680dda34f58a689de3023cb22f7ae14d32a3c1d45798a973db1f5",
|
|
7128
7128
|
"virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
|
|
7129
|
+
},
|
|
7130
|
+
"0xeb28aD1a2e497F4Acc5D9b87e7B496623C93061E": {
|
|
7131
|
+
"isDisabled": "0xdaa61e91f52c581a30b325cad7d7abd7235af0abc32b96d9ed634be589af45b3",
|
|
7132
|
+
"maxLongPoolAmount": "0x61615827812595cc674a94abdb2d65bb198b13e5d4b31f5fdab7ce1d962c1bd4",
|
|
7133
|
+
"maxShortPoolAmount": "0xbe23eb542d65cb11955788fb03c6beb88829f27baa9d88acb7000e97088875f9",
|
|
7134
|
+
"maxLongPoolUsdForDeposit": "0x1791afc4bc62ff49532bd98070abc85f1a0023399329a2cadd192863204d2710",
|
|
7135
|
+
"maxShortPoolUsdForDeposit": "0xfffecab1719f5a803ea0fe59c115bd180708ca641953645dce54cd0e36b6797d",
|
|
7136
|
+
"reserveFactorLong": "0x53d06be16c4f56722c306e58c3188550dadba000b859f1b8b779990cade317b8",
|
|
7137
|
+
"reserveFactorShort": "0x4c8cebc5081fd121c36b26478928a9722f6955c527dfbd5c20705aff592f12b7",
|
|
7138
|
+
"openInterestReserveFactorLong": "0x7fec47094ac670a7a2af2b4ac729e6835115c6af51ec418daac68fc082292854",
|
|
7139
|
+
"openInterestReserveFactorShort": "0xef21e101622a360572870cf4781dda1cd525e814c24c7566d357cdae7b864df9",
|
|
7140
|
+
"maxOpenInterestLong": "0xbb32dcddc02fe59fef9ae057911a029cb12d505a99074eb42c7c068f99b61aea",
|
|
7141
|
+
"maxOpenInterestShort": "0x48d08f5699ccf02570ba24c7556789b877ef341ceb5b1ee7825920355ac55293",
|
|
7142
|
+
"minPositionImpactPoolAmount": "0x1792867a6a1c1b365c8da8ba9a31a623d0cc3e32b59db97274b607cf13903bc0",
|
|
7143
|
+
"positionImpactPoolDistributionRate": "0x2acf2f91cac7238c72eb822a3169198efbaf78268bfdd3ca7c4260417fa936f8",
|
|
7144
|
+
"borrowingFactorLong": "0xdd32365d387caa95e56144bfea2609a2000e800f1fb43a010cc289c59af0530f",
|
|
7145
|
+
"borrowingFactorShort": "0xaf1d544bf3cda8ad6f079330ca65704ddae0044b539dc1240514aceb4eeaddd8",
|
|
7146
|
+
"borrowingExponentFactorLong": "0x34f0462c8ad59b801215279fb58622933952467ed29cdd3bc000c5cab5bd2c36",
|
|
7147
|
+
"borrowingExponentFactorShort": "0x7636eaf9421e944635ac110a43a942e3ae88f55635c3d59587432993fcabfe1c",
|
|
7148
|
+
"fundingFactor": "0x97448d991bdbee0a695b6d5935122cbf70526b3084e05f96297e88064040697d",
|
|
7149
|
+
"fundingExponentFactor": "0x6be1104b4083f4c059d61cf419ba91680f214a1d469eb4e04a0c647eda83afbc",
|
|
7150
|
+
"fundingIncreaseFactorPerSecond": "0xa4a00325ddd071fc34402e2a32669829046a36fc0d39fbae4b5da7ba52b1f9d3",
|
|
7151
|
+
"fundingDecreaseFactorPerSecond": "0x373f85ce03e5ff11ca6a904aba294004bf73b87368fc8ad41af603d2d2e807d3",
|
|
7152
|
+
"thresholdForStableFunding": "0xcf0df74787874ef9911fa1a88a5648ae6a4aceac0e8df23b1497b7197062f2f3",
|
|
7153
|
+
"thresholdForDecreaseFunding": "0xb58141e707bc127fa358a09d11ad96a7c8ccc7829603ef072299de45d74ff802",
|
|
7154
|
+
"minFundingFactorPerSecond": "0x00941a14778a0ddf9f13c4bc739ecff0a9a7f2bd9725cd4b8aada451eb1673f0",
|
|
7155
|
+
"maxFundingFactorPerSecond": "0xf4f23325f1eb69e1e1acfe0a90dc5fc99a031e95573b3f3a15d1604536d0a4a7",
|
|
7156
|
+
"maxPnlFactorForTradersLong": "0x3c29aa35fbb797f2e5fabfcbabc4ec613036f9270ff9895ce5362567e7e50ab5",
|
|
7157
|
+
"maxPnlFactorForTradersShort": "0xbf15a84e717e2240b4c82785a6ddd9eb0933c134a36eda52c87a7fcae424c328",
|
|
7158
|
+
"positionFeeFactorForBalanceWasImproved": "0x6cfd039d170938ad7b1ee74f35ec4c4f13743d0e70fd9304661e6e28308deac8",
|
|
7159
|
+
"positionFeeFactorForBalanceWasNotImproved": "0x96182b8d17c459994d301e101e74181c100023ea0593d62ba77ffe8657c44267",
|
|
7160
|
+
"positionImpactFactorPositive": "0xd40d36a242718fd6980a7e5c0a32c7e07fa394033149e1719277f08318e3b21a",
|
|
7161
|
+
"positionImpactFactorNegative": "0xed81b99084792be6222b59a8e0e750dd99ecdf052c186fe836ad292aefb96df3",
|
|
7162
|
+
"maxPositionImpactFactorPositive": "0x451e7bee35ed5dd8d4a9e9ea515652d187e104d7aa1cccd31ef536d06cd5db4c",
|
|
7163
|
+
"maxPositionImpactFactorNegative": "0x325d31f65e9ef5e32ddff818ec5a520be2a9da71de4585c1080c04c9a7db37a3",
|
|
7164
|
+
"maxPositionImpactFactorForLiquidations": "0xf897786745605e2f399588c9b08da6f610909aeca91523dc7e28e8d552ce47dc",
|
|
7165
|
+
"maxLendableImpactFactor": "0xd87abdb0054d133fc50fb13d004702466a6fa4784679aee2a6ac2285c1136b69",
|
|
7166
|
+
"maxLendableImpactFactorForWithdrawals": "0xb3c12a1cdf62f39c0be47133c84ae9462408a8bfa4a82c86f2bc7560253cfb0a",
|
|
7167
|
+
"maxLendableImpactUsd": "0xc12d7b6af972815a2f0502e8e77ae15da57181837ba5d6bdb0cb862d136cde62",
|
|
7168
|
+
"lentPositionImpactPoolAmount": "0x8185d7481a5a2d80d5e95c57b4d99aad8feb217e46c7fc5744a74cfd1bf5eabe",
|
|
7169
|
+
"minCollateralFactor": "0x4bb172755bfbdf9a24c0c8cb61e1a51bf25339d53f56da7de5106cbe44926d41",
|
|
7170
|
+
"minCollateralFactorForLiquidation": "0xc72799761db8b9d9d7b26ddc217d1ec62c712ea804d24e9734c556d6c3f1a186",
|
|
7171
|
+
"minCollateralFactorForOpenInterestLong": "0xd86cfc644c2dc63cb88475c9cb78e1b0bfe52b5955e91a5d100d92ef7dd7e7b3",
|
|
7172
|
+
"minCollateralFactorForOpenInterestShort": "0xcf8b30cb4a0371e0f825248b7567ebeaf1b730d35e0aed528602e940a38f538b",
|
|
7173
|
+
"positionImpactExponentFactorPositive": "0x449e832095bdbbf344f152a3894fa95cc1cf9645596916544959f4be457af2d7",
|
|
7174
|
+
"positionImpactExponentFactorNegative": "0x6c4172cb7fb584806ff4b39cb291402e18c1f53a6a906012705e59f94b05122a",
|
|
7175
|
+
"swapFeeFactorForBalanceWasImproved": "0x030491a21251b08ba88df272d3a05047d50026399bc06458e8bd274669884a93",
|
|
7176
|
+
"swapFeeFactorForBalanceWasNotImproved": "0x003cdabb626b530c7b9a5000edcc86042f5c41e9030bf85ce10b6844005d0c2f",
|
|
7177
|
+
"atomicSwapFeeFactor": "0xfbf15639beebc65100e6df2b3af39091d986e0e366530c1ada050e8e40f1ac19",
|
|
7178
|
+
"swapImpactFactorPositive": "0xd2d22abe88c440ce9083dd1b306fe969d798c12f71c2621d2137b799692aa387",
|
|
7179
|
+
"swapImpactFactorNegative": "0x3df2bfab97121b04e7eb8c61c96701387d656494f7a9c2586a67a9bd982ae39a",
|
|
7180
|
+
"swapImpactExponentFactor": "0xadeaef88b16f10afbdb2b09cbc9753421723654ac4f57dc4c2594a8b392c174b",
|
|
7181
|
+
"withdrawalFeeFactorBalanceWasImproved": "0xad4eba0fbfc7359045f6d813059a683e455b6ca1606ac60f19c8dd46d83d97f6",
|
|
7182
|
+
"withdrawalFeeFactorBalanceWasNotImproved": "0x18d15f75a8862745b07f246819bb69e6c040443488f00530e2db3968598de7c0",
|
|
7183
|
+
"virtualMarketId": "0x7e1f97d372c1eb91b32d5b1357efb86615615bdb527b4495a03f666f127765b5",
|
|
7184
|
+
"virtualLongTokenId": "0xa59040b7efb6b7122a74cb318a192ebc6732849dff5332ee3ba40b90dfa0a04f",
|
|
7185
|
+
"virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
|
|
7186
|
+
},
|
|
7187
|
+
"0x044dFE01863CE85f9ECd5639eE5485c90AC320FC": {
|
|
7188
|
+
"isDisabled": "0x5d8c4f59c5336ee628e2a8acbbb0d42b0fb62bdf0305aa907629b06039bf65a3",
|
|
7189
|
+
"maxLongPoolAmount": "0x6898ccc95c2edbb1f004e7c09b15021f36731bb263de323d905463e2fa9db7a3",
|
|
7190
|
+
"maxShortPoolAmount": "0xa31388c881061800b34abe6f06f5c488cf825cf2447ffbf701a7fc060de27f17",
|
|
7191
|
+
"maxLongPoolUsdForDeposit": "0x42adff82a046b745339428b1afac9dac305bebf5a79920b8664435000951b6ac",
|
|
7192
|
+
"maxShortPoolUsdForDeposit": "0x3b28ad5b99b1d7a0b80a37406b0e377e18a71c6da237b8d0f99524b61fe99d44",
|
|
7193
|
+
"reserveFactorLong": "0x64259b21cfb0df62d18d8f17c311b031847264949945f6c481b78651ca48e473",
|
|
7194
|
+
"reserveFactorShort": "0x15f75278d526f5fb2029137cb1eeea3a3977bac280964941983d7770e3879492",
|
|
7195
|
+
"openInterestReserveFactorLong": "0xc191f0883ba2cc638035d9761512360eb00853d74f489ce32abcbeda4d0d0c72",
|
|
7196
|
+
"openInterestReserveFactorShort": "0x0e7bc59b8d76f131439afea28497c1c6d192b0fa85006888b8118fa6ed2ebe4a",
|
|
7197
|
+
"maxOpenInterestLong": "0xe673fda732c07e932e10766f03c4160b2b8c2719edf2de577f1885848fda4452",
|
|
7198
|
+
"maxOpenInterestShort": "0xee03bae070e67d78fb5e7646222653a27dd7917daa56f7166bce467bdd062a6a",
|
|
7199
|
+
"minPositionImpactPoolAmount": "0x94099d60f3f9356a2137b76ebdd24b849b99d4e55d69eab38ee612eb33df7835",
|
|
7200
|
+
"positionImpactPoolDistributionRate": "0xc3065c4d45e1291ab1945cfbdabf1fb902a039081935834cea268c3d325cc96c",
|
|
7201
|
+
"borrowingFactorLong": "0x41a7d1befc6a40e91b211b460b77799173eedad4ddd425435cbd5ffb4bc82da2",
|
|
7202
|
+
"borrowingFactorShort": "0x0cbdd36a20ee929df323fa33a6efe6f884bd29b7c545aead854e2b229720f143",
|
|
7203
|
+
"borrowingExponentFactorLong": "0x8ddb71993ec361689328b26575102a9714c2c6d64e376a48c9ffeef5bb971f1a",
|
|
7204
|
+
"borrowingExponentFactorShort": "0x098963ad63a598277a3d315f032cbc20c5696b9e393361dd937d566100619737",
|
|
7205
|
+
"fundingFactor": "0x59691f1e5d99cb24fa6aaafc20daf23715e6b9a941d2b0d645380c248d3f358b",
|
|
7206
|
+
"fundingExponentFactor": "0x14cffba91df50d6e88136e02320ccc509fe8246b9fd1c020de42cea21c418b92",
|
|
7207
|
+
"fundingIncreaseFactorPerSecond": "0x929d84b0d0f6509724a8a407ec08d7592dc28c7ac4a679491df6112b955a8362",
|
|
7208
|
+
"fundingDecreaseFactorPerSecond": "0xf1090c68834fce96a2a728b35a102a9acefda7f3c4e04e79b5c8ad8d76481c11",
|
|
7209
|
+
"thresholdForStableFunding": "0x87c450548ca296cb5a38b122c5e62939b1474bb62b9269d41858a72719e722fb",
|
|
7210
|
+
"thresholdForDecreaseFunding": "0xcb9ad9ff1a082a62a659e48f6a61a6983deb638baed759c431f0cabdb10fd4b4",
|
|
7211
|
+
"minFundingFactorPerSecond": "0xc71877ab2624bbf1aa96eb7fe781095e274f06ba1bc305717fc242c207e17c1b",
|
|
7212
|
+
"maxFundingFactorPerSecond": "0x893b89946a97934929842226fcc4296aeba410f95da2b0fb55bfaa83111167a1",
|
|
7213
|
+
"maxPnlFactorForTradersLong": "0x437c7491f68da7b0f5306c07e83a7919f7ceb3588429433b1943981ee6b4a72b",
|
|
7214
|
+
"maxPnlFactorForTradersShort": "0x877e8b9b085542ac43a05d5b0eccd46a7709349e61ca1de11ca33501c6b342a3",
|
|
7215
|
+
"positionFeeFactorForBalanceWasImproved": "0x7b565d62016ed40c9a22f3ba7768b3d5029e93d3cf16e940ce16ee29b4aec313",
|
|
7216
|
+
"positionFeeFactorForBalanceWasNotImproved": "0x194099e55e0642a2631e8f34602b1f82fca7808057fbc0f4bad4b4d4446cdc6a",
|
|
7217
|
+
"positionImpactFactorPositive": "0x9a8566e7b82904ce3b543f567dc947e78dd52cf6788ffb6823b3c211518e2673",
|
|
7218
|
+
"positionImpactFactorNegative": "0x8da7e39b4ea028cc4a7a5d639a668d40932b042e8f563a7296d29778a94787ae",
|
|
7219
|
+
"maxPositionImpactFactorPositive": "0x5f870bc2430b424ff26425fe8426542cb5379a134373b2480b9c44af7e15a6f1",
|
|
7220
|
+
"maxPositionImpactFactorNegative": "0x65b99f936e64b2d627200c556c16e836470c8e73c895664015d05152fce40959",
|
|
7221
|
+
"maxPositionImpactFactorForLiquidations": "0xf2ed4ce09b18b1355aa1455b007cc3248904b2a23402f65cb305ea0258929728",
|
|
7222
|
+
"maxLendableImpactFactor": "0xd37b50bf2c5fe156f2e12dca05df6bca4d2bff87e0c65958890ecdfcdb3fdf40",
|
|
7223
|
+
"maxLendableImpactFactorForWithdrawals": "0xf4d4830c1eddc1a5cad1d864f87d9083ba91ca4ba8af1f68e1f573a1d37dda52",
|
|
7224
|
+
"maxLendableImpactUsd": "0x505ec31308a88ef076cb096bd16f2851a933c872561569eb065a2dfe449cb030",
|
|
7225
|
+
"lentPositionImpactPoolAmount": "0x0d948c55f018f87ea119a139aae032cf9e4f7e866b4e9c2d7338b2a062f2ba21",
|
|
7226
|
+
"minCollateralFactor": "0x418e4bb0bc71e1a375b21afbba975d003908f1889233193aa616b706f9008eb9",
|
|
7227
|
+
"minCollateralFactorForLiquidation": "0xbc337f490f5757ddcfe38a5e95b15404904a00eca104a164a23def51fb0a20d7",
|
|
7228
|
+
"minCollateralFactorForOpenInterestLong": "0xe4835712c7b870bc9b6911941729957820f1d32bdd12efdda7646c9944680a8f",
|
|
7229
|
+
"minCollateralFactorForOpenInterestShort": "0x0cfd9e7e25868348e4ad25dc871530fdf536addf18d950d8845e56c8aae8f592",
|
|
7230
|
+
"positionImpactExponentFactorPositive": "0x9e4bb8113869cd4eb05fea265e0778d20e3b0cc45fa68483fcb9ea5dbfae8524",
|
|
7231
|
+
"positionImpactExponentFactorNegative": "0x275f3ee7cf29be4884fa0dbcd5b36f1ea4d1eb21fccaf232c62f63a700c23727",
|
|
7232
|
+
"swapFeeFactorForBalanceWasImproved": "0x698b2288f7e720083628bca3a46066ade0e4c21b5469fb558c19db4d6dbfdce5",
|
|
7233
|
+
"swapFeeFactorForBalanceWasNotImproved": "0x7dec81705712795219283c49ffff855a75c3e9197984153aabbee28d1c8669d0",
|
|
7234
|
+
"atomicSwapFeeFactor": "0x3e5826c10a0f283541a0af46e1756deeed53209f90b3b6d8f5a539678fff347f",
|
|
7235
|
+
"swapImpactFactorPositive": "0x7ef9dffb33ceba86a4310dc86210891f8aeea96c9e3c6388079947154b547db8",
|
|
7236
|
+
"swapImpactFactorNegative": "0x50528025685c4a3ce61f90cf17ce0d089b139b978b22c5dbc68ff69676106f31",
|
|
7237
|
+
"swapImpactExponentFactor": "0xbde4ad7ca8bf7a8ae4b673413cb2b1c19f8eb75c1c825aa8cd42cfa9b3a8653f",
|
|
7238
|
+
"withdrawalFeeFactorBalanceWasImproved": "0x6e998664f0381d1cdf204184665efbfda964e0c4354ea2fe7604070f95de11eb",
|
|
7239
|
+
"withdrawalFeeFactorBalanceWasNotImproved": "0x5d9887aa6135b687766d068b45c46f34782a4276364077e6b9d32e322811ddba",
|
|
7240
|
+
"virtualMarketId": "0x6b948c4d9252f2d7d1294221c629dcb40716eec70da5810c9afbb78294f3323e",
|
|
7241
|
+
"virtualLongTokenId": "0xaab37f889b9680dda34f58a689de3023cb22f7ae14d32a3c1d45798a973db1f5",
|
|
7242
|
+
"virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
|
|
7243
|
+
},
|
|
7244
|
+
"0x5ff52BE1968107D7886a8E9A64874A45c8F5D96a": {
|
|
7245
|
+
"isDisabled": "0xeebe5eeff9e664c3042cae6eab207a5283190b8b976270a578d99df17ad023b3",
|
|
7246
|
+
"maxLongPoolAmount": "0xd2cf27d5123bda55838d99b9457a8b1ac646a325f404f125b7df242b40e4aadc",
|
|
7247
|
+
"maxShortPoolAmount": "0xa78bfa13bd9d477cd36a03de4a8dd7b37d972b4c29bb7eb0101994e10b45b63f",
|
|
7248
|
+
"maxLongPoolUsdForDeposit": "0x546138d056e44bfbb4b4ff87229641c188384f98a416c9082cac436089efb657",
|
|
7249
|
+
"maxShortPoolUsdForDeposit": "0xc049fc9e12fd97066e2937b0561931e4eee1e79a3568a329674e04a4490f0cb3",
|
|
7250
|
+
"reserveFactorLong": "0xadd371f4f8335dcf26e33496fd1267b5a19a609a827f9d71939060b55d6fd225",
|
|
7251
|
+
"reserveFactorShort": "0x3898b76b44fc26d80e58e8a4b8a4d775f43df83e3be8ca065587d02b7b151d89",
|
|
7252
|
+
"openInterestReserveFactorLong": "0xc9302437140cb3e7a19ee689c5502d1f107cc2e7f60e9ac7d2632b35b4d865f0",
|
|
7253
|
+
"openInterestReserveFactorShort": "0x579de56694a11803d1e18d62dfc959b7969c2c4853c6e953b38e201674de50b6",
|
|
7254
|
+
"maxOpenInterestLong": "0x1c9ddc2bc179aeb1d9f3f5b08668484b7e7237fbd07b8c7b0d3f5de16fdfa619",
|
|
7255
|
+
"maxOpenInterestShort": "0x782982d808ca6d28449dec4cf0bdf350b54290f808247895ea78a6dfe45e59a9",
|
|
7256
|
+
"minPositionImpactPoolAmount": "0x060b6e2af05259b913236d6be3db2478204a7617737b907853af68fc57cbde77",
|
|
7257
|
+
"positionImpactPoolDistributionRate": "0xdb5db847f43c3e4b303a8716128c69b8a4cff0efa545a4e6a7f9ba76f3576409",
|
|
7258
|
+
"borrowingFactorLong": "0x206dfdfb16723212f58f5ae10e5e8e172acf7e1438e00328aa6e738150b3a800",
|
|
7259
|
+
"borrowingFactorShort": "0x49f6fea9efc70000421d0eac3dccdce22d4ae31c0c429fae8be8f78a6780bb04",
|
|
7260
|
+
"borrowingExponentFactorLong": "0x69103a11ba5018562862c48240aa50d637e5a8ed93434557aa116dce8f63a924",
|
|
7261
|
+
"borrowingExponentFactorShort": "0xc17cb79adc07becbfdd6ca7b962735578d79e86616f156b4d730a473834d7f08",
|
|
7262
|
+
"fundingFactor": "0xbfd987c6b3151fda13af648c6010c866c94db496ef88a94383c28e622331f0fa",
|
|
7263
|
+
"fundingExponentFactor": "0x204451d89e4e5ba9f4e21fcb3d14347c4f880c14c8c244be001c9a8863812f1f",
|
|
7264
|
+
"fundingIncreaseFactorPerSecond": "0x7df68925bcd1fc83ac035a1c01d65942aa05f87dbfb44b6d84c30f7eddfa54e4",
|
|
7265
|
+
"fundingDecreaseFactorPerSecond": "0x9765fb8869d1a14633f04533dc506e7a53d81f0b87e5667e6252f8649829ac59",
|
|
7266
|
+
"thresholdForStableFunding": "0xce66ddc3d441a6f3598acca8b8393af6e152243458bd5ca081b5360f00150c56",
|
|
7267
|
+
"thresholdForDecreaseFunding": "0xa44fbf22075995a7259d91bf7842be3a5c3672919c0b7874c6c56a5165f7ddd7",
|
|
7268
|
+
"minFundingFactorPerSecond": "0xce74d4759de9269bfdf1d1106763d7cf67240a0aa0476ec7a1313633b5cc8bab",
|
|
7269
|
+
"maxFundingFactorPerSecond": "0x9845b1c3d52ec9722a24ec795bca8663df0a96afed6910953a4ba0e2c2dc99ed",
|
|
7270
|
+
"maxPnlFactorForTradersLong": "0x048cd9b16df3a15951b554a6d093acbd2813a4fa89e150d380a5e2a51cc33af5",
|
|
7271
|
+
"maxPnlFactorForTradersShort": "0x5d8a14203e15df90f270758dff093e91d35e0b60ed2e32cdd85dab27d2a9ba8f",
|
|
7272
|
+
"positionFeeFactorForBalanceWasImproved": "0x263473d75ffaaa4a6bf2a1696ad1742a571c70e86f307372764546b5096209a2",
|
|
7273
|
+
"positionFeeFactorForBalanceWasNotImproved": "0xfd8efc7aa5a960bb956964904d96fc34a6b405fa011b426891defbba26f43228",
|
|
7274
|
+
"positionImpactFactorPositive": "0x9e573ae4c1ff7806d2c14fd510c6b589ebd14f7de7eb41e380aa30f8981030b6",
|
|
7275
|
+
"positionImpactFactorNegative": "0x34f6fdd96bf7c4d07313f18094e7c6804284a1dab0372f23d68dd54c285db689",
|
|
7276
|
+
"maxPositionImpactFactorPositive": "0x567bcc9565970ca6bfe5a63c106a9a6eefcdcf194a4ece592f0eb6a5f778a519",
|
|
7277
|
+
"maxPositionImpactFactorNegative": "0x5eef8925ff85ee285fa3a9765338777f1d2cff003488483ce023ca1685ec13b0",
|
|
7278
|
+
"maxPositionImpactFactorForLiquidations": "0x915d6dd31a2cbd059ae3816f277bd5354376333912ccc249d148e0c4e3e25b37",
|
|
7279
|
+
"maxLendableImpactFactor": "0x1a0267a34331c632359767f2cb5f963669a6ff74b34fdd020e009b29be7eadfa",
|
|
7280
|
+
"maxLendableImpactFactorForWithdrawals": "0x6874081d210a464fdcbbeb15e271f4d0e399666f514ebea4509909884d3c1e18",
|
|
7281
|
+
"maxLendableImpactUsd": "0xfce570849899fd38b775ed2961720357dd6c4ef37cb55a9df252f4c5d7ae4e17",
|
|
7282
|
+
"lentPositionImpactPoolAmount": "0xd2853b999aab8eb4506cd846221c17b56ee2f25052c94d0bbf0a5ca89a800960",
|
|
7283
|
+
"minCollateralFactor": "0xd43a0cc4e4ec514d16a5076af6e47f6c896c8c76ad62e1f65332eb6657972158",
|
|
7284
|
+
"minCollateralFactorForLiquidation": "0x58e4f67d793f716828df3e3bb3d8f414b0b9b208e54bbb52c9b6ec2878eca7fd",
|
|
7285
|
+
"minCollateralFactorForOpenInterestLong": "0xfcf61d77ca8cb310b437654a9f319f818af2da1d321d7b98dee26fd7d689599b",
|
|
7286
|
+
"minCollateralFactorForOpenInterestShort": "0xb262b98f05ed06adbd376101edae2751396e64a73787fcd614633b1de3aff2d0",
|
|
7287
|
+
"positionImpactExponentFactorPositive": "0xe6aced78e42c6afff063042d79fcf0c075b50cf49d9022ce7dff7aecba627d4f",
|
|
7288
|
+
"positionImpactExponentFactorNegative": "0x21d2b16fc939976a69b691a3e145af597c67cc961989338b09094e19fa6519b5",
|
|
7289
|
+
"swapFeeFactorForBalanceWasImproved": "0x39e22721c943d2bc5fd43d7a13a7c16810f50488f07ceb8541e23cbab532cd4a",
|
|
7290
|
+
"swapFeeFactorForBalanceWasNotImproved": "0x360409ff8beb5206e6780359aae1c910ab7bcea8591a6f04cf2b9573a4a6ec68",
|
|
7291
|
+
"atomicSwapFeeFactor": "0xa0674d66469b0a88cf274a8af0ed4f02123f83589027d953342f5ace8cd8e999",
|
|
7292
|
+
"swapImpactFactorPositive": "0x6b0c46033bda077be18554c54eedee3fc38481b39de42326df22785db28fb5c8",
|
|
7293
|
+
"swapImpactFactorNegative": "0xf8c5a879b0d578cb0fb058f7d011e3bb552c8a6c57a33092617192dc6482bf01",
|
|
7294
|
+
"swapImpactExponentFactor": "0xd39d26801d0a38cc44a3e415a4a8146d6bff635f5d4f11f0ed86d879cf7bace9",
|
|
7295
|
+
"withdrawalFeeFactorBalanceWasImproved": "0x0990b9da5d0b85afc84b1c5b3b2d20c0cf8955495239650fe6b9c4d6b7e8ccc8",
|
|
7296
|
+
"withdrawalFeeFactorBalanceWasNotImproved": "0xf93aaf17d7aad28e9f42a473de300693a32411ca560a624b9c675e8d910fdb1f",
|
|
7297
|
+
"virtualMarketId": "0x421cb53ca7cb4595fa9e1c0b61da8a0decdb290ba71a3a3b3cb72ff96be84e40",
|
|
7298
|
+
"virtualLongTokenId": "0xa59040b7efb6b7122a74cb318a192ebc6732849dff5332ee3ba40b90dfa0a04f",
|
|
7299
|
+
"virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
|
|
7129
7300
|
}
|
|
7130
7301
|
},
|
|
7131
7302
|
"43113": {
|
|
@@ -1876,6 +1876,51 @@
|
|
|
1876
1876
|
"longInterestInTokensUsingShortToken": "0x2dc01b3b85d756baf87d00c973daa5407d890d823b6d0c3e3319969af87c09a7",
|
|
1877
1877
|
"shortInterestInTokensUsingLongToken": "0xbdc14076a36f44c7f3a721b002fbe90479cef53c30049cf42365a196f962978d",
|
|
1878
1878
|
"shortInterestInTokensUsingShortToken": "0x4807b52cfdf6c2cebdc1e028aa6e5ea81dc95ff2d40ac3888f859c3973fdfe1b"
|
|
1879
|
+
},
|
|
1880
|
+
"0xeb28aD1a2e497F4Acc5D9b87e7B496623C93061E": {
|
|
1881
|
+
"longPoolAmount": "0x1467a0ca58bd033427ce20475cdd2146a5b6ff299485de5b886c5db5ae11c172",
|
|
1882
|
+
"shortPoolAmount": "0x9e3a74fda2c49d91656ffb331d11776658be447bdd883306084d57f3f739da94",
|
|
1883
|
+
"positionImpactPoolAmount": "0xc5954c357d418e28002101792d9a99234c6ae88afebfc922507234421fc3104b",
|
|
1884
|
+
"swapImpactPoolAmountLong": "0x934171c5620e093fec4bb7008a9ee50d5a79ebfd3730fde986199b89522f8bf5",
|
|
1885
|
+
"swapImpactPoolAmountShort": "0x1543ac5644aff1a908e3ae693aa1c76b2b6673aa0598c84caa952f6e098eaef3",
|
|
1886
|
+
"longInterestUsingLongToken": "0xf2c3a8eaadecd1ac537e33bb22ac14c127706d1281136582159e58225d4c076a",
|
|
1887
|
+
"longInterestUsingShortToken": "0xa8350cf5bb79a9d49a5fb395930259ffd1a236eac5d89440261732d65a25f392",
|
|
1888
|
+
"shortInterestUsingLongToken": "0xc3fea30bbfa4bb8a15e8887f0b68439fbafe3417447f581d7e8bbda0e6ba880e",
|
|
1889
|
+
"shortInterestUsingShortToken": "0x3b6af920eddbd59ac4bca4bb9a7d3f91bd4c4dc7a83ec88b366a22cdc20cd426",
|
|
1890
|
+
"longInterestInTokensUsingLongToken": "0x271a29586b96afa08a1bfe937e41f0ec9d0f62b5823fc8f7f4227f706f6eed24",
|
|
1891
|
+
"longInterestInTokensUsingShortToken": "0x8f706aef2d39b6b65a9d992f3b6adade9daf5439bfda4887908c2312464ec306",
|
|
1892
|
+
"shortInterestInTokensUsingLongToken": "0xdd9cde1c272d7e80a5c53b13616c3e43754b5024c66933be1cfef9a6e74993ff",
|
|
1893
|
+
"shortInterestInTokensUsingShortToken": "0x0caa9990d4ecfd4edf1098046d4b06baa46490ffc2f4951089ddb412bc7a75f3"
|
|
1894
|
+
},
|
|
1895
|
+
"0x044dFE01863CE85f9ECd5639eE5485c90AC320FC": {
|
|
1896
|
+
"longPoolAmount": "0x4bf0992c5d2cf541db66d59b36ffb1e883c1cc602d029e0973c9c14622c84c07",
|
|
1897
|
+
"shortPoolAmount": "0xd2a8ce3c15aaad24a2efe6772e953c911b80f2e1fff256df0522ff73a0194d01",
|
|
1898
|
+
"positionImpactPoolAmount": "0x12c40a0e5e407ac30f70437ec9031c3151b81735188a53988a88339fecc428a4",
|
|
1899
|
+
"swapImpactPoolAmountLong": "0x1432126a23273a829380ed2e00b947b6f570505a7cca6d02d087503336ecd456",
|
|
1900
|
+
"swapImpactPoolAmountShort": "0xeec716206ddc3fac7ced2379a78d106fc52951ac85946bca98092b3e935e149e",
|
|
1901
|
+
"longInterestUsingLongToken": "0x647d62333bd375890ce5799e7e7d47f78fe9388a48add9cafa65dda86515b393",
|
|
1902
|
+
"longInterestUsingShortToken": "0x4c9f65dced667d3cc59b53ae23d0734190e0f7abf8c70d5638a07e550b7f3f19",
|
|
1903
|
+
"shortInterestUsingLongToken": "0x85a241124f20f03eb0a265a995565484e0d6110c5e6ec4ca854280a9e11255ff",
|
|
1904
|
+
"shortInterestUsingShortToken": "0xf72dec4a533fb6a594ed7e4347e70a215ca20501881962a44149dfce9b20a2d5",
|
|
1905
|
+
"longInterestInTokensUsingLongToken": "0x976de6ccbb8dc799cd340b2d4373da665a4d0270ca67dee880ddcbcbe5374c13",
|
|
1906
|
+
"longInterestInTokensUsingShortToken": "0x3d1b3cb5f532caa312552f39dd9daeca0045f3ce7f79cb10a816dee3857f5c97",
|
|
1907
|
+
"shortInterestInTokensUsingLongToken": "0x6ab7a7ae8ef78d66eb7a6ca76d7ff649371dc62c54b8f508b3500300b7b32092",
|
|
1908
|
+
"shortInterestInTokensUsingShortToken": "0x8e1c3bfa64049ac133fea2eb5087a2e924d3631243fa4cadfbe29fe8eadb6514"
|
|
1909
|
+
},
|
|
1910
|
+
"0x5ff52BE1968107D7886a8E9A64874A45c8F5D96a": {
|
|
1911
|
+
"longPoolAmount": "0x024907819809cd43c72a6a4833f33b1869840bd76bec0e31ab2cf08d0f19ff0b",
|
|
1912
|
+
"shortPoolAmount": "0x8e42ed2ba273e13d3c8e6c11381728642b01d4ab62f37acf94ea3ebdb57740e8",
|
|
1913
|
+
"positionImpactPoolAmount": "0xc33c916b124dbf517fb0bfb710757c27dc6ec1e4b03efc2bcde5c1b4aa1c3b72",
|
|
1914
|
+
"swapImpactPoolAmountLong": "0x83665ca0edbf1565f2f133280f5c73934f00433c57f6d6c304e9c16832d1f772",
|
|
1915
|
+
"swapImpactPoolAmountShort": "0xaf9bfce6eb82448e84e37277210d83e0fc1524db9c0a03531acf7728f1c18e85",
|
|
1916
|
+
"longInterestUsingLongToken": "0xd940c419b28f864e3b162fc087831785096ba12b653181637f8d8dc0830242fe",
|
|
1917
|
+
"longInterestUsingShortToken": "0x5f8c26d4bcc28b308b2443fba71efb9b72184934393fefe650bbadd6618f4b67",
|
|
1918
|
+
"shortInterestUsingLongToken": "0x34270c9a363217c8a4b0cc117207b58fd0bd2aa08d39a6c5fbc2497ae7c75877",
|
|
1919
|
+
"shortInterestUsingShortToken": "0xe27ef4a387cd77b6830adf276ef939af126a4a2366f827e6d29c547bcd4b318b",
|
|
1920
|
+
"longInterestInTokensUsingLongToken": "0x7eff661f177aca8caa364bfa03b55ac5ba27df637f2fd4d8c066d575e1c8849f",
|
|
1921
|
+
"longInterestInTokensUsingShortToken": "0x304a988d2a21904b0de78f1e71fb803b4a070e4072eba7a2b7ca9c0e4f99bcbd",
|
|
1922
|
+
"shortInterestInTokensUsingLongToken": "0x529852b72b88323b98314e361c5fb21846b2c64fc5f9cf7ab9b92cd6d23a9f36",
|
|
1923
|
+
"shortInterestInTokensUsingShortToken": "0xd8b7ef7743b28c9a6b650fc6015d93312c5030d7b96cc8ee073e3ada0d08cab4"
|
|
1879
1924
|
}
|
|
1880
1925
|
},
|
|
1881
1926
|
"43113": {
|
|
@@ -1468,27 +1468,51 @@ export var MultichainFundingSendEventOrderByInput;
|
|
|
1468
1468
|
MultichainFundingSendEventOrderByInput["txn_DESC_NULLS_FIRST"] = "txn_DESC_NULLS_FIRST";
|
|
1469
1469
|
MultichainFundingSendEventOrderByInput["txn_DESC_NULLS_LAST"] = "txn_DESC_NULLS_LAST";
|
|
1470
1470
|
})(MultichainFundingSendEventOrderByInput || (MultichainFundingSendEventOrderByInput = {}));
|
|
1471
|
-
export var
|
|
1472
|
-
(function (
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1471
|
+
export var MultichainSamechainFundingEventOrderByInput;
|
|
1472
|
+
(function (MultichainSamechainFundingEventOrderByInput) {
|
|
1473
|
+
MultichainSamechainFundingEventOrderByInput["account_ASC"] = "account_ASC";
|
|
1474
|
+
MultichainSamechainFundingEventOrderByInput["account_ASC_NULLS_FIRST"] = "account_ASC_NULLS_FIRST";
|
|
1475
|
+
MultichainSamechainFundingEventOrderByInput["account_ASC_NULLS_LAST"] = "account_ASC_NULLS_LAST";
|
|
1476
|
+
MultichainSamechainFundingEventOrderByInput["account_DESC"] = "account_DESC";
|
|
1477
|
+
MultichainSamechainFundingEventOrderByInput["account_DESC_NULLS_FIRST"] = "account_DESC_NULLS_FIRST";
|
|
1478
|
+
MultichainSamechainFundingEventOrderByInput["account_DESC_NULLS_LAST"] = "account_DESC_NULLS_LAST";
|
|
1479
|
+
MultichainSamechainFundingEventOrderByInput["amount_ASC"] = "amount_ASC";
|
|
1480
|
+
MultichainSamechainFundingEventOrderByInput["amount_ASC_NULLS_FIRST"] = "amount_ASC_NULLS_FIRST";
|
|
1481
|
+
MultichainSamechainFundingEventOrderByInput["amount_ASC_NULLS_LAST"] = "amount_ASC_NULLS_LAST";
|
|
1482
|
+
MultichainSamechainFundingEventOrderByInput["amount_DESC"] = "amount_DESC";
|
|
1483
|
+
MultichainSamechainFundingEventOrderByInput["amount_DESC_NULLS_FIRST"] = "amount_DESC_NULLS_FIRST";
|
|
1484
|
+
MultichainSamechainFundingEventOrderByInput["amount_DESC_NULLS_LAST"] = "amount_DESC_NULLS_LAST";
|
|
1485
|
+
MultichainSamechainFundingEventOrderByInput["id_ASC"] = "id_ASC";
|
|
1486
|
+
MultichainSamechainFundingEventOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
|
|
1487
|
+
MultichainSamechainFundingEventOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
|
|
1488
|
+
MultichainSamechainFundingEventOrderByInput["id_DESC"] = "id_DESC";
|
|
1489
|
+
MultichainSamechainFundingEventOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
|
|
1490
|
+
MultichainSamechainFundingEventOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
|
|
1491
|
+
MultichainSamechainFundingEventOrderByInput["operation_ASC"] = "operation_ASC";
|
|
1492
|
+
MultichainSamechainFundingEventOrderByInput["operation_ASC_NULLS_FIRST"] = "operation_ASC_NULLS_FIRST";
|
|
1493
|
+
MultichainSamechainFundingEventOrderByInput["operation_ASC_NULLS_LAST"] = "operation_ASC_NULLS_LAST";
|
|
1494
|
+
MultichainSamechainFundingEventOrderByInput["operation_DESC"] = "operation_DESC";
|
|
1495
|
+
MultichainSamechainFundingEventOrderByInput["operation_DESC_NULLS_FIRST"] = "operation_DESC_NULLS_FIRST";
|
|
1496
|
+
MultichainSamechainFundingEventOrderByInput["operation_DESC_NULLS_LAST"] = "operation_DESC_NULLS_LAST";
|
|
1497
|
+
MultichainSamechainFundingEventOrderByInput["timestamp_ASC"] = "timestamp_ASC";
|
|
1498
|
+
MultichainSamechainFundingEventOrderByInput["timestamp_ASC_NULLS_FIRST"] = "timestamp_ASC_NULLS_FIRST";
|
|
1499
|
+
MultichainSamechainFundingEventOrderByInput["timestamp_ASC_NULLS_LAST"] = "timestamp_ASC_NULLS_LAST";
|
|
1500
|
+
MultichainSamechainFundingEventOrderByInput["timestamp_DESC"] = "timestamp_DESC";
|
|
1501
|
+
MultichainSamechainFundingEventOrderByInput["timestamp_DESC_NULLS_FIRST"] = "timestamp_DESC_NULLS_FIRST";
|
|
1502
|
+
MultichainSamechainFundingEventOrderByInput["timestamp_DESC_NULLS_LAST"] = "timestamp_DESC_NULLS_LAST";
|
|
1503
|
+
MultichainSamechainFundingEventOrderByInput["token_ASC"] = "token_ASC";
|
|
1504
|
+
MultichainSamechainFundingEventOrderByInput["token_ASC_NULLS_FIRST"] = "token_ASC_NULLS_FIRST";
|
|
1505
|
+
MultichainSamechainFundingEventOrderByInput["token_ASC_NULLS_LAST"] = "token_ASC_NULLS_LAST";
|
|
1506
|
+
MultichainSamechainFundingEventOrderByInput["token_DESC"] = "token_DESC";
|
|
1507
|
+
MultichainSamechainFundingEventOrderByInput["token_DESC_NULLS_FIRST"] = "token_DESC_NULLS_FIRST";
|
|
1508
|
+
MultichainSamechainFundingEventOrderByInput["token_DESC_NULLS_LAST"] = "token_DESC_NULLS_LAST";
|
|
1509
|
+
MultichainSamechainFundingEventOrderByInput["txHash_ASC"] = "txHash_ASC";
|
|
1510
|
+
MultichainSamechainFundingEventOrderByInput["txHash_ASC_NULLS_FIRST"] = "txHash_ASC_NULLS_FIRST";
|
|
1511
|
+
MultichainSamechainFundingEventOrderByInput["txHash_ASC_NULLS_LAST"] = "txHash_ASC_NULLS_LAST";
|
|
1512
|
+
MultichainSamechainFundingEventOrderByInput["txHash_DESC"] = "txHash_DESC";
|
|
1513
|
+
MultichainSamechainFundingEventOrderByInput["txHash_DESC_NULLS_FIRST"] = "txHash_DESC_NULLS_FIRST";
|
|
1514
|
+
MultichainSamechainFundingEventOrderByInput["txHash_DESC_NULLS_LAST"] = "txHash_DESC_NULLS_LAST";
|
|
1515
|
+
})(MultichainSamechainFundingEventOrderByInput || (MultichainSamechainFundingEventOrderByInput = {}));
|
|
1492
1516
|
export var OnChainSettingOrderByInput;
|
|
1493
1517
|
(function (OnChainSettingOrderByInput) {
|
|
1494
1518
|
OnChainSettingOrderByInput["id_ASC"] = "id_ASC";
|
|
@@ -2221,6 +2245,69 @@ export var PositionFeesEntityType;
|
|
|
2221
2245
|
PositionFeesEntityType["PositionFeesCollected"] = "PositionFeesCollected";
|
|
2222
2246
|
PositionFeesEntityType["PositionFeesInfo"] = "PositionFeesInfo";
|
|
2223
2247
|
})(PositionFeesEntityType || (PositionFeesEntityType = {}));
|
|
2248
|
+
export var PositionFeesInfoWithPeriodOrderByInput;
|
|
2249
|
+
(function (PositionFeesInfoWithPeriodOrderByInput) {
|
|
2250
|
+
PositionFeesInfoWithPeriodOrderByInput["id_ASC"] = "id_ASC";
|
|
2251
|
+
PositionFeesInfoWithPeriodOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
|
|
2252
|
+
PositionFeesInfoWithPeriodOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
|
|
2253
|
+
PositionFeesInfoWithPeriodOrderByInput["id_DESC"] = "id_DESC";
|
|
2254
|
+
PositionFeesInfoWithPeriodOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
|
|
2255
|
+
PositionFeesInfoWithPeriodOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
|
|
2256
|
+
PositionFeesInfoWithPeriodOrderByInput["period_ASC"] = "period_ASC";
|
|
2257
|
+
PositionFeesInfoWithPeriodOrderByInput["period_ASC_NULLS_FIRST"] = "period_ASC_NULLS_FIRST";
|
|
2258
|
+
PositionFeesInfoWithPeriodOrderByInput["period_ASC_NULLS_LAST"] = "period_ASC_NULLS_LAST";
|
|
2259
|
+
PositionFeesInfoWithPeriodOrderByInput["period_DESC"] = "period_DESC";
|
|
2260
|
+
PositionFeesInfoWithPeriodOrderByInput["period_DESC_NULLS_FIRST"] = "period_DESC_NULLS_FIRST";
|
|
2261
|
+
PositionFeesInfoWithPeriodOrderByInput["period_DESC_NULLS_LAST"] = "period_DESC_NULLS_LAST";
|
|
2262
|
+
PositionFeesInfoWithPeriodOrderByInput["timestamp_ASC"] = "timestamp_ASC";
|
|
2263
|
+
PositionFeesInfoWithPeriodOrderByInput["timestamp_ASC_NULLS_FIRST"] = "timestamp_ASC_NULLS_FIRST";
|
|
2264
|
+
PositionFeesInfoWithPeriodOrderByInput["timestamp_ASC_NULLS_LAST"] = "timestamp_ASC_NULLS_LAST";
|
|
2265
|
+
PositionFeesInfoWithPeriodOrderByInput["timestamp_DESC"] = "timestamp_DESC";
|
|
2266
|
+
PositionFeesInfoWithPeriodOrderByInput["timestamp_DESC_NULLS_FIRST"] = "timestamp_DESC_NULLS_FIRST";
|
|
2267
|
+
PositionFeesInfoWithPeriodOrderByInput["timestamp_DESC_NULLS_LAST"] = "timestamp_DESC_NULLS_LAST";
|
|
2268
|
+
PositionFeesInfoWithPeriodOrderByInput["totalBorrowingFeeUsd_ASC"] = "totalBorrowingFeeUsd_ASC";
|
|
2269
|
+
PositionFeesInfoWithPeriodOrderByInput["totalBorrowingFeeUsd_ASC_NULLS_FIRST"] = "totalBorrowingFeeUsd_ASC_NULLS_FIRST";
|
|
2270
|
+
PositionFeesInfoWithPeriodOrderByInput["totalBorrowingFeeUsd_ASC_NULLS_LAST"] = "totalBorrowingFeeUsd_ASC_NULLS_LAST";
|
|
2271
|
+
PositionFeesInfoWithPeriodOrderByInput["totalBorrowingFeeUsd_DESC"] = "totalBorrowingFeeUsd_DESC";
|
|
2272
|
+
PositionFeesInfoWithPeriodOrderByInput["totalBorrowingFeeUsd_DESC_NULLS_FIRST"] = "totalBorrowingFeeUsd_DESC_NULLS_FIRST";
|
|
2273
|
+
PositionFeesInfoWithPeriodOrderByInput["totalBorrowingFeeUsd_DESC_NULLS_LAST"] = "totalBorrowingFeeUsd_DESC_NULLS_LAST";
|
|
2274
|
+
PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeAmount_ASC"] = "totalLiquidationFeeAmount_ASC";
|
|
2275
|
+
PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeAmount_ASC_NULLS_FIRST"] = "totalLiquidationFeeAmount_ASC_NULLS_FIRST";
|
|
2276
|
+
PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeAmount_ASC_NULLS_LAST"] = "totalLiquidationFeeAmount_ASC_NULLS_LAST";
|
|
2277
|
+
PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeAmount_DESC"] = "totalLiquidationFeeAmount_DESC";
|
|
2278
|
+
PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeAmount_DESC_NULLS_FIRST"] = "totalLiquidationFeeAmount_DESC_NULLS_FIRST";
|
|
2279
|
+
PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeAmount_DESC_NULLS_LAST"] = "totalLiquidationFeeAmount_DESC_NULLS_LAST";
|
|
2280
|
+
PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeUsd_ASC"] = "totalLiquidationFeeUsd_ASC";
|
|
2281
|
+
PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeUsd_ASC_NULLS_FIRST"] = "totalLiquidationFeeUsd_ASC_NULLS_FIRST";
|
|
2282
|
+
PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeUsd_ASC_NULLS_LAST"] = "totalLiquidationFeeUsd_ASC_NULLS_LAST";
|
|
2283
|
+
PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeUsd_DESC"] = "totalLiquidationFeeUsd_DESC";
|
|
2284
|
+
PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeUsd_DESC_NULLS_FIRST"] = "totalLiquidationFeeUsd_DESC_NULLS_FIRST";
|
|
2285
|
+
PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeUsd_DESC_NULLS_LAST"] = "totalLiquidationFeeUsd_DESC_NULLS_LAST";
|
|
2286
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmountForPool_ASC"] = "totalPositionFeeAmountForPool_ASC";
|
|
2287
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmountForPool_ASC_NULLS_FIRST"] = "totalPositionFeeAmountForPool_ASC_NULLS_FIRST";
|
|
2288
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmountForPool_ASC_NULLS_LAST"] = "totalPositionFeeAmountForPool_ASC_NULLS_LAST";
|
|
2289
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmountForPool_DESC"] = "totalPositionFeeAmountForPool_DESC";
|
|
2290
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmountForPool_DESC_NULLS_FIRST"] = "totalPositionFeeAmountForPool_DESC_NULLS_FIRST";
|
|
2291
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmountForPool_DESC_NULLS_LAST"] = "totalPositionFeeAmountForPool_DESC_NULLS_LAST";
|
|
2292
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmount_ASC"] = "totalPositionFeeAmount_ASC";
|
|
2293
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmount_ASC_NULLS_FIRST"] = "totalPositionFeeAmount_ASC_NULLS_FIRST";
|
|
2294
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmount_ASC_NULLS_LAST"] = "totalPositionFeeAmount_ASC_NULLS_LAST";
|
|
2295
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmount_DESC"] = "totalPositionFeeAmount_DESC";
|
|
2296
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmount_DESC_NULLS_FIRST"] = "totalPositionFeeAmount_DESC_NULLS_FIRST";
|
|
2297
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmount_DESC_NULLS_LAST"] = "totalPositionFeeAmount_DESC_NULLS_LAST";
|
|
2298
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsdForPool_ASC"] = "totalPositionFeeUsdForPool_ASC";
|
|
2299
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsdForPool_ASC_NULLS_FIRST"] = "totalPositionFeeUsdForPool_ASC_NULLS_FIRST";
|
|
2300
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsdForPool_ASC_NULLS_LAST"] = "totalPositionFeeUsdForPool_ASC_NULLS_LAST";
|
|
2301
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsdForPool_DESC"] = "totalPositionFeeUsdForPool_DESC";
|
|
2302
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsdForPool_DESC_NULLS_FIRST"] = "totalPositionFeeUsdForPool_DESC_NULLS_FIRST";
|
|
2303
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsdForPool_DESC_NULLS_LAST"] = "totalPositionFeeUsdForPool_DESC_NULLS_LAST";
|
|
2304
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsd_ASC"] = "totalPositionFeeUsd_ASC";
|
|
2305
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsd_ASC_NULLS_FIRST"] = "totalPositionFeeUsd_ASC_NULLS_FIRST";
|
|
2306
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsd_ASC_NULLS_LAST"] = "totalPositionFeeUsd_ASC_NULLS_LAST";
|
|
2307
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsd_DESC"] = "totalPositionFeeUsd_DESC";
|
|
2308
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsd_DESC_NULLS_FIRST"] = "totalPositionFeeUsd_DESC_NULLS_FIRST";
|
|
2309
|
+
PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsd_DESC_NULLS_LAST"] = "totalPositionFeeUsd_DESC_NULLS_LAST";
|
|
2310
|
+
})(PositionFeesInfoWithPeriodOrderByInput || (PositionFeesInfoWithPeriodOrderByInput = {}));
|
|
2224
2311
|
export var PositionOrderByInput;
|
|
2225
2312
|
(function (PositionOrderByInput) {
|
|
2226
2313
|
PositionOrderByInput["accountStat_closedCount_ASC"] = "accountStat_closedCount_ASC";
|
|
@@ -2657,6 +2744,39 @@ export var SwapFeesInfoOrderByInput;
|
|
|
2657
2744
|
SwapFeesInfoOrderByInput["transaction_transactionIndex_DESC_NULLS_FIRST"] = "transaction_transactionIndex_DESC_NULLS_FIRST";
|
|
2658
2745
|
SwapFeesInfoOrderByInput["transaction_transactionIndex_DESC_NULLS_LAST"] = "transaction_transactionIndex_DESC_NULLS_LAST";
|
|
2659
2746
|
})(SwapFeesInfoOrderByInput || (SwapFeesInfoOrderByInput = {}));
|
|
2747
|
+
export var SwapFeesInfoWithPeriodOrderByInput;
|
|
2748
|
+
(function (SwapFeesInfoWithPeriodOrderByInput) {
|
|
2749
|
+
SwapFeesInfoWithPeriodOrderByInput["id_ASC"] = "id_ASC";
|
|
2750
|
+
SwapFeesInfoWithPeriodOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
|
|
2751
|
+
SwapFeesInfoWithPeriodOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
|
|
2752
|
+
SwapFeesInfoWithPeriodOrderByInput["id_DESC"] = "id_DESC";
|
|
2753
|
+
SwapFeesInfoWithPeriodOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
|
|
2754
|
+
SwapFeesInfoWithPeriodOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
|
|
2755
|
+
SwapFeesInfoWithPeriodOrderByInput["period_ASC"] = "period_ASC";
|
|
2756
|
+
SwapFeesInfoWithPeriodOrderByInput["period_ASC_NULLS_FIRST"] = "period_ASC_NULLS_FIRST";
|
|
2757
|
+
SwapFeesInfoWithPeriodOrderByInput["period_ASC_NULLS_LAST"] = "period_ASC_NULLS_LAST";
|
|
2758
|
+
SwapFeesInfoWithPeriodOrderByInput["period_DESC"] = "period_DESC";
|
|
2759
|
+
SwapFeesInfoWithPeriodOrderByInput["period_DESC_NULLS_FIRST"] = "period_DESC_NULLS_FIRST";
|
|
2760
|
+
SwapFeesInfoWithPeriodOrderByInput["period_DESC_NULLS_LAST"] = "period_DESC_NULLS_LAST";
|
|
2761
|
+
SwapFeesInfoWithPeriodOrderByInput["timestamp_ASC"] = "timestamp_ASC";
|
|
2762
|
+
SwapFeesInfoWithPeriodOrderByInput["timestamp_ASC_NULLS_FIRST"] = "timestamp_ASC_NULLS_FIRST";
|
|
2763
|
+
SwapFeesInfoWithPeriodOrderByInput["timestamp_ASC_NULLS_LAST"] = "timestamp_ASC_NULLS_LAST";
|
|
2764
|
+
SwapFeesInfoWithPeriodOrderByInput["timestamp_DESC"] = "timestamp_DESC";
|
|
2765
|
+
SwapFeesInfoWithPeriodOrderByInput["timestamp_DESC_NULLS_FIRST"] = "timestamp_DESC_NULLS_FIRST";
|
|
2766
|
+
SwapFeesInfoWithPeriodOrderByInput["timestamp_DESC_NULLS_LAST"] = "timestamp_DESC_NULLS_LAST";
|
|
2767
|
+
SwapFeesInfoWithPeriodOrderByInput["totalFeeReceiverUsd_ASC"] = "totalFeeReceiverUsd_ASC";
|
|
2768
|
+
SwapFeesInfoWithPeriodOrderByInput["totalFeeReceiverUsd_ASC_NULLS_FIRST"] = "totalFeeReceiverUsd_ASC_NULLS_FIRST";
|
|
2769
|
+
SwapFeesInfoWithPeriodOrderByInput["totalFeeReceiverUsd_ASC_NULLS_LAST"] = "totalFeeReceiverUsd_ASC_NULLS_LAST";
|
|
2770
|
+
SwapFeesInfoWithPeriodOrderByInput["totalFeeReceiverUsd_DESC"] = "totalFeeReceiverUsd_DESC";
|
|
2771
|
+
SwapFeesInfoWithPeriodOrderByInput["totalFeeReceiverUsd_DESC_NULLS_FIRST"] = "totalFeeReceiverUsd_DESC_NULLS_FIRST";
|
|
2772
|
+
SwapFeesInfoWithPeriodOrderByInput["totalFeeReceiverUsd_DESC_NULLS_LAST"] = "totalFeeReceiverUsd_DESC_NULLS_LAST";
|
|
2773
|
+
SwapFeesInfoWithPeriodOrderByInput["totalFeeUsdForPool_ASC"] = "totalFeeUsdForPool_ASC";
|
|
2774
|
+
SwapFeesInfoWithPeriodOrderByInput["totalFeeUsdForPool_ASC_NULLS_FIRST"] = "totalFeeUsdForPool_ASC_NULLS_FIRST";
|
|
2775
|
+
SwapFeesInfoWithPeriodOrderByInput["totalFeeUsdForPool_ASC_NULLS_LAST"] = "totalFeeUsdForPool_ASC_NULLS_LAST";
|
|
2776
|
+
SwapFeesInfoWithPeriodOrderByInput["totalFeeUsdForPool_DESC"] = "totalFeeUsdForPool_DESC";
|
|
2777
|
+
SwapFeesInfoWithPeriodOrderByInput["totalFeeUsdForPool_DESC_NULLS_FIRST"] = "totalFeeUsdForPool_DESC_NULLS_FIRST";
|
|
2778
|
+
SwapFeesInfoWithPeriodOrderByInput["totalFeeUsdForPool_DESC_NULLS_LAST"] = "totalFeeUsdForPool_DESC_NULLS_LAST";
|
|
2779
|
+
})(SwapFeesInfoWithPeriodOrderByInput || (SwapFeesInfoWithPeriodOrderByInput = {}));
|
|
2660
2780
|
export var SwapInfoOrderByInput;
|
|
2661
2781
|
(function (SwapInfoOrderByInput) {
|
|
2662
2782
|
SwapInfoOrderByInput["amountInAfterFees_ASC"] = "amountInAfterFees_ASC";
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ARBITRUM, ARBITRUM_SEPOLIA, AVALANCHE, AVALANCHE_FUJI, BOTANIX } from "./chains";
|
|
2
2
|
const API_URLS = {
|
|
3
|
-
[ARBITRUM]: "https://gmx-api-arbitrum-
|
|
4
|
-
[AVALANCHE]: "",
|
|
5
|
-
[AVALANCHE_FUJI]:
|
|
6
|
-
[BOTANIX]:
|
|
7
|
-
[ARBITRUM_SEPOLIA]: "",
|
|
3
|
+
[ARBITRUM]: "https://gmx-api-arbitrum-2nlbk.ondigitalocean.app/api/v1",
|
|
4
|
+
[AVALANCHE]: "https://gmx-api-avalanche-vxjas.ondigitalocean.app/api/v1",
|
|
5
|
+
[AVALANCHE_FUJI]: undefined,
|
|
6
|
+
[BOTANIX]: undefined,
|
|
7
|
+
[ARBITRUM_SEPOLIA]: "https://gmx-api-arbitrum-sepolia-yp6pp.ondigitalocean.app/api/v1",
|
|
8
8
|
};
|
|
9
9
|
export function getApiUrl(chainId) {
|
|
10
10
|
return API_URLS[chainId];
|
|
11
11
|
}
|
|
12
|
+
export function isApiSupported(chainId) {
|
|
13
|
+
return getApiUrl(chainId) !== undefined;
|
|
14
|
+
}
|
|
@@ -866,6 +866,27 @@ export const MARKETS = {
|
|
|
866
866
|
longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
|
|
867
867
|
shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
|
868
868
|
},
|
|
869
|
+
// XAUT/USD [WBTC-USDC]
|
|
870
|
+
"0xeb28aD1a2e497F4Acc5D9b87e7B496623C93061E": {
|
|
871
|
+
marketTokenAddress: "0xeb28aD1a2e497F4Acc5D9b87e7B496623C93061E",
|
|
872
|
+
indexTokenAddress: "0x7624cccCc59361D583F28BEC40D37e7771d2ef5D",
|
|
873
|
+
longTokenAddress: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
|
|
874
|
+
shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
|
875
|
+
},
|
|
876
|
+
// LIT/USD [WETH-USDC]
|
|
877
|
+
"0x044dFE01863CE85f9ECd5639eE5485c90AC320FC": {
|
|
878
|
+
marketTokenAddress: "0x044dFE01863CE85f9ECd5639eE5485c90AC320FC",
|
|
879
|
+
indexTokenAddress: "0xE6172EecBB07F197F52bb73d74daa0e19C31c4Db",
|
|
880
|
+
longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
|
|
881
|
+
shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
|
882
|
+
},
|
|
883
|
+
// IP/USD [WBTC-USDC]
|
|
884
|
+
"0x5ff52BE1968107D7886a8E9A64874A45c8F5D96a": {
|
|
885
|
+
marketTokenAddress: "0x5ff52BE1968107D7886a8E9A64874A45c8F5D96a",
|
|
886
|
+
indexTokenAddress: "0xe7304E9F4ca383BD6312a5179cdC7B40B96A6F5a",
|
|
887
|
+
longTokenAddress: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
|
|
888
|
+
shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
|
889
|
+
},
|
|
869
890
|
},
|
|
870
891
|
[AVALANCHE]: {
|
|
871
892
|
// BTC/USD [BTC-USDC]
|
|
@@ -1218,6 +1218,38 @@ export const TOKENS = {
|
|
|
1218
1218
|
categories: ["layer1"],
|
|
1219
1219
|
imageUrl: "https://assets.coingecko.com/coins/images/8834/standard/CHZ_Token_updated.png?1696508986",
|
|
1220
1220
|
},
|
|
1221
|
+
{
|
|
1222
|
+
name: "Tether Gold",
|
|
1223
|
+
symbol: "XAUT",
|
|
1224
|
+
assetSymbol: "XAUT",
|
|
1225
|
+
baseSymbol: "XAUT",
|
|
1226
|
+
address: "0x7624cccCc59361D583F28BEC40D37e7771d2ef5D",
|
|
1227
|
+
isSynthetic: true,
|
|
1228
|
+
decimals: 18,
|
|
1229
|
+
priceDecimals: 2,
|
|
1230
|
+
categories: ["rwa"],
|
|
1231
|
+
imageUrl: "https://assets.coingecko.com/coins/images/10481/standard/Tether_Gold.png?1696510471",
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
name: "Lighter",
|
|
1235
|
+
symbol: "LIT",
|
|
1236
|
+
address: "0xE6172EecBB07F197F52bb73d74daa0e19C31c4Db",
|
|
1237
|
+
isSynthetic: true,
|
|
1238
|
+
decimals: 18,
|
|
1239
|
+
priceDecimals: 4,
|
|
1240
|
+
categories: ["defi"],
|
|
1241
|
+
imageUrl: "https://assets.coingecko.com/coins/images/71121/standard/lighter.png?1765888098",
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
name: "Story",
|
|
1245
|
+
symbol: "IP",
|
|
1246
|
+
address: "0xe7304E9F4ca383BD6312a5179cdC7B40B96A6F5a",
|
|
1247
|
+
isSynthetic: true,
|
|
1248
|
+
decimals: 18,
|
|
1249
|
+
priceDecimals: 4,
|
|
1250
|
+
categories: ["layer1"],
|
|
1251
|
+
imageUrl: "https://assets.coingecko.com/coins/images/54035/standard/Transparent_bg.png?1738075331",
|
|
1252
|
+
},
|
|
1221
1253
|
],
|
|
1222
1254
|
[AVALANCHE]: [
|
|
1223
1255
|
{
|
|
@@ -2073,6 +2105,9 @@ export function getNormalizedTokenSymbol(tokenSymbol) {
|
|
|
2073
2105
|
else if (["PBTC", "STBTC"].includes(tokenSymbol)) {
|
|
2074
2106
|
return "BTC";
|
|
2075
2107
|
}
|
|
2108
|
+
else if (tokenSymbol === "XAUT") {
|
|
2109
|
+
return "XAUT.v2";
|
|
2110
|
+
}
|
|
2076
2111
|
else if (tokenSymbol.includes(".")) {
|
|
2077
2112
|
return tokenSymbol.split(".")[0];
|
|
2078
2113
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe, it, expect } from "vitest";
|
|
2
2
|
import { USD_DECIMALS } from "../../configs/factors";
|
|
3
|
-
import { numberToBigint } from "../numbers";
|
|
4
3
|
import { getFundingFactorPerPeriod } from "../fees";
|
|
4
|
+
import { numberToBigint } from "../numbers";
|
|
5
5
|
const dollar = 10n ** BigInt(USD_DECIMALS);
|
|
6
6
|
const eightMillion = 8000000n;
|
|
7
7
|
const tenMillion = 10000000n;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe, expect, it } from "vitest";
|
|
2
2
|
import { BASIS_POINTS_DIVISOR_BIGINT, USD_DECIMALS } from "../../configs/factors";
|
|
3
|
-
const ONE_USD = 1000000000000000000000000000000n;
|
|
4
3
|
import { applyFactor, basisPointsToFloat, bigintToNumber, BN_NEGATIVE_ONE, BN_ONE, BN_ZERO, expandDecimals, formatAmount, formatAmountHuman, formatBalanceAmount, formatFactor, formatPercentage, formatTokenAmount, formatUsdPrice, getBasisPoints, numberToBigint, PERCENT_PRECISION_DECIMALS, PRECISION, PRECISION_DECIMALS, roundWithDecimals, roundUpMagnitudeDivision, toBigNumberWithDecimals, } from "../numbers";
|
|
4
|
+
const ONE_USD = 1000000000000000000000000000000n;
|
|
5
5
|
describe("numbers utils", () => {
|
|
6
6
|
it("constants", () => {
|
|
7
7
|
// Just to confirm they exist and have no unexpected changes
|
|
@@ -2,10 +2,10 @@ import { zeroAddress, zeroHash } from "viem";
|
|
|
2
2
|
import { describe, expect, it } from "vitest";
|
|
3
3
|
import { ARBITRUM } from "../../../configs/chains";
|
|
4
4
|
import { getTokenBySymbol, getWrappedToken, NATIVE_TOKEN_ADDRESS } from "../../../configs/tokens";
|
|
5
|
+
import { mockExternalSwap } from "../../../test/mock";
|
|
5
6
|
import { expandDecimals, parseValue, USD_DECIMALS } from "../../numbers";
|
|
6
7
|
import { OrderType } from "../../orders/types";
|
|
7
8
|
import { buildIncreaseOrderPayload, getBatchExternalCalls, getBatchExternalSwapGasLimit, getBatchIsNativePayment, getBatchTotalExecutionFee, getBatchTotalPayCollateralAmount, getIsEmptyBatch, getIsInvalidBatchReceiver, } from "../../orderTransactions";
|
|
8
|
-
import { mockExternalSwap } from "../../../test/mock";
|
|
9
9
|
// Common tokens and addresses
|
|
10
10
|
const CHAIN_ID = ARBITRUM;
|
|
11
11
|
const ACCOUNT = "0x1234567890123456789012345678901234567890";
|