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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CHAIN_IDS = void 0;
|
|
4
|
+
const types_1 = require("./types");
|
|
5
|
+
exports.CHAIN_IDS = {
|
|
6
|
+
[types_1.Networks.Mainnet]: 1,
|
|
7
|
+
[types_1.Networks.Ropsten]: 3,
|
|
8
|
+
[types_1.Networks.Polygon]: 137,
|
|
9
|
+
[types_1.Networks.Arbitrum]: 42161,
|
|
10
|
+
[types_1.Networks.Avalanche]: 43114,
|
|
11
|
+
[types_1.Networks.Moonriver]: 1285,
|
|
12
|
+
[types_1.Networks.Aurora]: 1313161554,
|
|
13
|
+
[types_1.Networks.Cronos]: 25,
|
|
14
|
+
[types_1.Networks.Fantom]: 250,
|
|
15
|
+
[types_1.Networks.Harmony]: 1666600000,
|
|
16
|
+
[types_1.Networks.Moonbeam]: 1284,
|
|
17
|
+
[types_1.Networks.Sxnetwork]: 416,
|
|
18
|
+
[types_1.Networks.Canto]: 7700,
|
|
19
|
+
[types_1.Networks.ZksyncEra]: 324,
|
|
20
|
+
[types_1.Networks.Base]: 8453,
|
|
21
|
+
[types_1.Networks.Mantle]: 5000,
|
|
22
|
+
[types_1.Networks.Scroll]: 534352,
|
|
23
|
+
[types_1.Networks.Blast]: 81457,
|
|
24
|
+
[types_1.Networks.Real]: 111188,
|
|
25
|
+
[types_1.Networks.Optimism]: 10,
|
|
26
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Address, NetworkIndex } from '../types';
|
|
2
|
-
export declare const CLAIM_AGGREGATOR: NetworkIndex<Address>;
|
|
1
|
+
import { Address, NetworkIndex } from '../types';
|
|
2
|
+
export declare const CLAIM_AGGREGATOR: NetworkIndex<Address>;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CLAIM_AGGREGATOR = void 0;
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
exports.CLAIM_AGGREGATOR = {
|
|
6
|
-
[types_1.Networks.Ropsten]: '0x2078270ae9956f1298f8bfd8be43306bbd4ab551',
|
|
7
|
-
[types_1.Networks.Mainnet]: '0x5287cac629be59997602b4177cb4420165264b69',
|
|
8
|
-
[types_1.Networks.Polygon]: '0x718Cd1D06094b53de74dE745c4EAD3AC629a0c98',
|
|
9
|
-
[types_1.Networks.Arbitrum]: '0x95887654d8646C26fAb33F344576E2E74b211256',
|
|
10
|
-
[types_1.Networks.Avalanche]: '0x5e169082fFf23cEE6766062B96051A78c543127D',
|
|
11
|
-
[types_1.Networks.Moonriver]: '0x772a82D27b1024e9072aE33dCEd3C0DF1FbDA66e',
|
|
12
|
-
[types_1.Networks.Aurora]: '',
|
|
13
|
-
[types_1.Networks.Cronos]: '',
|
|
14
|
-
[types_1.Networks.Fantom]: '',
|
|
15
|
-
[types_1.Networks.Harmony]: '',
|
|
16
|
-
[types_1.Networks.Moonbeam]: '',
|
|
17
|
-
[types_1.Networks.Sxnetwork]: '',
|
|
18
|
-
[types_1.Networks.Canto]: '',
|
|
19
|
-
[types_1.Networks.ZksyncEra]: '',
|
|
20
|
-
[types_1.Networks.Blast]: '',
|
|
21
|
-
[types_1.Networks.Base]: '',
|
|
22
|
-
[types_1.Networks.Mantle]: '',
|
|
23
|
-
[types_1.Networks.Scroll]: '',
|
|
24
|
-
[types_1.Networks.Optimism]: '',
|
|
25
|
-
[types_1.Networks.Real]: '',
|
|
26
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CLAIM_AGGREGATOR = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.CLAIM_AGGREGATOR = {
|
|
6
|
+
[types_1.Networks.Ropsten]: '0x2078270ae9956f1298f8bfd8be43306bbd4ab551',
|
|
7
|
+
[types_1.Networks.Mainnet]: '0x5287cac629be59997602b4177cb4420165264b69',
|
|
8
|
+
[types_1.Networks.Polygon]: '0x718Cd1D06094b53de74dE745c4EAD3AC629a0c98',
|
|
9
|
+
[types_1.Networks.Arbitrum]: '0x95887654d8646C26fAb33F344576E2E74b211256',
|
|
10
|
+
[types_1.Networks.Avalanche]: '0x5e169082fFf23cEE6766062B96051A78c543127D',
|
|
11
|
+
[types_1.Networks.Moonriver]: '0x772a82D27b1024e9072aE33dCEd3C0DF1FbDA66e',
|
|
12
|
+
[types_1.Networks.Aurora]: '',
|
|
13
|
+
[types_1.Networks.Cronos]: '',
|
|
14
|
+
[types_1.Networks.Fantom]: '',
|
|
15
|
+
[types_1.Networks.Harmony]: '',
|
|
16
|
+
[types_1.Networks.Moonbeam]: '',
|
|
17
|
+
[types_1.Networks.Sxnetwork]: '',
|
|
18
|
+
[types_1.Networks.Canto]: '',
|
|
19
|
+
[types_1.Networks.ZksyncEra]: '',
|
|
20
|
+
[types_1.Networks.Blast]: '',
|
|
21
|
+
[types_1.Networks.Base]: '',
|
|
22
|
+
[types_1.Networks.Mantle]: '',
|
|
23
|
+
[types_1.Networks.Scroll]: '',
|
|
24
|
+
[types_1.Networks.Optimism]: '',
|
|
25
|
+
[types_1.Networks.Real]: '',
|
|
26
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Address, NetworkIndex } from '../types';
|
|
2
|
-
export declare const IMPERMAX_CHEF: NetworkIndex<Address>;
|
|
1
|
+
import { Address, NetworkIndex } from '../types';
|
|
2
|
+
export declare const IMPERMAX_CHEF: NetworkIndex<Address>;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IMPERMAX_CHEF = void 0;
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
exports.IMPERMAX_CHEF = {
|
|
6
|
-
[types_1.Networks.Ropsten]: '',
|
|
7
|
-
[types_1.Networks.Mainnet]: '',
|
|
8
|
-
[types_1.Networks.Polygon]: '0x89703cA5c6C3BD35f9D288Ff9710BecBFA8C6f7b',
|
|
9
|
-
[types_1.Networks.Arbitrum]: '0xcF16FF305eab2E44B568d3148E2EBBBfD48DB126',
|
|
10
|
-
//[Networks.Arbitrum]: '0x99CF05461dd5F94761d4Fae6a2abDa47A93451f5',
|
|
11
|
-
[types_1.Networks.Avalanche]: '0x5475aEd9d11BeaA822e122C36ACDfa0dA2eb086f',
|
|
12
|
-
[types_1.Networks.Moonriver]: '0xD299D53Fc3B09038765af2091a0647e2304a7caa',
|
|
13
|
-
[types_1.Networks.Aurora]: '',
|
|
14
|
-
[types_1.Networks.Cronos]: '',
|
|
15
|
-
[types_1.Networks.Fantom]: '0x19D8a5Abbd08E8Cf6aA9b2df46A04D13CCB7E3b4',
|
|
16
|
-
[types_1.Networks.Harmony]: '',
|
|
17
|
-
[types_1.Networks.Moonbeam]: '',
|
|
18
|
-
[types_1.Networks.Sxnetwork]: '',
|
|
19
|
-
[types_1.Networks.Canto]: '',
|
|
20
|
-
[types_1.Networks.ZksyncEra]: '',
|
|
21
|
-
[types_1.Networks.Blast]: '',
|
|
22
|
-
[types_1.Networks.Base]: '',
|
|
23
|
-
[types_1.Networks.Mantle]: '',
|
|
24
|
-
[types_1.Networks.Scroll]: '',
|
|
25
|
-
[types_1.Networks.Optimism]: '',
|
|
26
|
-
[types_1.Networks.Real]: '',
|
|
27
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IMPERMAX_CHEF = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.IMPERMAX_CHEF = {
|
|
6
|
+
[types_1.Networks.Ropsten]: '',
|
|
7
|
+
[types_1.Networks.Mainnet]: '',
|
|
8
|
+
[types_1.Networks.Polygon]: '0x89703cA5c6C3BD35f9D288Ff9710BecBFA8C6f7b',
|
|
9
|
+
[types_1.Networks.Arbitrum]: '0xcF16FF305eab2E44B568d3148E2EBBBfD48DB126',
|
|
10
|
+
//[Networks.Arbitrum]: '0x99CF05461dd5F94761d4Fae6a2abDa47A93451f5',
|
|
11
|
+
[types_1.Networks.Avalanche]: '0x5475aEd9d11BeaA822e122C36ACDfa0dA2eb086f',
|
|
12
|
+
[types_1.Networks.Moonriver]: '0xD299D53Fc3B09038765af2091a0647e2304a7caa',
|
|
13
|
+
[types_1.Networks.Aurora]: '',
|
|
14
|
+
[types_1.Networks.Cronos]: '',
|
|
15
|
+
[types_1.Networks.Fantom]: '0x19D8a5Abbd08E8Cf6aA9b2df46A04D13CCB7E3b4',
|
|
16
|
+
[types_1.Networks.Harmony]: '',
|
|
17
|
+
[types_1.Networks.Moonbeam]: '',
|
|
18
|
+
[types_1.Networks.Sxnetwork]: '',
|
|
19
|
+
[types_1.Networks.Canto]: '',
|
|
20
|
+
[types_1.Networks.ZksyncEra]: '',
|
|
21
|
+
[types_1.Networks.Blast]: '',
|
|
22
|
+
[types_1.Networks.Base]: '',
|
|
23
|
+
[types_1.Networks.Mantle]: '',
|
|
24
|
+
[types_1.Networks.Scroll]: '',
|
|
25
|
+
[types_1.Networks.Optimism]: '',
|
|
26
|
+
[types_1.Networks.Real]: '',
|
|
27
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Address, NetworkIndex } from '../types';
|
|
2
|
-
export declare const IMPERMAX_CONFIG_MANAGER: NetworkIndex<Address>;
|
|
1
|
+
import { Address, NetworkIndex } from '../types';
|
|
2
|
+
export declare const IMPERMAX_CONFIG_MANAGER: NetworkIndex<Address>;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IMPERMAX_CONFIG_MANAGER = void 0;
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
exports.IMPERMAX_CONFIG_MANAGER = {
|
|
6
|
-
[types_1.Networks.Ropsten]: '',
|
|
7
|
-
[types_1.Networks.Mainnet]: '',
|
|
8
|
-
[types_1.Networks.Polygon]: '0xB72A79979D9CDbBB5BA6FF7d8E99D5e274154794',
|
|
9
|
-
[types_1.Networks.Arbitrum]: '',
|
|
10
|
-
[types_1.Networks.Avalanche]: '',
|
|
11
|
-
[types_1.Networks.Moonriver]: '',
|
|
12
|
-
[types_1.Networks.Aurora]: '',
|
|
13
|
-
[types_1.Networks.Cronos]: '',
|
|
14
|
-
[types_1.Networks.Fantom]: '0x4205329addac66da9d060f6e183f3bc57f0d4705',
|
|
15
|
-
[types_1.Networks.Harmony]: '',
|
|
16
|
-
[types_1.Networks.Moonbeam]: '',
|
|
17
|
-
[types_1.Networks.Sxnetwork]: '',
|
|
18
|
-
[types_1.Networks.Canto]: '',
|
|
19
|
-
[types_1.Networks.ZksyncEra]: '',
|
|
20
|
-
[types_1.Networks.Blast]: '0x5de4c7a691398F01b522ae6C8AdAc649c1E30Cb6',
|
|
21
|
-
[types_1.Networks.Base]: '0x9acafcb281e94eaB771D0cf6508c92A4B75DCE7c',
|
|
22
|
-
[types_1.Networks.Scroll]: '0x90869a451f966d848b85Da57e2a65A545AFb6087',
|
|
23
|
-
[types_1.Networks.Mantle]: '0x6daC1AbEA1E903765358EFD4Ac4e6E817F78F4CB',
|
|
24
|
-
[types_1.Networks.Optimism]: '0xC8301bD3f86e642904aeD9b588cA9d9350b3B160',
|
|
25
|
-
[types_1.Networks.Real]: '0x274C36c461C02B39a110A0801EbB218eC076B79B',
|
|
26
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IMPERMAX_CONFIG_MANAGER = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.IMPERMAX_CONFIG_MANAGER = {
|
|
6
|
+
[types_1.Networks.Ropsten]: '',
|
|
7
|
+
[types_1.Networks.Mainnet]: '',
|
|
8
|
+
[types_1.Networks.Polygon]: '0xB72A79979D9CDbBB5BA6FF7d8E99D5e274154794',
|
|
9
|
+
[types_1.Networks.Arbitrum]: '',
|
|
10
|
+
[types_1.Networks.Avalanche]: '',
|
|
11
|
+
[types_1.Networks.Moonriver]: '',
|
|
12
|
+
[types_1.Networks.Aurora]: '',
|
|
13
|
+
[types_1.Networks.Cronos]: '',
|
|
14
|
+
[types_1.Networks.Fantom]: '0x4205329addac66da9d060f6e183f3bc57f0d4705',
|
|
15
|
+
[types_1.Networks.Harmony]: '',
|
|
16
|
+
[types_1.Networks.Moonbeam]: '',
|
|
17
|
+
[types_1.Networks.Sxnetwork]: '',
|
|
18
|
+
[types_1.Networks.Canto]: '',
|
|
19
|
+
[types_1.Networks.ZksyncEra]: '',
|
|
20
|
+
[types_1.Networks.Blast]: '0x5de4c7a691398F01b522ae6C8AdAc649c1E30Cb6',
|
|
21
|
+
[types_1.Networks.Base]: '0x9acafcb281e94eaB771D0cf6508c92A4B75DCE7c',
|
|
22
|
+
[types_1.Networks.Scroll]: '0x90869a451f966d848b85Da57e2a65A545AFb6087',
|
|
23
|
+
[types_1.Networks.Mantle]: '0x6daC1AbEA1E903765358EFD4Ac4e6E817F78F4CB',
|
|
24
|
+
[types_1.Networks.Optimism]: '0xC8301bD3f86e642904aeD9b588cA9d9350b3B160',
|
|
25
|
+
[types_1.Networks.Real]: '0x274C36c461C02B39a110A0801EbB218eC076B79B',
|
|
26
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, Factory, NetworkFactoryIndex, Networks } from '../types';
|
|
2
|
-
export declare const IMPERMAX_FACTORY: NetworkFactoryIndex<Address>;
|
|
3
|
-
export declare function getFactoryByAddress(network: Networks, address: Address): Factory | null;
|
|
4
|
-
export declare function getNetworkFactories(network: Networks): Address[];
|
|
1
|
+
import { Address, Factory, NetworkFactoryIndex, Networks } from '../types';
|
|
2
|
+
export declare const IMPERMAX_FACTORY: NetworkFactoryIndex<Address>;
|
|
3
|
+
export declare function getFactoryByAddress(network: Networks, address: Address): Factory | null;
|
|
4
|
+
export declare function getNetworkFactories(network: Networks): Address[];
|
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getNetworkFactories = exports.getFactoryByAddress = exports.IMPERMAX_FACTORY = void 0;
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
exports.IMPERMAX_FACTORY = {
|
|
6
|
-
[types_1.Networks.Ropsten]: {},
|
|
7
|
-
[types_1.Networks.Mainnet]: {
|
|
8
|
-
[types_1.Factory.V2V1]: '0x8C3736e2FE63cc2cD89Ee228D9dBcAb6CE5B767B'
|
|
9
|
-
},
|
|
10
|
-
[types_1.Networks.Polygon]: {
|
|
11
|
-
[types_1.Factory.V2V1_1]: '0xBB92270716C8c424849F17cCc12F4F24AD4064D6',
|
|
12
|
-
[types_1.Factory.V2V2]: '0x7F7AD5b16c97Aa9C2B0447C2676ce7D5CEFEbCd3',
|
|
13
|
-
[types_1.Factory.SOLV2]: '0x7ED6eF7419cD9C00693d7A4F81c2a151F49c7aC2',
|
|
14
|
-
[types_1.Factory.SOL_STABLE]: '0x60f57cF15a34fA0Aa25eF37eB827E1a0948966c5',
|
|
15
|
-
},
|
|
16
|
-
[types_1.Networks.Arbitrum]: {
|
|
17
|
-
[types_1.Factory.V2V1_1]: '0x8C3736e2FE63cc2cD89Ee228D9dBcAb6CE5B767B',
|
|
18
|
-
[types_1.Factory.V2V2]: '0x9708e0b216a88d38d469b255ce78c1369ad898e6',
|
|
19
|
-
[types_1.Factory.SOLV2]: '0x97bc7fefb84a4654d4d3938751b5fe401e8771c2',
|
|
20
|
-
},
|
|
21
|
-
[types_1.Networks.Avalanche]: {
|
|
22
|
-
[types_1.Factory.V2V1_2]: '0x8C3736e2FE63cc2cD89Ee228D9dBcAb6CE5B767B',
|
|
23
|
-
[types_1.Factory.V2V2]: '0x9708e0b216a88d38d469b255ce78c1369ad898e6',
|
|
24
|
-
[types_1.Factory.SOLV2]: '0xc7f24fd6329738320883ba429C6C8133e6492739',
|
|
25
|
-
},
|
|
26
|
-
[types_1.Networks.Moonriver]: {
|
|
27
|
-
[types_1.Factory.V2V1_2]: '0x8C3736e2FE63cc2cD89Ee228D9dBcAb6CE5B767B',
|
|
28
|
-
},
|
|
29
|
-
[types_1.Networks.Aurora]: {},
|
|
30
|
-
[types_1.Networks.Cronos]: {},
|
|
31
|
-
[types_1.Networks.Fantom]: {
|
|
32
|
-
[types_1.Factory.SOLV1_2]: '0x60aE5F446AE1575534A5F234D6EC743215624556',
|
|
33
|
-
[types_1.Factory.SOLV2]: '0x9b4ae930255CB8695a9F525dA414F80C4C7a945B',
|
|
34
|
-
[types_1.Factory.V2V2]: '0x1E6B86C09fdBe02fEB228A585C487623Fc395D34'
|
|
35
|
-
},
|
|
36
|
-
[types_1.Networks.Canto]: {
|
|
37
|
-
[types_1.Factory.SOLV2]: '0x9708E0B216a88D38d469B255cE78c1369ad898e6',
|
|
38
|
-
},
|
|
39
|
-
[types_1.Networks.ZksyncEra]: {
|
|
40
|
-
[types_1.Factory.SOLV2]: '0x6ce1a2C079871e4d4b91Ff29E7D2acbD42b46E36',
|
|
41
|
-
},
|
|
42
|
-
[types_1.Networks.Blast]: {
|
|
43
|
-
[types_1.Factory.SOLV2]: '0x7B816c1CCaFA7D3e71E279Ed9DC3226484f6EF87',
|
|
44
|
-
[types_1.Factory.V2V2]: '0xb3C80CFcdD177E3FCe2E66870E4768d1EAd89F6c'
|
|
45
|
-
},
|
|
46
|
-
[types_1.Networks.Harmony]: {},
|
|
47
|
-
[types_1.Networks.Moonbeam]: {},
|
|
48
|
-
[types_1.Networks.Sxnetwork]: {},
|
|
49
|
-
[types_1.Networks.Base]: {
|
|
50
|
-
[types_1.Factory.SOLV2]: '0x66ca66E002a9CEE8dEfE25dB6f0c6225117C2d9f',
|
|
51
|
-
[types_1.Factory.SOL_STABLE]: '0x8aDc5F73e63b3Af3fd0648281fE451738D8B9D86',
|
|
52
|
-
[types_1.Factory.V2V2]: '0x47183bB55AD0F891887E099Cec3570d3C667cD00',
|
|
53
|
-
},
|
|
54
|
-
[types_1.Networks.Scroll]: {
|
|
55
|
-
[types_1.Factory.SOLV2]: '0x02Ff7B4d96EeBF8c9B34Fae0418E591e11da3099',
|
|
56
|
-
[types_1.Factory.SOL_STABLE]: '0xFBD17F3AA7d6506601D2bF7e15a6C96081296a01',
|
|
57
|
-
},
|
|
58
|
-
[types_1.Networks.Real]: {
|
|
59
|
-
[types_1.Factory.SOLV2]: '0x2944e1544cE201ae19e6385490bBA13DaA5f44e4',
|
|
60
|
-
[types_1.Factory.SOL_STABLE]: '0x3B1f3a48A70e372144307A4b126A5cDA46E169AD',
|
|
61
|
-
},
|
|
62
|
-
[types_1.Networks.Mantle]: {
|
|
63
|
-
[types_1.Factory.V2V2]: '0x3047523D5ed0df1545B1C440BdAaB095f1f3cf5C'
|
|
64
|
-
},
|
|
65
|
-
[types_1.Networks.Optimism]: {
|
|
66
|
-
[types_1.Factory.SOLV2]: '0xa058Ba91958cD30D44c7B0Cf58A369876Fb70B05',
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
function getFactoryByAddress(network, address) {
|
|
70
|
-
if (!address)
|
|
71
|
-
return null;
|
|
72
|
-
for (const factory of Object.keys(exports.IMPERMAX_FACTORY[network])) {
|
|
73
|
-
const factoryAddress = exports.IMPERMAX_FACTORY[network][factory];
|
|
74
|
-
if (factoryAddress &&
|
|
75
|
-
address.toLowerCase() == factoryAddress.toLowerCase())
|
|
76
|
-
return factory;
|
|
77
|
-
}
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
exports.getFactoryByAddress = getFactoryByAddress;
|
|
81
|
-
function getNetworkFactories(network) {
|
|
82
|
-
const networkConfig = exports.IMPERMAX_FACTORY[network];
|
|
83
|
-
if (!networkConfig)
|
|
84
|
-
return [];
|
|
85
|
-
return Object.values(networkConfig).map(factory => factory.toLowerCase());
|
|
86
|
-
}
|
|
87
|
-
exports.getNetworkFactories = getNetworkFactories;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getNetworkFactories = exports.getFactoryByAddress = exports.IMPERMAX_FACTORY = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.IMPERMAX_FACTORY = {
|
|
6
|
+
[types_1.Networks.Ropsten]: {},
|
|
7
|
+
[types_1.Networks.Mainnet]: {
|
|
8
|
+
[types_1.Factory.V2V1]: '0x8C3736e2FE63cc2cD89Ee228D9dBcAb6CE5B767B'
|
|
9
|
+
},
|
|
10
|
+
[types_1.Networks.Polygon]: {
|
|
11
|
+
[types_1.Factory.V2V1_1]: '0xBB92270716C8c424849F17cCc12F4F24AD4064D6',
|
|
12
|
+
[types_1.Factory.V2V2]: '0x7F7AD5b16c97Aa9C2B0447C2676ce7D5CEFEbCd3',
|
|
13
|
+
[types_1.Factory.SOLV2]: '0x7ED6eF7419cD9C00693d7A4F81c2a151F49c7aC2',
|
|
14
|
+
[types_1.Factory.SOL_STABLE]: '0x60f57cF15a34fA0Aa25eF37eB827E1a0948966c5',
|
|
15
|
+
},
|
|
16
|
+
[types_1.Networks.Arbitrum]: {
|
|
17
|
+
[types_1.Factory.V2V1_1]: '0x8C3736e2FE63cc2cD89Ee228D9dBcAb6CE5B767B',
|
|
18
|
+
[types_1.Factory.V2V2]: '0x9708e0b216a88d38d469b255ce78c1369ad898e6',
|
|
19
|
+
[types_1.Factory.SOLV2]: '0x97bc7fefb84a4654d4d3938751b5fe401e8771c2',
|
|
20
|
+
},
|
|
21
|
+
[types_1.Networks.Avalanche]: {
|
|
22
|
+
[types_1.Factory.V2V1_2]: '0x8C3736e2FE63cc2cD89Ee228D9dBcAb6CE5B767B',
|
|
23
|
+
[types_1.Factory.V2V2]: '0x9708e0b216a88d38d469b255ce78c1369ad898e6',
|
|
24
|
+
[types_1.Factory.SOLV2]: '0xc7f24fd6329738320883ba429C6C8133e6492739',
|
|
25
|
+
},
|
|
26
|
+
[types_1.Networks.Moonriver]: {
|
|
27
|
+
[types_1.Factory.V2V1_2]: '0x8C3736e2FE63cc2cD89Ee228D9dBcAb6CE5B767B',
|
|
28
|
+
},
|
|
29
|
+
[types_1.Networks.Aurora]: {},
|
|
30
|
+
[types_1.Networks.Cronos]: {},
|
|
31
|
+
[types_1.Networks.Fantom]: {
|
|
32
|
+
[types_1.Factory.SOLV1_2]: '0x60aE5F446AE1575534A5F234D6EC743215624556',
|
|
33
|
+
[types_1.Factory.SOLV2]: '0x9b4ae930255CB8695a9F525dA414F80C4C7a945B',
|
|
34
|
+
[types_1.Factory.V2V2]: '0x1E6B86C09fdBe02fEB228A585C487623Fc395D34'
|
|
35
|
+
},
|
|
36
|
+
[types_1.Networks.Canto]: {
|
|
37
|
+
[types_1.Factory.SOLV2]: '0x9708E0B216a88D38d469B255cE78c1369ad898e6',
|
|
38
|
+
},
|
|
39
|
+
[types_1.Networks.ZksyncEra]: {
|
|
40
|
+
[types_1.Factory.SOLV2]: '0x6ce1a2C079871e4d4b91Ff29E7D2acbD42b46E36',
|
|
41
|
+
},
|
|
42
|
+
[types_1.Networks.Blast]: {
|
|
43
|
+
[types_1.Factory.SOLV2]: '0x7B816c1CCaFA7D3e71E279Ed9DC3226484f6EF87',
|
|
44
|
+
[types_1.Factory.V2V2]: '0xb3C80CFcdD177E3FCe2E66870E4768d1EAd89F6c'
|
|
45
|
+
},
|
|
46
|
+
[types_1.Networks.Harmony]: {},
|
|
47
|
+
[types_1.Networks.Moonbeam]: {},
|
|
48
|
+
[types_1.Networks.Sxnetwork]: {},
|
|
49
|
+
[types_1.Networks.Base]: {
|
|
50
|
+
[types_1.Factory.SOLV2]: '0x66ca66E002a9CEE8dEfE25dB6f0c6225117C2d9f',
|
|
51
|
+
[types_1.Factory.SOL_STABLE]: '0x8aDc5F73e63b3Af3fd0648281fE451738D8B9D86',
|
|
52
|
+
[types_1.Factory.V2V2]: '0x47183bB55AD0F891887E099Cec3570d3C667cD00',
|
|
53
|
+
},
|
|
54
|
+
[types_1.Networks.Scroll]: {
|
|
55
|
+
[types_1.Factory.SOLV2]: '0x02Ff7B4d96EeBF8c9B34Fae0418E591e11da3099',
|
|
56
|
+
[types_1.Factory.SOL_STABLE]: '0xFBD17F3AA7d6506601D2bF7e15a6C96081296a01',
|
|
57
|
+
},
|
|
58
|
+
[types_1.Networks.Real]: {
|
|
59
|
+
[types_1.Factory.SOLV2]: '0x2944e1544cE201ae19e6385490bBA13DaA5f44e4',
|
|
60
|
+
[types_1.Factory.SOL_STABLE]: '0x3B1f3a48A70e372144307A4b126A5cDA46E169AD',
|
|
61
|
+
},
|
|
62
|
+
[types_1.Networks.Mantle]: {
|
|
63
|
+
[types_1.Factory.V2V2]: '0x3047523D5ed0df1545B1C440BdAaB095f1f3cf5C'
|
|
64
|
+
},
|
|
65
|
+
[types_1.Networks.Optimism]: {
|
|
66
|
+
[types_1.Factory.SOLV2]: '0xa058Ba91958cD30D44c7B0Cf58A369876Fb70B05',
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
function getFactoryByAddress(network, address) {
|
|
70
|
+
if (!address)
|
|
71
|
+
return null;
|
|
72
|
+
for (const factory of Object.keys(exports.IMPERMAX_FACTORY[network])) {
|
|
73
|
+
const factoryAddress = exports.IMPERMAX_FACTORY[network][factory];
|
|
74
|
+
if (factoryAddress &&
|
|
75
|
+
address.toLowerCase() == factoryAddress.toLowerCase())
|
|
76
|
+
return factory;
|
|
77
|
+
}
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
exports.getFactoryByAddress = getFactoryByAddress;
|
|
81
|
+
function getNetworkFactories(network) {
|
|
82
|
+
const networkConfig = exports.IMPERMAX_FACTORY[network];
|
|
83
|
+
if (!networkConfig)
|
|
84
|
+
return [];
|
|
85
|
+
return Object.values(networkConfig).map(factory => factory.toLowerCase());
|
|
86
|
+
}
|
|
87
|
+
exports.getNetworkFactories = getNetworkFactories;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Address, NetworkIndex } from '../types';
|
|
2
|
-
export declare const IMX: NetworkIndex<Address>;
|
|
1
|
+
import { Address, NetworkIndex } from '../types';
|
|
2
|
+
export declare const IMX: NetworkIndex<Address>;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IMX = void 0;
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
exports.IMX = {
|
|
6
|
-
[types_1.Networks.Ropsten]: '0x6659a9c5cd313974343e30b4fdffd95bd4b4dcd2',
|
|
7
|
-
[types_1.Networks.Mainnet]: '0x7b35ce522cb72e4077baeb96cb923a5529764a00',
|
|
8
|
-
[types_1.Networks.Polygon]: '0x60bb3d364b765c497c8ce50ae0ae3f0882c5bd05',
|
|
9
|
-
[types_1.Networks.Arbitrum]: '0x9c67ee39e3c4954396b9142010653f17257dd39c',
|
|
10
|
-
[types_1.Networks.Avalanche]: '0xea6887e4a9cda1b77e70129e5fba830cdb5cddef',
|
|
11
|
-
[types_1.Networks.Moonriver]: '0x900f1Ec5819FA087d368877cD03B265Bf1802667',
|
|
12
|
-
[types_1.Networks.Aurora]: '',
|
|
13
|
-
[types_1.Networks.Cronos]: '',
|
|
14
|
-
[types_1.Networks.Fantom]: '0xea38f1ccf77bf43f352636241b05dd8f6f5f52b2',
|
|
15
|
-
[types_1.Networks.Harmony]: '0xbd8064cdb96c00a73540922504f989c64b7b8b96',
|
|
16
|
-
[types_1.Networks.Moonbeam]: '',
|
|
17
|
-
[types_1.Networks.Sxnetwork]: '',
|
|
18
|
-
[types_1.Networks.Canto]: '',
|
|
19
|
-
[types_1.Networks.ZksyncEra]: '',
|
|
20
|
-
[types_1.Networks.Blast]: '',
|
|
21
|
-
[types_1.Networks.Base]: '',
|
|
22
|
-
[types_1.Networks.Mantle]: '',
|
|
23
|
-
[types_1.Networks.Scroll]: '',
|
|
24
|
-
[types_1.Networks.Optimism]: '',
|
|
25
|
-
[types_1.Networks.Real]: '',
|
|
26
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IMX = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.IMX = {
|
|
6
|
+
[types_1.Networks.Ropsten]: '0x6659a9c5cd313974343e30b4fdffd95bd4b4dcd2',
|
|
7
|
+
[types_1.Networks.Mainnet]: '0x7b35ce522cb72e4077baeb96cb923a5529764a00',
|
|
8
|
+
[types_1.Networks.Polygon]: '0x60bb3d364b765c497c8ce50ae0ae3f0882c5bd05',
|
|
9
|
+
[types_1.Networks.Arbitrum]: '0x9c67ee39e3c4954396b9142010653f17257dd39c',
|
|
10
|
+
[types_1.Networks.Avalanche]: '0xea6887e4a9cda1b77e70129e5fba830cdb5cddef',
|
|
11
|
+
[types_1.Networks.Moonriver]: '0x900f1Ec5819FA087d368877cD03B265Bf1802667',
|
|
12
|
+
[types_1.Networks.Aurora]: '',
|
|
13
|
+
[types_1.Networks.Cronos]: '',
|
|
14
|
+
[types_1.Networks.Fantom]: '0xea38f1ccf77bf43f352636241b05dd8f6f5f52b2',
|
|
15
|
+
[types_1.Networks.Harmony]: '0xbd8064cdb96c00a73540922504f989c64b7b8b96',
|
|
16
|
+
[types_1.Networks.Moonbeam]: '',
|
|
17
|
+
[types_1.Networks.Sxnetwork]: '',
|
|
18
|
+
[types_1.Networks.Canto]: '',
|
|
19
|
+
[types_1.Networks.ZksyncEra]: '',
|
|
20
|
+
[types_1.Networks.Blast]: '',
|
|
21
|
+
[types_1.Networks.Base]: '',
|
|
22
|
+
[types_1.Networks.Mantle]: '',
|
|
23
|
+
[types_1.Networks.Scroll]: '',
|
|
24
|
+
[types_1.Networks.Optimism]: '',
|
|
25
|
+
[types_1.Networks.Real]: '',
|
|
26
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Address, NetworkIndex } from '../types';
|
|
2
|
-
export declare const LENDING_VAULT_WATCHER: NetworkIndex<Address>;
|
|
1
|
+
import { Address, NetworkIndex } from '../types';
|
|
2
|
+
export declare const LENDING_VAULT_WATCHER: NetworkIndex<Address>;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LENDING_VAULT_WATCHER = void 0;
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
exports.LENDING_VAULT_WATCHER = {
|
|
6
|
-
[types_1.Networks.Ropsten]: '',
|
|
7
|
-
[types_1.Networks.Mainnet]: '',
|
|
8
|
-
[types_1.Networks.Polygon]: '0xd129cc3a352289ec73ab4a64d630121aad5b9e31',
|
|
9
|
-
[types_1.Networks.Arbitrum]: '0x0C6BE493CEFbFc135249156762d9977803B67B42',
|
|
10
|
-
[types_1.Networks.Avalanche]: '',
|
|
11
|
-
[types_1.Networks.Moonriver]: '',
|
|
12
|
-
[types_1.Networks.Aurora]: '',
|
|
13
|
-
[types_1.Networks.Cronos]: '',
|
|
14
|
-
[types_1.Networks.Fantom]: '',
|
|
15
|
-
[types_1.Networks.Harmony]: '',
|
|
16
|
-
[types_1.Networks.Moonbeam]: '',
|
|
17
|
-
[types_1.Networks.Sxnetwork]: '',
|
|
18
|
-
[types_1.Networks.Canto]: '',
|
|
19
|
-
[types_1.Networks.ZksyncEra]: '',
|
|
20
|
-
[types_1.Networks.Blast]: '',
|
|
21
|
-
[types_1.Networks.Base]: '0x1c79103cEc595b8af673Cd41271861FFA3B2BEDA',
|
|
22
|
-
[types_1.Networks.Mantle]: '',
|
|
23
|
-
[types_1.Networks.Scroll]: '0x0774eBA9e1b20B0f191AbC59a5798838F4bd938c',
|
|
24
|
-
[types_1.Networks.Optimism]: '',
|
|
25
|
-
[types_1.Networks.Real]: '',
|
|
26
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LENDING_VAULT_WATCHER = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.LENDING_VAULT_WATCHER = {
|
|
6
|
+
[types_1.Networks.Ropsten]: '',
|
|
7
|
+
[types_1.Networks.Mainnet]: '',
|
|
8
|
+
[types_1.Networks.Polygon]: '0xd129cc3a352289ec73ab4a64d630121aad5b9e31',
|
|
9
|
+
[types_1.Networks.Arbitrum]: '0x0C6BE493CEFbFc135249156762d9977803B67B42',
|
|
10
|
+
[types_1.Networks.Avalanche]: '',
|
|
11
|
+
[types_1.Networks.Moonriver]: '',
|
|
12
|
+
[types_1.Networks.Aurora]: '',
|
|
13
|
+
[types_1.Networks.Cronos]: '',
|
|
14
|
+
[types_1.Networks.Fantom]: '',
|
|
15
|
+
[types_1.Networks.Harmony]: '',
|
|
16
|
+
[types_1.Networks.Moonbeam]: '',
|
|
17
|
+
[types_1.Networks.Sxnetwork]: '',
|
|
18
|
+
[types_1.Networks.Canto]: '',
|
|
19
|
+
[types_1.Networks.ZksyncEra]: '',
|
|
20
|
+
[types_1.Networks.Blast]: '',
|
|
21
|
+
[types_1.Networks.Base]: '0x1c79103cEc595b8af673Cd41271861FFA3B2BEDA',
|
|
22
|
+
[types_1.Networks.Mantle]: '',
|
|
23
|
+
[types_1.Networks.Scroll]: '0x0774eBA9e1b20B0f191AbC59a5798838F4bd938c',
|
|
24
|
+
[types_1.Networks.Optimism]: '',
|
|
25
|
+
[types_1.Networks.Real]: '',
|
|
26
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, NetworkIndex } from '../types';
|
|
2
|
-
export declare const MERKLE_DISTRIBUTOR_IBEX: NetworkIndex<Address>;
|
|
3
|
-
export declare const MERKLE_DISTRIBUTOR_IBEX_2: NetworkIndex<Address>;
|
|
4
|
-
export declare const MERKLE_DISTRIBUTOR_ETH: NetworkIndex<Address>;
|
|
1
|
+
import { Address, NetworkIndex } from '../types';
|
|
2
|
+
export declare const MERKLE_DISTRIBUTOR_IBEX: NetworkIndex<Address>;
|
|
3
|
+
export declare const MERKLE_DISTRIBUTOR_IBEX_2: NetworkIndex<Address>;
|
|
4
|
+
export declare const MERKLE_DISTRIBUTOR_ETH: NetworkIndex<Address>;
|