@pufferfinance/puffer-sdk 1.10.2 → 1.11.1
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 +50 -43
- package/dist/api/puffer-client.js.map +1 -1
- package/dist/contracts/abis/mainnet/mtwCARROT.cjs +2 -0
- package/dist/contracts/abis/mainnet/mtwCARROT.cjs.map +1 -0
- package/dist/contracts/abis/mainnet/mtwCARROT.d.ts +608 -0
- package/dist/contracts/abis/mainnet/mtwCARROT.js +477 -0
- package/dist/contracts/abis/mainnet/mtwCARROT.js.map +1 -0
- package/dist/contracts/addresses.cjs +1 -1
- package/dist/contracts/addresses.cjs.map +1 -1
- package/dist/contracts/addresses.d.ts +0 -23
- package/dist/contracts/addresses.js +2 -26
- package/dist/contracts/addresses.js.map +1 -1
- package/dist/contracts/handlers/mtw-carrot-handler.cjs +2 -0
- package/dist/contracts/handlers/mtw-carrot-handler.cjs.map +1 -0
- package/dist/contracts/handlers/mtw-carrot-handler.d.ts +15293 -0
- package/dist/contracts/handlers/mtw-carrot-handler.js +229 -0
- package/dist/contracts/handlers/mtw-carrot-handler.js.map +1 -0
- package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-accountant-handler.cjs.map +1 -1
- package/dist/contracts/handlers/nucleus-accountant-handler.js +3 -3
- package/dist/contracts/handlers/nucleus-accountant-handler.js.map +1 -1
- package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs.map +1 -1
- package/dist/contracts/handlers/nucleus-boring-vault-handler.js +3 -3
- package/dist/contracts/handlers/nucleus-boring-vault-handler.js.map +1 -1
- package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-teller-handler.cjs.map +1 -1
- package/dist/contracts/handlers/nucleus-teller-handler.js +9 -9
- package/dist/contracts/handlers/nucleus-teller-handler.js.map +1 -1
- package/dist/contracts/tokens.cjs +1 -1
- package/dist/contracts/tokens.cjs.map +1 -1
- package/dist/contracts/tokens.d.ts +6 -3
- package/dist/contracts/tokens.js +27 -8
- package/dist/contracts/tokens.js.map +1 -1
- package/dist/contracts/vaults-addresses.cjs +2 -0
- package/dist/contracts/vaults-addresses.cjs.map +1 -0
- package/dist/contracts/vaults-addresses.d.ts +30 -0
- package/dist/contracts/vaults-addresses.js +36 -0
- package/dist/contracts/vaults-addresses.js.map +1 -0
- package/dist/main.cjs +1 -1
- package/dist/main.js +22 -23
- package/dist/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
const e = [
|
|
2
|
+
{ inputs: [], name: "InvalidParam", type: "error" },
|
|
3
|
+
{ inputs: [], name: "NotGovernor", type: "error" },
|
|
4
|
+
{ inputs: [], name: "NotGovernorOrGuardian", type: "error" },
|
|
5
|
+
{ inputs: [], name: "ZeroAddress", type: "error" },
|
|
6
|
+
{
|
|
7
|
+
anonymous: !1,
|
|
8
|
+
inputs: [
|
|
9
|
+
{
|
|
10
|
+
indexed: !1,
|
|
11
|
+
internalType: "address",
|
|
12
|
+
name: "previousAdmin",
|
|
13
|
+
type: "address"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
indexed: !1,
|
|
17
|
+
internalType: "address",
|
|
18
|
+
name: "newAdmin",
|
|
19
|
+
type: "address"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
name: "AdminChanged",
|
|
23
|
+
type: "event"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
anonymous: !1,
|
|
27
|
+
inputs: [
|
|
28
|
+
{
|
|
29
|
+
indexed: !0,
|
|
30
|
+
internalType: "address",
|
|
31
|
+
name: "owner",
|
|
32
|
+
type: "address"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
indexed: !0,
|
|
36
|
+
internalType: "address",
|
|
37
|
+
name: "spender",
|
|
38
|
+
type: "address"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
indexed: !1,
|
|
42
|
+
internalType: "uint256",
|
|
43
|
+
name: "value",
|
|
44
|
+
type: "uint256"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
name: "Approval",
|
|
48
|
+
type: "event"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
anonymous: !1,
|
|
52
|
+
inputs: [
|
|
53
|
+
{
|
|
54
|
+
indexed: !0,
|
|
55
|
+
internalType: "address",
|
|
56
|
+
name: "beacon",
|
|
57
|
+
type: "address"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
name: "BeaconUpgraded",
|
|
61
|
+
type: "event"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
anonymous: !1,
|
|
65
|
+
inputs: [
|
|
66
|
+
{
|
|
67
|
+
indexed: !1,
|
|
68
|
+
internalType: "uint32",
|
|
69
|
+
name: "_newCliffDuration",
|
|
70
|
+
type: "uint32"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
name: "CliffDurationUpdated",
|
|
74
|
+
type: "event"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
anonymous: !1,
|
|
78
|
+
inputs: [
|
|
79
|
+
{
|
|
80
|
+
indexed: !0,
|
|
81
|
+
internalType: "address",
|
|
82
|
+
name: "_feeRecipient",
|
|
83
|
+
type: "address"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
name: "FeeRecipientUpdated",
|
|
87
|
+
type: "event"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
anonymous: !1,
|
|
91
|
+
inputs: [
|
|
92
|
+
{ indexed: !1, internalType: "uint8", name: "version", type: "uint8" }
|
|
93
|
+
],
|
|
94
|
+
name: "Initialized",
|
|
95
|
+
type: "event"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
anonymous: !1,
|
|
99
|
+
inputs: [
|
|
100
|
+
{
|
|
101
|
+
indexed: !0,
|
|
102
|
+
internalType: "address",
|
|
103
|
+
name: "_distributionCreator",
|
|
104
|
+
type: "address"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
indexed: !0,
|
|
108
|
+
internalType: "address",
|
|
109
|
+
name: "_distributor",
|
|
110
|
+
type: "address"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
name: "MerklAddressesUpdated",
|
|
114
|
+
type: "event"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
anonymous: !1,
|
|
118
|
+
inputs: [
|
|
119
|
+
{
|
|
120
|
+
indexed: !0,
|
|
121
|
+
internalType: "address",
|
|
122
|
+
name: "token",
|
|
123
|
+
type: "address"
|
|
124
|
+
},
|
|
125
|
+
{ indexed: !0, internalType: "address", name: "to", type: "address" },
|
|
126
|
+
{
|
|
127
|
+
indexed: !1,
|
|
128
|
+
internalType: "uint256",
|
|
129
|
+
name: "amount",
|
|
130
|
+
type: "uint256"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
name: "Recovered",
|
|
134
|
+
type: "event"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
anonymous: !1,
|
|
138
|
+
inputs: [
|
|
139
|
+
{ indexed: !0, internalType: "address", name: "from", type: "address" },
|
|
140
|
+
{ indexed: !0, internalType: "address", name: "to", type: "address" },
|
|
141
|
+
{
|
|
142
|
+
indexed: !1,
|
|
143
|
+
internalType: "uint256",
|
|
144
|
+
name: "value",
|
|
145
|
+
type: "uint256"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
name: "Transfer",
|
|
149
|
+
type: "event"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
anonymous: !1,
|
|
153
|
+
inputs: [
|
|
154
|
+
{
|
|
155
|
+
indexed: !0,
|
|
156
|
+
internalType: "address",
|
|
157
|
+
name: "implementation",
|
|
158
|
+
type: "address"
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
name: "Upgraded",
|
|
162
|
+
type: "event"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
inputs: [],
|
|
166
|
+
name: "accessControlManager",
|
|
167
|
+
outputs: [
|
|
168
|
+
{
|
|
169
|
+
internalType: "contract IAccessControlManager",
|
|
170
|
+
name: "",
|
|
171
|
+
type: "address"
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
stateMutability: "view",
|
|
175
|
+
type: "function"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
inputs: [
|
|
179
|
+
{ internalType: "address", name: "owner", type: "address" },
|
|
180
|
+
{ internalType: "address", name: "spender", type: "address" }
|
|
181
|
+
],
|
|
182
|
+
name: "allowance",
|
|
183
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
184
|
+
stateMutability: "view",
|
|
185
|
+
type: "function"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
inputs: [
|
|
189
|
+
{ internalType: "address", name: "spender", type: "address" },
|
|
190
|
+
{ internalType: "uint256", name: "amount", type: "uint256" }
|
|
191
|
+
],
|
|
192
|
+
name: "approve",
|
|
193
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
194
|
+
stateMutability: "nonpayable",
|
|
195
|
+
type: "function"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
199
|
+
name: "balanceOf",
|
|
200
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
201
|
+
stateMutability: "view",
|
|
202
|
+
type: "function"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
inputs: [{ internalType: "address", name: "user", type: "address" }],
|
|
206
|
+
name: "claim",
|
|
207
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
208
|
+
stateMutability: "nonpayable",
|
|
209
|
+
type: "function"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
inputs: [
|
|
213
|
+
{ internalType: "address", name: "user", type: "address" },
|
|
214
|
+
{ internalType: "uint256", name: "maxClaimIndex", type: "uint256" }
|
|
215
|
+
],
|
|
216
|
+
name: "claim",
|
|
217
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
218
|
+
stateMutability: "nonpayable",
|
|
219
|
+
type: "function"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
inputs: [{ internalType: "address", name: "user", type: "address" }],
|
|
223
|
+
name: "claimable",
|
|
224
|
+
outputs: [
|
|
225
|
+
{ internalType: "uint256", name: "amountClaimable", type: "uint256" }
|
|
226
|
+
],
|
|
227
|
+
stateMutability: "view",
|
|
228
|
+
type: "function"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
inputs: [
|
|
232
|
+
{ internalType: "address", name: "user", type: "address" },
|
|
233
|
+
{ internalType: "uint256", name: "maxClaimIndex", type: "uint256" }
|
|
234
|
+
],
|
|
235
|
+
name: "claimable",
|
|
236
|
+
outputs: [
|
|
237
|
+
{ internalType: "uint256", name: "amountClaimable", type: "uint256" }
|
|
238
|
+
],
|
|
239
|
+
stateMutability: "view",
|
|
240
|
+
type: "function"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
inputs: [],
|
|
244
|
+
name: "cliffDuration",
|
|
245
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
246
|
+
stateMutability: "view",
|
|
247
|
+
type: "function"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
inputs: [],
|
|
251
|
+
name: "decimals",
|
|
252
|
+
outputs: [{ internalType: "uint8", name: "", type: "uint8" }],
|
|
253
|
+
stateMutability: "view",
|
|
254
|
+
type: "function"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
inputs: [
|
|
258
|
+
{ internalType: "address", name: "spender", type: "address" },
|
|
259
|
+
{ internalType: "uint256", name: "subtractedValue", type: "uint256" }
|
|
260
|
+
],
|
|
261
|
+
name: "decreaseAllowance",
|
|
262
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
263
|
+
stateMutability: "nonpayable",
|
|
264
|
+
type: "function"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
inputs: [],
|
|
268
|
+
name: "distributionCreator",
|
|
269
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
270
|
+
stateMutability: "view",
|
|
271
|
+
type: "function"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
inputs: [],
|
|
275
|
+
name: "distributor",
|
|
276
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
277
|
+
stateMutability: "view",
|
|
278
|
+
type: "function"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
inputs: [],
|
|
282
|
+
name: "feeRecipient",
|
|
283
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
284
|
+
stateMutability: "view",
|
|
285
|
+
type: "function"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
inputs: [{ internalType: "address", name: "user", type: "address" }],
|
|
289
|
+
name: "getUserVestings",
|
|
290
|
+
outputs: [
|
|
291
|
+
{
|
|
292
|
+
components: [
|
|
293
|
+
{ internalType: "uint128", name: "amount", type: "uint128" },
|
|
294
|
+
{ internalType: "uint128", name: "unlockTimestamp", type: "uint128" }
|
|
295
|
+
],
|
|
296
|
+
internalType: "struct VestingID[]",
|
|
297
|
+
name: "allVestings",
|
|
298
|
+
type: "tuple[]"
|
|
299
|
+
},
|
|
300
|
+
{ internalType: "uint256", name: "nextClaimIndex", type: "uint256" }
|
|
301
|
+
],
|
|
302
|
+
stateMutability: "view",
|
|
303
|
+
type: "function"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
inputs: [
|
|
307
|
+
{ internalType: "address", name: "spender", type: "address" },
|
|
308
|
+
{ internalType: "uint256", name: "addedValue", type: "uint256" }
|
|
309
|
+
],
|
|
310
|
+
name: "increaseAllowance",
|
|
311
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
312
|
+
stateMutability: "nonpayable",
|
|
313
|
+
type: "function"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
inputs: [
|
|
317
|
+
{ internalType: "address", name: "_underlying", type: "address" },
|
|
318
|
+
{ internalType: "uint32", name: "_cliffDuration", type: "uint32" },
|
|
319
|
+
{
|
|
320
|
+
internalType: "contract IAccessControlManager",
|
|
321
|
+
name: "_accessControlManager",
|
|
322
|
+
type: "address"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
internalType: "address",
|
|
326
|
+
name: "_distributionCreator",
|
|
327
|
+
type: "address"
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
name: "initialize",
|
|
331
|
+
outputs: [],
|
|
332
|
+
stateMutability: "nonpayable",
|
|
333
|
+
type: "function"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
inputs: [],
|
|
337
|
+
name: "isTokenWrapper",
|
|
338
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
339
|
+
stateMutability: "pure",
|
|
340
|
+
type: "function"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
inputs: [],
|
|
344
|
+
name: "name",
|
|
345
|
+
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
346
|
+
stateMutability: "view",
|
|
347
|
+
type: "function"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
inputs: [],
|
|
351
|
+
name: "proxiableUUID",
|
|
352
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
353
|
+
stateMutability: "view",
|
|
354
|
+
type: "function"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
inputs: [
|
|
358
|
+
{ internalType: "address", name: "tokenAddress", type: "address" },
|
|
359
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
360
|
+
{ internalType: "uint256", name: "amountToRecover", type: "uint256" }
|
|
361
|
+
],
|
|
362
|
+
name: "recoverERC20",
|
|
363
|
+
outputs: [],
|
|
364
|
+
stateMutability: "nonpayable",
|
|
365
|
+
type: "function"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
inputs: [
|
|
369
|
+
{ internalType: "uint32", name: "_newCliffDuration", type: "uint32" }
|
|
370
|
+
],
|
|
371
|
+
name: "setCliffDuration",
|
|
372
|
+
outputs: [],
|
|
373
|
+
stateMutability: "nonpayable",
|
|
374
|
+
type: "function"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
inputs: [
|
|
378
|
+
{
|
|
379
|
+
internalType: "address",
|
|
380
|
+
name: "_distributionCreator",
|
|
381
|
+
type: "address"
|
|
382
|
+
}
|
|
383
|
+
],
|
|
384
|
+
name: "setDistributor",
|
|
385
|
+
outputs: [],
|
|
386
|
+
stateMutability: "nonpayable",
|
|
387
|
+
type: "function"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
inputs: [],
|
|
391
|
+
name: "setFeeRecipient",
|
|
392
|
+
outputs: [],
|
|
393
|
+
stateMutability: "nonpayable",
|
|
394
|
+
type: "function"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
inputs: [],
|
|
398
|
+
name: "symbol",
|
|
399
|
+
outputs: [{ internalType: "string", name: "", type: "string" }],
|
|
400
|
+
stateMutability: "view",
|
|
401
|
+
type: "function"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
inputs: [],
|
|
405
|
+
name: "token",
|
|
406
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
407
|
+
stateMutability: "view",
|
|
408
|
+
type: "function"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
inputs: [],
|
|
412
|
+
name: "totalSupply",
|
|
413
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
414
|
+
stateMutability: "view",
|
|
415
|
+
type: "function"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
inputs: [
|
|
419
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
420
|
+
{ internalType: "uint256", name: "amount", type: "uint256" }
|
|
421
|
+
],
|
|
422
|
+
name: "transfer",
|
|
423
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
424
|
+
stateMutability: "nonpayable",
|
|
425
|
+
type: "function"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
inputs: [
|
|
429
|
+
{ internalType: "address", name: "from", type: "address" },
|
|
430
|
+
{ internalType: "address", name: "to", type: "address" },
|
|
431
|
+
{ internalType: "uint256", name: "amount", type: "uint256" }
|
|
432
|
+
],
|
|
433
|
+
name: "transferFrom",
|
|
434
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
435
|
+
stateMutability: "nonpayable",
|
|
436
|
+
type: "function"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
inputs: [],
|
|
440
|
+
name: "underlying",
|
|
441
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
442
|
+
stateMutability: "view",
|
|
443
|
+
type: "function"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
inputs: [
|
|
447
|
+
{ internalType: "address", name: "newImplementation", type: "address" }
|
|
448
|
+
],
|
|
449
|
+
name: "upgradeTo",
|
|
450
|
+
outputs: [],
|
|
451
|
+
stateMutability: "nonpayable",
|
|
452
|
+
type: "function"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
inputs: [
|
|
456
|
+
{ internalType: "address", name: "newImplementation", type: "address" },
|
|
457
|
+
{ internalType: "bytes", name: "data", type: "bytes" }
|
|
458
|
+
],
|
|
459
|
+
name: "upgradeToAndCall",
|
|
460
|
+
outputs: [],
|
|
461
|
+
stateMutability: "payable",
|
|
462
|
+
type: "function"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
466
|
+
name: "vestingData",
|
|
467
|
+
outputs: [
|
|
468
|
+
{ internalType: "uint256", name: "nextClaimIndex", type: "uint256" }
|
|
469
|
+
],
|
|
470
|
+
stateMutability: "view",
|
|
471
|
+
type: "function"
|
|
472
|
+
}
|
|
473
|
+
];
|
|
474
|
+
export {
|
|
475
|
+
e as mtwCARROT
|
|
476
|
+
};
|
|
477
|
+
//# sourceMappingURL=mtwCARROT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mtwCARROT.js","sources":["../../../../lib/contracts/abis/mainnet/mtwCARROT.ts"],"sourcesContent":["export const mtwCARROT = <const>[\n { inputs: [], name: 'InvalidParam', type: 'error' },\n { inputs: [], name: 'NotGovernor', type: 'error' },\n { inputs: [], name: 'NotGovernorOrGuardian', type: 'error' },\n { inputs: [], name: 'ZeroAddress', type: 'error' },\n {\n anonymous: false,\n inputs: [\n {\n indexed: false,\n internalType: 'address',\n name: 'previousAdmin',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'address',\n name: 'newAdmin',\n type: 'address',\n },\n ],\n name: 'AdminChanged',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'address',\n name: 'owner',\n type: 'address',\n },\n {\n indexed: true,\n internalType: 'address',\n name: 'spender',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'value',\n type: 'uint256',\n },\n ],\n name: 'Approval',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'address',\n name: 'beacon',\n type: 'address',\n },\n ],\n name: 'BeaconUpgraded',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: false,\n internalType: 'uint32',\n name: '_newCliffDuration',\n type: 'uint32',\n },\n ],\n name: 'CliffDurationUpdated',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'address',\n name: '_feeRecipient',\n type: 'address',\n },\n ],\n name: 'FeeRecipientUpdated',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n { indexed: false, internalType: 'uint8', name: 'version', type: 'uint8' },\n ],\n name: 'Initialized',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'address',\n name: '_distributionCreator',\n type: 'address',\n },\n {\n indexed: true,\n internalType: 'address',\n name: '_distributor',\n type: 'address',\n },\n ],\n name: 'MerklAddressesUpdated',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'address',\n name: 'token',\n type: 'address',\n },\n { indexed: true, internalType: 'address', name: 'to', type: 'address' },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'amount',\n type: 'uint256',\n },\n ],\n name: 'Recovered',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n { indexed: true, internalType: 'address', name: 'from', type: 'address' },\n { indexed: true, internalType: 'address', name: 'to', type: 'address' },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'value',\n type: 'uint256',\n },\n ],\n name: 'Transfer',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'address',\n name: 'implementation',\n type: 'address',\n },\n ],\n name: 'Upgraded',\n type: 'event',\n },\n {\n inputs: [],\n name: 'accessControlManager',\n outputs: [\n {\n internalType: 'contract IAccessControlManager',\n name: '',\n type: 'address',\n },\n ],\n stateMutability: 'view',\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: 'amount', type: 'uint256' },\n ],\n name: 'approve',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'nonpayable',\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: [{ internalType: 'address', name: 'user', type: 'address' }],\n name: 'claim',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'user', type: 'address' },\n { internalType: 'uint256', name: 'maxClaimIndex', type: 'uint256' },\n ],\n name: 'claim',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'user', type: 'address' }],\n name: 'claimable',\n outputs: [\n { internalType: 'uint256', name: 'amountClaimable', type: 'uint256' },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'user', type: 'address' },\n { internalType: 'uint256', name: 'maxClaimIndex', type: 'uint256' },\n ],\n name: 'claimable',\n outputs: [\n { internalType: 'uint256', name: 'amountClaimable', type: 'uint256' },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'cliffDuration',\n outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }],\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: 'address', name: 'spender', type: 'address' },\n { internalType: 'uint256', name: 'subtractedValue', type: 'uint256' },\n ],\n name: 'decreaseAllowance',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'distributionCreator',\n outputs: [{ internalType: 'address', name: '', type: 'address' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'distributor',\n outputs: [{ internalType: 'address', name: '', type: 'address' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'feeRecipient',\n outputs: [{ internalType: 'address', name: '', type: 'address' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'user', type: 'address' }],\n name: 'getUserVestings',\n outputs: [\n {\n components: [\n { internalType: 'uint128', name: 'amount', type: 'uint128' },\n { internalType: 'uint128', name: 'unlockTimestamp', type: 'uint128' },\n ],\n internalType: 'struct VestingID[]',\n name: 'allVestings',\n type: 'tuple[]',\n },\n { internalType: 'uint256', name: 'nextClaimIndex', type: 'uint256' },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'spender', type: 'address' },\n { internalType: 'uint256', name: 'addedValue', type: 'uint256' },\n ],\n name: 'increaseAllowance',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: '_underlying', type: 'address' },\n { internalType: 'uint32', name: '_cliffDuration', type: 'uint32' },\n {\n internalType: 'contract IAccessControlManager',\n name: '_accessControlManager',\n type: 'address',\n },\n {\n internalType: 'address',\n name: '_distributionCreator',\n type: 'address',\n },\n ],\n name: 'initialize',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'isTokenWrapper',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'pure',\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: 'proxiableUUID',\n outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'tokenAddress', type: 'address' },\n { internalType: 'address', name: 'to', type: 'address' },\n { internalType: 'uint256', name: 'amountToRecover', type: 'uint256' },\n ],\n name: 'recoverERC20',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint32', name: '_newCliffDuration', type: 'uint32' },\n ],\n name: 'setCliffDuration',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'address',\n name: '_distributionCreator',\n type: 'address',\n },\n ],\n name: 'setDistributor',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'setFeeRecipient',\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 name: 'token',\n outputs: [{ internalType: 'address', name: '', type: 'address' }],\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: 'amount', 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: 'amount', type: 'uint256' },\n ],\n name: 'transferFrom',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'underlying',\n outputs: [{ internalType: 'address', name: '', type: 'address' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'newImplementation', type: 'address' },\n ],\n name: 'upgradeTo',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'newImplementation', type: 'address' },\n { internalType: 'bytes', name: 'data', type: 'bytes' },\n ],\n name: 'upgradeToAndCall',\n outputs: [],\n stateMutability: 'payable',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: '', type: 'address' }],\n name: 'vestingData',\n outputs: [\n { internalType: 'uint256', name: 'nextClaimIndex', type: 'uint256' },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n];\n"],"names":["mtwCARROT"],"mappings":"AAAO,MAAMA,IAAmB;AAAA,EAC9B,EAAE,QAAQ,CAAA,GAAI,MAAM,gBAAgB,MAAM,QAAQ;AAAA,EAClD,EAAE,QAAQ,CAAA,GAAI,MAAM,eAAe,MAAM,QAAQ;AAAA,EACjD,EAAE,QAAQ,CAAA,GAAI,MAAM,yBAAyB,MAAM,QAAQ;AAAA,EAC3D,EAAE,QAAQ,CAAA,GAAI,MAAM,eAAe,MAAM,QAAQ;AAAA,EACjD;AAAA,IACE,WAAW;AAAA,IACX,QAAQ;AAAA,MACN;AAAA,QACE,SAAS;AAAA,QACT,cAAc;AAAA,QACd,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,cAAc;AAAA,QACd,MAAM;AAAA,QACN,MAAM;AAAA,MAAA;AAAA,IAEV;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,WAAW;AAAA,IACX,QAAQ;AAAA,MACN;AAAA,QACE,SAAS;AAAA,QACT,cAAc;AAAA,QACd,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,cAAc;AAAA,QACd,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,cAAc;AAAA,QACd,MAAM;AAAA,QACN,MAAM;AAAA,MAAA;AAAA,IAEV;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,WAAW;AAAA,IACX,QAAQ;AAAA,MACN;AAAA,QACE,SAAS;AAAA,QACT,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AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,MACN,EAAE,cAAc,WAAW,MAAM,qBAAqB,MAAM,UAAU;AAAA,IACxE;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,qBAAqB,MAAM,UAAU;AAAA,MACtE,EAAE,cAAc,SAAS,MAAM,QAAQ,MAAM,QAAQ;AAAA,IACvD;AAAA,IACA,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IACV,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ,CAAC,EAAE,cAAc,WAAW,MAAM,IAAI,MAAM,WAAW;AAAA,IAC/D,MAAM;AAAA,IACN,SAAS;AAAA,MACP,EAAE,cAAc,WAAW,MAAM,kBAAkB,MAAM,UAAU;AAAA,IACrE;AAAA,IACA,iBAAiB;AAAA,IACjB,MAAM;AAAA,EAAA;AAEV;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../constants-DA2xUb9r.cjs"),a=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../constants-DA2xUb9r.cjs"),a={[e.Chain.Mainnet]:{PufferVault:"0xD9A442856C234a39a81a089C06451EBAa4306a72",PufferDepositor:"0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff",PufferL2Depositor:"0x3436E0B85cd929929F5802e792CFE282166E0259",PufLocker:"0x48e8dE138C246c14248C94d2D616a2F9eb4590D2",L1RewardManager:"0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b",L2RewardManager:"0x0000000000000000000000000000000000000000",PufferWithdrawalManager:"0xDdA0483184E75a5579ef9635ED14BacCf9d50283",NucleusAtomicQueue:"0xc7287780bfa0C5D2dD74e3e51E238B1cd9B221ee"},[e.Chain.Holesky]:{PufferVault:"0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9",PufferDepositor:"0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c",PufferL2Depositor:"0x0af6998e4828ad8ef8f79a9288d0a861890f791d",PufLocker:"0xa58983ad0899a452b7420bc57228e329d7ba92b6",L1RewardManager:"0x10f970bcb84B82B82a65eBCbF45F26dD26D69F12",L2RewardManager:"0x58C046794f69A8830b0BE737022a45b4acd01dE5",PufferWithdrawalManager:"0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4"},[e.Chain.Base]:{L2RewardManager:"0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7"}};exports.CONTRACT_ADDRESSES=a;
|
|
2
2
|
//# sourceMappingURL=addresses.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.cjs","sources":["../../lib/contracts/addresses.ts"],"sourcesContent":["import { Chain } from '../chains/constants';\
|
|
1
|
+
{"version":3,"file":"addresses.cjs","sources":["../../lib/contracts/addresses.ts"],"sourcesContent":["import { Chain } from '../chains/constants';\n\n// Source of truth:\n// https://github.com/PufferFinance/Deployments-and-ACL/tree/main/docs/deployments\nexport const CONTRACT_ADDRESSES = {\n [Chain.Mainnet]: {\n PufferVault: '0xD9A442856C234a39a81a089C06451EBAa4306a72',\n PufferDepositor: '0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff',\n PufferL2Depositor: '0x3436E0B85cd929929F5802e792CFE282166E0259',\n PufLocker: '0x48e8dE138C246c14248C94d2D616a2F9eb4590D2',\n L1RewardManager: '0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b',\n // L2RewardManager is not deployed to mainnet but base.\n L2RewardManager: '0x0000000000000000000000000000000000000000',\n PufferWithdrawalManager: '0xDdA0483184E75a5579ef9635ED14BacCf9d50283',\n NucleusAtomicQueue: '0xc7287780bfa0C5D2dD74e3e51E238B1cd9B221ee',\n },\n [Chain.Holesky]: {\n PufferVault: '0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9',\n PufferDepositor: '0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c',\n PufferL2Depositor: '0x0af6998e4828ad8ef8f79a9288d0a861890f791d',\n PufLocker: '0xa58983ad0899a452b7420bc57228e329d7ba92b6',\n L1RewardManager: '0x10f970bcb84B82B82a65eBCbF45F26dD26D69F12',\n L2RewardManager: '0x58C046794f69A8830b0BE737022a45b4acd01dE5',\n PufferWithdrawalManager: '0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4',\n },\n [Chain.Base]: {\n L2RewardManager: '0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7',\n },\n};\n"],"names":["CONTRACT_ADDRESSES","Chain"],"mappings":"6HAIaA,EAAqB,CAChC,CAACC,EAAAA,MAAM,OAAO,EAAG,CACf,YAAa,6CACb,gBAAiB,6CACjB,kBAAmB,6CACnB,UAAW,6CACX,gBAAiB,6CAEjB,gBAAiB,6CACjB,wBAAyB,6CACzB,mBAAoB,4CACtB,EACA,CAACA,EAAAA,MAAM,OAAO,EAAG,CACf,YAAa,6CACb,gBAAiB,6CACjB,kBAAmB,6CACnB,UAAW,6CACX,gBAAiB,6CACjB,gBAAiB,6CACjB,wBAAyB,4CAC3B,EACA,CAACA,EAAAA,MAAM,IAAI,EAAG,CACZ,gBAAiB,4CAAA,CAErB"}
|
|
@@ -28,26 +28,3 @@ export declare const CONTRACT_ADDRESSES: {
|
|
|
28
28
|
NucleusAtomicQueue?: undefined;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
export declare const NUCLEUS_CONTRACT_ADDRESSES: {
|
|
32
|
-
unifiETH: {
|
|
33
|
-
[x: number]: {
|
|
34
|
-
NucleusBoringVault: string;
|
|
35
|
-
NucleusAccountant: string;
|
|
36
|
-
NucleusTeller: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
unifiUSD: {
|
|
40
|
-
[x: number]: {
|
|
41
|
-
NucleusBoringVault: string;
|
|
42
|
-
NucleusAccountant: string;
|
|
43
|
-
NucleusTeller: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
unifiBTC: {
|
|
47
|
-
[x: number]: {
|
|
48
|
-
NucleusBoringVault: string;
|
|
49
|
-
NucleusAccountant: string;
|
|
50
|
-
NucleusTeller: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { C as e } from "../constants-BjRNQpT2.js";
|
|
2
|
-
|
|
3
|
-
const d = {
|
|
2
|
+
const f = {
|
|
4
3
|
[e.Mainnet]: {
|
|
5
4
|
PufferVault: "0xD9A442856C234a39a81a089C06451EBAa4306a72",
|
|
6
5
|
PufferDepositor: "0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff",
|
|
@@ -24,31 +23,8 @@ const d = {
|
|
|
24
23
|
[e.Base]: {
|
|
25
24
|
L2RewardManager: "0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7"
|
|
26
25
|
}
|
|
27
|
-
}, b = {
|
|
28
|
-
[a.unifiETH]: {
|
|
29
|
-
[e.Mainnet]: {
|
|
30
|
-
NucleusBoringVault: "0x196ead472583bc1e9af7a05f860d9857e1bd3dcc",
|
|
31
|
-
NucleusAccountant: "0xa9fb7e2922216debe3fd5e1bbe7591ee446dc21c",
|
|
32
|
-
NucleusTeller: "0x08eb2eccdf6ebd7aba601791f23ec5b5f68a1d53"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
[a.unifiUSD]: {
|
|
36
|
-
[e.Mainnet]: {
|
|
37
|
-
NucleusBoringVault: "0x82c40e07277eBb92935f79cE92268F80dDc7caB4",
|
|
38
|
-
NucleusAccountant: "0xe0bDb7b9225A2CeB42998dc2E51D4D3CDeb7e3Be",
|
|
39
|
-
NucleusTeller: "0x5d3Fb47FE7f3F4Ce8fe55518f7E4F7D6061B54DD"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
[a.unifiBTC]: {
|
|
43
|
-
[e.Mainnet]: {
|
|
44
|
-
NucleusBoringVault: "0x170d847a8320f3b6a77ee15b0cae430e3ec933a0",
|
|
45
|
-
NucleusAccountant: "0x2afb28b0561d99b5e00829ec2ef54946a00a35f7",
|
|
46
|
-
NucleusTeller: "0x0743647a607822781f9d0a639454e76289182f0b"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
26
|
};
|
|
50
27
|
export {
|
|
51
|
-
|
|
52
|
-
b as NUCLEUS_CONTRACT_ADDRESSES
|
|
28
|
+
f as CONTRACT_ADDRESSES
|
|
53
29
|
};
|
|
54
30
|
//# sourceMappingURL=addresses.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.js","sources":["../../lib/contracts/addresses.ts"],"sourcesContent":["import { Chain } from '../chains/constants';\
|
|
1
|
+
{"version":3,"file":"addresses.js","sources":["../../lib/contracts/addresses.ts"],"sourcesContent":["import { Chain } from '../chains/constants';\n\n// Source of truth:\n// https://github.com/PufferFinance/Deployments-and-ACL/tree/main/docs/deployments\nexport const CONTRACT_ADDRESSES = {\n [Chain.Mainnet]: {\n PufferVault: '0xD9A442856C234a39a81a089C06451EBAa4306a72',\n PufferDepositor: '0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff',\n PufferL2Depositor: '0x3436E0B85cd929929F5802e792CFE282166E0259',\n PufLocker: '0x48e8dE138C246c14248C94d2D616a2F9eb4590D2',\n L1RewardManager: '0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b',\n // L2RewardManager is not deployed to mainnet but base.\n L2RewardManager: '0x0000000000000000000000000000000000000000',\n PufferWithdrawalManager: '0xDdA0483184E75a5579ef9635ED14BacCf9d50283',\n NucleusAtomicQueue: '0xc7287780bfa0C5D2dD74e3e51E238B1cd9B221ee',\n },\n [Chain.Holesky]: {\n PufferVault: '0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9',\n PufferDepositor: '0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c',\n PufferL2Depositor: '0x0af6998e4828ad8ef8f79a9288d0a861890f791d',\n PufLocker: '0xa58983ad0899a452b7420bc57228e329d7ba92b6',\n L1RewardManager: '0x10f970bcb84B82B82a65eBCbF45F26dD26D69F12',\n L2RewardManager: '0x58C046794f69A8830b0BE737022a45b4acd01dE5',\n PufferWithdrawalManager: '0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4',\n },\n [Chain.Base]: {\n L2RewardManager: '0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7',\n },\n};\n"],"names":["CONTRACT_ADDRESSES","Chain"],"mappings":";AAIO,MAAMA,IAAqB;AAAA,EAChC,CAACC,EAAM,OAAO,GAAG;AAAA,IACf,aAAa;AAAA,IACb,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB,WAAW;AAAA,IACX,iBAAiB;AAAA;AAAA,IAEjB,iBAAiB;AAAA,IACjB,yBAAyB;AAAA,IACzB,oBAAoB;AAAA,EACtB;AAAA,EACA,CAACA,EAAM,OAAO,GAAG;AAAA,IACf,aAAa;AAAA,IACb,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB,WAAW;AAAA,IACX,iBAAiB;AAAA,IACjB,iBAAiB;AAAA,IACjB,yBAAyB;AAAA,EAC3B;AAAA,EACA,CAACA,EAAM,IAAI,GAAG;AAAA,IACZ,iBAAiB;AAAA,EAAA;AAErB;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var s=Object.defineProperty;var o=(n,t,e)=>t in n?s(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var i=(n,t,e)=>o(n,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../constants-DA2xUb9r.cjs"),a=require("../tokens.cjs"),l=require("../abis/mainnet/mtwCARROT.cjs"),C=require("../../getContract-3QbyfZBF.cjs");class u{constructor(t,e,r){i(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=r,this.viemChain=h.VIEM_CHAINS[t]}getContract(){const t=a.TOKENS_ADDRESSES[a.Token.mtwCARROT][this.chain],e=l.mtwCARROT,r={public:this.publicClient,wallet:this.walletClient};return C.getContract({address:t,abi:e,client:r})}balanceOf(t){return this.getContract().read.balanceOf([t])}allowance(t,e){return this.getContract().read.allowance([t,e])}claimable(t,e){return e!==void 0?this.getContract().read.claimable([t,e]):this.getContract().read.claimable([t])}cliffDuration(){return this.getContract().read.cliffDuration()}async getUserVestings(t){const[e,r]=await this.getContract().read.getUserVestings([t]);return{allVestings:e,nextClaimIndex:r}}isTokenWrapper(){return this.getContract().read.isTokenWrapper()}symbol(){return this.getContract().read.symbol()}token(){return this.getContract().read.token()}underlying(){return this.getContract().read.underlying()}vestingData(t){return this.getContract().read.vestingData([t])}approve(t,e,r){return this.getContract().write.approve([e,r],{account:t,chain:this.viemChain})}claim(t,e,r){return r!==void 0?this.getContract().write.claim([e,r],{account:t,chain:this.viemChain}):this.getContract().write.claim([e],{account:t,chain:this.viemChain})}decreaseAllowance(t,e,r){return this.getContract().write.decreaseAllowance([e,r],{account:t,chain:this.viemChain})}increaseAllowance(t,e,r){return this.getContract().write.increaseAllowance([e,r],{account:t,chain:this.viemChain})}recoverERC20(t,e,r,c){return this.getContract().write.recoverERC20([e,r,c],{account:t,chain:this.viemChain})}transfer(t,e,r){return this.getContract().write.transfer([e,r],{account:t,chain:this.viemChain})}}exports.MtwCarrotHandler=u;
|
|
2
|
+
//# sourceMappingURL=mtw-carrot-handler.cjs.map
|