@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
|
@@ -7,700 +7,700 @@ exports.ICreditFacadeV3__factory = void 0;
|
|
|
7
7
|
const ethers_1 = require("ethers");
|
|
8
8
|
const _abi = [
|
|
9
9
|
{
|
|
10
|
-
|
|
11
|
-
inputs: [
|
|
12
|
-
{
|
|
13
|
-
indexed: true,
|
|
14
|
-
internalType: "address",
|
|
15
|
-
name: "creditAccount",
|
|
16
|
-
type: "address",
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
indexed: true,
|
|
20
|
-
internalType: "address",
|
|
21
|
-
name: "token",
|
|
22
|
-
type: "address",
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
indexed: false,
|
|
26
|
-
internalType: "uint256",
|
|
27
|
-
name: "amount",
|
|
28
|
-
type: "uint256",
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
name: "AddCollateral",
|
|
32
|
-
type: "event",
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
anonymous: false,
|
|
36
|
-
inputs: [
|
|
37
|
-
{
|
|
38
|
-
indexed: true,
|
|
39
|
-
internalType: "address",
|
|
40
|
-
name: "creditAccount",
|
|
41
|
-
type: "address",
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
indexed: true,
|
|
45
|
-
internalType: "address",
|
|
46
|
-
name: "borrower",
|
|
47
|
-
type: "address",
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
name: "CloseCreditAccount",
|
|
51
|
-
type: "event",
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
anonymous: false,
|
|
55
|
-
inputs: [
|
|
56
|
-
{
|
|
57
|
-
indexed: true,
|
|
58
|
-
internalType: "address",
|
|
59
|
-
name: "creditAccount",
|
|
60
|
-
type: "address",
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
indexed: false,
|
|
64
|
-
internalType: "uint256",
|
|
65
|
-
name: "amount",
|
|
66
|
-
type: "uint256",
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
name: "DecreaseDebt",
|
|
70
|
-
type: "event",
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
anonymous: false,
|
|
74
|
-
inputs: [
|
|
75
|
-
{
|
|
76
|
-
indexed: true,
|
|
77
|
-
internalType: "address",
|
|
78
|
-
name: "creditAccount",
|
|
79
|
-
type: "address",
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
indexed: true,
|
|
83
|
-
internalType: "address",
|
|
84
|
-
name: "targetContract",
|
|
85
|
-
type: "address",
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
name: "Execute",
|
|
89
|
-
type: "event",
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
anonymous: false,
|
|
93
|
-
inputs: [],
|
|
94
|
-
name: "FinishMultiCall",
|
|
95
|
-
type: "event",
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
anonymous: false,
|
|
99
|
-
inputs: [
|
|
100
|
-
{
|
|
101
|
-
indexed: true,
|
|
102
|
-
internalType: "address",
|
|
103
|
-
name: "creditAccount",
|
|
104
|
-
type: "address",
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
indexed: false,
|
|
108
|
-
internalType: "uint256",
|
|
109
|
-
name: "amount",
|
|
110
|
-
type: "uint256",
|
|
111
|
-
},
|
|
112
|
-
],
|
|
113
|
-
name: "IncreaseDebt",
|
|
114
|
-
type: "event",
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
anonymous: false,
|
|
118
|
-
inputs: [
|
|
119
|
-
{
|
|
120
|
-
indexed: true,
|
|
121
|
-
internalType: "address",
|
|
122
|
-
name: "creditAccount",
|
|
123
|
-
type: "address",
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
indexed: true,
|
|
127
|
-
internalType: "address",
|
|
128
|
-
name: "liquidator",
|
|
129
|
-
type: "address",
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
indexed: false,
|
|
133
|
-
internalType: "address",
|
|
134
|
-
name: "to",
|
|
135
|
-
type: "address",
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
indexed: false,
|
|
139
|
-
internalType: "uint256",
|
|
140
|
-
name: "remainingFunds",
|
|
141
|
-
type: "uint256",
|
|
142
|
-
},
|
|
143
|
-
],
|
|
144
|
-
name: "LiquidateCreditAccount",
|
|
145
|
-
type: "event",
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
anonymous: false,
|
|
149
|
-
inputs: [
|
|
150
|
-
{
|
|
151
|
-
indexed: true,
|
|
152
|
-
internalType: "address",
|
|
153
|
-
name: "creditAccount",
|
|
154
|
-
type: "address",
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
indexed: true,
|
|
158
|
-
internalType: "address",
|
|
159
|
-
name: "onBehalfOf",
|
|
160
|
-
type: "address",
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
indexed: true,
|
|
164
|
-
internalType: "address",
|
|
165
|
-
name: "caller",
|
|
166
|
-
type: "address",
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
indexed: false,
|
|
170
|
-
internalType: "uint256",
|
|
171
|
-
name: "referralCode",
|
|
172
|
-
type: "uint256",
|
|
173
|
-
},
|
|
174
|
-
],
|
|
175
|
-
name: "OpenCreditAccount",
|
|
176
|
-
type: "event",
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
anonymous: false,
|
|
180
|
-
inputs: [
|
|
181
|
-
{
|
|
182
|
-
indexed: true,
|
|
183
|
-
internalType: "address",
|
|
184
|
-
name: "creditAccount",
|
|
185
|
-
type: "address",
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
indexed: true,
|
|
189
|
-
internalType: "address",
|
|
190
|
-
name: "caller",
|
|
191
|
-
type: "address",
|
|
192
|
-
},
|
|
193
|
-
],
|
|
194
|
-
name: "StartMultiCall",
|
|
195
|
-
type: "event",
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
anonymous: false,
|
|
199
|
-
inputs: [
|
|
200
|
-
{
|
|
201
|
-
indexed: true,
|
|
202
|
-
internalType: "address",
|
|
203
|
-
name: "creditAccount",
|
|
204
|
-
type: "address",
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
indexed: true,
|
|
208
|
-
internalType: "address",
|
|
209
|
-
name: "token",
|
|
210
|
-
type: "address",
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
indexed: false,
|
|
214
|
-
internalType: "uint256",
|
|
215
|
-
name: "amount",
|
|
216
|
-
type: "uint256",
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
indexed: false,
|
|
220
|
-
internalType: "address",
|
|
221
|
-
name: "to",
|
|
222
|
-
type: "address",
|
|
223
|
-
},
|
|
224
|
-
],
|
|
225
|
-
name: "WithdrawCollateral",
|
|
226
|
-
type: "event",
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
inputs: [],
|
|
10
|
+
type: "function",
|
|
230
11
|
name: "botList",
|
|
12
|
+
inputs: [],
|
|
231
13
|
outputs: [
|
|
232
14
|
{
|
|
233
|
-
internalType: "address",
|
|
234
15
|
name: "",
|
|
235
16
|
type: "address",
|
|
17
|
+
internalType: "address",
|
|
236
18
|
},
|
|
237
19
|
],
|
|
238
20
|
stateMutability: "view",
|
|
239
|
-
type: "function",
|
|
240
21
|
},
|
|
241
22
|
{
|
|
23
|
+
type: "function",
|
|
24
|
+
name: "botMulticall",
|
|
242
25
|
inputs: [
|
|
243
26
|
{
|
|
244
|
-
internalType: "address",
|
|
245
27
|
name: "creditAccount",
|
|
246
28
|
type: "address",
|
|
29
|
+
internalType: "address",
|
|
247
30
|
},
|
|
248
31
|
{
|
|
32
|
+
name: "calls",
|
|
33
|
+
type: "tuple[]",
|
|
34
|
+
internalType: "struct MultiCall[]",
|
|
249
35
|
components: [
|
|
250
36
|
{
|
|
251
|
-
internalType: "address",
|
|
252
37
|
name: "target",
|
|
253
38
|
type: "address",
|
|
39
|
+
internalType: "address",
|
|
254
40
|
},
|
|
255
41
|
{
|
|
256
|
-
internalType: "bytes",
|
|
257
42
|
name: "callData",
|
|
258
43
|
type: "bytes",
|
|
44
|
+
internalType: "bytes",
|
|
259
45
|
},
|
|
260
46
|
],
|
|
261
|
-
internalType: "struct MultiCall[]",
|
|
262
|
-
name: "calls",
|
|
263
|
-
type: "tuple[]",
|
|
264
47
|
},
|
|
265
48
|
],
|
|
266
|
-
name: "botMulticall",
|
|
267
49
|
outputs: [],
|
|
268
50
|
stateMutability: "nonpayable",
|
|
269
|
-
type: "function",
|
|
270
51
|
},
|
|
271
52
|
{
|
|
53
|
+
type: "function",
|
|
54
|
+
name: "canLiquidateWhilePaused",
|
|
272
55
|
inputs: [
|
|
273
56
|
{
|
|
274
|
-
internalType: "address",
|
|
275
57
|
name: "",
|
|
276
58
|
type: "address",
|
|
59
|
+
internalType: "address",
|
|
277
60
|
},
|
|
278
61
|
],
|
|
279
|
-
name: "canLiquidateWhilePaused",
|
|
280
62
|
outputs: [
|
|
281
63
|
{
|
|
282
|
-
internalType: "bool",
|
|
283
64
|
name: "",
|
|
284
65
|
type: "bool",
|
|
66
|
+
internalType: "bool",
|
|
285
67
|
},
|
|
286
68
|
],
|
|
287
69
|
stateMutability: "view",
|
|
288
|
-
type: "function",
|
|
289
70
|
},
|
|
290
71
|
{
|
|
72
|
+
type: "function",
|
|
73
|
+
name: "closeCreditAccount",
|
|
291
74
|
inputs: [
|
|
292
75
|
{
|
|
293
|
-
internalType: "address",
|
|
294
76
|
name: "creditAccount",
|
|
295
77
|
type: "address",
|
|
78
|
+
internalType: "address",
|
|
296
79
|
},
|
|
297
80
|
{
|
|
81
|
+
name: "calls",
|
|
82
|
+
type: "tuple[]",
|
|
83
|
+
internalType: "struct MultiCall[]",
|
|
298
84
|
components: [
|
|
299
85
|
{
|
|
300
|
-
internalType: "address",
|
|
301
86
|
name: "target",
|
|
302
87
|
type: "address",
|
|
88
|
+
internalType: "address",
|
|
303
89
|
},
|
|
304
90
|
{
|
|
305
|
-
internalType: "bytes",
|
|
306
91
|
name: "callData",
|
|
307
92
|
type: "bytes",
|
|
93
|
+
internalType: "bytes",
|
|
308
94
|
},
|
|
309
95
|
],
|
|
310
|
-
internalType: "struct MultiCall[]",
|
|
311
|
-
name: "calls",
|
|
312
|
-
type: "tuple[]",
|
|
313
96
|
},
|
|
314
97
|
],
|
|
315
|
-
name: "closeCreditAccount",
|
|
316
98
|
outputs: [],
|
|
317
99
|
stateMutability: "payable",
|
|
318
|
-
type: "function",
|
|
319
100
|
},
|
|
320
101
|
{
|
|
321
|
-
|
|
102
|
+
type: "function",
|
|
322
103
|
name: "creditManager",
|
|
104
|
+
inputs: [],
|
|
323
105
|
outputs: [
|
|
324
106
|
{
|
|
325
|
-
internalType: "address",
|
|
326
107
|
name: "",
|
|
327
108
|
type: "address",
|
|
109
|
+
internalType: "address",
|
|
328
110
|
},
|
|
329
111
|
],
|
|
330
112
|
stateMutability: "view",
|
|
331
|
-
type: "function",
|
|
332
113
|
},
|
|
333
114
|
{
|
|
334
|
-
|
|
115
|
+
type: "function",
|
|
335
116
|
name: "debtLimits",
|
|
117
|
+
inputs: [],
|
|
336
118
|
outputs: [
|
|
337
119
|
{
|
|
338
|
-
internalType: "uint128",
|
|
339
120
|
name: "minDebt",
|
|
340
121
|
type: "uint128",
|
|
122
|
+
internalType: "uint128",
|
|
341
123
|
},
|
|
342
124
|
{
|
|
343
|
-
internalType: "uint128",
|
|
344
125
|
name: "maxDebt",
|
|
345
126
|
type: "uint128",
|
|
127
|
+
internalType: "uint128",
|
|
346
128
|
},
|
|
347
129
|
],
|
|
348
130
|
stateMutability: "view",
|
|
349
|
-
type: "function",
|
|
350
131
|
},
|
|
351
132
|
{
|
|
352
|
-
|
|
133
|
+
type: "function",
|
|
353
134
|
name: "degenNFT",
|
|
135
|
+
inputs: [],
|
|
354
136
|
outputs: [
|
|
355
137
|
{
|
|
356
|
-
internalType: "address",
|
|
357
138
|
name: "",
|
|
358
139
|
type: "address",
|
|
140
|
+
internalType: "address",
|
|
359
141
|
},
|
|
360
142
|
],
|
|
361
143
|
stateMutability: "view",
|
|
362
|
-
type: "function",
|
|
363
144
|
},
|
|
364
145
|
{
|
|
365
|
-
|
|
146
|
+
type: "function",
|
|
366
147
|
name: "expirable",
|
|
148
|
+
inputs: [],
|
|
367
149
|
outputs: [
|
|
368
150
|
{
|
|
369
|
-
internalType: "bool",
|
|
370
151
|
name: "",
|
|
371
152
|
type: "bool",
|
|
153
|
+
internalType: "bool",
|
|
372
154
|
},
|
|
373
155
|
],
|
|
374
156
|
stateMutability: "view",
|
|
375
|
-
type: "function",
|
|
376
157
|
},
|
|
377
158
|
{
|
|
378
|
-
|
|
159
|
+
type: "function",
|
|
379
160
|
name: "expirationDate",
|
|
161
|
+
inputs: [],
|
|
380
162
|
outputs: [
|
|
381
163
|
{
|
|
382
|
-
internalType: "uint40",
|
|
383
164
|
name: "",
|
|
384
165
|
type: "uint40",
|
|
166
|
+
internalType: "uint40",
|
|
385
167
|
},
|
|
386
168
|
],
|
|
387
169
|
stateMutability: "view",
|
|
388
|
-
type: "function",
|
|
389
170
|
},
|
|
390
171
|
{
|
|
391
|
-
|
|
172
|
+
type: "function",
|
|
392
173
|
name: "forbiddenTokenMask",
|
|
174
|
+
inputs: [],
|
|
393
175
|
outputs: [
|
|
394
176
|
{
|
|
395
|
-
internalType: "uint256",
|
|
396
177
|
name: "",
|
|
397
178
|
type: "uint256",
|
|
179
|
+
internalType: "uint256",
|
|
398
180
|
},
|
|
399
181
|
],
|
|
400
182
|
stateMutability: "view",
|
|
401
|
-
type: "function",
|
|
402
183
|
},
|
|
403
184
|
{
|
|
185
|
+
type: "function",
|
|
186
|
+
name: "liquidateCreditAccount",
|
|
404
187
|
inputs: [
|
|
405
188
|
{
|
|
406
|
-
internalType: "address",
|
|
407
189
|
name: "creditAccount",
|
|
408
190
|
type: "address",
|
|
191
|
+
internalType: "address",
|
|
409
192
|
},
|
|
410
193
|
{
|
|
411
|
-
internalType: "address",
|
|
412
194
|
name: "to",
|
|
413
195
|
type: "address",
|
|
196
|
+
internalType: "address",
|
|
414
197
|
},
|
|
415
198
|
{
|
|
199
|
+
name: "calls",
|
|
200
|
+
type: "tuple[]",
|
|
201
|
+
internalType: "struct MultiCall[]",
|
|
416
202
|
components: [
|
|
417
203
|
{
|
|
418
|
-
internalType: "address",
|
|
419
204
|
name: "target",
|
|
420
205
|
type: "address",
|
|
206
|
+
internalType: "address",
|
|
421
207
|
},
|
|
422
208
|
{
|
|
423
|
-
internalType: "bytes",
|
|
424
209
|
name: "callData",
|
|
425
210
|
type: "bytes",
|
|
211
|
+
internalType: "bytes",
|
|
426
212
|
},
|
|
427
213
|
],
|
|
428
|
-
internalType: "struct MultiCall[]",
|
|
429
|
-
name: "calls",
|
|
430
|
-
type: "tuple[]",
|
|
431
214
|
},
|
|
432
215
|
],
|
|
433
|
-
name: "liquidateCreditAccount",
|
|
434
216
|
outputs: [],
|
|
435
217
|
stateMutability: "nonpayable",
|
|
436
|
-
type: "function",
|
|
437
218
|
},
|
|
438
219
|
{
|
|
439
|
-
|
|
220
|
+
type: "function",
|
|
440
221
|
name: "lossParams",
|
|
222
|
+
inputs: [],
|
|
441
223
|
outputs: [
|
|
442
224
|
{
|
|
443
|
-
internalType: "uint128",
|
|
444
225
|
name: "currentCumulativeLoss",
|
|
445
226
|
type: "uint128",
|
|
227
|
+
internalType: "uint128",
|
|
446
228
|
},
|
|
447
229
|
{
|
|
448
|
-
internalType: "uint128",
|
|
449
230
|
name: "maxCumulativeLoss",
|
|
450
231
|
type: "uint128",
|
|
232
|
+
internalType: "uint128",
|
|
451
233
|
},
|
|
452
234
|
],
|
|
453
235
|
stateMutability: "view",
|
|
454
|
-
type: "function",
|
|
455
236
|
},
|
|
456
237
|
{
|
|
457
|
-
|
|
238
|
+
type: "function",
|
|
458
239
|
name: "maxDebtPerBlockMultiplier",
|
|
240
|
+
inputs: [],
|
|
459
241
|
outputs: [
|
|
460
242
|
{
|
|
461
|
-
internalType: "uint8",
|
|
462
243
|
name: "",
|
|
463
244
|
type: "uint8",
|
|
245
|
+
internalType: "uint8",
|
|
464
246
|
},
|
|
465
247
|
],
|
|
466
248
|
stateMutability: "view",
|
|
467
|
-
type: "function",
|
|
468
249
|
},
|
|
469
250
|
{
|
|
470
|
-
|
|
251
|
+
type: "function",
|
|
471
252
|
name: "maxQuotaMultiplier",
|
|
253
|
+
inputs: [],
|
|
472
254
|
outputs: [
|
|
473
255
|
{
|
|
474
|
-
internalType: "uint256",
|
|
475
256
|
name: "",
|
|
476
257
|
type: "uint256",
|
|
258
|
+
internalType: "uint256",
|
|
477
259
|
},
|
|
478
260
|
],
|
|
479
261
|
stateMutability: "view",
|
|
480
|
-
type: "function",
|
|
481
262
|
},
|
|
482
263
|
{
|
|
264
|
+
type: "function",
|
|
265
|
+
name: "multicall",
|
|
483
266
|
inputs: [
|
|
484
267
|
{
|
|
485
|
-
internalType: "address",
|
|
486
268
|
name: "creditAccount",
|
|
487
269
|
type: "address",
|
|
270
|
+
internalType: "address",
|
|
488
271
|
},
|
|
489
272
|
{
|
|
273
|
+
name: "calls",
|
|
274
|
+
type: "tuple[]",
|
|
275
|
+
internalType: "struct MultiCall[]",
|
|
490
276
|
components: [
|
|
491
277
|
{
|
|
492
|
-
internalType: "address",
|
|
493
278
|
name: "target",
|
|
494
279
|
type: "address",
|
|
280
|
+
internalType: "address",
|
|
495
281
|
},
|
|
496
282
|
{
|
|
497
|
-
internalType: "bytes",
|
|
498
283
|
name: "callData",
|
|
499
284
|
type: "bytes",
|
|
285
|
+
internalType: "bytes",
|
|
500
286
|
},
|
|
501
287
|
],
|
|
502
|
-
|
|
288
|
+
},
|
|
289
|
+
],
|
|
290
|
+
outputs: [],
|
|
291
|
+
stateMutability: "payable",
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
type: "function",
|
|
295
|
+
name: "openCreditAccount",
|
|
296
|
+
inputs: [
|
|
297
|
+
{
|
|
298
|
+
name: "onBehalfOf",
|
|
299
|
+
type: "address",
|
|
300
|
+
internalType: "address",
|
|
301
|
+
},
|
|
302
|
+
{
|
|
503
303
|
name: "calls",
|
|
504
304
|
type: "tuple[]",
|
|
305
|
+
internalType: "struct MultiCall[]",
|
|
306
|
+
components: [
|
|
307
|
+
{
|
|
308
|
+
name: "target",
|
|
309
|
+
type: "address",
|
|
310
|
+
internalType: "address",
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
name: "callData",
|
|
314
|
+
type: "bytes",
|
|
315
|
+
internalType: "bytes",
|
|
316
|
+
},
|
|
317
|
+
],
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
name: "referralCode",
|
|
321
|
+
type: "uint256",
|
|
322
|
+
internalType: "uint256",
|
|
323
|
+
},
|
|
324
|
+
],
|
|
325
|
+
outputs: [
|
|
326
|
+
{
|
|
327
|
+
name: "creditAccount",
|
|
328
|
+
type: "address",
|
|
329
|
+
internalType: "address",
|
|
330
|
+
},
|
|
331
|
+
],
|
|
332
|
+
stateMutability: "payable",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
type: "function",
|
|
336
|
+
name: "setBotList",
|
|
337
|
+
inputs: [
|
|
338
|
+
{
|
|
339
|
+
name: "newBotList",
|
|
340
|
+
type: "address",
|
|
341
|
+
internalType: "address",
|
|
342
|
+
},
|
|
343
|
+
],
|
|
344
|
+
outputs: [],
|
|
345
|
+
stateMutability: "nonpayable",
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
type: "function",
|
|
349
|
+
name: "setBotPermissions",
|
|
350
|
+
inputs: [
|
|
351
|
+
{
|
|
352
|
+
name: "creditAccount",
|
|
353
|
+
type: "address",
|
|
354
|
+
internalType: "address",
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
name: "bot",
|
|
358
|
+
type: "address",
|
|
359
|
+
internalType: "address",
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
name: "permissions",
|
|
363
|
+
type: "uint192",
|
|
364
|
+
internalType: "uint192",
|
|
365
|
+
},
|
|
366
|
+
],
|
|
367
|
+
outputs: [],
|
|
368
|
+
stateMutability: "nonpayable",
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
type: "function",
|
|
372
|
+
name: "setCumulativeLossParams",
|
|
373
|
+
inputs: [
|
|
374
|
+
{
|
|
375
|
+
name: "newMaxCumulativeLoss",
|
|
376
|
+
type: "uint128",
|
|
377
|
+
internalType: "uint128",
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
name: "resetCumulativeLoss",
|
|
381
|
+
type: "bool",
|
|
382
|
+
internalType: "bool",
|
|
383
|
+
},
|
|
384
|
+
],
|
|
385
|
+
outputs: [],
|
|
386
|
+
stateMutability: "nonpayable",
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
type: "function",
|
|
390
|
+
name: "setDebtLimits",
|
|
391
|
+
inputs: [
|
|
392
|
+
{
|
|
393
|
+
name: "newMinDebt",
|
|
394
|
+
type: "uint128",
|
|
395
|
+
internalType: "uint128",
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
name: "newMaxDebt",
|
|
399
|
+
type: "uint128",
|
|
400
|
+
internalType: "uint128",
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
name: "newMaxDebtPerBlockMultiplier",
|
|
404
|
+
type: "uint8",
|
|
405
|
+
internalType: "uint8",
|
|
406
|
+
},
|
|
407
|
+
],
|
|
408
|
+
outputs: [],
|
|
409
|
+
stateMutability: "nonpayable",
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
type: "function",
|
|
413
|
+
name: "setEmergencyLiquidator",
|
|
414
|
+
inputs: [
|
|
415
|
+
{
|
|
416
|
+
name: "liquidator",
|
|
417
|
+
type: "address",
|
|
418
|
+
internalType: "address",
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
name: "allowance",
|
|
422
|
+
type: "uint8",
|
|
423
|
+
internalType: "enum AllowanceAction",
|
|
424
|
+
},
|
|
425
|
+
],
|
|
426
|
+
outputs: [],
|
|
427
|
+
stateMutability: "nonpayable",
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
type: "function",
|
|
431
|
+
name: "setExpirationDate",
|
|
432
|
+
inputs: [
|
|
433
|
+
{
|
|
434
|
+
name: "newExpirationDate",
|
|
435
|
+
type: "uint40",
|
|
436
|
+
internalType: "uint40",
|
|
437
|
+
},
|
|
438
|
+
],
|
|
439
|
+
outputs: [],
|
|
440
|
+
stateMutability: "nonpayable",
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
type: "function",
|
|
444
|
+
name: "setTokenAllowance",
|
|
445
|
+
inputs: [
|
|
446
|
+
{
|
|
447
|
+
name: "token",
|
|
448
|
+
type: "address",
|
|
449
|
+
internalType: "address",
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
name: "allowance",
|
|
453
|
+
type: "uint8",
|
|
454
|
+
internalType: "enum AllowanceAction",
|
|
455
|
+
},
|
|
456
|
+
],
|
|
457
|
+
outputs: [],
|
|
458
|
+
stateMutability: "nonpayable",
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
type: "function",
|
|
462
|
+
name: "version",
|
|
463
|
+
inputs: [],
|
|
464
|
+
outputs: [
|
|
465
|
+
{
|
|
466
|
+
name: "",
|
|
467
|
+
type: "uint256",
|
|
468
|
+
internalType: "uint256",
|
|
469
|
+
},
|
|
470
|
+
],
|
|
471
|
+
stateMutability: "view",
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
type: "function",
|
|
475
|
+
name: "weth",
|
|
476
|
+
inputs: [],
|
|
477
|
+
outputs: [
|
|
478
|
+
{
|
|
479
|
+
name: "",
|
|
480
|
+
type: "address",
|
|
481
|
+
internalType: "address",
|
|
505
482
|
},
|
|
506
483
|
],
|
|
507
|
-
|
|
508
|
-
outputs: [],
|
|
509
|
-
stateMutability: "payable",
|
|
510
|
-
type: "function",
|
|
484
|
+
stateMutability: "view",
|
|
511
485
|
},
|
|
512
486
|
{
|
|
487
|
+
type: "event",
|
|
488
|
+
name: "AddCollateral",
|
|
513
489
|
inputs: [
|
|
514
490
|
{
|
|
515
|
-
|
|
516
|
-
name: "onBehalfOf",
|
|
491
|
+
name: "creditAccount",
|
|
517
492
|
type: "address",
|
|
493
|
+
indexed: true,
|
|
494
|
+
internalType: "address",
|
|
518
495
|
},
|
|
519
496
|
{
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
type: "address",
|
|
525
|
-
},
|
|
526
|
-
{
|
|
527
|
-
internalType: "bytes",
|
|
528
|
-
name: "callData",
|
|
529
|
-
type: "bytes",
|
|
530
|
-
},
|
|
531
|
-
],
|
|
532
|
-
internalType: "struct MultiCall[]",
|
|
533
|
-
name: "calls",
|
|
534
|
-
type: "tuple[]",
|
|
497
|
+
name: "token",
|
|
498
|
+
type: "address",
|
|
499
|
+
indexed: true,
|
|
500
|
+
internalType: "address",
|
|
535
501
|
},
|
|
536
502
|
{
|
|
537
|
-
|
|
538
|
-
name: "referralCode",
|
|
503
|
+
name: "amount",
|
|
539
504
|
type: "uint256",
|
|
505
|
+
indexed: false,
|
|
506
|
+
internalType: "uint256",
|
|
540
507
|
},
|
|
541
508
|
],
|
|
542
|
-
|
|
543
|
-
|
|
509
|
+
anonymous: false,
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
type: "event",
|
|
513
|
+
name: "CloseCreditAccount",
|
|
514
|
+
inputs: [
|
|
544
515
|
{
|
|
545
|
-
internalType: "address",
|
|
546
516
|
name: "creditAccount",
|
|
547
517
|
type: "address",
|
|
518
|
+
indexed: true,
|
|
519
|
+
internalType: "address",
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
name: "borrower",
|
|
523
|
+
type: "address",
|
|
524
|
+
indexed: true,
|
|
525
|
+
internalType: "address",
|
|
548
526
|
},
|
|
549
527
|
],
|
|
550
|
-
|
|
551
|
-
type: "function",
|
|
528
|
+
anonymous: false,
|
|
552
529
|
},
|
|
553
530
|
{
|
|
531
|
+
type: "event",
|
|
532
|
+
name: "DecreaseDebt",
|
|
554
533
|
inputs: [
|
|
555
534
|
{
|
|
556
|
-
|
|
557
|
-
name: "newBotList",
|
|
535
|
+
name: "creditAccount",
|
|
558
536
|
type: "address",
|
|
537
|
+
indexed: true,
|
|
538
|
+
internalType: "address",
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
name: "amount",
|
|
542
|
+
type: "uint256",
|
|
543
|
+
indexed: false,
|
|
544
|
+
internalType: "uint256",
|
|
559
545
|
},
|
|
560
546
|
],
|
|
561
|
-
|
|
562
|
-
outputs: [],
|
|
563
|
-
stateMutability: "nonpayable",
|
|
564
|
-
type: "function",
|
|
547
|
+
anonymous: false,
|
|
565
548
|
},
|
|
566
549
|
{
|
|
550
|
+
type: "event",
|
|
551
|
+
name: "Execute",
|
|
567
552
|
inputs: [
|
|
568
553
|
{
|
|
569
|
-
internalType: "address",
|
|
570
554
|
name: "creditAccount",
|
|
571
555
|
type: "address",
|
|
572
|
-
|
|
573
|
-
{
|
|
556
|
+
indexed: true,
|
|
574
557
|
internalType: "address",
|
|
575
|
-
name: "bot",
|
|
576
|
-
type: "address",
|
|
577
558
|
},
|
|
578
559
|
{
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
560
|
+
name: "targetContract",
|
|
561
|
+
type: "address",
|
|
562
|
+
indexed: true,
|
|
563
|
+
internalType: "address",
|
|
582
564
|
},
|
|
583
565
|
],
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
type: "
|
|
566
|
+
anonymous: false,
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
type: "event",
|
|
570
|
+
name: "FinishMultiCall",
|
|
571
|
+
inputs: [],
|
|
572
|
+
anonymous: false,
|
|
588
573
|
},
|
|
589
574
|
{
|
|
575
|
+
type: "event",
|
|
576
|
+
name: "IncreaseDebt",
|
|
590
577
|
inputs: [
|
|
591
578
|
{
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
579
|
+
name: "creditAccount",
|
|
580
|
+
type: "address",
|
|
581
|
+
indexed: true,
|
|
582
|
+
internalType: "address",
|
|
595
583
|
},
|
|
596
584
|
{
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
585
|
+
name: "amount",
|
|
586
|
+
type: "uint256",
|
|
587
|
+
indexed: false,
|
|
588
|
+
internalType: "uint256",
|
|
600
589
|
},
|
|
601
590
|
],
|
|
602
|
-
|
|
603
|
-
outputs: [],
|
|
604
|
-
stateMutability: "nonpayable",
|
|
605
|
-
type: "function",
|
|
591
|
+
anonymous: false,
|
|
606
592
|
},
|
|
607
593
|
{
|
|
594
|
+
type: "event",
|
|
595
|
+
name: "LiquidateCreditAccount",
|
|
608
596
|
inputs: [
|
|
609
597
|
{
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
598
|
+
name: "creditAccount",
|
|
599
|
+
type: "address",
|
|
600
|
+
indexed: true,
|
|
601
|
+
internalType: "address",
|
|
613
602
|
},
|
|
614
603
|
{
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
604
|
+
name: "liquidator",
|
|
605
|
+
type: "address",
|
|
606
|
+
indexed: true,
|
|
607
|
+
internalType: "address",
|
|
618
608
|
},
|
|
619
609
|
{
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
610
|
+
name: "to",
|
|
611
|
+
type: "address",
|
|
612
|
+
indexed: false,
|
|
613
|
+
internalType: "address",
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
name: "remainingFunds",
|
|
617
|
+
type: "uint256",
|
|
618
|
+
indexed: false,
|
|
619
|
+
internalType: "uint256",
|
|
623
620
|
},
|
|
624
621
|
],
|
|
625
|
-
|
|
626
|
-
outputs: [],
|
|
627
|
-
stateMutability: "nonpayable",
|
|
628
|
-
type: "function",
|
|
622
|
+
anonymous: false,
|
|
629
623
|
},
|
|
630
624
|
{
|
|
625
|
+
type: "event",
|
|
626
|
+
name: "OpenCreditAccount",
|
|
631
627
|
inputs: [
|
|
632
628
|
{
|
|
629
|
+
name: "creditAccount",
|
|
630
|
+
type: "address",
|
|
631
|
+
indexed: true,
|
|
633
632
|
internalType: "address",
|
|
634
|
-
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
name: "onBehalfOf",
|
|
635
636
|
type: "address",
|
|
637
|
+
indexed: true,
|
|
638
|
+
internalType: "address",
|
|
636
639
|
},
|
|
637
640
|
{
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
+
name: "caller",
|
|
642
|
+
type: "address",
|
|
643
|
+
indexed: true,
|
|
644
|
+
internalType: "address",
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
name: "referralCode",
|
|
648
|
+
type: "uint256",
|
|
649
|
+
indexed: false,
|
|
650
|
+
internalType: "uint256",
|
|
641
651
|
},
|
|
642
652
|
],
|
|
643
|
-
|
|
644
|
-
outputs: [],
|
|
645
|
-
stateMutability: "nonpayable",
|
|
646
|
-
type: "function",
|
|
653
|
+
anonymous: false,
|
|
647
654
|
},
|
|
648
655
|
{
|
|
656
|
+
type: "event",
|
|
657
|
+
name: "StartMultiCall",
|
|
649
658
|
inputs: [
|
|
650
659
|
{
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
660
|
+
name: "creditAccount",
|
|
661
|
+
type: "address",
|
|
662
|
+
indexed: true,
|
|
663
|
+
internalType: "address",
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
name: "caller",
|
|
667
|
+
type: "address",
|
|
668
|
+
indexed: true,
|
|
669
|
+
internalType: "address",
|
|
654
670
|
},
|
|
655
671
|
],
|
|
656
|
-
|
|
657
|
-
outputs: [],
|
|
658
|
-
stateMutability: "nonpayable",
|
|
659
|
-
type: "function",
|
|
672
|
+
anonymous: false,
|
|
660
673
|
},
|
|
661
674
|
{
|
|
675
|
+
type: "event",
|
|
676
|
+
name: "WithdrawCollateral",
|
|
662
677
|
inputs: [
|
|
663
678
|
{
|
|
664
|
-
|
|
665
|
-
name: "token",
|
|
679
|
+
name: "creditAccount",
|
|
666
680
|
type: "address",
|
|
681
|
+
indexed: true,
|
|
682
|
+
internalType: "address",
|
|
667
683
|
},
|
|
668
684
|
{
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
685
|
+
name: "token",
|
|
686
|
+
type: "address",
|
|
687
|
+
indexed: true,
|
|
688
|
+
internalType: "address",
|
|
672
689
|
},
|
|
673
|
-
],
|
|
674
|
-
name: "setTokenAllowance",
|
|
675
|
-
outputs: [],
|
|
676
|
-
stateMutability: "nonpayable",
|
|
677
|
-
type: "function",
|
|
678
|
-
},
|
|
679
|
-
{
|
|
680
|
-
inputs: [],
|
|
681
|
-
name: "version",
|
|
682
|
-
outputs: [
|
|
683
690
|
{
|
|
684
|
-
|
|
685
|
-
name: "",
|
|
691
|
+
name: "amount",
|
|
686
692
|
type: "uint256",
|
|
693
|
+
indexed: false,
|
|
694
|
+
internalType: "uint256",
|
|
687
695
|
},
|
|
688
|
-
],
|
|
689
|
-
stateMutability: "view",
|
|
690
|
-
type: "function",
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
inputs: [],
|
|
694
|
-
name: "weth",
|
|
695
|
-
outputs: [
|
|
696
696
|
{
|
|
697
|
-
|
|
698
|
-
name: "",
|
|
697
|
+
name: "to",
|
|
699
698
|
type: "address",
|
|
699
|
+
indexed: false,
|
|
700
|
+
internalType: "address",
|
|
700
701
|
},
|
|
701
702
|
],
|
|
702
|
-
|
|
703
|
-
type: "function",
|
|
703
|
+
anonymous: false,
|
|
704
704
|
},
|
|
705
705
|
];
|
|
706
706
|
class ICreditFacadeV3__factory {
|