@pufferfinance/puffer-sdk 1.10.2 → 1.11.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 +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/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/tokens.cjs +1 -1
- package/dist/contracts/tokens.cjs.map +1 -1
- package/dist/contracts/tokens.d.ts +2 -1
- package/dist/contracts/tokens.js +11 -4
- package/dist/contracts/tokens.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,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;A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AAM,MAAM,MAAM,UAAU;AAAA,MACvD,EAAE,cAAc,WAAW,MAAM,UAAU,MAAM,UAAU;AAAA,IAC7D;AAAA,IACA,MAAM;AAAA,IACN,SAAS,CAAC,EAAE,cAAc,QAAQ,MAAM,IAAI,MAAM,QAAQ;AAAA,IAC1D,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ,CAAC;AAAA,IACT,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;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;"}
|
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mtw-carrot-handler.cjs","sources":["../../../lib/contracts/handlers/mtw-carrot-handler.ts"],"sourcesContent":["import {\n WalletClient,\n PublicClient,\n getContract,\n Address,\n GetContractReturnType,\n} from 'viem';\nimport { Chain, VIEM_CHAINS, ViemChain } from '../../chains/constants';\nimport { TOKENS_ADDRESSES, Token } from '../tokens';\nimport { mtwCARROT } from '../abis/mainnet/mtwCARROT';\n\n/**\n * Handler for the `mtwCARROT` token contract.\n */\nexport class MtwCarrotHandler {\n private viemChain: ViemChain;\n\n /**\n * Create the handler for the `mtwCARROT` token contract exposing\n * methods to interact with the contract.\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 }\n\n /**\n * Get the contract. This is a method because the typings are complex\n * and lost when trying to make it a member.\n *\n * @returns The viem contract.\n */\n public getContract() {\n const address = TOKENS_ADDRESSES[Token.mtwCARROT][this.chain];\n const abi = mtwCARROT;\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 * Retrieve the balance of a given address.\n *\n * @param address The address to query the balance for.\n * @returns The balance of the specified address.\n */\n public balanceOf(address: Address) {\n return this.getContract().read.balanceOf([address]);\n }\n\n /**\n * Retrieve the allowance a spender has from an owner.\n *\n * @param owner The address of the token owner.\n * @param spender The address of the spender.\n * @returns The amount the spender is allowed to use on behalf of the owner.\n */\n public allowance(owner: Address, spender: Address) {\n return this.getContract().read.allowance([owner, spender]);\n }\n\n // TODO: Not able to test overloads using `eth-testing`.\n /* istanbul ignore next */\n /**\n * Retrieve the claimable amount for a user, optionally at a specific index.\n *\n * @param user The user's address.\n * @param maxClaimIn, '0x123'dex The maximum index to check for claimable amount (optional).\n * @returns The claimable amount for the user.\n */\n public claimable(user: Address, maxClaimIndex?: bigint): Promise<bigint> {\n if (maxClaimIndex !== undefined) {\n return this.getContract().read.claimable([user, maxClaimIndex]);\n }\n\n return this.getContract().read.claimable([user]);\n }\n\n /**\n * Retrieve the cliff duration of the vesting schedule.\n *\n * @returns The cliff duration in seconds.\n */\n public cliffDuration() {\n return this.getContract().read.cliffDuration();\n }\n\n /**\n * Retrieve all vesting schedules associated with a user.\n *\n * @param user The address of the user.\n * @returns An array of vesting schedules.\n */\n public async getUserVestings(user: Address) {\n const [allVestings, nextClaimIndex] =\n await this.getContract().read.getUserVestings([user]);\n\n return {\n allVestings,\n nextClaimIndex,\n };\n }\n\n /**\n * Check if the contract is a token wrapper.\n *\n * @returns True if the contract is a token wrapper, false otherwise.\n */\n public isTokenWrapper() {\n return this.getContract().read.isTokenWrapper();\n }\n\n /**\n * Retrieve the symbol of the token.\n *\n * @returns The token symbol.\n */\n public symbol() {\n return this.getContract().read.symbol();\n }\n\n /**\n * Retrieve the token address this contract wraps or represents.\n *\n * @returns The address of the token.\n */\n public token() {\n return this.getContract().read.token();\n }\n\n /**\n * Retrieve the underlying asset for the token.\n *\n * @returns The address of the underlying asset.\n */\n public underlying() {\n return this.getContract().read.underlying();\n }\n\n /**\n * Retrieve vesting data for a given address.\n *\n * @param address The address to query vesting data for.\n * @returns Next claim index.\n */\n public vestingData(address: Address) {\n return this.getContract().read.vestingData([address]);\n }\n\n /**\n * Approve a spender to use a specific amount of the owner's tokens.\n *\n * @param ownerAddress Address of the caller of the transaction.\n * @param spenderAddress Address of the spender.\n * @param amount Value to approve for the spender.\n * @returns A promise that resolves to the transaction hash.\n */\n public approve(\n ownerAddress: Address,\n spenderAddress: Address,\n amount: bigint,\n ) {\n return this.getContract().write.approve([spenderAddress, amount], {\n account: ownerAddress,\n chain: this.viemChain,\n });\n }\n\n // TODO: Not able to test overloads using `eth-testing`.\n /* istanbul ignore next */\n /**\n * Claim tokens for a user.\n *\n * @param account Address of the caller of the transaction.\n * @param user The user's address.\n * @param maxClaimIndex The maximum index to check for claimable amount (optional).\n * @returns A promise that resolves to the transaction hash.\n */\n public claim(account: Address, user: Address, maxClaimIndex?: bigint) {\n if (maxClaimIndex !== undefined) {\n return this.getContract().write.claim([user, maxClaimIndex], {\n account,\n chain: this.viemChain,\n });\n }\n\n return this.getContract().write.claim([user], {\n account,\n chain: this.viemChain,\n });\n }\n\n /**\n * Decrease the allowance for a spender.\n *\n * @param ownerAddress Address of the caller of the transaction.\n * @param spenderAddress Address of the spender.\n * @param subtractedValue The amount by which the allowance is to be decreased.\n * @returns A promise that resolves to the transaction hash.\n */\n public decreaseAllowance(\n ownerAddress: Address,\n spenderAddress: Address,\n subtractedValue: bigint,\n ) {\n return this.getContract().write.decreaseAllowance(\n [spenderAddress, subtractedValue],\n {\n account: ownerAddress,\n chain: this.viemChain,\n },\n );\n }\n\n /**\n * Increase the allowance for a spender.\n *\n * @param ownerAddress Address of the caller of the transaction.\n * @param spenderAddress Address of the spender.\n * @param addedValue The amount by which the allowance is to be increased.\n * @returns A promise that resolves to the transaction hash.\n */\n public increaseAllowance(\n ownerAddress: Address,\n spenderAddress: Address,\n addedValue: bigint,\n ) {\n return this.getContract().write.increaseAllowance(\n [spenderAddress, addedValue],\n {\n account: ownerAddress,\n chain: this.viemChain,\n },\n );\n }\n\n /**\n * Recover ERC20 tokens sent to this contract.\n *\n * @param account Address of the caller of the transaction.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to which the tokens should be sent.\n * @param amountToRecover The amount of tokens to recover.\n * @returns A promise that resolves to the transaction hash.\n */\n public recoverERC20(\n account: Address,\n tokenAddress: Address,\n to: Address,\n amountToRecover: bigint,\n ) {\n return this.getContract().write.recoverERC20(\n [tokenAddress, to, amountToRecover],\n {\n account,\n chain: this.viemChain,\n },\n );\n }\n\n /**\n * Transfer tokens to another address.\n *\n * @param ownerAddress Address of the caller of the transaction.\n * @param to The address to transfer tokens to.\n * @param amount The amount of tokens to transfer.\n * @returns A promise that resolves to the transaction hash.\n */\n public transfer(ownerAddress: Address, to: Address, amount: bigint) {\n return this.getContract().write.transfer([to, amount], {\n account: ownerAddress,\n chain: this.viemChain,\n });\n }\n}\n"],"names":["MtwCarrotHandler","chain","walletClient","publicClient","__publicField","VIEM_CHAINS","address","TOKENS_ADDRESSES","Token","abi","mtwCARROT","client","getContract","owner","spender","user","maxClaimIndex","allVestings","nextClaimIndex","ownerAddress","spenderAddress","amount","account","subtractedValue","addedValue","tokenAddress","to","amountToRecover"],"mappings":"sZAcO,MAAMA,CAAiB,CAa5B,YACUC,EACAC,EACAC,EACR,CAhBMC,EAAA,kBAaE,KAAA,MAAAH,EACA,KAAA,aAAAC,EACA,KAAA,aAAAC,EAEH,KAAA,UAAYE,cAAYJ,CAAK,CAAA,CAS7B,aAAc,CACnB,MAAMK,EAAUC,EAAAA,iBAAiBC,EAAAA,MAAM,SAAS,EAAE,KAAK,KAAK,EACtDC,EAAMC,EAAA,UACNC,EAAS,CAAE,OAAQ,KAAK,aAAc,OAAQ,KAAK,YAAa,EAEtE,OAAOC,EAAY,YAAA,CAAE,QAAAN,EAAS,IAAAG,EAAK,OAAAE,EAAQ,CAAA,CAatC,UAAUL,EAAkB,CACjC,OAAO,KAAK,YAAY,EAAE,KAAK,UAAU,CAACA,CAAO,CAAC,CAAA,CAU7C,UAAUO,EAAgBC,EAAkB,CAC1C,OAAA,KAAK,cAAc,KAAK,UAAU,CAACD,EAAOC,CAAO,CAAC,CAAA,CAYpD,UAAUC,EAAeC,EAAyC,CACvE,OAAIA,IAAkB,OACb,KAAK,cAAc,KAAK,UAAU,CAACD,EAAMC,CAAa,CAAC,EAGzD,KAAK,YAAY,EAAE,KAAK,UAAU,CAACD,CAAI,CAAC,CAAA,CAQ1C,eAAgB,CACrB,OAAO,KAAK,cAAc,KAAK,cAAc,CAAA,CAS/C,MAAa,gBAAgBA,EAAe,CAC1C,KAAM,CAACE,EAAaC,CAAc,EAChC,MAAM,KAAK,YAAY,EAAE,KAAK,gBAAgB,CAACH,CAAI,CAAC,EAE/C,MAAA,CACL,YAAAE,EACA,eAAAC,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