@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
|
@@ -0,0 +1,341 @@
|
|
|
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.IAaveV2_WrappedATokenAdapter__factory = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [],
|
|
11
|
+
name: "_gearboxAdapterType",
|
|
12
|
+
outputs: [
|
|
13
|
+
{
|
|
14
|
+
internalType: "enum AdapterType",
|
|
15
|
+
name: "",
|
|
16
|
+
type: "uint8",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
stateMutability: "view",
|
|
20
|
+
type: "function",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
inputs: [],
|
|
24
|
+
name: "_gearboxAdapterVersion",
|
|
25
|
+
outputs: [
|
|
26
|
+
{
|
|
27
|
+
internalType: "uint16",
|
|
28
|
+
name: "",
|
|
29
|
+
type: "uint16",
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
stateMutability: "view",
|
|
33
|
+
type: "function",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
inputs: [],
|
|
37
|
+
name: "aToken",
|
|
38
|
+
outputs: [
|
|
39
|
+
{
|
|
40
|
+
internalType: "address",
|
|
41
|
+
name: "",
|
|
42
|
+
type: "address",
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
stateMutability: "view",
|
|
46
|
+
type: "function",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
inputs: [],
|
|
50
|
+
name: "aTokenMask",
|
|
51
|
+
outputs: [
|
|
52
|
+
{
|
|
53
|
+
internalType: "uint256",
|
|
54
|
+
name: "",
|
|
55
|
+
type: "uint256",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
stateMutability: "view",
|
|
59
|
+
type: "function",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
inputs: [],
|
|
63
|
+
name: "addressProvider",
|
|
64
|
+
outputs: [
|
|
65
|
+
{
|
|
66
|
+
internalType: "address",
|
|
67
|
+
name: "",
|
|
68
|
+
type: "address",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
stateMutability: "view",
|
|
72
|
+
type: "function",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
inputs: [],
|
|
76
|
+
name: "creditManager",
|
|
77
|
+
outputs: [
|
|
78
|
+
{
|
|
79
|
+
internalType: "address",
|
|
80
|
+
name: "",
|
|
81
|
+
type: "address",
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
stateMutability: "view",
|
|
85
|
+
type: "function",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
inputs: [
|
|
89
|
+
{
|
|
90
|
+
internalType: "uint256",
|
|
91
|
+
name: "assets",
|
|
92
|
+
type: "uint256",
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
name: "deposit",
|
|
96
|
+
outputs: [
|
|
97
|
+
{
|
|
98
|
+
internalType: "uint256",
|
|
99
|
+
name: "tokensToEnable",
|
|
100
|
+
type: "uint256",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
internalType: "uint256",
|
|
104
|
+
name: "tokensToDisable",
|
|
105
|
+
type: "uint256",
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
stateMutability: "nonpayable",
|
|
109
|
+
type: "function",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
inputs: [
|
|
113
|
+
{
|
|
114
|
+
internalType: "uint256",
|
|
115
|
+
name: "leftoverAssets",
|
|
116
|
+
type: "uint256",
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
name: "depositDiff",
|
|
120
|
+
outputs: [
|
|
121
|
+
{
|
|
122
|
+
internalType: "uint256",
|
|
123
|
+
name: "tokensToEnable",
|
|
124
|
+
type: "uint256",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
internalType: "uint256",
|
|
128
|
+
name: "tokensToDisable",
|
|
129
|
+
type: "uint256",
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
stateMutability: "nonpayable",
|
|
133
|
+
type: "function",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
inputs: [
|
|
137
|
+
{
|
|
138
|
+
internalType: "uint256",
|
|
139
|
+
name: "leftoverAssets",
|
|
140
|
+
type: "uint256",
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
name: "depositDiffUnderlying",
|
|
144
|
+
outputs: [
|
|
145
|
+
{
|
|
146
|
+
internalType: "uint256",
|
|
147
|
+
name: "tokensToEnable",
|
|
148
|
+
type: "uint256",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
internalType: "uint256",
|
|
152
|
+
name: "tokensToDisable",
|
|
153
|
+
type: "uint256",
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
stateMutability: "nonpayable",
|
|
157
|
+
type: "function",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
inputs: [
|
|
161
|
+
{
|
|
162
|
+
internalType: "uint256",
|
|
163
|
+
name: "assets",
|
|
164
|
+
type: "uint256",
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
name: "depositUnderlying",
|
|
168
|
+
outputs: [
|
|
169
|
+
{
|
|
170
|
+
internalType: "uint256",
|
|
171
|
+
name: "tokensToEnable",
|
|
172
|
+
type: "uint256",
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
internalType: "uint256",
|
|
176
|
+
name: "tokensToDisable",
|
|
177
|
+
type: "uint256",
|
|
178
|
+
},
|
|
179
|
+
],
|
|
180
|
+
stateMutability: "nonpayable",
|
|
181
|
+
type: "function",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
inputs: [],
|
|
185
|
+
name: "targetContract",
|
|
186
|
+
outputs: [
|
|
187
|
+
{
|
|
188
|
+
internalType: "address",
|
|
189
|
+
name: "",
|
|
190
|
+
type: "address",
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
stateMutability: "view",
|
|
194
|
+
type: "function",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
inputs: [],
|
|
198
|
+
name: "tokenMask",
|
|
199
|
+
outputs: [
|
|
200
|
+
{
|
|
201
|
+
internalType: "uint256",
|
|
202
|
+
name: "",
|
|
203
|
+
type: "uint256",
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
stateMutability: "view",
|
|
207
|
+
type: "function",
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
inputs: [],
|
|
211
|
+
name: "underlying",
|
|
212
|
+
outputs: [
|
|
213
|
+
{
|
|
214
|
+
internalType: "address",
|
|
215
|
+
name: "",
|
|
216
|
+
type: "address",
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
stateMutability: "view",
|
|
220
|
+
type: "function",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
inputs: [],
|
|
224
|
+
name: "waTokenMask",
|
|
225
|
+
outputs: [
|
|
226
|
+
{
|
|
227
|
+
internalType: "uint256",
|
|
228
|
+
name: "",
|
|
229
|
+
type: "uint256",
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
stateMutability: "view",
|
|
233
|
+
type: "function",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
inputs: [
|
|
237
|
+
{
|
|
238
|
+
internalType: "uint256",
|
|
239
|
+
name: "shares",
|
|
240
|
+
type: "uint256",
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
name: "withdraw",
|
|
244
|
+
outputs: [
|
|
245
|
+
{
|
|
246
|
+
internalType: "uint256",
|
|
247
|
+
name: "tokensToEnable",
|
|
248
|
+
type: "uint256",
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
internalType: "uint256",
|
|
252
|
+
name: "tokensToDisable",
|
|
253
|
+
type: "uint256",
|
|
254
|
+
},
|
|
255
|
+
],
|
|
256
|
+
stateMutability: "nonpayable",
|
|
257
|
+
type: "function",
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
inputs: [
|
|
261
|
+
{
|
|
262
|
+
internalType: "uint256",
|
|
263
|
+
name: "leftoverShares",
|
|
264
|
+
type: "uint256",
|
|
265
|
+
},
|
|
266
|
+
],
|
|
267
|
+
name: "withdrawDiff",
|
|
268
|
+
outputs: [
|
|
269
|
+
{
|
|
270
|
+
internalType: "uint256",
|
|
271
|
+
name: "tokensToEnable",
|
|
272
|
+
type: "uint256",
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
internalType: "uint256",
|
|
276
|
+
name: "tokensToDisable",
|
|
277
|
+
type: "uint256",
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
stateMutability: "nonpayable",
|
|
281
|
+
type: "function",
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
inputs: [
|
|
285
|
+
{
|
|
286
|
+
internalType: "uint256",
|
|
287
|
+
name: "leftoverShares",
|
|
288
|
+
type: "uint256",
|
|
289
|
+
},
|
|
290
|
+
],
|
|
291
|
+
name: "withdrawDiffUnderlying",
|
|
292
|
+
outputs: [
|
|
293
|
+
{
|
|
294
|
+
internalType: "uint256",
|
|
295
|
+
name: "tokensToEnable",
|
|
296
|
+
type: "uint256",
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
internalType: "uint256",
|
|
300
|
+
name: "tokensToDisable",
|
|
301
|
+
type: "uint256",
|
|
302
|
+
},
|
|
303
|
+
],
|
|
304
|
+
stateMutability: "nonpayable",
|
|
305
|
+
type: "function",
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
inputs: [
|
|
309
|
+
{
|
|
310
|
+
internalType: "uint256",
|
|
311
|
+
name: "shares",
|
|
312
|
+
type: "uint256",
|
|
313
|
+
},
|
|
314
|
+
],
|
|
315
|
+
name: "withdrawUnderlying",
|
|
316
|
+
outputs: [
|
|
317
|
+
{
|
|
318
|
+
internalType: "uint256",
|
|
319
|
+
name: "tokensToEnable",
|
|
320
|
+
type: "uint256",
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
internalType: "uint256",
|
|
324
|
+
name: "tokensToDisable",
|
|
325
|
+
type: "uint256",
|
|
326
|
+
},
|
|
327
|
+
],
|
|
328
|
+
stateMutability: "nonpayable",
|
|
329
|
+
type: "function",
|
|
330
|
+
},
|
|
331
|
+
];
|
|
332
|
+
class IAaveV2_WrappedATokenAdapter__factory {
|
|
333
|
+
static abi = _abi;
|
|
334
|
+
static createInterface() {
|
|
335
|
+
return new ethers_1.utils.Interface(_abi);
|
|
336
|
+
}
|
|
337
|
+
static connect(address, signerOrProvider) {
|
|
338
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
exports.IAaveV2_WrappedATokenAdapter__factory = IAaveV2_WrappedATokenAdapter__factory;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { IBalancerV2VaultGetters, IBalancerV2VaultGettersInterface } from "../../IBalancerV2Vault.sol/IBalancerV2VaultGetters";
|
|
4
|
+
export declare class IBalancerV2VaultGetters__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly internalType: "bytes32";
|
|
8
|
+
readonly name: "poolId";
|
|
9
|
+
readonly type: "bytes32";
|
|
10
|
+
}];
|
|
11
|
+
readonly name: "getPool";
|
|
12
|
+
readonly outputs: readonly [{
|
|
13
|
+
readonly internalType: "address";
|
|
14
|
+
readonly name: "";
|
|
15
|
+
readonly type: "address";
|
|
16
|
+
}, {
|
|
17
|
+
readonly internalType: "enum PoolSpecialization";
|
|
18
|
+
readonly name: "";
|
|
19
|
+
readonly type: "uint8";
|
|
20
|
+
}];
|
|
21
|
+
readonly stateMutability: "view";
|
|
22
|
+
readonly type: "function";
|
|
23
|
+
}, {
|
|
24
|
+
readonly inputs: readonly [{
|
|
25
|
+
readonly internalType: "bytes32";
|
|
26
|
+
readonly name: "poolId";
|
|
27
|
+
readonly type: "bytes32";
|
|
28
|
+
}, {
|
|
29
|
+
readonly internalType: "contract IERC20";
|
|
30
|
+
readonly name: "token";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}];
|
|
33
|
+
readonly name: "getPoolTokenInfo";
|
|
34
|
+
readonly outputs: readonly [{
|
|
35
|
+
readonly internalType: "uint256";
|
|
36
|
+
readonly name: "cash";
|
|
37
|
+
readonly type: "uint256";
|
|
38
|
+
}, {
|
|
39
|
+
readonly internalType: "uint256";
|
|
40
|
+
readonly name: "managed";
|
|
41
|
+
readonly type: "uint256";
|
|
42
|
+
}, {
|
|
43
|
+
readonly internalType: "uint256";
|
|
44
|
+
readonly name: "lastChangeBlock";
|
|
45
|
+
readonly type: "uint256";
|
|
46
|
+
}, {
|
|
47
|
+
readonly internalType: "address";
|
|
48
|
+
readonly name: "assetManager";
|
|
49
|
+
readonly type: "address";
|
|
50
|
+
}];
|
|
51
|
+
readonly stateMutability: "view";
|
|
52
|
+
readonly type: "function";
|
|
53
|
+
}, {
|
|
54
|
+
readonly inputs: readonly [{
|
|
55
|
+
readonly internalType: "bytes32";
|
|
56
|
+
readonly name: "poolId";
|
|
57
|
+
readonly type: "bytes32";
|
|
58
|
+
}];
|
|
59
|
+
readonly name: "getPoolTokens";
|
|
60
|
+
readonly outputs: readonly [{
|
|
61
|
+
readonly internalType: "contract IERC20[]";
|
|
62
|
+
readonly name: "tokens";
|
|
63
|
+
readonly type: "address[]";
|
|
64
|
+
}, {
|
|
65
|
+
readonly internalType: "uint256[]";
|
|
66
|
+
readonly name: "balances";
|
|
67
|
+
readonly type: "uint256[]";
|
|
68
|
+
}, {
|
|
69
|
+
readonly internalType: "uint256";
|
|
70
|
+
readonly name: "lastChangeBlock";
|
|
71
|
+
readonly type: "uint256";
|
|
72
|
+
}];
|
|
73
|
+
readonly stateMutability: "view";
|
|
74
|
+
readonly type: "function";
|
|
75
|
+
}];
|
|
76
|
+
static createInterface(): IBalancerV2VaultGettersInterface;
|
|
77
|
+
static connect(address: string, signerOrProvider: Signer | Provider): IBalancerV2VaultGetters;
|
|
78
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
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.IBalancerV2VaultGetters__factory = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "bytes32",
|
|
13
|
+
name: "poolId",
|
|
14
|
+
type: "bytes32",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
name: "getPool",
|
|
18
|
+
outputs: [
|
|
19
|
+
{
|
|
20
|
+
internalType: "address",
|
|
21
|
+
name: "",
|
|
22
|
+
type: "address",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
internalType: "enum PoolSpecialization",
|
|
26
|
+
name: "",
|
|
27
|
+
type: "uint8",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
stateMutability: "view",
|
|
31
|
+
type: "function",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
inputs: [
|
|
35
|
+
{
|
|
36
|
+
internalType: "bytes32",
|
|
37
|
+
name: "poolId",
|
|
38
|
+
type: "bytes32",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
internalType: "contract IERC20",
|
|
42
|
+
name: "token",
|
|
43
|
+
type: "address",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
name: "getPoolTokenInfo",
|
|
47
|
+
outputs: [
|
|
48
|
+
{
|
|
49
|
+
internalType: "uint256",
|
|
50
|
+
name: "cash",
|
|
51
|
+
type: "uint256",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
internalType: "uint256",
|
|
55
|
+
name: "managed",
|
|
56
|
+
type: "uint256",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
internalType: "uint256",
|
|
60
|
+
name: "lastChangeBlock",
|
|
61
|
+
type: "uint256",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
internalType: "address",
|
|
65
|
+
name: "assetManager",
|
|
66
|
+
type: "address",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
stateMutability: "view",
|
|
70
|
+
type: "function",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
inputs: [
|
|
74
|
+
{
|
|
75
|
+
internalType: "bytes32",
|
|
76
|
+
name: "poolId",
|
|
77
|
+
type: "bytes32",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
name: "getPoolTokens",
|
|
81
|
+
outputs: [
|
|
82
|
+
{
|
|
83
|
+
internalType: "contract IERC20[]",
|
|
84
|
+
name: "tokens",
|
|
85
|
+
type: "address[]",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
internalType: "uint256[]",
|
|
89
|
+
name: "balances",
|
|
90
|
+
type: "uint256[]",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
internalType: "uint256",
|
|
94
|
+
name: "lastChangeBlock",
|
|
95
|
+
type: "uint256",
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
stateMutability: "view",
|
|
99
|
+
type: "function",
|
|
100
|
+
},
|
|
101
|
+
];
|
|
102
|
+
class IBalancerV2VaultGetters__factory {
|
|
103
|
+
static abi = _abi;
|
|
104
|
+
static createInterface() {
|
|
105
|
+
return new ethers_1.utils.Interface(_abi);
|
|
106
|
+
}
|
|
107
|
+
static connect(address, signerOrProvider) {
|
|
108
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.IBalancerV2VaultGetters__factory = IBalancerV2VaultGetters__factory;
|