@gearbox-protocol/sdk 0.0.78 → 0.0.81

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 (56) hide show
  1. package/lib/contracts/contracts.d.ts +1 -0
  2. package/lib/contracts/contracts.js +4 -4
  3. package/lib/types/contracts/adapters/lido/LidoV1.sol/LidoV1Adapter.d.ts +97 -1
  4. package/lib/types/contracts/adapters/lido/LidoV1_WETHGateway.sol/LidoV1Gateway.d.ts +97 -1
  5. package/lib/types/contracts/integrations/lido/IstETH.sol/IstETH.d.ts +226 -0
  6. package/lib/types/contracts/integrations/lido/IstETH.sol/IstETH.js +2 -0
  7. package/lib/types/contracts/integrations/lido/IstETH.sol/IstETHGetters.d.ts +210 -0
  8. package/lib/types/contracts/integrations/lido/IstETH.sol/IstETHGetters.js +2 -0
  9. package/lib/types/contracts/integrations/lido/IstETH.sol/index.d.ts +2 -0
  10. package/lib/types/contracts/integrations/lido/IstETH.sol/index.js +2 -0
  11. package/lib/types/contracts/integrations/lido/index.d.ts +2 -1
  12. package/lib/types/contracts/interfaces/adapters/lido/ILidoV1Adapter.sol/ILidoV1Adapter.d.ts +97 -1
  13. package/lib/types/factories/contracts/adapters/lido/LidoV1.sol/LidoV1Adapter__factory.d.ts +1 -1
  14. package/lib/types/factories/contracts/adapters/lido/LidoV1.sol/LidoV1Adapter__factory.js +192 -1
  15. package/lib/types/factories/contracts/adapters/lido/LidoV1_WETHGateway.sol/LidoV1Gateway__factory.d.ts +1 -1
  16. package/lib/types/factories/contracts/adapters/lido/LidoV1_WETHGateway.sol/LidoV1Gateway__factory.js +192 -1
  17. package/lib/types/factories/contracts/integrations/lido/IstETH.sol/IstETHGetters__factory.d.ts +35 -0
  18. package/lib/types/factories/contracts/integrations/lido/IstETH.sol/IstETHGetters__factory.js +340 -0
  19. package/lib/types/factories/contracts/integrations/lido/IstETH.sol/IstETH__factory.d.ts +35 -0
  20. package/lib/types/factories/contracts/integrations/lido/IstETH.sol/IstETH__factory.js +359 -0
  21. package/lib/types/factories/contracts/integrations/lido/IstETH.sol/index.d.ts +2 -0
  22. package/lib/types/factories/contracts/integrations/lido/IstETH.sol/index.js +10 -0
  23. package/lib/types/factories/contracts/integrations/lido/index.d.ts +1 -1
  24. package/lib/types/factories/contracts/integrations/lido/index.js +25 -3
  25. package/lib/types/factories/contracts/interfaces/adapters/lido/ILidoV1Adapter.sol/ILidoV1Adapter__factory.d.ts +3 -10
  26. package/lib/types/factories/contracts/interfaces/adapters/lido/ILidoV1Adapter.sol/ILidoV1Adapter__factory.js +191 -0
  27. package/lib/types/factories/contracts/support/PauseMulticall__factory.d.ts +1 -1
  28. package/lib/types/factories/contracts/support/PauseMulticall__factory.js +1 -1
  29. package/lib/types/factories/contracts/test/adapters/LidoV1Adapter.t.sol/LidoV1AdapterTest__factory.d.ts +1 -1
  30. package/lib/types/factories/contracts/test/adapters/LidoV1Adapter.t.sol/LidoV1AdapterTest__factory.js +1 -1
  31. package/lib/types/factories/contracts/test/support/PauseMulticall.t.sol/PauseMulticallTest__factory.d.ts +1 -1
  32. package/lib/types/factories/contracts/test/support/PauseMulticall.t.sol/PauseMulticallTest__factory.js +1 -1
  33. package/lib/types/hardhat.d.ts +9 -0
  34. package/lib/types/index.d.ts +4 -2
  35. package/lib/types/index.js +7 -5
  36. package/package.json +1 -1
  37. package/src/contracts/contracts.ts +5 -5
  38. package/src/types/contracts/adapters/lido/LidoV1.sol/LidoV1Adapter.ts +262 -0
  39. package/src/types/contracts/adapters/lido/LidoV1_WETHGateway.sol/LidoV1Gateway.ts +266 -1
  40. package/src/types/contracts/integrations/lido/{IstETH.ts → IstETH.sol/IstETH.ts} +186 -1
  41. package/src/types/contracts/integrations/lido/IstETH.sol/IstETHGetters.ts +507 -0
  42. package/src/types/contracts/integrations/lido/IstETH.sol/index.ts +5 -0
  43. package/src/types/contracts/integrations/lido/index.ts +2 -1
  44. package/src/types/contracts/interfaces/adapters/lido/ILidoV1Adapter.sol/ILidoV1Adapter.ts +262 -0
  45. package/src/types/factories/contracts/adapters/lido/LidoV1.sol/LidoV1Adapter__factory.ts +192 -1
  46. package/src/types/factories/contracts/adapters/lido/LidoV1_WETHGateway.sol/LidoV1Gateway__factory.ts +192 -1
  47. package/src/types/factories/contracts/integrations/lido/IstETH.sol/IstETHGetters__factory.ts +344 -0
  48. package/src/types/factories/contracts/integrations/lido/{IstETH__factory.ts → IstETH.sol/IstETH__factory.ts} +136 -1
  49. package/src/types/factories/contracts/integrations/lido/IstETH.sol/index.ts +5 -0
  50. package/src/types/factories/contracts/integrations/lido/index.ts +1 -1
  51. package/src/types/factories/contracts/interfaces/adapters/lido/ILidoV1Adapter.sol/ILidoV1Adapter__factory.ts +191 -0
  52. package/src/types/factories/contracts/support/PauseMulticall__factory.ts +1 -1
  53. package/src/types/factories/contracts/test/adapters/LidoV1Adapter.t.sol/LidoV1AdapterTest__factory.ts +1 -1
  54. package/src/types/factories/contracts/test/support/PauseMulticall.t.sol/PauseMulticallTest__factory.ts +1 -1
  55. package/src/types/hardhat.d.ts +9 -0
  56. package/src/types/index.ts +4 -2
