@gearbox-protocol/sdk 3.0.0-next.5 → 3.0.0-next.50
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 +11 -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/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/IGearStakingV3.sol/IGearStakingV3.d.ts +408 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.d.ts +117 -0
- package/lib/types/IGearStakingV3.sol/index.d.ts +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/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/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/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 -13
- package/lib/types/factories/index.js +25 -25
- package/lib/types/factories/{IRouter__factory.d.ts → interfaces/IRouter__factory.d.ts} +15 -1
- package/lib/types/factories/{IRouter__factory.js → interfaces/IRouter__factory.js} +19 -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 +62 -48
- package/lib/types/index.js +52 -46
- package/lib/types/{IRouter.d.ts → interfaces/IRouter.d.ts} +12 -2
- package/lib/types/interfaces/IRouter.js +2 -0
- package/lib/types/interfaces/index.d.ts +1 -0
- package/lib/types/interfaces/index.js +2 -0
- 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/IAToken__factory.d.ts +0 -198
- package/lib/types/factories/IAToken__factory.js +0 -267
- 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/{IConvexV1BoosterAdapter.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.js} +0 -0
- /package/lib/types/{ERC20.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.js} +0 -0
- /package/lib/types/{draft-IERC20Permit.sol → IConvexV1BoosterAdapter.sol}/index.js +0 -0
- /package/lib/types/{IAToken.js → ICreditConfiguratorV3.sol/ICreditConfiguratorV3.js} +0 -0
- /package/lib/types/{ILendingPool.js → ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.js → ICreditConfiguratorV3.sol/index.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterEvents.js → IDegenDistributor.sol/IDegenDistributor.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions.js → IDegenDistributor.sol/IDegenDistributorEvents.js} +0 -0
- /package/lib/types/{IPoolV3.sol/IPoolBase.js → IDegenDistributor.sol/index.js} +0 -0
- /package/lib/types/{draft-IERC20Permit.sol/IERC20Permit.js → IERC20Permit.js} +0 -0
- /package/lib/types/{IRouter.js → IERC20ZapperDeposits.js} +0 -0
- /package/lib/types/{WATokenZapper.js → IETHZapperDeposits.js} +0 -0
- /package/lib/types/{WERC20ZapperBase.js → IGasPricer.js} +0 -0
- /package/lib/types/{WETHZapper.js → IGearStakingV3.sol/IGearStakingV3.js} +0 -0
- /package/lib/types/{WstETHZapper.js → IGearStakingV3.sol/IGearStakingV3Events.js} +0 -0
- /package/lib/types/{ZapperBase.js → IGearStakingV3.sol/index.js} +0 -0
- /package/lib/types/factories/{draft-IERC20Permit.sol/IERC20Permit__factory.js → IERC20Permit__factory.js} +0 -0
|
@@ -12,6 +12,16 @@ export declare class ICreditManagerV3__factory {
|
|
|
12
12
|
}];
|
|
13
13
|
readonly name: "SetCreditConfigurator";
|
|
14
14
|
readonly type: "event";
|
|
15
|
+
}, {
|
|
16
|
+
readonly inputs: readonly [];
|
|
17
|
+
readonly name: "accountFactory";
|
|
18
|
+
readonly outputs: readonly [{
|
|
19
|
+
readonly internalType: "address";
|
|
20
|
+
readonly name: "";
|
|
21
|
+
readonly type: "address";
|
|
22
|
+
}];
|
|
23
|
+
readonly stateMutability: "view";
|
|
24
|
+
readonly type: "function";
|
|
15
25
|
}, {
|
|
16
26
|
readonly inputs: readonly [{
|
|
17
27
|
readonly internalType: "address";
|
|
@@ -21,7 +31,7 @@ export declare class ICreditManagerV3__factory {
|
|
|
21
31
|
readonly name: "adapterToContract";
|
|
22
32
|
readonly outputs: readonly [{
|
|
23
33
|
readonly internalType: "address";
|
|
24
|
-
readonly name: "";
|
|
34
|
+
readonly name: "targetContract";
|
|
25
35
|
readonly type: "address";
|
|
26
36
|
}];
|
|
27
37
|
readonly stateMutability: "view";
|
|
@@ -47,11 +57,21 @@ export declare class ICreditManagerV3__factory {
|
|
|
47
57
|
readonly name: "addCollateral";
|
|
48
58
|
readonly outputs: readonly [{
|
|
49
59
|
readonly internalType: "uint256";
|
|
50
|
-
readonly name: "";
|
|
60
|
+
readonly name: "tokenMask";
|
|
51
61
|
readonly type: "uint256";
|
|
52
62
|
}];
|
|
53
63
|
readonly stateMutability: "nonpayable";
|
|
54
64
|
readonly type: "function";
|
|
65
|
+
}, {
|
|
66
|
+
readonly inputs: readonly [{
|
|
67
|
+
readonly internalType: "address";
|
|
68
|
+
readonly name: "token";
|
|
69
|
+
readonly type: "address";
|
|
70
|
+
}];
|
|
71
|
+
readonly name: "addToken";
|
|
72
|
+
readonly outputs: readonly [];
|
|
73
|
+
readonly stateMutability: "nonpayable";
|
|
74
|
+
readonly type: "function";
|
|
55
75
|
}, {
|
|
56
76
|
readonly inputs: readonly [];
|
|
57
77
|
readonly name: "addressProvider";
|
|
@@ -146,7 +166,7 @@ export declare class ICreditManagerV3__factory {
|
|
|
146
166
|
readonly type: "address";
|
|
147
167
|
}];
|
|
148
168
|
readonly internalType: "struct CollateralDebtData";
|
|
149
|
-
readonly name: "
|
|
169
|
+
readonly name: "cdd";
|
|
150
170
|
readonly type: "tuple";
|
|
151
171
|
}];
|
|
152
172
|
readonly stateMutability: "view";
|
|
@@ -309,7 +329,49 @@ export declare class ICreditManagerV3__factory {
|
|
|
309
329
|
readonly name: "contractToAdapter";
|
|
310
330
|
readonly outputs: readonly [{
|
|
311
331
|
readonly internalType: "address";
|
|
312
|
-
readonly name: "";
|
|
332
|
+
readonly name: "adapter";
|
|
333
|
+
readonly type: "address";
|
|
334
|
+
}];
|
|
335
|
+
readonly stateMutability: "view";
|
|
336
|
+
readonly type: "function";
|
|
337
|
+
}, {
|
|
338
|
+
readonly inputs: readonly [{
|
|
339
|
+
readonly internalType: "address";
|
|
340
|
+
readonly name: "creditAccount";
|
|
341
|
+
readonly type: "address";
|
|
342
|
+
}];
|
|
343
|
+
readonly name: "creditAccountInfo";
|
|
344
|
+
readonly outputs: readonly [{
|
|
345
|
+
readonly internalType: "uint256";
|
|
346
|
+
readonly name: "debt";
|
|
347
|
+
readonly type: "uint256";
|
|
348
|
+
}, {
|
|
349
|
+
readonly internalType: "uint256";
|
|
350
|
+
readonly name: "cumulativeIndexLastUpdate";
|
|
351
|
+
readonly type: "uint256";
|
|
352
|
+
}, {
|
|
353
|
+
readonly internalType: "uint128";
|
|
354
|
+
readonly name: "cumulativeQuotaInterest";
|
|
355
|
+
readonly type: "uint128";
|
|
356
|
+
}, {
|
|
357
|
+
readonly internalType: "uint128";
|
|
358
|
+
readonly name: "quotaFees";
|
|
359
|
+
readonly type: "uint128";
|
|
360
|
+
}, {
|
|
361
|
+
readonly internalType: "uint256";
|
|
362
|
+
readonly name: "enabledTokensMask";
|
|
363
|
+
readonly type: "uint256";
|
|
364
|
+
}, {
|
|
365
|
+
readonly internalType: "uint16";
|
|
366
|
+
readonly name: "flags";
|
|
367
|
+
readonly type: "uint16";
|
|
368
|
+
}, {
|
|
369
|
+
readonly internalType: "uint64";
|
|
370
|
+
readonly name: "lastDebtUpdate";
|
|
371
|
+
readonly type: "uint64";
|
|
372
|
+
}, {
|
|
373
|
+
readonly internalType: "address";
|
|
374
|
+
readonly name: "borrower";
|
|
313
375
|
readonly type: "address";
|
|
314
376
|
}];
|
|
315
377
|
readonly stateMutability: "view";
|
|
@@ -344,7 +406,7 @@ export declare class ICreditManagerV3__factory {
|
|
|
344
406
|
readonly type: "function";
|
|
345
407
|
}, {
|
|
346
408
|
readonly inputs: readonly [];
|
|
347
|
-
readonly name: "
|
|
409
|
+
readonly name: "creditAccountsLen";
|
|
348
410
|
readonly outputs: readonly [{
|
|
349
411
|
readonly internalType: "uint256";
|
|
350
412
|
readonly name: "";
|
|
@@ -389,13 +451,13 @@ export declare class ICreditManagerV3__factory {
|
|
|
389
451
|
}, {
|
|
390
452
|
readonly inputs: readonly [{
|
|
391
453
|
readonly internalType: "bytes";
|
|
392
|
-
readonly name: "
|
|
454
|
+
readonly name: "data";
|
|
393
455
|
readonly type: "bytes";
|
|
394
456
|
}];
|
|
395
457
|
readonly name: "execute";
|
|
396
458
|
readonly outputs: readonly [{
|
|
397
459
|
readonly internalType: "bytes";
|
|
398
|
-
readonly name: "";
|
|
460
|
+
readonly name: "result";
|
|
399
461
|
readonly type: "bytes";
|
|
400
462
|
}];
|
|
401
463
|
readonly stateMutability: "nonpayable";
|
|
@@ -447,7 +509,7 @@ export declare class ICreditManagerV3__factory {
|
|
|
447
509
|
readonly type: "address";
|
|
448
510
|
}, {
|
|
449
511
|
readonly internalType: "uint256";
|
|
450
|
-
readonly name: "
|
|
512
|
+
readonly name: "enabledTokensMask";
|
|
451
513
|
readonly type: "uint256";
|
|
452
514
|
}, {
|
|
453
515
|
readonly internalType: "uint256[]";
|
|
@@ -461,7 +523,7 @@ export declare class ICreditManagerV3__factory {
|
|
|
461
523
|
readonly name: "fullCollateralCheck";
|
|
462
524
|
readonly outputs: readonly [{
|
|
463
525
|
readonly internalType: "uint256";
|
|
464
|
-
readonly name: "
|
|
526
|
+
readonly name: "enabledTokensMaskAfter";
|
|
465
527
|
readonly type: "uint256";
|
|
466
528
|
}];
|
|
467
529
|
readonly stateMutability: "nonpayable";
|
|
@@ -513,7 +575,7 @@ export declare class ICreditManagerV3__factory {
|
|
|
513
575
|
readonly name: "getTokenMaskOrRevert";
|
|
514
576
|
readonly outputs: readonly [{
|
|
515
577
|
readonly internalType: "uint256";
|
|
516
|
-
readonly name: "";
|
|
578
|
+
readonly name: "tokenMask";
|
|
517
579
|
readonly type: "uint256";
|
|
518
580
|
}];
|
|
519
581
|
readonly stateMutability: "view";
|
|
@@ -545,7 +607,7 @@ export declare class ICreditManagerV3__factory {
|
|
|
545
607
|
readonly name: "liquidationThresholds";
|
|
546
608
|
readonly outputs: readonly [{
|
|
547
609
|
readonly internalType: "uint16";
|
|
548
|
-
readonly name: "";
|
|
610
|
+
readonly name: "lt";
|
|
549
611
|
readonly type: "uint16";
|
|
550
612
|
}];
|
|
551
613
|
readonly stateMutability: "view";
|
|
@@ -620,12 +682,18 @@ export declare class ICreditManagerV3__factory {
|
|
|
620
682
|
}];
|
|
621
683
|
readonly stateMutability: "view";
|
|
622
684
|
readonly type: "function";
|
|
685
|
+
}, {
|
|
686
|
+
readonly inputs: readonly [];
|
|
687
|
+
readonly name: "name";
|
|
688
|
+
readonly outputs: readonly [{
|
|
689
|
+
readonly internalType: "string";
|
|
690
|
+
readonly name: "";
|
|
691
|
+
readonly type: "string";
|
|
692
|
+
}];
|
|
693
|
+
readonly stateMutability: "view";
|
|
694
|
+
readonly type: "function";
|
|
623
695
|
}, {
|
|
624
696
|
readonly inputs: readonly [{
|
|
625
|
-
readonly internalType: "uint256";
|
|
626
|
-
readonly name: "debt";
|
|
627
|
-
readonly type: "uint256";
|
|
628
|
-
}, {
|
|
629
697
|
readonly internalType: "address";
|
|
630
698
|
readonly name: "onBehalfOf";
|
|
631
699
|
readonly type: "address";
|
|
@@ -658,16 +726,6 @@ export declare class ICreditManagerV3__factory {
|
|
|
658
726
|
}];
|
|
659
727
|
readonly stateMutability: "view";
|
|
660
728
|
readonly type: "function";
|
|
661
|
-
}, {
|
|
662
|
-
readonly inputs: readonly [];
|
|
663
|
-
readonly name: "poolService";
|
|
664
|
-
readonly outputs: readonly [{
|
|
665
|
-
readonly internalType: "address";
|
|
666
|
-
readonly name: "";
|
|
667
|
-
readonly type: "address";
|
|
668
|
-
}];
|
|
669
|
-
readonly stateMutability: "view";
|
|
670
|
-
readonly type: "function";
|
|
671
729
|
}, {
|
|
672
730
|
readonly inputs: readonly [];
|
|
673
731
|
readonly name: "priceOracle";
|
|
@@ -743,6 +801,92 @@ export declare class ICreditManagerV3__factory {
|
|
|
743
801
|
readonly outputs: readonly [];
|
|
744
802
|
readonly stateMutability: "nonpayable";
|
|
745
803
|
readonly type: "function";
|
|
804
|
+
}, {
|
|
805
|
+
readonly inputs: readonly [{
|
|
806
|
+
readonly internalType: "address";
|
|
807
|
+
readonly name: "token";
|
|
808
|
+
readonly type: "address";
|
|
809
|
+
}, {
|
|
810
|
+
readonly internalType: "uint16";
|
|
811
|
+
readonly name: "ltInitial";
|
|
812
|
+
readonly type: "uint16";
|
|
813
|
+
}, {
|
|
814
|
+
readonly internalType: "uint16";
|
|
815
|
+
readonly name: "ltFinal";
|
|
816
|
+
readonly type: "uint16";
|
|
817
|
+
}, {
|
|
818
|
+
readonly internalType: "uint40";
|
|
819
|
+
readonly name: "timestampRampStart";
|
|
820
|
+
readonly type: "uint40";
|
|
821
|
+
}, {
|
|
822
|
+
readonly internalType: "uint24";
|
|
823
|
+
readonly name: "rampDuration";
|
|
824
|
+
readonly type: "uint24";
|
|
825
|
+
}];
|
|
826
|
+
readonly name: "setCollateralTokenData";
|
|
827
|
+
readonly outputs: readonly [];
|
|
828
|
+
readonly stateMutability: "nonpayable";
|
|
829
|
+
readonly type: "function";
|
|
830
|
+
}, {
|
|
831
|
+
readonly inputs: readonly [{
|
|
832
|
+
readonly internalType: "address";
|
|
833
|
+
readonly name: "adapter";
|
|
834
|
+
readonly type: "address";
|
|
835
|
+
}, {
|
|
836
|
+
readonly internalType: "address";
|
|
837
|
+
readonly name: "targetContract";
|
|
838
|
+
readonly type: "address";
|
|
839
|
+
}];
|
|
840
|
+
readonly name: "setContractAllowance";
|
|
841
|
+
readonly outputs: readonly [];
|
|
842
|
+
readonly stateMutability: "nonpayable";
|
|
843
|
+
readonly type: "function";
|
|
844
|
+
}, {
|
|
845
|
+
readonly inputs: readonly [{
|
|
846
|
+
readonly internalType: "address";
|
|
847
|
+
readonly name: "creditConfigurator";
|
|
848
|
+
readonly type: "address";
|
|
849
|
+
}];
|
|
850
|
+
readonly name: "setCreditConfigurator";
|
|
851
|
+
readonly outputs: readonly [];
|
|
852
|
+
readonly stateMutability: "nonpayable";
|
|
853
|
+
readonly type: "function";
|
|
854
|
+
}, {
|
|
855
|
+
readonly inputs: readonly [{
|
|
856
|
+
readonly internalType: "address";
|
|
857
|
+
readonly name: "creditFacade";
|
|
858
|
+
readonly type: "address";
|
|
859
|
+
}];
|
|
860
|
+
readonly name: "setCreditFacade";
|
|
861
|
+
readonly outputs: readonly [];
|
|
862
|
+
readonly stateMutability: "nonpayable";
|
|
863
|
+
readonly type: "function";
|
|
864
|
+
}, {
|
|
865
|
+
readonly inputs: readonly [{
|
|
866
|
+
readonly internalType: "uint16";
|
|
867
|
+
readonly name: "feeInterest";
|
|
868
|
+
readonly type: "uint16";
|
|
869
|
+
}, {
|
|
870
|
+
readonly internalType: "uint16";
|
|
871
|
+
readonly name: "feeLiquidation";
|
|
872
|
+
readonly type: "uint16";
|
|
873
|
+
}, {
|
|
874
|
+
readonly internalType: "uint16";
|
|
875
|
+
readonly name: "liquidationDiscount";
|
|
876
|
+
readonly type: "uint16";
|
|
877
|
+
}, {
|
|
878
|
+
readonly internalType: "uint16";
|
|
879
|
+
readonly name: "feeLiquidationExpired";
|
|
880
|
+
readonly type: "uint16";
|
|
881
|
+
}, {
|
|
882
|
+
readonly internalType: "uint16";
|
|
883
|
+
readonly name: "liquidationDiscountExpired";
|
|
884
|
+
readonly type: "uint16";
|
|
885
|
+
}];
|
|
886
|
+
readonly name: "setFees";
|
|
887
|
+
readonly outputs: readonly [];
|
|
888
|
+
readonly stateMutability: "nonpayable";
|
|
889
|
+
readonly type: "function";
|
|
746
890
|
}, {
|
|
747
891
|
readonly inputs: readonly [{
|
|
748
892
|
readonly internalType: "address";
|
|
@@ -761,6 +905,36 @@ export declare class ICreditManagerV3__factory {
|
|
|
761
905
|
readonly outputs: readonly [];
|
|
762
906
|
readonly stateMutability: "nonpayable";
|
|
763
907
|
readonly type: "function";
|
|
908
|
+
}, {
|
|
909
|
+
readonly inputs: readonly [{
|
|
910
|
+
readonly internalType: "uint8";
|
|
911
|
+
readonly name: "maxEnabledTokens";
|
|
912
|
+
readonly type: "uint8";
|
|
913
|
+
}];
|
|
914
|
+
readonly name: "setMaxEnabledTokens";
|
|
915
|
+
readonly outputs: readonly [];
|
|
916
|
+
readonly stateMutability: "nonpayable";
|
|
917
|
+
readonly type: "function";
|
|
918
|
+
}, {
|
|
919
|
+
readonly inputs: readonly [{
|
|
920
|
+
readonly internalType: "address";
|
|
921
|
+
readonly name: "priceOracle";
|
|
922
|
+
readonly type: "address";
|
|
923
|
+
}];
|
|
924
|
+
readonly name: "setPriceOracle";
|
|
925
|
+
readonly outputs: readonly [];
|
|
926
|
+
readonly stateMutability: "nonpayable";
|
|
927
|
+
readonly type: "function";
|
|
928
|
+
}, {
|
|
929
|
+
readonly inputs: readonly [{
|
|
930
|
+
readonly internalType: "uint256";
|
|
931
|
+
readonly name: "quotedTokensMask";
|
|
932
|
+
readonly type: "uint256";
|
|
933
|
+
}];
|
|
934
|
+
readonly name: "setQuotedMask";
|
|
935
|
+
readonly outputs: readonly [];
|
|
936
|
+
readonly stateMutability: "nonpayable";
|
|
937
|
+
readonly type: "function";
|
|
764
938
|
}, {
|
|
765
939
|
readonly inputs: readonly [];
|
|
766
940
|
readonly name: "underlying";
|