@gearbox-protocol/sdk 3.0.0-next.42 → 3.0.0-next.43

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.
Files changed (34) hide show
  1. package/contracts/index.sol +3 -2
  2. package/lib/core/creditAccount.d.ts +1 -2
  3. package/lib/core/creditAccount.js +2 -4
  4. package/lib/core/gauge.d.ts +1 -0
  5. package/lib/core/gauge.js +2 -0
  6. package/lib/types/IDataCompressorV2_10.d.ts +2 -5
  7. package/lib/types/IDataCompressorV3_00.d.ts +5 -5
  8. package/lib/types/IERC20Zapper.d.ts +117 -0
  9. package/lib/types/IETHZapper.d.ts +66 -0
  10. package/lib/types/IGearStakingV3.sol/IGearStakingV3.d.ts +24 -1
  11. package/lib/types/IZapper.d.ts +39 -39
  12. package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +2 -10
  13. package/lib/types/factories/IDataCompressorV2_10__factory.js +2 -12
  14. package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +8 -20
  15. package/lib/types/factories/IDataCompressorV3_00__factory.js +9 -24
  16. package/lib/types/factories/{IWETHZapper__factory.d.ts → IERC20Zapper__factory.d.ts} +42 -90
  17. package/lib/types/factories/{IWETHZapper__factory.js → IERC20Zapper__factory.js} +39 -104
  18. package/lib/types/factories/IETHZapper__factory.d.ts +40 -0
  19. package/lib/types/factories/IETHZapper__factory.js +62 -0
  20. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.d.ts +47 -0
  21. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.js +60 -0
  22. package/lib/types/factories/IZapper__factory.d.ts +11 -11
  23. package/lib/types/factories/IZapper__factory.js +11 -11
  24. package/lib/types/factories/index.d.ts +2 -2
  25. package/lib/types/factories/index.js +6 -6
  26. package/lib/types/index.d.ts +4 -4
  27. package/lib/types/index.js +5 -5
  28. package/package.json +5 -5
  29. package/lib/types/IWERC20Zapper.d.ts +0 -166
  30. package/lib/types/IWETHZapper.d.ts +0 -162
  31. package/lib/types/factories/IWERC20Zapper__factory.d.ts +0 -176
  32. package/lib/types/factories/IWERC20Zapper__factory.js +0 -240
  33. /package/lib/types/{IWERC20Zapper.js → IERC20Zapper.js} +0 -0
  34. /package/lib/types/{IWETHZapper.js → IETHZapper.js} +0 -0
@@ -3,11 +3,16 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.IWETHZapper__factory = void 0;
6
+ exports.IERC20Zapper__factory = void 0;
7
7
  const ethers_1 = require("ethers");
