@rhinestone/shared-configs 1.4.63 → 1.4.64

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.
Files changed (48) hide show
  1. package/dist/configs/chains.json +598 -0
  2. package/dist/configs/mainnets.json +56 -0
  3. package/dist/configs/oft.json +31 -0
  4. package/dist/configs/providers.json +69 -0
  5. package/dist/configs/testnets.json +27 -0
  6. package/dist/scripts/generate-abis.d.ts +2 -0
  7. package/dist/scripts/generate-abis.d.ts.map +1 -0
  8. package/dist/scripts/generate-abis.js +150 -0
  9. package/dist/scripts/generate.d.ts +2 -0
  10. package/dist/scripts/generate.d.ts.map +1 -0
  11. package/dist/scripts/generate.js +371 -0
  12. package/dist/src/abis/index.d.ts +3 -0
  13. package/dist/src/abis/index.d.ts.map +1 -0
  14. package/dist/src/abis/index.js +28 -0
  15. package/dist/src/abis/optimized.d.ts +334 -0
  16. package/dist/src/abis/optimized.d.ts.map +1 -0
  17. package/dist/src/abis/optimized.js +384 -0
  18. package/dist/src/abis/orchestrator.d.ts +4590 -0
  19. package/dist/src/abis/orchestrator.d.ts.map +1 -0
  20. package/dist/src/abis/orchestrator.js +5978 -0
  21. package/dist/src/abis/relayer.d.ts +1163 -0
  22. package/dist/src/abis/relayer.d.ts.map +1 -0
  23. package/dist/src/abis/relayer.js +1522 -0
  24. package/dist/src/chains.d.ts +28 -0
  25. package/dist/src/chains.d.ts.map +1 -0
  26. package/dist/src/chains.js +653 -0
  27. package/dist/src/generated/abis.d.ts +4 -0
  28. package/dist/src/generated/abis.d.ts.map +1 -0
  29. package/dist/src/generated/abis.js +6 -0
  30. package/dist/src/generated/contracts.d.ts +6 -0
  31. package/dist/src/generated/contracts.d.ts.map +1 -0
  32. package/dist/src/generated/contracts.dev.d.ts +6 -0
  33. package/dist/src/generated/contracts.dev.d.ts.map +1 -0
  34. package/dist/src/generated/contracts.dev.js +5 -0
  35. package/dist/src/generated/contracts.js +5 -0
  36. package/dist/src/generated/networks.d.ts +3736 -0
  37. package/dist/src/generated/networks.d.ts.map +1 -0
  38. package/dist/src/generated/networks.js +39 -0
  39. package/dist/src/index.d.ts +14 -0
  40. package/dist/src/index.d.ts.map +1 -0
  41. package/dist/src/index.js +52 -0
  42. package/dist/src/oft.d.ts +20 -0
  43. package/dist/src/oft.d.ts.map +1 -0
  44. package/dist/src/oft.js +38 -0
  45. package/dist/src/types.d.ts +48 -0
  46. package/dist/src/types.d.ts.map +1 -0
  47. package/dist/src/types.js +10 -0
  48. package/package.json +1 -1
