@gearbox-protocol/sdk 3.0.0-next.55 → 3.0.0-next.56
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/index.sol +5 -0
- package/lib/core/creditAccount.d.ts +1 -2
- package/lib/core/creditAccount.js +0 -7
- package/lib/core/creditManager.js +1 -1
- package/lib/core/trade.d.ts +9 -8
- package/lib/core/trade.js +25 -22
- package/lib/parsers/convexBaseRewardPoolAdapterParser.js +10 -8
- package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +9 -6
- package/lib/parsers/convexBoosterAdapterParser.js +6 -6
- package/lib/parsers/convexBoosterAdapterParser.spec.js +4 -4
- package/lib/parsers/curveAdapterParser.js +10 -10
- package/lib/parsers/curveAdapterParser.spec.js +6 -2
- package/lib/parsers/lidoAdapterParser.js +3 -2
- package/lib/parsers/lidoAdapterParser.spec.js +2 -2
- package/lib/parsers/uniV2AdapterParser.js +4 -3
- package/lib/parsers/uniV2AdapterParser.spec.js +3 -2
- package/lib/parsers/uniV3AdapterParser.js +8 -6
- package/lib/parsers/uniV3AdapterParser.spec.js +3 -2
- package/lib/parsers/wstETHAdapterParser.js +6 -4
- package/lib/parsers/wstETHAdapterParser.spec.js +4 -4
- package/lib/parsers/yearnAdapterParser.spec.js +4 -4
- package/lib/parsers/yearnV2AdapterParser.js +13 -3
- package/lib/pathfinder/core.d.ts +8 -9
- package/lib/pathfinder/pathfinder.d.ts +37 -10
- package/lib/pathfinder/pathfinder.js +45 -33
- package/lib/pathfinder/pathfinder.spec.js +4 -2
- package/lib/payload/creditAccount.d.ts +1 -2
- package/lib/types/IAaveV2_LendingPoolAdapter.d.ts +171 -0
- package/lib/types/IAaveV2_WrappedATokenAdapter.d.ts +290 -0
- package/lib/types/IBalancerV2Vault.sol/IBalancerV2Vault.d.ts +308 -0
- package/lib/types/IBalancerV2Vault.sol/IBalancerV2VaultGetters.d.ts +112 -0
- package/lib/types/IBalancerV2Vault.sol/index.d.ts +2 -0
- package/lib/types/IBalancerV2Vault.sol/index.js +2 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.d.ts +466 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.js +2 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.d.ts +43 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.js +2 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.d.ts +27 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.js +2 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
- package/lib/types/IBalancerV2VaultAdapter.sol/index.js +2 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.d.ts +216 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.js +2 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.d.ts +27 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.js +2 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
- package/lib/types/ICompoundV2_CTokenAdapter.sol/index.js +2 -0
- package/lib/types/IConvexV1BaseRewardPoolAdapter.d.ts +30 -30
- package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts +21 -17
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +45 -85
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +24 -26
- package/lib/types/ICreditFacadeV3Multicall.d.ts +32 -40
- package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +99 -71
- package/lib/types/ICurveV1Adapter.d.ts +41 -105
- package/lib/types/ICurveV1_2AssetsAdapter.d.ts +41 -105
- package/lib/types/ICurveV1_3AssetsAdapter.d.ts +41 -105
- package/lib/types/ICurveV1_4AssetsAdapter.d.ts +41 -105
- package/lib/types/IDataCompressorV2_10.d.ts +1 -27
- package/lib/types/IDataCompressorV3_00.d.ts +1 -27
- package/lib/types/IERC4626Adapter.d.ts +238 -0
- package/lib/types/IERC4626Adapter.js +2 -0
- package/lib/types/ILidoV1Adapter.d.ts +9 -9
- package/lib/types/IPriceOracleV3.sol/IPriceOracleV3.d.ts +39 -14
- package/lib/types/IPriceOracleV3.sol/IPriceOracleV3Events.d.ts +5 -3
- package/lib/types/IUniswapV2Adapter.sol/IUniswapV2Adapter.d.ts +10 -9
- package/lib/types/IUniswapV3Adapter.sol/IUniswapV3Adapter.d.ts +27 -21
- package/lib/types/IYearnV2Adapter.d.ts +22 -22
- package/lib/types/IwstETHV1Adapter.d.ts +17 -17
- package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.d.ts +158 -0
- package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.js +215 -0
- package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.d.ts +252 -0
- package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.js +341 -0
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.d.ts +78 -0
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.js +111 -0
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.d.ts +360 -0
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.js +475 -0
- package/lib/types/factories/IBalancerV2Vault.sol/index.d.ts +2 -0
- package/lib/types/factories/IBalancerV2Vault.sol/index.js +10 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.d.ts +23 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.js +38 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.d.ts +12 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.js +24 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.d.ts +514 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.js +675 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.js +12 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.d.ts +196 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.js +267 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.d.ts +16 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.js +30 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.js +10 -0
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +18 -6
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +22 -6
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts +10 -2
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js +12 -2
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +13 -18
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +14 -20
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +13 -70
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +14 -86
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +22 -24
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +28 -31
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +153 -135
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +191 -168
- package/lib/types/factories/ICurveV1Adapter__factory.d.ts +13 -71
- package/lib/types/factories/ICurveV1Adapter__factory.js +14 -91
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.d.ts +13 -71
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.js +14 -91
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.d.ts +13 -71
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.js +14 -91
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.d.ts +13 -71
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.js +14 -91
- package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +0 -42
- package/lib/types/factories/IDataCompressorV2_10__factory.js +0 -54
- package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +0 -84
- package/lib/types/factories/IDataCompressorV3_00__factory.js +0 -108
- package/lib/types/factories/IERC4626Adapter__factory.d.ts +220 -0
- package/lib/types/factories/IERC4626Adapter__factory.js +297 -0
- package/lib/types/factories/ILidoV1Adapter__factory.d.ts +6 -2
- package/lib/types/factories/ILidoV1Adapter__factory.js +8 -2
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.d.ts +5 -0
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.js +6 -0
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.d.ts +45 -0
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.js +59 -0
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.d.ts +5 -1
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +6 -1
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.d.ts +12 -4
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +14 -4
- package/lib/types/factories/IYearnV2Adapter__factory.d.ts +21 -13
- package/lib/types/factories/IYearnV2Adapter__factory.js +27 -15
- package/lib/types/factories/IwstETHV1Adapter__factory.d.ts +12 -4
- package/lib/types/factories/IwstETHV1Adapter__factory.js +16 -4
- package/lib/types/factories/index.d.ts +7 -2
- package/lib/types/factories/index.js +12 -5
- package/lib/types/factories/{IRouter__factory.d.ts → interfaces/IRouter__factory.d.ts} +61 -6
- package/lib/types/factories/{IRouter__factory.js → interfaces/IRouter__factory.js} +77 -6
- 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 +39 -17
- package/lib/types/index.js +39 -23
- package/lib/types/{IRouter.d.ts → interfaces/IRouter.d.ts} +37 -34
- 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/package.json +6 -6
- package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3.d.ts +0 -370
- package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.d.ts +0 -133
- package/lib/types/IWithdrawalManagerV3.sol/index.d.ts +0 -2
- package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.d.ts +0 -143
- package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.js +0 -188
- package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.d.ts +0 -366
- package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.js +0 -479
- package/lib/types/factories/IWithdrawalManagerV3.sol/index.d.ts +0 -2
- package/lib/types/factories/IWithdrawalManagerV3.sol/index.js +0 -10
- /package/lib/types/{IRouter.js → IAaveV2_LendingPoolAdapter.js} +0 -0
- /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3.js → IAaveV2_WrappedATokenAdapter.js} +0 -0
- /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.js → IBalancerV2Vault.sol/IBalancerV2Vault.js} +0 -0
- /package/lib/types/{IWithdrawalManagerV3.sol/index.js → IBalancerV2Vault.sol/IBalancerV2VaultGetters.js} +0 -0
package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.d.ts
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { ICompoundV2_CTokenAdapter, ICompoundV2_CTokenAdapterInterface } from "../../ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter";
|
|
4
|
+
export declare class ICompoundV2_CTokenAdapter__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly internalType: "uint256";
|
|
8
|
+
readonly name: "errorCode";
|
|
9
|
+
readonly type: "uint256";
|
|
10
|
+
}];
|
|
11
|
+
readonly name: "CTokenError";
|
|
12
|
+
readonly type: "error";
|
|
13
|
+
}, {
|
|
14
|
+
readonly inputs: readonly [];
|
|
15
|
+
readonly name: "_gearboxAdapterType";
|
|
16
|
+
readonly outputs: readonly [{
|
|
17
|
+
readonly internalType: "enum AdapterType";
|
|
18
|
+
readonly name: "";
|
|
19
|
+
readonly type: "uint8";
|
|
20
|
+
}];
|
|
21
|
+
readonly stateMutability: "view";
|
|
22
|
+
readonly type: "function";
|
|
23
|
+
}, {
|
|
24
|
+
readonly inputs: readonly [];
|
|
25
|
+
readonly name: "_gearboxAdapterVersion";
|
|
26
|
+
readonly outputs: readonly [{
|
|
27
|
+
readonly internalType: "uint16";
|
|
28
|
+
readonly name: "";
|
|
29
|
+
readonly type: "uint16";
|
|
30
|
+
}];
|
|
31
|
+
readonly stateMutability: "view";
|
|
32
|
+
readonly type: "function";
|
|
33
|
+
}, {
|
|
34
|
+
readonly inputs: readonly [];
|
|
35
|
+
readonly name: "addressProvider";
|
|
36
|
+
readonly outputs: readonly [{
|
|
37
|
+
readonly internalType: "address";
|
|
38
|
+
readonly name: "";
|
|
39
|
+
readonly type: "address";
|
|
40
|
+
}];
|
|
41
|
+
readonly stateMutability: "view";
|
|
42
|
+
readonly type: "function";
|
|
43
|
+
}, {
|
|
44
|
+
readonly inputs: readonly [];
|
|
45
|
+
readonly name: "cToken";
|
|
46
|
+
readonly outputs: readonly [{
|
|
47
|
+
readonly internalType: "address";
|
|
48
|
+
readonly name: "";
|
|
49
|
+
readonly type: "address";
|
|
50
|
+
}];
|
|
51
|
+
readonly stateMutability: "view";
|
|
52
|
+
readonly type: "function";
|
|
53
|
+
}, {
|
|
54
|
+
readonly inputs: readonly [];
|
|
55
|
+
readonly name: "cTokenMask";
|
|
56
|
+
readonly outputs: readonly [{
|
|
57
|
+
readonly internalType: "uint256";
|
|
58
|
+
readonly name: "";
|
|
59
|
+
readonly type: "uint256";
|
|
60
|
+
}];
|
|
61
|
+
readonly stateMutability: "view";
|
|
62
|
+
readonly type: "function";
|
|
63
|
+
}, {
|
|
64
|
+
readonly inputs: readonly [];
|
|
65
|
+
readonly name: "creditManager";
|
|
66
|
+
readonly outputs: readonly [{
|
|
67
|
+
readonly internalType: "address";
|
|
68
|
+
readonly name: "";
|
|
69
|
+
readonly type: "address";
|
|
70
|
+
}];
|
|
71
|
+
readonly stateMutability: "view";
|
|
72
|
+
readonly type: "function";
|
|
73
|
+
}, {
|
|
74
|
+
readonly inputs: readonly [{
|
|
75
|
+
readonly internalType: "uint256";
|
|
76
|
+
readonly name: "amount";
|
|
77
|
+
readonly type: "uint256";
|
|
78
|
+
}];
|
|
79
|
+
readonly name: "mint";
|
|
80
|
+
readonly outputs: readonly [{
|
|
81
|
+
readonly internalType: "uint256";
|
|
82
|
+
readonly name: "tokensToEnable";
|
|
83
|
+
readonly type: "uint256";
|
|
84
|
+
}, {
|
|
85
|
+
readonly internalType: "uint256";
|
|
86
|
+
readonly name: "tokensToDisable";
|
|
87
|
+
readonly type: "uint256";
|
|
88
|
+
}];
|
|
89
|
+
readonly stateMutability: "nonpayable";
|
|
90
|
+
readonly type: "function";
|
|
91
|
+
}, {
|
|
92
|
+
readonly inputs: readonly [{
|
|
93
|
+
readonly internalType: "uint256";
|
|
94
|
+
readonly name: "leftoverAmount";
|
|
95
|
+
readonly type: "uint256";
|
|
96
|
+
}];
|
|
97
|
+
readonly name: "mintDiff";
|
|
98
|
+
readonly outputs: readonly [{
|
|
99
|
+
readonly internalType: "uint256";
|
|
100
|
+
readonly name: "tokensToEnable";
|
|
101
|
+
readonly type: "uint256";
|
|
102
|
+
}, {
|
|
103
|
+
readonly internalType: "uint256";
|
|
104
|
+
readonly name: "tokensToDisable";
|
|
105
|
+
readonly type: "uint256";
|
|
106
|
+
}];
|
|
107
|
+
readonly stateMutability: "nonpayable";
|
|
108
|
+
readonly type: "function";
|
|
109
|
+
}, {
|
|
110
|
+
readonly inputs: readonly [{
|
|
111
|
+
readonly internalType: "uint256";
|
|
112
|
+
readonly name: "amount";
|
|
113
|
+
readonly type: "uint256";
|
|
114
|
+
}];
|
|
115
|
+
readonly name: "redeem";
|
|
116
|
+
readonly outputs: readonly [{
|
|
117
|
+
readonly internalType: "uint256";
|
|
118
|
+
readonly name: "tokensToEnable";
|
|
119
|
+
readonly type: "uint256";
|
|
120
|
+
}, {
|
|
121
|
+
readonly internalType: "uint256";
|
|
122
|
+
readonly name: "tokensToDisable";
|
|
123
|
+
readonly type: "uint256";
|
|
124
|
+
}];
|
|
125
|
+
readonly stateMutability: "nonpayable";
|
|
126
|
+
readonly type: "function";
|
|
127
|
+
}, {
|
|
128
|
+
readonly inputs: readonly [{
|
|
129
|
+
readonly internalType: "uint256";
|
|
130
|
+
readonly name: "leftoverAmount";
|
|
131
|
+
readonly type: "uint256";
|
|
132
|
+
}];
|
|
133
|
+
readonly name: "redeemDiff";
|
|
134
|
+
readonly outputs: readonly [{
|
|
135
|
+
readonly internalType: "uint256";
|
|
136
|
+
readonly name: "tokensToEnable";
|
|
137
|
+
readonly type: "uint256";
|
|
138
|
+
}, {
|
|
139
|
+
readonly internalType: "uint256";
|
|
140
|
+
readonly name: "tokensToDisable";
|
|
141
|
+
readonly type: "uint256";
|
|
142
|
+
}];
|
|
143
|
+
readonly stateMutability: "nonpayable";
|
|
144
|
+
readonly type: "function";
|
|
145
|
+
}, {
|
|
146
|
+
readonly inputs: readonly [{
|
|
147
|
+
readonly internalType: "uint256";
|
|
148
|
+
readonly name: "amount";
|
|
149
|
+
readonly type: "uint256";
|
|
150
|
+
}];
|
|
151
|
+
readonly name: "redeemUnderlying";
|
|
152
|
+
readonly outputs: readonly [{
|
|
153
|
+
readonly internalType: "uint256";
|
|
154
|
+
readonly name: "tokensToEnable";
|
|
155
|
+
readonly type: "uint256";
|
|
156
|
+
}, {
|
|
157
|
+
readonly internalType: "uint256";
|
|
158
|
+
readonly name: "tokensToDisable";
|
|
159
|
+
readonly type: "uint256";
|
|
160
|
+
}];
|
|
161
|
+
readonly stateMutability: "nonpayable";
|
|
162
|
+
readonly type: "function";
|
|
163
|
+
}, {
|
|
164
|
+
readonly inputs: readonly [];
|
|
165
|
+
readonly name: "targetContract";
|
|
166
|
+
readonly outputs: readonly [{
|
|
167
|
+
readonly internalType: "address";
|
|
168
|
+
readonly name: "";
|
|
169
|
+
readonly type: "address";
|
|
170
|
+
}];
|
|
171
|
+
readonly stateMutability: "view";
|
|
172
|
+
readonly type: "function";
|
|
173
|
+
}, {
|
|
174
|
+
readonly inputs: readonly [];
|
|
175
|
+
readonly name: "tokenMask";
|
|
176
|
+
readonly outputs: readonly [{
|
|
177
|
+
readonly internalType: "uint256";
|
|
178
|
+
readonly name: "";
|
|
179
|
+
readonly type: "uint256";
|
|
180
|
+
}];
|
|
181
|
+
readonly stateMutability: "view";
|
|
182
|
+
readonly type: "function";
|
|
183
|
+
}, {
|
|
184
|
+
readonly inputs: readonly [];
|
|
185
|
+
readonly name: "underlying";
|
|
186
|
+
readonly outputs: readonly [{
|
|
187
|
+
readonly internalType: "address";
|
|
188
|
+
readonly name: "";
|
|
189
|
+
readonly type: "address";
|
|
190
|
+
}];
|
|
191
|
+
readonly stateMutability: "view";
|
|
192
|
+
readonly type: "function";
|
|
193
|
+
}];
|
|
194
|
+
static createInterface(): ICompoundV2_CTokenAdapterInterface;
|
|
195
|
+
static connect(address: string, signerOrProvider: Signer | Provider): ICompoundV2_CTokenAdapter;
|
|
196
|
+
}
|
package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.js
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
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.ICompoundV2_CTokenAdapter__factory = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "uint256",
|
|
13
|
+
name: "errorCode",
|
|
14
|
+
type: "uint256",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
name: "CTokenError",
|
|
18
|
+
type: "error",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
inputs: [],
|
|
22
|
+
name: "_gearboxAdapterType",
|
|
23
|
+
outputs: [
|
|
24
|
+
{
|
|
25
|
+
internalType: "enum AdapterType",
|
|
26
|
+
name: "",
|
|
27
|
+
type: "uint8",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
stateMutability: "view",
|
|
31
|
+
type: "function",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
inputs: [],
|
|
35
|
+
name: "_gearboxAdapterVersion",
|
|
36
|
+
outputs: [
|
|
37
|
+
{
|
|
38
|
+
internalType: "uint16",
|
|
39
|
+
name: "",
|
|
40
|
+
type: "uint16",
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
stateMutability: "view",
|
|
44
|
+
type: "function",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
inputs: [],
|
|
48
|
+
name: "addressProvider",
|
|
49
|
+
outputs: [
|
|
50
|
+
{
|
|
51
|
+
internalType: "address",
|
|
52
|
+
name: "",
|
|
53
|
+
type: "address",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
stateMutability: "view",
|
|
57
|
+
type: "function",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
inputs: [],
|
|
61
|
+
name: "cToken",
|
|
62
|
+
outputs: [
|
|
63
|
+
{
|
|
64
|
+
internalType: "address",
|
|
65
|
+
name: "",
|
|
66
|
+
type: "address",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
stateMutability: "view",
|
|
70
|
+
type: "function",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
inputs: [],
|
|
74
|
+
name: "cTokenMask",
|
|
75
|
+
outputs: [
|
|
76
|
+
{
|
|
77
|
+
internalType: "uint256",
|
|
78
|
+
name: "",
|
|
79
|
+
type: "uint256",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
stateMutability: "view",
|
|
83
|
+
type: "function",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
inputs: [],
|
|
87
|
+
name: "creditManager",
|
|
88
|
+
outputs: [
|
|
89
|
+
{
|
|
90
|
+
internalType: "address",
|
|
91
|
+
name: "",
|
|
92
|
+
type: "address",
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
stateMutability: "view",
|
|
96
|
+
type: "function",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
inputs: [
|
|
100
|
+
{
|
|
101
|
+
internalType: "uint256",
|
|
102
|
+
name: "amount",
|
|
103
|
+
type: "uint256",
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
name: "mint",
|
|
107
|
+
outputs: [
|
|
108
|
+
{
|
|
109
|
+
internalType: "uint256",
|
|
110
|
+
name: "tokensToEnable",
|
|
111
|
+
type: "uint256",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
internalType: "uint256",
|
|
115
|
+
name: "tokensToDisable",
|
|
116
|
+
type: "uint256",
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
stateMutability: "nonpayable",
|
|
120
|
+
type: "function",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
inputs: [
|
|
124
|
+
{
|
|
125
|
+
internalType: "uint256",
|
|
126
|
+
name: "leftoverAmount",
|
|
127
|
+
type: "uint256",
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
name: "mintDiff",
|
|
131
|
+
outputs: [
|
|
132
|
+
{
|
|
133
|
+
internalType: "uint256",
|
|
134
|
+
name: "tokensToEnable",
|
|
135
|
+
type: "uint256",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
internalType: "uint256",
|
|
139
|
+
name: "tokensToDisable",
|
|
140
|
+
type: "uint256",
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
stateMutability: "nonpayable",
|
|
144
|
+
type: "function",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
inputs: [
|
|
148
|
+
{
|
|
149
|
+
internalType: "uint256",
|
|
150
|
+
name: "amount",
|
|
151
|
+
type: "uint256",
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
name: "redeem",
|
|
155
|
+
outputs: [
|
|
156
|
+
{
|
|
157
|
+
internalType: "uint256",
|
|
158
|
+
name: "tokensToEnable",
|
|
159
|
+
type: "uint256",
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
internalType: "uint256",
|
|
163
|
+
name: "tokensToDisable",
|
|
164
|
+
type: "uint256",
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
stateMutability: "nonpayable",
|
|
168
|
+
type: "function",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
inputs: [
|
|
172
|
+
{
|
|
173
|
+
internalType: "uint256",
|
|
174
|
+
name: "leftoverAmount",
|
|
175
|
+
type: "uint256",
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
name: "redeemDiff",
|
|
179
|
+
outputs: [
|
|
180
|
+
{
|
|
181
|
+
internalType: "uint256",
|
|
182
|
+
name: "tokensToEnable",
|
|
183
|
+
type: "uint256",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
internalType: "uint256",
|
|
187
|
+
name: "tokensToDisable",
|
|
188
|
+
type: "uint256",
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
stateMutability: "nonpayable",
|
|
192
|
+
type: "function",
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
inputs: [
|
|
196
|
+
{
|
|
197
|
+
internalType: "uint256",
|
|
198
|
+
name: "amount",
|
|
199
|
+
type: "uint256",
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
name: "redeemUnderlying",
|
|
203
|
+
outputs: [
|
|
204
|
+
{
|
|
205
|
+
internalType: "uint256",
|
|
206
|
+
name: "tokensToEnable",
|
|
207
|
+
type: "uint256",
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
internalType: "uint256",
|
|
211
|
+
name: "tokensToDisable",
|
|
212
|
+
type: "uint256",
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
stateMutability: "nonpayable",
|
|
216
|
+
type: "function",
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
inputs: [],
|
|
220
|
+
name: "targetContract",
|
|
221
|
+
outputs: [
|
|
222
|
+
{
|
|
223
|
+
internalType: "address",
|
|
224
|
+
name: "",
|
|
225
|
+
type: "address",
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
stateMutability: "view",
|
|
229
|
+
type: "function",
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
inputs: [],
|
|
233
|
+
name: "tokenMask",
|
|
234
|
+
outputs: [
|
|
235
|
+
{
|
|
236
|
+
internalType: "uint256",
|
|
237
|
+
name: "",
|
|
238
|
+
type: "uint256",
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
stateMutability: "view",
|
|
242
|
+
type: "function",
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
inputs: [],
|
|
246
|
+
name: "underlying",
|
|
247
|
+
outputs: [
|
|
248
|
+
{
|
|
249
|
+
internalType: "address",
|
|
250
|
+
name: "",
|
|
251
|
+
type: "address",
|
|
252
|
+
},
|
|
253
|
+
],
|
|
254
|
+
stateMutability: "view",
|
|
255
|
+
type: "function",
|
|
256
|
+
},
|
|
257
|
+
];
|
|
258
|
+
class ICompoundV2_CTokenAdapter__factory {
|
|
259
|
+
static abi = _abi;
|
|
260
|
+
static createInterface() {
|
|
261
|
+
return new ethers_1.utils.Interface(_abi);
|
|
262
|
+
}
|
|
263
|
+
static connect(address, signerOrProvider) {
|
|
264
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
exports.ICompoundV2_CTokenAdapter__factory = ICompoundV2_CTokenAdapter__factory;
|
package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { ICompoundV2_Exceptions, ICompoundV2_ExceptionsInterface } from "../../ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions";
|
|
4
|
+
export declare class ICompoundV2_Exceptions__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly internalType: "uint256";
|
|
8
|
+
readonly name: "errorCode";
|
|
9
|
+
readonly type: "uint256";
|
|
10
|
+
}];
|
|
11
|
+
readonly name: "CTokenError";
|
|
12
|
+
readonly type: "error";
|
|
13
|
+
}];
|
|
14
|
+
static createInterface(): ICompoundV2_ExceptionsInterface;
|
|
15
|
+
static connect(address: string, signerOrProvider: Signer | Provider): ICompoundV2_Exceptions;
|
|
16
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.ICompoundV2_Exceptions__factory = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "uint256",
|
|
13
|
+
name: "errorCode",
|
|
14
|
+
type: "uint256",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
name: "CTokenError",
|
|
18
|
+
type: "error",
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
class ICompoundV2_Exceptions__factory {
|
|
22
|
+
static abi = _abi;
|
|
23
|
+
static createInterface() {
|
|
24
|
+
return new ethers_1.utils.Interface(_abi);
|
|
25
|
+
}
|
|
26
|
+
static connect(address, signerOrProvider) {
|
|
27
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ICompoundV2_Exceptions__factory = ICompoundV2_Exceptions__factory;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ICompoundV2_Exceptions__factory = exports.ICompoundV2_CTokenAdapter__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
var ICompoundV2_CTokenAdapter__factory_1 = require("./ICompoundV2_CTokenAdapter__factory");
|
|
8
|
+
Object.defineProperty(exports, "ICompoundV2_CTokenAdapter__factory", { enumerable: true, get: function () { return ICompoundV2_CTokenAdapter__factory_1.ICompoundV2_CTokenAdapter__factory; } });
|
|
9
|
+
var ICompoundV2_Exceptions__factory_1 = require("./ICompoundV2_Exceptions__factory");
|
|
10
|
+
Object.defineProperty(exports, "ICompoundV2_Exceptions__factory", { enumerable: true, get: function () { return ICompoundV2_Exceptions__factory_1.ICompoundV2_Exceptions__factory; } });
|
|
@@ -125,8 +125,12 @@ export declare class IConvexV1BaseRewardPoolAdapter__factory {
|
|
|
125
125
|
readonly stateMutability: "nonpayable";
|
|
126
126
|
readonly type: "function";
|
|
127
127
|
}, {
|
|
128
|
-
readonly inputs: readonly [
|
|
129
|
-
|
|
128
|
+
readonly inputs: readonly [{
|
|
129
|
+
readonly internalType: "uint256";
|
|
130
|
+
readonly name: "leftoverAmount";
|
|
131
|
+
readonly type: "uint256";
|
|
132
|
+
}];
|
|
133
|
+
readonly name: "stakeDiff";
|
|
130
134
|
readonly outputs: readonly [{
|
|
131
135
|
readonly internalType: "uint256";
|
|
132
136
|
readonly name: "tokensToEnable";
|
|
@@ -212,11 +216,15 @@ export declare class IConvexV1BaseRewardPoolAdapter__factory {
|
|
|
212
216
|
readonly type: "function";
|
|
213
217
|
}, {
|
|
214
218
|
readonly inputs: readonly [{
|
|
219
|
+
readonly internalType: "uint256";
|
|
220
|
+
readonly name: "";
|
|
221
|
+
readonly type: "uint256";
|
|
222
|
+
}, {
|
|
215
223
|
readonly internalType: "bool";
|
|
216
224
|
readonly name: "claim";
|
|
217
225
|
readonly type: "bool";
|
|
218
226
|
}];
|
|
219
|
-
readonly name: "
|
|
227
|
+
readonly name: "withdrawAndUnwrap";
|
|
220
228
|
readonly outputs: readonly [{
|
|
221
229
|
readonly internalType: "uint256";
|
|
222
230
|
readonly name: "tokensToEnable";
|
|
@@ -230,11 +238,15 @@ export declare class IConvexV1BaseRewardPoolAdapter__factory {
|
|
|
230
238
|
readonly type: "function";
|
|
231
239
|
}, {
|
|
232
240
|
readonly inputs: readonly [{
|
|
241
|
+
readonly internalType: "uint256";
|
|
242
|
+
readonly name: "leftoverAmount";
|
|
243
|
+
readonly type: "uint256";
|
|
244
|
+
}, {
|
|
233
245
|
readonly internalType: "bool";
|
|
234
246
|
readonly name: "claim";
|
|
235
247
|
readonly type: "bool";
|
|
236
248
|
}];
|
|
237
|
-
readonly name: "
|
|
249
|
+
readonly name: "withdrawDiff";
|
|
238
250
|
readonly outputs: readonly [{
|
|
239
251
|
readonly internalType: "uint256";
|
|
240
252
|
readonly name: "tokensToEnable";
|
|
@@ -249,14 +261,14 @@ export declare class IConvexV1BaseRewardPoolAdapter__factory {
|
|
|
249
261
|
}, {
|
|
250
262
|
readonly inputs: readonly [{
|
|
251
263
|
readonly internalType: "uint256";
|
|
252
|
-
readonly name: "";
|
|
264
|
+
readonly name: "leftoverAmount";
|
|
253
265
|
readonly type: "uint256";
|
|
254
266
|
}, {
|
|
255
267
|
readonly internalType: "bool";
|
|
256
268
|
readonly name: "claim";
|
|
257
269
|
readonly type: "bool";
|
|
258
270
|
}];
|
|
259
|
-
readonly name: "
|
|
271
|
+
readonly name: "withdrawDiffAndUnwrap";
|
|
260
272
|
readonly outputs: readonly [{
|
|
261
273
|
readonly internalType: "uint256";
|
|
262
274
|
readonly name: "tokensToEnable";
|
|
@@ -166,8 +166,14 @@ const _abi = [
|
|
|
166
166
|
type: "function",
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
|
-
inputs: [
|
|
170
|
-
|
|
169
|
+
inputs: [
|
|
170
|
+
{
|
|
171
|
+
internalType: "uint256",
|
|
172
|
+
name: "leftoverAmount",
|
|
173
|
+
type: "uint256",
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
name: "stakeDiff",
|
|
171
177
|
outputs: [
|
|
172
178
|
{
|
|
173
179
|
internalType: "uint256",
|
|
@@ -279,13 +285,18 @@ const _abi = [
|
|
|
279
285
|
},
|
|
280
286
|
{
|
|
281
287
|
inputs: [
|
|
288
|
+
{
|
|
289
|
+
internalType: "uint256",
|
|
290
|
+
name: "",
|
|
291
|
+
type: "uint256",
|
|
292
|
+
},
|
|
282
293
|
{
|
|
283
294
|
internalType: "bool",
|
|
284
295
|
name: "claim",
|
|
285
296
|
type: "bool",
|
|
286
297
|
},
|
|
287
298
|
],
|
|
288
|
-
name: "
|
|
299
|
+
name: "withdrawAndUnwrap",
|
|
289
300
|
outputs: [
|
|
290
301
|
{
|
|
291
302
|
internalType: "uint256",
|
|
@@ -303,13 +314,18 @@ const _abi = [
|
|
|
303
314
|
},
|
|
304
315
|
{
|
|
305
316
|
inputs: [
|
|
317
|
+
{
|
|
318
|
+
internalType: "uint256",
|
|
319
|
+
name: "leftoverAmount",
|
|
320
|
+
type: "uint256",
|
|
321
|
+
},
|
|
306
322
|
{
|
|
307
323
|
internalType: "bool",
|
|
308
324
|
name: "claim",
|
|
309
325
|
type: "bool",
|
|
310
326
|
},
|
|
311
327
|
],
|
|
312
|
-
name: "
|
|
328
|
+
name: "withdrawDiff",
|
|
313
329
|
outputs: [
|
|
314
330
|
{
|
|
315
331
|
internalType: "uint256",
|
|
@@ -329,7 +345,7 @@ const _abi = [
|
|
|
329
345
|
inputs: [
|
|
330
346
|
{
|
|
331
347
|
internalType: "uint256",
|
|
332
|
-
name: "",
|
|
348
|
+
name: "leftoverAmount",
|
|
333
349
|
type: "uint256",
|
|
334
350
|
},
|
|
335
351
|
{
|
|
@@ -338,7 +354,7 @@ const _abi = [
|
|
|
338
354
|
type: "bool",
|
|
339
355
|
},
|
|
340
356
|
],
|
|
341
|
-
name: "
|
|
357
|
+
name: "withdrawDiffAndUnwrap",
|
|
342
358
|
outputs: [
|
|
343
359
|
{
|
|
344
360
|
internalType: "uint256",
|