@0xmonaco/contracts 1.0.51 → 1.0.53

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.
@@ -1,108 +1,967 @@
1
1
  export const SWEEPER_FACTORY_ABI = [
2
+ {
3
+ inputs: [],
4
+ stateMutability: "nonpayable",
5
+ type: "constructor",
6
+ },
7
+ {
8
+ inputs: [
9
+ {
10
+ internalType: "address",
11
+ name: "target",
12
+ type: "address",
13
+ },
14
+ ],
15
+ name: "AddressEmptyCode",
16
+ type: "error",
17
+ },
18
+ {
19
+ inputs: [],
20
+ name: "CloneArgumentsTooLong",
21
+ type: "error",
22
+ },
23
+ {
24
+ inputs: [],
25
+ name: "Create2EmptyBytecode",
26
+ type: "error",
27
+ },
28
+ {
29
+ inputs: [
30
+ {
31
+ internalType: "address",
32
+ name: "implementation",
33
+ type: "address",
34
+ },
35
+ ],
36
+ name: "ERC1967InvalidImplementation",
37
+ type: "error",
38
+ },
39
+ {
40
+ inputs: [],
41
+ name: "ERC1967NonPayable",
42
+ type: "error",
43
+ },
44
+ {
45
+ inputs: [],
46
+ name: "FailedCall",
47
+ type: "error",
48
+ },
49
+ {
50
+ inputs: [],
51
+ name: "FailedDeployment",
52
+ type: "error",
53
+ },
54
+ {
55
+ inputs: [],
56
+ name: "ImplementationNotSet",
57
+ type: "error",
58
+ },
59
+ {
60
+ inputs: [
61
+ {
62
+ internalType: "uint256",
63
+ name: "balance",
64
+ type: "uint256",
65
+ },
66
+ {
67
+ internalType: "uint256",
68
+ name: "needed",
69
+ type: "uint256",
70
+ },
71
+ ],
72
+ name: "InsufficientBalance",
73
+ type: "error",
74
+ },
75
+ {
76
+ inputs: [],
77
+ name: "InvalidAddress",
78
+ type: "error",
79
+ },
80
+ {
81
+ inputs: [],
82
+ name: "InvalidInitialization",
83
+ type: "error",
84
+ },
85
+ {
86
+ inputs: [],
87
+ name: "NotExecutor",
88
+ type: "error",
89
+ },
90
+ {
91
+ inputs: [],
92
+ name: "NotInitializing",
93
+ type: "error",
94
+ },
95
+ {
96
+ inputs: [
97
+ {
98
+ internalType: "address",
99
+ name: "owner",
100
+ type: "address",
101
+ },
102
+ ],
103
+ name: "OwnableInvalidOwner",
104
+ type: "error",
105
+ },
106
+ {
107
+ inputs: [
108
+ {
109
+ internalType: "address",
110
+ name: "account",
111
+ type: "address",
112
+ },
113
+ ],
114
+ name: "OwnableUnauthorizedAccount",
115
+ type: "error",
116
+ },
117
+ {
118
+ inputs: [],
119
+ name: "UUPSUnauthorizedCallContext",
120
+ type: "error",
121
+ },
122
+ {
123
+ inputs: [
124
+ {
125
+ internalType: "bytes32",
126
+ name: "slot",
127
+ type: "bytes32",
128
+ },
129
+ ],
130
+ name: "UUPSUnsupportedProxiableUUID",
131
+ type: "error",
132
+ },
133
+ {
134
+ anonymous: false,
135
+ inputs: [
136
+ {
137
+ indexed: true,
138
+ internalType: "address",
139
+ name: "previousExecutor",
140
+ type: "address",
141
+ },
142
+ {
143
+ indexed: true,
144
+ internalType: "address",
145
+ name: "newExecutor",
146
+ type: "address",
147
+ },
148
+ ],
149
+ name: "ExecutorUpdated",
150
+ type: "event",
151
+ },
152
+ {
153
+ anonymous: false,
154
+ inputs: [
155
+ {
156
+ indexed: false,
157
+ internalType: "address",
158
+ name: "rollup",
159
+ type: "address",
160
+ },
161
+ {
162
+ indexed: false,
163
+ internalType: "address",
164
+ name: "bridgedStable",
165
+ type: "address",
166
+ },
167
+ {
168
+ indexed: false,
169
+ internalType: "address",
170
+ name: "swapRouter",
171
+ type: "address",
172
+ },
173
+ {
174
+ indexed: false,
175
+ internalType: "address",
176
+ name: "lzEndpoint",
177
+ type: "address",
178
+ },
179
+ ],
180
+ name: "HubConfigured",
181
+ type: "event",
182
+ },
183
+ {
184
+ anonymous: false,
185
+ inputs: [
186
+ {
187
+ indexed: false,
188
+ internalType: "uint64",
189
+ name: "version",
190
+ type: "uint64",
191
+ },
192
+ ],
193
+ name: "Initialized",
194
+ type: "event",
195
+ },
196
+ {
197
+ anonymous: false,
198
+ inputs: [
199
+ {
200
+ indexed: true,
201
+ internalType: "address",
202
+ name: "previousOwner",
203
+ type: "address",
204
+ },
205
+ {
206
+ indexed: true,
207
+ internalType: "address",
208
+ name: "newOwner",
209
+ type: "address",
210
+ },
211
+ ],
212
+ name: "OwnershipTransferStarted",
213
+ type: "event",
214
+ },
215
+ {
216
+ anonymous: false,
217
+ inputs: [
218
+ {
219
+ indexed: true,
220
+ internalType: "address",
221
+ name: "previousOwner",
222
+ type: "address",
223
+ },
224
+ {
225
+ indexed: true,
226
+ internalType: "address",
227
+ name: "newOwner",
228
+ type: "address",
229
+ },
230
+ ],
231
+ name: "OwnershipTransferred",
232
+ type: "event",
233
+ },
234
+ {
235
+ anonymous: false,
236
+ inputs: [
237
+ {
238
+ indexed: false,
239
+ internalType: "address",
240
+ name: "swapRouter",
241
+ type: "address",
242
+ },
243
+ {
244
+ indexed: false,
245
+ internalType: "uint32",
246
+ name: "cctpDestinationDomain",
247
+ type: "uint32",
248
+ },
249
+ {
250
+ indexed: false,
251
+ internalType: "uint32",
252
+ name: "stargateDestinationEid",
253
+ type: "uint32",
254
+ },
255
+ ],
256
+ name: "RemoteConfigured",
257
+ type: "event",
258
+ },
259
+ {
260
+ anonymous: false,
261
+ inputs: [
262
+ {
263
+ indexed: true,
264
+ internalType: "address",
265
+ name: "token",
266
+ type: "address",
267
+ },
268
+ {
269
+ components: [
270
+ {
271
+ internalType: "enum RouteKind",
272
+ name: "kind",
273
+ type: "uint8",
274
+ },
275
+ {
276
+ internalType: "address",
277
+ name: "bridge",
278
+ type: "address",
279
+ },
280
+ {
281
+ internalType: "bool",
282
+ name: "unwrapNative",
283
+ type: "bool",
284
+ },
285
+ {
286
+ internalType: "bool",
287
+ name: "compose",
288
+ type: "bool",
289
+ },
290
+ {
291
+ internalType: "address",
292
+ name: "bridgeToken",
293
+ type: "address",
294
+ },
295
+ {
296
+ internalType: "address",
297
+ name: "hubToken",
298
+ type: "address",
299
+ },
300
+ {
301
+ internalType: "bytes",
302
+ name: "swapPath",
303
+ type: "bytes",
304
+ },
305
+ ],
306
+ indexed: false,
307
+ internalType: "struct BridgeRoute",
308
+ name: "route",
309
+ type: "tuple",
310
+ },
311
+ ],
312
+ name: "RouteSet",
313
+ type: "event",
314
+ },
315
+ {
316
+ anonymous: false,
317
+ inputs: [
318
+ {
319
+ indexed: true,
320
+ internalType: "address",
321
+ name: "sweeper",
322
+ type: "address",
323
+ },
324
+ {
325
+ indexed: true,
326
+ internalType: "address",
327
+ name: "user",
328
+ type: "address",
329
+ },
330
+ {
331
+ indexed: false,
332
+ internalType: "string",
333
+ name: "applicationId",
334
+ type: "string",
335
+ },
336
+ {
337
+ indexed: false,
338
+ internalType: "address",
339
+ name: "hubToken",
340
+ type: "address",
341
+ },
342
+ ],
343
+ name: "SweeperDeployed",
344
+ type: "event",
345
+ },
346
+ {
347
+ anonymous: false,
348
+ inputs: [
349
+ {
350
+ indexed: true,
351
+ internalType: "address",
352
+ name: "previousImplementation",
353
+ type: "address",
354
+ },
355
+ {
356
+ indexed: true,
357
+ internalType: "address",
358
+ name: "newImplementation",
359
+ type: "address",
360
+ },
361
+ ],
362
+ name: "SweeperImplementationUpdated",
363
+ type: "event",
364
+ },
365
+ {
366
+ anonymous: false,
367
+ inputs: [
368
+ {
369
+ indexed: true,
370
+ internalType: "address",
371
+ name: "stargate",
372
+ type: "address",
373
+ },
374
+ {
375
+ indexed: false,
376
+ internalType: "address",
377
+ name: "token",
378
+ type: "address",
379
+ },
380
+ ],
381
+ name: "TrustedStargateSet",
382
+ type: "event",
383
+ },
384
+ {
385
+ anonymous: false,
386
+ inputs: [
387
+ {
388
+ indexed: true,
389
+ internalType: "address",
390
+ name: "hubToken",
391
+ type: "address",
392
+ },
393
+ {
394
+ indexed: false,
395
+ internalType: "bytes",
396
+ name: "path",
397
+ type: "bytes",
398
+ },
399
+ ],
400
+ name: "UnswapPathSet",
401
+ type: "event",
402
+ },
403
+ {
404
+ anonymous: false,
405
+ inputs: [
406
+ {
407
+ indexed: true,
408
+ internalType: "address",
409
+ name: "implementation",
410
+ type: "address",
411
+ },
412
+ ],
413
+ name: "Upgraded",
414
+ type: "event",
415
+ },
416
+ {
417
+ inputs: [],
418
+ name: "UPGRADE_INTERFACE_VERSION",
419
+ outputs: [
420
+ {
421
+ internalType: "string",
422
+ name: "",
423
+ type: "string",
424
+ },
425
+ ],
426
+ stateMutability: "view",
427
+ type: "function",
428
+ },
429
+ {
430
+ inputs: [],
431
+ name: "acceptOwnership",
432
+ outputs: [],
433
+ stateMutability: "nonpayable",
434
+ type: "function",
435
+ },
436
+ {
437
+ inputs: [],
438
+ name: "bridgedStable",
439
+ outputs: [
440
+ {
441
+ internalType: "address",
442
+ name: "",
443
+ type: "address",
444
+ },
445
+ ],
446
+ stateMutability: "view",
447
+ type: "function",
448
+ },
449
+ {
450
+ inputs: [],
451
+ name: "cctpDestinationDomain",
452
+ outputs: [
453
+ {
454
+ internalType: "uint32",
455
+ name: "",
456
+ type: "uint32",
457
+ },
458
+ ],
459
+ stateMutability: "view",
460
+ type: "function",
461
+ },
462
+ {
463
+ inputs: [],
464
+ name: "chainMode",
465
+ outputs: [
466
+ {
467
+ internalType: "enum ChainMode",
468
+ name: "",
469
+ type: "uint8",
470
+ },
471
+ ],
472
+ stateMutability: "view",
473
+ type: "function",
474
+ },
475
+ {
476
+ inputs: [
477
+ {
478
+ internalType: "address",
479
+ name: "rollup_",
480
+ type: "address",
481
+ },
482
+ {
483
+ internalType: "address",
484
+ name: "bridgedStable_",
485
+ type: "address",
486
+ },
487
+ {
488
+ internalType: "address",
489
+ name: "swapRouter_",
490
+ type: "address",
491
+ },
492
+ {
493
+ internalType: "address",
494
+ name: "lzEndpoint_",
495
+ type: "address",
496
+ },
497
+ ],
498
+ name: "configureHub",
499
+ outputs: [],
500
+ stateMutability: "nonpayable",
501
+ type: "function",
502
+ },
503
+ {
504
+ inputs: [
505
+ {
506
+ internalType: "address",
507
+ name: "swapRouter_",
508
+ type: "address",
509
+ },
510
+ {
511
+ internalType: "uint32",
512
+ name: "cctpDestinationDomain_",
513
+ type: "uint32",
514
+ },
515
+ {
516
+ internalType: "uint32",
517
+ name: "stargateDestinationEid_",
518
+ type: "uint32",
519
+ },
520
+ ],
521
+ name: "configureRemote",
522
+ outputs: [],
523
+ stateMutability: "nonpayable",
524
+ type: "function",
525
+ },
526
+ {
527
+ inputs: [
528
+ {
529
+ internalType: "string",
530
+ name: "applicationId",
531
+ type: "string",
532
+ },
533
+ {
534
+ internalType: "address",
535
+ name: "user",
536
+ type: "address",
537
+ },
538
+ ],
539
+ name: "deploy",
540
+ outputs: [
541
+ {
542
+ internalType: "address",
543
+ name: "sweeper",
544
+ type: "address",
545
+ },
546
+ ],
547
+ stateMutability: "nonpayable",
548
+ type: "function",
549
+ },
550
+ {
551
+ inputs: [
552
+ {
553
+ internalType: "string",
554
+ name: "applicationId",
555
+ type: "string",
556
+ },
557
+ {
558
+ internalType: "address",
559
+ name: "user",
560
+ type: "address",
561
+ },
562
+ {
563
+ internalType: "address",
564
+ name: "hubToken",
565
+ type: "address",
566
+ },
567
+ ],
568
+ name: "deployReceiver",
569
+ outputs: [
570
+ {
571
+ internalType: "address",
572
+ name: "sweeper",
573
+ type: "address",
574
+ },
575
+ ],
576
+ stateMutability: "nonpayable",
577
+ type: "function",
578
+ },
579
+ {
580
+ inputs: [],
581
+ name: "executor",
582
+ outputs: [
583
+ {
584
+ internalType: "address",
585
+ name: "",
586
+ type: "address",
587
+ },
588
+ ],
589
+ stateMutability: "view",
590
+ type: "function",
591
+ },
592
+ {
593
+ inputs: [],
594
+ name: "forwarder",
595
+ outputs: [
596
+ {
597
+ internalType: "address",
598
+ name: "",
599
+ type: "address",
600
+ },
601
+ ],
602
+ stateMutability: "view",
603
+ type: "function",
604
+ },
605
+ {
606
+ inputs: [
607
+ {
608
+ internalType: "address",
609
+ name: "owner_",
610
+ type: "address",
611
+ },
612
+ ],
613
+ name: "initialize",
614
+ outputs: [],
615
+ stateMutability: "nonpayable",
616
+ type: "function",
617
+ },
618
+ {
619
+ inputs: [
620
+ {
621
+ internalType: "string",
622
+ name: "applicationId",
623
+ type: "string",
624
+ },
625
+ {
626
+ internalType: "address",
627
+ name: "user",
628
+ type: "address",
629
+ },
630
+ ],
631
+ name: "isDeployed",
632
+ outputs: [
633
+ {
634
+ internalType: "bool",
635
+ name: "",
636
+ type: "bool",
637
+ },
638
+ ],
639
+ stateMutability: "view",
640
+ type: "function",
641
+ },
642
+ {
643
+ inputs: [],
644
+ name: "lzEndpoint",
645
+ outputs: [
646
+ {
647
+ internalType: "address",
648
+ name: "",
649
+ type: "address",
650
+ },
651
+ ],
652
+ stateMutability: "view",
653
+ type: "function",
654
+ },
655
+ {
656
+ inputs: [],
657
+ name: "owner",
658
+ outputs: [
659
+ {
660
+ internalType: "address",
661
+ name: "",
662
+ type: "address",
663
+ },
664
+ ],
665
+ stateMutability: "view",
666
+ type: "function",
667
+ },
668
+ {
669
+ inputs: [],
670
+ name: "pendingOwner",
671
+ outputs: [
672
+ {
673
+ internalType: "address",
674
+ name: "",
675
+ type: "address",
676
+ },
677
+ ],
678
+ stateMutability: "view",
679
+ type: "function",
680
+ },
681
+ {
682
+ inputs: [],
683
+ name: "proxiableUUID",
684
+ outputs: [
685
+ {
686
+ internalType: "bytes32",
687
+ name: "",
688
+ type: "bytes32",
689
+ },
690
+ ],
691
+ stateMutability: "view",
692
+ type: "function",
693
+ },
694
+ {
695
+ inputs: [
696
+ {
697
+ internalType: "string",
698
+ name: "applicationId",
699
+ type: "string",
700
+ },
701
+ {
702
+ internalType: "address",
703
+ name: "user",
704
+ type: "address",
705
+ },
706
+ {
707
+ internalType: "address",
708
+ name: "hubToken",
709
+ type: "address",
710
+ },
711
+ ],
712
+ name: "receiverFor",
713
+ outputs: [
714
+ {
715
+ internalType: "address",
716
+ name: "",
717
+ type: "address",
718
+ },
719
+ ],
720
+ stateMutability: "view",
721
+ type: "function",
722
+ },
2
723
  {
3
724
  inputs: [
725
+ {
726
+ internalType: "string",
727
+ name: "applicationId",
728
+ type: "string",
729
+ },
4
730
  {
5
731
  internalType: "address",
6
- name: "rollup_",
732
+ name: "user",
7
733
  type: "address",
8
734
  },
9
735
  ],
736
+ name: "refundNative",
737
+ outputs: [],
10
738
  stateMutability: "nonpayable",
11
- type: "constructor",
739
+ type: "function",
12
740
  },
13
741
  {
14
- inputs: [],
15
- name: "CloneArgumentsTooLong",
16
- type: "error",
742
+ inputs: [
743
+ {
744
+ internalType: "string",
745
+ name: "applicationId",
746
+ type: "string",
747
+ },
748
+ {
749
+ internalType: "address",
750
+ name: "user",
751
+ type: "address",
752
+ },
753
+ {
754
+ internalType: "address",
755
+ name: "token",
756
+ type: "address",
757
+ },
758
+ ],
759
+ name: "refundToken",
760
+ outputs: [],
761
+ stateMutability: "nonpayable",
762
+ type: "function",
17
763
  },
18
764
  {
19
765
  inputs: [],
20
- name: "Create2EmptyBytecode",
21
- type: "error",
766
+ name: "renounceOwnership",
767
+ outputs: [],
768
+ stateMutability: "nonpayable",
769
+ type: "function",
22
770
  },
23
771
  {
24
772
  inputs: [],
25
- name: "FailedDeployment",
26
- type: "error",
773
+ name: "rollup",
774
+ outputs: [
775
+ {
776
+ internalType: "address",
777
+ name: "",
778
+ type: "address",
779
+ },
780
+ ],
781
+ stateMutability: "view",
782
+ type: "function",
27
783
  },
28
784
  {
29
785
  inputs: [
30
786
  {
31
- internalType: "uint256",
32
- name: "balance",
33
- type: "uint256",
787
+ internalType: "address",
788
+ name: "token",
789
+ type: "address",
34
790
  },
791
+ ],
792
+ name: "route",
793
+ outputs: [
35
794
  {
36
- internalType: "uint256",
37
- name: "needed",
38
- type: "uint256",
795
+ components: [
796
+ {
797
+ internalType: "enum RouteKind",
798
+ name: "kind",
799
+ type: "uint8",
800
+ },
801
+ {
802
+ internalType: "address",
803
+ name: "bridge",
804
+ type: "address",
805
+ },
806
+ {
807
+ internalType: "bool",
808
+ name: "unwrapNative",
809
+ type: "bool",
810
+ },
811
+ {
812
+ internalType: "bool",
813
+ name: "compose",
814
+ type: "bool",
815
+ },
816
+ {
817
+ internalType: "address",
818
+ name: "bridgeToken",
819
+ type: "address",
820
+ },
821
+ {
822
+ internalType: "address",
823
+ name: "hubToken",
824
+ type: "address",
825
+ },
826
+ {
827
+ internalType: "bytes",
828
+ name: "swapPath",
829
+ type: "bytes",
830
+ },
831
+ ],
832
+ internalType: "struct BridgeRoute",
833
+ name: "",
834
+ type: "tuple",
39
835
  },
40
836
  ],
41
- name: "InsufficientBalance",
42
- type: "error",
43
- },
44
- {
45
- inputs: [],
46
- name: "InvalidAddress",
47
- type: "error",
837
+ stateMutability: "view",
838
+ type: "function",
48
839
  },
49
840
  {
50
- anonymous: false,
51
841
  inputs: [
52
842
  {
53
- indexed: true,
54
843
  internalType: "address",
55
- name: "sweeper",
844
+ name: "executor_",
56
845
  type: "address",
57
846
  },
847
+ ],
848
+ name: "setExecutor",
849
+ outputs: [],
850
+ stateMutability: "nonpayable",
851
+ type: "function",
852
+ },
853
+ {
854
+ inputs: [
58
855
  {
59
- indexed: true,
60
856
  internalType: "address",
61
- name: "user",
857
+ name: "token",
62
858
  type: "address",
63
859
  },
64
860
  {
65
- indexed: false,
66
- internalType: "string",
67
- name: "applicationId",
68
- type: "string",
861
+ components: [
862
+ {
863
+ internalType: "enum RouteKind",
864
+ name: "kind",
865
+ type: "uint8",
866
+ },
867
+ {
868
+ internalType: "address",
869
+ name: "bridge",
870
+ type: "address",
871
+ },
872
+ {
873
+ internalType: "bool",
874
+ name: "unwrapNative",
875
+ type: "bool",
876
+ },
877
+ {
878
+ internalType: "bool",
879
+ name: "compose",
880
+ type: "bool",
881
+ },
882
+ {
883
+ internalType: "address",
884
+ name: "bridgeToken",
885
+ type: "address",
886
+ },
887
+ {
888
+ internalType: "address",
889
+ name: "hubToken",
890
+ type: "address",
891
+ },
892
+ {
893
+ internalType: "bytes",
894
+ name: "swapPath",
895
+ type: "bytes",
896
+ },
897
+ ],
898
+ internalType: "struct BridgeRoute",
899
+ name: "route_",
900
+ type: "tuple",
69
901
  },
70
902
  ],
71
- name: "SweeperDeployed",
72
- type: "event",
903
+ name: "setRoute",
904
+ outputs: [],
905
+ stateMutability: "nonpayable",
906
+ type: "function",
73
907
  },
74
908
  {
75
909
  inputs: [
76
910
  {
77
- internalType: "string",
78
- name: "applicationId",
79
- type: "string",
911
+ internalType: "address",
912
+ name: "implementation",
913
+ type: "address",
914
+ },
915
+ ],
916
+ name: "setSweeperImplementation",
917
+ outputs: [],
918
+ stateMutability: "nonpayable",
919
+ type: "function",
920
+ },
921
+ {
922
+ inputs: [
923
+ {
924
+ internalType: "address",
925
+ name: "stargate",
926
+ type: "address",
80
927
  },
81
928
  {
82
929
  internalType: "address",
83
- name: "user",
930
+ name: "token",
84
931
  type: "address",
85
932
  },
86
933
  ],
87
- name: "deploy",
88
- outputs: [
934
+ name: "setTrustedStargate",
935
+ outputs: [],
936
+ stateMutability: "nonpayable",
937
+ type: "function",
938
+ },
939
+ {
940
+ inputs: [
89
941
  {
90
942
  internalType: "address",
91
- name: "sweeper",
943
+ name: "hubToken",
92
944
  type: "address",
93
945
  },
946
+ {
947
+ internalType: "bytes",
948
+ name: "path",
949
+ type: "bytes",
950
+ },
94
951
  ],
952
+ name: "setUnswapPath",
953
+ outputs: [],
95
954
  stateMutability: "nonpayable",
96
955
  type: "function",
97
956
  },
98
957
  {
99
958
  inputs: [],
100
- name: "implementation",
959
+ name: "stargateDestinationEid",
101
960
  outputs: [
102
961
  {
103
- internalType: "address",
962
+ internalType: "uint32",
104
963
  name: "",
105
- type: "address",
964
+ type: "uint32",
106
965
  },
107
966
  ],
108
967
  stateMutability: "view",
@@ -111,22 +970,30 @@ export const SWEEPER_FACTORY_ABI = [
111
970
  {
112
971
  inputs: [
113
972
  {
114
- internalType: "string",
115
- name: "applicationId",
116
- type: "string",
973
+ internalType: "address",
974
+ name: "stargate",
975
+ type: "address",
117
976
  },
977
+ ],
978
+ name: "stargateToken",
979
+ outputs: [
118
980
  {
119
981
  internalType: "address",
120
- name: "user",
982
+ name: "",
121
983
  type: "address",
122
984
  },
123
985
  ],
124
- name: "isDeployed",
986
+ stateMutability: "view",
987
+ type: "function",
988
+ },
989
+ {
990
+ inputs: [],
991
+ name: "swapRouter",
125
992
  outputs: [
126
993
  {
127
- internalType: "bool",
994
+ internalType: "address",
128
995
  name: "",
129
- type: "bool",
996
+ type: "address",
130
997
  },
131
998
  ],
132
999
  stateMutability: "view",
@@ -144,23 +1011,15 @@ export const SWEEPER_FACTORY_ABI = [
144
1011
  name: "user",
145
1012
  type: "address",
146
1013
  },
147
- ],
148
- name: "refundNative",
149
- outputs: [],
150
- stateMutability: "nonpayable",
151
- type: "function",
152
- },
153
- {
154
- inputs: [],
155
- name: "rollup",
156
- outputs: [
157
1014
  {
158
- internalType: "contract IRollup",
159
- name: "",
1015
+ internalType: "address",
1016
+ name: "token",
160
1017
  type: "address",
161
1018
  },
162
1019
  ],
163
- stateMutability: "view",
1020
+ name: "sweep",
1021
+ outputs: [],
1022
+ stateMutability: "nonpayable",
164
1023
  type: "function",
165
1024
  },
166
1025
  {
@@ -175,15 +1034,42 @@ export const SWEEPER_FACTORY_ABI = [
175
1034
  name: "user",
176
1035
  type: "address",
177
1036
  },
1037
+ {
1038
+ internalType: "address",
1039
+ name: "hubToken",
1040
+ type: "address",
1041
+ },
178
1042
  {
179
1043
  internalType: "address",
180
1044
  name: "token",
181
1045
  type: "address",
182
1046
  },
1047
+ {
1048
+ components: [
1049
+ {
1050
+ internalType: "uint256",
1051
+ name: "minSwapOut",
1052
+ type: "uint256",
1053
+ },
1054
+ {
1055
+ internalType: "uint256",
1056
+ name: "minBridgeOut",
1057
+ type: "uint256",
1058
+ },
1059
+ {
1060
+ internalType: "bytes",
1061
+ name: "lzExtraOptions",
1062
+ type: "bytes",
1063
+ },
1064
+ ],
1065
+ internalType: "struct SweepParams",
1066
+ name: "params",
1067
+ type: "tuple",
1068
+ },
183
1069
  ],
184
- name: "sweep",
1070
+ name: "sweepWithParams",
185
1071
  outputs: [],
186
- stateMutability: "nonpayable",
1072
+ stateMutability: "payable",
187
1073
  type: "function",
188
1074
  },
189
1075
  {
@@ -210,4 +1096,80 @@ export const SWEEPER_FACTORY_ABI = [
210
1096
  stateMutability: "view",
211
1097
  type: "function",
212
1098
  },
1099
+ {
1100
+ inputs: [],
1101
+ name: "sweeperImplementation",
1102
+ outputs: [
1103
+ {
1104
+ internalType: "address",
1105
+ name: "",
1106
+ type: "address",
1107
+ },
1108
+ ],
1109
+ stateMutability: "view",
1110
+ type: "function",
1111
+ },
1112
+ {
1113
+ inputs: [
1114
+ {
1115
+ internalType: "address",
1116
+ name: "newOwner",
1117
+ type: "address",
1118
+ },
1119
+ ],
1120
+ name: "transferOwnership",
1121
+ outputs: [],
1122
+ stateMutability: "nonpayable",
1123
+ type: "function",
1124
+ },
1125
+ {
1126
+ inputs: [
1127
+ {
1128
+ internalType: "address",
1129
+ name: "hubToken",
1130
+ type: "address",
1131
+ },
1132
+ ],
1133
+ name: "unswapPath",
1134
+ outputs: [
1135
+ {
1136
+ internalType: "bytes",
1137
+ name: "",
1138
+ type: "bytes",
1139
+ },
1140
+ ],
1141
+ stateMutability: "view",
1142
+ type: "function",
1143
+ },
1144
+ {
1145
+ inputs: [],
1146
+ name: "unwrapHelper",
1147
+ outputs: [
1148
+ {
1149
+ internalType: "address",
1150
+ name: "",
1151
+ type: "address",
1152
+ },
1153
+ ],
1154
+ stateMutability: "view",
1155
+ type: "function",
1156
+ },
1157
+ {
1158
+ inputs: [
1159
+ {
1160
+ internalType: "address",
1161
+ name: "newImplementation",
1162
+ type: "address",
1163
+ },
1164
+ {
1165
+ internalType: "bytes",
1166
+ name: "data",
1167
+ type: "bytes",
1168
+ },
1169
+ ],
1170
+ name: "upgradeToAndCall",
1171
+ outputs: [],
1172
+ stateMutability: "payable",
1173
+ type: "function",
1174
+ },
213
1175
  ];