@gearbox-protocol/sdk 3.0.0-next.102 → 3.0.0-next.104
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/core/creditManager.d.ts +1 -0
- package/lib/core/creditManager.js +5 -0
- package/lib/core/strategy.d.ts +5 -7
- package/lib/core/strategy.js +4 -6
- package/lib/index.d.ts +1 -3
- package/lib/index.js +1 -3
- package/lib/parsers/ERC20Parser.js +1 -1
- package/lib/parsers/aaveV2LendingPoolAdapterParser.d.ts +7 -0
- package/lib/parsers/aaveV2LendingPoolAdapterParser.js +21 -0
- package/lib/parsers/aaveV2WrappedATokenAdapterParser.d.ts +7 -0
- package/lib/parsers/aaveV2WrappedATokenAdapterParser.js +21 -0
- package/lib/parsers/abstractParser.d.ts +7 -5
- package/lib/parsers/abstractParser.js +3 -0
- package/lib/parsers/addressProviderParser.js +1 -1
- package/lib/parsers/balancerV2VaultParser.d.ts +7 -0
- package/lib/parsers/balancerV2VaultParser.js +34 -0
- package/lib/parsers/compoundV2CTokenAdapterParser.d.ts +7 -0
- package/lib/parsers/compoundV2CTokenAdapterParser.js +21 -0
- package/lib/parsers/convexBaseRewardPoolAdapterParser.js +1 -1
- package/lib/parsers/convexBoosterAdapterParser.js +1 -1
- package/lib/parsers/convextRewardPoolParser.js +1 -1
- package/lib/parsers/creditFacadeParser.js +1 -1
- package/lib/parsers/creditManagerParser.js +1 -1
- package/lib/parsers/curveAdapterParser.js +1 -1
- package/lib/parsers/erc626AdapterParser.d.ts +7 -0
- package/lib/parsers/erc626AdapterParser.js +21 -0
- package/lib/parsers/lidoAdapterParser.js +1 -1
- package/lib/parsers/lidoSTETHParser.js +1 -1
- package/lib/parsers/poolParser.js +1 -1
- package/lib/parsers/priceOracleParser.js +1 -1
- package/lib/parsers/txParser.d.ts +17 -11
- package/lib/parsers/txParser.js +36 -5
- package/lib/parsers/uniV2AdapterParser.js +1 -1
- package/lib/parsers/uniV3AdapterParser.js +1 -1
- package/lib/parsers/wstETHAdapterParser.js +1 -1
- package/lib/parsers/yearnV2AdapterParser.js +1 -1
- package/lib/pathfinder/index.d.ts +4 -0
- package/lib/pathfinder/index.js +20 -0
- package/lib/pathfinder/utils.d.ts +35 -0
- package/lib/pathfinder/utils.js +182 -0
- package/lib/types/contracts/index.d.ts +2 -0
- package/lib/types/contracts/interfaces/IGasPricer.d.ts +44 -0
- package/lib/types/contracts/interfaces/IGasPricer.js +2 -0
- package/lib/types/contracts/interfaces/index.d.ts +1 -0
- package/lib/types/contracts/interfaces/index.js +2 -0
- package/lib/types/factories/AddressProvider__factory.d.ts +111 -111
- package/lib/types/factories/AddressProvider__factory.js +119 -119
- package/lib/types/factories/Balances.sol/BalanceOps__factory.d.ts +3 -3
- package/lib/types/factories/Balances.sol/BalanceOps__factory.js +3 -3
- package/lib/types/factories/CalldataExtractor__factory.d.ts +34 -34
- package/lib/types/factories/CalldataExtractor__factory.js +37 -37
- package/lib/types/factories/Claimable__factory.d.ts +28 -28
- package/lib/types/factories/Claimable__factory.js +32 -32
- package/lib/types/factories/ERC20__factory.d.ts +89 -89
- package/lib/types/factories/ERC20__factory.js +99 -99
- package/lib/types/factories/Errors__factory.d.ts +99 -99
- package/lib/types/factories/Errors__factory.js +99 -99
- package/lib/types/factories/FarmAccounting__factory.d.ts +6 -6
- package/lib/types/factories/FarmAccounting__factory.js +6 -6
- package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.d.ts +42 -42
- package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.js +42 -42
- package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.d.ts +70 -70
- package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.js +70 -70
- package/lib/types/factories/IAdapter__factory.d.ts +15 -15
- package/lib/types/factories/IAdapter__factory.js +15 -15
- package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.d.ts +7 -7
- package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.js +7 -7
- package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.d.ts +48 -48
- package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.js +52 -52
- package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.d.ts +9 -9
- package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.js +9 -9
- package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.d.ts +37 -37
- package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.js +42 -42
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.d.ts +25 -25
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.js +25 -25
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.d.ts +71 -71
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.js +85 -85
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.d.ts +19 -19
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.js +19 -19
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.d.ts +106 -106
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.js +106 -106
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.d.ts +7 -7
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.js +7 -7
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.d.ts +2 -2
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.js +2 -2
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.d.ts +161 -161
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.js +166 -166
- package/lib/types/factories/IBaseRewardPool__factory.d.ts +114 -114
- package/lib/types/factories/IBaseRewardPool__factory.js +114 -114
- package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.d.ts +38 -38
- package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.js +43 -43
- package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.d.ts +152 -152
- package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.js +170 -170
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.d.ts +60 -60
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.js +63 -63
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.d.ts +3 -3
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.js +3 -3
- package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.d.ts +10 -10
- package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.js +10 -10
- package/lib/types/factories/IContractsRegister.sol/IContractsRegister__factory.d.ts +51 -51
- package/lib/types/factories/IContractsRegister.sol/IContractsRegister__factory.js +57 -57
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.d.ts +30 -30
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.js +30 -30
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.d.ts +165 -165
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.js +182 -182
- package/lib/types/factories/IConvexToken__factory.d.ts +86 -86
- package/lib/types/factories/IConvexToken__factory.js +96 -96
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +80 -80
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +80 -80
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.d.ts +7 -7
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.js +7 -7
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts +62 -62
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js +66 -66
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.d.ts +121 -121
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.js +127 -127
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.d.ts +18 -18
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.js +18 -18
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.d.ts +376 -376
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.js +417 -417
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.d.ts +118 -118
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.js +127 -127
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.d.ts +395 -395
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.js +420 -420
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.d.ts +107 -107
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.js +118 -118
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.d.ts +65 -65
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.js +65 -65
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.d.ts +23 -23
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.js +23 -23
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.d.ts +5 -5
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.js +5 -5
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.d.ts +601 -601
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.js +749 -749
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +72 -72
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +80 -80
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +288 -288
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +397 -397
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +59 -59
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +59 -59
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.d.ts +11 -11
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.js +12 -12
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.d.ts +26 -26
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.js +26 -26
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.d.ts +252 -252
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.js +272 -272
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.d.ts +5 -5
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.js +5 -5
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +294 -294
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +297 -297
- package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.d.ts +191 -191
- package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.js +191 -191
- package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.d.ts +191 -191
- package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.js +191 -191
- package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.d.ts +191 -191
- package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.js +191 -191
- package/lib/types/factories/ICurvePool__factory.d.ts +159 -159
- package/lib/types/factories/ICurvePool__factory.js +159 -159
- package/lib/types/factories/ICurveV1Adapter__factory.d.ts +169 -169
- package/lib/types/factories/ICurveV1Adapter__factory.js +169 -169
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.d.ts +187 -187
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.js +187 -187
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.d.ts +187 -187
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.js +187 -187
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.d.ts +187 -187
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.js +187 -187
- package/lib/types/factories/IDaiLikePermit__factory.d.ts +10 -10
- package/lib/types/factories/IDaiLikePermit__factory.js +10 -10
- package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +334 -334
- package/lib/types/factories/IDataCompressorV2_10__factory.js +334 -334
- package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +454 -454
- package/lib/types/factories/IDataCompressorV3_00__factory.js +454 -454
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.d.ts +14 -14
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.js +14 -14
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.d.ts +43 -43
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.js +51 -51
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.d.ts +15 -15
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.js +15 -15
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.d.ts +8 -8
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.js +8 -8
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2__factory.d.ts +180 -180
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2__factory.js +208 -208
- package/lib/types/factories/IERC165__factory.d.ts +4 -4
- package/lib/types/factories/IERC165__factory.js +4 -4
- package/lib/types/factories/IERC20Metadata__factory.d.ts +76 -76
- package/lib/types/factories/IERC20Metadata__factory.js +86 -86
- package/lib/types/factories/IERC20Permit__factory.d.ts +16 -16
- package/lib/types/factories/IERC20Permit__factory.js +16 -16
- package/lib/types/factories/IERC20ZapperDeposits__factory.d.ts +30 -30
- package/lib/types/factories/IERC20ZapperDeposits__factory.js +30 -30
- package/lib/types/factories/IERC20__factory.d.ts +67 -67
- package/lib/types/factories/IERC20__factory.js +77 -77
- package/lib/types/factories/IERC4626Adapter__factory.d.ts +60 -60
- package/lib/types/factories/IERC4626Adapter__factory.js +60 -60
- package/lib/types/factories/IERC4626__factory.d.ts +198 -198
- package/lib/types/factories/IERC4626__factory.js +221 -221
- package/lib/types/factories/IERC721Metadata__factory.d.ts +114 -114
- package/lib/types/factories/IERC721Metadata__factory.js +129 -129
- package/lib/types/factories/IERC721__factory.d.ts +104 -104
- package/lib/types/factories/IERC721__factory.js +119 -119
- package/lib/types/factories/IETHZapperDeposits__factory.d.ts +9 -9
- package/lib/types/factories/IETHZapperDeposits__factory.js +9 -9
- package/lib/types/factories/IFarmingPool__factory.d.ts +134 -134
- package/lib/types/factories/IFarmingPool__factory.js +152 -152
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.d.ts +46 -46
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.js +50 -50
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.d.ts +172 -172
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.js +200 -200
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.d.ts +48 -48
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.js +49 -49
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.d.ts +225 -225
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.js +253 -253
- package/lib/types/factories/IInterestRateModel__factory.d.ts +8 -8
- package/lib/types/factories/IInterestRateModel__factory.js +8 -8
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.d.ts +11 -11
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.js +12 -12
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.d.ts +10 -10
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.js +10 -10
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.d.ts +107 -107
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.js +119 -119
- package/lib/types/factories/ILidoV1Adapter__factory.d.ts +40 -40
- package/lib/types/factories/ILidoV1Adapter__factory.js +40 -40
- package/lib/types/factories/ILinearInterestRateModelV3__factory.d.ts +25 -25
- package/lib/types/factories/ILinearInterestRateModelV3__factory.js +25 -25
- package/lib/types/factories/IOffchainOracle__factory.d.ts +11 -11
- package/lib/types/factories/IOffchainOracle__factory.js +11 -11
- package/lib/types/factories/IPermit2__factory.d.ts +33 -33
- package/lib/types/factories/IPermit2__factory.js +33 -33
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.d.ts +44 -44
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.js +45 -45
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.d.ts +190 -190
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.js +216 -216
- package/lib/types/factories/IPoolService.sol/IPoolServiceEvents__factory.d.ts +66 -66
- package/lib/types/factories/IPoolService.sol/IPoolServiceEvents__factory.js +72 -72
- package/lib/types/factories/IPoolService.sol/IPoolService__factory.d.ts +235 -235
- package/lib/types/factories/IPoolService.sol/IPoolService__factory.js +286 -286
- package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.d.ts +65 -65
- package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.js +68 -68
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.d.ts +574 -574
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.js +696 -696
- package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.d.ts +22 -22
- package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.js +22 -22
- package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.d.ts +28 -28
- package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.js +28 -28
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.d.ts +6 -6
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.js +7 -7
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.d.ts +6 -6
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.js +6 -6
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.d.ts +71 -71
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.js +78 -78
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2__factory.d.ts +68 -68
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2__factory.js +75 -75
- package/lib/types/factories/IPriceOracleBase__factory.d.ts +27 -27
- package/lib/types/factories/IPriceOracleBase__factory.js +27 -27
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.d.ts +28 -28
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.js +31 -31
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.d.ts +139 -139
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.js +156 -156
- package/lib/types/factories/IRouterV3__factory.d.ts +178 -178
- package/lib/types/factories/IRouterV3__factory.js +191 -191
- package/lib/types/factories/IRouter__factory.d.ts +159 -159
- package/lib/types/factories/IRouter__factory.js +172 -172
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.d.ts +8 -8
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.js +9 -9
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.d.ts +2 -2
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.js +2 -2
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.d.ts +78 -78
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +84 -84
- package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.d.ts +50 -50
- package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.js +50 -50
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.d.ts +10 -10
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.js +11 -11
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.d.ts +2 -2
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.js +2 -2
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.d.ts +138 -138
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +145 -145
- package/lib/types/factories/IVersion__factory.d.ts +3 -3
- package/lib/types/factories/IVersion__factory.js +3 -3
- package/lib/types/factories/IVotingContractV3__factory.d.ts +10 -10
- package/lib/types/factories/IVotingContractV3__factory.js +10 -10
- package/lib/types/factories/IWETHGateway__factory.d.ts +14 -14
- package/lib/types/factories/IWETHGateway__factory.js +14 -14
- package/lib/types/factories/IWETH__factory.d.ts +102 -102
- package/lib/types/factories/IWETH__factory.js +120 -120
- package/lib/types/factories/IYVault__factory.d.ts +112 -112
- package/lib/types/factories/IYVault__factory.js +122 -122
- package/lib/types/factories/IYearnV2Adapter__factory.d.ts +63 -63
- package/lib/types/factories/IYearnV2Adapter__factory.js +63 -63
- package/lib/types/factories/IZapperRegister__factory.d.ts +20 -20
- package/lib/types/factories/IZapperRegister__factory.js +22 -22
- package/lib/types/factories/IZapper__factory.d.ts +34 -34
- package/lib/types/factories/IZapper__factory.js +34 -34
- package/lib/types/factories/IstETH.sol/IstETHGetters__factory.d.ts +97 -97
- package/lib/types/factories/IstETH.sol/IstETHGetters__factory.js +107 -107
- package/lib/types/factories/IstETH.sol/IstETH__factory.d.ts +101 -101
- package/lib/types/factories/IstETH.sol/IstETH__factory.js +111 -111
- package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.d.ts +93 -93
- package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.js +103 -103
- package/lib/types/factories/IwstETH.sol/IwstETH__factory.d.ts +101 -101
- package/lib/types/factories/IwstETH.sol/IwstETH__factory.js +111 -111
- package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.d.ts +14 -14
- package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.js +15 -15
- package/lib/types/factories/IwstETHV1Adapter__factory.d.ts +44 -44
- package/lib/types/factories/IwstETHV1Adapter__factory.js +44 -44
- package/lib/types/factories/NumericArrayLib__factory.d.ts +2 -2
- package/lib/types/factories/NumericArrayLib__factory.js +2 -2
- package/lib/types/factories/Ownable__factory.d.ts +23 -23
- package/lib/types/factories/Ownable__factory.js +27 -27
- package/lib/types/factories/RedstoneConstants__factory.d.ts +19 -19
- package/lib/types/factories/RedstoneConstants__factory.js +19 -19
- package/lib/types/factories/RedstoneConsumerBase__factory.d.ts +101 -101
- package/lib/types/factories/RedstoneConsumerBase__factory.js +123 -123
- package/lib/types/factories/RedstoneConsumerNumericBase__factory.d.ts +101 -101
- package/lib/types/factories/RedstoneConsumerNumericBase__factory.js +123 -123
- package/lib/types/factories/RedstoneDefaultsLib__factory.d.ts +8 -8
- package/lib/types/factories/RedstoneDefaultsLib__factory.js +8 -8
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.d.ts +5 -5
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.js +5 -5
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.d.ts +10 -10
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.js +10 -10
- package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.d.ts +193 -193
- package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.js +220 -220
- package/lib/types/factories/SafeERC20__factory.d.ts +14 -14
- package/lib/types/factories/SafeERC20__factory.js +14 -14
- package/lib/types/factories/contracts/index.d.ts +1 -0
- package/lib/types/factories/contracts/index.js +30 -0
- package/lib/types/factories/contracts/interfaces/IGasPricer__factory.d.ts +22 -0
- package/lib/types/factories/contracts/interfaces/index.d.ts +1 -0
- package/lib/types/factories/contracts/interfaces/index.js +8 -0
- package/lib/types/factories/index.d.ts +2 -1
- package/lib/types/factories/index.js +4 -4
- package/lib/types/factories/{IGasPricer__factory.d.ts → interfaces/IGasPricer__factory.d.ts} +5 -5
- package/lib/types/factories/interfaces/IGasPricer__factory.js +38 -0
- package/lib/types/factories/interfaces/index.d.ts +1 -0
- package/lib/types/factories/interfaces/index.js +8 -0
- package/lib/types/index.d.ts +18 -14
- package/lib/types/index.js +25 -25
- package/lib/types/{IGasPricer.d.ts → interfaces/IGasPricer.d.ts} +1 -1
- package/lib/types/interfaces/IGasPricer.js +2 -0
- package/lib/types/interfaces/index.d.ts +1 -0
- package/lib/types/interfaces/index.js +2 -0
- package/package.json +4 -4
- package/lib/types/{IGasPricer.js → contracts/index.js} +0 -0
- package/lib/types/factories/{IGasPricer__factory.js → contracts/interfaces/IGasPricer__factory.js} +4 -4
|
@@ -3,180 +3,180 @@ import type { Provider } from "@ethersproject/providers";
|
|
|
3
3
|
import type { IPriceOracleV2, IPriceOracleV2Interface } from "../../IPriceOracle.sol/IPriceOracleV2";
|
|
4
4
|
export declare class IPriceOracleV2__factory {
|
|
5
5
|
static readonly abi: readonly [{
|
|
6
|
-
readonly
|
|
7
|
-
readonly name: "
|
|
8
|
-
readonly type: "error";
|
|
9
|
-
}, {
|
|
10
|
-
readonly inputs: readonly [];
|
|
11
|
-
readonly name: "PriceOracleNotExistsException";
|
|
12
|
-
readonly type: "error";
|
|
13
|
-
}, {
|
|
14
|
-
readonly inputs: readonly [];
|
|
15
|
-
readonly name: "ZeroPriceException";
|
|
16
|
-
readonly type: "error";
|
|
17
|
-
}, {
|
|
18
|
-
readonly anonymous: false;
|
|
19
|
-
readonly inputs: readonly [{
|
|
20
|
-
readonly indexed: true;
|
|
21
|
-
readonly internalType: "address";
|
|
22
|
-
readonly name: "token";
|
|
23
|
-
readonly type: "address";
|
|
24
|
-
}, {
|
|
25
|
-
readonly indexed: true;
|
|
26
|
-
readonly internalType: "address";
|
|
27
|
-
readonly name: "priceFeed";
|
|
28
|
-
readonly type: "address";
|
|
29
|
-
}];
|
|
30
|
-
readonly name: "NewPriceFeed";
|
|
31
|
-
readonly type: "event";
|
|
32
|
-
}, {
|
|
6
|
+
readonly type: "function";
|
|
7
|
+
readonly name: "convert";
|
|
33
8
|
readonly inputs: readonly [{
|
|
34
|
-
readonly internalType: "uint256";
|
|
35
9
|
readonly name: "amount";
|
|
36
10
|
readonly type: "uint256";
|
|
11
|
+
readonly internalType: "uint256";
|
|
37
12
|
}, {
|
|
38
|
-
readonly internalType: "address";
|
|
39
13
|
readonly name: "tokenFrom";
|
|
40
14
|
readonly type: "address";
|
|
41
|
-
}, {
|
|
42
15
|
readonly internalType: "address";
|
|
16
|
+
}, {
|
|
43
17
|
readonly name: "tokenTo";
|
|
44
18
|
readonly type: "address";
|
|
19
|
+
readonly internalType: "address";
|
|
45
20
|
}];
|
|
46
|
-
readonly name: "convert";
|
|
47
21
|
readonly outputs: readonly [{
|
|
48
|
-
readonly internalType: "uint256";
|
|
49
22
|
readonly name: "";
|
|
50
23
|
readonly type: "uint256";
|
|
24
|
+
readonly internalType: "uint256";
|
|
51
25
|
}];
|
|
52
26
|
readonly stateMutability: "view";
|
|
53
|
-
readonly type: "function";
|
|
54
27
|
}, {
|
|
28
|
+
readonly type: "function";
|
|
29
|
+
readonly name: "convertFromUSD";
|
|
55
30
|
readonly inputs: readonly [{
|
|
56
|
-
readonly internalType: "uint256";
|
|
57
31
|
readonly name: "amount";
|
|
58
32
|
readonly type: "uint256";
|
|
33
|
+
readonly internalType: "uint256";
|
|
59
34
|
}, {
|
|
60
|
-
readonly internalType: "address";
|
|
61
35
|
readonly name: "token";
|
|
62
36
|
readonly type: "address";
|
|
37
|
+
readonly internalType: "address";
|
|
63
38
|
}];
|
|
64
|
-
readonly name: "convertFromUSD";
|
|
65
39
|
readonly outputs: readonly [{
|
|
66
|
-
readonly internalType: "uint256";
|
|
67
40
|
readonly name: "";
|
|
68
41
|
readonly type: "uint256";
|
|
42
|
+
readonly internalType: "uint256";
|
|
69
43
|
}];
|
|
70
44
|
readonly stateMutability: "view";
|
|
71
|
-
readonly type: "function";
|
|
72
45
|
}, {
|
|
46
|
+
readonly type: "function";
|
|
47
|
+
readonly name: "convertToUSD";
|
|
73
48
|
readonly inputs: readonly [{
|
|
74
|
-
readonly internalType: "uint256";
|
|
75
49
|
readonly name: "amount";
|
|
76
50
|
readonly type: "uint256";
|
|
51
|
+
readonly internalType: "uint256";
|
|
77
52
|
}, {
|
|
78
|
-
readonly internalType: "address";
|
|
79
53
|
readonly name: "token";
|
|
80
54
|
readonly type: "address";
|
|
55
|
+
readonly internalType: "address";
|
|
81
56
|
}];
|
|
82
|
-
readonly name: "convertToUSD";
|
|
83
57
|
readonly outputs: readonly [{
|
|
84
|
-
readonly internalType: "uint256";
|
|
85
58
|
readonly name: "";
|
|
86
59
|
readonly type: "uint256";
|
|
60
|
+
readonly internalType: "uint256";
|
|
87
61
|
}];
|
|
88
62
|
readonly stateMutability: "view";
|
|
89
|
-
readonly type: "function";
|
|
90
63
|
}, {
|
|
64
|
+
readonly type: "function";
|
|
65
|
+
readonly name: "fastCheck";
|
|
91
66
|
readonly inputs: readonly [{
|
|
92
|
-
readonly internalType: "uint256";
|
|
93
67
|
readonly name: "amountFrom";
|
|
94
68
|
readonly type: "uint256";
|
|
69
|
+
readonly internalType: "uint256";
|
|
95
70
|
}, {
|
|
96
|
-
readonly internalType: "address";
|
|
97
71
|
readonly name: "tokenFrom";
|
|
98
72
|
readonly type: "address";
|
|
73
|
+
readonly internalType: "address";
|
|
99
74
|
}, {
|
|
100
|
-
readonly internalType: "uint256";
|
|
101
75
|
readonly name: "amountTo";
|
|
102
76
|
readonly type: "uint256";
|
|
77
|
+
readonly internalType: "uint256";
|
|
103
78
|
}, {
|
|
104
|
-
readonly internalType: "address";
|
|
105
79
|
readonly name: "tokenTo";
|
|
106
80
|
readonly type: "address";
|
|
81
|
+
readonly internalType: "address";
|
|
107
82
|
}];
|
|
108
|
-
readonly name: "fastCheck";
|
|
109
83
|
readonly outputs: readonly [{
|
|
110
|
-
readonly internalType: "uint256";
|
|
111
84
|
readonly name: "collateralFrom";
|
|
112
85
|
readonly type: "uint256";
|
|
113
|
-
}, {
|
|
114
86
|
readonly internalType: "uint256";
|
|
87
|
+
}, {
|
|
115
88
|
readonly name: "collateralTo";
|
|
116
89
|
readonly type: "uint256";
|
|
90
|
+
readonly internalType: "uint256";
|
|
117
91
|
}];
|
|
118
92
|
readonly stateMutability: "view";
|
|
119
|
-
readonly type: "function";
|
|
120
93
|
}, {
|
|
94
|
+
readonly type: "function";
|
|
95
|
+
readonly name: "getPrice";
|
|
121
96
|
readonly inputs: readonly [{
|
|
122
|
-
readonly internalType: "address";
|
|
123
97
|
readonly name: "token";
|
|
124
98
|
readonly type: "address";
|
|
99
|
+
readonly internalType: "address";
|
|
125
100
|
}];
|
|
126
|
-
readonly name: "getPrice";
|
|
127
101
|
readonly outputs: readonly [{
|
|
128
|
-
readonly internalType: "uint256";
|
|
129
102
|
readonly name: "";
|
|
130
103
|
readonly type: "uint256";
|
|
104
|
+
readonly internalType: "uint256";
|
|
131
105
|
}];
|
|
132
106
|
readonly stateMutability: "view";
|
|
133
|
-
readonly type: "function";
|
|
134
107
|
}, {
|
|
108
|
+
readonly type: "function";
|
|
109
|
+
readonly name: "priceFeeds";
|
|
135
110
|
readonly inputs: readonly [{
|
|
136
|
-
readonly internalType: "address";
|
|
137
111
|
readonly name: "token";
|
|
138
112
|
readonly type: "address";
|
|
113
|
+
readonly internalType: "address";
|
|
139
114
|
}];
|
|
140
|
-
readonly name: "priceFeeds";
|
|
141
115
|
readonly outputs: readonly [{
|
|
142
|
-
readonly internalType: "address";
|
|
143
116
|
readonly name: "priceFeed";
|
|
144
117
|
readonly type: "address";
|
|
118
|
+
readonly internalType: "address";
|
|
145
119
|
}];
|
|
146
120
|
readonly stateMutability: "view";
|
|
147
|
-
readonly type: "function";
|
|
148
121
|
}, {
|
|
122
|
+
readonly type: "function";
|
|
123
|
+
readonly name: "priceFeedsWithFlags";
|
|
149
124
|
readonly inputs: readonly [{
|
|
150
|
-
readonly internalType: "address";
|
|
151
125
|
readonly name: "token";
|
|
152
126
|
readonly type: "address";
|
|
127
|
+
readonly internalType: "address";
|
|
153
128
|
}];
|
|
154
|
-
readonly name: "priceFeedsWithFlags";
|
|
155
129
|
readonly outputs: readonly [{
|
|
156
|
-
readonly internalType: "address";
|
|
157
130
|
readonly name: "priceFeed";
|
|
158
131
|
readonly type: "address";
|
|
132
|
+
readonly internalType: "address";
|
|
159
133
|
}, {
|
|
160
|
-
readonly internalType: "bool";
|
|
161
134
|
readonly name: "skipCheck";
|
|
162
135
|
readonly type: "bool";
|
|
136
|
+
readonly internalType: "bool";
|
|
163
137
|
}, {
|
|
164
|
-
readonly internalType: "uint256";
|
|
165
138
|
readonly name: "decimals";
|
|
166
139
|
readonly type: "uint256";
|
|
140
|
+
readonly internalType: "uint256";
|
|
167
141
|
}];
|
|
168
142
|
readonly stateMutability: "view";
|
|
169
|
-
readonly type: "function";
|
|
170
143
|
}, {
|
|
171
|
-
readonly
|
|
144
|
+
readonly type: "function";
|
|
172
145
|
readonly name: "version";
|
|
146
|
+
readonly inputs: readonly [];
|
|
173
147
|
readonly outputs: readonly [{
|
|
174
|
-
readonly internalType: "uint256";
|
|
175
148
|
readonly name: "";
|
|
176
149
|
readonly type: "uint256";
|
|
150
|
+
readonly internalType: "uint256";
|
|
177
151
|
}];
|
|
178
152
|
readonly stateMutability: "view";
|
|
179
|
-
|
|
153
|
+
}, {
|
|
154
|
+
readonly type: "event";
|
|
155
|
+
readonly name: "NewPriceFeed";
|
|
156
|
+
readonly inputs: readonly [{
|
|
157
|
+
readonly name: "token";
|
|
158
|
+
readonly type: "address";
|
|
159
|
+
readonly indexed: true;
|
|
160
|
+
readonly internalType: "address";
|
|
161
|
+
}, {
|
|
162
|
+
readonly name: "priceFeed";
|
|
163
|
+
readonly type: "address";
|
|
164
|
+
readonly indexed: true;
|
|
165
|
+
readonly internalType: "address";
|
|
166
|
+
}];
|
|
167
|
+
readonly anonymous: false;
|
|
168
|
+
}, {
|
|
169
|
+
readonly type: "error";
|
|
170
|
+
readonly name: "ChainPriceStaleException";
|
|
171
|
+
readonly inputs: readonly [];
|
|
172
|
+
}, {
|
|
173
|
+
readonly type: "error";
|
|
174
|
+
readonly name: "PriceOracleNotExistsException";
|
|
175
|
+
readonly inputs: readonly [];
|
|
176
|
+
}, {
|
|
177
|
+
readonly type: "error";
|
|
178
|
+
readonly name: "ZeroPriceException";
|
|
179
|
+
readonly inputs: readonly [];
|
|
180
180
|
}];
|
|
181
181
|
static createInterface(): IPriceOracleV2Interface;
|
|
182
182
|
static connect(address: string, signerOrProvider: Signer | Provider): IPriceOracleV2;
|
|
@@ -7,234 +7,234 @@ exports.IPriceOracleV2__factory = void 0;
|
|
|
7
7
|
const ethers_1 = require("ethers");
|
|
8
8
|
const _abi = [
|
|
9
9
|
{
|
|
10
|
-
|
|
11
|
-
name: "
|
|
12
|
-
type: "error",
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
inputs: [],
|
|
16
|
-
name: "PriceOracleNotExistsException",
|
|
17
|
-
type: "error",
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
inputs: [],
|
|
21
|
-
name: "ZeroPriceException",
|
|
22
|
-
type: "error",
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
anonymous: false,
|
|
26
|
-
inputs: [
|
|
27
|
-
{
|
|
28
|
-
indexed: true,
|
|
29
|
-
internalType: "address",
|
|
30
|
-
name: "token",
|
|
31
|
-
type: "address",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
indexed: true,
|
|
35
|
-
internalType: "address",
|
|
36
|
-
name: "priceFeed",
|
|
37
|
-
type: "address",
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
name: "NewPriceFeed",
|
|
41
|
-
type: "event",
|
|
42
|
-
},
|
|
43
|
-
{
|
|
10
|
+
type: "function",
|
|
11
|
+
name: "convert",
|
|
44
12
|
inputs: [
|
|
45
13
|
{
|
|
46
|
-
internalType: "uint256",
|
|
47
14
|
name: "amount",
|
|
48
15
|
type: "uint256",
|
|
16
|
+
internalType: "uint256",
|
|
49
17
|
},
|
|
50
18
|
{
|
|
51
|
-
internalType: "address",
|
|
52
19
|
name: "tokenFrom",
|
|
53
20
|
type: "address",
|
|
21
|
+
internalType: "address",
|
|
54
22
|
},
|
|
55
23
|
{
|
|
56
|
-
internalType: "address",
|
|
57
24
|
name: "tokenTo",
|
|
58
25
|
type: "address",
|
|
26
|
+
internalType: "address",
|
|
59
27
|
},
|
|
60
28
|
],
|
|
61
|
-
name: "convert",
|
|
62
29
|
outputs: [
|
|
63
30
|
{
|
|
64
|
-
internalType: "uint256",
|
|
65
31
|
name: "",
|
|
66
32
|
type: "uint256",
|
|
33
|
+
internalType: "uint256",
|
|
67
34
|
},
|
|
68
35
|
],
|
|
69
36
|
stateMutability: "view",
|
|
70
|
-
type: "function",
|
|
71
37
|
},
|
|
72
38
|
{
|
|
39
|
+
type: "function",
|
|
40
|
+
name: "convertFromUSD",
|
|
73
41
|
inputs: [
|
|
74
42
|
{
|
|
75
|
-
internalType: "uint256",
|
|
76
43
|
name: "amount",
|
|
77
44
|
type: "uint256",
|
|
45
|
+
internalType: "uint256",
|
|
78
46
|
},
|
|
79
47
|
{
|
|
80
|
-
internalType: "address",
|
|
81
48
|
name: "token",
|
|
82
49
|
type: "address",
|
|
50
|
+
internalType: "address",
|
|
83
51
|
},
|
|
84
52
|
],
|
|
85
|
-
name: "convertFromUSD",
|
|
86
53
|
outputs: [
|
|
87
54
|
{
|
|
88
|
-
internalType: "uint256",
|
|
89
55
|
name: "",
|
|
90
56
|
type: "uint256",
|
|
57
|
+
internalType: "uint256",
|
|
91
58
|
},
|
|
92
59
|
],
|
|
93
60
|
stateMutability: "view",
|
|
94
|
-
type: "function",
|
|
95
61
|
},
|
|
96
62
|
{
|
|
63
|
+
type: "function",
|
|
64
|
+
name: "convertToUSD",
|
|
97
65
|
inputs: [
|
|
98
66
|
{
|
|
99
|
-
internalType: "uint256",
|
|
100
67
|
name: "amount",
|
|
101
68
|
type: "uint256",
|
|
69
|
+
internalType: "uint256",
|
|
102
70
|
},
|
|
103
71
|
{
|
|
104
|
-
internalType: "address",
|
|
105
72
|
name: "token",
|
|
106
73
|
type: "address",
|
|
74
|
+
internalType: "address",
|
|
107
75
|
},
|
|
108
76
|
],
|
|
109
|
-
name: "convertToUSD",
|
|
110
77
|
outputs: [
|
|
111
78
|
{
|
|
112
|
-
internalType: "uint256",
|
|
113
79
|
name: "",
|
|
114
80
|
type: "uint256",
|
|
81
|
+
internalType: "uint256",
|
|
115
82
|
},
|
|
116
83
|
],
|
|
117
84
|
stateMutability: "view",
|
|
118
|
-
type: "function",
|
|
119
85
|
},
|
|
120
86
|
{
|
|
87
|
+
type: "function",
|
|
88
|
+
name: "fastCheck",
|
|
121
89
|
inputs: [
|
|
122
90
|
{
|
|
123
|
-
internalType: "uint256",
|
|
124
91
|
name: "amountFrom",
|
|
125
92
|
type: "uint256",
|
|
93
|
+
internalType: "uint256",
|
|
126
94
|
},
|
|
127
95
|
{
|
|
128
|
-
internalType: "address",
|
|
129
96
|
name: "tokenFrom",
|
|
130
97
|
type: "address",
|
|
98
|
+
internalType: "address",
|
|
131
99
|
},
|
|
132
100
|
{
|
|
133
|
-
internalType: "uint256",
|
|
134
101
|
name: "amountTo",
|
|
135
102
|
type: "uint256",
|
|
103
|
+
internalType: "uint256",
|
|
136
104
|
},
|
|
137
105
|
{
|
|
138
|
-
internalType: "address",
|
|
139
106
|
name: "tokenTo",
|
|
140
107
|
type: "address",
|
|
108
|
+
internalType: "address",
|
|
141
109
|
},
|
|
142
110
|
],
|
|
143
|
-
name: "fastCheck",
|
|
144
111
|
outputs: [
|
|
145
112
|
{
|
|
146
|
-
internalType: "uint256",
|
|
147
113
|
name: "collateralFrom",
|
|
148
114
|
type: "uint256",
|
|
115
|
+
internalType: "uint256",
|
|
149
116
|
},
|
|
150
117
|
{
|
|
151
|
-
internalType: "uint256",
|
|
152
118
|
name: "collateralTo",
|
|
153
119
|
type: "uint256",
|
|
120
|
+
internalType: "uint256",
|
|
154
121
|
},
|
|
155
122
|
],
|
|
156
123
|
stateMutability: "view",
|
|
157
|
-
type: "function",
|
|
158
124
|
},
|
|
159
125
|
{
|
|
126
|
+
type: "function",
|
|
127
|
+
name: "getPrice",
|
|
160
128
|
inputs: [
|
|
161
129
|
{
|
|
162
|
-
internalType: "address",
|
|
163
130
|
name: "token",
|
|
164
131
|
type: "address",
|
|
132
|
+
internalType: "address",
|
|
165
133
|
},
|
|
166
134
|
],
|
|
167
|
-
name: "getPrice",
|
|
168
135
|
outputs: [
|
|
169
136
|
{
|
|
170
|
-
internalType: "uint256",
|
|
171
137
|
name: "",
|
|
172
138
|
type: "uint256",
|
|
139
|
+
internalType: "uint256",
|
|
173
140
|
},
|
|
174
141
|
],
|
|
175
142
|
stateMutability: "view",
|
|
176
|
-
type: "function",
|
|
177
143
|
},
|
|
178
144
|
{
|
|
145
|
+
type: "function",
|
|
146
|
+
name: "priceFeeds",
|
|
179
147
|
inputs: [
|
|
180
148
|
{
|
|
181
|
-
internalType: "address",
|
|
182
149
|
name: "token",
|
|
183
150
|
type: "address",
|
|
151
|
+
internalType: "address",
|
|
184
152
|
},
|
|
185
153
|
],
|
|
186
|
-
name: "priceFeeds",
|
|
187
154
|
outputs: [
|
|
188
155
|
{
|
|
189
|
-
internalType: "address",
|
|
190
156
|
name: "priceFeed",
|
|
191
157
|
type: "address",
|
|
158
|
+
internalType: "address",
|
|
192
159
|
},
|
|
193
160
|
],
|
|
194
161
|
stateMutability: "view",
|
|
195
|
-
type: "function",
|
|
196
162
|
},
|
|
197
163
|
{
|
|
164
|
+
type: "function",
|
|
165
|
+
name: "priceFeedsWithFlags",
|
|
198
166
|
inputs: [
|
|
199
167
|
{
|
|
200
|
-
internalType: "address",
|
|
201
168
|
name: "token",
|
|
202
169
|
type: "address",
|
|
170
|
+
internalType: "address",
|
|
203
171
|
},
|
|
204
172
|
],
|
|
205
|
-
name: "priceFeedsWithFlags",
|
|
206
173
|
outputs: [
|
|
207
174
|
{
|
|
208
|
-
internalType: "address",
|
|
209
175
|
name: "priceFeed",
|
|
210
176
|
type: "address",
|
|
177
|
+
internalType: "address",
|
|
211
178
|
},
|
|
212
179
|
{
|
|
213
|
-
internalType: "bool",
|
|
214
180
|
name: "skipCheck",
|
|
215
181
|
type: "bool",
|
|
182
|
+
internalType: "bool",
|
|
216
183
|
},
|
|
217
184
|
{
|
|
218
|
-
internalType: "uint256",
|
|
219
185
|
name: "decimals",
|
|
220
186
|
type: "uint256",
|
|
187
|
+
internalType: "uint256",
|
|
221
188
|
},
|
|
222
189
|
],
|
|
223
190
|
stateMutability: "view",
|
|
224
|
-
type: "function",
|
|
225
191
|
},
|
|
226
192
|
{
|
|
227
|
-
|
|
193
|
+
type: "function",
|
|
228
194
|
name: "version",
|
|
195
|
+
inputs: [],
|
|
229
196
|
outputs: [
|
|
230
197
|
{
|
|
231
|
-
internalType: "uint256",
|
|
232
198
|
name: "",
|
|
233
199
|
type: "uint256",
|
|
200
|
+
internalType: "uint256",
|
|
234
201
|
},
|
|
235
202
|
],
|
|
236
203
|
stateMutability: "view",
|
|
237
|
-
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
type: "event",
|
|
207
|
+
name: "NewPriceFeed",
|
|
208
|
+
inputs: [
|
|
209
|
+
{
|
|
210
|
+
name: "token",
|
|
211
|
+
type: "address",
|
|
212
|
+
indexed: true,
|
|
213
|
+
internalType: "address",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: "priceFeed",
|
|
217
|
+
type: "address",
|
|
218
|
+
indexed: true,
|
|
219
|
+
internalType: "address",
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
anonymous: false,
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
type: "error",
|
|
226
|
+
name: "ChainPriceStaleException",
|
|
227
|
+
inputs: [],
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
type: "error",
|
|
231
|
+
name: "PriceOracleNotExistsException",
|
|
232
|
+
inputs: [],
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
type: "error",
|
|
236
|
+
name: "ZeroPriceException",
|
|
237
|
+
inputs: [],
|
|
238
238
|
},
|
|
239
239
|
];
|
|
240
240
|
class IPriceOracleV2__factory {
|
|
@@ -3,101 +3,101 @@ import type { Provider } from "@ethersproject/providers";
|
|
|
3
3
|
import type { IPriceOracleBase, IPriceOracleBaseInterface } from "../IPriceOracleBase";
|
|
4
4
|
export declare class IPriceOracleBase__factory {
|
|
5
5
|
static readonly abi: readonly [{
|
|
6
|
+
readonly type: "function";
|
|
7
|
+
readonly name: "convert";
|
|
6
8
|
readonly inputs: readonly [{
|
|
7
|
-
readonly internalType: "uint256";
|
|
8
9
|
readonly name: "amount";
|
|
9
10
|
readonly type: "uint256";
|
|
11
|
+
readonly internalType: "uint256";
|
|
10
12
|
}, {
|
|
11
|
-
readonly internalType: "address";
|
|
12
13
|
readonly name: "tokenFrom";
|
|
13
14
|
readonly type: "address";
|
|
14
|
-
}, {
|
|
15
15
|
readonly internalType: "address";
|
|
16
|
+
}, {
|
|
16
17
|
readonly name: "tokenTo";
|
|
17
18
|
readonly type: "address";
|
|
19
|
+
readonly internalType: "address";
|
|
18
20
|
}];
|
|
19
|
-
readonly name: "convert";
|
|
20
21
|
readonly outputs: readonly [{
|
|
21
|
-
readonly internalType: "uint256";
|
|
22
22
|
readonly name: "";
|
|
23
23
|
readonly type: "uint256";
|
|
24
|
+
readonly internalType: "uint256";
|
|
24
25
|
}];
|
|
25
26
|
readonly stateMutability: "view";
|
|
26
|
-
readonly type: "function";
|
|
27
27
|
}, {
|
|
28
|
+
readonly type: "function";
|
|
29
|
+
readonly name: "convertFromUSD";
|
|
28
30
|
readonly inputs: readonly [{
|
|
29
|
-
readonly internalType: "uint256";
|
|
30
31
|
readonly name: "amount";
|
|
31
32
|
readonly type: "uint256";
|
|
33
|
+
readonly internalType: "uint256";
|
|
32
34
|
}, {
|
|
33
|
-
readonly internalType: "address";
|
|
34
35
|
readonly name: "token";
|
|
35
36
|
readonly type: "address";
|
|
37
|
+
readonly internalType: "address";
|
|
36
38
|
}];
|
|
37
|
-
readonly name: "convertFromUSD";
|
|
38
39
|
readonly outputs: readonly [{
|
|
39
|
-
readonly internalType: "uint256";
|
|
40
40
|
readonly name: "";
|
|
41
41
|
readonly type: "uint256";
|
|
42
|
+
readonly internalType: "uint256";
|
|
42
43
|
}];
|
|
43
44
|
readonly stateMutability: "view";
|
|
44
|
-
readonly type: "function";
|
|
45
45
|
}, {
|
|
46
|
+
readonly type: "function";
|
|
47
|
+
readonly name: "convertToUSD";
|
|
46
48
|
readonly inputs: readonly [{
|
|
47
|
-
readonly internalType: "uint256";
|
|
48
49
|
readonly name: "amount";
|
|
49
50
|
readonly type: "uint256";
|
|
51
|
+
readonly internalType: "uint256";
|
|
50
52
|
}, {
|
|
51
|
-
readonly internalType: "address";
|
|
52
53
|
readonly name: "token";
|
|
53
54
|
readonly type: "address";
|
|
55
|
+
readonly internalType: "address";
|
|
54
56
|
}];
|
|
55
|
-
readonly name: "convertToUSD";
|
|
56
57
|
readonly outputs: readonly [{
|
|
57
|
-
readonly internalType: "uint256";
|
|
58
58
|
readonly name: "";
|
|
59
59
|
readonly type: "uint256";
|
|
60
|
+
readonly internalType: "uint256";
|
|
60
61
|
}];
|
|
61
62
|
readonly stateMutability: "view";
|
|
62
|
-
readonly type: "function";
|
|
63
63
|
}, {
|
|
64
|
+
readonly type: "function";
|
|
65
|
+
readonly name: "getPrice";
|
|
64
66
|
readonly inputs: readonly [{
|
|
65
|
-
readonly internalType: "address";
|
|
66
67
|
readonly name: "token";
|
|
67
68
|
readonly type: "address";
|
|
69
|
+
readonly internalType: "address";
|
|
68
70
|
}];
|
|
69
|
-
readonly name: "getPrice";
|
|
70
71
|
readonly outputs: readonly [{
|
|
71
|
-
readonly internalType: "uint256";
|
|
72
72
|
readonly name: "";
|
|
73
73
|
readonly type: "uint256";
|
|
74
|
+
readonly internalType: "uint256";
|
|
74
75
|
}];
|
|
75
76
|
readonly stateMutability: "view";
|
|
76
|
-
readonly type: "function";
|
|
77
77
|
}, {
|
|
78
|
+
readonly type: "function";
|
|
79
|
+
readonly name: "priceFeeds";
|
|
78
80
|
readonly inputs: readonly [{
|
|
79
|
-
readonly internalType: "address";
|
|
80
81
|
readonly name: "token";
|
|
81
82
|
readonly type: "address";
|
|
83
|
+
readonly internalType: "address";
|
|
82
84
|
}];
|
|
83
|
-
readonly name: "priceFeeds";
|
|
84
85
|
readonly outputs: readonly [{
|
|
85
|
-
readonly internalType: "address";
|
|
86
86
|
readonly name: "priceFeed";
|
|
87
87
|
readonly type: "address";
|
|
88
|
+
readonly internalType: "address";
|
|
88
89
|
}];
|
|
89
90
|
readonly stateMutability: "view";
|
|
90
|
-
readonly type: "function";
|
|
91
91
|
}, {
|
|
92
|
-
readonly
|
|
92
|
+
readonly type: "function";
|
|
93
93
|
readonly name: "version";
|
|
94
|
+
readonly inputs: readonly [];
|
|
94
95
|
readonly outputs: readonly [{
|
|
95
|
-
readonly internalType: "uint256";
|
|
96
96
|
readonly name: "";
|
|
97
97
|
readonly type: "uint256";
|
|
98
|
+
readonly internalType: "uint256";
|
|
98
99
|
}];
|
|
99
100
|
readonly stateMutability: "view";
|
|
100
|
-
readonly type: "function";
|
|
101
101
|
}];
|
|
102
102
|
static createInterface(): IPriceOracleBaseInterface;
|
|
103
103
|
static connect(address: string, signerOrProvider: Signer | Provider): IPriceOracleBase;
|