8
8
  const _abi = [
9
9
  {
10
10
  inputs: [
11
+ {
12
+ internalType: "uint256",
13
+ name: "tokenInAmount",
14
+ type: "uint256",
15
+ },
11
16
  {
12
17
  internalType: "address",
13
18
  name: "receiver",
@@ -18,93 +23,62 @@ const _abi = [
18
23
  outputs: [
19
24
  {
20
25
  internalType: "uint256",
21
- name: "shares",
26
+ name: "tokenOutAmount",
22
27
  type: "uint256",
23
28
  },
24
29
  ],
25
- stateMutability: "payable",
30
+ stateMutability: "nonpayable",
26
31
  type: "function",
27
32
  },
28
33
  {
29
34
  inputs: [
30
- {
31
- internalType: "address",
32
- name: "receiver",
33
- type: "address",
34
- },
35
35
  {
36
36
  internalType: "uint256",
37
- name: "referralCode",
37
+ name: "tokenInAmount",
38
38
  type: "uint256",
39
39
  },
40
- ],
41
- name: "depositWithReferral",
42
- outputs: [
43
- {
44
- internalType: "uint256",
45
- name: "shares",
46
- type: "uint256",
47
- },
48
- ],
49
- stateMutability: "payable",
50
- type: "function",
51
- },
52
- {
53
- inputs: [],
54
- name: "pool",
55
- outputs: [
56
40
  {
57
41
  internalType: "address",
58
- name: "",
42
+ name: "receiver",
59
43
  type: "address",
60
44
  },
61
- ],
62
- stateMutability: "view",
63
- type: "function",
64
- },
65
- {
66
- inputs: [
67
45
  {
68
46
  internalType: "uint256",
69
- name: "amount",
47
+ name: "deadline",
70
48
  type: "uint256",
71
49
  },
72
- ],
73
- name: "previewDeposit",
74
- outputs: [
75
50
  {
76
- internalType: "uint256",
77
- name: "shares",
78
- type: "uint256",
51
+ internalType: "uint8",
52
+ name: "v",
53
+ type: "uint8",
79
54
  },
80
- ],
81
- stateMutability: "view",
82
- type: "function",
83
- },
84
- {
85
- inputs: [
86
55
  {
87
- internalType: "uint256",
88
- name: "shares",
89
- type: "uint256",
56
+ internalType: "bytes32",
57
+ name: "r",
58
+ type: "bytes32",
59
+ },
60
+ {
61
+ internalType: "bytes32",
62
+ name: "s",
63
+ type: "bytes32",
90
64
  },
91
65
  ],
92
- name: "previewRedeem",
66
+ name: "depositWithPermit",
93
67
  outputs: [
94
68
  {
95
69
  internalType: "uint256",
96
- name: "amount",
70
+ name: "tokenOutAmount",
97
71
  type: "uint256",
98
72
  },
99
73
  ],
100
- stateMutability: "view",
74
+ stateMutability: "nonpayable",
101
75
  type: "function",
102
76
  },
103
77
  {
104
78
  inputs: [
105
79
  {
106
80
  internalType: "uint256",
107
- name: "shares",
81
+ name: "tokenInAmount",
108
82
  type: "uint256",
109
83
  },
110
84
  {
@@ -113,16 +87,16 @@ const _abi = [
113
87
  type: "address",
114
88
  },
115
89
  {
116
- internalType: "address",
117
- name: "owner",
118
- type: "address",
90
+ internalType: "uint256",
91
+ name: "referralCode",
92
+ type: "uint256",
119
93
  },
120
94
  ],
121
- name: "redeem",
95
+ name: "depositWithReferral",
122
96
  outputs: [
123
97
  {
124
98
  internalType: "uint256",
125
- name: "amount",
99
+ name: "tokenOutAmount",
126
100
  type: "uint256",
127
101
  },
128
102
  ],
@@ -133,7 +107,7 @@ const _abi = [
133
107
  inputs: [
134
108
  {
135
109
  internalType: "uint256",
136
- name: "shares",
110
+ name: "tokenInAmount",
137
111
  type: "uint256",
138
112
  },
139
113
  {
@@ -142,9 +116,9 @@ const _abi = [
142
116
  type: "address",
143
117
  },
144
118
  {
145
- internalType: "address",
146
- name: "owner",
147
- type: "address",
119
+ internalType: "uint256",
120
+ name: "referralCode",
121
+ type: "uint256",
148
122
  },
149
123
  {
150
124
  internalType: "uint256",
@@ -167,58 +141,19 @@ const _abi = [
167
141
  type: "bytes32",
168
142
  },
169
143
  ],
170
- name: "redeemWithPermit",
144
+ name: "depositWithReferralAndPermit",
171
145
  outputs: [
172
146
  {
173
147
  internalType: "uint256",
174
- name: "amount",
148
+ name: "tokenOutAmount",
175
149
  type: "uint256",
176
150
  },
177
151
  ],
178
152
  stateMutability: "nonpayable",
179
153
  type: "function",
180
154
  },
181
- {
182
- inputs: [],
183
- name: "tokenOut",
184
- outputs: [
185
- {
186
- internalType: "address",
187
- name: "",
188
- type: "address",
189
- },
190
- ],
191
- stateMutability: "view",
192
- type: "function",
193
- },
194
- {
195
- inputs: [],
196
- name: "unwrappedToken",
197
- outputs: [
198
- {
199
- internalType: "address",
200
- name: "",
201
- type: "address",
202
- },
203
- ],
204
- stateMutability: "view",
205
- type: "function",
206
- },
207
- {
208
- inputs: [],
209
- name: "wrappedToken",
210
- outputs: [
211
- {
212
- internalType: "address",
213
- name: "",
214
- type: "address",
215
- },
216
- ],
217
- stateMutability: "view",
218
- type: "function",
219
- },
220
155
  ];
221
- class IWETHZapper__factory {
156
+ class IERC20Zapper__factory {
222
157
  static abi = _abi;
223
158
  static createInterface() {
224
159
  return new ethers_1.utils.Interface(_abi);
@@ -227,4 +162,4 @@ class IWETHZapper__factory {
227
162
  return new ethers_1.Contract(address, _abi, signerOrProvider);
228
163
  }
229
164
  }
230
- exports.IWETHZapper__factory = IWETHZapper__factory;
165
+ exports.IERC20Zapper__factory = IERC20Zapper__factory;
@@ -0,0 +1,40 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IETHZapper, IETHZapperInterface } from "../IETHZapper";
4
+ export declare class IETHZapper__factory {
5
+ static readonly abi: readonly [{
6
+ readonly inputs: readonly [{
7
+ readonly internalType: "address";
8
+ readonly name: "receiver";
9
+ readonly type: "address";
10
+ }];
11
+ readonly name: "deposit";
12
+ readonly outputs: readonly [{
13
+ readonly internalType: "uint256";
14
+ readonly name: "tokenOutAmount";
15
+ readonly type: "uint256";
16
+ }];
17
+ readonly stateMutability: "payable";
18
+ readonly type: "function";
19
+ }, {
20
+ readonly inputs: readonly [{
21
+ readonly internalType: "address";
22
+ readonly name: "receiver";
23
+ readonly type: "address";
24
+ }, {
25
+ readonly internalType: "uint256";
26
+ readonly name: "referralCode";
27
+ readonly type: "uint256";
28
+ }];
29
+ readonly name: "depositWithReferral";
30
+ readonly outputs: readonly [{
31
+ readonly internalType: "uint256";
32
+ readonly name: "tokenOutAmount";
33
+ readonly type: "uint256";
34
+ }];
35
+ readonly stateMutability: "payable";
36
+ readonly type: "function";
37
+ }];
38
+ static createInterface(): IETHZapperInterface;
39
+ static connect(address: string, signerOrProvider: Signer | Provider): IETHZapper;
40
+ }
@@ -0,0 +1,62 @@
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.IETHZapper__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "address",
13
+ name: "receiver",
14
+ type: "address",
15
+ },
16
+ ],
17
+ name: "deposit",
18
+ outputs: [
19
+ {
20
+ internalType: "uint256",
21
+ name: "tokenOutAmount",
22
+ type: "uint256",
23
+ },
24
+ ],
25
+ stateMutability: "payable",
26
+ type: "function",
27
+ },
28
+ {
29
+ inputs: [
30
+ {
31
+ internalType: "address",
32
+ name: "receiver",
33
+ type: "address",
34
+ },
35
+ {
36
+ internalType: "uint256",
37
+ name: "referralCode",
38
+ type: "uint256",
39
+ },
40
+ ],
41
+ name: "depositWithReferral",
42
+ outputs: [
43
+ {
44
+ internalType: "uint256",
45
+ name: "tokenOutAmount",
46
+ type: "uint256",
47
+ },
48
+ ],
49
+ stateMutability: "payable",
50
+ type: "function",
51
+ },
52
+ ];
53
+ class IETHZapper__factory {
54
+ static abi = _abi;
55
+ static createInterface() {
56
+ return new ethers_1.utils.Interface(_abi);
57
+ }
58
+ static connect(address, signerOrProvider) {
59
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
60
+ }
61
+ }
62
+ exports.IETHZapper__factory = IETHZapper__factory;
@@ -225,6 +225,53 @@ export declare class IGearStakingV3__factory {
225
225
  readonly outputs: readonly [];
226
226
  readonly stateMutability: "nonpayable";
227
227
  readonly type: "function";
228
+ }, {
229
+ readonly inputs: readonly [{
230
+ readonly internalType: "uint96";
231
+ readonly name: "amount";
232
+ readonly type: "uint96";
233
+ }, {
234
+ readonly components: readonly [{
235
+ readonly internalType: "address";
236
+ readonly name: "votingContract";
237
+ readonly type: "address";
238
+ }, {
239
+ readonly internalType: "uint96";
240
+ readonly name: "voteAmount";
241
+ readonly type: "uint96";
242
+ }, {
243
+ readonly internalType: "bool";
244
+ readonly name: "isIncrease";
245
+ readonly type: "bool";
246
+ }, {
247
+ readonly internalType: "bytes";
248
+ readonly name: "extraData";
249
+ readonly type: "bytes";
250
+ }];
251
+ readonly internalType: "struct MultiVote[]";
252
+ readonly name: "votes";
253
+ readonly type: "tuple[]";
254
+ }, {
255
+ readonly internalType: "uint256";
256
+ readonly name: "deadline";
257
+ readonly type: "uint256";
258
+ }, {
259
+ readonly internalType: "uint8";
260
+ readonly name: "v";
261
+ readonly type: "uint8";
262
+ }, {
263
+ readonly internalType: "bytes32";
264
+ readonly name: "r";
265
+ readonly type: "bytes32";
266
+ }, {
267
+ readonly internalType: "bytes32";
268
+ readonly name: "s";
269
+ readonly type: "bytes32";
270
+ }];
271
+ readonly name: "depositWithPermit";
272
+ readonly outputs: readonly [];
273
+ readonly stateMutability: "nonpayable";
274
+ readonly type: "function";
228
275
  }, {
229
276
  readonly inputs: readonly [];
230
277
  readonly name: "firstEpochTimestamp";
@@ -294,6 +294,66 @@ const _abi = [
294
294
  stateMutability: "nonpayable",
295
295
  type: "function",
296
296
  },
297
+ {
298
+ inputs: [
299
+ {
300
+ internalType: "uint96",
301
+ name: "amount",
302
+ type: "uint96",
303
+ },
304
+ {
305
+ components: [
306
+ {
307
+ internalType: "address",
308
+ name: "votingContract",
309
+ type: "address",
310
+ },
311
+ {
312
+ internalType: "uint96",
313
+ name: "voteAmount",
314
+ type: "uint96",
315
+ },
316
+ {
317
+ internalType: "bool",
318
+ name: "isIncrease",
319
+ type: "bool",
320
+ },
321
+ {
322
+ internalType: "bytes",
323
+ name: "extraData",
324
+ type: "bytes",
325
+ },
326
+ ],
327
+ internalType: "struct MultiVote[]",
328
+ name: "votes",
329
+ type: "tuple[]",
330
+ },
331
+ {
332
+ internalType: "uint256",
333
+ name: "deadline",
334
+ type: "uint256",
335
+ },
336
+ {
337
+ internalType: "uint8",
338
+ name: "v",
339
+ type: "uint8",
340
+ },
341
+ {
342
+ internalType: "bytes32",
343
+ name: "r",
344
+ type: "bytes32",
345
+ },
346
+ {
347
+ internalType: "bytes32",
348
+ name: "s",
349
+ type: "bytes32",
350
+ },
351
+ ],
352
+ name: "depositWithPermit",
353
+ outputs: [],
354
+ stateMutability: "nonpayable",
355
+ type: "function",
356
+ },
297
357
  {
298
358
  inputs: [],
299
359
  name: "firstEpochTimestamp",
@@ -15,13 +15,13 @@ export declare class IZapper__factory {
15
15
  }, {
16
16
  readonly inputs: readonly [{
17
17
  readonly internalType: "uint256";
18
- readonly name: "amount";
18
+ readonly name: "tokenInAmount";
19
19
  readonly type: "uint256";
20
20
  }];
21
21
  readonly name: "previewDeposit";
22
22
  readonly outputs: readonly [{
23
23
  readonly internalType: "uint256";
24
- readonly name: "shares";
24
+ readonly name: "tokenOutAmount";
25
25
  readonly type: "uint256";
26
26
  }];
27
27
  readonly stateMutability: "view";
@@ -29,13 +29,13 @@ export declare class IZapper__factory {
29
29
  }, {
30
30
  readonly inputs: readonly [{
31
31
  readonly internalType: "uint256";
32
- readonly name: "shares";
32
+ readonly name: "tokenOutAmount";
33
33
  readonly type: "uint256";
34
34
  }];
35
35
  readonly name: "previewRedeem";
36
36
  readonly outputs: readonly [{
37
37
  readonly internalType: "uint256";
38
- readonly name: "amount";
38
+ readonly name: "tokenInAmount";
39
39
  readonly type: "uint256";
40
40
  }];
41
41
  readonly stateMutability: "view";
@@ -43,7 +43,7 @@ export declare class IZapper__factory {
43
43
  }, {
44
44
  readonly inputs: readonly [{
45
45
  readonly internalType: "uint256";
46
- readonly name: "shares";
46
+ readonly name: "tokenOutAmount";
47
47
  readonly type: "uint256";
48
48
  }, {
49
49
  readonly internalType: "address";
@@ -57,7 +57,7 @@ export declare class IZapper__factory {
57
57
  readonly name: "redeem";
58
58
  readonly outputs: readonly [{
59
59
  readonly internalType: "uint256";
60
- readonly name: "amount";
60
+ readonly name: "tokenInAmount";
61
61
  readonly type: "uint256";
62
62
  }];
63
63
  readonly stateMutability: "nonpayable";
@@ -65,7 +65,7 @@ export declare class IZapper__factory {
65
65
  }, {
66
66
  readonly inputs: readonly [{
67
67
  readonly internalType: "uint256";
68
- readonly name: "shares";
68
+ readonly name: "tokenOutAmount";
69
69
  readonly type: "uint256";
70
70
  }, {
71
71
  readonly internalType: "address";
@@ -95,14 +95,14 @@ export declare class IZapper__factory {
95
95
  readonly name: "redeemWithPermit";
96
96
  readonly outputs: readonly [{
97
97
  readonly internalType: "uint256";
98
- readonly name: "amount";
98
+ readonly name: "tokenInAmount";
99
99
  readonly type: "uint256";
100
100
  }];
101
101
  readonly stateMutability: "nonpayable";
102
102
  readonly type: "function";
103
103
  }, {
104
104
  readonly inputs: readonly [];
105
- readonly name: "tokenOut";
105
+ readonly name: "tokenIn";
106
106
  readonly outputs: readonly [{
107
107
  readonly internalType: "address";
108
108
  readonly name: "";
@@ -112,7 +112,7 @@ export declare class IZapper__factory {
112
112
  readonly type: "function";
113
113
  }, {
114
114
  readonly inputs: readonly [];
115
- readonly name: "unwrappedToken";
115
+ readonly name: "tokenOut";
116
116
  readonly outputs: readonly [{
117
117
  readonly internalType: "address";
118
118
  readonly name: "";
@@ -122,7 +122,7 @@ export declare class IZapper__factory {
122
122
  readonly type: "function";
123
123
  }, {
124
124
  readonly inputs: readonly [];
125
- readonly name: "wrappedToken";
125
+ readonly name: "underlying";
126
126
  readonly outputs: readonly [{
127
127
  readonly internalType: "address";
128
128
  readonly name: "";
@@ -23,7 +23,7 @@ const _abi = [
23
23
  inputs: [
24
24
  {
25
25
  internalType: "uint256",
26
- name: "amount",
26
+ name: "tokenInAmount",
27
27
  type: "uint256",
28
28
  },
29
29
  ],
@@ -31,7 +31,7 @@ const _abi = [
31
31
  outputs: [
32
32
  {
33
33
  internalType: "uint256",
34
- name: "shares",
34
+ name: "tokenOutAmount",
35
35
  type: "uint256",
36
36
  },
37
37
  ],
@@ -42,7 +42,7 @@ const _abi = [
42
42
  inputs: [
43
43
  {
44
44
  internalType: "uint256",
45
- name: "shares",
45
+ name: "tokenOutAmount",
46
46
  type: "uint256",
47
47
  },
48
48
  ],
@@ -50,7 +50,7 @@ const _abi = [
50
50
  outputs: [
51
51
  {
52
52
  internalType: "uint256",
53
- name: "amount",
53
+ name: "tokenInAmount",
54
54
  type: "uint256",
55
55
  },
56
56
  ],
@@ -61,7 +61,7 @@ const _abi = [
61
61
  inputs: [
62
62
  {
63
63
  internalType: "uint256",
64
- name: "shares",
64
+ name: "tokenOutAmount",
65
65
  type: "uint256",
66
66
  },
67
67
  {
@@ -79,7 +79,7 @@ const _abi = [
79
79
  outputs: [
80
80
  {
81
81
  internalType: "uint256",
82
- name: "amount",
82
+ name: "tokenInAmount",
83
83
  type: "uint256",
84
84
  },
85
85
  ],
@@ -90,7 +90,7 @@ const _abi = [
90
90
  inputs: [
91
91
  {
92
92
  internalType: "uint256",
93
- name: "shares",
93
+ name: "tokenOutAmount",
94
94
  type: "uint256",
95
95
  },
96
96
  {
@@ -128,7 +128,7 @@ const _abi = [
128
128
  outputs: [
129
129
  {
130
130
  internalType: "uint256",
131
- name: "amount",
131
+ name: "tokenInAmount",
132
132
  type: "uint256",
133
133
  },
134
134
  ],
@@ -137,7 +137,7 @@ const _abi = [
137
137
  },
138
138
  {
139
139
  inputs: [],
140
- name: "tokenOut",
140
+ name: "tokenIn",
141
141
  outputs: [
142
142
  {
143
143
  internalType: "address",
@@ -150,7 +150,7 @@ const _abi = [
150
150
  },
151
151
  {
152
152
  inputs: [],
153
- name: "unwrappedToken",
153
+ name: "tokenOut",
154
154
  outputs: [
155
155
  {
156
156
  internalType: "address",
@@ -163,7 +163,7 @@ const _abi = [
163
163
  },
164
164
  {
165
165
  inputs: [],
166
- name: "wrappedToken",
166
+ name: "underlying",
167
167
  outputs: [
168
168
  {
169
169
  internalType: "address",
@@ -43,7 +43,9 @@ export { IDataCompressorV3_00__factory } from "./IDataCompressorV3_00__factory";
43
43
  export { IERC20__factory } from "./IERC20__factory";
44
44
  export { IERC20Metadata__factory } from "./IERC20Metadata__factory";
45
45
  export { IERC20Permit__factory } from "./IERC20Permit__factory";
46
+ export { IERC20Zapper__factory } from "./IERC20Zapper__factory";
46
47
  export { IERC4626__factory } from "./IERC4626__factory";
48
+ export { IETHZapper__factory } from "./IETHZapper__factory";
47
49
  export { IGasPricer__factory } from "./IGasPricer__factory";
48
50
  export { IInterestRateModel__factory } from "./IInterestRateModel__factory";
49
51
  export { ILidoV1Adapter__factory } from "./ILidoV1Adapter__factory";
@@ -51,10 +53,8 @@ export { IOffchainOracle__factory } from "./IOffchainOracle__factory";
51
53
  export { IPermit2__factory } from "./IPermit2__factory";
52
54
  export { IPriceOracleBase__factory } from "./IPriceOracleBase__factory";
53
55
  export { IVersion__factory } from "./IVersion__factory";
54
- export { IWERC20Zapper__factory } from "./IWERC20Zapper__factory";
55
56
  export { IWETH__factory } from "./IWETH__factory";
56
57
  export { IWETHGateway__factory } from "./IWETHGateway__factory";
57
- export { IWETHZapper__factory } from "./IWETHZapper__factory";
58
58
  export { IYVault__factory } from "./IYVault__factory";
59
59
  export { IYearnV2Adapter__factory } from "./IYearnV2Adapter__factory";
60
60
  export { IZapper__factory } from "./IZapper__factory";