@parallel-protocol/chains 0.1.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/abi.cjs ADDED
@@ -0,0 +1,2122 @@
1
+ 'use strict';
2
+
3
+ // src/abi/ERC20_ABI.ts
4
+ var ERC20_ABI = [
5
+ {
6
+ name: "totalSupply",
7
+ type: "function",
8
+ stateMutability: "view",
9
+ inputs: [],
10
+ outputs: [{ type: "uint256" }]
11
+ },
12
+ {
13
+ name: "balanceOf",
14
+ type: "function",
15
+ stateMutability: "view",
16
+ inputs: [{ name: "account", type: "address" }],
17
+ outputs: [{ type: "uint256" }]
18
+ },
19
+ {
20
+ name: "decimals",
21
+ type: "function",
22
+ stateMutability: "view",
23
+ inputs: [],
24
+ outputs: [{ type: "uint8" }]
25
+ },
26
+ {
27
+ name: "name",
28
+ type: "function",
29
+ stateMutability: "view",
30
+ inputs: [],
31
+ outputs: [{ type: "string" }]
32
+ },
33
+ {
34
+ name: "symbol",
35
+ type: "function",
36
+ stateMutability: "view",
37
+ inputs: [],
38
+ outputs: [{ type: "string" }]
39
+ },
40
+ {
41
+ name: "allowance",
42
+ type: "function",
43
+ stateMutability: "view",
44
+ inputs: [
45
+ { name: "owner", type: "address" },
46
+ { name: "spender", type: "address" }
47
+ ],
48
+ outputs: [{ type: "uint256" }]
49
+ },
50
+ {
51
+ name: "approve",
52
+ type: "function",
53
+ stateMutability: "nonpayable",
54
+ inputs: [
55
+ { name: "spender", type: "address" },
56
+ { name: "value", type: "uint256" }
57
+ ],
58
+ outputs: [{ type: "bool" }]
59
+ },
60
+ {
61
+ name: "transfer",
62
+ type: "function",
63
+ stateMutability: "nonpayable",
64
+ inputs: [
65
+ { name: "to", type: "address" },
66
+ { name: "value", type: "uint256" }
67
+ ],
68
+ outputs: [{ type: "bool" }]
69
+ },
70
+ {
71
+ name: "transferFrom",
72
+ type: "function",
73
+ stateMutability: "nonpayable",
74
+ inputs: [
75
+ { name: "from", type: "address" },
76
+ { name: "to", type: "address" },
77
+ { name: "value", type: "uint256" }
78
+ ],
79
+ outputs: [{ type: "bool" }]
80
+ }
81
+ ];
82
+
83
+ // src/abi/BRIDGEABLE_TOKEN_ABI.ts
84
+ var BRIDGEABLE_TOKEN_ABI = [
85
+ ...ERC20_ABI,
86
+ {
87
+ name: "getDailyCreditLimit",
88
+ type: "function",
89
+ stateMutability: "view",
90
+ inputs: [],
91
+ outputs: [{ type: "uint256" }]
92
+ },
93
+ {
94
+ name: "getDailyDebitLimit",
95
+ type: "function",
96
+ stateMutability: "view",
97
+ inputs: [],
98
+ outputs: [{ type: "uint256" }]
99
+ },
100
+ {
101
+ name: "getGlobalCreditLimit",
102
+ type: "function",
103
+ stateMutability: "view",
104
+ inputs: [],
105
+ outputs: [{ type: "uint256" }]
106
+ },
107
+ {
108
+ name: "getGlobalDebitLimit",
109
+ type: "function",
110
+ stateMutability: "view",
111
+ inputs: [],
112
+ outputs: [{ type: "uint256" }]
113
+ },
114
+ {
115
+ name: "getCurrentDailyCreditAmount",
116
+ type: "function",
117
+ stateMutability: "view",
118
+ inputs: [],
119
+ outputs: [{ type: "uint256" }]
120
+ },
121
+ {
122
+ name: "getCurrentDailyDebitAmount",
123
+ type: "function",
124
+ stateMutability: "view",
125
+ inputs: [],
126
+ outputs: [{ type: "uint256" }]
127
+ },
128
+ {
129
+ name: "getMaxCreditableAmount",
130
+ type: "function",
131
+ stateMutability: "view",
132
+ inputs: [],
133
+ outputs: [{ type: "uint256" }]
134
+ },
135
+ {
136
+ name: "getMaxDebitableAmount",
137
+ type: "function",
138
+ stateMutability: "view",
139
+ inputs: [],
140
+ outputs: [{ type: "uint256" }]
141
+ },
142
+ {
143
+ name: "getCreditDebitBalance",
144
+ type: "function",
145
+ stateMutability: "view",
146
+ inputs: [],
147
+ outputs: [{ internalType: "int256", type: "int256" }]
148
+ },
149
+ {
150
+ name: "getFeesRate",
151
+ type: "function",
152
+ stateMutability: "view",
153
+ inputs: [],
154
+ outputs: [{ internalType: "uint16", type: "uint16" }]
155
+ },
156
+ {
157
+ name: "getFeesRecipient",
158
+ type: "function",
159
+ stateMutability: "view",
160
+ inputs: [],
161
+ outputs: [{ type: "address" }]
162
+ },
163
+ {
164
+ name: "getIsIsolateMode",
165
+ type: "function",
166
+ stateMutability: "view",
167
+ inputs: [],
168
+ outputs: [{ type: "bool" }]
169
+ },
170
+ {
171
+ name: "getPrincipalToken",
172
+ type: "function",
173
+ stateMutability: "view",
174
+ inputs: [],
175
+ outputs: [{ type: "address" }]
176
+ },
177
+ {
178
+ name: "sharedDecimals",
179
+ type: "function",
180
+ stateMutability: "view",
181
+ inputs: [],
182
+ outputs: [{ internalType: "uint8", type: "uint8" }]
183
+ },
184
+ {
185
+ name: "decimalConversionRate",
186
+ type: "function",
187
+ stateMutability: "view",
188
+ inputs: [],
189
+ outputs: [{ type: "uint256" }]
190
+ },
191
+ {
192
+ name: "token",
193
+ type: "function",
194
+ stateMutability: "view",
195
+ inputs: [],
196
+ outputs: [{ type: "address" }]
197
+ },
198
+ {
199
+ name: "paused",
200
+ type: "function",
201
+ stateMutability: "view",
202
+ inputs: [],
203
+ outputs: [{ type: "bool" }]
204
+ },
205
+ {
206
+ name: "quoteSend",
207
+ type: "function",
208
+ stateMutability: "view",
209
+ inputs: [
210
+ {
211
+ components: [
212
+ { internalType: "uint32", name: "dstEid", type: "uint32" },
213
+ { internalType: "bytes32", name: "to", type: "bytes32" },
214
+ { internalType: "uint256", name: "amountLD", type: "uint256" },
215
+ { internalType: "uint256", name: "minAmountLD", type: "uint256" },
216
+ { internalType: "bytes", name: "extraOptions", type: "bytes" },
217
+ { internalType: "bytes", name: "composeMsg", type: "bytes" },
218
+ { internalType: "bytes", name: "oftCmd", type: "bytes" }
219
+ ],
220
+ internalType: "struct SendParam",
221
+ name: "_sendParam",
222
+ type: "tuple"
223
+ },
224
+ { internalType: "bool", name: "_payInLzToken", type: "bool" }
225
+ ],
226
+ outputs: [
227
+ {
228
+ components: [
229
+ { internalType: "uint256", name: "nativeFee", type: "uint256" },
230
+ { internalType: "uint256", name: "lzTokenFee", type: "uint256" }
231
+ ],
232
+ internalType: "struct MessagingFee",
233
+ name: "msgFee",
234
+ type: "tuple"
235
+ }
236
+ ]
237
+ },
238
+ {
239
+ name: "send",
240
+ type: "function",
241
+ stateMutability: "payable",
242
+ inputs: [
243
+ {
244
+ components: [
245
+ { internalType: "uint32", name: "dstEid", type: "uint32" },
246
+ { internalType: "bytes32", name: "to", type: "bytes32" },
247
+ { internalType: "uint256", name: "amountLD", type: "uint256" },
248
+ { internalType: "uint256", name: "minAmountLD", type: "uint256" },
249
+ { internalType: "bytes", name: "extraOptions", type: "bytes" },
250
+ { internalType: "bytes", name: "composeMsg", type: "bytes" },
251
+ { internalType: "bytes", name: "oftCmd", type: "bytes" }
252
+ ],
253
+ internalType: "struct SendParam",
254
+ name: "_sendParam",
255
+ type: "tuple"
256
+ },
257
+ {
258
+ components: [
259
+ { internalType: "uint256", name: "nativeFee", type: "uint256" },
260
+ { internalType: "uint256", name: "lzTokenFee", type: "uint256" }
261
+ ],
262
+ internalType: "struct MessagingFee",
263
+ name: "_fee",
264
+ type: "tuple"
265
+ },
266
+ { internalType: "address", name: "_refundAddress", type: "address" }
267
+ ],
268
+ outputs: [
269
+ {
270
+ components: [
271
+ { internalType: "bytes32", name: "guid", type: "bytes32" },
272
+ { internalType: "uint64", name: "nonce", type: "uint64" },
273
+ {
274
+ components: [
275
+ { internalType: "uint256", name: "nativeFee", type: "uint256" },
276
+ { internalType: "uint256", name: "lzTokenFee", type: "uint256" }
277
+ ],
278
+ internalType: "struct MessagingFee",
279
+ name: "fee",
280
+ type: "tuple"
281
+ }
282
+ ],
283
+ internalType: "struct MessagingReceipt",
284
+ name: "msgReceipt",
285
+ type: "tuple"
286
+ },
287
+ {
288
+ components: [
289
+ { internalType: "uint256", name: "amountSentLD", type: "uint256" },
290
+ {
291
+ internalType: "uint256",
292
+ name: "amountReceivedLD",
293
+ type: "uint256"
294
+ }
295
+ ],
296
+ internalType: "struct OFTReceipt",
297
+ name: "oftReceipt",
298
+ type: "tuple"
299
+ }
300
+ ]
301
+ }
302
+ ];
303
+
304
+ // src/abi/MULTICALL3_ABI.ts
305
+ var MULTICALL3_ABI = [
306
+ {
307
+ name: "aggregate3",
308
+ type: "function",
309
+ stateMutability: "payable",
310
+ inputs: [
311
+ {
312
+ name: "calls",
313
+ type: "tuple[]",
314
+ components: [
315
+ { name: "target", type: "address" },
316
+ { name: "allowFailure", type: "bool" },
317
+ { name: "callData", type: "bytes" }
318
+ ]
319
+ }
320
+ ],
321
+ outputs: [
322
+ {
323
+ name: "returnData",
324
+ type: "tuple[]",
325
+ components: [
326
+ { name: "success", type: "bool" },
327
+ { name: "returnData", type: "bytes" }
328
+ ]
329
+ }
330
+ ]
331
+ }
332
+ ];
333
+
334
+ // src/abi/PARALLELIZER_ABI.ts
335
+ var PARALLELIZER_ABI = [
336
+ { inputs: [], name: "InvalidChainlinkRate", type: "error" },
337
+ { inputs: [], name: "NotCollateral", type: "error" },
338
+ { inputs: [], name: "ReentrantCall", type: "error" },
339
+ {
340
+ inputs: [
341
+ { internalType: "uint8", name: "bits", type: "uint8" },
342
+ { internalType: "uint256", name: "value", type: "uint256" }
343
+ ],
344
+ name: "SafeCastOverflowedUintDowncast",
345
+ type: "error"
346
+ },
347
+ {
348
+ inputs: [],
349
+ name: "accessManager",
350
+ outputs: [{ internalType: "address", name: "", type: "address" }],
351
+ stateMutability: "view",
352
+ type: "function"
353
+ },
354
+ {
355
+ inputs: [{ internalType: "address", name: "collateral", type: "address" }],
356
+ name: "getCollateralBurnFees",
357
+ outputs: [
358
+ { internalType: "uint64[]", name: "xFeeBurn", type: "uint64[]" },
359
+ { internalType: "int64[]", name: "yFeeBurn", type: "int64[]" }
360
+ ],
361
+ stateMutability: "view",
362
+ type: "function"
363
+ },
364
+ {
365
+ inputs: [{ internalType: "address", name: "collateral", type: "address" }],
366
+ name: "getCollateralDecimals",
367
+ outputs: [{ internalType: "uint8", name: "", type: "uint8" }],
368
+ stateMutability: "view",
369
+ type: "function"
370
+ },
371
+ {
372
+ inputs: [{ internalType: "address", name: "collateral", type: "address" }],
373
+ name: "getCollateralInfo",
374
+ outputs: [
375
+ {
376
+ components: [
377
+ { internalType: "uint8", name: "isManaged", type: "uint8" },
378
+ { internalType: "uint8", name: "isMintLive", type: "uint8" },
379
+ { internalType: "uint8", name: "isBurnLive", type: "uint8" },
380
+ { internalType: "uint8", name: "decimals", type: "uint8" },
381
+ { internalType: "uint8", name: "onlyWhitelisted", type: "uint8" },
382
+ {
383
+ internalType: "uint216",
384
+ name: "normalizedStables",
385
+ type: "uint216"
386
+ },
387
+ { internalType: "uint64[]", name: "xFeeMint", type: "uint64[]" },
388
+ { internalType: "int64[]", name: "yFeeMint", type: "int64[]" },
389
+ { internalType: "uint64[]", name: "xFeeBurn", type: "uint64[]" },
390
+ { internalType: "int64[]", name: "yFeeBurn", type: "int64[]" },
391
+ { internalType: "bytes", name: "oracleConfig", type: "bytes" },
392
+ { internalType: "bytes", name: "whitelistData", type: "bytes" },
393
+ {
394
+ components: [
395
+ {
396
+ internalType: "contract IERC20[]",
397
+ name: "subCollaterals",
398
+ type: "address[]"
399
+ },
400
+ { internalType: "bytes", name: "config", type: "bytes" }
401
+ ],
402
+ internalType: "struct ManagerStorage",
403
+ name: "managerData",
404
+ type: "tuple"
405
+ },
406
+ { internalType: "uint256", name: "stablecoinCap", type: "uint256" }
407
+ ],
408
+ internalType: "struct Collateral",
409
+ name: "",
410
+ type: "tuple"
411
+ }
412
+ ],
413
+ stateMutability: "view",
414
+ type: "function"
415
+ },
416
+ {
417
+ inputs: [],
418
+ name: "getCollateralList",
419
+ outputs: [{ internalType: "address[]", name: "", type: "address[]" }],
420
+ stateMutability: "view",
421
+ type: "function"
422
+ },
423
+ {
424
+ inputs: [{ internalType: "address", name: "collateral", type: "address" }],
425
+ name: "getCollateralMintFees",
426
+ outputs: [
427
+ { internalType: "uint64[]", name: "xFeeMint", type: "uint64[]" },
428
+ { internalType: "int64[]", name: "yFeeMint", type: "int64[]" }
429
+ ],
430
+ stateMutability: "view",
431
+ type: "function"
432
+ },
433
+ {
434
+ inputs: [],
435
+ name: "getCollateralRatio",
436
+ outputs: [
437
+ { internalType: "uint64", name: "collatRatio", type: "uint64" },
438
+ { internalType: "uint256", name: "stablecoinsIssued", type: "uint256" }
439
+ ],
440
+ stateMutability: "view",
441
+ type: "function"
442
+ },
443
+ {
444
+ inputs: [{ internalType: "address", name: "collateral", type: "address" }],
445
+ name: "getCollateralWhitelistData",
446
+ outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
447
+ stateMutability: "view",
448
+ type: "function"
449
+ },
450
+ {
451
+ inputs: [{ internalType: "address", name: "collateral", type: "address" }],
452
+ name: "getIssuedByCollateral",
453
+ outputs: [
454
+ {
455
+ internalType: "uint256",
456
+ name: "stablecoinsFromCollateral",
457
+ type: "uint256"
458
+ },
459
+ { internalType: "uint256", name: "stablecoinsIssued", type: "uint256" }
460
+ ],
461
+ stateMutability: "view",
462
+ type: "function"
463
+ },
464
+ {
465
+ inputs: [{ internalType: "address", name: "collateral", type: "address" }],
466
+ name: "getManagerData",
467
+ outputs: [
468
+ { internalType: "bool", name: "", type: "bool" },
469
+ { internalType: "contract IERC20[]", name: "", type: "address[]" },
470
+ { internalType: "bytes", name: "", type: "bytes" }
471
+ ],
472
+ stateMutability: "view",
473
+ type: "function"
474
+ },
475
+ {
476
+ inputs: [{ internalType: "address", name: "collateral", type: "address" }],
477
+ name: "getOracle",
478
+ outputs: [
479
+ {
480
+ internalType: "enum OracleReadType",
481
+ name: "oracleType",
482
+ type: "uint8"
483
+ },
484
+ {
485
+ internalType: "enum OracleReadType",
486
+ name: "targetType",
487
+ type: "uint8"
488
+ },
489
+ { internalType: "bytes", name: "oracleData", type: "bytes" },
490
+ { internalType: "bytes", name: "targetData", type: "bytes" },
491
+ { internalType: "bytes", name: "hyperparameters", type: "bytes" }
492
+ ],
493
+ stateMutability: "view",
494
+ type: "function"
495
+ },
496
+ {
497
+ inputs: [{ internalType: "address", name: "collateral", type: "address" }],
498
+ name: "getOracleValues",
499
+ outputs: [
500
+ { internalType: "uint256", name: "mint", type: "uint256" },
501
+ { internalType: "uint256", name: "burn", type: "uint256" },
502
+ { internalType: "uint256", name: "ratio", type: "uint256" },
503
+ { internalType: "uint256", name: "minRatio", type: "uint256" },
504
+ { internalType: "uint256", name: "redemption", type: "uint256" }
505
+ ],
506
+ stateMutability: "view",
507
+ type: "function"
508
+ },
509
+ {
510
+ inputs: [],
511
+ name: "getRedemptionFees",
512
+ outputs: [
513
+ { internalType: "uint64[]", name: "xRedemptionCurve", type: "uint64[]" },
514
+ { internalType: "int64[]", name: "yRedemptionCurve", type: "int64[]" }
515
+ ],
516
+ stateMutability: "view",
517
+ type: "function"
518
+ },
519
+ {
520
+ inputs: [{ internalType: "address", name: "collateral", type: "address" }],
521
+ name: "getStablecoinCap",
522
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
523
+ stateMutability: "view",
524
+ type: "function"
525
+ },
526
+ {
527
+ inputs: [],
528
+ name: "getTotalIssued",
529
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
530
+ stateMutability: "view",
531
+ type: "function"
532
+ },
533
+ {
534
+ inputs: [],
535
+ name: "isConsumingScheduledOp",
536
+ outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
537
+ stateMutability: "view",
538
+ type: "function"
539
+ },
540
+ {
541
+ inputs: [
542
+ { internalType: "address", name: "collateral", type: "address" },
543
+ { internalType: "enum ActionType", name: "action", type: "uint8" }
544
+ ],
545
+ name: "isPaused",
546
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
547
+ stateMutability: "view",
548
+ type: "function"
549
+ },
550
+ {
551
+ inputs: [{ internalType: "address", name: "sender", type: "address" }],
552
+ name: "isTrusted",
553
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
554
+ stateMutability: "view",
555
+ type: "function"
556
+ },
557
+ {
558
+ inputs: [{ internalType: "address", name: "sender", type: "address" }],
559
+ name: "isTrustedSeller",
560
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
561
+ stateMutability: "view",
562
+ type: "function"
563
+ },
564
+ {
565
+ inputs: [{ internalType: "bytes4", name: "selector", type: "bytes4" }],
566
+ name: "isValidSelector",
567
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
568
+ stateMutability: "view",
569
+ type: "function"
570
+ },
571
+ {
572
+ inputs: [{ internalType: "address", name: "collateral", type: "address" }],
573
+ name: "isWhitelistedCollateral",
574
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
575
+ stateMutability: "view",
576
+ type: "function"
577
+ },
578
+ {
579
+ inputs: [
580
+ { internalType: "address", name: "collateral", type: "address" },
581
+ { internalType: "address", name: "sender", type: "address" }
582
+ ],
583
+ name: "isWhitelistedForCollateral",
584
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
585
+ stateMutability: "nonpayable",
586
+ type: "function"
587
+ },
588
+ {
589
+ inputs: [
590
+ {
591
+ internalType: "enum WhitelistType",
592
+ name: "whitelistType",
593
+ type: "uint8"
594
+ },
595
+ { internalType: "address", name: "sender", type: "address" }
596
+ ],
597
+ name: "isWhitelistedForType",
598
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
599
+ stateMutability: "view",
600
+ type: "function"
601
+ },
602
+ {
603
+ inputs: [],
604
+ name: "tokenP",
605
+ outputs: [{ internalType: "contract ITokenP", name: "", type: "address" }],
606
+ stateMutability: "view",
607
+ type: "function"
608
+ },
609
+ // --- Swapper Facet ---
610
+ {
611
+ inputs: [{ internalType: "address", name: "target", type: "address" }],
612
+ name: "AddressEmptyCode",
613
+ type: "error"
614
+ },
615
+ { inputs: [], name: "FailedCall", type: "error" },
616
+ {
617
+ inputs: [
618
+ { internalType: "uint256", name: "balance", type: "uint256" },
619
+ { internalType: "uint256", name: "needed", type: "uint256" }
620
+ ],
621
+ name: "InsufficientBalance",
622
+ type: "error"
623
+ },
624
+ { inputs: [], name: "InvalidSwap", type: "error" },
625
+ { inputs: [], name: "InvalidTokens", type: "error" },
626
+ { inputs: [], name: "NotWhitelisted", type: "error" },
627
+ { inputs: [], name: "Paused", type: "error" },
628
+ {
629
+ inputs: [{ internalType: "address", name: "token", type: "address" }],
630
+ name: "SafeERC20FailedOperation",
631
+ type: "error"
632
+ },
633
+ { inputs: [], name: "TooBigAmountIn", type: "error" },
634
+ { inputs: [], name: "TooLate", type: "error" },
635
+ { inputs: [], name: "TooSmallAmountOut", type: "error" },
636
+ {
637
+ anonymous: false,
638
+ inputs: [
639
+ {
640
+ indexed: true,
641
+ internalType: "address",
642
+ name: "tokenIn",
643
+ type: "address"
644
+ },
645
+ {
646
+ indexed: true,
647
+ internalType: "address",
648
+ name: "tokenOut",
649
+ type: "address"
650
+ },
651
+ {
652
+ indexed: false,
653
+ internalType: "uint256",
654
+ name: "amountIn",
655
+ type: "uint256"
656
+ },
657
+ {
658
+ indexed: false,
659
+ internalType: "uint256",
660
+ name: "amountOut",
661
+ type: "uint256"
662
+ },
663
+ { indexed: true, internalType: "address", name: "from", type: "address" },
664
+ { indexed: false, internalType: "address", name: "to", type: "address" }
665
+ ],
666
+ name: "Swap",
667
+ type: "event"
668
+ },
669
+ {
670
+ inputs: [
671
+ { internalType: "uint256", name: "amountIn", type: "uint256" },
672
+ { internalType: "address", name: "tokenIn", type: "address" },
673
+ { internalType: "address", name: "tokenOut", type: "address" }
674
+ ],
675
+ name: "quoteIn",
676
+ outputs: [{ internalType: "uint256", name: "amountOut", type: "uint256" }],
677
+ stateMutability: "view",
678
+ type: "function"
679
+ },
680
+ {
681
+ inputs: [
682
+ { internalType: "uint256", name: "amountOut", type: "uint256" },
683
+ { internalType: "address", name: "tokenIn", type: "address" },
684
+ { internalType: "address", name: "tokenOut", type: "address" }
685
+ ],
686
+ name: "quoteOut",
687
+ outputs: [{ internalType: "uint256", name: "amountIn", type: "uint256" }],
688
+ stateMutability: "view",
689
+ type: "function"
690
+ },
691
+ {
692
+ inputs: [
693
+ { internalType: "uint256", name: "amountIn", type: "uint256" },
694
+ { internalType: "uint256", name: "amountOutMin", type: "uint256" },
695
+ { internalType: "address", name: "tokenIn", type: "address" },
696
+ { internalType: "address", name: "tokenOut", type: "address" },
697
+ { internalType: "address", name: "to", type: "address" },
698
+ { internalType: "uint256", name: "deadline", type: "uint256" }
699
+ ],
700
+ name: "swapExactInput",
701
+ outputs: [{ internalType: "uint256", name: "amountOut", type: "uint256" }],
702
+ stateMutability: "nonpayable",
703
+ type: "function"
704
+ },
705
+ {
706
+ // Added in v3.2 audit — EIP-3009 authorization variant (one-tx, no prior approve needed).
707
+ // authData = abi.encode(AuthorizationParams { from, value, validAfter, validBefore, nonce: userSalt, signature })
708
+ // The contract derives the bound nonce from swap params (anti-frontrunning).
709
+ inputs: [
710
+ { internalType: "uint256", name: "amountIn", type: "uint256" },
711
+ { internalType: "uint256", name: "amountOutMin", type: "uint256" },
712
+ { internalType: "address", name: "tokenIn", type: "address" },
713
+ { internalType: "address", name: "tokenOut", type: "address" },
714
+ { internalType: "address", name: "to", type: "address" },
715
+ { internalType: "uint256", name: "deadline", type: "uint256" },
716
+ { internalType: "bytes", name: "authData", type: "bytes" }
717
+ ],
718
+ name: "swapExactInputWithAuthorization",
719
+ outputs: [{ internalType: "uint256", name: "amountOut", type: "uint256" }],
720
+ stateMutability: "nonpayable",
721
+ type: "function"
722
+ },
723
+ {
724
+ // Added in v3.2 audit — EIP-3009 authorization variant (one-tx, no prior approve needed).
725
+ // authData = abi.encode(AuthorizationParams { from, value: amountInMax, validAfter, validBefore, nonce: userSalt, signature })
726
+ inputs: [
727
+ { internalType: "uint256", name: "amountOut", type: "uint256" },
728
+ { internalType: "uint256", name: "amountInMax", type: "uint256" },
729
+ { internalType: "address", name: "tokenIn", type: "address" },
730
+ { internalType: "address", name: "tokenOut", type: "address" },
731
+ { internalType: "address", name: "to", type: "address" },
732
+ { internalType: "uint256", name: "deadline", type: "uint256" },
733
+ { internalType: "bytes", name: "authData", type: "bytes" }
734
+ ],
735
+ name: "swapExactOutputWithAuthorization",
736
+ outputs: [{ internalType: "uint256", name: "amountIn", type: "uint256" }],
737
+ stateMutability: "nonpayable",
738
+ type: "function"
739
+ },
740
+ {
741
+ inputs: [
742
+ { internalType: "uint256", name: "amountIn", type: "uint256" },
743
+ { internalType: "uint256", name: "amountOutMin", type: "uint256" },
744
+ { internalType: "address", name: "tokenIn", type: "address" },
745
+ { internalType: "address", name: "to", type: "address" },
746
+ { internalType: "uint256", name: "deadline", type: "uint256" },
747
+ { internalType: "bytes", name: "permitData", type: "bytes" }
748
+ ],
749
+ name: "swapExactInputWithPermit",
750
+ outputs: [{ internalType: "uint256", name: "amountOut", type: "uint256" }],
751
+ stateMutability: "nonpayable",
752
+ type: "function"
753
+ },
754
+ {
755
+ inputs: [
756
+ { internalType: "uint256", name: "amountOut", type: "uint256" },
757
+ { internalType: "uint256", name: "amountInMax", type: "uint256" },
758
+ { internalType: "address", name: "tokenIn", type: "address" },
759
+ { internalType: "address", name: "tokenOut", type: "address" },
760
+ { internalType: "address", name: "to", type: "address" },
761
+ { internalType: "uint256", name: "deadline", type: "uint256" }
762
+ ],
763
+ name: "swapExactOutput",
764
+ outputs: [{ internalType: "uint256", name: "amountIn", type: "uint256" }],
765
+ stateMutability: "nonpayable",
766
+ type: "function"
767
+ },
768
+ {
769
+ inputs: [
770
+ { internalType: "uint256", name: "amountOut", type: "uint256" },
771
+ { internalType: "uint256", name: "amountInMax", type: "uint256" },
772
+ { internalType: "address", name: "tokenIn", type: "address" },
773
+ { internalType: "address", name: "to", type: "address" },
774
+ { internalType: "uint256", name: "deadline", type: "uint256" },
775
+ { internalType: "bytes", name: "permitData", type: "bytes" }
776
+ ],
777
+ name: "swapExactOutputWithPermit",
778
+ outputs: [{ internalType: "uint256", name: "amountIn", type: "uint256" }],
779
+ stateMutability: "nonpayable",
780
+ type: "function"
781
+ },
782
+ // --- Redeemer Facet ---
783
+ { inputs: [], name: "InvalidLengths", type: "error" },
784
+ { inputs: [], name: "NotTrusted", type: "error" },
785
+ {
786
+ anonymous: false,
787
+ inputs: [
788
+ {
789
+ indexed: false,
790
+ internalType: "uint256",
791
+ name: "newNormalizerValue",
792
+ type: "uint256"
793
+ }
794
+ ],
795
+ name: "NormalizerUpdated",
796
+ type: "event"
797
+ },
798
+ {
799
+ anonymous: false,
800
+ inputs: [
801
+ {
802
+ indexed: false,
803
+ internalType: "uint256",
804
+ name: "amount",
805
+ type: "uint256"
806
+ },
807
+ {
808
+ indexed: false,
809
+ internalType: "address[]",
810
+ name: "tokens",
811
+ type: "address[]"
812
+ },
813
+ {
814
+ indexed: false,
815
+ internalType: "uint256[]",
816
+ name: "amounts",
817
+ type: "uint256[]"
818
+ },
819
+ {
820
+ indexed: false,
821
+ internalType: "address[]",
822
+ name: "forfeitTokens",
823
+ type: "address[]"
824
+ },
825
+ { indexed: true, internalType: "address", name: "from", type: "address" },
826
+ { indexed: true, internalType: "address", name: "to", type: "address" }
827
+ ],
828
+ name: "Redeemed",
829
+ type: "event"
830
+ },
831
+ {
832
+ inputs: [{ internalType: "uint256", name: "amount", type: "uint256" }],
833
+ name: "quoteRedemptionCurve",
834
+ outputs: [
835
+ { internalType: "address[]", name: "tokens", type: "address[]" },
836
+ { internalType: "uint256[]", name: "amounts", type: "uint256[]" }
837
+ ],
838
+ stateMutability: "view",
839
+ type: "function"
840
+ },
841
+ {
842
+ inputs: [
843
+ { internalType: "uint256", name: "amount", type: "uint256" },
844
+ { internalType: "address", name: "receiver", type: "address" },
845
+ { internalType: "uint256", name: "deadline", type: "uint256" },
846
+ { internalType: "uint256[]", name: "minAmountOuts", type: "uint256[]" }
847
+ ],
848
+ name: "redeem",
849
+ outputs: [
850
+ { internalType: "address[]", name: "tokens", type: "address[]" },
851
+ { internalType: "uint256[]", name: "amounts", type: "uint256[]" }
852
+ ],
853
+ stateMutability: "nonpayable",
854
+ type: "function"
855
+ },
856
+ {
857
+ inputs: [
858
+ { internalType: "uint256", name: "amount", type: "uint256" },
859
+ { internalType: "address", name: "receiver", type: "address" },
860
+ { internalType: "uint256", name: "deadline", type: "uint256" },
861
+ { internalType: "uint256[]", name: "minAmountOuts", type: "uint256[]" },
862
+ { internalType: "address[]", name: "forfeitTokens", type: "address[]" }
863
+ ],
864
+ name: "redeemWithForfeit",
865
+ outputs: [
866
+ { internalType: "address[]", name: "tokens", type: "address[]" },
867
+ { internalType: "uint256[]", name: "amounts", type: "uint256[]" }
868
+ ],
869
+ stateMutability: "nonpayable",
870
+ type: "function"
871
+ },
872
+ {
873
+ inputs: [
874
+ { internalType: "uint256", name: "amount", type: "uint256" },
875
+ { internalType: "bool", name: "increase", type: "bool" }
876
+ ],
877
+ name: "updateNormalizer",
878
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
879
+ stateMutability: "nonpayable",
880
+ type: "function"
881
+ },
882
+ // --- SettersGovernor Facet ---
883
+ {
884
+ inputs: [{ internalType: "address", name: "caller", type: "address" }],
885
+ name: "AccessManagedUnauthorized",
886
+ type: "error"
887
+ },
888
+ { inputs: [], name: "AlreadyAdded", type: "error" },
889
+ { inputs: [], name: "CollateralBacked", type: "error" },
890
+ { inputs: [], name: "InvalidAccessManager", type: "error" },
891
+ { inputs: [], name: "InvalidParams", type: "error" },
892
+ { inputs: [], name: "ManagerHasAssets", type: "error" },
893
+ { inputs: [], name: "OracleUpdateFailed", type: "error" },
894
+ {
895
+ anonymous: false,
896
+ inputs: [
897
+ {
898
+ indexed: true,
899
+ internalType: "address",
900
+ name: "collateral",
901
+ type: "address"
902
+ }
903
+ ],
904
+ name: "CollateralAdded",
905
+ type: "event"
906
+ },
907
+ {
908
+ anonymous: false,
909
+ inputs: [
910
+ {
911
+ indexed: true,
912
+ internalType: "address",
913
+ name: "collateral",
914
+ type: "address"
915
+ },
916
+ {
917
+ components: [
918
+ {
919
+ internalType: "contract IERC20[]",
920
+ name: "subCollaterals",
921
+ type: "address[]"
922
+ },
923
+ { internalType: "bytes", name: "config", type: "bytes" }
924
+ ],
925
+ indexed: false,
926
+ internalType: "struct ManagerStorage",
927
+ name: "managerData",
928
+ type: "tuple"
929
+ }
930
+ ],
931
+ name: "CollateralManagerSet",
932
+ type: "event"
933
+ },
934
+ {
935
+ anonymous: false,
936
+ inputs: [
937
+ {
938
+ indexed: true,
939
+ internalType: "address",
940
+ name: "collateral",
941
+ type: "address"
942
+ }
943
+ ],
944
+ name: "CollateralRevoked",
945
+ type: "event"
946
+ },
947
+ {
948
+ anonymous: false,
949
+ inputs: [
950
+ {
951
+ indexed: true,
952
+ internalType: "address",
953
+ name: "collateral",
954
+ type: "address"
955
+ },
956
+ {
957
+ indexed: false,
958
+ internalType: "bytes",
959
+ name: "whitelistData",
960
+ type: "bytes"
961
+ },
962
+ {
963
+ indexed: false,
964
+ internalType: "uint8",
965
+ name: "whitelistStatus",
966
+ type: "uint8"
967
+ }
968
+ ],
969
+ name: "CollateralWhitelistStatusUpdated",
970
+ type: "event"
971
+ },
972
+ {
973
+ anonymous: false,
974
+ inputs: [
975
+ {
976
+ indexed: true,
977
+ internalType: "address",
978
+ name: "collateral",
979
+ type: "address"
980
+ },
981
+ {
982
+ indexed: false,
983
+ internalType: "bytes",
984
+ name: "oracleConfig",
985
+ type: "bytes"
986
+ }
987
+ ],
988
+ name: "OracleSet",
989
+ type: "event"
990
+ },
991
+ {
992
+ anonymous: false,
993
+ inputs: [
994
+ {
995
+ indexed: true,
996
+ internalType: "address",
997
+ name: "previousOwner",
998
+ type: "address"
999
+ },
1000
+ {
1001
+ indexed: true,
1002
+ internalType: "address",
1003
+ name: "newOwner",
1004
+ type: "address"
1005
+ }
1006
+ ],
1007
+ name: "OwnershipTransferred",
1008
+ type: "event"
1009
+ },
1010
+ {
1011
+ anonymous: false,
1012
+ inputs: [
1013
+ {
1014
+ indexed: true,
1015
+ internalType: "address",
1016
+ name: "token",
1017
+ type: "address"
1018
+ },
1019
+ { indexed: true, internalType: "address", name: "to", type: "address" },
1020
+ {
1021
+ indexed: false,
1022
+ internalType: "uint256",
1023
+ name: "amount",
1024
+ type: "uint256"
1025
+ }
1026
+ ],
1027
+ name: "Recovered",
1028
+ type: "event"
1029
+ },
1030
+ {
1031
+ anonymous: false,
1032
+ inputs: [
1033
+ {
1034
+ indexed: true,
1035
+ internalType: "address",
1036
+ name: "collateral",
1037
+ type: "address"
1038
+ },
1039
+ {
1040
+ indexed: false,
1041
+ internalType: "uint256",
1042
+ name: "amount",
1043
+ type: "uint256"
1044
+ },
1045
+ { indexed: false, internalType: "bool", name: "increase", type: "bool" }
1046
+ ],
1047
+ name: "ReservesAdjusted",
1048
+ type: "event"
1049
+ },
1050
+ {
1051
+ anonymous: false,
1052
+ inputs: [
1053
+ {
1054
+ indexed: true,
1055
+ internalType: "address",
1056
+ name: "sender",
1057
+ type: "address"
1058
+ },
1059
+ { indexed: false, internalType: "bool", name: "isTrusted", type: "bool" },
1060
+ {
1061
+ indexed: false,
1062
+ internalType: "enum TrustedType",
1063
+ name: "trustedType",
1064
+ type: "uint8"
1065
+ }
1066
+ ],
1067
+ name: "TrustedToggled",
1068
+ type: "event"
1069
+ },
1070
+ {
1071
+ inputs: [{ internalType: "address", name: "collateral", type: "address" }],
1072
+ name: "addCollateral",
1073
+ outputs: [],
1074
+ stateMutability: "nonpayable",
1075
+ type: "function"
1076
+ },
1077
+ {
1078
+ inputs: [
1079
+ { internalType: "address", name: "collateral", type: "address" },
1080
+ { internalType: "uint128", name: "amount", type: "uint128" },
1081
+ { internalType: "bool", name: "increase", type: "bool" }
1082
+ ],
1083
+ name: "adjustStablecoins",
1084
+ outputs: [],
1085
+ stateMutability: "nonpayable",
1086
+ type: "function"
1087
+ },
1088
+ {
1089
+ inputs: [
1090
+ { internalType: "contract IERC20", name: "token", type: "address" },
1091
+ { internalType: "address", name: "spender", type: "address" },
1092
+ { internalType: "uint256", name: "value", type: "uint256" }
1093
+ ],
1094
+ name: "changeAllowance",
1095
+ outputs: [],
1096
+ stateMutability: "nonpayable",
1097
+ type: "function"
1098
+ },
1099
+ {
1100
+ inputs: [
1101
+ { internalType: "address", name: "collateral", type: "address" },
1102
+ { internalType: "contract IERC20", name: "token", type: "address" },
1103
+ { internalType: "address", name: "to", type: "address" },
1104
+ { internalType: "uint256", name: "amount", type: "uint256" }
1105
+ ],
1106
+ name: "recoverERC20",
1107
+ outputs: [],
1108
+ stateMutability: "nonpayable",
1109
+ type: "function"
1110
+ },
1111
+ {
1112
+ inputs: [
1113
+ { internalType: "address", name: "collateral", type: "address" },
1114
+ {
1115
+ internalType: "bool",
1116
+ name: "checkExternalManagerBalance",
1117
+ type: "bool"
1118
+ }
1119
+ ],
1120
+ name: "revokeCollateral",
1121
+ outputs: [],
1122
+ stateMutability: "nonpayable",
1123
+ type: "function"
1124
+ },
1125
+ {
1126
+ inputs: [
1127
+ { internalType: "address", name: "_newAccessManager", type: "address" }
1128
+ ],
1129
+ name: "setAccessManager",
1130
+ outputs: [],
1131
+ stateMutability: "nonpayable",
1132
+ type: "function"
1133
+ },
1134
+ {
1135
+ inputs: [
1136
+ { internalType: "address", name: "collateral", type: "address" },
1137
+ {
1138
+ internalType: "bool",
1139
+ name: "checkExternalManagerBalance",
1140
+ type: "bool"
1141
+ },
1142
+ {
1143
+ components: [
1144
+ {
1145
+ internalType: "contract IERC20[]",
1146
+ name: "subCollaterals",
1147
+ type: "address[]"
1148
+ },
1149
+ { internalType: "bytes", name: "config", type: "bytes" }
1150
+ ],
1151
+ internalType: "struct ManagerStorage",
1152
+ name: "managerData",
1153
+ type: "tuple"
1154
+ }
1155
+ ],
1156
+ name: "setCollateralManager",
1157
+ outputs: [],
1158
+ stateMutability: "nonpayable",
1159
+ type: "function"
1160
+ },
1161
+ {
1162
+ inputs: [
1163
+ { internalType: "address", name: "collateral", type: "address" },
1164
+ { internalType: "bytes", name: "oracleConfig", type: "bytes" }
1165
+ ],
1166
+ name: "setOracle",
1167
+ outputs: [],
1168
+ stateMutability: "nonpayable",
1169
+ type: "function"
1170
+ },
1171
+ {
1172
+ inputs: [
1173
+ { internalType: "address", name: "collateral", type: "address" },
1174
+ { internalType: "uint8", name: "whitelistStatus", type: "uint8" },
1175
+ { internalType: "bytes", name: "whitelistData", type: "bytes" }
1176
+ ],
1177
+ name: "setWhitelistStatus",
1178
+ outputs: [],
1179
+ stateMutability: "nonpayable",
1180
+ type: "function"
1181
+ },
1182
+ {
1183
+ inputs: [
1184
+ { internalType: "address", name: "sender", type: "address" },
1185
+ { internalType: "enum TrustedType", name: "t", type: "uint8" }
1186
+ ],
1187
+ name: "toggleTrusted",
1188
+ outputs: [],
1189
+ stateMutability: "nonpayable",
1190
+ type: "function"
1191
+ },
1192
+ {
1193
+ inputs: [{ internalType: "address", name: "collateral", type: "address" }],
1194
+ name: "updateOracle",
1195
+ outputs: [],
1196
+ stateMutability: "nonpayable",
1197
+ type: "function"
1198
+ },
1199
+ // --- RewardHandler Facet ---
1200
+ { inputs: [], name: "OdosSwapFailed", type: "error" },
1201
+ {
1202
+ anonymous: false,
1203
+ inputs: [
1204
+ {
1205
+ indexed: true,
1206
+ internalType: "address",
1207
+ name: "tokenObtained",
1208
+ type: "address"
1209
+ },
1210
+ {
1211
+ indexed: false,
1212
+ internalType: "uint256",
1213
+ name: "balanceUpdate",
1214
+ type: "uint256"
1215
+ }
1216
+ ],
1217
+ name: "RewardsSoldFor",
1218
+ type: "event"
1219
+ },
1220
+ {
1221
+ inputs: [
1222
+ { internalType: "uint256", name: "minAmountOut", type: "uint256" },
1223
+ { internalType: "bytes", name: "payload", type: "bytes" }
1224
+ ],
1225
+ name: "sellRewards",
1226
+ outputs: [{ internalType: "uint256", name: "amountOut", type: "uint256" }],
1227
+ stateMutability: "nonpayable",
1228
+ type: "function"
1229
+ }
1230
+ ];
1231
+
1232
+ // src/abi/PRL_ABI.ts
1233
+ var PRL_ABI = [
1234
+ ...ERC20_ABI,
1235
+ {
1236
+ name: "nonces",
1237
+ type: "function",
1238
+ stateMutability: "view",
1239
+ inputs: [{ name: "owner", type: "address" }],
1240
+ outputs: [{ type: "uint256" }]
1241
+ },
1242
+ {
1243
+ name: "permit",
1244
+ type: "function",
1245
+ stateMutability: "nonpayable",
1246
+ inputs: [
1247
+ { name: "owner", type: "address" },
1248
+ { name: "spender", type: "address" },
1249
+ { name: "value", type: "uint256" },
1250
+ { name: "deadline", type: "uint256" },
1251
+ { name: "v", type: "uint8" },
1252
+ { name: "r", type: "bytes32" },
1253
+ { name: "s", type: "bytes32" }
1254
+ ],
1255
+ outputs: []
1256
+ },
1257
+ {
1258
+ name: "DOMAIN_SEPARATOR",
1259
+ type: "function",
1260
+ stateMutability: "view",
1261
+ inputs: [],
1262
+ outputs: [{ type: "bytes32" }]
1263
+ }
1264
+ ];
1265
+
1266
+ // src/abi/REWARD_MERKLE_DISTRIBUTOR_ABI.ts
1267
+ var REWARD_MERKLE_DISTRIBUTOR_ABI = [
1268
+ {
1269
+ name: "lastEpochId",
1270
+ type: "function",
1271
+ stateMutability: "view",
1272
+ inputs: [],
1273
+ outputs: [{ type: "uint64" }]
1274
+ },
1275
+ {
1276
+ name: "hasClaimed",
1277
+ type: "function",
1278
+ stateMutability: "view",
1279
+ inputs: [
1280
+ { name: "account", type: "address" },
1281
+ { name: "epochId", type: "uint64" }
1282
+ ],
1283
+ outputs: [{ type: "bool" }]
1284
+ },
1285
+ {
1286
+ name: "claims",
1287
+ type: "function",
1288
+ stateMutability: "nonpayable",
1289
+ inputs: [
1290
+ {
1291
+ name: "_claimsData",
1292
+ type: "tuple[]",
1293
+ components: [
1294
+ { name: "epochId", type: "uint64" },
1295
+ { name: "account", type: "address" },
1296
+ { name: "amount", type: "uint256" },
1297
+ { name: "merkleProof", type: "bytes32[]" }
1298
+ ]
1299
+ }
1300
+ ],
1301
+ outputs: []
1302
+ }
1303
+ ];
1304
+
1305
+ // src/abi/SPRL1_ABI.ts
1306
+ var SPRL1_ABI = [
1307
+ ...ERC20_ABI,
1308
+ {
1309
+ name: "underlying",
1310
+ type: "function",
1311
+ stateMutability: "view",
1312
+ inputs: [],
1313
+ outputs: [{ internalType: "contract IERC20", type: "address" }]
1314
+ },
1315
+ {
1316
+ name: "timeLockDuration",
1317
+ type: "function",
1318
+ stateMutability: "view",
1319
+ inputs: [],
1320
+ outputs: [{ type: "uint64" }]
1321
+ },
1322
+ {
1323
+ name: "unlockingAmount",
1324
+ type: "function",
1325
+ stateMutability: "view",
1326
+ inputs: [],
1327
+ outputs: [{ type: "uint256" }]
1328
+ },
1329
+ {
1330
+ name: "startPenaltyPercentage",
1331
+ type: "function",
1332
+ stateMutability: "view",
1333
+ inputs: [],
1334
+ outputs: [{ type: "uint256" }]
1335
+ },
1336
+ {
1337
+ name: "feeReceiver",
1338
+ type: "function",
1339
+ stateMutability: "view",
1340
+ inputs: [],
1341
+ outputs: [{ type: "address" }]
1342
+ },
1343
+ {
1344
+ name: "authority",
1345
+ type: "function",
1346
+ stateMutability: "view",
1347
+ inputs: [],
1348
+ outputs: [{ type: "address" }]
1349
+ },
1350
+ {
1351
+ name: "paused",
1352
+ type: "function",
1353
+ stateMutability: "view",
1354
+ inputs: [],
1355
+ outputs: [{ type: "bool" }]
1356
+ },
1357
+ {
1358
+ name: "userVsNextID",
1359
+ type: "function",
1360
+ stateMutability: "view",
1361
+ inputs: [{ name: "user", type: "address" }],
1362
+ outputs: [{ name: "nextRequestId", type: "uint256" }]
1363
+ },
1364
+ {
1365
+ name: "userVsWithdrawals",
1366
+ type: "function",
1367
+ stateMutability: "view",
1368
+ inputs: [
1369
+ { name: "user", type: "address" },
1370
+ { name: "requestId", type: "uint256" }
1371
+ ],
1372
+ outputs: [
1373
+ { name: "amount", type: "uint256" },
1374
+ { name: "requestTime", type: "uint64" },
1375
+ { name: "releaseTime", type: "uint64" },
1376
+ {
1377
+ internalType: "enum TimeLockPenaltyERC20.WITHDRAW_STATUS",
1378
+ name: "status",
1379
+ type: "uint8"
1380
+ }
1381
+ ]
1382
+ },
1383
+ {
1384
+ name: "findUnlockingIDs",
1385
+ type: "function",
1386
+ stateMutability: "view",
1387
+ inputs: [
1388
+ { name: "_user", type: "address" },
1389
+ { name: "_start", type: "uint256" },
1390
+ { name: "_startFromEnd", type: "bool" },
1391
+ { name: "_countToCheck", type: "uint16" }
1392
+ ],
1393
+ outputs: [{ name: "ids", type: "uint256[]" }]
1394
+ },
1395
+ // Voting
1396
+ {
1397
+ name: "getVotes",
1398
+ type: "function",
1399
+ stateMutability: "view",
1400
+ inputs: [{ name: "account", type: "address" }],
1401
+ outputs: [{ type: "uint256" }]
1402
+ },
1403
+ {
1404
+ name: "getPastVotes",
1405
+ type: "function",
1406
+ stateMutability: "view",
1407
+ inputs: [
1408
+ { name: "account", type: "address" },
1409
+ { name: "timepoint", type: "uint256" }
1410
+ ],
1411
+ outputs: [{ type: "uint256" }]
1412
+ },
1413
+ {
1414
+ name: "getPastTotalSupply",
1415
+ type: "function",
1416
+ stateMutability: "view",
1417
+ inputs: [{ name: "timepoint", type: "uint256" }],
1418
+ outputs: [{ type: "uint256" }]
1419
+ },
1420
+ {
1421
+ name: "delegates",
1422
+ type: "function",
1423
+ stateMutability: "view",
1424
+ inputs: [{ name: "account", type: "address" }],
1425
+ outputs: [{ type: "address" }]
1426
+ },
1427
+ {
1428
+ name: "deposit",
1429
+ type: "function",
1430
+ stateMutability: "nonpayable",
1431
+ inputs: [{ name: "_assetAmount", type: "uint256" }],
1432
+ outputs: []
1433
+ },
1434
+ {
1435
+ name: "depositWithPermit",
1436
+ type: "function",
1437
+ stateMutability: "nonpayable",
1438
+ inputs: [
1439
+ { name: "_assetAmount", type: "uint256" },
1440
+ { name: "_deadline", type: "uint256" },
1441
+ { name: "_v", type: "uint8" },
1442
+ { name: "_r", type: "bytes32" },
1443
+ { name: "_s", type: "bytes32" }
1444
+ ],
1445
+ outputs: []
1446
+ },
1447
+ {
1448
+ name: "requestWithdraw",
1449
+ type: "function",
1450
+ stateMutability: "nonpayable",
1451
+ inputs: [{ name: "_unlockingAmount", type: "uint256" }],
1452
+ outputs: []
1453
+ },
1454
+ {
1455
+ name: "withdraw",
1456
+ type: "function",
1457
+ stateMutability: "nonpayable",
1458
+ inputs: [
1459
+ { name: "_ids", type: "uint256[]" },
1460
+ { name: "_maxAcceptablePenalty", type: "uint256" }
1461
+ ],
1462
+ outputs: []
1463
+ },
1464
+ {
1465
+ name: "cancelWithdrawalRequests",
1466
+ type: "function",
1467
+ stateMutability: "nonpayable",
1468
+ inputs: [{ name: "_ids", type: "uint256[]" }],
1469
+ outputs: []
1470
+ },
1471
+ {
1472
+ name: "emergencyWithdraw",
1473
+ type: "function",
1474
+ stateMutability: "nonpayable",
1475
+ inputs: [{ name: "_unlockingAmount", type: "uint256" }],
1476
+ outputs: []
1477
+ },
1478
+ {
1479
+ name: "delegate",
1480
+ type: "function",
1481
+ stateMutability: "nonpayable",
1482
+ inputs: [{ name: "delegatee", type: "address" }],
1483
+ outputs: []
1484
+ },
1485
+ {
1486
+ name: "delegateBySig",
1487
+ type: "function",
1488
+ stateMutability: "nonpayable",
1489
+ inputs: [
1490
+ { name: "delegatee", type: "address" },
1491
+ { name: "nonce", type: "uint256" },
1492
+ { name: "expiry", type: "uint256" },
1493
+ { name: "v", type: "uint8" },
1494
+ { name: "r", type: "bytes32" },
1495
+ { name: "s", type: "bytes32" }
1496
+ ],
1497
+ outputs: []
1498
+ }
1499
+ ];
1500
+
1501
+ // src/abi/SPRL2_ABI.ts
1502
+ var SPRL2_ABI = [
1503
+ ...ERC20_ABI,
1504
+ {
1505
+ name: "underlying",
1506
+ type: "function",
1507
+ stateMutability: "view",
1508
+ inputs: [],
1509
+ outputs: [{ internalType: "contract IERC20", type: "address" }]
1510
+ },
1511
+ {
1512
+ name: "BPT",
1513
+ type: "function",
1514
+ stateMutability: "view",
1515
+ inputs: [],
1516
+ outputs: [{ internalType: "contract IERC20", type: "address" }]
1517
+ },
1518
+ {
1519
+ name: "PRL",
1520
+ type: "function",
1521
+ stateMutability: "view",
1522
+ inputs: [],
1523
+ outputs: [{ internalType: "contract IERC20", type: "address" }]
1524
+ },
1525
+ {
1526
+ name: "WETH",
1527
+ type: "function",
1528
+ stateMutability: "view",
1529
+ inputs: [],
1530
+ outputs: [{ internalType: "contract IWrappedNative", type: "address" }]
1531
+ },
1532
+ {
1533
+ name: "AURA_REWARDS_POOL",
1534
+ type: "function",
1535
+ stateMutability: "view",
1536
+ inputs: [],
1537
+ outputs: [{ internalType: "contract IAuraRewardPool", type: "address" }]
1538
+ },
1539
+ {
1540
+ name: "AURA_BOOSTER_LITE",
1541
+ type: "function",
1542
+ stateMutability: "view",
1543
+ inputs: [],
1544
+ outputs: [{ type: "address" }]
1545
+ },
1546
+ {
1547
+ name: "AURA_POOL_PID",
1548
+ type: "function",
1549
+ stateMutability: "view",
1550
+ inputs: [],
1551
+ outputs: [{ type: "uint256" }]
1552
+ },
1553
+ {
1554
+ name: "BALANCER_ROUTER",
1555
+ type: "function",
1556
+ stateMutability: "view",
1557
+ inputs: [],
1558
+ outputs: [{ type: "address" }]
1559
+ },
1560
+ {
1561
+ name: "PERMIT2",
1562
+ type: "function",
1563
+ stateMutability: "view",
1564
+ inputs: [],
1565
+ outputs: [{ type: "address" }]
1566
+ },
1567
+ {
1568
+ name: "getPastTotalSupply",
1569
+ type: "function",
1570
+ stateMutability: "view",
1571
+ inputs: [{ name: "timepoint", type: "uint256" }],
1572
+ outputs: [{ type: "uint256" }]
1573
+ },
1574
+ {
1575
+ name: "numCheckpoints",
1576
+ type: "function",
1577
+ stateMutability: "view",
1578
+ inputs: [{ name: "account", type: "address" }],
1579
+ outputs: [{ type: "uint32" }]
1580
+ },
1581
+ {
1582
+ name: "timeLockDuration",
1583
+ type: "function",
1584
+ stateMutability: "view",
1585
+ inputs: [],
1586
+ outputs: [{ type: "uint64" }]
1587
+ },
1588
+ {
1589
+ name: "unlockingAmount",
1590
+ type: "function",
1591
+ stateMutability: "view",
1592
+ inputs: [],
1593
+ outputs: [{ type: "uint256" }]
1594
+ },
1595
+ {
1596
+ name: "startPenaltyPercentage",
1597
+ type: "function",
1598
+ stateMutability: "view",
1599
+ inputs: [],
1600
+ outputs: [{ type: "uint256" }]
1601
+ },
1602
+ {
1603
+ name: "feeReceiver",
1604
+ type: "function",
1605
+ stateMutability: "view",
1606
+ inputs: [],
1607
+ outputs: [{ type: "address" }]
1608
+ },
1609
+ {
1610
+ name: "paused",
1611
+ type: "function",
1612
+ stateMutability: "view",
1613
+ inputs: [],
1614
+ outputs: [{ type: "bool" }]
1615
+ },
1616
+ {
1617
+ name: "isReversedBalancerPair",
1618
+ type: "function",
1619
+ stateMutability: "view",
1620
+ inputs: [],
1621
+ outputs: [{ type: "bool" }]
1622
+ },
1623
+ {
1624
+ name: "rewardTokens",
1625
+ type: "function",
1626
+ stateMutability: "view",
1627
+ inputs: [{ type: "uint256" }],
1628
+ outputs: [{ type: "address" }]
1629
+ },
1630
+ {
1631
+ name: "userVsNextID",
1632
+ type: "function",
1633
+ stateMutability: "view",
1634
+ inputs: [{ name: "user", type: "address" }],
1635
+ outputs: [{ name: "nextRequestId", type: "uint256" }]
1636
+ },
1637
+ {
1638
+ name: "userVsWithdrawals",
1639
+ type: "function",
1640
+ stateMutability: "view",
1641
+ inputs: [
1642
+ { name: "user", type: "address" },
1643
+ { name: "requestId", type: "uint256" }
1644
+ ],
1645
+ outputs: [
1646
+ { name: "amount", type: "uint256" },
1647
+ { name: "requestTime", type: "uint64" },
1648
+ { name: "releaseTime", type: "uint64" },
1649
+ {
1650
+ internalType: "enum TimeLockPenaltyERC20.WITHDRAW_STATUS",
1651
+ name: "status",
1652
+ type: "uint8"
1653
+ }
1654
+ ]
1655
+ },
1656
+ {
1657
+ name: "findUnlockingIDs",
1658
+ type: "function",
1659
+ stateMutability: "view",
1660
+ inputs: [
1661
+ { name: "_user", type: "address" },
1662
+ { name: "_start", type: "uint256" },
1663
+ { name: "_startFromEnd", type: "bool" },
1664
+ { name: "_countToCheck", type: "uint16" }
1665
+ ],
1666
+ outputs: [{ name: "ids", type: "uint256[]" }]
1667
+ },
1668
+ {
1669
+ name: "getVotes",
1670
+ type: "function",
1671
+ stateMutability: "view",
1672
+ inputs: [{ name: "account", type: "address" }],
1673
+ outputs: [{ type: "uint256" }]
1674
+ },
1675
+ {
1676
+ name: "getPastVotes",
1677
+ type: "function",
1678
+ stateMutability: "view",
1679
+ inputs: [
1680
+ { name: "account", type: "address" },
1681
+ { name: "timepoint", type: "uint256" }
1682
+ ],
1683
+ outputs: [{ type: "uint256" }]
1684
+ },
1685
+ {
1686
+ name: "delegates",
1687
+ type: "function",
1688
+ stateMutability: "view",
1689
+ inputs: [{ name: "account", type: "address" }],
1690
+ outputs: [{ type: "address" }]
1691
+ },
1692
+ {
1693
+ name: "depositBPT",
1694
+ type: "function",
1695
+ stateMutability: "nonpayable",
1696
+ inputs: [{ name: "_amount", type: "uint256" }],
1697
+ outputs: []
1698
+ },
1699
+ {
1700
+ name: "depositPRLAndEth",
1701
+ type: "function",
1702
+ stateMutability: "payable",
1703
+ inputs: [
1704
+ { name: "_maxPrlAmount", type: "uint256" },
1705
+ { name: "_exactBptAmount", type: "uint256" },
1706
+ { name: "_deadline", type: "uint256" },
1707
+ { name: "_v", type: "uint8" },
1708
+ { name: "_r", type: "bytes32" },
1709
+ { name: "_s", type: "bytes32" }
1710
+ ],
1711
+ outputs: [
1712
+ { name: "amountsIn", type: "uint256[]" },
1713
+ { name: "bptAmount", type: "uint256" }
1714
+ ]
1715
+ },
1716
+ {
1717
+ name: "depositPRLAndWeth",
1718
+ type: "function",
1719
+ stateMutability: "nonpayable",
1720
+ inputs: [
1721
+ { name: "_maxPrlAmount", type: "uint256" },
1722
+ { name: "_maxWethAmount", type: "uint256" },
1723
+ { name: "_exactBptAmount", type: "uint256" },
1724
+ { name: "_deadline", type: "uint256" },
1725
+ { name: "_v", type: "uint8" },
1726
+ { name: "_r", type: "bytes32" },
1727
+ { name: "_s", type: "bytes32" }
1728
+ ],
1729
+ outputs: [
1730
+ { name: "amountsIn", type: "uint256[]" },
1731
+ { name: "bptAmount", type: "uint256" }
1732
+ ]
1733
+ },
1734
+ {
1735
+ name: "requestWithdraw",
1736
+ type: "function",
1737
+ stateMutability: "nonpayable",
1738
+ inputs: [{ name: "_unlockingAmount", type: "uint256" }],
1739
+ outputs: []
1740
+ },
1741
+ {
1742
+ name: "withdrawBPT",
1743
+ type: "function",
1744
+ stateMutability: "nonpayable",
1745
+ inputs: [
1746
+ { name: "_requestIds", type: "uint256[]" },
1747
+ { name: "_maxAcceptablePenalty", type: "uint256" }
1748
+ ],
1749
+ outputs: []
1750
+ },
1751
+ {
1752
+ name: "withdrawPRLAndWeth",
1753
+ type: "function",
1754
+ stateMutability: "nonpayable",
1755
+ inputs: [
1756
+ { name: "_requestIds", type: "uint256[]" },
1757
+ { name: "_minPrlAmount", type: "uint256" },
1758
+ { name: "_minWethAmount", type: "uint256" },
1759
+ { name: "_maxPenaltyPercentage", type: "uint256" }
1760
+ ],
1761
+ outputs: [
1762
+ { name: "prlAmount", type: "uint256" },
1763
+ { name: "wethAmount", type: "uint256" }
1764
+ ]
1765
+ },
1766
+ {
1767
+ name: "cancelWithdrawalRequests",
1768
+ type: "function",
1769
+ stateMutability: "nonpayable",
1770
+ inputs: [{ name: "_ids", type: "uint256[]" }],
1771
+ outputs: []
1772
+ },
1773
+ {
1774
+ name: "emergencyWithdraw",
1775
+ type: "function",
1776
+ stateMutability: "nonpayable",
1777
+ inputs: [{ name: "_amount", type: "uint256" }],
1778
+ outputs: []
1779
+ },
1780
+ {
1781
+ name: "claimRewards",
1782
+ type: "function",
1783
+ stateMutability: "nonpayable",
1784
+ inputs: [],
1785
+ outputs: []
1786
+ },
1787
+ {
1788
+ name: "forwardRewards",
1789
+ type: "function",
1790
+ stateMutability: "nonpayable",
1791
+ inputs: [],
1792
+ outputs: []
1793
+ },
1794
+ {
1795
+ name: "delegate",
1796
+ type: "function",
1797
+ stateMutability: "nonpayable",
1798
+ inputs: [{ name: "delegatee", type: "address" }],
1799
+ outputs: []
1800
+ }
1801
+ ];
1802
+
1803
+ // src/abi/SUSDP_ABI.ts
1804
+ var SUSDP_ABI = [
1805
+ ...ERC20_ABI,
1806
+ // ERC-4626 reads
1807
+ {
1808
+ name: "asset",
1809
+ type: "function",
1810
+ stateMutability: "view",
1811
+ inputs: [],
1812
+ outputs: [{ type: "address" }]
1813
+ },
1814
+ {
1815
+ name: "totalAssets",
1816
+ type: "function",
1817
+ stateMutability: "view",
1818
+ inputs: [],
1819
+ outputs: [{ type: "uint256" }]
1820
+ },
1821
+ {
1822
+ name: "convertToAssets",
1823
+ type: "function",
1824
+ stateMutability: "view",
1825
+ inputs: [{ name: "shares", type: "uint256" }],
1826
+ outputs: [{ type: "uint256" }]
1827
+ },
1828
+ {
1829
+ name: "convertToShares",
1830
+ type: "function",
1831
+ stateMutability: "view",
1832
+ inputs: [{ name: "assets", type: "uint256" }],
1833
+ outputs: [{ type: "uint256" }]
1834
+ },
1835
+ {
1836
+ name: "previewDeposit",
1837
+ type: "function",
1838
+ stateMutability: "view",
1839
+ inputs: [{ name: "assets", type: "uint256" }],
1840
+ outputs: [{ type: "uint256" }]
1841
+ },
1842
+ {
1843
+ name: "previewWithdraw",
1844
+ type: "function",
1845
+ stateMutability: "view",
1846
+ inputs: [{ name: "assets", type: "uint256" }],
1847
+ outputs: [{ type: "uint256" }]
1848
+ },
1849
+ {
1850
+ name: "previewRedeem",
1851
+ type: "function",
1852
+ stateMutability: "view",
1853
+ inputs: [{ name: "shares", type: "uint256" }],
1854
+ outputs: [{ type: "uint256" }]
1855
+ },
1856
+ // ERC-4626 writes
1857
+ {
1858
+ name: "deposit",
1859
+ type: "function",
1860
+ stateMutability: "nonpayable",
1861
+ inputs: [
1862
+ { name: "assets", type: "uint256" },
1863
+ { name: "receiver", type: "address" }
1864
+ ],
1865
+ outputs: [{ type: "uint256" }]
1866
+ },
1867
+ {
1868
+ name: "withdraw",
1869
+ type: "function",
1870
+ stateMutability: "nonpayable",
1871
+ inputs: [
1872
+ { name: "assets", type: "uint256" },
1873
+ { name: "receiver", type: "address" },
1874
+ { name: "owner", type: "address" }
1875
+ ],
1876
+ outputs: [{ type: "uint256" }]
1877
+ },
1878
+ {
1879
+ name: "redeem",
1880
+ type: "function",
1881
+ stateMutability: "nonpayable",
1882
+ inputs: [
1883
+ { name: "shares", type: "uint256" },
1884
+ { name: "receiver", type: "address" },
1885
+ { name: "owner", type: "address" }
1886
+ ],
1887
+ outputs: [{ type: "uint256" }]
1888
+ },
1889
+ // EIP-3009 authorization functions
1890
+ // bytes overload (0x430ff897) — used by the facilitator (EIP-1271 compatible)
1891
+ // Two signatures required: savingsSignature (deposit auth) + tokenSignature (USDp pull auth)
1892
+ {
1893
+ name: "depositWithAuthorization",
1894
+ type: "function",
1895
+ stateMutability: "nonpayable",
1896
+ inputs: [
1897
+ { name: "assets", type: "uint256" },
1898
+ { name: "receiver", type: "address" },
1899
+ { name: "owner", type: "address" },
1900
+ { name: "validAfter", type: "uint256" },
1901
+ { name: "validBefore", type: "uint256" },
1902
+ { name: "nonce", type: "bytes32" },
1903
+ { name: "savingsSignature", type: "bytes" },
1904
+ { name: "tokenSignature", type: "bytes" }
1905
+ ],
1906
+ outputs: [{ type: "uint256" }]
1907
+ },
1908
+ // bytes overload (0x42e88319)
1909
+ {
1910
+ name: "redeemWithAuthorization",
1911
+ type: "function",
1912
+ stateMutability: "nonpayable",
1913
+ inputs: [
1914
+ { name: "shares", type: "uint256" },
1915
+ { name: "receiver", type: "address" },
1916
+ { name: "owner", type: "address" },
1917
+ { name: "validAfter", type: "uint256" },
1918
+ { name: "validBefore", type: "uint256" },
1919
+ { name: "nonce", type: "bytes32" },
1920
+ { name: "signature", type: "bytes" }
1921
+ ],
1922
+ outputs: [{ type: "uint256" }]
1923
+ },
1924
+ // v/r/s overload (0xb394c8a4)
1925
+ {
1926
+ name: "redeemWithAuthorization",
1927
+ type: "function",
1928
+ stateMutability: "nonpayable",
1929
+ inputs: [
1930
+ { name: "shares", type: "uint256" },
1931
+ { name: "receiver", type: "address" },
1932
+ { name: "owner", type: "address" },
1933
+ { name: "validAfter", type: "uint256" },
1934
+ { name: "validBefore", type: "uint256" },
1935
+ { name: "nonce", type: "bytes32" },
1936
+ { name: "v", type: "uint8" },
1937
+ { name: "r", type: "bytes32" },
1938
+ { name: "s", type: "bytes32" }
1939
+ ],
1940
+ outputs: [{ type: "uint256" }]
1941
+ },
1942
+ // bytes overload (0xcf092995)
1943
+ {
1944
+ name: "transferWithAuthorization",
1945
+ type: "function",
1946
+ stateMutability: "nonpayable",
1947
+ inputs: [
1948
+ { name: "from", type: "address" },
1949
+ { name: "to", type: "address" },
1950
+ { name: "value", type: "uint256" },
1951
+ { name: "validAfter", type: "uint256" },
1952
+ { name: "validBefore", type: "uint256" },
1953
+ { name: "nonce", type: "bytes32" },
1954
+ { name: "signature", type: "bytes" }
1955
+ ],
1956
+ outputs: []
1957
+ },
1958
+ // v/r/s overload (0xe3ee160e)
1959
+ {
1960
+ name: "transferWithAuthorization",
1961
+ type: "function",
1962
+ stateMutability: "nonpayable",
1963
+ inputs: [
1964
+ { name: "from", type: "address" },
1965
+ { name: "to", type: "address" },
1966
+ { name: "value", type: "uint256" },
1967
+ { name: "validAfter", type: "uint256" },
1968
+ { name: "validBefore", type: "uint256" },
1969
+ { name: "nonce", type: "bytes32" },
1970
+ { name: "v", type: "uint8" },
1971
+ { name: "r", type: "bytes32" },
1972
+ { name: "s", type: "bytes32" }
1973
+ ],
1974
+ outputs: []
1975
+ },
1976
+ // bytes overload (0x88b7ab63)
1977
+ {
1978
+ name: "receiveWithAuthorization",
1979
+ type: "function",
1980
+ stateMutability: "nonpayable",
1981
+ inputs: [
1982
+ { name: "from", type: "address" },
1983
+ { name: "to", type: "address" },
1984
+ { name: "value", type: "uint256" },
1985
+ { name: "validAfter", type: "uint256" },
1986
+ { name: "validBefore", type: "uint256" },
1987
+ { name: "nonce", type: "bytes32" },
1988
+ { name: "signature", type: "bytes" }
1989
+ ],
1990
+ outputs: []
1991
+ },
1992
+ // v/r/s overload (0xef55bec6)
1993
+ {
1994
+ name: "receiveWithAuthorization",
1995
+ type: "function",
1996
+ stateMutability: "nonpayable",
1997
+ inputs: [
1998
+ { name: "from", type: "address" },
1999
+ { name: "to", type: "address" },
2000
+ { name: "value", type: "uint256" },
2001
+ { name: "validAfter", type: "uint256" },
2002
+ { name: "validBefore", type: "uint256" },
2003
+ { name: "nonce", type: "bytes32" },
2004
+ { name: "v", type: "uint8" },
2005
+ { name: "r", type: "bytes32" },
2006
+ { name: "s", type: "bytes32" }
2007
+ ],
2008
+ outputs: []
2009
+ }
2010
+ ];
2011
+
2012
+ // src/abi/USDC_EIP3009_ABI.ts
2013
+ var USDC_EIP3009_ABI = [
2014
+ {
2015
+ name: "balanceOf",
2016
+ type: "function",
2017
+ stateMutability: "view",
2018
+ inputs: [{ name: "account", type: "address" }],
2019
+ outputs: [{ name: "", type: "uint256" }]
2020
+ },
2021
+ // bytes overload (0xcf092995)
2022
+ {
2023
+ name: "transferWithAuthorization",
2024
+ type: "function",
2025
+ stateMutability: "nonpayable",
2026
+ inputs: [
2027
+ { name: "from", type: "address" },
2028
+ { name: "to", type: "address" },
2029
+ { name: "value", type: "uint256" },
2030
+ { name: "validAfter", type: "uint256" },
2031
+ { name: "validBefore", type: "uint256" },
2032
+ { name: "nonce", type: "bytes32" },
2033
+ { name: "signature", type: "bytes" }
2034
+ ],
2035
+ outputs: []
2036
+ },
2037
+ // v/r/s overload (0xe3ee160e)
2038
+ {
2039
+ name: "transferWithAuthorization",
2040
+ type: "function",
2041
+ stateMutability: "nonpayable",
2042
+ inputs: [
2043
+ { name: "from", type: "address" },
2044
+ { name: "to", type: "address" },
2045
+ { name: "value", type: "uint256" },
2046
+ { name: "validAfter", type: "uint256" },
2047
+ { name: "validBefore", type: "uint256" },
2048
+ { name: "nonce", type: "bytes32" },
2049
+ { name: "v", type: "uint8" },
2050
+ { name: "r", type: "bytes32" },
2051
+ { name: "s", type: "bytes32" }
2052
+ ],
2053
+ outputs: []
2054
+ },
2055
+ // bytes overload (0x88b7ab63)
2056
+ {
2057
+ name: "receiveWithAuthorization",
2058
+ type: "function",
2059
+ stateMutability: "nonpayable",
2060
+ inputs: [
2061
+ { name: "from", type: "address" },
2062
+ { name: "to", type: "address" },
2063
+ { name: "value", type: "uint256" },
2064
+ { name: "validAfter", type: "uint256" },
2065
+ { name: "validBefore", type: "uint256" },
2066
+ { name: "nonce", type: "bytes32" },
2067
+ { name: "signature", type: "bytes" }
2068
+ ],
2069
+ outputs: []
2070
+ }
2071
+ ];
2072
+
2073
+ // src/abi/USDP_EIP3009_ABI.ts
2074
+ var USDP_EIP3009_ABI = [
2075
+ {
2076
+ name: "allowance",
2077
+ type: "function",
2078
+ stateMutability: "view",
2079
+ inputs: [
2080
+ { name: "owner", type: "address" },
2081
+ { name: "spender", type: "address" }
2082
+ ],
2083
+ outputs: [{ name: "", type: "uint256" }]
2084
+ },
2085
+ {
2086
+ name: "approve",
2087
+ type: "function",
2088
+ stateMutability: "nonpayable",
2089
+ inputs: [
2090
+ { name: "spender", type: "address" },
2091
+ { name: "value", type: "uint256" }
2092
+ ],
2093
+ outputs: [{ name: "", type: "bool" }]
2094
+ },
2095
+ {
2096
+ name: "transferWithAuthorization",
2097
+ type: "function",
2098
+ stateMutability: "nonpayable",
2099
+ inputs: [
2100
+ { name: "from", type: "address" },
2101
+ { name: "to", type: "address" },
2102
+ { name: "value", type: "uint256" },
2103
+ { name: "validAfter", type: "uint256" },
2104
+ { name: "validBefore", type: "uint256" },
2105
+ { name: "nonce", type: "bytes32" },
2106
+ { name: "signature", type: "bytes" }
2107
+ ],
2108
+ outputs: []
2109
+ }
2110
+ ];
2111
+
2112
+ exports.BRIDGEABLE_TOKEN_ABI = BRIDGEABLE_TOKEN_ABI;
2113
+ exports.ERC20_ABI = ERC20_ABI;
2114
+ exports.MULTICALL3_ABI = MULTICALL3_ABI;
2115
+ exports.PARALLELIZER_ABI = PARALLELIZER_ABI;
2116
+ exports.PRL_ABI = PRL_ABI;
2117
+ exports.REWARD_MERKLE_DISTRIBUTOR_ABI = REWARD_MERKLE_DISTRIBUTOR_ABI;
2118
+ exports.SPRL1_ABI = SPRL1_ABI;
2119
+ exports.SPRL2_ABI = SPRL2_ABI;
2120
+ exports.SUSDP_ABI = SUSDP_ABI;
2121
+ exports.USDC_EIP3009_ABI = USDC_EIP3009_ABI;
2122
+ exports.USDP_EIP3009_ABI = USDP_EIP3009_ABI;