@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
|
@@ -1,22 +1,8 @@
|
|
|
1
1
|
import { Signer } from "ethers";
|
|
2
2
|
import type { Provider } from "@ethersproject/providers";
|
|
3
|
-
import type { ILidoV1Adapter, ILidoV1AdapterInterface } from "
|
|
3
|
+
import type { ILidoV1Adapter, ILidoV1AdapterInterface } from "../ILidoV1Adapter";
|
|
4
4
|
export declare class ILidoV1Adapter__factory {
|
|
5
5
|
static readonly abi: readonly [{
|
|
6
|
-
readonly inputs: readonly [];
|
|
7
|
-
readonly name: "LimitIsOverException";
|
|
8
|
-
readonly type: "error";
|
|
9
|
-
}, {
|
|
10
|
-
readonly anonymous: false;
|
|
11
|
-
readonly inputs: readonly [{
|
|
12
|
-
readonly indexed: false;
|
|
13
|
-
readonly internalType: "uint256";
|
|
14
|
-
readonly name: "_limit";
|
|
15
|
-
readonly type: "uint256";
|
|
16
|
-
}];
|
|
17
|
-
readonly name: "SetLimit";
|
|
18
|
-
readonly type: "event";
|
|
19
|
-
}, {
|
|
20
6
|
readonly inputs: readonly [];
|
|
21
7
|
readonly name: "_gearboxAdapterType";
|
|
22
8
|
readonly outputs: readonly [{
|
|
@@ -56,26 +42,6 @@ export declare class ILidoV1Adapter__factory {
|
|
|
56
42
|
}];
|
|
57
43
|
readonly stateMutability: "view";
|
|
58
44
|
readonly type: "function";
|
|
59
|
-
}, {
|
|
60
|
-
readonly inputs: readonly [];
|
|
61
|
-
readonly name: "limit";
|
|
62
|
-
readonly outputs: readonly [{
|
|
63
|
-
readonly internalType: "uint256";
|
|
64
|
-
readonly name: "";
|
|
65
|
-
readonly type: "uint256";
|
|
66
|
-
}];
|
|
67
|
-
readonly stateMutability: "view";
|
|
68
|
-
readonly type: "function";
|
|
69
|
-
}, {
|
|
70
|
-
readonly inputs: readonly [{
|
|
71
|
-
readonly internalType: "uint256";
|
|
72
|
-
readonly name: "_limit";
|
|
73
|
-
readonly type: "uint256";
|
|
74
|
-
}];
|
|
75
|
-
readonly name: "setLimit";
|
|
76
|
-
readonly outputs: readonly [];
|
|
77
|
-
readonly stateMutability: "nonpayable";
|
|
78
|
-
readonly type: "function";
|
|
79
45
|
}, {
|
|
80
46
|
readonly inputs: readonly [];
|
|
81
47
|
readonly name: "stETH";
|
|
@@ -6,24 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ILidoV1Adapter__factory = void 0;
|
|
7
7
|
const ethers_1 = require("ethers");
|
|
8
8
|
const _abi = [
|
|
9
|
-
{
|
|
10
|
-
inputs: [],
|
|
11
|
-
name: "LimitIsOverException",
|
|
12
|
-
type: "error",
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
anonymous: false,
|
|
16
|
-
inputs: [
|
|
17
|
-
{
|
|
18
|
-
indexed: false,
|
|
19
|
-
internalType: "uint256",
|
|
20
|
-
name: "_limit",
|
|
21
|
-
type: "uint256",
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
name: "SetLimit",
|
|
25
|
-
type: "event",
|
|
26
|
-
},
|
|
27
9
|
{
|
|
28
10
|
inputs: [],
|
|
29
11
|
name: "_gearboxAdapterType",
|
|
@@ -76,32 +58,6 @@ const _abi = [
|
|
|
76
58
|
stateMutability: "view",
|
|
77
59
|
type: "function",
|
|
78
60
|
},
|
|
79
|
-
{
|
|
80
|
-
inputs: [],
|
|
81
|
-
name: "limit",
|
|
82
|
-
outputs: [
|
|
83
|
-
{
|
|
84
|
-
internalType: "uint256",
|
|
85
|
-
name: "",
|
|
86
|
-
type: "uint256",
|
|
87
|
-
},
|
|
88
|
-
],
|
|
89
|
-
stateMutability: "view",
|
|
90
|
-
type: "function",
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
inputs: [
|
|
94
|
-
{
|
|
95
|
-
internalType: "uint256",
|
|
96
|
-
name: "_limit",
|
|
97
|
-
type: "uint256",
|
|
98
|
-
},
|
|
99
|
-
],
|
|
100
|
-
name: "setLimit",
|
|
101
|
-
outputs: [],
|
|
102
|
-
stateMutability: "nonpayable",
|
|
103
|
-
type: "function",
|
|
104
|
-
},
|
|
105
61
|
{
|
|
106
62
|
inputs: [],
|
|
107
63
|
name: "stETH",
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { IOffchainOracle, IOffchainOracleInterface } from "../IOffchainOracle";
|
|
4
|
+
export declare class IOffchainOracle__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly internalType: "address";
|
|
8
|
+
readonly name: "srcToken";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}, {
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
readonly name: "dstToken";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}, {
|
|
15
|
+
readonly internalType: "bool";
|
|
16
|
+
readonly name: "useWrappers";
|
|
17
|
+
readonly type: "bool";
|
|
18
|
+
}];
|
|
19
|
+
readonly name: "getRate";
|
|
20
|
+
readonly outputs: readonly [{
|
|
21
|
+
readonly internalType: "uint256";
|
|
22
|
+
readonly name: "weightedRate";
|
|
23
|
+
readonly type: "uint256";
|
|
24
|
+
}];
|
|
25
|
+
readonly stateMutability: "view";
|
|
26
|
+
readonly type: "function";
|
|
27
|
+
}, {
|
|
28
|
+
readonly inputs: readonly [{
|
|
29
|
+
readonly internalType: "address";
|
|
30
|
+
readonly name: "srcToken";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly internalType: "bool";
|
|
34
|
+
readonly name: "useSrcWrappers";
|
|
35
|
+
readonly type: "bool";
|
|
36
|
+
}];
|
|
37
|
+
readonly name: "getRateToEth";
|
|
38
|
+
readonly outputs: readonly [{
|
|
39
|
+
readonly internalType: "uint256";
|
|
40
|
+
readonly name: "weightedRate";
|
|
41
|
+
readonly type: "uint256";
|
|
42
|
+
}];
|
|
43
|
+
readonly stateMutability: "view";
|
|
44
|
+
readonly type: "function";
|
|
45
|
+
}];
|
|
46
|
+
static createInterface(): IOffchainOracleInterface;
|
|
47
|
+
static connect(address: string, signerOrProvider: Signer | Provider): IOffchainOracle;
|
|
48
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.IOffchainOracle__factory = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "address",
|
|
13
|
+
name: "srcToken",
|
|
14
|
+
type: "address",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "address",
|
|
18
|
+
name: "dstToken",
|
|
19
|
+
type: "address",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
internalType: "bool",
|
|
23
|
+
name: "useWrappers",
|
|
24
|
+
type: "bool",
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
name: "getRate",
|
|
28
|
+
outputs: [
|
|
29
|
+
{
|
|
30
|
+
internalType: "uint256",
|
|
31
|
+
name: "weightedRate",
|
|
32
|
+
type: "uint256",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
stateMutability: "view",
|
|
36
|
+
type: "function",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
inputs: [
|
|
40
|
+
{
|
|
41
|
+
internalType: "address",
|
|
42
|
+
name: "srcToken",
|
|
43
|
+
type: "address",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
internalType: "bool",
|
|
47
|
+
name: "useSrcWrappers",
|
|
48
|
+
type: "bool",
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
name: "getRateToEth",
|
|
52
|
+
outputs: [
|
|
53
|
+
{
|
|
54
|
+
internalType: "uint256",
|
|
55
|
+
name: "weightedRate",
|
|
56
|
+
type: "uint256",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
stateMutability: "view",
|
|
60
|
+
type: "function",
|
|
61
|
+
},
|
|
62
|
+
];
|
|
63
|
+
class IOffchainOracle__factory {
|
|
64
|
+
static abi = _abi;
|
|
65
|
+
static createInterface() {
|
|
66
|
+
return new ethers_1.utils.Interface(_abi);
|
|
67
|
+
}
|
|
68
|
+
static connect(address, signerOrProvider) {
|
|
69
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.IOffchainOracle__factory = IOffchainOracle__factory;
|
|
@@ -242,6 +242,16 @@ export declare class IPoolV3__factory {
|
|
|
242
242
|
}];
|
|
243
243
|
readonly name: "Withdraw";
|
|
244
244
|
readonly type: "event";
|
|
245
|
+
}, {
|
|
246
|
+
readonly inputs: readonly [];
|
|
247
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
248
|
+
readonly outputs: readonly [{
|
|
249
|
+
readonly internalType: "bytes32";
|
|
250
|
+
readonly name: "";
|
|
251
|
+
readonly type: "bytes32";
|
|
252
|
+
}];
|
|
253
|
+
readonly stateMutability: "view";
|
|
254
|
+
readonly type: "function";
|
|
245
255
|
}, {
|
|
246
256
|
readonly inputs: readonly [];
|
|
247
257
|
readonly name: "addressProvider";
|
|
@@ -352,16 +362,6 @@ export declare class IPoolV3__factory {
|
|
|
352
362
|
}];
|
|
353
363
|
readonly stateMutability: "view";
|
|
354
364
|
readonly type: "function";
|
|
355
|
-
}, {
|
|
356
|
-
readonly inputs: readonly [];
|
|
357
|
-
readonly name: "calcLinearCumulative_RAY";
|
|
358
|
-
readonly outputs: readonly [{
|
|
359
|
-
readonly internalType: "uint256";
|
|
360
|
-
readonly name: "";
|
|
361
|
-
readonly type: "uint256";
|
|
362
|
-
}];
|
|
363
|
-
readonly stateMutability: "view";
|
|
364
|
-
readonly type: "function";
|
|
365
365
|
}, {
|
|
366
366
|
readonly inputs: readonly [{
|
|
367
367
|
readonly internalType: "uint256";
|
|
@@ -480,9 +480,9 @@ export declare class IPoolV3__factory {
|
|
|
480
480
|
readonly name: "receiver";
|
|
481
481
|
readonly type: "address";
|
|
482
482
|
}, {
|
|
483
|
-
readonly internalType: "
|
|
483
|
+
readonly internalType: "uint256";
|
|
484
484
|
readonly name: "referralCode";
|
|
485
|
-
readonly type: "
|
|
485
|
+
readonly type: "uint256";
|
|
486
486
|
}];
|
|
487
487
|
readonly name: "depositWithReferral";
|
|
488
488
|
readonly outputs: readonly [{
|
|
@@ -640,9 +640,9 @@ export declare class IPoolV3__factory {
|
|
|
640
640
|
readonly name: "receiver";
|
|
641
641
|
readonly type: "address";
|
|
642
642
|
}, {
|
|
643
|
-
readonly internalType: "
|
|
643
|
+
readonly internalType: "uint256";
|
|
644
644
|
readonly name: "referralCode";
|
|
645
|
-
readonly type: "
|
|
645
|
+
readonly type: "uint256";
|
|
646
646
|
}];
|
|
647
647
|
readonly name: "mintWithReferral";
|
|
648
648
|
readonly outputs: readonly [{
|
|
@@ -662,6 +662,54 @@ export declare class IPoolV3__factory {
|
|
|
662
662
|
}];
|
|
663
663
|
readonly stateMutability: "view";
|
|
664
664
|
readonly type: "function";
|
|
665
|
+
}, {
|
|
666
|
+
readonly inputs: readonly [{
|
|
667
|
+
readonly internalType: "address";
|
|
668
|
+
readonly name: "owner";
|
|
669
|
+
readonly type: "address";
|
|
670
|
+
}];
|
|
671
|
+
readonly name: "nonces";
|
|
672
|
+
readonly outputs: readonly [{
|
|
673
|
+
readonly internalType: "uint256";
|
|
674
|
+
readonly name: "";
|
|
675
|
+
readonly type: "uint256";
|
|
676
|
+
}];
|
|
677
|
+
readonly stateMutability: "view";
|
|
678
|
+
readonly type: "function";
|
|
679
|
+
}, {
|
|
680
|
+
readonly inputs: readonly [{
|
|
681
|
+
readonly internalType: "address";
|
|
682
|
+
readonly name: "owner";
|
|
683
|
+
readonly type: "address";
|
|
684
|
+
}, {
|
|
685
|
+
readonly internalType: "address";
|
|
686
|
+
readonly name: "spender";
|
|
687
|
+
readonly type: "address";
|
|
688
|
+
}, {
|
|
689
|
+
readonly internalType: "uint256";
|
|
690
|
+
readonly name: "value";
|
|
691
|
+
readonly type: "uint256";
|
|
692
|
+
}, {
|
|
693
|
+
readonly internalType: "uint256";
|
|
694
|
+
readonly name: "deadline";
|
|
695
|
+
readonly type: "uint256";
|
|
696
|
+
}, {
|
|
697
|
+
readonly internalType: "uint8";
|
|
698
|
+
readonly name: "v";
|
|
699
|
+
readonly type: "uint8";
|
|
700
|
+
}, {
|
|
701
|
+
readonly internalType: "bytes32";
|
|
702
|
+
readonly name: "r";
|
|
703
|
+
readonly type: "bytes32";
|
|
704
|
+
}, {
|
|
705
|
+
readonly internalType: "bytes32";
|
|
706
|
+
readonly name: "s";
|
|
707
|
+
readonly type: "bytes32";
|
|
708
|
+
}];
|
|
709
|
+
readonly name: "permit";
|
|
710
|
+
readonly outputs: readonly [];
|
|
711
|
+
readonly stateMutability: "nonpayable";
|
|
712
|
+
readonly type: "function";
|
|
665
713
|
}, {
|
|
666
714
|
readonly inputs: readonly [];
|
|
667
715
|
readonly name: "poolQuotaKeeper";
|
|
@@ -308,6 +308,19 @@ const _abi = [
|
|
|
308
308
|
name: "Withdraw",
|
|
309
309
|
type: "event",
|
|
310
310
|
},
|
|
311
|
+
{
|
|
312
|
+
inputs: [],
|
|
313
|
+
name: "DOMAIN_SEPARATOR",
|
|
314
|
+
outputs: [
|
|
315
|
+
{
|
|
316
|
+
internalType: "bytes32",
|
|
317
|
+
name: "",
|
|
318
|
+
type: "bytes32",
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
stateMutability: "view",
|
|
322
|
+
type: "function",
|
|
323
|
+
},
|
|
311
324
|
{
|
|
312
325
|
inputs: [],
|
|
313
326
|
name: "addressProvider",
|
|
@@ -453,19 +466,6 @@ const _abi = [
|
|
|
453
466
|
stateMutability: "view",
|
|
454
467
|
type: "function",
|
|
455
468
|
},
|
|
456
|
-
{
|
|
457
|
-
inputs: [],
|
|
458
|
-
name: "calcLinearCumulative_RAY",
|
|
459
|
-
outputs: [
|
|
460
|
-
{
|
|
461
|
-
internalType: "uint256",
|
|
462
|
-
name: "",
|
|
463
|
-
type: "uint256",
|
|
464
|
-
},
|
|
465
|
-
],
|
|
466
|
-
stateMutability: "view",
|
|
467
|
-
type: "function",
|
|
468
|
-
},
|
|
469
469
|
{
|
|
470
470
|
inputs: [
|
|
471
471
|
{
|
|
@@ -624,9 +624,9 @@ const _abi = [
|
|
|
624
624
|
type: "address",
|
|
625
625
|
},
|
|
626
626
|
{
|
|
627
|
-
internalType: "
|
|
627
|
+
internalType: "uint256",
|
|
628
628
|
name: "referralCode",
|
|
629
|
-
type: "
|
|
629
|
+
type: "uint256",
|
|
630
630
|
},
|
|
631
631
|
],
|
|
632
632
|
name: "depositWithReferral",
|
|
@@ -836,9 +836,9 @@ const _abi = [
|
|
|
836
836
|
type: "address",
|
|
837
837
|
},
|
|
838
838
|
{
|
|
839
|
-
internalType: "
|
|
839
|
+
internalType: "uint256",
|
|
840
840
|
name: "referralCode",
|
|
841
|
-
type: "
|
|
841
|
+
type: "uint256",
|
|
842
842
|
},
|
|
843
843
|
],
|
|
844
844
|
name: "mintWithReferral",
|
|
@@ -865,6 +865,68 @@ const _abi = [
|
|
|
865
865
|
stateMutability: "view",
|
|
866
866
|
type: "function",
|
|
867
867
|
},
|
|
868
|
+
{
|
|
869
|
+
inputs: [
|
|
870
|
+
{
|
|
871
|
+
internalType: "address",
|
|
872
|
+
name: "owner",
|
|
873
|
+
type: "address",
|
|
874
|
+
},
|
|
875
|
+
],
|
|
876
|
+
name: "nonces",
|
|
877
|
+
outputs: [
|
|
878
|
+
{
|
|
879
|
+
internalType: "uint256",
|
|
880
|
+
name: "",
|
|
881
|
+
type: "uint256",
|
|
882
|
+
},
|
|
883
|
+
],
|
|
884
|
+
stateMutability: "view",
|
|
885
|
+
type: "function",
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
inputs: [
|
|
889
|
+
{
|
|
890
|
+
internalType: "address",
|
|
891
|
+
name: "owner",
|
|
892
|
+
type: "address",
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
internalType: "address",
|
|
896
|
+
name: "spender",
|
|
897
|
+
type: "address",
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
internalType: "uint256",
|
|
901
|
+
name: "value",
|
|
902
|
+
type: "uint256",
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
internalType: "uint256",
|
|
906
|
+
name: "deadline",
|
|
907
|
+
type: "uint256",
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
internalType: "uint8",
|
|
911
|
+
name: "v",
|
|
912
|
+
type: "uint8",
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
internalType: "bytes32",
|
|
916
|
+
name: "r",
|
|
917
|
+
type: "bytes32",
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
internalType: "bytes32",
|
|
921
|
+
name: "s",
|
|
922
|
+
type: "bytes32",
|
|
923
|
+
},
|
|
924
|
+
],
|
|
925
|
+
name: "permit",
|
|
926
|
+
outputs: [],
|
|
927
|
+
stateMutability: "nonpayable",
|
|
928
|
+
type: "function",
|
|
929
|
+
},
|
|
868
930
|
{
|
|
869
931
|
inputs: [],
|
|
870
932
|
name: "poolQuotaKeeper",
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IPoolV3Events__factory = exports.IPoolV3__factory =
|
|
3
|
+
exports.IPoolV3Events__factory = exports.IPoolV3__factory = void 0;
|
|
4
4
|
/* Autogenerated file. Do not edit manually. */
|
|
5
5
|
/* tslint:disable */
|
|
6
6
|
/* eslint-disable */
|
|
7
|
-
var IPoolBase__factory_1 = require("./IPoolBase__factory");
|
|
8
|
-
Object.defineProperty(exports, "IPoolBase__factory", { enumerable: true, get: function () { return IPoolBase__factory_1.IPoolBase__factory; } });
|
|
9
7
|
var IPoolV3__factory_1 = require("./IPoolV3__factory");
|
|
10
8
|
Object.defineProperty(exports, "IPoolV3__factory", { enumerable: true, get: function () { return IPoolV3__factory_1.IPoolV3__factory; } });
|
|
11
9
|
var IPoolV3Events__factory_1 = require("./IPoolV3Events__factory");
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { IWETHGateway, IWETHGatewayInterface } from "../IWETHGateway";
|
|
4
|
+
export declare class IWETHGateway__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly internalType: "address";
|
|
8
|
+
readonly name: "pool";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}, {
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
readonly name: "onBehalfOf";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}, {
|
|
15
|
+
readonly internalType: "uint16";
|
|
16
|
+
readonly name: "referralCode";
|
|
17
|
+
readonly type: "uint16";
|
|
18
|
+
}];
|
|
19
|
+
readonly name: "addLiquidityETH";
|
|
20
|
+
readonly outputs: readonly [];
|
|
21
|
+
readonly stateMutability: "payable";
|
|
22
|
+
readonly type: "function";
|
|
23
|
+
}, {
|
|
24
|
+
readonly inputs: readonly [{
|
|
25
|
+
readonly internalType: "address";
|
|
26
|
+
readonly name: "pool";
|
|
27
|
+
readonly type: "address";
|
|
28
|
+
}, {
|
|
29
|
+
readonly internalType: "uint256";
|
|
30
|
+
readonly name: "amount";
|
|
31
|
+
readonly type: "uint256";
|
|
32
|
+
}, {
|
|
33
|
+
readonly internalType: "address payable";
|
|
34
|
+
readonly name: "to";
|
|
35
|
+
readonly type: "address";
|
|
36
|
+
}];
|
|
37
|
+
readonly name: "removeLiquidityETH";
|
|
38
|
+
readonly outputs: readonly [];
|
|
39
|
+
readonly stateMutability: "nonpayable";
|
|
40
|
+
readonly type: "function";
|
|
41
|
+
}, {
|
|
42
|
+
readonly inputs: readonly [{
|
|
43
|
+
readonly internalType: "address";
|
|
44
|
+
readonly name: "to";
|
|
45
|
+
readonly type: "address";
|
|
46
|
+
}, {
|
|
47
|
+
readonly internalType: "uint256";
|
|
48
|
+
readonly name: "amount";
|
|
49
|
+
readonly type: "uint256";
|
|
50
|
+
}];
|
|
51
|
+
readonly name: "unwrapWETH";
|
|
52
|
+
readonly outputs: readonly [];
|
|
53
|
+
readonly stateMutability: "nonpayable";
|
|
54
|
+
readonly type: "function";
|
|
55
|
+
}];
|
|
56
|
+
static createInterface(): IWETHGatewayInterface;
|
|
57
|
+
static connect(address: string, signerOrProvider: Signer | Provider): IWETHGateway;
|
|
58
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.IWETHGateway__factory = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "address",
|
|
13
|
+
name: "pool",
|
|
14
|
+
type: "address",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "address",
|
|
18
|
+
name: "onBehalfOf",
|
|
19
|
+
type: "address",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
internalType: "uint16",
|
|
23
|
+
name: "referralCode",
|
|
24
|
+
type: "uint16",
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
name: "addLiquidityETH",
|
|
28
|
+
outputs: [],
|
|
29
|
+
stateMutability: "payable",
|
|
30
|
+
type: "function",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
inputs: [
|
|
34
|
+
{
|
|
35
|
+
internalType: "address",
|
|
36
|
+
name: "pool",
|
|
37
|
+
type: "address",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
internalType: "uint256",
|
|
41
|
+
name: "amount",
|
|
42
|
+
type: "uint256",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
internalType: "address payable",
|
|
46
|
+
name: "to",
|
|
47
|
+
type: "address",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
name: "removeLiquidityETH",
|
|
51
|
+
outputs: [],
|
|
52
|
+
stateMutability: "nonpayable",
|
|
53
|
+
type: "function",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
inputs: [
|
|
57
|
+
{
|
|
58
|
+
internalType: "address",
|
|
59
|
+
name: "to",
|
|
60
|
+
type: "address",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
internalType: "uint256",
|
|
64
|
+
name: "amount",
|
|
65
|
+
type: "uint256",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
name: "unwrapWETH",
|
|
69
|
+
outputs: [],
|
|
70
|
+
stateMutability: "nonpayable",
|
|
71
|
+
type: "function",
|
|
72
|
+
},
|
|
73
|
+
];
|
|
74
|
+
class IWETHGateway__factory {
|
|
75
|
+
static abi = _abi;
|
|
76
|
+
static createInterface() {
|
|
77
|
+
return new ethers_1.utils.Interface(_abi);
|
|
78
|
+
}
|
|
79
|
+
static connect(address, signerOrProvider) {
|
|
80
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.IWETHGateway__factory = IWETHGateway__factory;
|