impermax-sdk 1.2.112 → 2.0.0
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/lib/abis/ImpermaxABI.d.ts +2 -2
- package/lib/abis/ImpermaxABI.js +3 -3
- package/lib/abis/contracts/ClaimAggregator.json +2015 -2015
- package/lib/abis/contracts/IAllowanceTransfer.json +3772 -0
- package/lib/abis/contracts/IBorrowable.json +13207 -13207
- package/lib/abis/contracts/IClaimable.json +406 -406
- package/lib/abis/contracts/ICollateral.json +9052 -9052
- package/lib/abis/contracts/IERC20.json +2376 -2376
- package/lib/abis/contracts/IERC721.json +3515 -0
- package/lib/abis/contracts/IFactory.json +3660 -3660
- package/lib/abis/contracts/IFarmingPool.json +3584 -3584
- package/lib/abis/contracts/ILendingVaultV1.json +8358 -8358
- package/lib/abis/contracts/IMerkleDistributor.json +1134 -1134
- package/lib/abis/contracts/IRouter02.json +7283 -7283
- package/lib/abis/contracts/ISimpleUniswapOracle.json +1469 -1469
- package/lib/abis/contracts/IStakedLPToken.json +7309 -7309
- package/lib/abis/contracts/IStakingRewards.json +1036 -1036
- package/lib/abis/contracts/ITokenizedUniswapV2Position.json +4167 -0
- package/lib/abis/contracts/ITokenizedUniswapV3Position.json +5539 -0
- package/lib/abis/contracts/IUniswapV2Factory.json +1690 -1690
- package/lib/abis/contracts/IUniswapV2Pair.json +6761 -6761
- package/lib/abis/contracts/IUniswapV3Pool.json +6606 -0
- package/lib/abis/contracts/ImpermaxChef.json +20945 -20945
- package/lib/abis/contracts/ImpermaxConfigManager.json +31595 -31595
- package/lib/abis/contracts/ImpermaxV3Borrowable.json +22131 -0
- package/lib/abis/contracts/ImpermaxV3Collateral.json +22988 -0
- package/lib/abis/contracts/ImpermaxV3Factory.json +17645 -0
- package/lib/abis/contracts/ImpermaxV3UniV2Router01.json +32488 -0
- package/lib/abis/contracts/ImpermaxV3UniV3Router01.json +37742 -0
- package/lib/abis/contracts/LendingVaultWatcher01.json +4076 -4076
- package/lib/abis/contracts/PoolTokenRouter01.json +9058 -0
- package/lib/config/amms.d.ts +102 -104
- package/lib/config/amms.js +433 -436
- package/lib/config/chainId.d.ts +2 -0
- package/lib/config/chainId.js +26 -0
- package/lib/config/contracts/claim-aggregators.d.ts +2 -2
- package/lib/config/contracts/claim-aggregators.js +26 -26
- package/lib/config/contracts/impermax-chef.d.ts +2 -2
- package/lib/config/contracts/impermax-chef.js +27 -27
- package/lib/config/contracts/impermax-config-manager.d.ts +2 -2
- package/lib/config/contracts/impermax-config-manager.js +26 -26
- package/lib/config/contracts/impermax-factories.d.ts +4 -4
- package/lib/config/contracts/impermax-factories.js +87 -87
- package/lib/config/contracts/imxes.d.ts +2 -2
- package/lib/config/contracts/imxes.js +26 -26
- package/lib/config/contracts/lending-vault-watcher.d.ts +2 -2
- package/lib/config/contracts/lending-vault-watcher.js +26 -26
- package/lib/config/contracts/merkle-distributors.d.ts +4 -4
- package/lib/config/contracts/merkle-distributors.js +70 -70
- package/lib/config/contracts/routers.d.ts +4 -3
- package/lib/config/contracts/routers.js +118 -94
- package/lib/config/contracts/simple-uniswap-oracles.d.ts +2 -2
- package/lib/config/contracts/simple-uniswap-oracles.js +49 -49
- package/lib/config/contracts/weths.d.ts +2 -2
- package/lib/config/contracts/weths.js +27 -27
- package/lib/config/debank-ids.d.ts +2 -2
- package/lib/config/debank-ids.js +26 -26
- package/lib/config/endpoints/merkle-distributors.d.ts +4 -4
- package/lib/config/endpoints/merkle-distributors.js +70 -70
- package/lib/config/eth.d.ts +3 -3
- package/lib/config/eth.js +48 -48
- package/lib/config/factories.d.ts +7 -7
- package/lib/config/factories.js +31 -30
- package/lib/config/farms.d.ts +109 -111
- package/lib/config/farms.js +207 -210
- package/lib/config/general.d.ts +5 -5
- package/lib/config/general.js +8 -8
- package/lib/config/subgraphs.d.ts +45 -45
- package/lib/config/subgraphs.js +187 -187
- package/lib/config/types.d.ts +85 -72
- package/lib/config/types.js +72 -58
- package/lib/index.d.ts +36 -35
- package/lib/index.js +159 -152
- package/lib/offchain/account/index.d.ts +9 -7
- package/lib/offchain/account/index.js +43 -39
- package/lib/offchain/account/lendingPool/borrowable.d.ts +14 -0
- package/lib/offchain/account/lendingPool/borrowable.js +73 -0
- package/lib/offchain/account/lendingPool/collateral.d.ts +12 -0
- package/lib/offchain/account/lendingPool/collateral.js +42 -0
- package/lib/offchain/account/lendingPool/index.d.ts +6 -5
- package/lib/offchain/account/lendingPool/index.js +14 -12
- package/lib/offchain/account/lendingPool/offchainAccountBorrowable.d.ts +14 -17
- package/lib/offchain/account/lendingPool/offchainAccountBorrowable.js +45 -71
- package/lib/offchain/account/lendingPool/offchainAccountCollateral.d.ts +11 -13
- package/lib/offchain/account/lendingPool/offchainAccountCollateral.js +31 -43
- package/lib/offchain/account/lendingPool/offchainAccountLendingPool.d.ts +28 -21
- package/lib/offchain/account/lendingPool/offchainAccountLendingPool.js +69 -68
- package/lib/offchain/account/lendingPool/offchainLeveragedPosition.d.ts +25 -0
- package/lib/offchain/account/lendingPool/offchainLeveragedPosition.js +116 -0
- package/lib/offchain/account/lendingVault.d.ts +11 -0
- package/lib/offchain/account/lendingVault.js +38 -0
- package/lib/offchain/account/offchainAccount.d.ts +25 -25
- package/lib/offchain/account/offchainAccount.js +129 -129
- package/lib/offchain/account/offchainAccountLendingVault.d.ts +16 -16
- package/lib/offchain/account/offchainAccountLendingVault.js +64 -64
- package/lib/offchain/account/offchainAccountPoolToken.d.ts +7 -7
- package/lib/offchain/account/offchainAccountPoolToken.js +24 -24
- package/lib/offchain/account/offchainMultichainAccount.d.ts +34 -0
- package/lib/offchain/account/offchainMultichainAccount.js +66 -0
- package/lib/offchain/account/poolToken.d.ts +6 -0
- package/lib/offchain/account/poolToken.js +21 -0
- package/lib/offchain/account/vault/index.d.ts +3 -0
- package/lib/offchain/account/vault/index.js +7 -0
- package/lib/offchain/account/vault/offchainAccountVault.d.ts +16 -0
- package/lib/offchain/account/vault/offchainAccountVault.js +64 -0
- package/lib/offchain/configManager/index.d.ts +5 -5
- package/lib/offchain/configManager/index.js +12 -12
- package/lib/offchain/configManager/offchainConfigManager.d.ts +25 -25
- package/lib/offchain/configManager/offchainConfigManager.js +76 -76
- package/lib/offchain/configManager/offchainConfigManagerInitializer.d.ts +6 -6
- package/lib/offchain/configManager/offchainConfigManagerInitializer.js +53 -53
- package/lib/offchain/configManager/offchainPairConfig.d.ts +40 -40
- package/lib/offchain/configManager/offchainPairConfig.js +86 -86
- package/lib/offchain/configManager/offchainProposal.d.ts +17 -17
- package/lib/offchain/configManager/offchainProposal.js +53 -53
- package/lib/offchain/index.d.ts +15 -14
- package/lib/offchain/index.js +55 -53
- package/lib/offchain/initializer.d.ts +32 -0
- package/lib/offchain/initializer.js +627 -0
- package/lib/offchain/lendingPool/borrowable.d.ts +55 -0
- package/lib/offchain/lendingPool/borrowable.js +351 -0
- package/lib/offchain/lendingPool/collateral.d.ts +17 -0
- package/lib/offchain/lendingPool/collateral.js +72 -0
- package/lib/offchain/lendingPool/index.d.ts +5 -5
- package/lib/offchain/lendingPool/index.js +12 -12
- package/lib/offchain/lendingPool/offchainBorrowable.d.ts +59 -59
- package/lib/offchain/lendingPool/offchainBorrowable.js +366 -366
- package/lib/offchain/lendingPool/offchainCollateral.d.ts +20 -19
- package/lib/offchain/lendingPool/offchainCollateral.js +81 -75
- package/lib/offchain/lendingPool/offchainLendingPool.d.ts +60 -47
- package/lib/offchain/lendingPool/offchainLendingPool.js +277 -230
- package/lib/offchain/lendingVault.d.ts +22 -0
- package/lib/offchain/lendingVault.js +115 -0
- package/lib/offchain/offchain.d.ts +106 -113
- package/lib/offchain/offchain.js +248 -251
- package/lib/offchain/offchainAPRHelper.d.ts +45 -45
- package/lib/offchain/offchainAPRHelper.js +239 -239
- package/lib/offchain/offchainEndpointManager.d.ts +25 -25
- package/lib/offchain/offchainEndpointManager.js +126 -126
- package/lib/offchain/offchainInitializer.d.ts +52 -52
- package/lib/offchain/offchainInitializer.js +792 -792
- package/lib/offchain/offchainLendingVault.d.ts +25 -25
- package/lib/offchain/offchainLendingVault.js +114 -114
- package/lib/offchain/offchainMultichain.d.ts +50 -0
- package/lib/offchain/offchainMultichain.js +75 -0
- package/lib/offchain/offchainPoolToken.d.ts +21 -21
- package/lib/offchain/offchainPoolToken.js +128 -128
- package/lib/offchain/offchainPriceHelper.d.ts +22 -22
- package/lib/offchain/offchainPriceHelper.js +364 -364
- package/lib/offchain/offchainSolidexHelper.d.ts +16 -16
- package/lib/offchain/offchainSolidexHelper.js +58 -58
- package/lib/offchain/offchainTypes.d.ts +212 -212
- package/lib/offchain/offchainTypes.js +3 -3
- package/lib/offchain/poolToken.d.ts +20 -0
- package/lib/offchain/poolToken.js +120 -0
- package/lib/offchain/priceHelper.d.ts +21 -0
- package/lib/offchain/priceHelper.js +195 -0
- package/lib/offchain/queries/apis/ponder/index.d.ts +14 -14
- package/lib/offchain/queries/apis/ponder/index.js +281 -281
- package/lib/offchain/queries/apis/thegraph/index.d.ts +19 -19
- package/lib/offchain/queries/apis/thegraph/index.js +355 -355
- package/lib/offchain/queries/index.d.ts +20 -20
- package/lib/offchain/queries/index.js +51 -51
- package/lib/offchain/queries/interfaces/query-builder.d.ts +19 -19
- package/lib/offchain/queries/interfaces/query-builder.js +2 -2
- package/lib/offchain/queries/interfaces/transformers.js +9 -9
- package/lib/offchain/query.d.ts +15 -0
- package/lib/offchain/query.js +323 -0
- package/lib/offchain/solidexHelper.d.ts +16 -0
- package/lib/offchain/solidexHelper.js +58 -0
- package/lib/offchain/types.d.ts +150 -0
- package/lib/offchain/types.js +3 -0
- package/lib/offchain/vault/index.d.ts +6 -0
- package/lib/offchain/vault/index.js +14 -0
- package/lib/offchain/vault/offchainHedgedVault.d.ts +9 -0
- package/lib/offchain/vault/offchainHedgedVault.js +57 -0
- package/lib/offchain/vault/offchainLendingVault.d.ts +16 -0
- package/lib/offchain/vault/offchainLendingVault.js +73 -0
- package/lib/offchain/vault/offchainLeveragedVault.d.ts +9 -0
- package/lib/offchain/vault/offchainLeveragedVault.js +57 -0
- package/lib/offchain/vault/offchainVault.d.ts +34 -0
- package/lib/offchain/vault/offchainVault.js +130 -0
- package/lib/onchain/account/index.d.ts +6 -6
- package/lib/onchain/account/index.js +38 -38
- package/lib/onchain/account/interactions/index.d.ts +28 -0
- package/lib/onchain/account/interactions/index.js +158 -0
- package/lib/onchain/account/interactions/lendingPool/borrowable.d.ts +16 -0
- package/lib/onchain/account/interactions/lendingPool/borrowable.js +49 -0
- package/lib/onchain/account/interactions/lendingPool/collateral.d.ts +15 -0
- package/lib/onchain/account/interactions/lendingPool/collateral.js +33 -0
- package/lib/onchain/account/interactions/lendingPool/index.d.ts +41 -0
- package/lib/onchain/account/interactions/lendingPool/index.js +120 -0
- package/lib/onchain/account/interactions/lendingVault.d.ts +10 -0
- package/lib/onchain/account/interactions/lendingVault.js +12 -0
- package/lib/onchain/account/interactions/poolToken.d.ts +33 -0
- package/lib/onchain/account/interactions/poolToken.js +180 -0
- package/lib/onchain/account/lendingPool/borrowable.d.ts +29 -0
- package/lib/onchain/account/lendingPool/borrowable.js +135 -0
- package/lib/onchain/account/lendingPool/collateral.d.ts +15 -0
- package/lib/onchain/account/lendingPool/collateral.js +66 -0
- package/lib/onchain/account/lendingPool/index.d.ts +12 -5
- package/lib/onchain/account/lendingPool/index.js +49 -12
- package/lib/onchain/account/lendingPool/nftlp/index.d.ts +4 -0
- package/lib/onchain/account/lendingPool/nftlp/index.js +11 -0
- package/lib/onchain/account/lendingPool/nftlp/onchainAccountNftlp.d.ts +7 -0
- package/lib/onchain/account/lendingPool/nftlp/onchainAccountNftlp.js +12 -0
- package/lib/onchain/account/lendingPool/nftlp/onchainAccountNftlpUniswapV3.d.ts +4 -0
- package/lib/onchain/account/lendingPool/nftlp/onchainAccountNftlpUniswapV3.js +13 -0
- package/lib/onchain/account/lendingPool/onchainAccountBorrowable.d.ts +39 -34
- package/lib/onchain/account/lendingPool/onchainAccountBorrowable.js +131 -176
- package/lib/onchain/account/lendingPool/onchainAccountBorrowableV2.d.ts +10 -0
- package/lib/onchain/account/lendingPool/onchainAccountBorrowableV2.js +55 -0
- package/lib/onchain/account/lendingPool/onchainAccountBorrowableV3.d.ts +10 -0
- package/lib/onchain/account/lendingPool/onchainAccountBorrowableV3.js +28 -0
- package/lib/onchain/account/lendingPool/onchainAccountCollateral.d.ts +10 -23
- package/lib/onchain/account/lendingPool/onchainAccountCollateral.js +26 -109
- package/lib/onchain/account/lendingPool/onchainAccountCollateralV2.d.ts +25 -0
- package/lib/onchain/account/lendingPool/onchainAccountCollateralV2.js +99 -0
- package/lib/onchain/account/lendingPool/onchainAccountCollateralV3.d.ts +18 -0
- package/lib/onchain/account/lendingPool/onchainAccountCollateralV3.js +44 -0
- package/lib/onchain/account/lendingPool/onchainAccountLendingPool.d.ts +42 -57
- package/lib/onchain/account/lendingPool/onchainAccountLendingPool.js +142 -352
- package/lib/onchain/account/lendingPool/onchainAccountLendingPoolV2.d.ts +44 -0
- package/lib/onchain/account/lendingPool/onchainAccountLendingPoolV2.js +285 -0
- package/lib/onchain/account/lendingPool/onchainAccountLendingPoolV3.d.ts +27 -0
- package/lib/onchain/account/lendingPool/onchainAccountLendingPoolV3.js +32 -0
- package/lib/onchain/account/lendingVault.d.ts +10 -0
- package/lib/onchain/account/lendingVault.js +35 -0
- package/lib/onchain/account/onchainAccount.d.ts +32 -32
- package/lib/onchain/account/onchainAccount.js +166 -167
- package/lib/onchain/account/onchainAccountLendingVault.d.ts +19 -19
- package/lib/onchain/account/onchainAccountLendingVault.js +48 -48
- package/lib/onchain/account/onchainAccountPoolToken.d.ts +30 -30
- package/lib/onchain/account/onchainAccountPoolToken.js +86 -86
- package/lib/onchain/account/poolToken.d.ts +24 -0
- package/lib/onchain/account/poolToken.js +84 -0
- package/lib/onchain/configManager/index.d.ts +5 -5
- package/lib/onchain/configManager/index.js +12 -12
- package/lib/onchain/configManager/onchainConfigManager.d.ts +12 -12
- package/lib/onchain/configManager/onchainConfigManager.js +38 -38
- package/lib/onchain/configManager/onchainPairConfig.d.ts +38 -38
- package/lib/onchain/configManager/onchainPairConfig.js +85 -85
- package/lib/onchain/configManager/onchainProposal.d.ts +17 -17
- package/lib/onchain/configManager/onchainProposal.js +55 -55
- package/lib/onchain/contractsHelper.d.ts +29 -0
- package/lib/onchain/contractsHelper.js +52 -0
- package/lib/onchain/impermaxFactory/index.d.ts +7 -5
- package/lib/onchain/impermaxFactory/index.js +39 -35
- package/lib/onchain/impermaxFactory/lendingPool/borrowable.d.ts +36 -0
- package/lib/onchain/impermaxFactory/lendingPool/borrowable.js +153 -0
- package/lib/onchain/impermaxFactory/lendingPool/collateral.d.ts +17 -0
- package/lib/onchain/impermaxFactory/lendingPool/collateral.js +59 -0
- package/lib/onchain/impermaxFactory/lendingPool/index.d.ts +12 -5
- package/lib/onchain/impermaxFactory/lendingPool/index.js +50 -12
- package/lib/onchain/impermaxFactory/lendingPool/nftlp/index.d.ts +4 -0
- package/lib/onchain/impermaxFactory/lendingPool/nftlp/index.js +11 -0
- package/lib/onchain/impermaxFactory/lendingPool/nftlp/onchainNftlp.d.ts +22 -0
- package/lib/onchain/impermaxFactory/lendingPool/nftlp/onchainNftlp.js +19 -0
- package/lib/onchain/impermaxFactory/lendingPool/nftlp/onchainNftlpUniswapV3.d.ts +24 -0
- package/lib/onchain/impermaxFactory/lendingPool/nftlp/onchainNftlpUniswapV3.js +90 -0
- package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowable.d.ts +38 -34
- package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowable.js +137 -156
- package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowableV2.d.ts +9 -0
- package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowableV2.js +36 -0
- package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowableV3.d.ts +7 -0
- package/lib/onchain/impermaxFactory/lendingPool/onchainBorrowableV3.js +23 -0
- package/lib/onchain/impermaxFactory/lendingPool/onchainCollateral.d.ts +8 -19
- package/lib/onchain/impermaxFactory/lendingPool/onchainCollateral.js +24 -61
- package/lib/onchain/impermaxFactory/lendingPool/onchainCollateralV2.d.ts +20 -0
- package/lib/onchain/impermaxFactory/lendingPool/onchainCollateralV2.js +58 -0
- package/lib/onchain/impermaxFactory/lendingPool/onchainCollateralV3.d.ts +13 -0
- package/lib/onchain/impermaxFactory/lendingPool/onchainCollateralV3.js +36 -0
- package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPool.d.ts +43 -58
- package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPool.js +81 -367
- package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPoolV2.d.ts +76 -0
- package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPoolV2.js +338 -0
- package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPoolV3.d.ts +42 -0
- package/lib/onchain/impermaxFactory/lendingPool/onchainLendingPoolV3.js +39 -0
- package/lib/onchain/impermaxFactory/onchainImpermaxFactory.d.ts +26 -16
- package/lib/onchain/impermaxFactory/onchainImpermaxFactory.js +42 -52
- package/lib/onchain/impermaxFactory/onchainImpermaxFactoryV2.d.ts +16 -0
- package/lib/onchain/impermaxFactory/onchainImpermaxFactoryV2.js +81 -0
- package/lib/onchain/impermaxFactory/onchainImpermaxFactoryV3.d.ts +16 -0
- package/lib/onchain/impermaxFactory/onchainImpermaxFactoryV3.js +88 -0
- package/lib/onchain/index.d.ts +10 -10
- package/lib/onchain/index.js +49 -49
- package/lib/onchain/interactions/index.d.ts +8 -8
- package/lib/onchain/interactions/index.js +41 -41
- package/lib/onchain/interactions/lendingPool/borrowable.d.ts +14 -0
- package/lib/onchain/interactions/lendingPool/borrowable.js +47 -0
- package/lib/onchain/interactions/lendingPool/collateral.d.ts +13 -0
- package/lib/onchain/interactions/lendingPool/collateral.js +31 -0
- package/lib/onchain/interactions/lendingPool/index.d.ts +12 -5
- package/lib/onchain/interactions/lendingPool/index.js +49 -12
- package/lib/onchain/interactions/lendingPool/nftlp/index.d.ts +4 -0
- package/lib/onchain/interactions/lendingPool/nftlp/index.js +11 -0
- package/lib/onchain/interactions/lendingPool/nftlp/onchainInteractionsNftlp.d.ts +7 -0
- package/lib/onchain/interactions/lendingPool/nftlp/onchainInteractionsNftlp.js +12 -0
- package/lib/onchain/interactions/lendingPool/nftlp/onchainInteractionsNftlpUniswapV3.d.ts +4 -0
- package/lib/onchain/interactions/lendingPool/nftlp/onchainInteractionsNftlpUniswapV3.js +13 -0
- package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowable.d.ts +17 -21
- package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowable.js +24 -56
- package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowableV2.d.ts +15 -0
- package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowableV2.js +63 -0
- package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowableV3.d.ts +9 -0
- package/lib/onchain/interactions/lendingPool/onchainInteractionsBorrowableV3.js +14 -0
- package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateral.d.ts +7 -19
- package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateral.js +11 -43
- package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateralV2.d.ts +20 -0
- package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateralV2.js +48 -0
- package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateralV3.d.ts +13 -0
- package/lib/onchain/interactions/lendingPool/onchainInteractionsCollateralV3.js +20 -0
- package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPool.d.ts +31 -46
- package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPool.js +53 -135
- package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPoolV2.d.ts +42 -0
- package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPoolV2.js +114 -0
- package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPoolV3.d.ts +27 -0
- package/lib/onchain/interactions/lendingPool/onchainInteractionsLendingPoolV3.js +32 -0
- package/lib/onchain/interactions/lendingVault.d.ts +8 -0
- package/lib/onchain/interactions/lendingVault.js +15 -0
- package/lib/onchain/interactions/onchainInteractions.d.ts +31 -31
- package/lib/onchain/interactions/onchainInteractions.js +136 -137
- package/lib/onchain/interactions/onchainInteractionsConfigManager.d.ts +17 -17
- package/lib/onchain/interactions/onchainInteractionsConfigManager.js +44 -44
- package/lib/onchain/interactions/onchainInteractionsLendingVault.d.ts +14 -14
- package/lib/onchain/interactions/onchainInteractionsLendingVault.js +21 -21
- package/lib/onchain/interactions/onchainInteractionsPoolToken.d.ts +35 -35
- package/lib/onchain/interactions/onchainInteractionsPoolToken.js +134 -186
- package/lib/onchain/interactions/poolToken.d.ts +31 -0
- package/lib/onchain/interactions/poolToken.js +181 -0
- package/lib/onchain/lendingVault.d.ts +17 -0
- package/lib/onchain/lendingVault.js +56 -0
- package/lib/onchain/onchain.d.ts +38 -35
- package/lib/onchain/onchain.js +78 -70
- package/lib/onchain/onchainContractsHelper.d.ts +42 -31
- package/lib/onchain/onchainContractsHelper.js +90 -56
- package/lib/onchain/onchainLendingVault.d.ts +22 -22
- package/lib/onchain/onchainLendingVault.js +69 -69
- package/lib/onchain/onchainPermitHelper.d.ts +21 -0
- package/lib/onchain/onchainPermitHelper.js +198 -0
- package/lib/onchain/onchainPoolToken.d.ts +35 -35
- package/lib/onchain/onchainPoolToken.js +129 -129
- package/lib/onchain/onchainTypes.d.ts +70 -64
- package/lib/onchain/onchainTypes.js +14 -14
- package/lib/onchain/poolToken.d.ts +32 -0
- package/lib/onchain/poolToken.js +121 -0
- package/lib/onchain/types.d.ts +45 -0
- package/lib/onchain/types.js +14 -0
- package/lib/utils/ether-utils.d.ts +5 -5
- package/lib/utils/ether-utils.js +26 -26
- package/lib/utils/index.d.ts +3 -3
- package/lib/utils/index.js +16 -16
- package/lib/utils/lliquidity-math.d.ts +30 -30
- package/lib/utils/lliquidity-math.js +139 -139
- package/lib/utils/price-from-reserves.d.ts +2 -0
- package/lib/utils/price-from-reserves.js +19 -0
- package/package.json +36 -36
package/lib/config/subgraphs.js
CHANGED
|
@@ -1,187 +1,187 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WHITELIST_SUBGRAPH_URL = exports.CONFIG_MANAGER_SUBGRAPH_URL = exports.XIMX_SUBGRAPH_URL = exports.BLOCKS_SUBGRAPH_URL = exports.LENDING_VAULT_SUBGRAPH_URL = exports.IMPERMAX_CHEF_SUBGRAPH_URL = exports.IMPERMAX_SUBGRAPH_URL = void 0;
|
|
4
|
-
const types_1 = require("./types");
|
|
5
|
-
exports.IMPERMAX_SUBGRAPH_URL = {
|
|
6
|
-
[types_1.Networks.Ropsten]: {},
|
|
7
|
-
[types_1.Networks.Mainnet]: {
|
|
8
|
-
[types_1.Factory.V2V1]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/Dn5WZv53V1K8LrKqqYn29hhuhpwfuFfmsrsTqMgFjrD3']
|
|
9
|
-
},
|
|
10
|
-
[types_1.Networks.Polygon]: {
|
|
11
|
-
[types_1.Factory.V2V1_1]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/F3BfecWo2by5QKrwhkXwuXjyLZnQqJ1wqoejwe67KuyG'],
|
|
12
|
-
[types_1.Factory.V2V2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/5JbuAaWwyRm78yWpRCJJS217hXXft59g9MbsjTTZnYQa'],
|
|
13
|
-
[types_1.Factory.SOLV2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/Giwg5N4SCehmUzNwXtAQZnZvUuTjcp7cr3nzUZosRDFU'],
|
|
14
|
-
[types_1.Factory.SOL_STABLE]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/EWckMdMiZeDSGHxq2V8gZBDF549Xjr9iKkPvisqckF11'],
|
|
15
|
-
},
|
|
16
|
-
[types_1.Networks.Arbitrum]: {
|
|
17
|
-
[types_1.Factory.V2V1_1]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/3PMyaq269mDMwhJ7E285RYD1r43x996b6xZmJSCGvtkm'],
|
|
18
|
-
[types_1.Factory.V2V2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/BkMRb8mR5zgCbjFSgau6s27pnANhR6k64RGVKUbWaZdY'],
|
|
19
|
-
[types_1.Factory.SOLV2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/AdLbcSfG6JnpZ7RDdHNHq3bJ21waGnRi7AJ5x3YFGYFo'],
|
|
20
|
-
},
|
|
21
|
-
[types_1.Networks.Avalanche]: {
|
|
22
|
-
[types_1.Factory.V2V1_2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/HXhHppWXhFqgLfdmTahFj2x7F5Xq8BwADxGY3nbCUAwr'],
|
|
23
|
-
[types_1.Factory.V2V2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/8Gz5ZGyRkSA7WBrSteeyez39AgZQsoEbtXe8GtHD7JMQ'],
|
|
24
|
-
[types_1.Factory.SOLV2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/78e6cZp11r2coLx8YYo5y4AqzEhQXYT6sw3Bg5Tiy5XU'],
|
|
25
|
-
},
|
|
26
|
-
[types_1.Networks.Mantle]: {
|
|
27
|
-
[types_1.Factory.V2V2]: ['https://subgraph-api.mantle.xyz/subgraphs/name/impermax-finance/impermax-mantle-v2']
|
|
28
|
-
},
|
|
29
|
-
[types_1.Networks.Moonriver]: {
|
|
30
|
-
[types_1.Factory.V2V1_2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/6NqkDBwiybbB3BjErF6QGGYJCqzyhVFKpNYHQTN2j8Jn']
|
|
31
|
-
},
|
|
32
|
-
[types_1.Networks.Aurora]: {},
|
|
33
|
-
[types_1.Networks.Cronos]: {},
|
|
34
|
-
[types_1.Networks.Fantom]: {
|
|
35
|
-
[types_1.Factory.SOLV1_2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/8vssJypWas5oenzsjjQq1yLqMe7FRt2evcqZdzCNEWt7'],
|
|
36
|
-
[types_1.Factory.SOLV2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/DJ2bTPinDji7Kwev3WjyfxRo487tJHiEEMEo8kmTMT8F'],
|
|
37
|
-
[types_1.Factory.V2V2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/DPk9E2c9fLKF8N6rN3jcyvSrEq4VEgjdeeJcnaEKAngG']
|
|
38
|
-
},
|
|
39
|
-
[types_1.Networks.Canto]: {
|
|
40
|
-
[types_1.Factory.SOLV2]: ['https://api.impermax.finance/subgraphs/name/impermax-finance/impermax-canto-solv2'],
|
|
41
|
-
},
|
|
42
|
-
[types_1.Networks.ZksyncEra]: {
|
|
43
|
-
[types_1.Factory.SOLV2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/8YSS88X8ChDw1QvuAMtxjezSXNiYer9k9d3Uu8XFLHzX'],
|
|
44
|
-
},
|
|
45
|
-
[types_1.Networks.Harmony]: {},
|
|
46
|
-
[types_1.Networks.Moonbeam]: {},
|
|
47
|
-
[types_1.Networks.Sxnetwork]: {},
|
|
48
|
-
[types_1.Networks.Blast]: {
|
|
49
|
-
[types_1.Factory.SOLV2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/4FDikpVjE2XnDJ5QcpQ1YJXWcUDiAgE7x8ErtsHh33UB'],
|
|
50
|
-
[types_1.Factory.V2V2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/6xkrXFPJ4wqh9cy9ayP19WGr2wZVSMP3FniMjcW2LUG4']
|
|
51
|
-
},
|
|
52
|
-
[types_1.Networks.Base]: {
|
|
53
|
-
[types_1.Factory.SOLV2]: [
|
|
54
|
-
'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/EjB7Dsb7WnfFf1NPPr5rbGnGmk2Jqs42nWPVHjv9997u',
|
|
55
|
-
'https://base-start-production.up.railway.app/'
|
|
56
|
-
],
|
|
57
|
-
[types_1.Factory.SOL_STABLE]: [
|
|
58
|
-
'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/9wN7xinUXf8RP8dbwpkzSmCNQKfz31FDpvPEvTQyT8SL',
|
|
59
|
-
'https://base-start-production.up.railway.app/'
|
|
60
|
-
],
|
|
61
|
-
[types_1.Factory.V2V2]: [
|
|
62
|
-
'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/B7xsBeef3FohKaFPcsAsviyLKaWXTqcSELjAsPj2B7iW',
|
|
63
|
-
'https://base-start-production.up.railway.app/'
|
|
64
|
-
],
|
|
65
|
-
},
|
|
66
|
-
[types_1.Networks.Scroll]: {
|
|
67
|
-
[types_1.Factory.SOLV2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/9HL6kLRt3AbQsprTvk7KZdaHunJ5GGsLdYWd27nNfCFC'],
|
|
68
|
-
[types_1.Factory.SOL_STABLE]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/C42ymmkDArE1T5wdYKwao6mntqNSjP2E34TeGusiF3sk']
|
|
69
|
-
},
|
|
70
|
-
[types_1.Networks.Optimism]: {
|
|
71
|
-
[types_1.Factory.SOLV2]: [
|
|
72
|
-
'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/74C2pMzH3wNKf38PNheGZfSiY4FzmJoKiGtHLYa7oD2s',
|
|
73
|
-
'https://optimism-factory-production.up.railway.app/'
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
[types_1.Networks.Real]: {
|
|
77
|
-
[types_1.Factory.SOL_STABLE]: ['https://api.goldsky.com/api/public/project_cm2d5q4l4w31601vz4swb3vmi/subgraphs/impermax-finance/impermax-real-v2-stable/gn'],
|
|
78
|
-
[types_1.Factory.SOLV2]: ['https://api.goldsky.com/api/public/project_cm2rhb30ot9wu01to8c9h9e37/subgraphs/impermax-real-solv2/3.0/gn']
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
exports.IMPERMAX_CHEF_SUBGRAPH_URL = {
|
|
82
|
-
[types_1.Networks.Ropsten]: '',
|
|
83
|
-
[types_1.Networks.Mainnet]: '',
|
|
84
|
-
[types_1.Networks.Polygon]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-polygon/v0.0.1',
|
|
85
|
-
//[Networks.Arbitrum]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-chef-arbitrum',
|
|
86
|
-
[types_1.Networks.Arbitrum]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-arbitrum-ibex/v0.0.1',
|
|
87
|
-
[types_1.Networks.Avalanche]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-avalanche/v0.0.1',
|
|
88
|
-
[types_1.Networks.Moonriver]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-moonriver/v0.0.1',
|
|
89
|
-
[types_1.Networks.Fantom]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-fantom/v0.0.1',
|
|
90
|
-
[types_1.Networks.Aurora]: '',
|
|
91
|
-
[types_1.Networks.Cronos]: '',
|
|
92
|
-
[types_1.Networks.Harmony]: '',
|
|
93
|
-
[types_1.Networks.Moonbeam]: '',
|
|
94
|
-
[types_1.Networks.Sxnetwork]: '',
|
|
95
|
-
[types_1.Networks.Canto]: '',
|
|
96
|
-
[types_1.Networks.ZksyncEra]: '',
|
|
97
|
-
[types_1.Networks.Blast]: '',
|
|
98
|
-
[types_1.Networks.Base]: '',
|
|
99
|
-
[types_1.Networks.Mantle]: '',
|
|
100
|
-
[types_1.Networks.Scroll]: '',
|
|
101
|
-
[types_1.Networks.Optimism]: '',
|
|
102
|
-
[types_1.Networks.Real]: '',
|
|
103
|
-
};
|
|
104
|
-
exports.LENDING_VAULT_SUBGRAPH_URL = {
|
|
105
|
-
[types_1.Networks.Ropsten]: '',
|
|
106
|
-
[types_1.Networks.Mainnet]: '',
|
|
107
|
-
[types_1.Networks.Polygon]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/BNWJQpKBT24mYzLYZ7hdBiJpvfBoEwjSemNkQ1Rryknp',
|
|
108
|
-
[types_1.Networks.Arbitrum]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/BhmcL1CZmw9hftXPviiTeMY7kghbbkpHZtpiHXWVhNNN',
|
|
109
|
-
[types_1.Networks.Avalanche]: '',
|
|
110
|
-
[types_1.Networks.Moonriver]: '',
|
|
111
|
-
[types_1.Networks.Fantom]: '',
|
|
112
|
-
[types_1.Networks.Aurora]: '',
|
|
113
|
-
[types_1.Networks.Cronos]: '',
|
|
114
|
-
[types_1.Networks.Harmony]: '',
|
|
115
|
-
[types_1.Networks.Moonbeam]: '',
|
|
116
|
-
[types_1.Networks.Sxnetwork]: '',
|
|
117
|
-
[types_1.Networks.Canto]: '',
|
|
118
|
-
[types_1.Networks.ZksyncEra]: '',
|
|
119
|
-
[types_1.Networks.Blast]: '',
|
|
120
|
-
[types_1.Networks.Base]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/2TdbQKGWPRHUwuHJgxQzh8kZ7FVpBgZaFtnbjTS6iYng',
|
|
121
|
-
[types_1.Networks.Mantle]: '',
|
|
122
|
-
[types_1.Networks.Optimism]: '',
|
|
123
|
-
[types_1.Networks.Real]: '',
|
|
124
|
-
[types_1.Networks.Scroll]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/BaPMX2ubiRZ4ujqTFmWyrk72fPo6yFLQ7A5Z4BLXCTFU',
|
|
125
|
-
};
|
|
126
|
-
exports.BLOCKS_SUBGRAPH_URL = {
|
|
127
|
-
[types_1.Networks.Ropsten]: '',
|
|
128
|
-
[types_1.Networks.Mainnet]: 'https://api.thegraph.com/subgraphs/name/blocklytics/ethereum-blocks',
|
|
129
|
-
[types_1.Networks.Polygon]: 'https://api.thegraph.com/subgraphs/name/matthewlilley/polygon-blocks',
|
|
130
|
-
[types_1.Networks.Arbitrum]: 'https://api.thegraph.com/subgraphs/name/sushiswap/arbitrum-blocks',
|
|
131
|
-
[types_1.Networks.Avalanche]: 'https://api.thegraph.com/subgraphs/name/dasconnor/avalanche-blocks',
|
|
132
|
-
[types_1.Networks.Moonriver]: 'https://api.thegraph.com/subgraphs/name/sushiswap/moonriver-blocks',
|
|
133
|
-
[types_1.Networks.Aurora]: '',
|
|
134
|
-
[types_1.Networks.Cronos]: '',
|
|
135
|
-
[types_1.Networks.Fantom]: 'https://gateway.thegraph.com/api/031cf65e6bf1e03a781f69aeba9770d2/subgraphs/id/3drjZDpA9hAuYGA19ttEkhW432mVe2XHy5YarBDVYHbz',
|
|
136
|
-
[types_1.Networks.Canto]: 'https://api.impermax.finance/subgraphs/name/blocklytics/canto-blocks',
|
|
137
|
-
[types_1.Networks.ZksyncEra]: 'https://api.impermax.finance/subgraphs/name/blocklytics/canto-blocks',
|
|
138
|
-
[types_1.Networks.Blast]: '',
|
|
139
|
-
[types_1.Networks.Harmony]: '',
|
|
140
|
-
[types_1.Networks.Moonbeam]: '',
|
|
141
|
-
[types_1.Networks.Sxnetwork]: '',
|
|
142
|
-
[types_1.Networks.Base]: 'https://api.thegraph.com/subgraphs/name/blocklytics/base-blocks',
|
|
143
|
-
[types_1.Networks.Mantle]: '',
|
|
144
|
-
[types_1.Networks.Scroll]: '',
|
|
145
|
-
[types_1.Networks.Real]: '',
|
|
146
|
-
[types_1.Networks.Optimism]: '',
|
|
147
|
-
};
|
|
148
|
-
exports.XIMX_SUBGRAPH_URL = "https://api.thegraph.com/subgraphs/name/impermax-finance/imx-staking";
|
|
149
|
-
exports.CONFIG_MANAGER_SUBGRAPH_URL = {
|
|
150
|
-
[types_1.Networks.Ropsten]: '',
|
|
151
|
-
[types_1.Networks.Mainnet]: '',
|
|
152
|
-
[types_1.Networks.Polygon]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/42W3457WecJ4foXk3tBeVpmX8MUHS3L8qXvUvhDSE6p2',
|
|
153
|
-
[types_1.Networks.Arbitrum]: '',
|
|
154
|
-
[types_1.Networks.Avalanche]: '',
|
|
155
|
-
[types_1.Networks.Moonriver]: '',
|
|
156
|
-
[types_1.Networks.Aurora]: '',
|
|
157
|
-
[types_1.Networks.Cronos]: '',
|
|
158
|
-
[types_1.Networks.Fantom]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/D6WHTfFEaUkHyLavPQM5BcivWYMe41Aj6PbdaKhKdfUm',
|
|
159
|
-
[types_1.Networks.Canto]: '',
|
|
160
|
-
[types_1.Networks.ZksyncEra]: '',
|
|
161
|
-
[types_1.Networks.Harmony]: '',
|
|
162
|
-
[types_1.Networks.Moonbeam]: '',
|
|
163
|
-
[types_1.Networks.Sxnetwork]: '',
|
|
164
|
-
[types_1.Networks.Blast]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/2ARmGYURb2DAHxfJeA1fhVUDeJpHSvCoJTDiBfmTvESN',
|
|
165
|
-
[types_1.Networks.Scroll]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/9vmJatgwfrm7MMWXy3MhAZ2bsbrbbHzik9q9f5hfzZE9',
|
|
166
|
-
[types_1.Networks.Base]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/6y4Bb2KSFsqyjbARM8EpKkqFRt62ELasVCVckg2bv7jB',
|
|
167
|
-
[types_1.Networks.Optimism]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/GWFrv8MNg5fpD19fxdu32G1Wt6om8qb1wbacpgHDyvC8',
|
|
168
|
-
[types_1.Networks.Real]: 'https://api.goldsky.com/api/public/project_cm2d5q4l4w31601vz4swb3vmi/subgraphs/impermax-config-manager-real/1.0/gn',
|
|
169
|
-
};
|
|
170
|
-
exports.WHITELIST_SUBGRAPH_URL = {
|
|
171
|
-
[types_1.Networks.Ropsten]: '',
|
|
172
|
-
[types_1.Networks.Mainnet]: '',
|
|
173
|
-
[types_1.Networks.Polygon]: 'https://api.studio.thegraph.com/query/46041/impermax-whitelist-polygon/v0.0.1',
|
|
174
|
-
[types_1.Networks.Arbitrum]: '',
|
|
175
|
-
[types_1.Networks.Avalanche]: '',
|
|
176
|
-
[types_1.Networks.Moonriver]: '',
|
|
177
|
-
[types_1.Networks.Aurora]: '',
|
|
178
|
-
[types_1.Networks.Cronos]: '',
|
|
179
|
-
[types_1.Networks.Fantom]: '',
|
|
180
|
-
[types_1.Networks.Canto]: '',
|
|
181
|
-
[types_1.Networks.ZksyncEra]: '',
|
|
182
|
-
[types_1.Networks.Harmony]: '',
|
|
183
|
-
[types_1.Networks.Moonbeam]: '',
|
|
184
|
-
[types_1.Networks.Sxnetwork]: '',
|
|
185
|
-
[types_1.Networks.Mantle]: '',
|
|
186
|
-
[types_1.Networks.Base]: 'https://api.studio.thegraph.com/query/46041/impermax-whitelist-base/v0.0.1',
|
|
187
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WHITELIST_SUBGRAPH_URL = exports.CONFIG_MANAGER_SUBGRAPH_URL = exports.XIMX_SUBGRAPH_URL = exports.BLOCKS_SUBGRAPH_URL = exports.LENDING_VAULT_SUBGRAPH_URL = exports.IMPERMAX_CHEF_SUBGRAPH_URL = exports.IMPERMAX_SUBGRAPH_URL = void 0;
|
|
4
|
+
const types_1 = require("./types");
|
|
5
|
+
exports.IMPERMAX_SUBGRAPH_URL = {
|
|
6
|
+
[types_1.Networks.Ropsten]: {},
|
|
7
|
+
[types_1.Networks.Mainnet]: {
|
|
8
|
+
[types_1.Factory.V2V1]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/Dn5WZv53V1K8LrKqqYn29hhuhpwfuFfmsrsTqMgFjrD3']
|
|
9
|
+
},
|
|
10
|
+
[types_1.Networks.Polygon]: {
|
|
11
|
+
[types_1.Factory.V2V1_1]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/F3BfecWo2by5QKrwhkXwuXjyLZnQqJ1wqoejwe67KuyG'],
|
|
12
|
+
[types_1.Factory.V2V2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/5JbuAaWwyRm78yWpRCJJS217hXXft59g9MbsjTTZnYQa'],
|
|
13
|
+
[types_1.Factory.SOLV2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/Giwg5N4SCehmUzNwXtAQZnZvUuTjcp7cr3nzUZosRDFU'],
|
|
14
|
+
[types_1.Factory.SOL_STABLE]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/EWckMdMiZeDSGHxq2V8gZBDF549Xjr9iKkPvisqckF11'],
|
|
15
|
+
},
|
|
16
|
+
[types_1.Networks.Arbitrum]: {
|
|
17
|
+
[types_1.Factory.V2V1_1]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/3PMyaq269mDMwhJ7E285RYD1r43x996b6xZmJSCGvtkm'],
|
|
18
|
+
[types_1.Factory.V2V2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/BkMRb8mR5zgCbjFSgau6s27pnANhR6k64RGVKUbWaZdY'],
|
|
19
|
+
[types_1.Factory.SOLV2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/AdLbcSfG6JnpZ7RDdHNHq3bJ21waGnRi7AJ5x3YFGYFo'],
|
|
20
|
+
},
|
|
21
|
+
[types_1.Networks.Avalanche]: {
|
|
22
|
+
[types_1.Factory.V2V1_2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/HXhHppWXhFqgLfdmTahFj2x7F5Xq8BwADxGY3nbCUAwr'],
|
|
23
|
+
[types_1.Factory.V2V2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/8Gz5ZGyRkSA7WBrSteeyez39AgZQsoEbtXe8GtHD7JMQ'],
|
|
24
|
+
[types_1.Factory.SOLV2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/78e6cZp11r2coLx8YYo5y4AqzEhQXYT6sw3Bg5Tiy5XU'],
|
|
25
|
+
},
|
|
26
|
+
[types_1.Networks.Mantle]: {
|
|
27
|
+
[types_1.Factory.V2V2]: ['https://subgraph-api.mantle.xyz/subgraphs/name/impermax-finance/impermax-mantle-v2']
|
|
28
|
+
},
|
|
29
|
+
[types_1.Networks.Moonriver]: {
|
|
30
|
+
[types_1.Factory.V2V1_2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/6NqkDBwiybbB3BjErF6QGGYJCqzyhVFKpNYHQTN2j8Jn']
|
|
31
|
+
},
|
|
32
|
+
[types_1.Networks.Aurora]: {},
|
|
33
|
+
[types_1.Networks.Cronos]: {},
|
|
34
|
+
[types_1.Networks.Fantom]: {
|
|
35
|
+
[types_1.Factory.SOLV1_2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/8vssJypWas5oenzsjjQq1yLqMe7FRt2evcqZdzCNEWt7'],
|
|
36
|
+
[types_1.Factory.SOLV2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/DJ2bTPinDji7Kwev3WjyfxRo487tJHiEEMEo8kmTMT8F'],
|
|
37
|
+
[types_1.Factory.V2V2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/DPk9E2c9fLKF8N6rN3jcyvSrEq4VEgjdeeJcnaEKAngG']
|
|
38
|
+
},
|
|
39
|
+
[types_1.Networks.Canto]: {
|
|
40
|
+
[types_1.Factory.SOLV2]: ['https://api.impermax.finance/subgraphs/name/impermax-finance/impermax-canto-solv2'],
|
|
41
|
+
},
|
|
42
|
+
[types_1.Networks.ZksyncEra]: {
|
|
43
|
+
[types_1.Factory.SOLV2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/8YSS88X8ChDw1QvuAMtxjezSXNiYer9k9d3Uu8XFLHzX'],
|
|
44
|
+
},
|
|
45
|
+
[types_1.Networks.Harmony]: {},
|
|
46
|
+
[types_1.Networks.Moonbeam]: {},
|
|
47
|
+
[types_1.Networks.Sxnetwork]: {},
|
|
48
|
+
[types_1.Networks.Blast]: {
|
|
49
|
+
[types_1.Factory.SOLV2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/4FDikpVjE2XnDJ5QcpQ1YJXWcUDiAgE7x8ErtsHh33UB'],
|
|
50
|
+
[types_1.Factory.V2V2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/6xkrXFPJ4wqh9cy9ayP19WGr2wZVSMP3FniMjcW2LUG4']
|
|
51
|
+
},
|
|
52
|
+
[types_1.Networks.Base]: {
|
|
53
|
+
[types_1.Factory.SOLV2]: [
|
|
54
|
+
'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/EjB7Dsb7WnfFf1NPPr5rbGnGmk2Jqs42nWPVHjv9997u',
|
|
55
|
+
'https://base-start-production.up.railway.app/'
|
|
56
|
+
],
|
|
57
|
+
[types_1.Factory.SOL_STABLE]: [
|
|
58
|
+
'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/9wN7xinUXf8RP8dbwpkzSmCNQKfz31FDpvPEvTQyT8SL',
|
|
59
|
+
'https://base-start-production.up.railway.app/'
|
|
60
|
+
],
|
|
61
|
+
[types_1.Factory.V2V2]: [
|
|
62
|
+
'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/B7xsBeef3FohKaFPcsAsviyLKaWXTqcSELjAsPj2B7iW',
|
|
63
|
+
'https://base-start-production.up.railway.app/'
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
[types_1.Networks.Scroll]: {
|
|
67
|
+
[types_1.Factory.SOLV2]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/9HL6kLRt3AbQsprTvk7KZdaHunJ5GGsLdYWd27nNfCFC'],
|
|
68
|
+
[types_1.Factory.SOL_STABLE]: ['https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/C42ymmkDArE1T5wdYKwao6mntqNSjP2E34TeGusiF3sk']
|
|
69
|
+
},
|
|
70
|
+
[types_1.Networks.Optimism]: {
|
|
71
|
+
[types_1.Factory.SOLV2]: [
|
|
72
|
+
'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/74C2pMzH3wNKf38PNheGZfSiY4FzmJoKiGtHLYa7oD2s',
|
|
73
|
+
'https://optimism-factory-production.up.railway.app/'
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
[types_1.Networks.Real]: {
|
|
77
|
+
[types_1.Factory.SOL_STABLE]: ['https://api.goldsky.com/api/public/project_cm2d5q4l4w31601vz4swb3vmi/subgraphs/impermax-finance/impermax-real-v2-stable/gn'],
|
|
78
|
+
[types_1.Factory.SOLV2]: ['https://api.goldsky.com/api/public/project_cm2rhb30ot9wu01to8c9h9e37/subgraphs/impermax-real-solv2/3.0/gn']
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
exports.IMPERMAX_CHEF_SUBGRAPH_URL = {
|
|
82
|
+
[types_1.Networks.Ropsten]: '',
|
|
83
|
+
[types_1.Networks.Mainnet]: '',
|
|
84
|
+
[types_1.Networks.Polygon]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-polygon/v0.0.1',
|
|
85
|
+
//[Networks.Arbitrum]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-chef-arbitrum',
|
|
86
|
+
[types_1.Networks.Arbitrum]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-arbitrum-ibex/v0.0.1',
|
|
87
|
+
[types_1.Networks.Avalanche]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-avalanche/v0.0.1',
|
|
88
|
+
[types_1.Networks.Moonriver]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-moonriver/v0.0.1',
|
|
89
|
+
[types_1.Networks.Fantom]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-fantom/v0.0.1',
|
|
90
|
+
[types_1.Networks.Aurora]: '',
|
|
91
|
+
[types_1.Networks.Cronos]: '',
|
|
92
|
+
[types_1.Networks.Harmony]: '',
|
|
93
|
+
[types_1.Networks.Moonbeam]: '',
|
|
94
|
+
[types_1.Networks.Sxnetwork]: '',
|
|
95
|
+
[types_1.Networks.Canto]: '',
|
|
96
|
+
[types_1.Networks.ZksyncEra]: '',
|
|
97
|
+
[types_1.Networks.Blast]: '',
|
|
98
|
+
[types_1.Networks.Base]: '',
|
|
99
|
+
[types_1.Networks.Mantle]: '',
|
|
100
|
+
[types_1.Networks.Scroll]: '',
|
|
101
|
+
[types_1.Networks.Optimism]: '',
|
|
102
|
+
[types_1.Networks.Real]: '',
|
|
103
|
+
};
|
|
104
|
+
exports.LENDING_VAULT_SUBGRAPH_URL = {
|
|
105
|
+
[types_1.Networks.Ropsten]: '',
|
|
106
|
+
[types_1.Networks.Mainnet]: '',
|
|
107
|
+
[types_1.Networks.Polygon]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/BNWJQpKBT24mYzLYZ7hdBiJpvfBoEwjSemNkQ1Rryknp',
|
|
108
|
+
[types_1.Networks.Arbitrum]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/BhmcL1CZmw9hftXPviiTeMY7kghbbkpHZtpiHXWVhNNN',
|
|
109
|
+
[types_1.Networks.Avalanche]: '',
|
|
110
|
+
[types_1.Networks.Moonriver]: '',
|
|
111
|
+
[types_1.Networks.Fantom]: '',
|
|
112
|
+
[types_1.Networks.Aurora]: '',
|
|
113
|
+
[types_1.Networks.Cronos]: '',
|
|
114
|
+
[types_1.Networks.Harmony]: '',
|
|
115
|
+
[types_1.Networks.Moonbeam]: '',
|
|
116
|
+
[types_1.Networks.Sxnetwork]: '',
|
|
117
|
+
[types_1.Networks.Canto]: '',
|
|
118
|
+
[types_1.Networks.ZksyncEra]: '',
|
|
119
|
+
[types_1.Networks.Blast]: '',
|
|
120
|
+
[types_1.Networks.Base]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/2TdbQKGWPRHUwuHJgxQzh8kZ7FVpBgZaFtnbjTS6iYng',
|
|
121
|
+
[types_1.Networks.Mantle]: '',
|
|
122
|
+
[types_1.Networks.Optimism]: '',
|
|
123
|
+
[types_1.Networks.Real]: '',
|
|
124
|
+
[types_1.Networks.Scroll]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/BaPMX2ubiRZ4ujqTFmWyrk72fPo6yFLQ7A5Z4BLXCTFU',
|
|
125
|
+
};
|
|
126
|
+
exports.BLOCKS_SUBGRAPH_URL = {
|
|
127
|
+
[types_1.Networks.Ropsten]: '',
|
|
128
|
+
[types_1.Networks.Mainnet]: 'https://api.thegraph.com/subgraphs/name/blocklytics/ethereum-blocks',
|
|
129
|
+
[types_1.Networks.Polygon]: 'https://api.thegraph.com/subgraphs/name/matthewlilley/polygon-blocks',
|
|
130
|
+
[types_1.Networks.Arbitrum]: 'https://api.thegraph.com/subgraphs/name/sushiswap/arbitrum-blocks',
|
|
131
|
+
[types_1.Networks.Avalanche]: 'https://api.thegraph.com/subgraphs/name/dasconnor/avalanche-blocks',
|
|
132
|
+
[types_1.Networks.Moonriver]: 'https://api.thegraph.com/subgraphs/name/sushiswap/moonriver-blocks',
|
|
133
|
+
[types_1.Networks.Aurora]: '',
|
|
134
|
+
[types_1.Networks.Cronos]: '',
|
|
135
|
+
[types_1.Networks.Fantom]: 'https://gateway.thegraph.com/api/031cf65e6bf1e03a781f69aeba9770d2/subgraphs/id/3drjZDpA9hAuYGA19ttEkhW432mVe2XHy5YarBDVYHbz',
|
|
136
|
+
[types_1.Networks.Canto]: 'https://api.impermax.finance/subgraphs/name/blocklytics/canto-blocks',
|
|
137
|
+
[types_1.Networks.ZksyncEra]: 'https://api.impermax.finance/subgraphs/name/blocklytics/canto-blocks',
|
|
138
|
+
[types_1.Networks.Blast]: '',
|
|
139
|
+
[types_1.Networks.Harmony]: '',
|
|
140
|
+
[types_1.Networks.Moonbeam]: '',
|
|
141
|
+
[types_1.Networks.Sxnetwork]: '',
|
|
142
|
+
[types_1.Networks.Base]: 'https://api.thegraph.com/subgraphs/name/blocklytics/base-blocks',
|
|
143
|
+
[types_1.Networks.Mantle]: '',
|
|
144
|
+
[types_1.Networks.Scroll]: '',
|
|
145
|
+
[types_1.Networks.Real]: '',
|
|
146
|
+
[types_1.Networks.Optimism]: '',
|
|
147
|
+
};
|
|
148
|
+
exports.XIMX_SUBGRAPH_URL = "https://api.thegraph.com/subgraphs/name/impermax-finance/imx-staking";
|
|
149
|
+
exports.CONFIG_MANAGER_SUBGRAPH_URL = {
|
|
150
|
+
[types_1.Networks.Ropsten]: '',
|
|
151
|
+
[types_1.Networks.Mainnet]: '',
|
|
152
|
+
[types_1.Networks.Polygon]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/42W3457WecJ4foXk3tBeVpmX8MUHS3L8qXvUvhDSE6p2',
|
|
153
|
+
[types_1.Networks.Arbitrum]: '',
|
|
154
|
+
[types_1.Networks.Avalanche]: '',
|
|
155
|
+
[types_1.Networks.Moonriver]: '',
|
|
156
|
+
[types_1.Networks.Aurora]: '',
|
|
157
|
+
[types_1.Networks.Cronos]: '',
|
|
158
|
+
[types_1.Networks.Fantom]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/D6WHTfFEaUkHyLavPQM5BcivWYMe41Aj6PbdaKhKdfUm',
|
|
159
|
+
[types_1.Networks.Canto]: '',
|
|
160
|
+
[types_1.Networks.ZksyncEra]: '',
|
|
161
|
+
[types_1.Networks.Harmony]: '',
|
|
162
|
+
[types_1.Networks.Moonbeam]: '',
|
|
163
|
+
[types_1.Networks.Sxnetwork]: '',
|
|
164
|
+
[types_1.Networks.Blast]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/2ARmGYURb2DAHxfJeA1fhVUDeJpHSvCoJTDiBfmTvESN',
|
|
165
|
+
[types_1.Networks.Scroll]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/9vmJatgwfrm7MMWXy3MhAZ2bsbrbbHzik9q9f5hfzZE9',
|
|
166
|
+
[types_1.Networks.Base]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/6y4Bb2KSFsqyjbARM8EpKkqFRt62ELasVCVckg2bv7jB',
|
|
167
|
+
[types_1.Networks.Optimism]: 'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/GWFrv8MNg5fpD19fxdu32G1Wt6om8qb1wbacpgHDyvC8',
|
|
168
|
+
[types_1.Networks.Real]: 'https://api.goldsky.com/api/public/project_cm2d5q4l4w31601vz4swb3vmi/subgraphs/impermax-config-manager-real/1.0/gn',
|
|
169
|
+
};
|
|
170
|
+
exports.WHITELIST_SUBGRAPH_URL = {
|
|
171
|
+
[types_1.Networks.Ropsten]: '',
|
|
172
|
+
[types_1.Networks.Mainnet]: '',
|
|
173
|
+
[types_1.Networks.Polygon]: 'https://api.studio.thegraph.com/query/46041/impermax-whitelist-polygon/v0.0.1',
|
|
174
|
+
[types_1.Networks.Arbitrum]: '',
|
|
175
|
+
[types_1.Networks.Avalanche]: '',
|
|
176
|
+
[types_1.Networks.Moonriver]: '',
|
|
177
|
+
[types_1.Networks.Aurora]: '',
|
|
178
|
+
[types_1.Networks.Cronos]: '',
|
|
179
|
+
[types_1.Networks.Fantom]: '',
|
|
180
|
+
[types_1.Networks.Canto]: '',
|
|
181
|
+
[types_1.Networks.ZksyncEra]: '',
|
|
182
|
+
[types_1.Networks.Harmony]: '',
|
|
183
|
+
[types_1.Networks.Moonbeam]: '',
|
|
184
|
+
[types_1.Networks.Sxnetwork]: '',
|
|
185
|
+
[types_1.Networks.Mantle]: '',
|
|
186
|
+
[types_1.Networks.Base]: 'https://api.studio.thegraph.com/query/46041/impermax-whitelist-base/v0.0.1',
|
|
187
|
+
};
|
package/lib/config/types.d.ts
CHANGED
|
@@ -1,72 +1,85 @@
|
|
|
1
|
-
import { Amms } from './amms';
|
|
2
|
-
export declare enum Networks {
|
|
3
|
-
Ropsten = "ropsten",
|
|
4
|
-
Mainnet = "mainnet",
|
|
5
|
-
Polygon = "polygon",
|
|
6
|
-
Arbitrum = "arbitrum",
|
|
7
|
-
Avalanche = "avalanche",
|
|
8
|
-
Moonriver = "moonriver",
|
|
9
|
-
Aurora = "aurora",
|
|
10
|
-
Cronos = "cronos",
|
|
11
|
-
Fantom = "fantom",
|
|
12
|
-
Harmony = "harmony",
|
|
13
|
-
Moonbeam = "moonbeam",
|
|
14
|
-
Sxnetwork = "sxnetwork",
|
|
15
|
-
Canto = "canto",
|
|
16
|
-
ZksyncEra = "zksync-era",
|
|
17
|
-
Blast = "blast",
|
|
18
|
-
Base = "base",
|
|
19
|
-
Mantle = "mantle",
|
|
20
|
-
Scroll = "scroll",
|
|
21
|
-
Optimism = "optimism",
|
|
22
|
-
Real = "re.al"
|
|
23
|
-
}
|
|
24
|
-
export declare enum Factory {
|
|
25
|
-
V2V1 = "1",
|
|
26
|
-
V2V1_1 = "2",
|
|
27
|
-
V2V1_2 = "3",
|
|
28
|
-
V2V2 = "4",
|
|
29
|
-
SOLV1_2 = "5",
|
|
30
|
-
SOLV2 = "6",
|
|
31
|
-
SOL_STABLE = "7"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
export
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
export type
|
|
49
|
-
[key in
|
|
50
|
-
};
|
|
51
|
-
export type
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
1
|
+
import { Amms } from './amms';
|
|
2
|
+
export declare enum Networks {
|
|
3
|
+
Ropsten = "ropsten",
|
|
4
|
+
Mainnet = "mainnet",
|
|
5
|
+
Polygon = "polygon",
|
|
6
|
+
Arbitrum = "arbitrum",
|
|
7
|
+
Avalanche = "avalanche",
|
|
8
|
+
Moonriver = "moonriver",
|
|
9
|
+
Aurora = "aurora",
|
|
10
|
+
Cronos = "cronos",
|
|
11
|
+
Fantom = "fantom",
|
|
12
|
+
Harmony = "harmony",
|
|
13
|
+
Moonbeam = "moonbeam",
|
|
14
|
+
Sxnetwork = "sxnetwork",
|
|
15
|
+
Canto = "canto",
|
|
16
|
+
ZksyncEra = "zksync-era",
|
|
17
|
+
Blast = "blast",
|
|
18
|
+
Base = "base",
|
|
19
|
+
Mantle = "mantle",
|
|
20
|
+
Scroll = "scroll",
|
|
21
|
+
Optimism = "optimism",
|
|
22
|
+
Real = "re.al"
|
|
23
|
+
}
|
|
24
|
+
export declare enum Factory {
|
|
25
|
+
V2V1 = "1",
|
|
26
|
+
V2V1_1 = "2",
|
|
27
|
+
V2V1_2 = "3",
|
|
28
|
+
V2V2 = "4",
|
|
29
|
+
SOLV1_2 = "5",
|
|
30
|
+
SOLV2 = "6",
|
|
31
|
+
SOL_STABLE = "7",
|
|
32
|
+
V3 = "8"
|
|
33
|
+
}
|
|
34
|
+
export declare enum Extension {
|
|
35
|
+
UniswapV2 = 0,
|
|
36
|
+
UniswapV3 = 1
|
|
37
|
+
}
|
|
38
|
+
export declare enum PoolTokenType {
|
|
39
|
+
Collateral = "collateral",
|
|
40
|
+
BorrowableA = "borrowable0",
|
|
41
|
+
BorrowableB = "borrowable1"
|
|
42
|
+
}
|
|
43
|
+
export declare enum Borrowable {
|
|
44
|
+
A = 0,
|
|
45
|
+
B = 1
|
|
46
|
+
}
|
|
47
|
+
export type Address = string;
|
|
48
|
+
export type NetworkIndex<Type> = {
|
|
49
|
+
[key in Networks]: Type;
|
|
50
|
+
};
|
|
51
|
+
export type FactoryIndex<Type> = {
|
|
52
|
+
[key in Factory]?: Type;
|
|
53
|
+
};
|
|
54
|
+
export type ExtensionIndex<Type> = {
|
|
55
|
+
[key in Extension]?: Type;
|
|
56
|
+
};
|
|
57
|
+
export type AddressIndex<Type> = {
|
|
58
|
+
[key in Address]: Type;
|
|
59
|
+
};
|
|
60
|
+
export type NumberIndex<Type> = {
|
|
61
|
+
[key in number]: Type;
|
|
62
|
+
};
|
|
63
|
+
export type NetworkFactoryIndex<Type> = NetworkIndex<FactoryIndex<Type>>;
|
|
64
|
+
export type NetworkExtensionIndex<Type> = NetworkIndex<ExtensionIndex<Type>>;
|
|
65
|
+
export type LendingPoolIndex<Type> = FactoryIndex<AddressIndex<Type>>;
|
|
66
|
+
export type AmmIndex = {
|
|
67
|
+
[key in Networks]: {
|
|
68
|
+
[key in Amms]?: any;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
export type DistributorDetails = {
|
|
72
|
+
claimableAddress: Address;
|
|
73
|
+
name: string;
|
|
74
|
+
};
|
|
75
|
+
export declare enum ProposalState {
|
|
76
|
+
Pending = "Pending",
|
|
77
|
+
Approved = "Approved",
|
|
78
|
+
Rejected = "Rejected"
|
|
79
|
+
}
|
|
80
|
+
export declare enum WhitelistState {
|
|
81
|
+
Unlisted = 0,
|
|
82
|
+
Listed = 1,
|
|
83
|
+
Deprecated = 2,
|
|
84
|
+
Blacklisted = 3
|
|
85
|
+
}
|