@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
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ICreditConfiguratorV3Events__factory = exports.ICreditConfiguratorV3__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
var ICreditConfiguratorV3__factory_1 = require("./ICreditConfiguratorV3__factory");
|
|
8
|
+
Object.defineProperty(exports, "ICreditConfiguratorV3__factory", { enumerable: true, get: function () { return ICreditConfiguratorV3__factory_1.ICreditConfiguratorV3__factory; } });
|
|
9
|
+
var ICreditConfiguratorV3Events__factory_1 = require("./ICreditConfiguratorV3Events__factory");
|
|
10
|
+
Object.defineProperty(exports, "ICreditConfiguratorV3Events__factory", { enumerable: true, get: function () { return ICreditConfiguratorV3Events__factory_1.ICreditConfiguratorV3Events__factory; } });
|
|
@@ -4,10 +4,6 @@ import type { ICreditFacadeV2Extended, ICreditFacadeV2ExtendedInterface } from "
|
|
|
4
4
|
export declare class ICreditFacadeV2Extended__factory {
|
|
5
5
|
static readonly abi: readonly [{
|
|
6
6
|
readonly inputs: readonly [{
|
|
7
|
-
readonly internalType: "address";
|
|
8
|
-
readonly name: "onBehalfOf";
|
|
9
|
-
readonly type: "address";
|
|
10
|
-
}, {
|
|
11
7
|
readonly internalType: "address";
|
|
12
8
|
readonly name: "token";
|
|
13
9
|
readonly type: "address";
|
|
@@ -147,13 +147,8 @@ export declare class ICreditFacadeV3Events__factory {
|
|
|
147
147
|
}, {
|
|
148
148
|
readonly indexed: false;
|
|
149
149
|
readonly internalType: "uint256";
|
|
150
|
-
readonly name: "debt";
|
|
151
|
-
readonly type: "uint256";
|
|
152
|
-
}, {
|
|
153
|
-
readonly indexed: false;
|
|
154
|
-
readonly internalType: "uint16";
|
|
155
150
|
readonly name: "referralCode";
|
|
156
|
-
readonly type: "
|
|
151
|
+
readonly type: "uint256";
|
|
157
152
|
}];
|
|
158
153
|
readonly name: "OpenCreditAccount";
|
|
159
154
|
readonly type: "event";
|
|
@@ -186,14 +186,8 @@ const _abi = [
|
|
|
186
186
|
{
|
|
187
187
|
indexed: false,
|
|
188
188
|
internalType: "uint256",
|
|
189
|
-
name: "debt",
|
|
190
|
-
type: "uint256",
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
indexed: false,
|
|
194
|
-
internalType: "uint16",
|
|
195
189
|
name: "referralCode",
|
|
196
|
-
type: "
|
|
190
|
+
type: "uint256",
|
|
197
191
|
},
|
|
198
192
|
],
|
|
199
193
|
name: "OpenCreditAccount",
|
|
@@ -147,13 +147,8 @@ export declare class ICreditFacadeV3__factory {
|
|
|
147
147
|
}, {
|
|
148
148
|
readonly indexed: false;
|
|
149
149
|
readonly internalType: "uint256";
|
|
150
|
-
readonly name: "debt";
|
|
151
|
-
readonly type: "uint256";
|
|
152
|
-
}, {
|
|
153
|
-
readonly indexed: false;
|
|
154
|
-
readonly internalType: "uint16";
|
|
155
150
|
readonly name: "referralCode";
|
|
156
|
-
readonly type: "
|
|
151
|
+
readonly type: "uint256";
|
|
157
152
|
}];
|
|
158
153
|
readonly name: "OpenCreditAccount";
|
|
159
154
|
readonly type: "event";
|
|
@@ -187,10 +182,20 @@ export declare class ICreditFacadeV3__factory {
|
|
|
187
182
|
}];
|
|
188
183
|
readonly name: "StartMultiCall";
|
|
189
184
|
readonly type: "event";
|
|
185
|
+
}, {
|
|
186
|
+
readonly inputs: readonly [];
|
|
187
|
+
readonly name: "botList";
|
|
188
|
+
readonly outputs: readonly [{
|
|
189
|
+
readonly internalType: "address";
|
|
190
|
+
readonly name: "";
|
|
191
|
+
readonly type: "address";
|
|
192
|
+
}];
|
|
193
|
+
readonly stateMutability: "view";
|
|
194
|
+
readonly type: "function";
|
|
190
195
|
}, {
|
|
191
196
|
readonly inputs: readonly [{
|
|
192
197
|
readonly internalType: "address";
|
|
193
|
-
readonly name: "
|
|
198
|
+
readonly name: "creditAccount";
|
|
194
199
|
readonly type: "address";
|
|
195
200
|
}, {
|
|
196
201
|
readonly components: readonly [{
|
|
@@ -307,6 +312,16 @@ export declare class ICreditFacadeV3__factory {
|
|
|
307
312
|
}];
|
|
308
313
|
readonly stateMutability: "view";
|
|
309
314
|
readonly type: "function";
|
|
315
|
+
}, {
|
|
316
|
+
readonly inputs: readonly [];
|
|
317
|
+
readonly name: "expirable";
|
|
318
|
+
readonly outputs: readonly [{
|
|
319
|
+
readonly internalType: "bool";
|
|
320
|
+
readonly name: "";
|
|
321
|
+
readonly type: "bool";
|
|
322
|
+
}];
|
|
323
|
+
readonly stateMutability: "view";
|
|
324
|
+
readonly type: "function";
|
|
310
325
|
}, {
|
|
311
326
|
readonly inputs: readonly [];
|
|
312
327
|
readonly name: "expirationDate";
|
|
@@ -376,6 +391,16 @@ export declare class ICreditFacadeV3__factory {
|
|
|
376
391
|
}];
|
|
377
392
|
readonly stateMutability: "view";
|
|
378
393
|
readonly type: "function";
|
|
394
|
+
}, {
|
|
395
|
+
readonly inputs: readonly [];
|
|
396
|
+
readonly name: "maxApprovedBots";
|
|
397
|
+
readonly outputs: readonly [{
|
|
398
|
+
readonly internalType: "uint256";
|
|
399
|
+
readonly name: "";
|
|
400
|
+
readonly type: "uint256";
|
|
401
|
+
}];
|
|
402
|
+
readonly stateMutability: "view";
|
|
403
|
+
readonly type: "function";
|
|
379
404
|
}, {
|
|
380
405
|
readonly inputs: readonly [];
|
|
381
406
|
readonly name: "maxDebtPerBlockMultiplier";
|
|
@@ -386,6 +411,16 @@ export declare class ICreditFacadeV3__factory {
|
|
|
386
411
|
}];
|
|
387
412
|
readonly stateMutability: "view";
|
|
388
413
|
readonly type: "function";
|
|
414
|
+
}, {
|
|
415
|
+
readonly inputs: readonly [];
|
|
416
|
+
readonly name: "maxQuotaMultiplier";
|
|
417
|
+
readonly outputs: readonly [{
|
|
418
|
+
readonly internalType: "uint256";
|
|
419
|
+
readonly name: "";
|
|
420
|
+
readonly type: "uint256";
|
|
421
|
+
}];
|
|
422
|
+
readonly stateMutability: "view";
|
|
423
|
+
readonly type: "function";
|
|
389
424
|
}, {
|
|
390
425
|
readonly inputs: readonly [{
|
|
391
426
|
readonly internalType: "address";
|
|
@@ -411,10 +446,6 @@ export declare class ICreditFacadeV3__factory {
|
|
|
411
446
|
readonly type: "function";
|
|
412
447
|
}, {
|
|
413
448
|
readonly inputs: readonly [{
|
|
414
|
-
readonly internalType: "uint256";
|
|
415
|
-
readonly name: "debt";
|
|
416
|
-
readonly type: "uint256";
|
|
417
|
-
}, {
|
|
418
449
|
readonly internalType: "address";
|
|
419
450
|
readonly name: "onBehalfOf";
|
|
420
451
|
readonly type: "address";
|
|
@@ -432,9 +463,9 @@ export declare class ICreditFacadeV3__factory {
|
|
|
432
463
|
readonly name: "calls";
|
|
433
464
|
readonly type: "tuple[]";
|
|
434
465
|
}, {
|
|
435
|
-
readonly internalType: "
|
|
466
|
+
readonly internalType: "uint256";
|
|
436
467
|
readonly name: "referralCode";
|
|
437
|
-
readonly type: "
|
|
468
|
+
readonly type: "uint256";
|
|
438
469
|
}];
|
|
439
470
|
readonly name: "openCreditAccount";
|
|
440
471
|
readonly outputs: readonly [{
|
|
@@ -444,6 +475,16 @@ export declare class ICreditFacadeV3__factory {
|
|
|
444
475
|
}];
|
|
445
476
|
readonly stateMutability: "payable";
|
|
446
477
|
readonly type: "function";
|
|
478
|
+
}, {
|
|
479
|
+
readonly inputs: readonly [{
|
|
480
|
+
readonly internalType: "address";
|
|
481
|
+
readonly name: "newBotList";
|
|
482
|
+
readonly type: "address";
|
|
483
|
+
}];
|
|
484
|
+
readonly name: "setBotList";
|
|
485
|
+
readonly outputs: readonly [];
|
|
486
|
+
readonly stateMutability: "nonpayable";
|
|
487
|
+
readonly type: "function";
|
|
447
488
|
}, {
|
|
448
489
|
readonly inputs: readonly [{
|
|
449
490
|
readonly internalType: "address";
|
|
@@ -470,6 +511,76 @@ export declare class ICreditFacadeV3__factory {
|
|
|
470
511
|
readonly outputs: readonly [];
|
|
471
512
|
readonly stateMutability: "nonpayable";
|
|
472
513
|
readonly type: "function";
|
|
514
|
+
}, {
|
|
515
|
+
readonly inputs: readonly [{
|
|
516
|
+
readonly internalType: "uint128";
|
|
517
|
+
readonly name: "newMaxCumulativeLoss";
|
|
518
|
+
readonly type: "uint128";
|
|
519
|
+
}, {
|
|
520
|
+
readonly internalType: "bool";
|
|
521
|
+
readonly name: "resetCumulativeLoss";
|
|
522
|
+
readonly type: "bool";
|
|
523
|
+
}];
|
|
524
|
+
readonly name: "setCumulativeLossParams";
|
|
525
|
+
readonly outputs: readonly [];
|
|
526
|
+
readonly stateMutability: "nonpayable";
|
|
527
|
+
readonly type: "function";
|
|
528
|
+
}, {
|
|
529
|
+
readonly inputs: readonly [{
|
|
530
|
+
readonly internalType: "uint128";
|
|
531
|
+
readonly name: "newMinDebt";
|
|
532
|
+
readonly type: "uint128";
|
|
533
|
+
}, {
|
|
534
|
+
readonly internalType: "uint128";
|
|
535
|
+
readonly name: "newMaxDebt";
|
|
536
|
+
readonly type: "uint128";
|
|
537
|
+
}, {
|
|
538
|
+
readonly internalType: "uint8";
|
|
539
|
+
readonly name: "newMaxDebtPerBlockMultiplier";
|
|
540
|
+
readonly type: "uint8";
|
|
541
|
+
}];
|
|
542
|
+
readonly name: "setDebtLimits";
|
|
543
|
+
readonly outputs: readonly [];
|
|
544
|
+
readonly stateMutability: "nonpayable";
|
|
545
|
+
readonly type: "function";
|
|
546
|
+
}, {
|
|
547
|
+
readonly inputs: readonly [{
|
|
548
|
+
readonly internalType: "address";
|
|
549
|
+
readonly name: "liquidator";
|
|
550
|
+
readonly type: "address";
|
|
551
|
+
}, {
|
|
552
|
+
readonly internalType: "enum AllowanceAction";
|
|
553
|
+
readonly name: "allowance";
|
|
554
|
+
readonly type: "uint8";
|
|
555
|
+
}];
|
|
556
|
+
readonly name: "setEmergencyLiquidator";
|
|
557
|
+
readonly outputs: readonly [];
|
|
558
|
+
readonly stateMutability: "nonpayable";
|
|
559
|
+
readonly type: "function";
|
|
560
|
+
}, {
|
|
561
|
+
readonly inputs: readonly [{
|
|
562
|
+
readonly internalType: "uint40";
|
|
563
|
+
readonly name: "newExpirationDate";
|
|
564
|
+
readonly type: "uint40";
|
|
565
|
+
}];
|
|
566
|
+
readonly name: "setExpirationDate";
|
|
567
|
+
readonly outputs: readonly [];
|
|
568
|
+
readonly stateMutability: "nonpayable";
|
|
569
|
+
readonly type: "function";
|
|
570
|
+
}, {
|
|
571
|
+
readonly inputs: readonly [{
|
|
572
|
+
readonly internalType: "address";
|
|
573
|
+
readonly name: "token";
|
|
574
|
+
readonly type: "address";
|
|
575
|
+
}, {
|
|
576
|
+
readonly internalType: "enum AllowanceAction";
|
|
577
|
+
readonly name: "allowance";
|
|
578
|
+
readonly type: "uint8";
|
|
579
|
+
}];
|
|
580
|
+
readonly name: "setTokenAllowance";
|
|
581
|
+
readonly outputs: readonly [];
|
|
582
|
+
readonly stateMutability: "nonpayable";
|
|
583
|
+
readonly type: "function";
|
|
473
584
|
}, {
|
|
474
585
|
readonly inputs: readonly [];
|
|
475
586
|
readonly name: "version";
|
|
@@ -480,6 +591,26 @@ export declare class ICreditFacadeV3__factory {
|
|
|
480
591
|
}];
|
|
481
592
|
readonly stateMutability: "view";
|
|
482
593
|
readonly type: "function";
|
|
594
|
+
}, {
|
|
595
|
+
readonly inputs: readonly [];
|
|
596
|
+
readonly name: "weth";
|
|
597
|
+
readonly outputs: readonly [{
|
|
598
|
+
readonly internalType: "address";
|
|
599
|
+
readonly name: "";
|
|
600
|
+
readonly type: "address";
|
|
601
|
+
}];
|
|
602
|
+
readonly stateMutability: "view";
|
|
603
|
+
readonly type: "function";
|
|
604
|
+
}, {
|
|
605
|
+
readonly inputs: readonly [];
|
|
606
|
+
readonly name: "withdrawalManager";
|
|
607
|
+
readonly outputs: readonly [{
|
|
608
|
+
readonly internalType: "address";
|
|
609
|
+
readonly name: "";
|
|
610
|
+
readonly type: "address";
|
|
611
|
+
}];
|
|
612
|
+
readonly stateMutability: "view";
|
|
613
|
+
readonly type: "function";
|
|
483
614
|
}];
|
|
484
615
|
static createInterface(): ICreditFacadeV3Interface;
|
|
485
616
|
static connect(address: string, signerOrProvider: Signer | Provider): ICreditFacadeV3;
|
|
@@ -186,14 +186,8 @@ const _abi = [
|
|
|
186
186
|
{
|
|
187
187
|
indexed: false,
|
|
188
188
|
internalType: "uint256",
|
|
189
|
-
name: "debt",
|
|
190
|
-
type: "uint256",
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
indexed: false,
|
|
194
|
-
internalType: "uint16",
|
|
195
189
|
name: "referralCode",
|
|
196
|
-
type: "
|
|
190
|
+
type: "uint256",
|
|
197
191
|
},
|
|
198
192
|
],
|
|
199
193
|
name: "OpenCreditAccount",
|
|
@@ -237,11 +231,24 @@ const _abi = [
|
|
|
237
231
|
name: "StartMultiCall",
|
|
238
232
|
type: "event",
|
|
239
233
|
},
|
|
234
|
+
{
|
|
235
|
+
inputs: [],
|
|
236
|
+
name: "botList",
|
|
237
|
+
outputs: [
|
|
238
|
+
{
|
|
239
|
+
internalType: "address",
|
|
240
|
+
name: "",
|
|
241
|
+
type: "address",
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
stateMutability: "view",
|
|
245
|
+
type: "function",
|
|
246
|
+
},
|
|
240
247
|
{
|
|
241
248
|
inputs: [
|
|
242
249
|
{
|
|
243
250
|
internalType: "address",
|
|
244
|
-
name: "
|
|
251
|
+
name: "creditAccount",
|
|
245
252
|
type: "address",
|
|
246
253
|
},
|
|
247
254
|
{
|
|
@@ -393,6 +400,19 @@ const _abi = [
|
|
|
393
400
|
stateMutability: "view",
|
|
394
401
|
type: "function",
|
|
395
402
|
},
|
|
403
|
+
{
|
|
404
|
+
inputs: [],
|
|
405
|
+
name: "expirable",
|
|
406
|
+
outputs: [
|
|
407
|
+
{
|
|
408
|
+
internalType: "bool",
|
|
409
|
+
name: "",
|
|
410
|
+
type: "bool",
|
|
411
|
+
},
|
|
412
|
+
],
|
|
413
|
+
stateMutability: "view",
|
|
414
|
+
type: "function",
|
|
415
|
+
},
|
|
396
416
|
{
|
|
397
417
|
inputs: [],
|
|
398
418
|
name: "expirationDate",
|
|
@@ -482,6 +502,19 @@ const _abi = [
|
|
|
482
502
|
stateMutability: "view",
|
|
483
503
|
type: "function",
|
|
484
504
|
},
|
|
505
|
+
{
|
|
506
|
+
inputs: [],
|
|
507
|
+
name: "maxApprovedBots",
|
|
508
|
+
outputs: [
|
|
509
|
+
{
|
|
510
|
+
internalType: "uint256",
|
|
511
|
+
name: "",
|
|
512
|
+
type: "uint256",
|
|
513
|
+
},
|
|
514
|
+
],
|
|
515
|
+
stateMutability: "view",
|
|
516
|
+
type: "function",
|
|
517
|
+
},
|
|
485
518
|
{
|
|
486
519
|
inputs: [],
|
|
487
520
|
name: "maxDebtPerBlockMultiplier",
|
|
@@ -495,6 +528,19 @@ const _abi = [
|
|
|
495
528
|
stateMutability: "view",
|
|
496
529
|
type: "function",
|
|
497
530
|
},
|
|
531
|
+
{
|
|
532
|
+
inputs: [],
|
|
533
|
+
name: "maxQuotaMultiplier",
|
|
534
|
+
outputs: [
|
|
535
|
+
{
|
|
536
|
+
internalType: "uint256",
|
|
537
|
+
name: "",
|
|
538
|
+
type: "uint256",
|
|
539
|
+
},
|
|
540
|
+
],
|
|
541
|
+
stateMutability: "view",
|
|
542
|
+
type: "function",
|
|
543
|
+
},
|
|
498
544
|
{
|
|
499
545
|
inputs: [
|
|
500
546
|
{
|
|
@@ -527,11 +573,6 @@ const _abi = [
|
|
|
527
573
|
},
|
|
528
574
|
{
|
|
529
575
|
inputs: [
|
|
530
|
-
{
|
|
531
|
-
internalType: "uint256",
|
|
532
|
-
name: "debt",
|
|
533
|
-
type: "uint256",
|
|
534
|
-
},
|
|
535
576
|
{
|
|
536
577
|
internalType: "address",
|
|
537
578
|
name: "onBehalfOf",
|
|
@@ -555,9 +596,9 @@ const _abi = [
|
|
|
555
596
|
type: "tuple[]",
|
|
556
597
|
},
|
|
557
598
|
{
|
|
558
|
-
internalType: "
|
|
599
|
+
internalType: "uint256",
|
|
559
600
|
name: "referralCode",
|
|
560
|
-
type: "
|
|
601
|
+
type: "uint256",
|
|
561
602
|
},
|
|
562
603
|
],
|
|
563
604
|
name: "openCreditAccount",
|
|
@@ -571,6 +612,19 @@ const _abi = [
|
|
|
571
612
|
stateMutability: "payable",
|
|
572
613
|
type: "function",
|
|
573
614
|
},
|
|
615
|
+
{
|
|
616
|
+
inputs: [
|
|
617
|
+
{
|
|
618
|
+
internalType: "address",
|
|
619
|
+
name: "newBotList",
|
|
620
|
+
type: "address",
|
|
621
|
+
},
|
|
622
|
+
],
|
|
623
|
+
name: "setBotList",
|
|
624
|
+
outputs: [],
|
|
625
|
+
stateMutability: "nonpayable",
|
|
626
|
+
type: "function",
|
|
627
|
+
},
|
|
574
628
|
{
|
|
575
629
|
inputs: [
|
|
576
630
|
{
|
|
@@ -604,6 +658,96 @@ const _abi = [
|
|
|
604
658
|
stateMutability: "nonpayable",
|
|
605
659
|
type: "function",
|
|
606
660
|
},
|
|
661
|
+
{
|
|
662
|
+
inputs: [
|
|
663
|
+
{
|
|
664
|
+
internalType: "uint128",
|
|
665
|
+
name: "newMaxCumulativeLoss",
|
|
666
|
+
type: "uint128",
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
internalType: "bool",
|
|
670
|
+
name: "resetCumulativeLoss",
|
|
671
|
+
type: "bool",
|
|
672
|
+
},
|
|
673
|
+
],
|
|
674
|
+
name: "setCumulativeLossParams",
|
|
675
|
+
outputs: [],
|
|
676
|
+
stateMutability: "nonpayable",
|
|
677
|
+
type: "function",
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
inputs: [
|
|
681
|
+
{
|
|
682
|
+
internalType: "uint128",
|
|
683
|
+
name: "newMinDebt",
|
|
684
|
+
type: "uint128",
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
internalType: "uint128",
|
|
688
|
+
name: "newMaxDebt",
|
|
689
|
+
type: "uint128",
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
internalType: "uint8",
|
|
693
|
+
name: "newMaxDebtPerBlockMultiplier",
|
|
694
|
+
type: "uint8",
|
|
695
|
+
},
|
|
696
|
+
],
|
|
697
|
+
name: "setDebtLimits",
|
|
698
|
+
outputs: [],
|
|
699
|
+
stateMutability: "nonpayable",
|
|
700
|
+
type: "function",
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
inputs: [
|
|
704
|
+
{
|
|
705
|
+
internalType: "address",
|
|
706
|
+
name: "liquidator",
|
|
707
|
+
type: "address",
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
internalType: "enum AllowanceAction",
|
|
711
|
+
name: "allowance",
|
|
712
|
+
type: "uint8",
|
|
713
|
+
},
|
|
714
|
+
],
|
|
715
|
+
name: "setEmergencyLiquidator",
|
|
716
|
+
outputs: [],
|
|
717
|
+
stateMutability: "nonpayable",
|
|
718
|
+
type: "function",
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
inputs: [
|
|
722
|
+
{
|
|
723
|
+
internalType: "uint40",
|
|
724
|
+
name: "newExpirationDate",
|
|
725
|
+
type: "uint40",
|
|
726
|
+
},
|
|
727
|
+
],
|
|
728
|
+
name: "setExpirationDate",
|
|
729
|
+
outputs: [],
|
|
730
|
+
stateMutability: "nonpayable",
|
|
731
|
+
type: "function",
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
inputs: [
|
|
735
|
+
{
|
|
736
|
+
internalType: "address",
|
|
737
|
+
name: "token",
|
|
738
|
+
type: "address",
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
internalType: "enum AllowanceAction",
|
|
742
|
+
name: "allowance",
|
|
743
|
+
type: "uint8",
|
|
744
|
+
},
|
|
745
|
+
],
|
|
746
|
+
name: "setTokenAllowance",
|
|
747
|
+
outputs: [],
|
|
748
|
+
stateMutability: "nonpayable",
|
|
749
|
+
type: "function",
|
|
750
|
+
},
|
|
607
751
|
{
|
|
608
752
|
inputs: [],
|
|
609
753
|
name: "version",
|
|
@@ -617,6 +761,32 @@ const _abi = [
|
|
|
617
761
|
stateMutability: "view",
|
|
618
762
|
type: "function",
|
|
619
763
|
},
|
|
764
|
+
{
|
|
765
|
+
inputs: [],
|
|
766
|
+
name: "weth",
|
|
767
|
+
outputs: [
|
|
768
|
+
{
|
|
769
|
+
internalType: "address",
|
|
770
|
+
name: "",
|
|
771
|
+
type: "address",
|
|
772
|
+
},
|
|
773
|
+
],
|
|
774
|
+
stateMutability: "view",
|
|
775
|
+
type: "function",
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
inputs: [],
|
|
779
|
+
name: "withdrawalManager",
|
|
780
|
+
outputs: [
|
|
781
|
+
{
|
|
782
|
+
internalType: "address",
|
|
783
|
+
name: "",
|
|
784
|
+
type: "address",
|
|
785
|
+
},
|
|
786
|
+
],
|
|
787
|
+
stateMutability: "view",
|
|
788
|
+
type: "function",
|
|
789
|
+
},
|
|
620
790
|
];
|
|
621
791
|
class ICreditFacadeV3__factory {
|
|
622
792
|
static abi = _abi;
|
|
@@ -16,6 +16,36 @@ export declare class ICreditFacadeV3Multicall__factory {
|
|
|
16
16
|
readonly outputs: readonly [];
|
|
17
17
|
readonly stateMutability: "nonpayable";
|
|
18
18
|
readonly type: "function";
|
|
19
|
+
}, {
|
|
20
|
+
readonly inputs: readonly [{
|
|
21
|
+
readonly internalType: "address";
|
|
22
|
+
readonly name: "token";
|
|
23
|
+
readonly type: "address";
|
|
24
|
+
}, {
|
|
25
|
+
readonly internalType: "uint256";
|
|
26
|
+
readonly name: "amount";
|
|
27
|
+
readonly type: "uint256";
|
|
28
|
+
}, {
|
|
29
|
+
readonly internalType: "uint256";
|
|
30
|
+
readonly name: "deadline";
|
|
31
|
+
readonly type: "uint256";
|
|
32
|
+
}, {
|
|
33
|
+
readonly internalType: "uint8";
|
|
34
|
+
readonly name: "v";
|
|
35
|
+
readonly type: "uint8";
|
|
36
|
+
}, {
|
|
37
|
+
readonly internalType: "bytes32";
|
|
38
|
+
readonly name: "r";
|
|
39
|
+
readonly type: "bytes32";
|
|
40
|
+
}, {
|
|
41
|
+
readonly internalType: "bytes32";
|
|
42
|
+
readonly name: "s";
|
|
43
|
+
readonly type: "bytes32";
|
|
44
|
+
}];
|
|
45
|
+
readonly name: "addCollateralWithPermit";
|
|
46
|
+
readonly outputs: readonly [];
|
|
47
|
+
readonly stateMutability: "nonpayable";
|
|
48
|
+
readonly type: "function";
|
|
19
49
|
}, {
|
|
20
50
|
readonly inputs: readonly [{
|
|
21
51
|
readonly internalType: "uint256";
|
|
@@ -87,12 +117,12 @@ export declare class ICreditFacadeV3Multicall__factory {
|
|
|
87
117
|
readonly name: "token";
|
|
88
118
|
readonly type: "address";
|
|
89
119
|
}, {
|
|
90
|
-
readonly internalType: "
|
|
91
|
-
readonly name: "
|
|
92
|
-
readonly type: "
|
|
120
|
+
readonly internalType: "int256";
|
|
121
|
+
readonly name: "amount";
|
|
122
|
+
readonly type: "int256";
|
|
93
123
|
}];
|
|
94
|
-
readonly internalType: "struct
|
|
95
|
-
readonly name: "
|
|
124
|
+
readonly internalType: "struct BalanceDelta[]";
|
|
125
|
+
readonly name: "balanceDeltas";
|
|
96
126
|
readonly type: "tuple[]";
|
|
97
127
|
}];
|
|
98
128
|
readonly name: "revertIfReceivedLessThan";
|
|
@@ -24,6 +24,44 @@ const _abi = [
|
|
|
24
24
|
stateMutability: "nonpayable",
|
|
25
25
|
type: "function",
|
|
26
26
|
},
|
|
27
|
+
{
|
|
28
|
+
inputs: [
|
|
29
|
+
{
|
|
30
|
+
internalType: "address",
|
|
31
|
+
name: "token",
|
|
32
|
+
type: "address",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
internalType: "uint256",
|
|
36
|
+
name: "amount",
|
|
37
|
+
type: "uint256",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
internalType: "uint256",
|
|
41
|
+
name: "deadline",
|
|
42
|
+
type: "uint256",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
internalType: "uint8",
|
|
46
|
+
name: "v",
|
|
47
|
+
type: "uint8",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
internalType: "bytes32",
|
|
51
|
+
name: "r",
|
|
52
|
+
type: "bytes32",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
internalType: "bytes32",
|
|
56
|
+
name: "s",
|
|
57
|
+
type: "bytes32",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
name: "addCollateralWithPermit",
|
|
61
|
+
outputs: [],
|
|
62
|
+
stateMutability: "nonpayable",
|
|
63
|
+
type: "function",
|
|
64
|
+
},
|
|
27
65
|
{
|
|
28
66
|
inputs: [
|
|
29
67
|
{
|
|
@@ -117,13 +155,13 @@ const _abi = [
|
|
|
117
155
|
type: "address",
|
|
118
156
|
},
|
|
119
157
|
{
|
|
120
|
-
internalType: "
|
|
121
|
-
name: "
|
|
122
|
-
type: "
|
|
158
|
+
internalType: "int256",
|
|
159
|
+
name: "amount",
|
|
160
|
+
type: "int256",
|
|
123
161
|
},
|
|
124
162
|
],
|
|
125
|
-
internalType: "struct
|
|
126
|
-
name: "
|
|
163
|
+
internalType: "struct BalanceDelta[]",
|
|
164
|
+
name: "balanceDeltas",
|
|
127
165
|
type: "tuple[]",
|
|
128
166
|
},
|
|
129
167
|
],
|