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,406 +1,406 @@
|
|
|
1
|
-
{
|
|
2
|
-
"contractName": "IClaimable",
|
|
3
|
-
"abi": [
|
|
4
|
-
{
|
|
5
|
-
"anonymous": false,
|
|
6
|
-
"inputs": [
|
|
7
|
-
{
|
|
8
|
-
"indexed": true,
|
|
9
|
-
"internalType": "address",
|
|
10
|
-
"name": "account",
|
|
11
|
-
"type": "address"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"indexed": false,
|
|
15
|
-
"internalType": "uint256",
|
|
16
|
-
"name": "amount",
|
|
17
|
-
"type": "uint256"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"name": "Claim",
|
|
21
|
-
"type": "event"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"inputs": [],
|
|
25
|
-
"name": "claim",
|
|
26
|
-
"outputs": [
|
|
27
|
-
{
|
|
28
|
-
"internalType": "uint256",
|
|
29
|
-
"name": "amount",
|
|
30
|
-
"type": "uint256"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"stateMutability": "nonpayable",
|
|
34
|
-
"type": "function"
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
"metadata": "{\"compiler\":{\"version\":\"0.6.6+commit.6c089d02\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Claim\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"claim\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/C/Users/simor/Desktop/imx/contracts/interfaces/IClaimable.sol\":\"IClaimable\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"/C/Users/simor/Desktop/imx/contracts/interfaces/IClaimable.sol\":{\"keccak256\":\"0x7f94e724893f9450b25342cf35f745a8056d2a7a648a661c49ecba23c3765ddb\",\"urls\":[\"bzz-raw://d4efafed9f7465ce417b331c3832bda372d59224ccd78cc6b24e72c7d349a8fe\",\"dweb:/ipfs/QmPqNxRmjtoxJFVx2vF7ZQrqn5Zy85Ejts9PsAHQMMotjV\"]}},\"version\":1}",
|
|
38
|
-
"bytecode": "0x",
|
|
39
|
-
"deployedBytecode": "0x",
|
|
40
|
-
"immutableReferences": {},
|
|
41
|
-
"sourceMap": "",
|
|
42
|
-
"deployedSourceMap": "",
|
|
43
|
-
"source": "pragma solidity =0.6.6;\r\n\r\ninterface IClaimable {\r\n\tfunction claim() external returns (uint amount);\r\n\tevent Claim(address indexed account, uint amount);\r\n}",
|
|
44
|
-
"sourcePath": "C:\\Users\\simor\\Desktop\\imx\\contracts\\interfaces\\IClaimable.sol",
|
|
45
|
-
"ast": {
|
|
46
|
-
"absolutePath": "/C/Users/simor/Desktop/imx/contracts/interfaces/IClaimable.sol",
|
|
47
|
-
"exportedSymbols": {
|
|
48
|
-
"IClaimable": [
|
|
49
|
-
2790
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
"id": 2791,
|
|
53
|
-
"nodeType": "SourceUnit",
|
|
54
|
-
"nodes": [
|
|
55
|
-
{
|
|
56
|
-
"id": 2778,
|
|
57
|
-
"literals": [
|
|
58
|
-
"solidity",
|
|
59
|
-
"=",
|
|
60
|
-
"0.6",
|
|
61
|
-
".6"
|
|
62
|
-
],
|
|
63
|
-
"nodeType": "PragmaDirective",
|
|
64
|
-
"src": "0:23:11"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"abstract": false,
|
|
68
|
-
"baseContracts": [],
|
|
69
|
-
"contractDependencies": [],
|
|
70
|
-
"contractKind": "interface",
|
|
71
|
-
"documentation": null,
|
|
72
|
-
"fullyImplemented": false,
|
|
73
|
-
"id": 2790,
|
|
74
|
-
"linearizedBaseContracts": [
|
|
75
|
-
2790
|
|
76
|
-
],
|
|
77
|
-
"name": "IClaimable",
|
|
78
|
-
"nodeType": "ContractDefinition",
|
|
79
|
-
"nodes": [
|
|
80
|
-
{
|
|
81
|
-
"body": null,
|
|
82
|
-
"documentation": null,
|
|
83
|
-
"functionSelector": "4e71d92d",
|
|
84
|
-
"id": 2783,
|
|
85
|
-
"implemented": false,
|
|
86
|
-
"kind": "function",
|
|
87
|
-
"modifiers": [],
|
|
88
|
-
"name": "claim",
|
|
89
|
-
"nodeType": "FunctionDefinition",
|
|
90
|
-
"overrides": null,
|
|
91
|
-
"parameters": {
|
|
92
|
-
"id": 2779,
|
|
93
|
-
"nodeType": "ParameterList",
|
|
94
|
-
"parameters": [],
|
|
95
|
-
"src": "66:2:11"
|
|
96
|
-
},
|
|
97
|
-
"returnParameters": {
|
|
98
|
-
"id": 2782,
|
|
99
|
-
"nodeType": "ParameterList",
|
|
100
|
-
"parameters": [
|
|
101
|
-
{
|
|
102
|
-
"constant": false,
|
|
103
|
-
"id": 2781,
|
|
104
|
-
"mutability": "mutable",
|
|
105
|
-
"name": "amount",
|
|
106
|
-
"nodeType": "VariableDeclaration",
|
|
107
|
-
"overrides": null,
|
|
108
|
-
"scope": 2783,
|
|
109
|
-
"src": "87:11:11",
|
|
110
|
-
"stateVariable": false,
|
|
111
|
-
"storageLocation": "default",
|
|
112
|
-
"typeDescriptions": {
|
|
113
|
-
"typeIdentifier": "t_uint256",
|
|
114
|
-
"typeString": "uint256"
|
|
115
|
-
},
|
|
116
|
-
"typeName": {
|
|
117
|
-
"id": 2780,
|
|
118
|
-
"name": "uint",
|
|
119
|
-
"nodeType": "ElementaryTypeName",
|
|
120
|
-
"src": "87:4:11",
|
|
121
|
-
"typeDescriptions": {
|
|
122
|
-
"typeIdentifier": "t_uint256",
|
|
123
|
-
"typeString": "uint256"
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"value": null,
|
|
127
|
-
"visibility": "internal"
|
|
128
|
-
}
|
|
129
|
-
],
|
|
130
|
-
"src": "86:13:11"
|
|
131
|
-
},
|
|
132
|
-
"scope": 2790,
|
|
133
|
-
"src": "52:48:11",
|
|
134
|
-
"stateMutability": "nonpayable",
|
|
135
|
-
"virtual": false,
|
|
136
|
-
"visibility": "external"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"anonymous": false,
|
|
140
|
-
"documentation": null,
|
|
141
|
-
"id": 2789,
|
|
142
|
-
"name": "Claim",
|
|
143
|
-
"nodeType": "EventDefinition",
|
|
144
|
-
"parameters": {
|
|
145
|
-
"id": 2788,
|
|
146
|
-
"nodeType": "ParameterList",
|
|
147
|
-
"parameters": [
|
|
148
|
-
{
|
|
149
|
-
"constant": false,
|
|
150
|
-
"id": 2785,
|
|
151
|
-
"indexed": true,
|
|
152
|
-
"mutability": "mutable",
|
|
153
|
-
"name": "account",
|
|
154
|
-
"nodeType": "VariableDeclaration",
|
|
155
|
-
"overrides": null,
|
|
156
|
-
"scope": 2789,
|
|
157
|
-
"src": "115:23:11",
|
|
158
|
-
"stateVariable": false,
|
|
159
|
-
"storageLocation": "default",
|
|
160
|
-
"typeDescriptions": {
|
|
161
|
-
"typeIdentifier": "t_address",
|
|
162
|
-
"typeString": "address"
|
|
163
|
-
},
|
|
164
|
-
"typeName": {
|
|
165
|
-
"id": 2784,
|
|
166
|
-
"name": "address",
|
|
167
|
-
"nodeType": "ElementaryTypeName",
|
|
168
|
-
"src": "115:7:11",
|
|
169
|
-
"stateMutability": "nonpayable",
|
|
170
|
-
"typeDescriptions": {
|
|
171
|
-
"typeIdentifier": "t_address",
|
|
172
|
-
"typeString": "address"
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
"value": null,
|
|
176
|
-
"visibility": "internal"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"constant": false,
|
|
180
|
-
"id": 2787,
|
|
181
|
-
"indexed": false,
|
|
182
|
-
"mutability": "mutable",
|
|
183
|
-
"name": "amount",
|
|
184
|
-
"nodeType": "VariableDeclaration",
|
|
185
|
-
"overrides": null,
|
|
186
|
-
"scope": 2789,
|
|
187
|
-
"src": "140:11:11",
|
|
188
|
-
"stateVariable": false,
|
|
189
|
-
"storageLocation": "default",
|
|
190
|
-
"typeDescriptions": {
|
|
191
|
-
"typeIdentifier": "t_uint256",
|
|
192
|
-
"typeString": "uint256"
|
|
193
|
-
},
|
|
194
|
-
"typeName": {
|
|
195
|
-
"id": 2786,
|
|
196
|
-
"name": "uint",
|
|
197
|
-
"nodeType": "ElementaryTypeName",
|
|
198
|
-
"src": "140:4:11",
|
|
199
|
-
"typeDescriptions": {
|
|
200
|
-
"typeIdentifier": "t_uint256",
|
|
201
|
-
"typeString": "uint256"
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
"value": null,
|
|
205
|
-
"visibility": "internal"
|
|
206
|
-
}
|
|
207
|
-
],
|
|
208
|
-
"src": "114:38:11"
|
|
209
|
-
},
|
|
210
|
-
"src": "103:50:11"
|
|
211
|
-
}
|
|
212
|
-
],
|
|
213
|
-
"scope": 2791,
|
|
214
|
-
"src": "27:129:11"
|
|
215
|
-
}
|
|
216
|
-
],
|
|
217
|
-
"src": "0:156:11"
|
|
218
|
-
},
|
|
219
|
-
"legacyAST": {
|
|
220
|
-
"absolutePath": "/C/Users/simor/Desktop/imx/contracts/interfaces/IClaimable.sol",
|
|
221
|
-
"exportedSymbols": {
|
|
222
|
-
"IClaimable": [
|
|
223
|
-
2790
|
|
224
|
-
]
|
|
225
|
-
},
|
|
226
|
-
"id": 2791,
|
|
227
|
-
"nodeType": "SourceUnit",
|
|
228
|
-
"nodes": [
|
|
229
|
-
{
|
|
230
|
-
"id": 2778,
|
|
231
|
-
"literals": [
|
|
232
|
-
"solidity",
|
|
233
|
-
"=",
|
|
234
|
-
"0.6",
|
|
235
|
-
".6"
|
|
236
|
-
],
|
|
237
|
-
"nodeType": "PragmaDirective",
|
|
238
|
-
"src": "0:23:11"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"abstract": false,
|
|
242
|
-
"baseContracts": [],
|
|
243
|
-
"contractDependencies": [],
|
|
244
|
-
"contractKind": "interface",
|
|
245
|
-
"documentation": null,
|
|
246
|
-
"fullyImplemented": false,
|
|
247
|
-
"id": 2790,
|
|
248
|
-
"linearizedBaseContracts": [
|
|
249
|
-
2790
|
|
250
|
-
],
|
|
251
|
-
"name": "IClaimable",
|
|
252
|
-
"nodeType": "ContractDefinition",
|
|
253
|
-
"nodes": [
|
|
254
|
-
{
|
|
255
|
-
"body": null,
|
|
256
|
-
"documentation": null,
|
|
257
|
-
"functionSelector": "4e71d92d",
|
|
258
|
-
"id": 2783,
|
|
259
|
-
"implemented": false,
|
|
260
|
-
"kind": "function",
|
|
261
|
-
"modifiers": [],
|
|
262
|
-
"name": "claim",
|
|
263
|
-
"nodeType": "FunctionDefinition",
|
|
264
|
-
"overrides": null,
|
|
265
|
-
"parameters": {
|
|
266
|
-
"id": 2779,
|
|
267
|
-
"nodeType": "ParameterList",
|
|
268
|
-
"parameters": [],
|
|
269
|
-
"src": "66:2:11"
|
|
270
|
-
},
|
|
271
|
-
"returnParameters": {
|
|
272
|
-
"id": 2782,
|
|
273
|
-
"nodeType": "ParameterList",
|
|
274
|
-
"parameters": [
|
|
275
|
-
{
|
|
276
|
-
"constant": false,
|
|
277
|
-
"id": 2781,
|
|
278
|
-
"mutability": "mutable",
|
|
279
|
-
"name": "amount",
|
|
280
|
-
"nodeType": "VariableDeclaration",
|
|
281
|
-
"overrides": null,
|
|
282
|
-
"scope": 2783,
|
|
283
|
-
"src": "87:11:11",
|
|
284
|
-
"stateVariable": false,
|
|
285
|
-
"storageLocation": "default",
|
|
286
|
-
"typeDescriptions": {
|
|
287
|
-
"typeIdentifier": "t_uint256",
|
|
288
|
-
"typeString": "uint256"
|
|
289
|
-
},
|
|
290
|
-
"typeName": {
|
|
291
|
-
"id": 2780,
|
|
292
|
-
"name": "uint",
|
|
293
|
-
"nodeType": "ElementaryTypeName",
|
|
294
|
-
"src": "87:4:11",
|
|
295
|
-
"typeDescriptions": {
|
|
296
|
-
"typeIdentifier": "t_uint256",
|
|
297
|
-
"typeString": "uint256"
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
"value": null,
|
|
301
|
-
"visibility": "internal"
|
|
302
|
-
}
|
|
303
|
-
],
|
|
304
|
-
"src": "86:13:11"
|
|
305
|
-
},
|
|
306
|
-
"scope": 2790,
|
|
307
|
-
"src": "52:48:11",
|
|
308
|
-
"stateMutability": "nonpayable",
|
|
309
|
-
"virtual": false,
|
|
310
|
-
"visibility": "external"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
"anonymous": false,
|
|
314
|
-
"documentation": null,
|
|
315
|
-
"id": 2789,
|
|
316
|
-
"name": "Claim",
|
|
317
|
-
"nodeType": "EventDefinition",
|
|
318
|
-
"parameters": {
|
|
319
|
-
"id": 2788,
|
|
320
|
-
"nodeType": "ParameterList",
|
|
321
|
-
"parameters": [
|
|
322
|
-
{
|
|
323
|
-
"constant": false,
|
|
324
|
-
"id": 2785,
|
|
325
|
-
"indexed": true,
|
|
326
|
-
"mutability": "mutable",
|
|
327
|
-
"name": "account",
|
|
328
|
-
"nodeType": "VariableDeclaration",
|
|
329
|
-
"overrides": null,
|
|
330
|
-
"scope": 2789,
|
|
331
|
-
"src": "115:23:11",
|
|
332
|
-
"stateVariable": false,
|
|
333
|
-
"storageLocation": "default",
|
|
334
|
-
"typeDescriptions": {
|
|
335
|
-
"typeIdentifier": "t_address",
|
|
336
|
-
"typeString": "address"
|
|
337
|
-
},
|
|
338
|
-
"typeName": {
|
|
339
|
-
"id": 2784,
|
|
340
|
-
"name": "address",
|
|
341
|
-
"nodeType": "ElementaryTypeName",
|
|
342
|
-
"src": "115:7:11",
|
|
343
|
-
"stateMutability": "nonpayable",
|
|
344
|
-
"typeDescriptions": {
|
|
345
|
-
"typeIdentifier": "t_address",
|
|
346
|
-
"typeString": "address"
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
"value": null,
|
|
350
|
-
"visibility": "internal"
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
"constant": false,
|
|
354
|
-
"id": 2787,
|
|
355
|
-
"indexed": false,
|
|
356
|
-
"mutability": "mutable",
|
|
357
|
-
"name": "amount",
|
|
358
|
-
"nodeType": "VariableDeclaration",
|
|
359
|
-
"overrides": null,
|
|
360
|
-
"scope": 2789,
|
|
361
|
-
"src": "140:11:11",
|
|
362
|
-
"stateVariable": false,
|
|
363
|
-
"storageLocation": "default",
|
|
364
|
-
"typeDescriptions": {
|
|
365
|
-
"typeIdentifier": "t_uint256",
|
|
366
|
-
"typeString": "uint256"
|
|
367
|
-
},
|
|
368
|
-
"typeName": {
|
|
369
|
-
"id": 2786,
|
|
370
|
-
"name": "uint",
|
|
371
|
-
"nodeType": "ElementaryTypeName",
|
|
372
|
-
"src": "140:4:11",
|
|
373
|
-
"typeDescriptions": {
|
|
374
|
-
"typeIdentifier": "t_uint256",
|
|
375
|
-
"typeString": "uint256"
|
|
376
|
-
}
|
|
377
|
-
},
|
|
378
|
-
"value": null,
|
|
379
|
-
"visibility": "internal"
|
|
380
|
-
}
|
|
381
|
-
],
|
|
382
|
-
"src": "114:38:11"
|
|
383
|
-
},
|
|
384
|
-
"src": "103:50:11"
|
|
385
|
-
}
|
|
386
|
-
],
|
|
387
|
-
"scope": 2791,
|
|
388
|
-
"src": "27:129:11"
|
|
389
|
-
}
|
|
390
|
-
],
|
|
391
|
-
"src": "0:156:11"
|
|
392
|
-
},
|
|
393
|
-
"compiler": {
|
|
394
|
-
"name": "solc",
|
|
395
|
-
"version": "0.6.6+commit.6c089d02.Emscripten.clang"
|
|
396
|
-
},
|
|
397
|
-
"networks": {},
|
|
398
|
-
"schemaVersion": "3.3.2",
|
|
399
|
-
"updatedAt": "2021-03-20T20:28:28.895Z",
|
|
400
|
-
"devdoc": {
|
|
401
|
-
"methods": {}
|
|
402
|
-
},
|
|
403
|
-
"userdoc": {
|
|
404
|
-
"methods": {}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"contractName": "IClaimable",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"anonymous": false,
|
|
6
|
+
"inputs": [
|
|
7
|
+
{
|
|
8
|
+
"indexed": true,
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "account",
|
|
11
|
+
"type": "address"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"indexed": false,
|
|
15
|
+
"internalType": "uint256",
|
|
16
|
+
"name": "amount",
|
|
17
|
+
"type": "uint256"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"name": "Claim",
|
|
21
|
+
"type": "event"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"inputs": [],
|
|
25
|
+
"name": "claim",
|
|
26
|
+
"outputs": [
|
|
27
|
+
{
|
|
28
|
+
"internalType": "uint256",
|
|
29
|
+
"name": "amount",
|
|
30
|
+
"type": "uint256"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"stateMutability": "nonpayable",
|
|
34
|
+
"type": "function"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"metadata": "{\"compiler\":{\"version\":\"0.6.6+commit.6c089d02\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Claim\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"claim\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/C/Users/simor/Desktop/imx/contracts/interfaces/IClaimable.sol\":\"IClaimable\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"/C/Users/simor/Desktop/imx/contracts/interfaces/IClaimable.sol\":{\"keccak256\":\"0x7f94e724893f9450b25342cf35f745a8056d2a7a648a661c49ecba23c3765ddb\",\"urls\":[\"bzz-raw://d4efafed9f7465ce417b331c3832bda372d59224ccd78cc6b24e72c7d349a8fe\",\"dweb:/ipfs/QmPqNxRmjtoxJFVx2vF7ZQrqn5Zy85Ejts9PsAHQMMotjV\"]}},\"version\":1}",
|
|
38
|
+
"bytecode": "0x",
|
|
39
|
+
"deployedBytecode": "0x",
|
|
40
|
+
"immutableReferences": {},
|
|
41
|
+
"sourceMap": "",
|
|
42
|
+
"deployedSourceMap": "",
|
|
43
|
+
"source": "pragma solidity =0.6.6;\r\n\r\ninterface IClaimable {\r\n\tfunction claim() external returns (uint amount);\r\n\tevent Claim(address indexed account, uint amount);\r\n}",
|
|
44
|
+
"sourcePath": "C:\\Users\\simor\\Desktop\\imx\\contracts\\interfaces\\IClaimable.sol",
|
|
45
|
+
"ast": {
|
|
46
|
+
"absolutePath": "/C/Users/simor/Desktop/imx/contracts/interfaces/IClaimable.sol",
|
|
47
|
+
"exportedSymbols": {
|
|
48
|
+
"IClaimable": [
|
|
49
|
+
2790
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"id": 2791,
|
|
53
|
+
"nodeType": "SourceUnit",
|
|
54
|
+
"nodes": [
|
|
55
|
+
{
|
|
56
|
+
"id": 2778,
|
|
57
|
+
"literals": [
|
|
58
|
+
"solidity",
|
|
59
|
+
"=",
|
|
60
|
+
"0.6",
|
|
61
|
+
".6"
|
|
62
|
+
],
|
|
63
|
+
"nodeType": "PragmaDirective",
|
|
64
|
+
"src": "0:23:11"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"abstract": false,
|
|
68
|
+
"baseContracts": [],
|
|
69
|
+
"contractDependencies": [],
|
|
70
|
+
"contractKind": "interface",
|
|
71
|
+
"documentation": null,
|
|
72
|
+
"fullyImplemented": false,
|
|
73
|
+
"id": 2790,
|
|
74
|
+
"linearizedBaseContracts": [
|
|
75
|
+
2790
|
|
76
|
+
],
|
|
77
|
+
"name": "IClaimable",
|
|
78
|
+
"nodeType": "ContractDefinition",
|
|
79
|
+
"nodes": [
|
|
80
|
+
{
|
|
81
|
+
"body": null,
|
|
82
|
+
"documentation": null,
|
|
83
|
+
"functionSelector": "4e71d92d",
|
|
84
|
+
"id": 2783,
|
|
85
|
+
"implemented": false,
|
|
86
|
+
"kind": "function",
|
|
87
|
+
"modifiers": [],
|
|
88
|
+
"name": "claim",
|
|
89
|
+
"nodeType": "FunctionDefinition",
|
|
90
|
+
"overrides": null,
|
|
91
|
+
"parameters": {
|
|
92
|
+
"id": 2779,
|
|
93
|
+
"nodeType": "ParameterList",
|
|
94
|
+
"parameters": [],
|
|
95
|
+
"src": "66:2:11"
|
|
96
|
+
},
|
|
97
|
+
"returnParameters": {
|
|
98
|
+
"id": 2782,
|
|
99
|
+
"nodeType": "ParameterList",
|
|
100
|
+
"parameters": [
|
|
101
|
+
{
|
|
102
|
+
"constant": false,
|
|
103
|
+
"id": 2781,
|
|
104
|
+
"mutability": "mutable",
|
|
105
|
+
"name": "amount",
|
|
106
|
+
"nodeType": "VariableDeclaration",
|
|
107
|
+
"overrides": null,
|
|
108
|
+
"scope": 2783,
|
|
109
|
+
"src": "87:11:11",
|
|
110
|
+
"stateVariable": false,
|
|
111
|
+
"storageLocation": "default",
|
|
112
|
+
"typeDescriptions": {
|
|
113
|
+
"typeIdentifier": "t_uint256",
|
|
114
|
+
"typeString": "uint256"
|
|
115
|
+
},
|
|
116
|
+
"typeName": {
|
|
117
|
+
"id": 2780,
|
|
118
|
+
"name": "uint",
|
|
119
|
+
"nodeType": "ElementaryTypeName",
|
|
120
|
+
"src": "87:4:11",
|
|
121
|
+
"typeDescriptions": {
|
|
122
|
+
"typeIdentifier": "t_uint256",
|
|
123
|
+
"typeString": "uint256"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"value": null,
|
|
127
|
+
"visibility": "internal"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"src": "86:13:11"
|
|
131
|
+
},
|
|
132
|
+
"scope": 2790,
|
|
133
|
+
"src": "52:48:11",
|
|
134
|
+
"stateMutability": "nonpayable",
|
|
135
|
+
"virtual": false,
|
|
136
|
+
"visibility": "external"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"anonymous": false,
|
|
140
|
+
"documentation": null,
|
|
141
|
+
"id": 2789,
|
|
142
|
+
"name": "Claim",
|
|
143
|
+
"nodeType": "EventDefinition",
|
|
144
|
+
"parameters": {
|
|
145
|
+
"id": 2788,
|
|
146
|
+
"nodeType": "ParameterList",
|
|
147
|
+
"parameters": [
|
|
148
|
+
{
|
|
149
|
+
"constant": false,
|
|
150
|
+
"id": 2785,
|
|
151
|
+
"indexed": true,
|
|
152
|
+
"mutability": "mutable",
|
|
153
|
+
"name": "account",
|
|
154
|
+
"nodeType": "VariableDeclaration",
|
|
155
|
+
"overrides": null,
|
|
156
|
+
"scope": 2789,
|
|
157
|
+
"src": "115:23:11",
|
|
158
|
+
"stateVariable": false,
|
|
159
|
+
"storageLocation": "default",
|
|
160
|
+
"typeDescriptions": {
|
|
161
|
+
"typeIdentifier": "t_address",
|
|
162
|
+
"typeString": "address"
|
|
163
|
+
},
|
|
164
|
+
"typeName": {
|
|
165
|
+
"id": 2784,
|
|
166
|
+
"name": "address",
|
|
167
|
+
"nodeType": "ElementaryTypeName",
|
|
168
|
+
"src": "115:7:11",
|
|
169
|
+
"stateMutability": "nonpayable",
|
|
170
|
+
"typeDescriptions": {
|
|
171
|
+
"typeIdentifier": "t_address",
|
|
172
|
+
"typeString": "address"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"value": null,
|
|
176
|
+
"visibility": "internal"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"constant": false,
|
|
180
|
+
"id": 2787,
|
|
181
|
+
"indexed": false,
|
|
182
|
+
"mutability": "mutable",
|
|
183
|
+
"name": "amount",
|
|
184
|
+
"nodeType": "VariableDeclaration",
|
|
185
|
+
"overrides": null,
|
|
186
|
+
"scope": 2789,
|
|
187
|
+
"src": "140:11:11",
|
|
188
|
+
"stateVariable": false,
|
|
189
|
+
"storageLocation": "default",
|
|
190
|
+
"typeDescriptions": {
|
|
191
|
+
"typeIdentifier": "t_uint256",
|
|
192
|
+
"typeString": "uint256"
|
|
193
|
+
},
|
|
194
|
+
"typeName": {
|
|
195
|
+
"id": 2786,
|
|
196
|
+
"name": "uint",
|
|
197
|
+
"nodeType": "ElementaryTypeName",
|
|
198
|
+
"src": "140:4:11",
|
|
199
|
+
"typeDescriptions": {
|
|
200
|
+
"typeIdentifier": "t_uint256",
|
|
201
|
+
"typeString": "uint256"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"value": null,
|
|
205
|
+
"visibility": "internal"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"src": "114:38:11"
|
|
209
|
+
},
|
|
210
|
+
"src": "103:50:11"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"scope": 2791,
|
|
214
|
+
"src": "27:129:11"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"src": "0:156:11"
|
|
218
|
+
},
|
|
219
|
+
"legacyAST": {
|
|
220
|
+
"absolutePath": "/C/Users/simor/Desktop/imx/contracts/interfaces/IClaimable.sol",
|
|
221
|
+
"exportedSymbols": {
|
|
222
|
+
"IClaimable": [
|
|
223
|
+
2790
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
"id": 2791,
|
|
227
|
+
"nodeType": "SourceUnit",
|
|
228
|
+
"nodes": [
|
|
229
|
+
{
|
|
230
|
+
"id": 2778,
|
|
231
|
+
"literals": [
|
|
232
|
+
"solidity",
|
|
233
|
+
"=",
|
|
234
|
+
"0.6",
|
|
235
|
+
".6"
|
|
236
|
+
],
|
|
237
|
+
"nodeType": "PragmaDirective",
|
|
238
|
+
"src": "0:23:11"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"abstract": false,
|
|
242
|
+
"baseContracts": [],
|
|
243
|
+
"contractDependencies": [],
|
|
244
|
+
"contractKind": "interface",
|
|
245
|
+
"documentation": null,
|
|
246
|
+
"fullyImplemented": false,
|
|
247
|
+
"id": 2790,
|
|
248
|
+
"linearizedBaseContracts": [
|
|
249
|
+
2790
|
|
250
|
+
],
|
|
251
|
+
"name": "IClaimable",
|
|
252
|
+
"nodeType": "ContractDefinition",
|
|
253
|
+
"nodes": [
|
|
254
|
+
{
|
|
255
|
+
"body": null,
|
|
256
|
+
"documentation": null,
|
|
257
|
+
"functionSelector": "4e71d92d",
|
|
258
|
+
"id": 2783,
|
|
259
|
+
"implemented": false,
|
|
260
|
+
"kind": "function",
|
|
261
|
+
"modifiers": [],
|
|
262
|
+
"name": "claim",
|
|
263
|
+
"nodeType": "FunctionDefinition",
|
|
264
|
+
"overrides": null,
|
|
265
|
+
"parameters": {
|
|
266
|
+
"id": 2779,
|
|
267
|
+
"nodeType": "ParameterList",
|
|
268
|
+
"parameters": [],
|
|
269
|
+
"src": "66:2:11"
|
|
270
|
+
},
|
|
271
|
+
"returnParameters": {
|
|
272
|
+
"id": 2782,
|
|
273
|
+
"nodeType": "ParameterList",
|
|
274
|
+
"parameters": [
|
|
275
|
+
{
|
|
276
|
+
"constant": false,
|
|
277
|
+
"id": 2781,
|
|
278
|
+
"mutability": "mutable",
|
|
279
|
+
"name": "amount",
|
|
280
|
+
"nodeType": "VariableDeclaration",
|
|
281
|
+
"overrides": null,
|
|
282
|
+
"scope": 2783,
|
|
283
|
+
"src": "87:11:11",
|
|
284
|
+
"stateVariable": false,
|
|
285
|
+
"storageLocation": "default",
|
|
286
|
+
"typeDescriptions": {
|
|
287
|
+
"typeIdentifier": "t_uint256",
|
|
288
|
+
"typeString": "uint256"
|
|
289
|
+
},
|
|
290
|
+
"typeName": {
|
|
291
|
+
"id": 2780,
|
|
292
|
+
"name": "uint",
|
|
293
|
+
"nodeType": "ElementaryTypeName",
|
|
294
|
+
"src": "87:4:11",
|
|
295
|
+
"typeDescriptions": {
|
|
296
|
+
"typeIdentifier": "t_uint256",
|
|
297
|
+
"typeString": "uint256"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"value": null,
|
|
301
|
+
"visibility": "internal"
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
"src": "86:13:11"
|
|
305
|
+
},
|
|
306
|
+
"scope": 2790,
|
|
307
|
+
"src": "52:48:11",
|
|
308
|
+
"stateMutability": "nonpayable",
|
|
309
|
+
"virtual": false,
|
|
310
|
+
"visibility": "external"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"anonymous": false,
|
|
314
|
+
"documentation": null,
|
|
315
|
+
"id": 2789,
|
|
316
|
+
"name": "Claim",
|
|
317
|
+
"nodeType": "EventDefinition",
|
|
318
|
+
"parameters": {
|
|
319
|
+
"id": 2788,
|
|
320
|
+
"nodeType": "ParameterList",
|
|
321
|
+
"parameters": [
|
|
322
|
+
{
|
|
323
|
+
"constant": false,
|
|
324
|
+
"id": 2785,
|
|
325
|
+
"indexed": true,
|
|
326
|
+
"mutability": "mutable",
|
|
327
|
+
"name": "account",
|
|
328
|
+
"nodeType": "VariableDeclaration",
|
|
329
|
+
"overrides": null,
|
|
330
|
+
"scope": 2789,
|
|
331
|
+
"src": "115:23:11",
|
|
332
|
+
"stateVariable": false,
|
|
333
|
+
"storageLocation": "default",
|
|
334
|
+
"typeDescriptions": {
|
|
335
|
+
"typeIdentifier": "t_address",
|
|
336
|
+
"typeString": "address"
|
|
337
|
+
},
|
|
338
|
+
"typeName": {
|
|
339
|
+
"id": 2784,
|
|
340
|
+
"name": "address",
|
|
341
|
+
"nodeType": "ElementaryTypeName",
|
|
342
|
+
"src": "115:7:11",
|
|
343
|
+
"stateMutability": "nonpayable",
|
|
344
|
+
"typeDescriptions": {
|
|
345
|
+
"typeIdentifier": "t_address",
|
|
346
|
+
"typeString": "address"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"value": null,
|
|
350
|
+
"visibility": "internal"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"constant": false,
|
|
354
|
+
"id": 2787,
|
|
355
|
+
"indexed": false,
|
|
356
|
+
"mutability": "mutable",
|
|
357
|
+
"name": "amount",
|
|
358
|
+
"nodeType": "VariableDeclaration",
|
|
359
|
+
"overrides": null,
|
|
360
|
+
"scope": 2789,
|
|
361
|
+
"src": "140:11:11",
|
|
362
|
+
"stateVariable": false,
|
|
363
|
+
"storageLocation": "default",
|
|
364
|
+
"typeDescriptions": {
|
|
365
|
+
"typeIdentifier": "t_uint256",
|
|
366
|
+
"typeString": "uint256"
|
|
367
|
+
},
|
|
368
|
+
"typeName": {
|
|
369
|
+
"id": 2786,
|
|
370
|
+
"name": "uint",
|
|
371
|
+
"nodeType": "ElementaryTypeName",
|
|
372
|
+
"src": "140:4:11",
|
|
373
|
+
"typeDescriptions": {
|
|
374
|
+
"typeIdentifier": "t_uint256",
|
|
375
|
+
"typeString": "uint256"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"value": null,
|
|
379
|
+
"visibility": "internal"
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"src": "114:38:11"
|
|
383
|
+
},
|
|
384
|
+
"src": "103:50:11"
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
"scope": 2791,
|
|
388
|
+
"src": "27:129:11"
|
|
389
|
+
}
|
|
390
|
+
],
|
|
391
|
+
"src": "0:156:11"
|
|
392
|
+
},
|
|
393
|
+
"compiler": {
|
|
394
|
+
"name": "solc",
|
|
395
|
+
"version": "0.6.6+commit.6c089d02.Emscripten.clang"
|
|
396
|
+
},
|
|
397
|
+
"networks": {},
|
|
398
|
+
"schemaVersion": "3.3.2",
|
|
399
|
+
"updatedAt": "2021-03-20T20:28:28.895Z",
|
|
400
|
+
"devdoc": {
|
|
401
|
+
"methods": {}
|
|
402
|
+
},
|
|
403
|
+
"userdoc": {
|
|
404
|
+
"methods": {}
|
|
405
|
+
}
|
|
406
|
+
}
|