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
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MERKLE_DISTRIBUTOR_ETH = exports.MERKLE_DISTRIBUTOR_IBEX_2 = exports.MERKLE_DISTRIBUTOR_IBEX = void 0;
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
exports.MERKLE_DISTRIBUTOR_IBEX = {
|
|
6
|
-
[types_1.Networks.Polygon]: '0x9c7213207b5f8726164c96a76a4b9c0fbf984aba',
|
|
7
|
-
[types_1.Networks.Ropsten]: '',
|
|
8
|
-
[types_1.Networks.Mainnet]: '',
|
|
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]: '',
|
|
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
|
-
};
|
|
27
|
-
exports.MERKLE_DISTRIBUTOR_IBEX_2 = {
|
|
28
|
-
[types_1.Networks.Polygon]: '0x1c813cDd6dAecE2CB83C52F0798504e42816E9C5',
|
|
29
|
-
[types_1.Networks.Ropsten]: '',
|
|
30
|
-
[types_1.Networks.Mainnet]: '',
|
|
31
|
-
[types_1.Networks.Arbitrum]: '',
|
|
32
|
-
[types_1.Networks.Avalanche]: '',
|
|
33
|
-
[types_1.Networks.Moonriver]: '',
|
|
34
|
-
[types_1.Networks.Aurora]: '',
|
|
35
|
-
[types_1.Networks.Cronos]: '',
|
|
36
|
-
[types_1.Networks.Fantom]: '',
|
|
37
|
-
[types_1.Networks.Harmony]: '',
|
|
38
|
-
[types_1.Networks.Moonbeam]: '',
|
|
39
|
-
[types_1.Networks.Sxnetwork]: '',
|
|
40
|
-
[types_1.Networks.Canto]: '',
|
|
41
|
-
[types_1.Networks.ZksyncEra]: '',
|
|
42
|
-
[types_1.Networks.Blast]: '',
|
|
43
|
-
[types_1.Networks.Base]: '',
|
|
44
|
-
[types_1.Networks.Mantle]: '',
|
|
45
|
-
[types_1.Networks.Scroll]: '',
|
|
46
|
-
[types_1.Networks.Optimism]: '',
|
|
47
|
-
[types_1.Networks.Real]: '',
|
|
48
|
-
};
|
|
49
|
-
exports.MERKLE_DISTRIBUTOR_ETH = {
|
|
50
|
-
[types_1.Networks.Polygon]: '0x7ce2f634f0698ecdca051ef1dc4be96ef3d05a62',
|
|
51
|
-
[types_1.Networks.Ropsten]: '',
|
|
52
|
-
[types_1.Networks.Mainnet]: '',
|
|
53
|
-
[types_1.Networks.Arbitrum]: '',
|
|
54
|
-
[types_1.Networks.Avalanche]: '',
|
|
55
|
-
[types_1.Networks.Moonriver]: '',
|
|
56
|
-
[types_1.Networks.Aurora]: '',
|
|
57
|
-
[types_1.Networks.Cronos]: '',
|
|
58
|
-
[types_1.Networks.Fantom]: '',
|
|
59
|
-
[types_1.Networks.Harmony]: '',
|
|
60
|
-
[types_1.Networks.Moonbeam]: '',
|
|
61
|
-
[types_1.Networks.Sxnetwork]: '',
|
|
62
|
-
[types_1.Networks.Canto]: '',
|
|
63
|
-
[types_1.Networks.ZksyncEra]: '',
|
|
64
|
-
[types_1.Networks.Blast]: '',
|
|
65
|
-
[types_1.Networks.Base]: '',
|
|
66
|
-
[types_1.Networks.Mantle]: '',
|
|
67
|
-
[types_1.Networks.Scroll]: '',
|
|
68
|
-
[types_1.Networks.Optimism]: '',
|
|
69
|
-
[types_1.Networks.Real]: '',
|
|
70
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MERKLE_DISTRIBUTOR_ETH = exports.MERKLE_DISTRIBUTOR_IBEX_2 = exports.MERKLE_DISTRIBUTOR_IBEX = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.MERKLE_DISTRIBUTOR_IBEX = {
|
|
6
|
+
[types_1.Networks.Polygon]: '0x9c7213207b5f8726164c96a76a4b9c0fbf984aba',
|
|
7
|
+
[types_1.Networks.Ropsten]: '',
|
|
8
|
+
[types_1.Networks.Mainnet]: '',
|
|
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]: '',
|
|
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
|
+
};
|
|
27
|
+
exports.MERKLE_DISTRIBUTOR_IBEX_2 = {
|
|
28
|
+
[types_1.Networks.Polygon]: '0x1c813cDd6dAecE2CB83C52F0798504e42816E9C5',
|
|
29
|
+
[types_1.Networks.Ropsten]: '',
|
|
30
|
+
[types_1.Networks.Mainnet]: '',
|
|
31
|
+
[types_1.Networks.Arbitrum]: '',
|
|
32
|
+
[types_1.Networks.Avalanche]: '',
|
|
33
|
+
[types_1.Networks.Moonriver]: '',
|
|
34
|
+
[types_1.Networks.Aurora]: '',
|
|
35
|
+
[types_1.Networks.Cronos]: '',
|
|
36
|
+
[types_1.Networks.Fantom]: '',
|
|
37
|
+
[types_1.Networks.Harmony]: '',
|
|
38
|
+
[types_1.Networks.Moonbeam]: '',
|
|
39
|
+
[types_1.Networks.Sxnetwork]: '',
|
|
40
|
+
[types_1.Networks.Canto]: '',
|
|
41
|
+
[types_1.Networks.ZksyncEra]: '',
|
|
42
|
+
[types_1.Networks.Blast]: '',
|
|
43
|
+
[types_1.Networks.Base]: '',
|
|
44
|
+
[types_1.Networks.Mantle]: '',
|
|
45
|
+
[types_1.Networks.Scroll]: '',
|
|
46
|
+
[types_1.Networks.Optimism]: '',
|
|
47
|
+
[types_1.Networks.Real]: '',
|
|
48
|
+
};
|
|
49
|
+
exports.MERKLE_DISTRIBUTOR_ETH = {
|
|
50
|
+
[types_1.Networks.Polygon]: '0x7ce2f634f0698ecdca051ef1dc4be96ef3d05a62',
|
|
51
|
+
[types_1.Networks.Ropsten]: '',
|
|
52
|
+
[types_1.Networks.Mainnet]: '',
|
|
53
|
+
[types_1.Networks.Arbitrum]: '',
|
|
54
|
+
[types_1.Networks.Avalanche]: '',
|
|
55
|
+
[types_1.Networks.Moonriver]: '',
|
|
56
|
+
[types_1.Networks.Aurora]: '',
|
|
57
|
+
[types_1.Networks.Cronos]: '',
|
|
58
|
+
[types_1.Networks.Fantom]: '',
|
|
59
|
+
[types_1.Networks.Harmony]: '',
|
|
60
|
+
[types_1.Networks.Moonbeam]: '',
|
|
61
|
+
[types_1.Networks.Sxnetwork]: '',
|
|
62
|
+
[types_1.Networks.Canto]: '',
|
|
63
|
+
[types_1.Networks.ZksyncEra]: '',
|
|
64
|
+
[types_1.Networks.Blast]: '',
|
|
65
|
+
[types_1.Networks.Base]: '',
|
|
66
|
+
[types_1.Networks.Mantle]: '',
|
|
67
|
+
[types_1.Networks.Scroll]: '',
|
|
68
|
+
[types_1.Networks.Optimism]: '',
|
|
69
|
+
[types_1.Networks.Real]: '',
|
|
70
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { Address, NetworkFactoryIndex, NetworkIndex } from '../types';
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
import { Address, NetworkExtensionIndex, NetworkFactoryIndex, NetworkIndex } from '../types';
|
|
2
|
+
export declare const POOL_TOKEN_ROUTER: NetworkIndex<Address>;
|
|
3
|
+
export declare const ROUTER: NetworkFactoryIndex<Address>;
|
|
4
|
+
export declare const ROUTER_V3: NetworkExtensionIndex<Address>;
|
|
@@ -1,94 +1,118 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
exports.
|
|
6
|
-
[types_1.Networks.Ropsten]:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[types_1.Networks.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
[types_1.Networks.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[types_1.Networks.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
[types_1.Networks.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
[types_1.Networks.
|
|
29
|
-
[types_1.Factory.
|
|
30
|
-
},
|
|
31
|
-
[types_1.Networks.
|
|
32
|
-
[types_1.Factory.
|
|
33
|
-
},
|
|
34
|
-
[types_1.Networks.
|
|
35
|
-
|
|
36
|
-
[types_1.Factory.
|
|
37
|
-
[types_1.Factory.SOLV2]: '
|
|
38
|
-
[types_1.Factory.
|
|
39
|
-
},
|
|
40
|
-
[types_1.Networks.
|
|
41
|
-
[types_1.Factory.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
[types_1.Factory.
|
|
48
|
-
[types_1.Factory.
|
|
49
|
-
},
|
|
50
|
-
[types_1.Networks.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
[types_1.Networks.
|
|
54
|
-
[types_1.Factory.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
[types_1.Factory.SOLV2]: '
|
|
60
|
-
[types_1.Factory.
|
|
61
|
-
},
|
|
62
|
-
[types_1.Networks.
|
|
63
|
-
[types_1.Factory.SOLV2]: '
|
|
64
|
-
},
|
|
65
|
-
[types_1.Networks.
|
|
66
|
-
[types_1.Factory.
|
|
67
|
-
},
|
|
68
|
-
[types_1.Networks.
|
|
69
|
-
[types_1.Factory.SOLV2]: '
|
|
70
|
-
[types_1.Factory.
|
|
71
|
-
},
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
[types_1.Networks.
|
|
75
|
-
[types_1.Networks.
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
[types_1.Networks.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
[types_1.Networks.
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
[types_1.Networks.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
[types_1.Networks.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROUTER_V3 = exports.ROUTER = exports.POOL_TOKEN_ROUTER = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.POOL_TOKEN_ROUTER = {
|
|
6
|
+
[types_1.Networks.Ropsten]: '0xbFf4acF789297A8507Eb7493AE18EB2C3A3A9632',
|
|
7
|
+
[types_1.Networks.Mainnet]: '0x6271c6D2Cf5072D769A16eD99C8D5F3272d44E4F',
|
|
8
|
+
[types_1.Networks.Polygon]: '0xF117a35038cdcfFAAeA6f953438E048D9440A9c2',
|
|
9
|
+
[types_1.Networks.Arbitrum]: '0x58d966725Ee8fcd93CAF7C98C0c8F9b34ef076D3',
|
|
10
|
+
[types_1.Networks.Avalanche]: '0xfB48b69fcba9218f86a437121198E46b2b88Ad63',
|
|
11
|
+
[types_1.Networks.Moonriver]: '0x3271cc175577465691e48196955e09d638fa05d5',
|
|
12
|
+
[types_1.Networks.Aurora]: '0xBB92270716C8c424849F17cCc12F4F24AD4064D6',
|
|
13
|
+
[types_1.Networks.Cronos]: '',
|
|
14
|
+
[types_1.Networks.Fantom]: '0xF655C8567E0f213e6C634CD2A68d992152161dC6',
|
|
15
|
+
[types_1.Networks.Canto]: '0x370D3eE40f1257fC432C33e387981CeDD15C7fac',
|
|
16
|
+
[types_1.Networks.ZksyncEra]: '0xDC9eb03D753D552A3eE286d272F37d49de2783D3',
|
|
17
|
+
[types_1.Networks.Blast]: '0x447b4E5C469b76A1f7175cE7b224629091713a02',
|
|
18
|
+
[types_1.Networks.Harmony]: '',
|
|
19
|
+
[types_1.Networks.Moonbeam]: '',
|
|
20
|
+
[types_1.Networks.Sxnetwork]: '',
|
|
21
|
+
[types_1.Networks.Base]: '0x1EBC3b5911B99aDdE07944c75D9E03958abdB49f',
|
|
22
|
+
[types_1.Networks.Scroll]: '0xFF8D0CDC9C857c7fA265121394558B26e1eAAffE',
|
|
23
|
+
[types_1.Networks.Real]: '0x3784D354863fe8862d60E446E3f29A08c21D1Ea9',
|
|
24
|
+
[types_1.Networks.Mantle]: '0xF4A9dda025e65945E7A3F873D6146A12c8110A19',
|
|
25
|
+
[types_1.Networks.Optimism]: '0xb5657FA5ba87CaD11b9150c319069625d423aaD4',
|
|
26
|
+
};
|
|
27
|
+
exports.ROUTER = {
|
|
28
|
+
[types_1.Networks.Ropsten]: {
|
|
29
|
+
[types_1.Factory.V2V1]: '0xbFf4acF789297A8507Eb7493AE18EB2C3A3A9632' // OLD ROUTER
|
|
30
|
+
},
|
|
31
|
+
[types_1.Networks.Mainnet]: {
|
|
32
|
+
[types_1.Factory.V2V1]: '0x6271c6D2Cf5072D769A16eD99C8D5F3272d44E4F'
|
|
33
|
+
},
|
|
34
|
+
[types_1.Networks.Polygon]: {
|
|
35
|
+
[types_1.Factory.V2V1_1]: '0x69767394c72240275A7a6CCeD1f1a7960Aa06333',
|
|
36
|
+
[types_1.Factory.V2V2]: '0xF117a35038cdcfFAAeA6f953438E048D9440A9c2',
|
|
37
|
+
[types_1.Factory.SOLV2]: '0xD7F63a4F2d317b51e84e64cb0d1eDB9F70956Ac9',
|
|
38
|
+
[types_1.Factory.SOL_STABLE]: '0xe564D3d09863D81ACa176abE58de027389a186aA',
|
|
39
|
+
},
|
|
40
|
+
[types_1.Networks.Arbitrum]: {
|
|
41
|
+
[types_1.Factory.V2V1_1]: '0x9655C5a1ADB30EC5a3a7AD5d06AbeDe8468B60B7',
|
|
42
|
+
[types_1.Factory.V2V2]: '0x58d966725Ee8fcd93CAF7C98C0c8F9b34ef076D3',
|
|
43
|
+
[types_1.Factory.SOLV2]: '0x3b03681d1a46B473F0074cd2C4D27f086497DD56',
|
|
44
|
+
},
|
|
45
|
+
[types_1.Networks.Avalanche]: {
|
|
46
|
+
[types_1.Factory.V2V1_2]: '0xA8567d1229cCaB63E3a834Cd29066a063911E4cf',
|
|
47
|
+
[types_1.Factory.V2V2]: '0xfB48b69fcba9218f86a437121198E46b2b88Ad63',
|
|
48
|
+
[types_1.Factory.SOLV2]: '0xD18d2B8BaAd0078593a3C020cc3c6c5CD2F5B8b8',
|
|
49
|
+
},
|
|
50
|
+
[types_1.Networks.Moonriver]: {
|
|
51
|
+
[types_1.Factory.V2V1_2]: '0x3271cc175577465691e48196955e09d638fa05d5', // OLD ROUTER
|
|
52
|
+
},
|
|
53
|
+
[types_1.Networks.Aurora]: {
|
|
54
|
+
[types_1.Factory.V2V1_2]: '0xBB92270716C8c424849F17cCc12F4F24AD4064D6', // OLD ROUTER
|
|
55
|
+
},
|
|
56
|
+
[types_1.Networks.Cronos]: {},
|
|
57
|
+
[types_1.Networks.Fantom]: {
|
|
58
|
+
[types_1.Factory.SOLV1_2]: '0xF655C8567E0f213e6C634CD2A68d992152161dC6',
|
|
59
|
+
[types_1.Factory.SOLV2]: '0xd9eA4A62C46Cb221F74314C21979Cfb2E020de87',
|
|
60
|
+
[types_1.Factory.V2V2]: '0xd4B557536c7d30463b9BEB470c117F8963Cee24a'
|
|
61
|
+
},
|
|
62
|
+
[types_1.Networks.Canto]: {
|
|
63
|
+
[types_1.Factory.SOLV2]: '0x370D3eE40f1257fC432C33e387981CeDD15C7fac',
|
|
64
|
+
},
|
|
65
|
+
[types_1.Networks.ZksyncEra]: {
|
|
66
|
+
[types_1.Factory.SOLV2]: '0xDC9eb03D753D552A3eE286d272F37d49de2783D3',
|
|
67
|
+
},
|
|
68
|
+
[types_1.Networks.Blast]: {
|
|
69
|
+
[types_1.Factory.SOLV2]: '0x447b4E5C469b76A1f7175cE7b224629091713a02',
|
|
70
|
+
[types_1.Factory.V2V2]: '0x57f9284e10cA2e21181FA626973C72D45a45fd20',
|
|
71
|
+
},
|
|
72
|
+
[types_1.Networks.Harmony]: {},
|
|
73
|
+
[types_1.Networks.Moonbeam]: {},
|
|
74
|
+
[types_1.Networks.Sxnetwork]: {},
|
|
75
|
+
[types_1.Networks.Base]: {
|
|
76
|
+
[types_1.Factory.SOLV2]: '0x1EBC3b5911B99aDdE07944c75D9E03958abdB49f',
|
|
77
|
+
[types_1.Factory.SOL_STABLE]: '0xC5d6CB2205349Cc94684E7acF012751344bc58F7',
|
|
78
|
+
[types_1.Factory.V2V2]: '0x21D9d4d17255d427A5F77D23fb9Eb3c5Cd281ebf'
|
|
79
|
+
},
|
|
80
|
+
[types_1.Networks.Scroll]: {
|
|
81
|
+
[types_1.Factory.SOLV2]: '0xFF8D0CDC9C857c7fA265121394558B26e1eAAffE',
|
|
82
|
+
[types_1.Factory.SOL_STABLE]: '0x736176788edef99D2FAbfAa0f5e13BCb3b46bE17'
|
|
83
|
+
},
|
|
84
|
+
[types_1.Networks.Optimism]: {
|
|
85
|
+
[types_1.Factory.SOLV2]: '0xb5657FA5ba87CaD11b9150c319069625d423aaD4',
|
|
86
|
+
},
|
|
87
|
+
[types_1.Networks.Mantle]: {
|
|
88
|
+
[types_1.Factory.V2V2]: '0xF4A9dda025e65945E7A3F873D6146A12c8110A19'
|
|
89
|
+
},
|
|
90
|
+
[types_1.Networks.Real]: {
|
|
91
|
+
[types_1.Factory.SOLV2]: '0x64515b2f866Ac9B1297f03329d82a8507332fEf5',
|
|
92
|
+
[types_1.Factory.SOL_STABLE]: '0x3784D354863fe8862d60E446E3f29A08c21D1Ea9'
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
exports.ROUTER_V3 = {
|
|
96
|
+
[types_1.Networks.Ropsten]: {},
|
|
97
|
+
[types_1.Networks.Mainnet]: {},
|
|
98
|
+
[types_1.Networks.Polygon]: {},
|
|
99
|
+
[types_1.Networks.Arbitrum]: {},
|
|
100
|
+
[types_1.Networks.Avalanche]: {},
|
|
101
|
+
[types_1.Networks.Moonriver]: {},
|
|
102
|
+
[types_1.Networks.Aurora]: {},
|
|
103
|
+
[types_1.Networks.Cronos]: {},
|
|
104
|
+
[types_1.Networks.Fantom]: {},
|
|
105
|
+
[types_1.Networks.Canto]: {},
|
|
106
|
+
[types_1.Networks.ZksyncEra]: {},
|
|
107
|
+
[types_1.Networks.Blast]: {},
|
|
108
|
+
[types_1.Networks.Harmony]: {},
|
|
109
|
+
[types_1.Networks.Moonbeam]: {},
|
|
110
|
+
[types_1.Networks.Sxnetwork]: {},
|
|
111
|
+
[types_1.Networks.Base]: {
|
|
112
|
+
[types_1.Extension.UniswapV3]: '0xed204bdc73c409378d6e0560caf004e78eb65ed3'
|
|
113
|
+
},
|
|
114
|
+
[types_1.Networks.Scroll]: {},
|
|
115
|
+
[types_1.Networks.Optimism]: {},
|
|
116
|
+
[types_1.Networks.Mantle]: {},
|
|
117
|
+
[types_1.Networks.Real]: {},
|
|
118
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Address, NetworkFactoryIndex } from '../types';
|
|
2
|
-
export declare const SIMPLE_UNISWAP_ORACLE: NetworkFactoryIndex<Address>;
|
|
1
|
+
import { Address, NetworkFactoryIndex } from '../types';
|
|
2
|
+
export declare const SIMPLE_UNISWAP_ORACLE: NetworkFactoryIndex<Address>;
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SIMPLE_UNISWAP_ORACLE = void 0;
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
exports.SIMPLE_UNISWAP_ORACLE = {
|
|
6
|
-
[types_1.Networks.Ropsten]: {
|
|
7
|
-
[types_1.Factory.V2V1]: '0xc53bb18028feA1B413057e2b2474F9838c465Fc3'
|
|
8
|
-
},
|
|
9
|
-
[types_1.Networks.Mainnet]: {
|
|
10
|
-
[types_1.Factory.V2V1]: '0x5671B249391cA5E6a8FE28CEb1e85Dc41c12Ba7D'
|
|
11
|
-
},
|
|
12
|
-
[types_1.Networks.Polygon]: {
|
|
13
|
-
[types_1.Factory.V2V1_1]: '0x3271CC175577465691E48196955e09d638Fa05D5',
|
|
14
|
-
[types_1.Factory.V2V2]: '0x3271CC175577465691E48196955e09d638Fa05D5',
|
|
15
|
-
},
|
|
16
|
-
[types_1.Networks.Arbitrum]: {
|
|
17
|
-
[types_1.Factory.V2V1_1]: '0x5671B249391cA5E6a8FE28CEb1e85Dc41c12Ba7D',
|
|
18
|
-
[types_1.Factory.V2V2]: '0x9c7213207b5f8726164c96a76a4b9c0fbf984aba',
|
|
19
|
-
},
|
|
20
|
-
[types_1.Networks.Avalanche]: {
|
|
21
|
-
[types_1.Factory.V2V1_2]: '0xC12E00DE204d58eAd5B5cE9054E94aeE7747fB6C',
|
|
22
|
-
[types_1.Factory.V2V2]: '0x9c7213207b5f8726164c96a76a4b9c0fbf984aba',
|
|
23
|
-
},
|
|
24
|
-
[types_1.Networks.Moonriver]: {
|
|
25
|
-
[types_1.Factory.V2V1_2]: '0x5671B249391cA5E6a8FE28CEb1e85Dc41c12Ba7D'
|
|
26
|
-
},
|
|
27
|
-
[types_1.Networks.Aurora]: {
|
|
28
|
-
[types_1.Factory.V2V1_2]: '0x5671B249391cA5E6a8FE28CEb1e85Dc41c12Ba7D'
|
|
29
|
-
},
|
|
30
|
-
[types_1.Networks.Blast]: {
|
|
31
|
-
[types_1.Factory.V2V2]: '0x0d05ED909d17Ac02B71D083C199f09577eFbe034'
|
|
32
|
-
},
|
|
33
|
-
[types_1.Networks.Cronos]: {},
|
|
34
|
-
[types_1.Networks.Fantom]: {},
|
|
35
|
-
[types_1.Networks.Harmony]: {},
|
|
36
|
-
[types_1.Networks.Moonbeam]: {},
|
|
37
|
-
[types_1.Networks.Sxnetwork]: {},
|
|
38
|
-
[types_1.Networks.Canto]: {},
|
|
39
|
-
[types_1.Networks.ZksyncEra]: {},
|
|
40
|
-
[types_1.Networks.Base]: {
|
|
41
|
-
[types_1.Factory.V2V2]: "0x1fd55593ccD75e5727bb71bEB155e86d7290eAD6"
|
|
42
|
-
},
|
|
43
|
-
[types_1.Networks.Scroll]: {},
|
|
44
|
-
[types_1.Networks.Real]: {},
|
|
45
|
-
[types_1.Networks.Optimism]: {},
|
|
46
|
-
[types_1.Networks.Mantle]: {
|
|
47
|
-
[types_1.Factory.V2V2]: '0x936c30E14daED88fd29bf4FCe2965EbEDe633846'
|
|
48
|
-
},
|
|
49
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SIMPLE_UNISWAP_ORACLE = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.SIMPLE_UNISWAP_ORACLE = {
|
|
6
|
+
[types_1.Networks.Ropsten]: {
|
|
7
|
+
[types_1.Factory.V2V1]: '0xc53bb18028feA1B413057e2b2474F9838c465Fc3'
|
|
8
|
+
},
|
|
9
|
+
[types_1.Networks.Mainnet]: {
|
|
10
|
+
[types_1.Factory.V2V1]: '0x5671B249391cA5E6a8FE28CEb1e85Dc41c12Ba7D'
|
|
11
|
+
},
|
|
12
|
+
[types_1.Networks.Polygon]: {
|
|
13
|
+
[types_1.Factory.V2V1_1]: '0x3271CC175577465691E48196955e09d638Fa05D5',
|
|
14
|
+
[types_1.Factory.V2V2]: '0x3271CC175577465691E48196955e09d638Fa05D5',
|
|
15
|
+
},
|
|
16
|
+
[types_1.Networks.Arbitrum]: {
|
|
17
|
+
[types_1.Factory.V2V1_1]: '0x5671B249391cA5E6a8FE28CEb1e85Dc41c12Ba7D',
|
|
18
|
+
[types_1.Factory.V2V2]: '0x9c7213207b5f8726164c96a76a4b9c0fbf984aba',
|
|
19
|
+
},
|
|
20
|
+
[types_1.Networks.Avalanche]: {
|
|
21
|
+
[types_1.Factory.V2V1_2]: '0xC12E00DE204d58eAd5B5cE9054E94aeE7747fB6C',
|
|
22
|
+
[types_1.Factory.V2V2]: '0x9c7213207b5f8726164c96a76a4b9c0fbf984aba',
|
|
23
|
+
},
|
|
24
|
+
[types_1.Networks.Moonriver]: {
|
|
25
|
+
[types_1.Factory.V2V1_2]: '0x5671B249391cA5E6a8FE28CEb1e85Dc41c12Ba7D'
|
|
26
|
+
},
|
|
27
|
+
[types_1.Networks.Aurora]: {
|
|
28
|
+
[types_1.Factory.V2V1_2]: '0x5671B249391cA5E6a8FE28CEb1e85Dc41c12Ba7D'
|
|
29
|
+
},
|
|
30
|
+
[types_1.Networks.Blast]: {
|
|
31
|
+
[types_1.Factory.V2V2]: '0x0d05ED909d17Ac02B71D083C199f09577eFbe034'
|
|
32
|
+
},
|
|
33
|
+
[types_1.Networks.Cronos]: {},
|
|
34
|
+
[types_1.Networks.Fantom]: {},
|
|
35
|
+
[types_1.Networks.Harmony]: {},
|
|
36
|
+
[types_1.Networks.Moonbeam]: {},
|
|
37
|
+
[types_1.Networks.Sxnetwork]: {},
|
|
38
|
+
[types_1.Networks.Canto]: {},
|
|
39
|
+
[types_1.Networks.ZksyncEra]: {},
|
|
40
|
+
[types_1.Networks.Base]: {
|
|
41
|
+
[types_1.Factory.V2V2]: "0x1fd55593ccD75e5727bb71bEB155e86d7290eAD6"
|
|
42
|
+
},
|
|
43
|
+
[types_1.Networks.Scroll]: {},
|
|
44
|
+
[types_1.Networks.Real]: {},
|
|
45
|
+
[types_1.Networks.Optimism]: {},
|
|
46
|
+
[types_1.Networks.Mantle]: {
|
|
47
|
+
[types_1.Factory.V2V2]: '0x936c30E14daED88fd29bf4FCe2965EbEDe633846'
|
|
48
|
+
},
|
|
49
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Address, NetworkIndex } from '../types';
|
|
2
|
-
export declare const WETH: NetworkIndex<Address>;
|
|
1
|
+
import { Address, NetworkIndex } from '../types';
|
|
2
|
+
export declare const WETH: NetworkIndex<Address>;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WETH = void 0;
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
exports.WETH = {
|
|
6
|
-
[types_1.Networks.Ropsten]: '0xc778417E063141139Fce010982780140Aa0cD5Ab',
|
|
7
|
-
[types_1.Networks.Mainnet]: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
|
8
|
-
[types_1.Networks.Polygon]: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
|
|
9
|
-
[types_1.Networks.Arbitrum]: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
|
|
10
|
-
[types_1.Networks.Avalanche]: '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7',
|
|
11
|
-
//[Networks.Moonriver]: '0xf50225a84382c74cbdea10b0c176f71fc3de0c4d', // WMOVR
|
|
12
|
-
[types_1.Networks.Moonriver]: '0x98878b06940ae243284ca214f92bb71a2b032b8a',
|
|
13
|
-
[types_1.Networks.Aurora]: '0xC9BdeEd33CD01541e1eeD10f90519d2C06Fe3feB',
|
|
14
|
-
[types_1.Networks.Cronos]: '0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23',
|
|
15
|
-
[types_1.Networks.Fantom]: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',
|
|
16
|
-
[types_1.Networks.Harmony]: '0xcf664087a5bb0237a0bad6742852ec6c8d69a27a',
|
|
17
|
-
[types_1.Networks.Moonbeam]: '0xacc15dc74880c9944775448304b263d191c6077f',
|
|
18
|
-
[types_1.Networks.Sxnetwork]: '0xacc15dc74880c9944775448304b263d191c6077f',
|
|
19
|
-
[types_1.Networks.Canto]: '0x826551890Dc65655a0Aceca109aB11AbDbD7a07B',
|
|
20
|
-
[types_1.Networks.ZksyncEra]: '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91',
|
|
21
|
-
[types_1.Networks.Blast]: '0x4300000000000000000000000000000000000004',
|
|
22
|
-
[types_1.Networks.Base]: '0x4200000000000000000000000000000000000006',
|
|
23
|
-
[types_1.Networks.Mantle]: '0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8',
|
|
24
|
-
[types_1.Networks.Scroll]: '0x5300000000000000000000000000000000000004',
|
|
25
|
-
[types_1.Networks.Optimism]: '0x4200000000000000000000000000000000000006',
|
|
26
|
-
[types_1.Networks.Real]: '0x90c6E93849E06EC7478ba24522329d14A5954Df4', // reETH
|
|
27
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WETH = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.WETH = {
|
|
6
|
+
[types_1.Networks.Ropsten]: '0xc778417E063141139Fce010982780140Aa0cD5Ab',
|
|
7
|
+
[types_1.Networks.Mainnet]: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
|
8
|
+
[types_1.Networks.Polygon]: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
|
|
9
|
+
[types_1.Networks.Arbitrum]: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
|
|
10
|
+
[types_1.Networks.Avalanche]: '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7',
|
|
11
|
+
//[Networks.Moonriver]: '0xf50225a84382c74cbdea10b0c176f71fc3de0c4d', // WMOVR
|
|
12
|
+
[types_1.Networks.Moonriver]: '0x98878b06940ae243284ca214f92bb71a2b032b8a',
|
|
13
|
+
[types_1.Networks.Aurora]: '0xC9BdeEd33CD01541e1eeD10f90519d2C06Fe3feB',
|
|
14
|
+
[types_1.Networks.Cronos]: '0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23',
|
|
15
|
+
[types_1.Networks.Fantom]: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',
|
|
16
|
+
[types_1.Networks.Harmony]: '0xcf664087a5bb0237a0bad6742852ec6c8d69a27a',
|
|
17
|
+
[types_1.Networks.Moonbeam]: '0xacc15dc74880c9944775448304b263d191c6077f',
|
|
18
|
+
[types_1.Networks.Sxnetwork]: '0xacc15dc74880c9944775448304b263d191c6077f',
|
|
19
|
+
[types_1.Networks.Canto]: '0x826551890Dc65655a0Aceca109aB11AbDbD7a07B',
|
|
20
|
+
[types_1.Networks.ZksyncEra]: '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91',
|
|
21
|
+
[types_1.Networks.Blast]: '0x4300000000000000000000000000000000000004',
|
|
22
|
+
[types_1.Networks.Base]: '0x4200000000000000000000000000000000000006',
|
|
23
|
+
[types_1.Networks.Mantle]: '0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8',
|
|
24
|
+
[types_1.Networks.Scroll]: '0x5300000000000000000000000000000000000004',
|
|
25
|
+
[types_1.Networks.Optimism]: '0x4200000000000000000000000000000000000006',
|
|
26
|
+
[types_1.Networks.Real]: '0x90c6E93849E06EC7478ba24522329d14A5954Df4', // reETH
|
|
27
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NetworkIndex } from './types';
|
|
2
|
-
export declare const DEBANK_IDS: NetworkIndex<string>;
|
|
1
|
+
import { NetworkIndex } from './types';
|
|
2
|
+
export declare const DEBANK_IDS: NetworkIndex<string>;
|
package/lib/config/debank-ids.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEBANK_IDS = void 0;
|
|
4
|
-
const types_1 = require("./types");
|
|
5
|
-
exports.DEBANK_IDS = {
|
|
6
|
-
[types_1.Networks.Ropsten]: '',
|
|
7
|
-
[types_1.Networks.Mainnet]: 'eth',
|
|
8
|
-
[types_1.Networks.Polygon]: 'matic',
|
|
9
|
-
[types_1.Networks.Arbitrum]: 'arb',
|
|
10
|
-
[types_1.Networks.Avalanche]: 'avax',
|
|
11
|
-
[types_1.Networks.Moonriver]: 'movr',
|
|
12
|
-
[types_1.Networks.Fantom]: 'ftm',
|
|
13
|
-
[types_1.Networks.Cronos]: 'cro',
|
|
14
|
-
[types_1.Networks.Canto]: 'canto',
|
|
15
|
-
[types_1.Networks.Aurora]: 'aurora',
|
|
16
|
-
[types_1.Networks.Harmony]: 'hmy',
|
|
17
|
-
[types_1.Networks.Moonbeam]: 'mobm',
|
|
18
|
-
[types_1.Networks.Sxnetwork]: '',
|
|
19
|
-
[types_1.Networks.Blast]: 'blast',
|
|
20
|
-
[types_1.Networks.ZksyncEra]: 'era',
|
|
21
|
-
[types_1.Networks.Base]: 'base',
|
|
22
|
-
[types_1.Networks.Mantle]: 'mnt',
|
|
23
|
-
[types_1.Networks.Scroll]: 'scrl',
|
|
24
|
-
[types_1.Networks.Optimism]: 'op',
|
|
25
|
-
[types_1.Networks.Real]: 'real',
|
|
26
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEBANK_IDS = void 0;
|
|
4
|
+
const types_1 = require("./types");
|
|
5
|
+
exports.DEBANK_IDS = {
|
|
6
|
+
[types_1.Networks.Ropsten]: '',
|
|
7
|
+
[types_1.Networks.Mainnet]: 'eth',
|
|
8
|
+
[types_1.Networks.Polygon]: 'matic',
|
|
9
|
+
[types_1.Networks.Arbitrum]: 'arb',
|
|
10
|
+
[types_1.Networks.Avalanche]: 'avax',
|
|
11
|
+
[types_1.Networks.Moonriver]: 'movr',
|
|
12
|
+
[types_1.Networks.Fantom]: 'ftm',
|
|
13
|
+
[types_1.Networks.Cronos]: 'cro',
|
|
14
|
+
[types_1.Networks.Canto]: 'canto',
|
|
15
|
+
[types_1.Networks.Aurora]: 'aurora',
|
|
16
|
+
[types_1.Networks.Harmony]: 'hmy',
|
|
17
|
+
[types_1.Networks.Moonbeam]: 'mobm',
|
|
18
|
+
[types_1.Networks.Sxnetwork]: '',
|
|
19
|
+
[types_1.Networks.Blast]: 'blast',
|
|
20
|
+
[types_1.Networks.ZksyncEra]: 'era',
|
|
21
|
+
[types_1.Networks.Base]: 'base',
|
|
22
|
+
[types_1.Networks.Mantle]: 'mnt',
|
|
23
|
+
[types_1.Networks.Scroll]: 'scrl',
|
|
24
|
+
[types_1.Networks.Optimism]: 'op',
|
|
25
|
+
[types_1.Networks.Real]: 'real',
|
|
26
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NetworkIndex } from '../types';
|
|
2
|
-
export declare const MERKLE_URL_IBEX: NetworkIndex<string>;
|
|
3
|
-
export declare const MERKLE_URL_IBEX_2: NetworkIndex<string>;
|
|
4
|
-
export declare const MERKLE_URL_ETH: NetworkIndex<string>;
|
|
1
|
+
import { NetworkIndex } from '../types';
|
|
2
|
+
export declare const MERKLE_URL_IBEX: NetworkIndex<string>;
|
|
3
|
+
export declare const MERKLE_URL_IBEX_2: NetworkIndex<string>;
|
|
4
|
+
export declare const MERKLE_URL_ETH: NetworkIndex<string>;
|