@pufferfinance/puffer-sdk 1.24.5 → 1.25.0
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/dist/api/puffer-client.cjs +1 -1
- package/dist/api/puffer-client.cjs.map +1 -1
- package/dist/api/puffer-client.d.ts +3 -0
- package/dist/api/puffer-client.js +26 -19
- package/dist/api/puffer-client.js.map +1 -1
- package/dist/contracts/abis/mainnet/ConcreteMultiStrategyVault.cjs +1 -1
- package/dist/contracts/abis/mainnet/ConcreteMultiStrategyVault.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/ConcreteMultiStrategyVault.d.ts +36 -0
- package/dist/contracts/abis/mainnet/ConcreteMultiStrategyVault.js +18 -0
- package/dist/contracts/abis/mainnet/ConcreteMultiStrategyVault.js.map +1 -1
- package/dist/contracts/abis/mainnet/LagoonVault.cjs +2 -0
- package/dist/contracts/abis/mainnet/LagoonVault.cjs.map +1 -0
- package/dist/contracts/abis/mainnet/LagoonVault.d.ts +731 -0
- package/dist/contracts/abis/mainnet/LagoonVault.js +438 -0
- package/dist/contracts/abis/mainnet/LagoonVault.js.map +1 -0
- package/dist/contracts/handlers/concrete-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/concrete-vault-handler.cjs.map +1 -1
- package/dist/contracts/handlers/concrete-vault-handler.d.ts +49 -3
- package/dist/contracts/handlers/concrete-vault-handler.js +25 -7
- package/dist/contracts/handlers/concrete-vault-handler.js.map +1 -1
- package/dist/contracts/handlers/lagoon-vault-handler.cjs +2 -0
- package/dist/contracts/handlers/lagoon-vault-handler.cjs.map +1 -0
- package/dist/contracts/handlers/lagoon-vault-handler.d.ts +15446 -0
- package/dist/contracts/handlers/lagoon-vault-handler.js +233 -0
- package/dist/contracts/handlers/lagoon-vault-handler.js.map +1 -0
- package/dist/contracts/tokens.cjs +1 -1
- package/dist/contracts/tokens.cjs.map +1 -1
- package/dist/contracts/tokens.d.ts +1 -0
- package/dist/contracts/tokens.js +11 -5
- package/dist/contracts/tokens.js.map +1 -1
- package/dist/contracts/vaults-addresses.cjs +1 -1
- package/dist/contracts/vaults-addresses.cjs.map +1 -1
- package/dist/contracts/vaults-addresses.d.ts +8 -0
- package/dist/contracts/vaults-addresses.js +16 -8
- package/dist/contracts/vaults-addresses.js.map +1 -1
- package/dist/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
const t = [
|
|
2
|
+
{
|
|
3
|
+
inputs: [],
|
|
4
|
+
name: "MAX_MANAGEMENT_RATE",
|
|
5
|
+
outputs: [{ internalType: "uint16", name: "", type: "uint16" }],
|
|
6
|
+
stateMutability: "view",
|
|
7
|
+
type: "function"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
inputs: [],
|
|
11
|
+
name: "MAX_PERFORMANCE_RATE",
|
|
12
|
+
outputs: [{ internalType: "uint16", name: "", type: "uint16" }],
|
|
13
|
+
stateMutability: "view",
|
|
14
|
+
type: "function"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
inputs: [],
|
|
18
|
+
name: "MAX_PROTOCOL_RATE",
|
|
19
|
+
outputs: [{ internalType: "uint16", name: "", type: "uint16" }],
|
|
20
|
+
stateMutability: "view",
|
|
21
|
+
type: "function"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
inputs: [],
|
|
25
|
+
name: "acceptOwnership",
|
|
26
|
+
outputs: [],
|
|
27
|
+
stateMutability: "nonpayable",
|
|
28
|
+
type: "function"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
inputs: [
|
|
32
|
+
{ internalType: "address[]", name: "accounts", type: "address[]" }
|
|
33
|
+
],
|
|
34
|
+
name: "addToWhitelist",
|
|
35
|
+
outputs: [],
|
|
36
|
+
stateMutability: "nonpayable",
|
|
37
|
+
type: "function"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
inputs: [
|
|
41
|
+
{ internalType: "address", name: "owner", type: "address" },
|
|
42
|
+
{ internalType: "address", name: "spender", type: "address" }
|
|
43
|
+
],
|
|
44
|
+
name: "allowance",
|
|
45
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
46
|
+
stateMutability: "view",
|
|
47
|
+
type: "function"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
inputs: [
|
|
51
|
+
{ internalType: "address", name: "spender", type: "address" },
|
|
52
|
+
{ internalType: "uint256", name: "value", type: "uint256" }
|
|
53
|
+
],
|
|
54
|
+
name: "approve",
|
|
55
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
56
|
+
stateMutability: "nonpayable",
|
|
57
|
+
type: "function"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
inputs: [],
|
|
61
|
+
name: "asset",
|
|
62
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
63
|
+
stateMutability: "view",
|
|
64
|
+
type: "function"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
68
|
+
name: "balanceOf",
|
|
69
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
70
|
+
stateMutability: "view",
|
|
71
|
+
type: "function"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
inputs: [],
|
|
75
|
+
name: "cancelRequestDeposit",
|
|
76
|
+
outputs: [],
|
|
77
|
+
stateMutability: "nonpayable",
|
|
78
|
+
type: "function"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
inputs: [
|
|
82
|
+
{ internalType: "uint256", name: "sharesToRedeem", type: "uint256" }
|
|
83
|
+
],
|
|
84
|
+
name: "claimSharesAndRequestRedeem",
|
|
85
|
+
outputs: [{ internalType: "uint40", name: "requestId", type: "uint40" }],
|
|
86
|
+
stateMutability: "nonpayable",
|
|
87
|
+
type: "function"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
inputs: [
|
|
91
|
+
{ internalType: "address[]", name: "controllers", type: "address[]" }
|
|
92
|
+
],
|
|
93
|
+
name: "claimSharesOnBehalf",
|
|
94
|
+
outputs: [],
|
|
95
|
+
stateMutability: "nonpayable",
|
|
96
|
+
type: "function"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
inputs: [
|
|
100
|
+
{ internalType: "uint256", name: "requestId", type: "uint256" },
|
|
101
|
+
{ internalType: "address", name: "controller", type: "address" }
|
|
102
|
+
],
|
|
103
|
+
name: "claimableDepositRequest",
|
|
104
|
+
outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
|
|
105
|
+
stateMutability: "view",
|
|
106
|
+
type: "function"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
inputs: [
|
|
110
|
+
{ internalType: "uint256", name: "requestId", type: "uint256" },
|
|
111
|
+
{ internalType: "address", name: "controller", type: "address" }
|
|
112
|
+
],
|
|
113
|
+
name: "claimableRedeemRequest",
|
|
114
|
+
outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
115
|
+
stateMutability: "view",
|
|
116
|
+
type: "function"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
inputs: [
|
|
120
|
+
{ internalType: "uint256", name: "_newTotalAssets", type: "uint256" }
|
|
121
|
+
],
|
|
122
|
+
name: "close",
|
|
123
|
+
outputs: [],
|
|
124
|
+
stateMutability: "nonpayable",
|
|
125
|
+
type: "function"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
129
|
+
name: "convertToAssets",
|
|
130
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
131
|
+
stateMutability: "view",
|
|
132
|
+
type: "function"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
inputs: [
|
|
136
|
+
{ internalType: "uint256", name: "shares", type: "uint256" },
|
|
137
|
+
{ internalType: "uint256", name: "requestId", type: "uint256" }
|
|
138
|
+
],
|
|
139
|
+
name: "convertToAssets",
|
|
140
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
141
|
+
stateMutability: "view",
|
|
142
|
+
type: "function"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
inputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
|
|
146
|
+
name: "convertToShares",
|
|
147
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
148
|
+
stateMutability: "view",
|
|
149
|
+
type: "function"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
inputs: [
|
|
153
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
154
|
+
{ internalType: "uint256", name: "requestId", type: "uint256" }
|
|
155
|
+
],
|
|
156
|
+
name: "convertToShares",
|
|
157
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
158
|
+
stateMutability: "view",
|
|
159
|
+
type: "function"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
inputs: [],
|
|
163
|
+
name: "decimals",
|
|
164
|
+
outputs: [{ internalType: "uint8", name: "", type: "uint8" }],
|
|
165
|
+
stateMutability: "view",
|
|
166
|
+
type: "function"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
inputs: [
|
|
170
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
171
|
+
{ internalType: "address", name: "receiver", type: "address" },
|
|
172
|
+
{ internalType: "address", name: "controller", type: "address" }
|
|
173
|
+
],
|
|
174
|
+
name: "deposit",
|
|
175
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
176
|
+
stateMutability: "nonpayable",
|
|
177
|
+
type: "function"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
inputs: [
|
|
181
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
182
|
+
{ internalType: "address", name: "receiver", type: "address" }
|
|
183
|
+
],
|
|
184
|
+
name: "deposit",
|
|
185
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
186
|
+
stateMutability: "nonpayable",
|
|
187
|
+
type: "function"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
inputs: [],
|
|
191
|
+
name: "isTotalAssetsValid",
|
|
192
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
193
|
+
stateMutability: "view",
|
|
194
|
+
type: "function"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
inputs: [{ internalType: "address", name: "controller", type: "address" }],
|
|
198
|
+
name: "maxDeposit",
|
|
199
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
200
|
+
stateMutability: "view",
|
|
201
|
+
type: "function"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
inputs: [{ internalType: "address", name: "controller", type: "address" }],
|
|
205
|
+
name: "maxMint",
|
|
206
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
207
|
+
stateMutability: "view",
|
|
208
|
+
type: "function"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
inputs: [{ internalType: "address", name: "controller", type: "address" }],
|
|
212
|
+
name: "maxRedeem",
|
|
213
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
214
|
+
stateMutability: "view",
|
|
215
|
+
type: "function"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
inputs: [{ internalType: "address", name: "controller", type: "address" }],
|
|
219
|
+
name: "maxWithdraw",
|
|
220
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
221
|
+
stateMutability: "view",
|
|
222
|
+
type: "function"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
inputs: [],
|
|
226
|
+
name: "name",
|
|
227
|
+
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
228
|
+
stateMutability: "view",
|
|
229
|
+
type: "function"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
inputs: [],
|
|
233
|
+
name: "owner",
|
|
234
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
235
|
+
stateMutability: "view",
|
|
236
|
+
type: "function"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
inputs: [],
|
|
240
|
+
name: "paused",
|
|
241
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
242
|
+
stateMutability: "view",
|
|
243
|
+
type: "function"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
inputs: [
|
|
247
|
+
{ internalType: "uint256", name: "requestId", type: "uint256" },
|
|
248
|
+
{ internalType: "address", name: "controller", type: "address" }
|
|
249
|
+
],
|
|
250
|
+
name: "pendingDepositRequest",
|
|
251
|
+
outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
|
|
252
|
+
stateMutability: "view",
|
|
253
|
+
type: "function"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
inputs: [
|
|
257
|
+
{ internalType: "uint256", name: "requestId", type: "uint256" },
|
|
258
|
+
{ internalType: "address", name: "controller", type: "address" }
|
|
259
|
+
],
|
|
260
|
+
name: "pendingRedeemRequest",
|
|
261
|
+
outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
262
|
+
stateMutability: "view",
|
|
263
|
+
type: "function"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
inputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
267
|
+
name: "previewDeposit",
|
|
268
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
269
|
+
stateMutability: "pure",
|
|
270
|
+
type: "function"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
inputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
274
|
+
name: "previewMint",
|
|
275
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
276
|
+
stateMutability: "pure",
|
|
277
|
+
type: "function"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
inputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
281
|
+
name: "previewRedeem",
|
|
282
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
283
|
+
stateMutability: "pure",
|
|
284
|
+
type: "function"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
inputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
288
|
+
name: "previewWithdraw",
|
|
289
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
290
|
+
stateMutability: "pure",
|
|
291
|
+
type: "function"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
inputs: [
|
|
295
|
+
{ internalType: "uint256", name: "shares", type: "uint256" },
|
|
296
|
+
{ internalType: "address", name: "receiver", type: "address" },
|
|
297
|
+
{ internalType: "address", name: "controller", type: "address" }
|
|
298
|
+
],
|
|
299
|
+
name: "redeem",
|
|
300
|
+
outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
|
|
301
|
+
stateMutability: "nonpayable",
|
|
302
|
+
type: "function"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
inputs: [
|
|
306
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
307
|
+
{ internalType: "address", name: "controller", type: "address" },
|
|
308
|
+
{ internalType: "address", name: "owner", type: "address" }
|
|
309
|
+
],
|
|
310
|
+
name: "requestDeposit",
|
|
311
|
+
outputs: [{ internalType: "uint256", name: "requestId", type: "uint256" }],
|
|
312
|
+
stateMutability: "payable",
|
|
313
|
+
type: "function"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
inputs: [
|
|
317
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
318
|
+
{ internalType: "address", name: "controller", type: "address" },
|
|
319
|
+
{ internalType: "address", name: "owner", type: "address" },
|
|
320
|
+
{ internalType: "address", name: "referral", type: "address" }
|
|
321
|
+
],
|
|
322
|
+
name: "requestDeposit",
|
|
323
|
+
outputs: [{ internalType: "uint256", name: "requestId", type: "uint256" }],
|
|
324
|
+
stateMutability: "payable",
|
|
325
|
+
type: "function"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
inputs: [
|
|
329
|
+
{ internalType: "uint256", name: "shares", type: "uint256" },
|
|
330
|
+
{ internalType: "address", name: "controller", type: "address" },
|
|
331
|
+
{ internalType: "address", name: "owner", type: "address" }
|
|
332
|
+
],
|
|
333
|
+
name: "requestRedeem",
|
|
334
|
+
outputs: [{ internalType: "uint256", name: "requestId", type: "uint256" }],
|
|
335
|
+
stateMutability: "nonpayable",
|
|
336
|
+
type: "function"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
inputs: [
|
|
340
|
+
{ internalType: "uint256", name: "_newTotalAssets", type: "uint256" }
|
|
341
|
+
],
|
|
342
|
+
name: "settleDeposit",
|
|
343
|
+
outputs: [],
|
|
344
|
+
stateMutability: "nonpayable",
|
|
345
|
+
type: "function"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
inputs: [
|
|
349
|
+
{ internalType: "uint256", name: "_newTotalAssets", type: "uint256" }
|
|
350
|
+
],
|
|
351
|
+
name: "settleRedeem",
|
|
352
|
+
outputs: [],
|
|
353
|
+
stateMutability: "nonpayable",
|
|
354
|
+
type: "function"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
inputs: [],
|
|
358
|
+
name: "symbol",
|
|
359
|
+
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
360
|
+
stateMutability: "view",
|
|
361
|
+
type: "function"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
inputs: [
|
|
365
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
366
|
+
{ internalType: "address", name: "receiver", type: "address" },
|
|
367
|
+
{ internalType: "address", name: "referral", type: "address" }
|
|
368
|
+
],
|
|
369
|
+
name: "syncDeposit",
|
|
370
|
+
outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
371
|
+
stateMutability: "payable",
|
|
372
|
+
type: "function"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
inputs: [],
|
|
376
|
+
name: "totalAssets",
|
|
377
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
378
|
+
stateMutability: "view",
|
|
379
|
+
type: "function"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
inputs: [],
|
|
383
|
+
name: "totalSupply",
|
|
384
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
385
|
+
stateMutability: "view",
|
|
386
|
+
type: "function"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
inputs: [
|
|
390
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
391
|
+
{ internalType: "uint256", name: "value", type: "uint256" }
|
|
392
|
+
],
|
|
393
|
+
name: "transfer",
|
|
394
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
395
|
+
stateMutability: "nonpayable",
|
|
396
|
+
type: "function"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
inputs: [
|
|
400
|
+
{ internalType: "address", name: "from", type: "address" },
|
|
401
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
402
|
+
{ internalType: "uint256", name: "value", type: "uint256" }
|
|
403
|
+
],
|
|
404
|
+
name: "transferFrom",
|
|
405
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
406
|
+
stateMutability: "nonpayable",
|
|
407
|
+
type: "function"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
411
|
+
name: "transferOwnership",
|
|
412
|
+
outputs: [],
|
|
413
|
+
stateMutability: "nonpayable",
|
|
414
|
+
type: "function"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
inputs: [],
|
|
418
|
+
name: "version",
|
|
419
|
+
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
420
|
+
stateMutability: "pure",
|
|
421
|
+
type: "function"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
inputs: [
|
|
425
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
426
|
+
{ internalType: "address", name: "receiver", type: "address" },
|
|
427
|
+
{ internalType: "address", name: "controller", type: "address" }
|
|
428
|
+
],
|
|
429
|
+
name: "withdraw",
|
|
430
|
+
outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
431
|
+
stateMutability: "nonpayable",
|
|
432
|
+
type: "function"
|
|
433
|
+
}
|
|
434
|
+
];
|
|
435
|
+
export {
|
|
436
|
+
t as LagoonVault
|
|
437
|
+
};
|
|
438
|
+
//# sourceMappingURL=LagoonVault.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LagoonVault.js","sources":["../../../../lib/contracts/abis/mainnet/LagoonVault.ts"],"sourcesContent":["export const LagoonVault = <const>[\n {\n inputs: [],\n name: 'MAX_MANAGEMENT_RATE',\n outputs: [{ internalType: 'uint16', name: '', type: 'uint16' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'MAX_PERFORMANCE_RATE',\n outputs: [{ internalType: 'uint16', name: '', type: 'uint16' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'MAX_PROTOCOL_RATE',\n outputs: [{ internalType: 'uint16', name: '', type: 'uint16' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'acceptOwnership',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address[]', name: 'accounts', type: 'address[]' },\n ],\n name: 'addToWhitelist',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'owner', type: 'address' },\n { internalType: 'address', name: 'spender', type: 'address' },\n ],\n name: 'allowance',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'spender', type: 'address' },\n { internalType: 'uint256', name: 'value', type: 'uint256' },\n ],\n name: 'approve',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'asset',\n outputs: [{ internalType: 'address', name: '', type: 'address' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'account', type: 'address' }],\n name: 'balanceOf',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'cancelRequestDeposit',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'sharesToRedeem', type: 'uint256' },\n ],\n name: 'claimSharesAndRequestRedeem',\n outputs: [{ internalType: 'uint40', name: 'requestId', type: 'uint40' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address[]', name: 'controllers', type: 'address[]' },\n ],\n name: 'claimSharesOnBehalf',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'requestId', type: 'uint256' },\n { internalType: 'address', name: 'controller', type: 'address' },\n ],\n name: 'claimableDepositRequest',\n outputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'requestId', type: 'uint256' },\n { internalType: 'address', name: 'controller', type: 'address' },\n ],\n name: 'claimableRedeemRequest',\n outputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: '_newTotalAssets', type: 'uint256' },\n ],\n name: 'close',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }],\n name: 'convertToAssets',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'shares', type: 'uint256' },\n { internalType: 'uint256', name: 'requestId', type: 'uint256' },\n ],\n name: 'convertToAssets',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }],\n name: 'convertToShares',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'assets', type: 'uint256' },\n { internalType: 'uint256', name: 'requestId', type: 'uint256' },\n ],\n name: 'convertToShares',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'decimals',\n outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'assets', type: 'uint256' },\n { internalType: 'address', name: 'receiver', type: 'address' },\n { internalType: 'address', name: 'controller', type: 'address' },\n ],\n name: 'deposit',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'assets', type: 'uint256' },\n { internalType: 'address', name: 'receiver', type: 'address' },\n ],\n name: 'deposit',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'isTotalAssetsValid',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'controller', type: 'address' }],\n name: 'maxDeposit',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'controller', type: 'address' }],\n name: 'maxMint',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'controller', type: 'address' }],\n name: 'maxRedeem',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'controller', type: 'address' }],\n name: 'maxWithdraw',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'name',\n outputs: [{ internalType: 'string', name: '', type: 'string' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'owner',\n outputs: [{ internalType: 'address', name: '', type: 'address' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'paused',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'requestId', type: 'uint256' },\n { internalType: 'address', name: 'controller', type: 'address' },\n ],\n name: 'pendingDepositRequest',\n outputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'requestId', type: 'uint256' },\n { internalType: 'address', name: 'controller', type: 'address' },\n ],\n name: 'pendingRedeemRequest',\n outputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n name: 'previewDeposit',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'pure',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n name: 'previewMint',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'pure',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n name: 'previewRedeem',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'pure',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n name: 'previewWithdraw',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'pure',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'shares', type: 'uint256' },\n { internalType: 'address', name: 'receiver', type: 'address' },\n { internalType: 'address', name: 'controller', type: 'address' },\n ],\n name: 'redeem',\n outputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'assets', type: 'uint256' },\n { internalType: 'address', name: 'controller', type: 'address' },\n { internalType: 'address', name: 'owner', type: 'address' },\n ],\n name: 'requestDeposit',\n outputs: [{ internalType: 'uint256', name: 'requestId', type: 'uint256' }],\n stateMutability: 'payable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'assets', type: 'uint256' },\n { internalType: 'address', name: 'controller', type: 'address' },\n { internalType: 'address', name: 'owner', type: 'address' },\n { internalType: 'address', name: 'referral', type: 'address' },\n ],\n name: 'requestDeposit',\n outputs: [{ internalType: 'uint256', name: 'requestId', type: 'uint256' }],\n stateMutability: 'payable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'shares', type: 'uint256' },\n { internalType: 'address', name: 'controller', type: 'address' },\n { internalType: 'address', name: 'owner', type: 'address' },\n ],\n name: 'requestRedeem',\n outputs: [{ internalType: 'uint256', name: 'requestId', type: 'uint256' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: '_newTotalAssets', type: 'uint256' },\n ],\n name: 'settleDeposit',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: '_newTotalAssets', type: 'uint256' },\n ],\n name: 'settleRedeem',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'symbol',\n outputs: [{ internalType: 'string', name: '', type: 'string' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'assets', type: 'uint256' },\n { internalType: 'address', name: 'receiver', type: 'address' },\n { internalType: 'address', name: 'referral', type: 'address' },\n ],\n name: 'syncDeposit',\n outputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }],\n stateMutability: 'payable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'totalAssets',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'totalSupply',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'to', type: 'address' },\n { internalType: 'uint256', name: 'value', type: 'uint256' },\n ],\n name: 'transfer',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'from', type: 'address' },\n { internalType: 'address', name: 'to', type: 'address' },\n { internalType: 'uint256', name: 'value', type: 'uint256' },\n ],\n name: 'transferFrom',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],\n name: 'transferOwnership',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'version',\n outputs: [{ internalType: 'string', name: '', type: 'string' }],\n stateMutability: 'pure',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'assets', type: 'uint256' },\n { internalType: 'address', name: 'receiver', type: 'address' },\n { internalType: 'address', name: 'controller', type: 'address' },\n ],\n name: 'withdraw',\n outputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n];\n"],"names":["LagoonVault"],"mappings":"AAAO,MAAMA,IAAqB;AAAA,EAChC;AAAA,IACE,QAAQ,CAAC;AAAA,IACT,MAAM;AAAA,IACN,SAAS,CAAC,EAAE,cAAc,UAAU,MAAM,IAAI,MAAM,UAAU;AAAA,IAC9D,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ,CAAC;AAAA,IACT,MAAM;AAAA,IACN,SAAS,CAAC,EAAE,cAAc,UAAU,MAAM,IAAI,MAAM,UAAU;AAAA,IAC9D,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ,CAAC;AAAA,IACT,MAAM;AAAA,IACN,SAAS,CAAC,EAAE,cAAc,UAAU,MAAM,IAAI,MAAM,UAAU;AAAA,IAC9D,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ,CAAC;AAAA,IACT,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IACV,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,MACN,EAAE,cAAc,aAAa,MAAM,YAAY,MAAM,YAAY;AAAA,IACnE;AAAA,IACA,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IACV,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,MACN,EAAE,cAAc,WAAW,MAAM,SAAS,MAAM,UAAU;AAAA,MAC1D,EAAE,cAAc,WAAW,MAAM,WAAW,MAAM,UAAU;AAAA,IAC9D;AAAA,IACA,MAAM;AAAA,IACN,SAAS,CAAC,EAAE,cAAc,WAAW,MAAM,IAAI,MAAM,WAAW;AAAA,IAChE,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ;AAA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,WAAW,MAAM,YAAY,MAAM,WAAW;AAAA,IACvE,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IACV,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ,CAAC;AAAA,IACT,MAAM;AAAA,IACN,SAAS,CAAC,EAAE,cAAc,UAAU,MAAM,IAAI,MAAM,UAAU;AAAA,IAC9D,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,MACN,EAAE,cAAc,WAAW,MAAM,UAAU,MAAM,UAAU;AAAA,MAC3D,EAAE,cAAc,WAAW,MAAM,YAAY,MAAM,UAAU;AAAA,MAC7D,EAAE,cAAc,WAAW,MAAM,cAAc,MAAM,UAAU;AAAA,IACjE;AAAA,IACA,MAAM;AAAA,IACN,SAAS,CAAC,EAAE,cAAc,WAAW,MAAM,UAAU,MAAM,WAAW;AAAA,IACtE,iBAAiB;AAAA,IACjB,MAAM;AAAA,EAAA;AAEV;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var a=Object.defineProperty;var c=(
|
|
1
|
+
"use strict";var a=Object.defineProperty;var c=(i,t,e)=>t in i?a(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var r=(i,t,e)=>c(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../constants-JN89aXws.cjs"),s=require("../abis/mainnet/ConcreteMultiStrategyVault.cjs"),l=require("../tokens.cjs"),h=require("../vaults-addresses.cjs"),u=require("../../getContract-F-fd_vf7.cjs");class C{constructor(t,e,n){r(this,"viemChain");r(this,"token");this.chain=t,this.walletClient=e,this.publicClient=n,this.viemChain=o.VIEM_CHAINS[t],this.token=l.Token.ctTACpufETH}withToken(t){return this.token=t,this}getContract(){const t=h.VAULTS_ADDRESSES[this.token][this.chain].ConcreteMultiStrategyVault,e=s.ConcreteMultiStrategyVault,n={public:this.publicClient,wallet:this.walletClient};return u.getContract({address:t,abi:e,client:n})}approve(t,e){return this.getContract().write.approve([t,e],{account:this.walletClient.account,chain:this.viemChain})}getAllowance(t,e){return this.getContract().read.allowance([t,e])}getBalance(t){return this.getContract().read.balanceOf([t])}getTotalSupply(){return this.getContract().read.totalSupply()}deposit(t){return this.getContract().write.deposit([t],{account:this.walletClient.account,chain:this.viemChain})}withdraw(t){return this.getContract().write.withdraw([t],{account:this.walletClient.account,chain:this.viemChain})}redeem(t,e,n){return e&&n?this.getContract().write.redeem([t,e,n],{account:this.walletClient.account,chain:this.viemChain}):this.getContract().write.redeem([t],{account:this.walletClient.account,chain:this.viemChain})}previewDeposit(t){return this.getContract().read.previewDeposit([t])}previewWithdraw(t){return this.getContract().read.previewWithdraw([t])}previewRedeem(t){return this.getContract().read.previewRedeem([t])}}exports.ConcreteVaultHandler=C;
|
|
2
2
|
//# sourceMappingURL=concrete-vault-handler.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"concrete-vault-handler.cjs","sources":["../../../lib/contracts/handlers/concrete-vault-handler.ts"],"sourcesContent":["import {\n WalletClient,\n PublicClient,\n getContract,\n Address,\n GetContractReturnType,\n Account,\n} from 'viem';\nimport { Chain, VIEM_CHAINS, ViemChain } from '../../chains/constants';\nimport { ConcreteMultiStrategyVault } from '../abis/mainnet/ConcreteMultiStrategyVault';\nimport { Token } from '../tokens';\nimport { VAULTS_ADDRESSES } from '../vaults-addresses';\n\ntype VaultAddresses = typeof VAULTS_ADDRESSES;\ntype PufETHVault = VaultAddresses[Token.ctTACpufETH][Chain.Mainnet];\n\n/**\n * Handler for the `ConcreteMultStrategyVault` contract for a given token (pufETH) exposing\n * methods to interact with the contract.\n */\nexport class ConcreteVaultHandler {\n private viemChain: ViemChain;\n private token: Token.ctTACpufETH;\n\n /**\n * Create the handler for processing UniFi tokens.\n *\n * @param chain Chain to use for the client.\n * @param walletClient The wallet client to use for wallet\n * interactions.\n * @param publicClient The public client to use for public\n * interactions.\n */\n constructor(\n private chain: Chain,\n private walletClient: WalletClient,\n private publicClient: PublicClient,\n ) {\n this.viemChain = VIEM_CHAINS[chain];\n this.token = Token.ctTACpufETH;\n }\n\n /**\n * Set the UniFi token to use for executing transactions on the\n * contract.\n *\n * @param token UniFi token to use for the handler.\n * @returns The handler.\n */\n public withToken(token: Token.ctTACpufETH) {\n this.token = token;\n return this;\n }\n\n /**\n * Get the contract.\n *\n * @returns The viem contract.\n */\n public getContract() {\n const address = (VAULTS_ADDRESSES[this.token][this.chain] as PufETHVault)\n .ConcreteMultiStrategyVault as Address;\n const abi = ConcreteMultiStrategyVault;\n const client = { public: this.publicClient, wallet: this.walletClient };\n\n return getContract({ address, abi, client }) as GetContractReturnType<\n typeof abi,\n typeof client,\n Address\n >;\n }\n\n /**\n * Approve a spender to spend the token.\n *\n * @param spender The spender of the token.\n * @param amount The amount to approve.\n * @returns The transaction.\n */\n public approve(spender: Address, amount: bigint) {\n return this.getContract().write.approve([spender, amount], {\n account: this.walletClient.account as Account,\n chain: this.viemChain,\n });\n }\n\n /**\n * Get the allowance of the owner for the spender.\n *\n * @param owner The owner of the allowance.\n * @param spender The spender of the allowance.\n * @returns The allowance.\n */\n public getAllowance(owner: Address, spender: Address) {\n return this.getContract().read.allowance([owner, spender]);\n }\n\n /**\n * Get the balance for the address.\n *\n * @param address The address to get the balance of.\n * @returns The balance.\n */\n public getBalance(address: Address) {\n return this.getContract().read.balanceOf([address]);\n }\n\n /**\n * Get the total supply of the token.\n *\n * @returns The total supply.\n */\n public getTotalSupply() {\n return this.getContract().read.totalSupply();\n }\n\n /**\n * Deposit an amount of the token.\n *\n * @param amount The amount to deposit.\n * @returns The transaction.\n */\n public deposit(amount: bigint) {\n return this.getContract().write.deposit([amount], {\n account: this.walletClient.account as Account,\n chain: this.viemChain,\n });\n }\n\n /**\n * Withdraw
|
|
1
|
+
{"version":3,"file":"concrete-vault-handler.cjs","sources":["../../../lib/contracts/handlers/concrete-vault-handler.ts"],"sourcesContent":["import {\n WalletClient,\n PublicClient,\n getContract,\n Address,\n GetContractReturnType,\n Account,\n} from 'viem';\nimport { Chain, VIEM_CHAINS, ViemChain } from '../../chains/constants';\nimport { ConcreteMultiStrategyVault } from '../abis/mainnet/ConcreteMultiStrategyVault';\nimport { Token } from '../tokens';\nimport { VAULTS_ADDRESSES } from '../vaults-addresses';\n\ntype VaultAddresses = typeof VAULTS_ADDRESSES;\ntype PufETHVault = VaultAddresses[Token.ctTACpufETH][Chain.Mainnet];\n\n/**\n * Handler for the `ConcreteMultStrategyVault` contract for a given token (pufETH) exposing\n * methods to interact with the contract.\n */\nexport class ConcreteVaultHandler {\n private viemChain: ViemChain;\n private token: Token.ctTACpufETH;\n\n /**\n * Create the handler for processing UniFi tokens.\n *\n * @param chain Chain to use for the client.\n * @param walletClient The wallet client to use for wallet\n * interactions.\n * @param publicClient The public client to use for public\n * interactions.\n */\n constructor(\n private chain: Chain,\n private walletClient: WalletClient,\n private publicClient: PublicClient,\n ) {\n this.viemChain = VIEM_CHAINS[chain];\n this.token = Token.ctTACpufETH;\n }\n\n /**\n * Set the UniFi token to use for executing transactions on the\n * contract.\n *\n * @param token UniFi token to use for the handler.\n * @returns The handler.\n */\n public withToken(token: Token.ctTACpufETH) {\n this.token = token;\n return this;\n }\n\n /**\n * Get the contract.\n *\n * @returns The viem contract.\n */\n public getContract() {\n const address = (VAULTS_ADDRESSES[this.token][this.chain] as PufETHVault)\n .ConcreteMultiStrategyVault as Address;\n const abi = ConcreteMultiStrategyVault;\n const client = { public: this.publicClient, wallet: this.walletClient };\n\n return getContract({ address, abi, client }) as GetContractReturnType<\n typeof abi,\n typeof client,\n Address\n >;\n }\n\n /**\n * Approve a spender to spend the token.\n *\n * @param spender The spender of the token.\n * @param amount The amount to approve.\n * @returns The transaction.\n */\n public approve(spender: Address, amount: bigint) {\n return this.getContract().write.approve([spender, amount], {\n account: this.walletClient.account as Account,\n chain: this.viemChain,\n });\n }\n\n /**\n * Get the allowance of the owner for the spender.\n *\n * @param owner The owner of the allowance.\n * @param spender The spender of the allowance.\n * @returns The allowance.\n */\n public getAllowance(owner: Address, spender: Address) {\n return this.getContract().read.allowance([owner, spender]);\n }\n\n /**\n * Get the balance for the address.\n *\n * @param address The address to get the balance of.\n * @returns The balance.\n */\n public getBalance(address: Address) {\n return this.getContract().read.balanceOf([address]);\n }\n\n /**\n * Get the total supply of the token.\n *\n * @returns The total supply.\n */\n public getTotalSupply() {\n return this.getContract().read.totalSupply();\n }\n\n /**\n * Deposit an amount of the token.\n *\n * @param amount The amount to deposit.\n * @returns The transaction.\n */\n public deposit(amount: bigint) {\n return this.getContract().write.deposit([amount], {\n account: this.walletClient.account as Account,\n chain: this.viemChain,\n });\n }\n\n /**\n * Withdraw the given amount of assets (pufETH) to the receiver.\n *\n * @param assets The amount of assets (pufETH) to withdraw.\n * @returns The transaction.\n */\n public withdraw(assets: bigint) {\n return this.getContract().write.withdraw([assets], {\n account: this.walletClient.account as Account,\n chain: this.viemChain,\n });\n }\n\n /**\n * Redeem the given amount of shares (ctTACpufETH) so the receiver\n * gets the assets (pufETH).\n *\n * @param shares The amount of shares (ctTACpufETH) to redeem.\n * @param receiver The optional receiver of the assets.\n * @param owner The optional owner of the shares.\n * @returns The transaction.\n */\n public redeem(shares: bigint, receiver?: Address, owner?: Address) {\n if (receiver && owner) {\n return this.getContract().write.redeem([shares, receiver, owner], {\n account: this.walletClient.account as Account,\n chain: this.viemChain,\n });\n }\n\n return this.getContract().write.redeem([shares], {\n account: this.walletClient.account as Account,\n chain: this.viemChain,\n });\n }\n\n /**\n * Provides a preview of the number of shares that would be minted for a given deposit amount, after fees.\n *\n * @param amount The amount to deposit.\n * @returns The preview.\n */\n public previewDeposit(amount: bigint) {\n return this.getContract().read.previewDeposit([amount]);\n }\n\n /**\n * Provides a preview of the number of shares that would be burned for a given withdrawal amount, after fees.\n *\n * @param amount The amount to withdraw.\n * @returns The preview.\n */\n public previewWithdraw(amount: bigint) {\n return this.getContract().read.previewWithdraw([amount]);\n }\n\n /**\n * Provides a preview of the amount of assets that would be redeemed\n * for a specific number of shares, after withdrawal fees. Subtracts\n * the withdrawal fee from the share amount to determine the net\n * shares for asset conversion.\n *\n * @param amount The amount to redeem.\n * @returns The preview.\n */\n public previewRedeem(amount: bigint) {\n return this.getContract().read.previewRedeem([amount]);\n }\n}\n"],"names":["ConcreteVaultHandler","chain","walletClient","publicClient","__publicField","VIEM_CHAINS","Token","token","address","VAULTS_ADDRESSES","abi","ConcreteMultiStrategyVault","client","getContract","spender","amount","owner","assets","shares","receiver"],"mappings":"4cAoBO,MAAMA,CAAqB,CAahC,YACUC,EACAC,EACAC,EACR,CAhBMC,EAAA,kBACAA,EAAA,cAYE,KAAA,MAAAH,EACA,KAAA,aAAAC,EACA,KAAA,aAAAC,EAEH,KAAA,UAAYE,cAAYJ,CAAK,EAClC,KAAK,MAAQK,EAAAA,MAAM,WAAA,CAUd,UAAUC,EAA0B,CACzC,YAAK,MAAQA,EACN,IAAA,CAQF,aAAc,CACnB,MAAMC,EAAWC,EAAAA,iBAAiB,KAAK,KAAK,EAAE,KAAK,KAAK,EACrD,2BACGC,EAAMC,EAAA,2BACNC,EAAS,CAAE,OAAQ,KAAK,aAAc,OAAQ,KAAK,YAAa,EAEtE,OAAOC,EAAY,YAAA,CAAE,QAAAL,EAAS,IAAAE,EAAK,OAAAE,EAAQ,CAAA,CActC,QAAQE,EAAkBC,EAAgB,CACxC,OAAA,KAAK,cAAc,MAAM,QAAQ,CAACD,EAASC,CAAM,EAAG,CACzD,QAAS,KAAK,aAAa,QAC3B,MAAO,KAAK,SAAA,CACb,CAAA,CAUI,aAAaC,EAAgBF,EAAkB,CAC7C,OAAA,KAAK,cAAc,KAAK,UAAU,CAACE,EAAOF,CAAO,CAAC,CAAA,CASpD,WAAWN,EAAkB,CAClC,OAAO,KAAK,YAAY,EAAE,KAAK,UAAU,CAACA,CAAO,CAAC,CAAA,CAQ7C,gBAAiB,CACtB,OAAO,KAAK,cAAc,KAAK,YAAY,CAAA,CAStC,QAAQO,EAAgB,CAC7B,OAAO,KAAK,YAAY,EAAE,MAAM,QAAQ,CAACA,CAAM,EAAG,CAChD,QAAS,KAAK,aAAa,QAC3B,MAAO,KAAK,SAAA,CACb,CAAA,CASI,SAASE,EAAgB,CAC9B,OAAO,KAAK,YAAY,EAAE,MAAM,SAAS,CAACA,CAAM,EAAG,CACjD,QAAS,KAAK,aAAa,QAC3B,MAAO,KAAK,SAAA,CACb,CAAA,CAYI,OAAOC,EAAgBC,EAAoBH,EAAiB,CACjE,OAAIG,GAAYH,EACP,KAAK,cAAc,MAAM,OAAO,CAACE,EAAQC,EAAUH,CAAK,EAAG,CAChE,QAAS,KAAK,aAAa,QAC3B,MAAO,KAAK,SAAA,CACb,EAGI,KAAK,YAAY,EAAE,MAAM,OAAO,CAACE,CAAM,EAAG,CAC/C,QAAS,KAAK,aAAa,QAC3B,MAAO,KAAK,SAAA,CACb,CAAA,CASI,eAAeH,EAAgB,CACpC,OAAO,KAAK,YAAY,EAAE,KAAK,eAAe,CAACA,CAAM,CAAC,CAAA,CASjD,gBAAgBA,EAAgB,CACrC,OAAO,KAAK,YAAY,EAAE,KAAK,gBAAgB,CAACA,CAAM,CAAC,CAAA,CAYlD,cAAcA,EAAgB,CACnC,OAAO,KAAK,YAAY,EAAE,KAAK,cAAc,CAACA,CAAM,CAAC,CAAA,CAEzD"}
|
|
@@ -319,6 +319,42 @@ export declare class ConcreteVaultHandler {
|
|
|
319
319
|
}];
|
|
320
320
|
readonly stateMutability: "nonpayable";
|
|
321
321
|
readonly type: "function";
|
|
322
|
+
}, {
|
|
323
|
+
readonly inputs: readonly [{
|
|
324
|
+
readonly internalType: "uint256";
|
|
325
|
+
readonly name: "shares_";
|
|
326
|
+
readonly type: "uint256";
|
|
327
|
+
}];
|
|
328
|
+
readonly name: "redeem";
|
|
329
|
+
readonly outputs: readonly [{
|
|
330
|
+
readonly internalType: "uint256";
|
|
331
|
+
readonly name: "";
|
|
332
|
+
readonly type: "uint256";
|
|
333
|
+
}];
|
|
334
|
+
readonly stateMutability: "nonpayable";
|
|
335
|
+
readonly type: "function";
|
|
336
|
+
}, {
|
|
337
|
+
readonly inputs: readonly [{
|
|
338
|
+
readonly internalType: "uint256";
|
|
339
|
+
readonly name: "shares_";
|
|
340
|
+
readonly type: "uint256";
|
|
341
|
+
}, {
|
|
342
|
+
readonly internalType: "address";
|
|
343
|
+
readonly name: "receiver_";
|
|
344
|
+
readonly type: "address";
|
|
345
|
+
}, {
|
|
346
|
+
readonly internalType: "address";
|
|
347
|
+
readonly name: "owner_";
|
|
348
|
+
readonly type: "address";
|
|
349
|
+
}];
|
|
350
|
+
readonly name: "redeem";
|
|
351
|
+
readonly outputs: readonly [{
|
|
352
|
+
readonly internalType: "uint256";
|
|
353
|
+
readonly name: "assets";
|
|
354
|
+
readonly type: "uint256";
|
|
355
|
+
}];
|
|
356
|
+
readonly stateMutability: "nonpayable";
|
|
357
|
+
readonly type: "function";
|
|
322
358
|
}], {
|
|
323
359
|
public: {
|
|
324
360
|
account: undefined;
|
|
@@ -14909,12 +14945,22 @@ export declare class ConcreteVaultHandler {
|
|
|
14909
14945
|
*/
|
|
14910
14946
|
deposit(amount: bigint): Promise<`0x${string}`>;
|
|
14911
14947
|
/**
|
|
14912
|
-
* Withdraw
|
|
14948
|
+
* Withdraw the given amount of assets (pufETH) to the receiver.
|
|
14913
14949
|
*
|
|
14914
|
-
* @param
|
|
14950
|
+
* @param assets The amount of assets (pufETH) to withdraw.
|
|
14951
|
+
* @returns The transaction.
|
|
14952
|
+
*/
|
|
14953
|
+
withdraw(assets: bigint): Promise<`0x${string}`>;
|
|
14954
|
+
/**
|
|
14955
|
+
* Redeem the given amount of shares (ctTACpufETH) so the receiver
|
|
14956
|
+
* gets the assets (pufETH).
|
|
14957
|
+
*
|
|
14958
|
+
* @param shares The amount of shares (ctTACpufETH) to redeem.
|
|
14959
|
+
* @param receiver The optional receiver of the assets.
|
|
14960
|
+
* @param owner The optional owner of the shares.
|
|
14915
14961
|
* @returns The transaction.
|
|
14916
14962
|
*/
|
|
14917
|
-
|
|
14963
|
+
redeem(shares: bigint, receiver?: Address, owner?: Address): Promise<`0x${string}`>;
|
|
14918
14964
|
/**
|
|
14919
14965
|
* Provides a preview of the number of shares that would be minted for a given deposit amount, after fees.
|
|
14920
14966
|
*
|