@gearbox-protocol/sdk 3.0.0-next.5 → 3.0.0-next.51
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/contracts/IAirdropDistributor.sol +55 -0
- package/contracts/IDegenDistributor.sol +28 -0
- package/contracts/IOffchainOracle.sol +17 -0
- package/contracts/IWETHGateway.sol +33 -0
- package/contracts/IwstETHGateway.sol +24 -0
- package/contracts/index.sol +10 -3
- package/lib/apy/curveAPY.js +2 -1
- package/lib/apy/index.d.ts +2 -2
- package/lib/apy/yearnAPY.js +1 -1
- package/lib/config.d.ts +0 -1
- package/lib/config.js +1 -2
- package/lib/core/assets.d.ts +4 -4
- package/lib/core/assets.js +28 -17
- package/lib/core/creditAccount.d.ts +31 -6
- package/lib/core/creditAccount.js +101 -37
- package/lib/core/creditAccount.spec.js +693 -10
- package/lib/core/creditManager.d.ts +22 -8
- package/lib/core/creditManager.js +86 -30
- package/lib/core/events.js +14 -14
- package/lib/core/gauge.d.ts +26 -0
- package/lib/core/gauge.js +63 -0
- package/lib/core/gaugeMath.d.ts +40 -0
- package/lib/core/gaugeMath.js +108 -0
- package/lib/core/gaugeMath.spec.d.ts +1 -0
- package/lib/core/gaugeMath.spec.js +388 -0
- package/lib/core/{pool/data.d.ts → pool.d.ts} +18 -10
- package/lib/core/{pool/data.js → pool.js} +69 -24
- package/lib/core/strategy.js +2 -2
- package/lib/core/trade.d.ts +5 -23
- package/lib/core/trade.js +4 -61
- package/lib/core/transactions.d.ts +50 -3
- package/lib/core/transactions.js +136 -105
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/parsers/abstractParser.js +1 -2
- package/lib/parsers/creditFacadeParser.d.ts +2 -1
- package/lib/parsers/creditFacadeParser.js +17 -5
- package/lib/parsers/creditFacadeParser.spec.js +2 -3
- package/lib/parsers/curveAdapterParser.js +2 -3
- package/lib/parsers/txParser.d.ts +4 -4
- package/lib/parsers/txParser.js +9 -3
- package/lib/parsers/uniV2AdapterParser.js +2 -2
- package/lib/parsers/uniV3AdapterParser.js +3 -3
- package/lib/pathfinder/core.d.ts +4 -4
- package/lib/pathfinder/pathOptions.d.ts +2 -1
- package/lib/pathfinder/pathOptions.js +20 -1
- package/lib/pathfinder/pathOptions.spec.js +2 -2
- package/lib/pathfinder/pathfinder.js +4 -3
- package/lib/pathfinder/pathfinder.spec.js +3 -1
- package/lib/payload/creditAccount.d.ts +2 -2
- package/lib/payload/gauge.d.ts +12 -0
- package/lib/payload/pool.d.ts +6 -1
- package/lib/types/IAirdropDistributor.sol/IAirdropDistributor.d.ts +124 -0
- package/lib/types/IAirdropDistributor.sol/IAirdropDistributorEvents.d.ts +73 -0
- package/lib/types/IAirdropDistributor.sol/index.d.ts +2 -0
- package/lib/types/IContractsRegister.sol/IContractsRegister.d.ts +128 -0
- package/lib/types/IContractsRegister.sol/IContractsRegisterEvents.d.ts +50 -0
- package/lib/types/IContractsRegister.sol/index.d.ts +2 -0
- package/lib/types/IConvexToken.d.ts +9 -1
- package/lib/types/IConvexV1BaseRewardPoolAdapter.d.ts +17 -1
- package/lib/types/{IConvexV1BoosterAdapter.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts} +19 -4
- package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.d.ts +43 -0
- package/lib/types/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
- package/lib/types/ICreditConfiguratorV3.sol/ICreditConfiguratorV3.d.ts +716 -0
- package/lib/types/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events.d.ts +275 -0
- package/lib/types/ICreditConfiguratorV3.sol/index.d.ts +2 -0
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Extended.d.ts +7 -11
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +165 -20
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +5 -7
- package/lib/types/ICreditFacadeV3Multicall.d.ts +35 -12
- package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +273 -39
- package/lib/types/IDataCompressorV2_10.d.ts +43 -9
- package/lib/types/IDataCompressorV3_00.d.ts +140 -10
- package/lib/types/IDegenDistributor.sol/IDegenDistributor.d.ts +96 -0
- package/lib/types/IDegenDistributor.sol/IDegenDistributorEvents.d.ts +53 -0
- package/lib/types/IDegenDistributor.sol/index.d.ts +2 -0
- package/lib/types/{draft-IERC20Permit.sol/IERC20Permit.d.ts → IERC20Permit.d.ts} +1 -1
- package/lib/types/IERC20ZapperDeposits.d.ts +117 -0
- package/lib/types/IETHZapperDeposits.d.ts +66 -0
- package/lib/types/IGasPricer.d.ts +44 -0
- package/lib/types/IGasPricer.js +2 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3.d.ts +408 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3.js +2 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.d.ts +117 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.js +2 -0
- package/lib/types/IGearStakingV3.sol/index.d.ts +2 -0
- package/lib/types/IGearStakingV3.sol/index.js +2 -0
- package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.d.ts → ILidoV1Adapter.d.ts} +5 -40
- package/lib/types/ILidoV1Adapter.js +2 -0
- package/lib/types/IOffchainOracle.d.ts +58 -0
- package/lib/types/IOffchainOracle.js +2 -0
- package/lib/types/IPoolV3.sol/IPoolV3.d.ts +43 -11
- package/lib/types/IPoolV3.sol/index.d.ts +0 -1
- package/lib/types/IRouter.d.ts +11 -1
- package/lib/types/IWETHGateway.d.ts +90 -0
- package/lib/types/IWETHGateway.js +2 -0
- package/lib/types/IZapper.d.ts +130 -0
- package/lib/types/IZapper.js +2 -0
- package/lib/types/IwstETHGateway.sol/IwstETHGateWay.d.ts +70 -0
- package/lib/types/IwstETHGateway.sol/IwstETHGateWay.js +2 -0
- package/lib/types/IwstETHGateway.sol/index.d.ts +1 -0
- package/lib/types/IwstETHGateway.sol/index.js +2 -0
- package/lib/types/factories/AddressProvider__factory.d.ts +1 -1
- package/lib/types/factories/AddressProvider__factory.js +1 -1
- package/lib/types/factories/Balances.sol/BalanceOps__factory.d.ts +1 -1
- package/lib/types/factories/Balances.sol/BalanceOps__factory.js +1 -1
- package/lib/types/factories/Claimable__factory.d.ts +1 -1
- package/lib/types/factories/Claimable__factory.js +1 -1
- package/lib/types/factories/Errors__factory.d.ts +1 -1
- package/lib/types/factories/Errors__factory.js +1 -1
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.d.ts +63 -0
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.js +88 -0
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.d.ts +119 -0
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.js +161 -0
- package/lib/types/factories/IAirdropDistributor.sol/index.d.ts +2 -0
- package/lib/types/factories/IAirdropDistributor.sol/index.js +10 -0
- package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.d.ts +28 -0
- package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.js +45 -0
- package/lib/types/factories/{IAToken__factory.d.ts → IContractsRegister.sol/IContractsRegister__factory.d.ts} +49 -113
- package/lib/types/factories/{IAToken__factory.js → IContractsRegister.sol/IContractsRegister__factory.js} +49 -130
- package/lib/types/factories/IContractsRegister.sol/index.d.ts +2 -0
- package/lib/types/factories/IContractsRegister.sol/index.js +10 -0
- package/lib/types/factories/IConvexToken__factory.d.ts +10 -0
- package/lib/types/factories/IConvexToken__factory.js +13 -0
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +20 -0
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +26 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.d.ts +23 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.js +38 -0
- package/lib/types/factories/{IConvexV1BoosterAdapter__factory.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts} +16 -1
- package/lib/types/factories/{IConvexV1BoosterAdapter__factory.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js} +19 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.js +10 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.d.ts +273 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.js +357 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.d.ts +605 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.js +785 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/index.d.ts +2 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/index.js +10 -0
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.d.ts +0 -4
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.js +0 -5
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +1 -6
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +1 -7
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +144 -13
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +185 -15
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +35 -5
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +43 -5
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +199 -25
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +252 -28
- package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +110 -12
- package/lib/types/factories/IDataCompressorV2_10__factory.js +138 -14
- package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +400 -16
- package/lib/types/factories/IDataCompressorV3_00__factory.js +508 -19
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.d.ts +38 -0
- package/lib/types/factories/{AaveV2_WrappedAToken.sol/IWrappedATokenEvents__factory.js → IDegenDistributor.sol/IDegenDistributorEvents__factory.js} +13 -25
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.d.ts +84 -0
- package/lib/types/factories/{IPoolV3.sol/IPoolBase__factory.js → IDegenDistributor.sol/IDegenDistributor__factory.js} +46 -41
- package/lib/types/factories/IDegenDistributor.sol/index.d.ts +2 -0
- package/lib/types/factories/IDegenDistributor.sol/index.js +10 -0
- package/lib/types/factories/{draft-IERC20Permit.sol/IERC20Permit__factory.d.ts → IERC20Permit__factory.d.ts} +1 -1
- package/lib/types/factories/IERC20ZapperDeposits__factory.d.ts +120 -0
- package/lib/types/factories/IERC20ZapperDeposits__factory.js +165 -0
- package/lib/types/factories/IETHZapperDeposits__factory.d.ts +40 -0
- package/lib/types/factories/IETHZapperDeposits__factory.js +62 -0
- package/lib/types/factories/IGasPricer__factory.d.ts +22 -0
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.js → IGasPricer__factory.js} +14 -8
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.d.ts +113 -0
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.js +152 -0
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.d.ts +504 -0
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.js +660 -0
- package/lib/types/factories/IGearStakingV3.sol/index.d.ts +2 -0
- package/lib/types/factories/IGearStakingV3.sol/index.js +10 -0
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.d.ts → ILidoV1Adapter__factory.d.ts} +1 -35
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.js → ILidoV1Adapter__factory.js} +0 -44
- package/lib/types/factories/IOffchainOracle__factory.d.ts +48 -0
- package/lib/types/factories/IOffchainOracle__factory.js +72 -0
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.d.ts +62 -14
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.js +79 -17
- package/lib/types/factories/IPoolV3.sol/index.d.ts +0 -1
- package/lib/types/factories/IPoolV3.sol/index.js +1 -3
- package/lib/types/factories/IRouter__factory.d.ts +14 -0
- package/lib/types/factories/IRouter__factory.js +19 -0
- package/lib/types/factories/IWETHGateway__factory.d.ts +58 -0
- package/lib/types/factories/IWETHGateway__factory.js +83 -0
- package/lib/types/factories/{WERC20ZapperBase__factory.d.ts → IZapper__factory.d.ts} +57 -61
- package/lib/types/factories/{WERC20ZapperBase__factory.js → IZapper__factory.js} +65 -71
- package/lib/types/factories/{ZapperBase__factory.d.ts → IwstETHGateway.sol/IwstETHGateWay__factory.d.ts} +22 -34
- package/lib/types/factories/{ZapperBase__factory.js → IwstETHGateway.sol/IwstETHGateWay__factory.js} +22 -39
- package/lib/types/factories/IwstETHGateway.sol/index.d.ts +1 -0
- package/lib/types/factories/IwstETHGateway.sol/index.js +8 -0
- package/lib/types/factories/SafeERC20__factory.d.ts +1 -1
- package/lib/types/factories/SafeERC20__factory.js +1 -1
- package/lib/types/factories/index.d.ts +15 -12
- package/lib/types/factories/index.js +25 -23
- package/lib/types/index.d.ts +56 -38
- package/lib/types/index.js +42 -32
- package/lib/utils/formatter.d.ts +0 -3
- package/lib/utils/formatter.js +1 -67
- package/lib/utils/math.d.ts +2 -0
- package/lib/utils/math.js +2 -0
- package/lib/utils/types.d.ts +1 -0
- package/lib/watchers/creditAccountWatcher.d.ts +3 -2
- package/lib/watchers/creditAccountWatcher.js +19 -13
- package/lib/watchers/creditAccountWatcher.spec.js +18 -18
- package/lib/watchers/creditManagerWatcher.d.ts +5 -3
- package/lib/watchers/creditManagerWatcher.js +32 -10
- package/lib/watchers/creditManagerWatcher.spec.js +12 -4
- package/package.json +10 -9
- package/contracts/IRouter.sol +0 -100
- package/lib/core/pool/index.d.ts +0 -1
- package/lib/core/pool/index.js +0 -17
- package/lib/types/AaveV2_WrappedAToken.sol/IWrappedATokenEvents.d.ts +0 -60
- package/lib/types/AaveV2_WrappedAToken.sol/WrappedAToken.d.ts +0 -332
- package/lib/types/AaveV2_WrappedAToken.sol/index.d.ts +0 -2
- package/lib/types/ERC20.d.ts +0 -198
- package/lib/types/IAToken.d.ts +0 -182
- package/lib/types/ILendingPool.d.ts +0 -140
- package/lib/types/ILidoV1Adapter.sol/ILidoV1AdapterEvents.d.ts +0 -39
- package/lib/types/ILidoV1Adapter.sol/ILidoV1AdapterExceptions.d.ts +0 -27
- package/lib/types/ILidoV1Adapter.sol/index.d.ts +0 -3
- package/lib/types/IPoolV3.sol/IPoolBase.d.ts +0 -102
- package/lib/types/WATokenZapper.d.ts +0 -134
- package/lib/types/WERC20ZapperBase.d.ts +0 -134
- package/lib/types/WETHZapper.d.ts +0 -122
- package/lib/types/WstETHZapper.d.ts +0 -134
- package/lib/types/ZapperBase.d.ts +0 -70
- package/lib/types/draft-IERC20Permit.sol/index.d.ts +0 -1
- package/lib/types/factories/AaveV2_WrappedAToken.sol/IWrappedATokenEvents__factory.d.ts +0 -48
- package/lib/types/factories/AaveV2_WrappedAToken.sol/WrappedAToken__factory.d.ts +0 -397
- package/lib/types/factories/AaveV2_WrappedAToken.sol/WrappedAToken__factory.js +0 -535
- package/lib/types/factories/AaveV2_WrappedAToken.sol/index.d.ts +0 -2
- package/lib/types/factories/AaveV2_WrappedAToken.sol/index.js +0 -10
- package/lib/types/factories/ERC20__factory.d.ts +0 -239
- package/lib/types/factories/ERC20__factory.js +0 -328
- package/lib/types/factories/ILendingPool__factory.d.ts +0 -134
- package/lib/types/factories/ILendingPool__factory.js +0 -183
- package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.d.ts +0 -18
- package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.d.ts +0 -12
- package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.js +0 -24
- package/lib/types/factories/ILidoV1Adapter.sol/index.d.ts +0 -3
- package/lib/types/factories/ILidoV1Adapter.sol/index.js +0 -12
- package/lib/types/factories/IPoolV3.sol/IPoolBase__factory.d.ts +0 -80
- package/lib/types/factories/WATokenZapper__factory.d.ts +0 -161
- package/lib/types/factories/WATokenZapper__factory.js +0 -227
- package/lib/types/factories/WETHZapper__factory.d.ts +0 -138
- package/lib/types/factories/WETHZapper__factory.js +0 -198
- package/lib/types/factories/WstETHZapper__factory.d.ts +0 -161
- package/lib/types/factories/WstETHZapper__factory.js +0 -227
- package/lib/types/factories/draft-IERC20Permit.sol/index.d.ts +0 -1
- package/lib/types/factories/draft-IERC20Permit.sol/index.js +0 -8
- /package/lib/{types/AaveV2_WrappedAToken.sol/IWrappedATokenEvents.js → payload/gauge.js} +0 -0
- /package/lib/types/{AaveV2_WrappedAToken.sol/WrappedAToken.js → IAirdropDistributor.sol/IAirdropDistributor.js} +0 -0
- /package/lib/types/{AaveV2_WrappedAToken.sol/index.js → IAirdropDistributor.sol/IAirdropDistributorEvents.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol → IAirdropDistributor.sol}/index.js +0 -0
- /package/lib/types/{ERC20.js → IContractsRegister.sol/IContractsRegister.js} +0 -0
- /package/lib/types/{IAToken.js → IContractsRegister.sol/IContractsRegisterEvents.js} +0 -0
- /package/lib/types/{draft-IERC20Permit.sol → IContractsRegister.sol}/index.js +0 -0
- /package/lib/types/{IConvexV1BoosterAdapter.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.js} +0 -0
- /package/lib/types/{ILendingPool.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.js → IConvexV1BoosterAdapter.sol/index.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterEvents.js → ICreditConfiguratorV3.sol/ICreditConfiguratorV3.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions.js → ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events.js} +0 -0
- /package/lib/types/{IPoolV3.sol/IPoolBase.js → ICreditConfiguratorV3.sol/index.js} +0 -0
- /package/lib/types/{WATokenZapper.js → IDegenDistributor.sol/IDegenDistributor.js} +0 -0
- /package/lib/types/{WERC20ZapperBase.js → IDegenDistributor.sol/IDegenDistributorEvents.js} +0 -0
- /package/lib/types/{WETHZapper.js → IDegenDistributor.sol/index.js} +0 -0
- /package/lib/types/{draft-IERC20Permit.sol/IERC20Permit.js → IERC20Permit.js} +0 -0
- /package/lib/types/{WstETHZapper.js → IERC20ZapperDeposits.js} +0 -0
- /package/lib/types/{ZapperBase.js → IETHZapperDeposits.js} +0 -0
- /package/lib/types/factories/{draft-IERC20Permit.sol/IERC20Permit__factory.js → IERC20Permit__factory.js} +0 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import type { BaseContract, BigNumber, Signer, utils } from "ethers";
|
|
2
|
+
import type { EventFragment } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../common";
|
|
5
|
+
export interface ICreditConfiguratorV3EventsInterface extends utils.Interface {
|
|
6
|
+
functions: {};
|
|
7
|
+
events: {
|
|
8
|
+
"AddCollateralToken(address)": EventFragment;
|
|
9
|
+
"AddEmergencyLiquidator(address)": EventFragment;
|
|
10
|
+
"AllowAdapter(address,address)": EventFragment;
|
|
11
|
+
"AllowToken(address)": EventFragment;
|
|
12
|
+
"CreditConfiguratorUpgraded(address)": EventFragment;
|
|
13
|
+
"ForbidAdapter(address,address)": EventFragment;
|
|
14
|
+
"ForbidToken(address)": EventFragment;
|
|
15
|
+
"QuoteToken(address)": EventFragment;
|
|
16
|
+
"RemoveEmergencyLiquidator(address)": EventFragment;
|
|
17
|
+
"ResetCumulativeLoss()": EventFragment;
|
|
18
|
+
"ScheduleTokenLiquidationThresholdRamp(address,uint16,uint16,uint40,uint40)": EventFragment;
|
|
19
|
+
"SetBorrowingLimits(uint256,uint256)": EventFragment;
|
|
20
|
+
"SetBotList(address)": EventFragment;
|
|
21
|
+
"SetCreditFacade(address)": EventFragment;
|
|
22
|
+
"SetExpirationDate(uint40)": EventFragment;
|
|
23
|
+
"SetMaxCumulativeLoss(uint128)": EventFragment;
|
|
24
|
+
"SetMaxDebtPerBlockMultiplier(uint8)": EventFragment;
|
|
25
|
+
"SetMaxEnabledTokens(uint8)": EventFragment;
|
|
26
|
+
"SetPriceOracle(address)": EventFragment;
|
|
27
|
+
"SetTokenLiquidationThreshold(address,uint16)": EventFragment;
|
|
28
|
+
"UpdateFees(uint16,uint16,uint16,uint16,uint16)": EventFragment;
|
|
29
|
+
};
|
|
30
|
+
getEvent(nameOrSignatureOrTopic: "AddCollateralToken"): EventFragment;
|
|
31
|
+
getEvent(nameOrSignatureOrTopic: "AddEmergencyLiquidator"): EventFragment;
|
|
32
|
+
getEvent(nameOrSignatureOrTopic: "AllowAdapter"): EventFragment;
|
|
33
|
+
getEvent(nameOrSignatureOrTopic: "AllowToken"): EventFragment;
|
|
34
|
+
getEvent(nameOrSignatureOrTopic: "CreditConfiguratorUpgraded"): EventFragment;
|
|
35
|
+
getEvent(nameOrSignatureOrTopic: "ForbidAdapter"): EventFragment;
|
|
36
|
+
getEvent(nameOrSignatureOrTopic: "ForbidToken"): EventFragment;
|
|
37
|
+
getEvent(nameOrSignatureOrTopic: "QuoteToken"): EventFragment;
|
|
38
|
+
getEvent(nameOrSignatureOrTopic: "RemoveEmergencyLiquidator"): EventFragment;
|
|
39
|
+
getEvent(nameOrSignatureOrTopic: "ResetCumulativeLoss"): EventFragment;
|
|
40
|
+
getEvent(nameOrSignatureOrTopic: "ScheduleTokenLiquidationThresholdRamp"): EventFragment;
|
|
41
|
+
getEvent(nameOrSignatureOrTopic: "SetBorrowingLimits"): EventFragment;
|
|
42
|
+
getEvent(nameOrSignatureOrTopic: "SetBotList"): EventFragment;
|
|
43
|
+
getEvent(nameOrSignatureOrTopic: "SetCreditFacade"): EventFragment;
|
|
44
|
+
getEvent(nameOrSignatureOrTopic: "SetExpirationDate"): EventFragment;
|
|
45
|
+
getEvent(nameOrSignatureOrTopic: "SetMaxCumulativeLoss"): EventFragment;
|
|
46
|
+
getEvent(nameOrSignatureOrTopic: "SetMaxDebtPerBlockMultiplier"): EventFragment;
|
|
47
|
+
getEvent(nameOrSignatureOrTopic: "SetMaxEnabledTokens"): EventFragment;
|
|
48
|
+
getEvent(nameOrSignatureOrTopic: "SetPriceOracle"): EventFragment;
|
|
49
|
+
getEvent(nameOrSignatureOrTopic: "SetTokenLiquidationThreshold"): EventFragment;
|
|
50
|
+
getEvent(nameOrSignatureOrTopic: "UpdateFees"): EventFragment;
|
|
51
|
+
}
|
|
52
|
+
export interface AddCollateralTokenEventObject {
|
|
53
|
+
token: string;
|
|
54
|
+
}
|
|
55
|
+
export type AddCollateralTokenEvent = TypedEvent<[
|
|
56
|
+
string
|
|
57
|
+
], AddCollateralTokenEventObject>;
|
|
58
|
+
export type AddCollateralTokenEventFilter = TypedEventFilter<AddCollateralTokenEvent>;
|
|
59
|
+
export interface AddEmergencyLiquidatorEventObject {
|
|
60
|
+
liquidator: string;
|
|
61
|
+
}
|
|
62
|
+
export type AddEmergencyLiquidatorEvent = TypedEvent<[
|
|
63
|
+
string
|
|
64
|
+
], AddEmergencyLiquidatorEventObject>;
|
|
65
|
+
export type AddEmergencyLiquidatorEventFilter = TypedEventFilter<AddEmergencyLiquidatorEvent>;
|
|
66
|
+
export interface AllowAdapterEventObject {
|
|
67
|
+
targetContract: string;
|
|
68
|
+
adapter: string;
|
|
69
|
+
}
|
|
70
|
+
export type AllowAdapterEvent = TypedEvent<[
|
|
71
|
+
string,
|
|
72
|
+
string
|
|
73
|
+
], AllowAdapterEventObject>;
|
|
74
|
+
export type AllowAdapterEventFilter = TypedEventFilter<AllowAdapterEvent>;
|
|
75
|
+
export interface AllowTokenEventObject {
|
|
76
|
+
token: string;
|
|
77
|
+
}
|
|
78
|
+
export type AllowTokenEvent = TypedEvent<[string], AllowTokenEventObject>;
|
|
79
|
+
export type AllowTokenEventFilter = TypedEventFilter<AllowTokenEvent>;
|
|
80
|
+
export interface CreditConfiguratorUpgradedEventObject {
|
|
81
|
+
creditConfigurator: string;
|
|
82
|
+
}
|
|
83
|
+
export type CreditConfiguratorUpgradedEvent = TypedEvent<[
|
|
84
|
+
string
|
|
85
|
+
], CreditConfiguratorUpgradedEventObject>;
|
|
86
|
+
export type CreditConfiguratorUpgradedEventFilter = TypedEventFilter<CreditConfiguratorUpgradedEvent>;
|
|
87
|
+
export interface ForbidAdapterEventObject {
|
|
88
|
+
targetContract: string;
|
|
89
|
+
adapter: string;
|
|
90
|
+
}
|
|
91
|
+
export type ForbidAdapterEvent = TypedEvent<[
|
|
92
|
+
string,
|
|
93
|
+
string
|
|
94
|
+
], ForbidAdapterEventObject>;
|
|
95
|
+
export type ForbidAdapterEventFilter = TypedEventFilter<ForbidAdapterEvent>;
|
|
96
|
+
export interface ForbidTokenEventObject {
|
|
97
|
+
token: string;
|
|
98
|
+
}
|
|
99
|
+
export type ForbidTokenEvent = TypedEvent<[string], ForbidTokenEventObject>;
|
|
100
|
+
export type ForbidTokenEventFilter = TypedEventFilter<ForbidTokenEvent>;
|
|
101
|
+
export interface QuoteTokenEventObject {
|
|
102
|
+
token: string;
|
|
103
|
+
}
|
|
104
|
+
export type QuoteTokenEvent = TypedEvent<[string], QuoteTokenEventObject>;
|
|
105
|
+
export type QuoteTokenEventFilter = TypedEventFilter<QuoteTokenEvent>;
|
|
106
|
+
export interface RemoveEmergencyLiquidatorEventObject {
|
|
107
|
+
liquidator: string;
|
|
108
|
+
}
|
|
109
|
+
export type RemoveEmergencyLiquidatorEvent = TypedEvent<[
|
|
110
|
+
string
|
|
111
|
+
], RemoveEmergencyLiquidatorEventObject>;
|
|
112
|
+
export type RemoveEmergencyLiquidatorEventFilter = TypedEventFilter<RemoveEmergencyLiquidatorEvent>;
|
|
113
|
+
export interface ResetCumulativeLossEventObject {
|
|
114
|
+
}
|
|
115
|
+
export type ResetCumulativeLossEvent = TypedEvent<[
|
|
116
|
+
], ResetCumulativeLossEventObject>;
|
|
117
|
+
export type ResetCumulativeLossEventFilter = TypedEventFilter<ResetCumulativeLossEvent>;
|
|
118
|
+
export interface ScheduleTokenLiquidationThresholdRampEventObject {
|
|
119
|
+
token: string;
|
|
120
|
+
liquidationThresholdInitial: number;
|
|
121
|
+
liquidationThresholdFinal: number;
|
|
122
|
+
timestampRampStart: number;
|
|
123
|
+
timestampRampEnd: number;
|
|
124
|
+
}
|
|
125
|
+
export type ScheduleTokenLiquidationThresholdRampEvent = TypedEvent<[
|
|
126
|
+
string,
|
|
127
|
+
number,
|
|
128
|
+
number,
|
|
129
|
+
number,
|
|
130
|
+
number
|
|
131
|
+
], ScheduleTokenLiquidationThresholdRampEventObject>;
|
|
132
|
+
export type ScheduleTokenLiquidationThresholdRampEventFilter = TypedEventFilter<ScheduleTokenLiquidationThresholdRampEvent>;
|
|
133
|
+
export interface SetBorrowingLimitsEventObject {
|
|
134
|
+
minDebt: BigNumber;
|
|
135
|
+
maxDebt: BigNumber;
|
|
136
|
+
}
|
|
137
|
+
export type SetBorrowingLimitsEvent = TypedEvent<[
|
|
138
|
+
BigNumber,
|
|
139
|
+
BigNumber
|
|
140
|
+
], SetBorrowingLimitsEventObject>;
|
|
141
|
+
export type SetBorrowingLimitsEventFilter = TypedEventFilter<SetBorrowingLimitsEvent>;
|
|
142
|
+
export interface SetBotListEventObject {
|
|
143
|
+
botList: string;
|
|
144
|
+
}
|
|
145
|
+
export type SetBotListEvent = TypedEvent<[string], SetBotListEventObject>;
|
|
146
|
+
export type SetBotListEventFilter = TypedEventFilter<SetBotListEvent>;
|
|
147
|
+
export interface SetCreditFacadeEventObject {
|
|
148
|
+
creditFacade: string;
|
|
149
|
+
}
|
|
150
|
+
export type SetCreditFacadeEvent = TypedEvent<[
|
|
151
|
+
string
|
|
152
|
+
], SetCreditFacadeEventObject>;
|
|
153
|
+
export type SetCreditFacadeEventFilter = TypedEventFilter<SetCreditFacadeEvent>;
|
|
154
|
+
export interface SetExpirationDateEventObject {
|
|
155
|
+
expirationDate: number;
|
|
156
|
+
}
|
|
157
|
+
export type SetExpirationDateEvent = TypedEvent<[
|
|
158
|
+
number
|
|
159
|
+
], SetExpirationDateEventObject>;
|
|
160
|
+
export type SetExpirationDateEventFilter = TypedEventFilter<SetExpirationDateEvent>;
|
|
161
|
+
export interface SetMaxCumulativeLossEventObject {
|
|
162
|
+
maxCumulativeLoss: BigNumber;
|
|
163
|
+
}
|
|
164
|
+
export type SetMaxCumulativeLossEvent = TypedEvent<[
|
|
165
|
+
BigNumber
|
|
166
|
+
], SetMaxCumulativeLossEventObject>;
|
|
167
|
+
export type SetMaxCumulativeLossEventFilter = TypedEventFilter<SetMaxCumulativeLossEvent>;
|
|
168
|
+
export interface SetMaxDebtPerBlockMultiplierEventObject {
|
|
169
|
+
maxDebtPerBlockMultiplier: number;
|
|
170
|
+
}
|
|
171
|
+
export type SetMaxDebtPerBlockMultiplierEvent = TypedEvent<[
|
|
172
|
+
number
|
|
173
|
+
], SetMaxDebtPerBlockMultiplierEventObject>;
|
|
174
|
+
export type SetMaxDebtPerBlockMultiplierEventFilter = TypedEventFilter<SetMaxDebtPerBlockMultiplierEvent>;
|
|
175
|
+
export interface SetMaxEnabledTokensEventObject {
|
|
176
|
+
maxEnabledTokens: number;
|
|
177
|
+
}
|
|
178
|
+
export type SetMaxEnabledTokensEvent = TypedEvent<[
|
|
179
|
+
number
|
|
180
|
+
], SetMaxEnabledTokensEventObject>;
|
|
181
|
+
export type SetMaxEnabledTokensEventFilter = TypedEventFilter<SetMaxEnabledTokensEvent>;
|
|
182
|
+
export interface SetPriceOracleEventObject {
|
|
183
|
+
priceOracle: string;
|
|
184
|
+
}
|
|
185
|
+
export type SetPriceOracleEvent = TypedEvent<[
|
|
186
|
+
string
|
|
187
|
+
], SetPriceOracleEventObject>;
|
|
188
|
+
export type SetPriceOracleEventFilter = TypedEventFilter<SetPriceOracleEvent>;
|
|
189
|
+
export interface SetTokenLiquidationThresholdEventObject {
|
|
190
|
+
token: string;
|
|
191
|
+
liquidationThreshold: number;
|
|
192
|
+
}
|
|
193
|
+
export type SetTokenLiquidationThresholdEvent = TypedEvent<[
|
|
194
|
+
string,
|
|
195
|
+
number
|
|
196
|
+
], SetTokenLiquidationThresholdEventObject>;
|
|
197
|
+
export type SetTokenLiquidationThresholdEventFilter = TypedEventFilter<SetTokenLiquidationThresholdEvent>;
|
|
198
|
+
export interface UpdateFeesEventObject {
|
|
199
|
+
feeInterest: number;
|
|
200
|
+
feeLiquidation: number;
|
|
201
|
+
liquidationPremium: number;
|
|
202
|
+
feeLiquidationExpired: number;
|
|
203
|
+
liquidationPremiumExpired: number;
|
|
204
|
+
}
|
|
205
|
+
export type UpdateFeesEvent = TypedEvent<[
|
|
206
|
+
number,
|
|
207
|
+
number,
|
|
208
|
+
number,
|
|
209
|
+
number,
|
|
210
|
+
number
|
|
211
|
+
], UpdateFeesEventObject>;
|
|
212
|
+
export type UpdateFeesEventFilter = TypedEventFilter<UpdateFeesEvent>;
|
|
213
|
+
export interface ICreditConfiguratorV3Events extends BaseContract {
|
|
214
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
215
|
+
attach(addressOrName: string): this;
|
|
216
|
+
deployed(): Promise<this>;
|
|
217
|
+
interface: ICreditConfiguratorV3EventsInterface;
|
|
218
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
219
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
220
|
+
listeners(eventName?: string): Array<Listener>;
|
|
221
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
222
|
+
removeAllListeners(eventName?: string): this;
|
|
223
|
+
off: OnEvent<this>;
|
|
224
|
+
on: OnEvent<this>;
|
|
225
|
+
once: OnEvent<this>;
|
|
226
|
+
removeListener: OnEvent<this>;
|
|
227
|
+
functions: {};
|
|
228
|
+
callStatic: {};
|
|
229
|
+
filters: {
|
|
230
|
+
"AddCollateralToken(address)"(token?: PromiseOrValue<string> | null): AddCollateralTokenEventFilter;
|
|
231
|
+
AddCollateralToken(token?: PromiseOrValue<string> | null): AddCollateralTokenEventFilter;
|
|
232
|
+
"AddEmergencyLiquidator(address)"(liquidator?: PromiseOrValue<string> | null): AddEmergencyLiquidatorEventFilter;
|
|
233
|
+
AddEmergencyLiquidator(liquidator?: PromiseOrValue<string> | null): AddEmergencyLiquidatorEventFilter;
|
|
234
|
+
"AllowAdapter(address,address)"(targetContract?: PromiseOrValue<string> | null, adapter?: PromiseOrValue<string> | null): AllowAdapterEventFilter;
|
|
235
|
+
AllowAdapter(targetContract?: PromiseOrValue<string> | null, adapter?: PromiseOrValue<string> | null): AllowAdapterEventFilter;
|
|
236
|
+
"AllowToken(address)"(token?: PromiseOrValue<string> | null): AllowTokenEventFilter;
|
|
237
|
+
AllowToken(token?: PromiseOrValue<string> | null): AllowTokenEventFilter;
|
|
238
|
+
"CreditConfiguratorUpgraded(address)"(creditConfigurator?: PromiseOrValue<string> | null): CreditConfiguratorUpgradedEventFilter;
|
|
239
|
+
CreditConfiguratorUpgraded(creditConfigurator?: PromiseOrValue<string> | null): CreditConfiguratorUpgradedEventFilter;
|
|
240
|
+
"ForbidAdapter(address,address)"(targetContract?: PromiseOrValue<string> | null, adapter?: PromiseOrValue<string> | null): ForbidAdapterEventFilter;
|
|
241
|
+
ForbidAdapter(targetContract?: PromiseOrValue<string> | null, adapter?: PromiseOrValue<string> | null): ForbidAdapterEventFilter;
|
|
242
|
+
"ForbidToken(address)"(token?: PromiseOrValue<string> | null): ForbidTokenEventFilter;
|
|
243
|
+
ForbidToken(token?: PromiseOrValue<string> | null): ForbidTokenEventFilter;
|
|
244
|
+
"QuoteToken(address)"(token?: PromiseOrValue<string> | null): QuoteTokenEventFilter;
|
|
245
|
+
QuoteToken(token?: PromiseOrValue<string> | null): QuoteTokenEventFilter;
|
|
246
|
+
"RemoveEmergencyLiquidator(address)"(liquidator?: PromiseOrValue<string> | null): RemoveEmergencyLiquidatorEventFilter;
|
|
247
|
+
RemoveEmergencyLiquidator(liquidator?: PromiseOrValue<string> | null): RemoveEmergencyLiquidatorEventFilter;
|
|
248
|
+
"ResetCumulativeLoss()"(): ResetCumulativeLossEventFilter;
|
|
249
|
+
ResetCumulativeLoss(): ResetCumulativeLossEventFilter;
|
|
250
|
+
"ScheduleTokenLiquidationThresholdRamp(address,uint16,uint16,uint40,uint40)"(token?: PromiseOrValue<string> | null, liquidationThresholdInitial?: null, liquidationThresholdFinal?: null, timestampRampStart?: null, timestampRampEnd?: null): ScheduleTokenLiquidationThresholdRampEventFilter;
|
|
251
|
+
ScheduleTokenLiquidationThresholdRamp(token?: PromiseOrValue<string> | null, liquidationThresholdInitial?: null, liquidationThresholdFinal?: null, timestampRampStart?: null, timestampRampEnd?: null): ScheduleTokenLiquidationThresholdRampEventFilter;
|
|
252
|
+
"SetBorrowingLimits(uint256,uint256)"(minDebt?: null, maxDebt?: null): SetBorrowingLimitsEventFilter;
|
|
253
|
+
SetBorrowingLimits(minDebt?: null, maxDebt?: null): SetBorrowingLimitsEventFilter;
|
|
254
|
+
"SetBotList(address)"(botList?: PromiseOrValue<string> | null): SetBotListEventFilter;
|
|
255
|
+
SetBotList(botList?: PromiseOrValue<string> | null): SetBotListEventFilter;
|
|
256
|
+
"SetCreditFacade(address)"(creditFacade?: PromiseOrValue<string> | null): SetCreditFacadeEventFilter;
|
|
257
|
+
SetCreditFacade(creditFacade?: PromiseOrValue<string> | null): SetCreditFacadeEventFilter;
|
|
258
|
+
"SetExpirationDate(uint40)"(expirationDate?: null): SetExpirationDateEventFilter;
|
|
259
|
+
SetExpirationDate(expirationDate?: null): SetExpirationDateEventFilter;
|
|
260
|
+
"SetMaxCumulativeLoss(uint128)"(maxCumulativeLoss?: null): SetMaxCumulativeLossEventFilter;
|
|
261
|
+
SetMaxCumulativeLoss(maxCumulativeLoss?: null): SetMaxCumulativeLossEventFilter;
|
|
262
|
+
"SetMaxDebtPerBlockMultiplier(uint8)"(maxDebtPerBlockMultiplier?: null): SetMaxDebtPerBlockMultiplierEventFilter;
|
|
263
|
+
SetMaxDebtPerBlockMultiplier(maxDebtPerBlockMultiplier?: null): SetMaxDebtPerBlockMultiplierEventFilter;
|
|
264
|
+
"SetMaxEnabledTokens(uint8)"(maxEnabledTokens?: null): SetMaxEnabledTokensEventFilter;
|
|
265
|
+
SetMaxEnabledTokens(maxEnabledTokens?: null): SetMaxEnabledTokensEventFilter;
|
|
266
|
+
"SetPriceOracle(address)"(priceOracle?: PromiseOrValue<string> | null): SetPriceOracleEventFilter;
|
|
267
|
+
SetPriceOracle(priceOracle?: PromiseOrValue<string> | null): SetPriceOracleEventFilter;
|
|
268
|
+
"SetTokenLiquidationThreshold(address,uint16)"(token?: PromiseOrValue<string> | null, liquidationThreshold?: null): SetTokenLiquidationThresholdEventFilter;
|
|
269
|
+
SetTokenLiquidationThreshold(token?: PromiseOrValue<string> | null, liquidationThreshold?: null): SetTokenLiquidationThresholdEventFilter;
|
|
270
|
+
"UpdateFees(uint16,uint16,uint16,uint16,uint16)"(feeInterest?: null, feeLiquidation?: null, liquidationPremium?: null, feeLiquidationExpired?: null, liquidationPremiumExpired?: null): UpdateFeesEventFilter;
|
|
271
|
+
UpdateFees(feeInterest?: null, feeLiquidation?: null, liquidationPremium?: null, feeLiquidationExpired?: null, liquidationPremiumExpired?: null): UpdateFeesEventFilter;
|
|
272
|
+
};
|
|
273
|
+
estimateGas: {};
|
|
274
|
+
populateTransaction: {};
|
|
275
|
+
}
|
|
@@ -12,7 +12,7 @@ export type BalanceStructOutput = [string, BigNumber] & {
|
|
|
12
12
|
};
|
|
13
13
|
export interface ICreditFacadeV2ExtendedInterface extends utils.Interface {
|
|
14
14
|
functions: {
|
|
15
|
-
"addCollateral(address,
|
|
15
|
+
"addCollateral(address,uint256)": FunctionFragment;
|
|
16
16
|
"decreaseDebt(uint256)": FunctionFragment;
|
|
17
17
|
"disableToken(address)": FunctionFragment;
|
|
18
18
|
"enableToken(address)": FunctionFragment;
|
|
@@ -20,11 +20,7 @@ export interface ICreditFacadeV2ExtendedInterface extends utils.Interface {
|
|
|
20
20
|
"revertIfReceivedLessThan((address,uint256)[])": FunctionFragment;
|
|
21
21
|
};
|
|
22
22
|
getFunction(nameOrSignatureOrTopic: "addCollateral" | "decreaseDebt" | "disableToken" | "enableToken" | "increaseDebt" | "revertIfReceivedLessThan"): FunctionFragment;
|
|
23
|
-
encodeFunctionData(functionFragment: "addCollateral", values: [
|
|
24
|
-
PromiseOrValue<string>,
|
|
25
|
-
PromiseOrValue<string>,
|
|
26
|
-
PromiseOrValue<BigNumberish>
|
|
27
|
-
]): string;
|
|
23
|
+
encodeFunctionData(functionFragment: "addCollateral", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
|
|
28
24
|
encodeFunctionData(functionFragment: "decreaseDebt", values: [PromiseOrValue<BigNumberish>]): string;
|
|
29
25
|
encodeFunctionData(functionFragment: "disableToken", values: [PromiseOrValue<string>]): string;
|
|
30
26
|
encodeFunctionData(functionFragment: "enableToken", values: [PromiseOrValue<string>]): string;
|
|
@@ -53,7 +49,7 @@ export interface ICreditFacadeV2Extended extends BaseContract {
|
|
|
53
49
|
once: OnEvent<this>;
|
|
54
50
|
removeListener: OnEvent<this>;
|
|
55
51
|
functions: {
|
|
56
|
-
addCollateral(
|
|
52
|
+
addCollateral(token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & {
|
|
57
53
|
from?: PromiseOrValue<string>;
|
|
58
54
|
}): Promise<ContractTransaction>;
|
|
59
55
|
decreaseDebt(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
@@ -72,7 +68,7 @@ export interface ICreditFacadeV2Extended extends BaseContract {
|
|
|
72
68
|
from?: PromiseOrValue<string>;
|
|
73
69
|
}): Promise<ContractTransaction>;
|
|
74
70
|
};
|
|
75
|
-
addCollateral(
|
|
71
|
+
addCollateral(token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & {
|
|
76
72
|
from?: PromiseOrValue<string>;
|
|
77
73
|
}): Promise<ContractTransaction>;
|
|
78
74
|
decreaseDebt(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
@@ -91,7 +87,7 @@ export interface ICreditFacadeV2Extended extends BaseContract {
|
|
|
91
87
|
from?: PromiseOrValue<string>;
|
|
92
88
|
}): Promise<ContractTransaction>;
|
|
93
89
|
callStatic: {
|
|
94
|
-
addCollateral(
|
|
90
|
+
addCollateral(token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
|
|
95
91
|
decreaseDebt(amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
|
|
96
92
|
disableToken(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
|
|
97
93
|
enableToken(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
|
|
@@ -100,7 +96,7 @@ export interface ICreditFacadeV2Extended extends BaseContract {
|
|
|
100
96
|
};
|
|
101
97
|
filters: {};
|
|
102
98
|
estimateGas: {
|
|
103
|
-
addCollateral(
|
|
99
|
+
addCollateral(token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & {
|
|
104
100
|
from?: PromiseOrValue<string>;
|
|
105
101
|
}): Promise<BigNumber>;
|
|
106
102
|
decreaseDebt(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
@@ -120,7 +116,7 @@ export interface ICreditFacadeV2Extended extends BaseContract {
|
|
|
120
116
|
}): Promise<BigNumber>;
|
|
121
117
|
};
|
|
122
118
|
populateTransaction: {
|
|
123
|
-
addCollateral(
|
|
119
|
+
addCollateral(token: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & {
|
|
124
120
|
from?: PromiseOrValue<string>;
|
|
125
121
|
}): Promise<PopulatedTransaction>;
|
|
126
122
|
decreaseDebt(amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|