@@ -0,0 +1,1522 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.directRouteAbi = exports.multiCallAbi = exports.singleCallAbi = exports.wethAbi = exports.relayerPotV1Abi = void 0;
4
+ exports.relayerPotV1Abi = [
5
+ {
6
+ type: 'constructor',
7
+ inputs: [
8
+ {
9
+ name: '_router',
10
+ type: 'address',
11
+ internalType: 'address'
12
+ },
13
+ {
14
+ name: '_owner',
15
+ type: 'address',
16
+ internalType: 'address'
17
+ }
18
+ ],
19
+ stateMutability: 'nonpayable'
20
+ },
21
+ {
22
+ type: 'receive',
23
+ stateMutability: 'payable'
24
+ },
25
+ {
26
+ type: 'function',
27
+ name: 'RHINESTONE_ROUTER',
28
+ inputs: [],
29
+ outputs: [
30
+ {
31
+ name: '',
32
+ type: 'address',
33
+ internalType: 'address'
34
+ }
35
+ ],
36
+ stateMutability: 'view'
37
+ },
38
+ {
39
+ type: 'function',
40
+ name: 'cancelOwnershipHandover',
41
+ inputs: [],
42
+ outputs: [],
43
+ stateMutability: 'payable'
44
+ },
45
+ {
46
+ type: 'function',
47
+ name: 'completeOwnershipHandover',
48
+ inputs: [
49
+ {
50
+ name: 'pendingOwner',
51
+ type: 'address',
52
+ internalType: 'address'
53
+ }
54
+ ],
55
+ outputs: [],
56
+ stateMutability: 'payable'
57
+ },
58
+ {
59
+ type: 'function',
60
+ name: 'isRelayer',
61
+ inputs: [
62
+ {
63
+ name: 'relayer',
64
+ type: 'address',
65
+ internalType: 'address'
66
+ }
67
+ ],
68
+ outputs: [
69
+ {
70
+ name: 'isTrusted',
71
+ type: 'bool',
72
+ internalType: 'bool'
73
+ }
74
+ ],
75
+ stateMutability: 'view'
76
+ },
77
+ {
78
+ type: 'function',
79
+ name: 'multicall',
80
+ inputs: [
81
+ {
82
+ name: 'calls',
83
+ type: 'tuple[]',
84
+ internalType: 'struct Execution[]',
85
+ components: [
86
+ {
87
+ name: 'target',
88
+ type: 'address',
89
+ internalType: 'address'
90
+ },
91
+ {
92
+ name: 'value',
93
+ type: 'uint256',
94
+ internalType: 'uint256'
95
+ },
96
+ {
97
+ name: 'callData',
98
+ type: 'bytes',
99
+ internalType: 'bytes'
100
+ }
101
+ ]
102
+ }
103
+ ],
104
+ outputs: [],
105
+ stateMutability: 'payable'
106
+ },
107
+ {
108
+ type: 'function',
109
+ name: 'owner',
110
+ inputs: [],
111
+ outputs: [
112
+ {
113
+ name: 'result',
114
+ type: 'address',
115
+ internalType: 'address'
116
+ }
117
+ ],
118
+ stateMutability: 'view'
119
+ },
120
+ {
121
+ type: 'function',
122
+ name: 'ownershipHandoverExpiresAt',
123
+ inputs: [
124
+ {
125
+ name: 'pendingOwner',
126
+ type: 'address',
127
+ internalType: 'address'
128
+ }
129
+ ],
130
+ outputs: [
131
+ {
132
+ name: 'result',
133
+ type: 'uint256',
134
+ internalType: 'uint256'
135
+ }
136
+ ],
137
+ stateMutability: 'view'
138
+ },
139
+ {
140
+ type: 'function',
141
+ name: 'relayERC202076776083',
142
+ inputs: [],
143
+ outputs: [],
144
+ stateMutability: 'payable'
145
+ },
146
+ {
147
+ type: 'function',
148
+ name: 'relayETH7172445',
149
+ inputs: [],
150
+ outputs: [],
151
+ stateMutability: 'payable'
152
+ },
153
+ {
154
+ type: 'function',
155
+ name: 'renounceOwnership',
156
+ inputs: [],
157
+ outputs: [],
158
+ stateMutability: 'payable'
159
+ },
160
+ {
161
+ type: 'function',
162
+ name: 'requestOwnershipHandover',
163
+ inputs: [],
164
+ outputs: [],
165
+ stateMutability: 'payable'
166
+ },
167
+ {
168
+ type: 'function',
169
+ name: 'setApprovals',
170
+ inputs: [
171
+ {
172
+ name: 'tokenAmounts',
173
+ type: 'tuple[]',
174
+ internalType: 'struct TokenAmount[]',
175
+ components: [
176
+ {
177
+ name: 'token',
178
+ type: 'address',
179
+ internalType: 'address'
180
+ },
181
+ {
182
+ name: 'amount',
183
+ type: 'uint256',
184
+ internalType: 'uint256'
185
+ }
186
+ ]
187
+ }
188
+ ],
189
+ outputs: [],
190
+ stateMutability: 'nonpayable'
191
+ },
192
+ {
193
+ type: 'function',
194
+ name: 'setRelayer',
195
+ inputs: [
196
+ {
197
+ name: 'relayer',
198
+ type: 'address',
199
+ internalType: 'address'
200
+ },
201
+ {
202
+ name: 'isTrusted',
203
+ type: 'bool',
204
+ internalType: 'bool'
205
+ }
206
+ ],
207
+ outputs: [],
208
+ stateMutability: 'nonpayable'
209
+ },
210
+ {
211
+ type: 'function',
212
+ name: 'transferOwnership',
213
+ inputs: [
214
+ {
215
+ name: 'newOwner',
216
+ type: 'address',
217
+ internalType: 'address'
218
+ }
219
+ ],
220
+ outputs: [],
221
+ stateMutability: 'payable'
222
+ },
223
+ {
224
+ type: 'function',
225
+ name: 'unwrapWETH',
226
+ inputs: [
227
+ {
228
+ name: 'WETH',
229
+ type: 'address',
230
+ internalType: 'address'
231
+ },
232
+ {
233
+ name: 'amount',
234
+ type: 'uint256',
235
+ internalType: 'uint256'
236
+ }
237
+ ],
238
+ outputs: [],
239
+ stateMutability: 'nonpayable'
240
+ },
241
+ {
242
+ type: 'function',
243
+ name: 'withdraw',
244
+ inputs: [
245
+ {
246
+ name: 'recipient',
247
+ type: 'address',
248
+ internalType: 'address'
249
+ },
250
+ {
251
+ name: 'tokenAmount',
252
+ type: 'tuple[]',
253
+ internalType: 'struct TokenAmount[]',
254
+ components: [
255
+ {
256
+ name: 'token',
257
+ type: 'address',
258
+ internalType: 'address'
259
+ },
260
+ {
261
+ name: 'amount',
262
+ type: 'uint256',
263
+ internalType: 'uint256'
264
+ }
265
+ ]
266
+ }
267
+ ],
268
+ outputs: [],
269
+ stateMutability: 'nonpayable'
270
+ },
271
+ {
272
+ type: 'function',
273
+ name: 'withdraw',
274
+ inputs: [
275
+ {
276
+ name: 'tokenAmount',
277
+ type: 'tuple[]',
278
+ internalType: 'struct TokenAmount[]',
279
+ components: [
280
+ {
281
+ name: 'token',
282
+ type: 'address',
283
+ internalType: 'address'
284
+ },
285
+ {
286
+ name: 'amount',
287
+ type: 'uint256',
288
+ internalType: 'uint256'
289
+ }
290
+ ]
291
+ }
292
+ ],
293
+ outputs: [],
294
+ stateMutability: 'nonpayable'
295
+ },
296
+ {
297
+ type: 'function',
298
+ name: 'wrapWETH',
299
+ inputs: [
300
+ {
301
+ name: 'WETH',
302
+ type: 'address',
303
+ internalType: 'address'
304
+ },
305
+ {
306
+ name: 'amount',
307
+ type: 'uint256',
308
+ internalType: 'uint256'
309
+ }
310
+ ],
311
+ outputs: [],
312
+ stateMutability: 'nonpayable'
313
+ },
314
+ {
315
+ type: 'event',
316
+ name: 'Approved',
317
+ inputs: [
318
+ {
319
+ name: 'token',
320
+ type: 'address',
321
+ indexed: true,
322
+ internalType: 'address'
323
+ },
324
+ {
325
+ name: 'amount',
326
+ type: 'uint256',
327
+ indexed: false,
328
+ internalType: 'uint256'
329
+ },
330
+ {
331
+ name: 'router',
332
+ type: 'address',
333
+ indexed: false,
334
+ internalType: 'address'
335
+ }
336
+ ],
337
+ anonymous: false
338
+ },
339
+ {
340
+ type: 'event',
341
+ name: 'OwnershipHandoverCanceled',
342
+ inputs: [
343
+ {
344
+ name: 'pendingOwner',
345
+ type: 'address',
346
+ indexed: true,
347
+ internalType: 'address'
348
+ }
349
+ ],
350
+ anonymous: false
351
+ },
352
+ {
353
+ type: 'event',
354
+ name: 'OwnershipHandoverRequested',
355
+ inputs: [
356
+ {
357
+ name: 'pendingOwner',
358
+ type: 'address',
359
+ indexed: true,
360
+ internalType: 'address'
361
+ }
362
+ ],
363
+ anonymous: false
364
+ },
365
+ {
366
+ type: 'event',
367
+ name: 'OwnershipTransferred',
368
+ inputs: [
369
+ {
370
+ name: 'oldOwner',
371
+ type: 'address',
372
+ indexed: true,
373
+ internalType: 'address'
374
+ },
375
+ {
376
+ name: 'newOwner',
377
+ type: 'address',
378
+ indexed: true,
379
+ internalType: 'address'
380
+ }
381
+ ],
382
+ anonymous: false
383
+ },
384
+ {
385
+ type: 'event',
386
+ name: 'RelayerSet',
387
+ inputs: [
388
+ {
389
+ name: 'relayer',
390
+ type: 'address',
391
+ indexed: true,
392
+ internalType: 'address'
393
+ },
394
+ {
395
+ name: 'isTrusted',
396
+ type: 'bool',
397
+ indexed: false,
398
+ internalType: 'bool'
399
+ }
400
+ ],
401
+ anonymous: false
402
+ },
403
+ {
404
+ type: 'event',
405
+ name: 'Withdrawn',
406
+ inputs: [
407
+ {
408
+ name: 'token',
409
+ type: 'address',
410
+ indexed: true,
411
+ internalType: 'address'
412
+ },
413
+ {
414
+ name: 'amount',
415
+ type: 'uint256',
416
+ indexed: false,
417
+ internalType: 'uint256'
418
+ }
419
+ ],
420
+ anonymous: false
421
+ },
422
+ {
423
+ type: 'error',
424
+ name: 'AlreadyInitialized',
425
+ inputs: []
426
+ },
427
+ {
428
+ type: 'error',
429
+ name: 'InvalidConstructorArg',
430
+ inputs: []
431
+ },
432
+ {
433
+ type: 'error',
434
+ name: 'InvalidRecipient',
435
+ inputs: []
436
+ },
437
+ {
438
+ type: 'error',
439
+ name: 'InvalidRelayerAddress',
440
+ inputs: []
441
+ },
442
+ {
443
+ type: 'error',
444
+ name: 'NewOwnerIsZeroAddress',
445
+ inputs: []
446
+ },
447
+ {
448
+ type: 'error',
449
+ name: 'NoHandoverRequest',
450
+ inputs: []
451
+ },
452
+ {
453
+ type: 'error',
454
+ name: 'RelayerNotTrusted',
455
+ inputs: []
456
+ },
457
+ {
458
+ type: 'error',
459
+ name: 'Unauthorized',
460
+ inputs: []
461
+ }
462
+ ];
463
+ exports.wethAbi = [
464
+ {
465
+ constant: true,
466
+ inputs: [],
467
+ name: 'name',
468
+ outputs: [
469
+ {
470
+ name: '',
471
+ type: 'string'
472
+ }
473
+ ],
474
+ payable: false,
475
+ stateMutability: 'view',
476
+ type: 'function'
477
+ },
478
+ {
479
+ constant: false,
480
+ inputs: [
481
+ {
482
+ name: 'guy',
483
+ type: 'address'
484
+ },
485
+ {
486
+ name: 'wad',
487
+ type: 'uint256'
488
+ }
489
+ ],
490
+ name: 'approve',
491
+ outputs: [
492
+ {
493
+ name: '',
494
+ type: 'bool'
495
+ }
496
+ ],
497
+ payable: false,
498
+ stateMutability: 'nonpayable',
499
+ type: 'function'
500
+ },
501
+ {
502
+ constant: true,
503
+ inputs: [],
504
+ name: 'totalSupply',
505
+ outputs: [
506
+ {
507
+ name: '',
508
+ type: 'uint256'
509
+ }
510
+ ],
511
+ payable: false,
512
+ stateMutability: 'view',
513
+ type: 'function'
514
+ },
515
+ {
516
+ constant: false,
517
+ inputs: [
518
+ {
519
+ name: 'src',
520
+ type: 'address'
521
+ },
522
+ {
523
+ name: 'dst',
524
+ type: 'address'
525
+ },
526
+ {
527
+ name: 'wad',
528
+ type: 'uint256'
529
+ }
530
+ ],
531
+ name: 'transferFrom',
532
+ outputs: [
533
+ {
534
+ name: '',
535
+ type: 'bool'
536
+ }
537
+ ],
538
+ payable: false,
539
+ stateMutability: 'nonpayable',
540
+ type: 'function'
541
+ },
542
+ {
543
+ constant: false,
544
+ inputs: [
545
+ {
546
+ name: 'wad',
547
+ type: 'uint256'
548
+ }
549
+ ],
550
+ name: 'withdraw',
551
+ outputs: [],
552
+ payable: false,
553
+ stateMutability: 'nonpayable',
554
+ type: 'function'
555
+ },
556
+ {
557
+ constant: true,
558
+ inputs: [],
559
+ name: 'decimals',
560
+ outputs: [
561
+ {
562
+ name: '',
563
+ type: 'uint8'
564
+ }
565
+ ],
566
+ payable: false,
567
+ stateMutability: 'view',
568
+ type: 'function'
569
+ },
570
+ {
571
+ constant: true,
572
+ inputs: [
573
+ {
574
+ name: '',
575
+ type: 'address'
576
+ }
577
+ ],
578
+ name: 'balanceOf',
579
+ outputs: [
580
+ {
581
+ name: '',
582
+ type: 'uint256'
583
+ }
584
+ ],
585
+ payable: false,
586
+ stateMutability: 'view',
587
+ type: 'function'
588
+ },
589
+ {
590
+ constant: true,
591
+ inputs: [],
592
+ name: 'symbol',
593
+ outputs: [
594
+ {
595
+ name: '',
596
+ type: 'string'
597
+ }
598
+ ],
599
+ payable: false,
600
+ stateMutability: 'view',
601
+ type: 'function'
602
+ },
603
+ {
604
+ constant: false,
605
+ inputs: [
606
+ {
607
+ name: 'dst',
608
+ type: 'address'
609
+ },
610
+ {
611
+ name: 'wad',
612
+ type: 'uint256'
613
+ }
614
+ ],
615
+ name: 'transfer',
616
+ outputs: [
617
+ {
618
+ name: '',
619
+ type: 'bool'
620
+ }
621
+ ],
622
+ payable: false,
623
+ stateMutability: 'nonpayable',
624
+ type: 'function'
625
+ },
626
+ {
627
+ constant: false,
628
+ inputs: [],
629
+ name: 'deposit',
630
+ outputs: [],
631
+ payable: true,
632
+ stateMutability: 'payable',
633
+ type: 'function'
634
+ },
635
+ {
636
+ constant: true,
637
+ inputs: [
638
+ {
639
+ name: '',
640
+ type: 'address'
641
+ },
642
+ {
643
+ name: '',
644
+ type: 'address'
645
+ }
646
+ ],
647
+ name: 'allowance',
648
+ outputs: [
649
+ {
650
+ name: '',
651
+ type: 'uint256'
652
+ }
653
+ ],
654
+ payable: false,
655
+ stateMutability: 'view',
656
+ type: 'function'
657
+ },
658
+ {
659
+ payable: true,
660
+ stateMutability: 'payable',
661
+ type: 'fallback'
662
+ },
663
+ {
664
+ anonymous: false,
665
+ inputs: [
666
+ {
667
+ indexed: true,
668
+ name: 'src',
669
+ type: 'address'
670
+ },
671
+ {
672
+ indexed: true,
673
+ name: 'guy',
674
+ type: 'address'
675
+ },
676
+ {
677
+ indexed: false,
678
+ name: 'wad',
679
+ type: 'uint256'
680
+ }
681
+ ],
682
+ name: 'Approval',
683
+ type: 'event'
684
+ },
685
+ {
686
+ anonymous: false,
687
+ inputs: [
688
+ {
689
+ indexed: true,
690
+ name: 'src',
691
+ type: 'address'
692
+ },
693
+ {
694
+ indexed: true,
695
+ name: 'dst',
696
+ type: 'address'
697
+ },
698
+ {
699
+ indexed: false,
700
+ name: 'wad',
701
+ type: 'uint256'
702
+ }
703
+ ],
704
+ name: 'Transfer',
705
+ type: 'event'
706
+ },
707
+ {
708
+ anonymous: false,
709
+ inputs: [
710
+ {
711
+ indexed: true,
712
+ name: 'dst',
713
+ type: 'address'
714
+ },
715
+ {
716
+ indexed: false,
717
+ name: 'wad',
718
+ type: 'uint256'
719
+ }
720
+ ],
721
+ name: 'Deposit',
722
+ type: 'event'
723
+ },
724
+ {
725
+ anonymous: false,
726
+ inputs: [
727
+ {
728
+ indexed: true,
729
+ name: 'src',
730
+ type: 'address'
731
+ },
732
+ {
733
+ indexed: false,
734
+ name: 'wad',
735
+ type: 'uint256'
736
+ }
737
+ ],
738
+ name: 'Withdrawal',
739
+ type: 'event'
740
+ }
741
+ ];
742
+ exports.singleCallAbi = [
743
+ {
744
+ type: 'fallback',
745
+ stateMutability: 'payable'
746
+ },
747
+ {
748
+ type: 'receive',
749
+ stateMutability: 'payable'
750
+ },
751
+ {
752
+ type: 'function',
753
+ name: 'isContractDeployed',
754
+ inputs: [
755
+ {
756
+ name: 'addr',
757
+ type: 'address',
758
+ internalType: 'address'
759
+ }
760
+ ],
761
+ outputs: [
762
+ {
763
+ name: '',
764
+ type: 'bool',
765
+ internalType: 'bool'
766
+ }
767
+ ],
768
+ stateMutability: 'view'
769
+ },
770
+ {
771
+ type: 'function',
772
+ name: 'multiCall',
773
+ inputs: [
774
+ {
775
+ name: 'executions',
776
+ type: 'tuple[]',
777
+ internalType: 'struct Execution[]',
778
+ components: [
779
+ {
780
+ name: 'target',
781
+ type: 'address',
782
+ internalType: 'address'
783
+ },
784
+ {
785
+ name: 'value',
786
+ type: 'uint256',
787
+ internalType: 'uint256'
788
+ },
789
+ {
790
+ name: 'callData',
791
+ type: 'bytes',
792
+ internalType: 'bytes'
793
+ }
794
+ ]
795
+ }
796
+ ],
797
+ outputs: [],
798
+ stateMutability: 'payable'
799
+ },
800
+ {
801
+ type: 'function',
802
+ name: 'multiCallWithDrainToken',
803
+ inputs: [
804
+ {
805
+ name: 'executions',
806
+ type: 'tuple[]',
807
+ internalType: 'struct Execution[]',
808
+ components: [
809
+ {
810
+ name: 'target',
811
+ type: 'address',
812
+ internalType: 'address'
813
+ },
814
+ {
815
+ name: 'value',
816
+ type: 'uint256',
817
+ internalType: 'uint256'
818
+ },
819
+ {
820
+ name: 'callData',
821
+ type: 'bytes',
822
+ internalType: 'bytes'
823
+ }
824
+ ]
825
+ },
826
+ {
827
+ name: 'tokenAndAmounts',
828
+ type: 'uint256[2][]',
829
+ internalType: 'uint256[2][]'
830
+ },
831
+ {
832
+ name: 'recipient',
833
+ type: 'address',
834
+ internalType: 'address'
835
+ }
836
+ ],
837
+ outputs: [],
838
+ stateMutability: 'payable'
839
+ },
840
+ {
841
+ type: 'function',
842
+ name: 'singleCall',
843
+ inputs: [
844
+ {
845
+ name: '',
846
+ type: 'address',
847
+ internalType: 'address'
848
+ },
849
+ {
850
+ name: '',
851
+ type: 'bytes',
852
+ internalType: 'bytes'
853
+ }
854
+ ],
855
+ outputs: [],
856
+ stateMutability: 'pure'
857
+ },
858
+ {
859
+ type: 'function',
860
+ name: 'supportsInterface',
861
+ inputs: [
862
+ {
863
+ name: 'selector',
864
+ type: 'bytes4',
865
+ internalType: 'bytes4'
866
+ }
867
+ ],
868
+ outputs: [
869
+ {
870
+ name: '',
871
+ type: 'bool',
872
+ internalType: 'bool'
873
+ }
874
+ ],
875
+ stateMutability: 'pure'
876
+ },
877
+ {
878
+ type: 'error',
879
+ name: 'ExecutionFailed',
880
+ inputs: []
881
+ },
882
+ {
883
+ type: 'error',
884
+ name: 'Unauthorized',
885
+ inputs: []
886
+ },
887
+ {
888
+ type: 'error',
889
+ name: 'UseFallbackInstead',
890
+ inputs: []
891
+ },
892
+ {
893
+ type: 'error',
894
+ name: 'WithdrawFailed',
895
+ inputs: []
896
+ }
897
+ ];
898
+ exports.multiCallAbi = [
899
+ {
900
+ type: 'constructor',
901
+ inputs: [
902
+ {
903
+ name: 'router',
904
+ type: 'address',
905
+ internalType: 'address'
906
+ }
907
+ ],
908
+ stateMutability: 'nonpayable'
909
+ },
910
+ {
911
+ type: 'fallback',
912
+ stateMutability: 'payable'
913
+ },
914
+ {
915
+ type: 'receive',
916
+ stateMutability: 'payable'
917
+ },
918
+ {
919
+ type: 'function',
920
+ name: 'ADAPTER_TAG',
921
+ inputs: [],
922
+ outputs: [
923
+ {
924
+ name: 'adapterTag',
925
+ type: 'bytes12',
926
+ internalType: 'bytes12'
927
+ }
928
+ ],
929
+ stateMutability: 'pure'
930
+ },
931
+ {
932
+ type: 'function',
933
+ name: 'ARBITER',
934
+ inputs: [],
935
+ outputs: [
936
+ {
937
+ name: '',
938
+ type: 'address',
939
+ internalType: 'address'
940
+ }
941
+ ],
942
+ stateMutability: 'view'
943
+ },
944
+ {
945
+ type: 'function',
946
+ name: '_ROUTER',
947
+ inputs: [],
948
+ outputs: [
949
+ {
950
+ name: '',
951
+ type: 'address',
952
+ internalType: 'address'
953
+ }
954
+ ],
955
+ stateMutability: 'view'
956
+ },
957
+ {
958
+ type: 'function',
959
+ name: '__encodeRelayerData',
960
+ inputs: [
961
+ {
962
+ name: 'tokenInRecipient',
963
+ type: 'address',
964
+ internalType: 'address'
965
+ }
966
+ ],
967
+ outputs: [
968
+ {
969
+ name: '',
970
+ type: 'bytes',
971
+ internalType: 'bytes'
972
+ }
973
+ ],
974
+ stateMutability: 'pure'
975
+ },
976
+ {
977
+ type: 'function',
978
+ name: 'isContractDeployed',
979
+ inputs: [
980
+ {
981
+ name: 'addr',
982
+ type: 'address',
983
+ internalType: 'address'
984
+ }
985
+ ],
986
+ outputs: [
987
+ {
988
+ name: '',
989
+ type: 'bool',
990
+ internalType: 'bool'
991
+ }
992
+ ],
993
+ stateMutability: 'view'
994
+ },
995
+ {
996
+ type: 'function',
997
+ name: 'multiCall',
998
+ inputs: [
999
+ {
1000
+ name: 'executions',
1001
+ type: 'tuple[]',
1002
+ internalType: 'struct Execution[]',
1003
+ components: [
1004
+ {
1005
+ name: 'target',
1006
+ type: 'address',
1007
+ internalType: 'address'
1008
+ },
1009
+ {
1010
+ name: 'value',
1011
+ type: 'uint256',
1012
+ internalType: 'uint256'
1013
+ },
1014
+ {
1015
+ name: 'callData',
1016
+ type: 'bytes',
1017
+ internalType: 'bytes'
1018
+ }
1019
+ ]
1020
+ }
1021
+ ],
1022
+ outputs: [],
1023
+ stateMutability: 'payable'
1024
+ },
1025
+ {
1026
+ type: 'function',
1027
+ name: 'multiCallWithDrainToken',
1028
+ inputs: [
1029
+ {
1030
+ name: 'executions',
1031
+ type: 'tuple[]',
1032
+ internalType: 'struct Execution[]',
1033
+ components: [
1034
+ {
1035
+ name: 'target',
1036
+ type: 'address',
1037
+ internalType: 'address'
1038
+ },
1039
+ {
1040
+ name: 'value',
1041
+ type: 'uint256',
1042
+ internalType: 'uint256'
1043
+ },
1044
+ {
1045
+ name: 'callData',
1046
+ type: 'bytes',
1047
+ internalType: 'bytes'
1048
+ }
1049
+ ]
1050
+ },
1051
+ {
1052
+ name: 'tokenAndAmounts',
1053
+ type: 'uint256[2][]',
1054
+ internalType: 'uint256[2][]'
1055
+ },
1056
+ {
1057
+ name: 'recipient',
1058
+ type: 'address',
1059
+ internalType: 'address'
1060
+ }
1061
+ ],
1062
+ outputs: [],
1063
+ stateMutability: 'payable'
1064
+ },
1065
+ {
1066
+ type: 'function',
1067
+ name: 'multicall_handleFill',
1068
+ inputs: [
1069
+ {
1070
+ name: 'fillData',
1071
+ type: 'tuple',
1072
+ internalType: 'struct MultiCallAdapter.FillData',
1073
+ components: [
1074
+ {
1075
+ name: 'tokenIn',
1076
+ type: 'uint256[2][]',
1077
+ internalType: 'uint256[2][]'
1078
+ },
1079
+ {
1080
+ name: 'tokenOut',
1081
+ type: 'uint256[2][]',
1082
+ internalType: 'uint256[2][]'
1083
+ },
1084
+ {
1085
+ name: 'multicalls',
1086
+ type: 'tuple[]',
1087
+ internalType: 'struct Execution[]',
1088
+ components: [
1089
+ {
1090
+ name: 'target',
1091
+ type: 'address',
1092
+ internalType: 'address'
1093
+ },
1094
+ {
1095
+ name: 'value',
1096
+ type: 'uint256',
1097
+ internalType: 'uint256'
1098
+ },
1099
+ {
1100
+ name: 'callData',
1101
+ type: 'bytes',
1102
+ internalType: 'bytes'
1103
+ }
1104
+ ]
1105
+ },
1106
+ {
1107
+ name: 'account',
1108
+ type: 'address',
1109
+ internalType: 'address'
1110
+ },
1111
+ {
1112
+ name: 'value',
1113
+ type: 'uint256',
1114
+ internalType: 'uint256'
1115
+ }
1116
+ ]
1117
+ }
1118
+ ],
1119
+ outputs: [
1120
+ {
1121
+ name: '',
1122
+ type: 'bytes4',
1123
+ internalType: 'bytes4'
1124
+ }
1125
+ ],
1126
+ stateMutability: 'payable'
1127
+ },
1128
+ {
1129
+ type: 'function',
1130
+ name: 'multicall_handleJITClaim',
1131
+ inputs: [
1132
+ {
1133
+ name: 'jitClaimData',
1134
+ type: 'tuple',
1135
+ internalType: 'struct MultiCallAdapter.JITClaimData',
1136
+ components: [
1137
+ {
1138
+ name: 'tokenIn',
1139
+ type: 'uint256[2][]',
1140
+ internalType: 'uint256[2][]'
1141
+ },
1142
+ {
1143
+ name: 'multicalls',
1144
+ type: 'tuple[]',
1145
+ internalType: 'struct Execution[]',
1146
+ components: [
1147
+ {
1148
+ name: 'target',
1149
+ type: 'address',
1150
+ internalType: 'address'
1151
+ },
1152
+ {
1153
+ name: 'value',
1154
+ type: 'uint256',
1155
+ internalType: 'uint256'
1156
+ },
1157
+ {
1158
+ name: 'callData',
1159
+ type: 'bytes',
1160
+ internalType: 'bytes'
1161
+ }
1162
+ ]
1163
+ }
1164
+ ]
1165
+ }
1166
+ ],
1167
+ outputs: [
1168
+ {
1169
+ name: '',
1170
+ type: 'bytes4',
1171
+ internalType: 'bytes4'
1172
+ }
1173
+ ],
1174
+ stateMutability: 'nonpayable'
1175
+ },
1176
+ {
1177
+ type: 'function',
1178
+ name: 'multicall_handlePayable',
1179
+ inputs: [
1180
+ {
1181
+ name: 'value',
1182
+ type: 'uint256',
1183
+ internalType: 'uint256'
1184
+ },
1185
+ {
1186
+ name: 'executions',
1187
+ type: 'tuple[]',
1188
+ internalType: 'struct Execution[]',
1189
+ components: [
1190
+ {
1191
+ name: 'target',
1192
+ type: 'address',
1193
+ internalType: 'address'
1194
+ },
1195
+ {
1196
+ name: 'value',
1197
+ type: 'uint256',
1198
+ internalType: 'uint256'
1199
+ },
1200
+ {
1201
+ name: 'callData',
1202
+ type: 'bytes',
1203
+ internalType: 'bytes'
1204
+ }
1205
+ ]
1206
+ }
1207
+ ],
1208
+ outputs: [
1209
+ {
1210
+ name: '',
1211
+ type: 'bytes4',
1212
+ internalType: 'bytes4'
1213
+ }
1214
+ ],
1215
+ stateMutability: 'payable'
1216
+ },
1217
+ {
1218
+ type: 'function',
1219
+ name: 'semVer',
1220
+ inputs: [],
1221
+ outputs: [
1222
+ {
1223
+ name: 'packedVersion',
1224
+ type: 'bytes6',
1225
+ internalType: 'bytes6'
1226
+ }
1227
+ ],
1228
+ stateMutability: 'view'
1229
+ },
1230
+ {
1231
+ type: 'function',
1232
+ name: 'semVerUnpacked',
1233
+ inputs: [],
1234
+ outputs: [
1235
+ {
1236
+ name: 'major',
1237
+ type: 'uint256',
1238
+ internalType: 'uint256'
1239
+ },
1240
+ {
1241
+ name: 'minor',
1242
+ type: 'uint256',
1243
+ internalType: 'uint256'
1244
+ },
1245
+ {
1246
+ name: 'patch',
1247
+ type: 'uint256',
1248
+ internalType: 'uint256'
1249
+ }
1250
+ ],
1251
+ stateMutability: 'view'
1252
+ },
1253
+ {
1254
+ type: 'function',
1255
+ name: 'settlementLayerSpender',
1256
+ inputs: [],
1257
+ outputs: [
1258
+ {
1259
+ name: 'tokenSpender',
1260
+ type: 'address',
1261
+ internalType: 'address'
1262
+ }
1263
+ ],
1264
+ stateMutability: 'view'
1265
+ },
1266
+ {
1267
+ type: 'function',
1268
+ name: 'singleCall',
1269
+ inputs: [
1270
+ {
1271
+ name: '',
1272
+ type: 'address',
1273
+ internalType: 'address'
1274
+ },
1275
+ {
1276
+ name: '',
1277
+ type: 'bytes',
1278
+ internalType: 'bytes'
1279
+ }
1280
+ ],
1281
+ outputs: [],
1282
+ stateMutability: 'pure'
1283
+ },
1284
+ {
1285
+ type: 'function',
1286
+ name: 'supportsInterface',
1287
+ inputs: [
1288
+ {
1289
+ name: 'selector',
1290
+ type: 'bytes4',
1291
+ internalType: 'bytes4'
1292
+ }
1293
+ ],
1294
+ outputs: [
1295
+ {
1296
+ name: '',
1297
+ type: 'bool',
1298
+ internalType: 'bool'
1299
+ }
1300
+ ],
1301
+ stateMutability: 'pure'
1302
+ },
1303
+ {
1304
+ type: 'function',
1305
+ name: 'version',
1306
+ inputs: [],
1307
+ outputs: [
1308
+ {
1309
+ name: '',
1310
+ type: 'bytes',
1311
+ internalType: 'bytes'
1312
+ }
1313
+ ],
1314
+ stateMutability: 'view'
1315
+ },
1316
+ {
1317
+ type: 'event',
1318
+ name: 'Claimed',
1319
+ inputs: [
1320
+ {
1321
+ name: 'nonce',
1322
+ type: 'uint256',
1323
+ indexed: false,
1324
+ internalType: 'uint256'
1325
+ }
1326
+ ],
1327
+ anonymous: false
1328
+ },
1329
+ {
1330
+ type: 'event',
1331
+ name: 'Filled',
1332
+ inputs: [
1333
+ {
1334
+ name: 'nonce',
1335
+ type: 'uint256',
1336
+ indexed: false,
1337
+ internalType: 'uint256'
1338
+ }
1339
+ ],
1340
+ anonymous: false
1341
+ },
1342
+ {
1343
+ type: 'error',
1344
+ name: 'ExecutionFailed',
1345
+ inputs: []
1346
+ },
1347
+ {
1348
+ type: 'error',
1349
+ name: 'InvalidRelayerContext',
1350
+ inputs: []
1351
+ },
1352
+ {
1353
+ type: 'error',
1354
+ name: 'MajorVersionTooLarge',
1355
+ inputs: [
1356
+ {
1357
+ name: 'major',
1358
+ type: 'uint256',
1359
+ internalType: 'uint256'
1360
+ }
1361
+ ]
1362
+ },
1363
+ {
1364
+ type: 'error',
1365
+ name: 'MinorVersionTooLarge',
1366
+ inputs: [
1367
+ {
1368
+ name: 'minor',
1369
+ type: 'uint256',
1370
+ internalType: 'uint256'
1371
+ }
1372
+ ]
1373
+ },
1374
+ {
1375
+ type: 'error',
1376
+ name: 'OnlyDelegateCall',
1377
+ inputs: []
1378
+ },
1379
+ {
1380
+ type: 'error',
1381
+ name: 'PatchVersionTooLarge',
1382
+ inputs: [
1383
+ {
1384
+ name: 'patch',
1385
+ type: 'uint256',
1386
+ internalType: 'uint256'
1387
+ }
1388
+ ]
1389
+ },
1390
+ {
1391
+ type: 'error',
1392
+ name: 'TokenNotPaidInMulticall',
1393
+ inputs: []
1394
+ },
1395
+ {
1396
+ type: 'error',
1397
+ name: 'Unauthorized',
1398
+ inputs: []
1399
+ },
1400
+ {
1401
+ type: 'error',
1402
+ name: 'UseFallbackInstead',
1403
+ inputs: []
1404
+ },
1405
+ {
1406
+ type: 'error',
1407
+ name: 'WithdrawFailed',
1408
+ inputs: []
1409
+ }
1410
+ ];
1411
+ exports.directRouteAbi = [
1412
+ {
1413
+ type: 'function',
1414
+ name: 'onFill_inRouter_collectFee',
1415
+ inputs: [
1416
+ {
1417
+ name: 'fee',
1418
+ type: 'tuple',
1419
+ internalType: 'struct FeeCollector.Fee',
1420
+ components: [
1421
+ {
1422
+ name: 'recipient',
1423
+ type: 'address',
1424
+ internalType: 'address'
1425
+ },
1426
+ {
1427
+ name: 'tokenAndAmounts',
1428
+ type: 'uint256[2][]',
1429
+ internalType: 'uint256[2][]'
1430
+ }
1431
+ ]
1432
+ }
1433
+ ],
1434
+ outputs: [
1435
+ {
1436
+ name: '',
1437
+ type: 'bytes4',
1438
+ internalType: 'bytes4'
1439
+ }
1440
+ ],
1441
+ stateMutability: 'nonpayable'
1442
+ },
1443
+ {
1444
+ type: 'function',
1445
+ name: 'onFill_inRouter_collectFees',
1446
+ inputs: [
1447
+ {
1448
+ name: 'fees',
1449
+ type: 'tuple[]',
1450
+ internalType: 'struct FeeCollector.Fee[]',
1451
+ components: [
1452
+ {
1453
+ name: 'recipient',
1454
+ type: 'address',
1455
+ internalType: 'address'
1456
+ },
1457
+ {
1458
+ name: 'tokenAndAmounts',
1459
+ type: 'uint256[2][]',
1460
+ internalType: 'uint256[2][]'
1461
+ }
1462
+ ]
1463
+ }
1464
+ ],
1465
+ outputs: [
1466
+ {
1467
+ name: '',
1468
+ type: 'bytes4',
1469
+ internalType: 'bytes4'
1470
+ }
1471
+ ],
1472
+ stateMutability: 'nonpayable'
1473
+ },
1474
+ {
1475
+ type: 'function',
1476
+ name: 'onFill_inRouter_setApproval',
1477
+ inputs: [
1478
+ {
1479
+ name: 'token',
1480
+ type: 'address',
1481
+ internalType: 'address'
1482
+ },
1483
+ {
1484
+ name: 'spender',
1485
+ type: 'address',
1486
+ internalType: 'address'
1487
+ },
1488
+ {
1489
+ name: 'amount',
1490
+ type: 'uint256',
1491
+ internalType: 'uint256'
1492
+ }
1493
+ ],
1494
+ outputs: [
1495
+ {
1496
+ name: '',
1497
+ type: 'bytes4',
1498
+ internalType: 'bytes4'
1499
+ }
1500
+ ],
1501
+ stateMutability: 'nonpayable'
1502
+ },
1503
+ {
1504
+ type: 'function',
1505
+ name: 'onFill_inRouter_setApprovals',
1506
+ inputs: [
1507
+ {
1508
+ name: 'tokenAndSpenderAndAmounts',
1509
+ type: 'uint256[3][]',
1510
+ internalType: 'uint256[3][]'
1511
+ }
1512
+ ],
1513
+ outputs: [
1514
+ {
1515
+ name: '',
1516
+ type: 'bytes4',
1517
+ internalType: 'bytes4'
1518
+ }
1519
+ ],
1520
+ stateMutability: 'nonpayable'
1521
+ }
1522
+ ];