@@ -0,0 +1,35 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IstETHGetters, IstETHGettersInterface } from "../../../../../contracts/integrations/lido/IstETH.sol/IstETHGetters";
4
+ export declare class IstETHGetters__factory {
5
+ static readonly abi: ({
6
+ anonymous: boolean;
7
+ inputs: {
8
+ indexed: boolean;
9
+ internalType: string;
10
+ name: string;
11
+ type: string;
12
+ }[];
13
+ name: string;
14
+ type: string;
15
+ outputs?: undefined;
16
+ stateMutability?: undefined;
17
+ } | {
18
+ inputs: {
19
+ internalType: string;
20
+ name: string;
21
+ type: string;
22
+ }[];
23
+ name: string;
24
+ outputs: {
25
+ internalType: string;
26
+ name: string;
27
+ type: string;
28
+ }[];
29
+ stateMutability: string;
30
+ type: string;
31
+ anonymous?: undefined;
32
+ })[];
33
+ static createInterface(): IstETHGettersInterface;
34
+ static connect(address: string, signerOrProvider: Signer | Provider): IstETHGetters;
35
+ }
@@ -0,0 +1,340 @@
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.IstETHGetters__factory = void 0;
7
+ var ethers_1 = require("ethers");
8
+ var _abi = [
9
+ {
10
+ anonymous: false,
11
+ inputs: [
12
+ {
13
+ indexed: true,
14
+ internalType: "address",
15
+ name: "owner",
16
+ type: "address",
17
+ },
18
+ {
19
+ indexed: true,
20
+ internalType: "address",
21
+ name: "spender",
22
+ type: "address",
23
+ },
24
+ {
25
+ indexed: false,
26
+ internalType: "uint256",
27
+ name: "value",
28
+ type: "uint256",
29
+ },
30
+ ],
31
+ name: "Approval",
32
+ type: "event",
33
+ },
34
+ {
35
+ anonymous: false,
36
+ inputs: [
37
+ {
38
+ indexed: true,
39
+ internalType: "address",
40
+ name: "from",
41
+ type: "address",
42
+ },
43
+ {
44
+ indexed: true,
45
+ internalType: "address",
46
+ name: "to",
47
+ type: "address",
48
+ },
49
+ {
50
+ indexed: false,
51
+ internalType: "uint256",
52
+ name: "value",
53
+ type: "uint256",
54
+ },
55
+ ],
56
+ name: "Transfer",
57
+ type: "event",
58
+ },
59
+ {
60
+ inputs: [
61
+ {
62
+ internalType: "address",
63
+ name: "owner",
64
+ type: "address",
65
+ },
66
+ {
67
+ internalType: "address",
68
+ name: "spender",
69
+ type: "address",
70
+ },
71
+ ],
72
+ name: "allowance",
73
+ outputs: [
74
+ {
75
+ internalType: "uint256",
76
+ name: "",
77
+ type: "uint256",
78
+ },
79
+ ],
80
+ stateMutability: "view",
81
+ type: "function",
82
+ },
83
+ {
84
+ inputs: [
85
+ {
86
+ internalType: "address",
87
+ name: "spender",
88
+ type: "address",
89
+ },
90
+ {
91
+ internalType: "uint256",
92
+ name: "amount",
93
+ type: "uint256",
94
+ },
95
+ ],
96
+ name: "approve",
97
+ outputs: [
98
+ {
99
+ internalType: "bool",
100
+ name: "",
101
+ type: "bool",
102
+ },
103
+ ],
104
+ stateMutability: "nonpayable",
105
+ type: "function",
106
+ },
107
+ {
108
+ inputs: [
109
+ {
110
+ internalType: "address",
111
+ name: "account",
112
+ type: "address",
113
+ },
114
+ ],
115
+ name: "balanceOf",
116
+ outputs: [
117
+ {
118
+ internalType: "uint256",
119
+ name: "",
120
+ type: "uint256",
121
+ },
122
+ ],
123
+ stateMutability: "view",
124
+ type: "function",
125
+ },
126
+ {
127
+ inputs: [],
128
+ name: "decimals",
129
+ outputs: [
130
+ {
131
+ internalType: "uint8",
132
+ name: "",
133
+ type: "uint8",
134
+ },
135
+ ],
136
+ stateMutability: "view",
137
+ type: "function",
138
+ },
139
+ {
140
+ inputs: [],
141
+ name: "getFee",
142
+ outputs: [
143
+ {
144
+ internalType: "uint16",
145
+ name: "",
146
+ type: "uint16",
147
+ },
148
+ ],
149
+ stateMutability: "view",
150
+ type: "function",
151
+ },
152
+ {
153
+ inputs: [
154
+ {
155
+ internalType: "uint256",
156
+ name: "_sharesAmount",
157
+ type: "uint256",
158
+ },
159
+ ],
160
+ name: "getPooledEthByShares",
161
+ outputs: [
162
+ {
163
+ internalType: "uint256",
164
+ name: "",
165
+ type: "uint256",
166
+ },
167
+ ],
168
+ stateMutability: "view",
169
+ type: "function",
170
+ },
171
+ {
172
+ inputs: [
173
+ {
174
+ internalType: "uint256",
175
+ name: "_ethAmount",
176
+ type: "uint256",
177
+ },
178
+ ],
179
+ name: "getSharesByPooledEth",
180
+ outputs: [
181
+ {
182
+ internalType: "uint256",
183
+ name: "",
184
+ type: "uint256",
185
+ },
186
+ ],
187
+ stateMutability: "view",
188
+ type: "function",
189
+ },
190
+ {
191
+ inputs: [],
192
+ name: "getTotalPooledEther",
193
+ outputs: [
194
+ {
195
+ internalType: "uint256",
196
+ name: "",
197
+ type: "uint256",
198
+ },
199
+ ],
200
+ stateMutability: "view",
201
+ type: "function",
202
+ },
203
+ {
204
+ inputs: [],
205
+ name: "getTotalShares",
206
+ outputs: [
207
+ {
208
+ internalType: "uint256",
209
+ name: "",
210
+ type: "uint256",
211
+ },
212
+ ],
213
+ stateMutability: "view",
214
+ type: "function",
215
+ },
216
+ {
217
+ inputs: [],
218
+ name: "name",
219
+ outputs: [
220
+ {
221
+ internalType: "string",
222
+ name: "",
223
+ type: "string",
224
+ },
225
+ ],
226
+ stateMutability: "view",
227
+ type: "function",
228
+ },
229
+ {
230
+ inputs: [
231
+ {
232
+ internalType: "address",
233
+ name: "_account",
234
+ type: "address",
235
+ },
236
+ ],
237
+ name: "sharesOf",
238
+ outputs: [
239
+ {
240
+ internalType: "uint256",
241
+ name: "",
242
+ type: "uint256",
243
+ },
244
+ ],
245
+ stateMutability: "view",
246
+ type: "function",
247
+ },
248
+ {
249
+ inputs: [],
250
+ name: "symbol",
251
+ outputs: [
252
+ {
253
+ internalType: "string",
254
+ name: "",
255
+ type: "string",
256
+ },
257
+ ],
258
+ stateMutability: "view",
259
+ type: "function",
260
+ },
261
+ {
262
+ inputs: [],
263
+ name: "totalSupply",
264
+ outputs: [
265
+ {
266
+ internalType: "uint256",
267
+ name: "",
268
+ type: "uint256",
269
+ },
270
+ ],
271
+ stateMutability: "view",
272
+ type: "function",
273
+ },
274
+ {
275
+ inputs: [
276
+ {
277
+ internalType: "address",
278
+ name: "recipient",
279
+ type: "address",
280
+ },
281
+ {
282
+ internalType: "uint256",
283
+ name: "amount",
284
+ type: "uint256",
285
+ },
286
+ ],
287
+ name: "transfer",
288
+ outputs: [
289
+ {
290
+ internalType: "bool",
291
+ name: "",
292
+ type: "bool",
293
+ },
294
+ ],
295
+ stateMutability: "nonpayable",
296
+ type: "function",
297
+ },
298
+ {
299
+ inputs: [
300
+ {
301
+ internalType: "address",
302
+ name: "sender",
303
+ type: "address",
304
+ },
305
+ {
306
+ internalType: "address",
307
+ name: "recipient",
308
+ type: "address",
309
+ },
310
+ {
311
+ internalType: "uint256",
312
+ name: "amount",
313
+ type: "uint256",
314
+ },
315
+ ],
316
+ name: "transferFrom",
317
+ outputs: [
318
+ {
319
+ internalType: "bool",
320
+ name: "",
321
+ type: "bool",
322
+ },
323
+ ],
324
+ stateMutability: "nonpayable",
325
+ type: "function",
326
+ },
327
+ ];
328
+ var IstETHGetters__factory = /** @class */ (function () {
329
+ function IstETHGetters__factory() {
330
+ }
331
+ IstETHGetters__factory.createInterface = function () {
332
+ return new ethers_1.utils.Interface(_abi);
333
+ };
334
+ IstETHGetters__factory.connect = function (address, signerOrProvider) {
335
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
336
+ };
337
+ IstETHGetters__factory.abi = _abi;
338
+ return IstETHGetters__factory;
339
+ }());
340
+ exports.IstETHGetters__factory = IstETHGetters__factory;
@@ -0,0 +1,35 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IstETH, IstETHInterface } from "../../../../../contracts/integrations/lido/IstETH.sol/IstETH";
4
+ export declare class IstETH__factory {
5
+ static readonly abi: ({
6
+ anonymous: boolean;
7
+ inputs: {
8
+ indexed: boolean;
9
+ internalType: string;
10
+ name: string;
11
+ type: string;
12
+ }[];
13
+ name: string;
14
+ type: string;
15
+ outputs?: undefined;
16
+ stateMutability?: undefined;
17
+ } | {
18
+ inputs: {
19
+ internalType: string;
20
+ name: string;
21
+ type: string;
22
+ }[];
23
+ name: string;
24
+ outputs: {
25
+ internalType: string;
26
+ name: string;
27
+ type: string;
28
+ }[];
29
+ stateMutability: string;
30
+ type: string;
31
+ anonymous?: undefined;
32
+ })[];
33
+ static createInterface(): IstETHInterface;
34
+ static connect(address: string, signerOrProvider: Signer | Provider): IstETH;
35
+ }