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