@xswap-link/sdk 0.0.4 → 0.0.5

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.
@@ -0,0 +1,1242 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "stateMutability": "nonpayable",
5
+ "type": "constructor"
6
+ },
7
+ {
8
+ "inputs": [
9
+ {
10
+ "internalType": "uint64",
11
+ "name": "destinationChainSelector",
12
+ "type": "uint64"
13
+ }
14
+ ],
15
+ "name": "DestinationChainNotWhitelisted",
16
+ "type": "error"
17
+ },
18
+ {
19
+ "inputs": [],
20
+ "name": "FailedToSendNative",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [],
25
+ "name": "IncorrectArrayLength",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [],
30
+ "name": "InvalidAddress",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "router",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "InvalidRouter",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "messageExecutor",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "MessageAlreadyExecuted",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [],
57
+ "name": "MessageMustTransferOnlyOneToken",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [
62
+ {
63
+ "internalType": "uint64",
64
+ "name": "chainId",
65
+ "type": "uint64"
66
+ }
67
+ ],
68
+ "name": "NoXSwapRouterOnSelectedChain",
69
+ "type": "error"
70
+ },
71
+ {
72
+ "inputs": [
73
+ {
74
+ "internalType": "uint256",
75
+ "name": "currentBalance",
76
+ "type": "uint256"
77
+ },
78
+ {
79
+ "internalType": "uint256",
80
+ "name": "calculatedFees",
81
+ "type": "uint256"
82
+ }
83
+ ],
84
+ "name": "NotEnoughBalance",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "inputs": [
89
+ {
90
+ "internalType": "uint64",
91
+ "name": "sourceChainSelector",
92
+ "type": "uint64"
93
+ },
94
+ {
95
+ "internalType": "address",
96
+ "name": "sender",
97
+ "type": "address"
98
+ }
99
+ ],
100
+ "name": "SenderNotWhitelisted",
101
+ "type": "error"
102
+ },
103
+ {
104
+ "inputs": [
105
+ {
106
+ "internalType": "address",
107
+ "name": "token",
108
+ "type": "address"
109
+ }
110
+ ],
111
+ "name": "TokenNotWhitelisted",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "anonymous": false,
116
+ "inputs": [
117
+ {
118
+ "indexed": false,
119
+ "internalType": "address",
120
+ "name": "previousAdmin",
121
+ "type": "address"
122
+ },
123
+ {
124
+ "indexed": false,
125
+ "internalType": "address",
126
+ "name": "newAdmin",
127
+ "type": "address"
128
+ }
129
+ ],
130
+ "name": "AdminChanged",
131
+ "type": "event"
132
+ },
133
+ {
134
+ "anonymous": false,
135
+ "inputs": [
136
+ {
137
+ "indexed": true,
138
+ "internalType": "address",
139
+ "name": "beacon",
140
+ "type": "address"
141
+ }
142
+ ],
143
+ "name": "BeaconUpgraded",
144
+ "type": "event"
145
+ },
146
+ {
147
+ "anonymous": false,
148
+ "inputs": [
149
+ {
150
+ "indexed": false,
151
+ "internalType": "address",
152
+ "name": "token",
153
+ "type": "address"
154
+ },
155
+ {
156
+ "indexed": false,
157
+ "internalType": "uint256",
158
+ "name": "tokenAmount",
159
+ "type": "uint256"
160
+ }
161
+ ],
162
+ "name": "EmergencyWithdraw",
163
+ "type": "event"
164
+ },
165
+ {
166
+ "anonymous": false,
167
+ "inputs": [
168
+ {
169
+ "indexed": true,
170
+ "internalType": "bytes32",
171
+ "name": "messageId",
172
+ "type": "bytes32"
173
+ },
174
+ {
175
+ "indexed": true,
176
+ "internalType": "uint64",
177
+ "name": "sourceChainSelector",
178
+ "type": "uint64"
179
+ },
180
+ {
181
+ "indexed": true,
182
+ "internalType": "address",
183
+ "name": "sender",
184
+ "type": "address"
185
+ },
186
+ {
187
+ "indexed": false,
188
+ "internalType": "bytes",
189
+ "name": "data",
190
+ "type": "bytes"
191
+ },
192
+ {
193
+ "indexed": false,
194
+ "internalType": "address",
195
+ "name": "token",
196
+ "type": "address"
197
+ },
198
+ {
199
+ "indexed": false,
200
+ "internalType": "uint256",
201
+ "name": "tokenAmount",
202
+ "type": "uint256"
203
+ }
204
+ ],
205
+ "name": "ExecutorRunFailed",
206
+ "type": "event"
207
+ },
208
+ {
209
+ "anonymous": false,
210
+ "inputs": [
211
+ {
212
+ "indexed": false,
213
+ "internalType": "address",
214
+ "name": "newExecutor",
215
+ "type": "address"
216
+ }
217
+ ],
218
+ "name": "ExecutorUpdated",
219
+ "type": "event"
220
+ },
221
+ {
222
+ "anonymous": false,
223
+ "inputs": [
224
+ {
225
+ "indexed": true,
226
+ "internalType": "bytes32",
227
+ "name": "messageId",
228
+ "type": "bytes32"
229
+ },
230
+ {
231
+ "indexed": true,
232
+ "internalType": "address",
233
+ "name": "messageExecutor",
234
+ "type": "address"
235
+ },
236
+ {
237
+ "indexed": true,
238
+ "internalType": "bytes32",
239
+ "name": "executionHash",
240
+ "type": "bytes32"
241
+ },
242
+ {
243
+ "indexed": false,
244
+ "internalType": "address",
245
+ "name": "token",
246
+ "type": "address"
247
+ },
248
+ {
249
+ "indexed": false,
250
+ "internalType": "uint256",
251
+ "name": "tokenAmount",
252
+ "type": "uint256"
253
+ }
254
+ ],
255
+ "name": "FundsReturnedForMessageExecution",
256
+ "type": "event"
257
+ },
258
+ {
259
+ "anonymous": false,
260
+ "inputs": [
261
+ {
262
+ "indexed": false,
263
+ "internalType": "uint8",
264
+ "name": "version",
265
+ "type": "uint8"
266
+ }
267
+ ],
268
+ "name": "Initialized",
269
+ "type": "event"
270
+ },
271
+ {
272
+ "anonymous": false,
273
+ "inputs": [
274
+ {
275
+ "indexed": true,
276
+ "internalType": "bytes32",
277
+ "name": "messageId",
278
+ "type": "bytes32"
279
+ },
280
+ {
281
+ "indexed": true,
282
+ "internalType": "uint64",
283
+ "name": "sourceChainSelector",
284
+ "type": "uint64"
285
+ },
286
+ {
287
+ "indexed": true,
288
+ "internalType": "address",
289
+ "name": "sender",
290
+ "type": "address"
291
+ },
292
+ {
293
+ "indexed": false,
294
+ "internalType": "bytes",
295
+ "name": "data",
296
+ "type": "bytes"
297
+ },
298
+ {
299
+ "indexed": false,
300
+ "internalType": "address",
301
+ "name": "token",
302
+ "type": "address"
303
+ },
304
+ {
305
+ "indexed": false,
306
+ "internalType": "uint256",
307
+ "name": "tokenAmount",
308
+ "type": "uint256"
309
+ }
310
+ ],
311
+ "name": "MessageReceived",
312
+ "type": "event"
313
+ },
314
+ {
315
+ "anonymous": false,
316
+ "inputs": [
317
+ {
318
+ "indexed": true,
319
+ "internalType": "bytes32",
320
+ "name": "messageId",
321
+ "type": "bytes32"
322
+ },
323
+ {
324
+ "indexed": true,
325
+ "internalType": "uint64",
326
+ "name": "destinationChainSelector",
327
+ "type": "uint64"
328
+ },
329
+ {
330
+ "indexed": true,
331
+ "internalType": "address",
332
+ "name": "sender",
333
+ "type": "address"
334
+ },
335
+ {
336
+ "indexed": false,
337
+ "internalType": "bytes",
338
+ "name": "data",
339
+ "type": "bytes"
340
+ },
341
+ {
342
+ "indexed": false,
343
+ "internalType": "address",
344
+ "name": "token",
345
+ "type": "address"
346
+ },
347
+ {
348
+ "indexed": false,
349
+ "internalType": "uint256",
350
+ "name": "tokenAmount",
351
+ "type": "uint256"
352
+ },
353
+ {
354
+ "indexed": false,
355
+ "internalType": "uint256",
356
+ "name": "valueForInstantCcipRecieve",
357
+ "type": "uint256"
358
+ },
359
+ {
360
+ "indexed": false,
361
+ "internalType": "address",
362
+ "name": "transferedToken",
363
+ "type": "address"
364
+ },
365
+ {
366
+ "indexed": false,
367
+ "internalType": "uint256",
368
+ "name": "transferedTokenAmount",
369
+ "type": "uint256"
370
+ }
371
+ ],
372
+ "name": "MessageSent",
373
+ "type": "event"
374
+ },
375
+ {
376
+ "anonymous": false,
377
+ "inputs": [
378
+ {
379
+ "indexed": true,
380
+ "internalType": "address",
381
+ "name": "previousOwner",
382
+ "type": "address"
383
+ },
384
+ {
385
+ "indexed": true,
386
+ "internalType": "address",
387
+ "name": "newOwner",
388
+ "type": "address"
389
+ }
390
+ ],
391
+ "name": "OwnershipTransferred",
392
+ "type": "event"
393
+ },
394
+ {
395
+ "anonymous": false,
396
+ "inputs": [
397
+ {
398
+ "indexed": false,
399
+ "internalType": "address",
400
+ "name": "newFeeCollectorAddress",
401
+ "type": "address"
402
+ }
403
+ ],
404
+ "name": "SetFeeCollectorAddress",
405
+ "type": "event"
406
+ },
407
+ {
408
+ "anonymous": false,
409
+ "inputs": [
410
+ {
411
+ "indexed": false,
412
+ "internalType": "address",
413
+ "name": "newFeeOracleAddress",
414
+ "type": "address"
415
+ }
416
+ ],
417
+ "name": "SetFeeOracleAddress",
418
+ "type": "event"
419
+ },
420
+ {
421
+ "anonymous": false,
422
+ "inputs": [
423
+ {
424
+ "indexed": true,
425
+ "internalType": "address",
426
+ "name": "implementation",
427
+ "type": "address"
428
+ }
429
+ ],
430
+ "name": "Upgraded",
431
+ "type": "event"
432
+ },
433
+ {
434
+ "inputs": [
435
+ {
436
+ "components": [
437
+ {
438
+ "internalType": "bytes32",
439
+ "name": "messageId",
440
+ "type": "bytes32"
441
+ },
442
+ {
443
+ "internalType": "uint64",
444
+ "name": "sourceChainSelector",
445
+ "type": "uint64"
446
+ },
447
+ {
448
+ "internalType": "bytes",
449
+ "name": "sender",
450
+ "type": "bytes"
451
+ },
452
+ {
453
+ "internalType": "bytes",
454
+ "name": "data",
455
+ "type": "bytes"
456
+ },
457
+ {
458
+ "components": [
459
+ {
460
+ "internalType": "address",
461
+ "name": "token",
462
+ "type": "address"
463
+ },
464
+ {
465
+ "internalType": "uint256",
466
+ "name": "amount",
467
+ "type": "uint256"
468
+ }
469
+ ],
470
+ "internalType": "struct Client.EVMTokenAmount[]",
471
+ "name": "destTokenAmounts",
472
+ "type": "tuple[]"
473
+ }
474
+ ],
475
+ "internalType": "struct Client.Any2EVMMessage",
476
+ "name": "message",
477
+ "type": "tuple"
478
+ }
479
+ ],
480
+ "name": "ccipReceive",
481
+ "outputs": [],
482
+ "stateMutability": "nonpayable",
483
+ "type": "function"
484
+ },
485
+ {
486
+ "inputs": [
487
+ {
488
+ "internalType": "uint64",
489
+ "name": "",
490
+ "type": "uint64"
491
+ }
492
+ ],
493
+ "name": "chainSelectorToXSwapRouterMap",
494
+ "outputs": [
495
+ {
496
+ "internalType": "address",
497
+ "name": "",
498
+ "type": "address"
499
+ }
500
+ ],
501
+ "stateMutability": "view",
502
+ "type": "function"
503
+ },
504
+ {
505
+ "inputs": [
506
+ {
507
+ "internalType": "address",
508
+ "name": "_tokenToWithdraw",
509
+ "type": "address"
510
+ },
511
+ {
512
+ "internalType": "uint256",
513
+ "name": "_amountToWithdraw",
514
+ "type": "uint256"
515
+ }
516
+ ],
517
+ "name": "emergencyWithdraw",
518
+ "outputs": [],
519
+ "stateMutability": "nonpayable",
520
+ "type": "function"
521
+ },
522
+ {
523
+ "inputs": [],
524
+ "name": "feeCollectorAddress",
525
+ "outputs": [
526
+ {
527
+ "internalType": "address",
528
+ "name": "",
529
+ "type": "address"
530
+ }
531
+ ],
532
+ "stateMutability": "view",
533
+ "type": "function"
534
+ },
535
+ {
536
+ "inputs": [],
537
+ "name": "feeOracleAddress",
538
+ "outputs": [
539
+ {
540
+ "internalType": "address",
541
+ "name": "",
542
+ "type": "address"
543
+ }
544
+ ],
545
+ "stateMutability": "view",
546
+ "type": "function"
547
+ },
548
+ {
549
+ "inputs": [
550
+ {
551
+ "internalType": "address",
552
+ "name": "_paymentToken",
553
+ "type": "address"
554
+ },
555
+ {
556
+ "internalType": "uint64",
557
+ "name": "_destinationChainSelector",
558
+ "type": "uint64"
559
+ },
560
+ {
561
+ "components": [
562
+ {
563
+ "internalType": "address",
564
+ "name": "receiver",
565
+ "type": "address"
566
+ },
567
+ {
568
+ "internalType": "address",
569
+ "name": "tokenOut",
570
+ "type": "address"
571
+ },
572
+ {
573
+ "internalType": "uint256",
574
+ "name": "estimatedAmountOut",
575
+ "type": "uint256"
576
+ },
577
+ {
578
+ "components": [
579
+ {
580
+ "internalType": "enum CallType",
581
+ "name": "callType",
582
+ "type": "uint8"
583
+ },
584
+ {
585
+ "internalType": "address",
586
+ "name": "target",
587
+ "type": "address"
588
+ },
589
+ {
590
+ "internalType": "uint256",
591
+ "name": "value",
592
+ "type": "uint256"
593
+ },
594
+ {
595
+ "internalType": "bytes",
596
+ "name": "callData",
597
+ "type": "bytes"
598
+ },
599
+ {
600
+ "internalType": "bytes",
601
+ "name": "payload",
602
+ "type": "bytes"
603
+ }
604
+ ],
605
+ "internalType": "struct Call[]",
606
+ "name": "calls",
607
+ "type": "tuple[]"
608
+ }
609
+ ],
610
+ "internalType": "struct SwapDataDestination",
611
+ "name": "_swapDestinationData",
612
+ "type": "tuple"
613
+ },
614
+ {
615
+ "internalType": "address",
616
+ "name": "_token",
617
+ "type": "address"
618
+ },
619
+ {
620
+ "internalType": "uint256",
621
+ "name": "_amount",
622
+ "type": "uint256"
623
+ },
624
+ {
625
+ "internalType": "uint256",
626
+ "name": "_gasLimit",
627
+ "type": "uint256"
628
+ }
629
+ ],
630
+ "name": "getFees",
631
+ "outputs": [
632
+ {
633
+ "components": [
634
+ {
635
+ "internalType": "uint256",
636
+ "name": "ccipFee",
637
+ "type": "uint256"
638
+ },
639
+ {
640
+ "components": [
641
+ {
642
+ "internalType": "uint256",
643
+ "name": "tokenFee",
644
+ "type": "uint256"
645
+ },
646
+ {
647
+ "internalType": "uint256",
648
+ "name": "nativeFee",
649
+ "type": "uint256"
650
+ }
651
+ ],
652
+ "internalType": "struct XSwapFee",
653
+ "name": "xSwapFee",
654
+ "type": "tuple"
655
+ }
656
+ ],
657
+ "internalType": "struct MessageFees",
658
+ "name": "fees",
659
+ "type": "tuple"
660
+ }
661
+ ],
662
+ "stateMutability": "view",
663
+ "type": "function"
664
+ },
665
+ {
666
+ "inputs": [],
667
+ "name": "getRouter",
668
+ "outputs": [
669
+ {
670
+ "internalType": "address",
671
+ "name": "",
672
+ "type": "address"
673
+ }
674
+ ],
675
+ "stateMutability": "view",
676
+ "type": "function"
677
+ },
678
+ {
679
+ "inputs": [
680
+ {
681
+ "internalType": "address",
682
+ "name": "_ccipRouter",
683
+ "type": "address"
684
+ },
685
+ {
686
+ "internalType": "address",
687
+ "name": "_feeOracle",
688
+ "type": "address"
689
+ },
690
+ {
691
+ "internalType": "address",
692
+ "name": "_feeCollector",
693
+ "type": "address"
694
+ },
695
+ {
696
+ "internalType": "address",
697
+ "name": "_xSwapExecutor",
698
+ "type": "address"
699
+ },
700
+ {
701
+ "internalType": "address",
702
+ "name": "_owner",
703
+ "type": "address"
704
+ }
705
+ ],
706
+ "name": "initialize",
707
+ "outputs": [],
708
+ "stateMutability": "nonpayable",
709
+ "type": "function"
710
+ },
711
+ {
712
+ "inputs": [
713
+ {
714
+ "components": [
715
+ {
716
+ "internalType": "bytes32",
717
+ "name": "messageId",
718
+ "type": "bytes32"
719
+ },
720
+ {
721
+ "internalType": "uint64",
722
+ "name": "sourceChainSelector",
723
+ "type": "uint64"
724
+ },
725
+ {
726
+ "internalType": "bytes",
727
+ "name": "sender",
728
+ "type": "bytes"
729
+ },
730
+ {
731
+ "internalType": "bytes",
732
+ "name": "data",
733
+ "type": "bytes"
734
+ },
735
+ {
736
+ "components": [
737
+ {
738
+ "internalType": "address",
739
+ "name": "token",
740
+ "type": "address"
741
+ },
742
+ {
743
+ "internalType": "uint256",
744
+ "name": "amount",
745
+ "type": "uint256"
746
+ }
747
+ ],
748
+ "internalType": "struct Client.EVMTokenAmount[]",
749
+ "name": "destTokenAmounts",
750
+ "type": "tuple[]"
751
+ }
752
+ ],
753
+ "internalType": "struct Client.Any2EVMMessage",
754
+ "name": "_any2EvmMessage",
755
+ "type": "tuple"
756
+ }
757
+ ],
758
+ "name": "instantCcipReceive",
759
+ "outputs": [],
760
+ "stateMutability": "nonpayable",
761
+ "type": "function"
762
+ },
763
+ {
764
+ "inputs": [
765
+ {
766
+ "internalType": "bytes32",
767
+ "name": "",
768
+ "type": "bytes32"
769
+ }
770
+ ],
771
+ "name": "messageExecutionHashToExecutorMap",
772
+ "outputs": [
773
+ {
774
+ "internalType": "address",
775
+ "name": "",
776
+ "type": "address"
777
+ }
778
+ ],
779
+ "stateMutability": "view",
780
+ "type": "function"
781
+ },
782
+ {
783
+ "inputs": [],
784
+ "name": "owner",
785
+ "outputs": [
786
+ {
787
+ "internalType": "address",
788
+ "name": "",
789
+ "type": "address"
790
+ }
791
+ ],
792
+ "stateMutability": "view",
793
+ "type": "function"
794
+ },
795
+ {
796
+ "inputs": [],
797
+ "name": "proxiableUUID",
798
+ "outputs": [
799
+ {
800
+ "internalType": "bytes32",
801
+ "name": "",
802
+ "type": "bytes32"
803
+ }
804
+ ],
805
+ "stateMutability": "view",
806
+ "type": "function"
807
+ },
808
+ {
809
+ "inputs": [],
810
+ "name": "renounceOwnership",
811
+ "outputs": [],
812
+ "stateMutability": "nonpayable",
813
+ "type": "function"
814
+ },
815
+ {
816
+ "inputs": [
817
+ {
818
+ "internalType": "address",
819
+ "name": "_feeCollectorAddress",
820
+ "type": "address"
821
+ }
822
+ ],
823
+ "name": "setFeeCollectorAddress",
824
+ "outputs": [],
825
+ "stateMutability": "nonpayable",
826
+ "type": "function"
827
+ },
828
+ {
829
+ "inputs": [
830
+ {
831
+ "internalType": "address",
832
+ "name": "_feeOracleAddress",
833
+ "type": "address"
834
+ }
835
+ ],
836
+ "name": "setFeeOracleAddress",
837
+ "outputs": [],
838
+ "stateMutability": "nonpayable",
839
+ "type": "function"
840
+ },
841
+ {
842
+ "inputs": [
843
+ {
844
+ "internalType": "address",
845
+ "name": "_router",
846
+ "type": "address"
847
+ }
848
+ ],
849
+ "name": "setRouter",
850
+ "outputs": [],
851
+ "stateMutability": "nonpayable",
852
+ "type": "function"
853
+ },
854
+ {
855
+ "inputs": [
856
+ {
857
+ "internalType": "address",
858
+ "name": "_xSwapExecutor",
859
+ "type": "address"
860
+ }
861
+ ],
862
+ "name": "setXSwapExecutor",
863
+ "outputs": [],
864
+ "stateMutability": "nonpayable",
865
+ "type": "function"
866
+ },
867
+ {
868
+ "inputs": [
869
+ {
870
+ "internalType": "bytes4",
871
+ "name": "interfaceId",
872
+ "type": "bytes4"
873
+ }
874
+ ],
875
+ "name": "supportsInterface",
876
+ "outputs": [
877
+ {
878
+ "internalType": "bool",
879
+ "name": "",
880
+ "type": "bool"
881
+ }
882
+ ],
883
+ "stateMutability": "pure",
884
+ "type": "function"
885
+ },
886
+ {
887
+ "inputs": [
888
+ {
889
+ "internalType": "address",
890
+ "name": "_paymentToken",
891
+ "type": "address"
892
+ },
893
+ {
894
+ "internalType": "uint64",
895
+ "name": "_destinationChainSelector",
896
+ "type": "uint64"
897
+ },
898
+ {
899
+ "components": [
900
+ {
901
+ "internalType": "address",
902
+ "name": "receiver",
903
+ "type": "address"
904
+ },
905
+ {
906
+ "internalType": "address",
907
+ "name": "tokenOut",
908
+ "type": "address"
909
+ },
910
+ {
911
+ "internalType": "uint256",
912
+ "name": "estimatedAmountOut",
913
+ "type": "uint256"
914
+ },
915
+ {
916
+ "components": [
917
+ {
918
+ "internalType": "enum CallType",
919
+ "name": "callType",
920
+ "type": "uint8"
921
+ },
922
+ {
923
+ "internalType": "address",
924
+ "name": "target",
925
+ "type": "address"
926
+ },
927
+ {
928
+ "internalType": "uint256",
929
+ "name": "value",
930
+ "type": "uint256"
931
+ },
932
+ {
933
+ "internalType": "bytes",
934
+ "name": "callData",
935
+ "type": "bytes"
936
+ },
937
+ {
938
+ "internalType": "bytes",
939
+ "name": "payload",
940
+ "type": "bytes"
941
+ }
942
+ ],
943
+ "internalType": "struct Call[]",
944
+ "name": "calls",
945
+ "type": "tuple[]"
946
+ }
947
+ ],
948
+ "internalType": "struct SwapDataDestination",
949
+ "name": "_swapDestinationData",
950
+ "type": "tuple"
951
+ },
952
+ {
953
+ "components": [
954
+ {
955
+ "internalType": "address",
956
+ "name": "tokenIn",
957
+ "type": "address"
958
+ },
959
+ {
960
+ "internalType": "uint256",
961
+ "name": "amountIn",
962
+ "type": "uint256"
963
+ },
964
+ {
965
+ "internalType": "address",
966
+ "name": "tokenOut",
967
+ "type": "address"
968
+ },
969
+ {
970
+ "internalType": "uint256",
971
+ "name": "estimatedAmountOut",
972
+ "type": "uint256"
973
+ },
974
+ {
975
+ "internalType": "uint256",
976
+ "name": "valueForDestinationGas",
977
+ "type": "uint256"
978
+ },
979
+ {
980
+ "internalType": "uint256",
981
+ "name": "valueForInstantCcipRecieve",
982
+ "type": "uint256"
983
+ },
984
+ {
985
+ "components": [
986
+ {
987
+ "internalType": "enum CallType",
988
+ "name": "callType",
989
+ "type": "uint8"
990
+ },
991
+ {
992
+ "internalType": "address",
993
+ "name": "target",
994
+ "type": "address"
995
+ },
996
+ {
997
+ "internalType": "uint256",
998
+ "name": "value",
999
+ "type": "uint256"
1000
+ },
1001
+ {
1002
+ "internalType": "bytes",
1003
+ "name": "callData",
1004
+ "type": "bytes"
1005
+ },
1006
+ {
1007
+ "internalType": "bytes",
1008
+ "name": "payload",
1009
+ "type": "bytes"
1010
+ }
1011
+ ],
1012
+ "internalType": "struct Call[]",
1013
+ "name": "calls",
1014
+ "type": "tuple[]"
1015
+ }
1016
+ ],
1017
+ "internalType": "struct SwapDataOrigin",
1018
+ "name": "_swapOriginData",
1019
+ "type": "tuple"
1020
+ },
1021
+ {
1022
+ "internalType": "uint256",
1023
+ "name": "_gasLimit",
1024
+ "type": "uint256"
1025
+ }
1026
+ ],
1027
+ "name": "swapAndSendMessage",
1028
+ "outputs": [
1029
+ {
1030
+ "internalType": "bytes32",
1031
+ "name": "messageId",
1032
+ "type": "bytes32"
1033
+ }
1034
+ ],
1035
+ "stateMutability": "payable",
1036
+ "type": "function"
1037
+ },
1038
+ {
1039
+ "inputs": [
1040
+ {
1041
+ "internalType": "address",
1042
+ "name": "newOwner",
1043
+ "type": "address"
1044
+ }
1045
+ ],
1046
+ "name": "transferOwnership",
1047
+ "outputs": [],
1048
+ "stateMutability": "nonpayable",
1049
+ "type": "function"
1050
+ },
1051
+ {
1052
+ "inputs": [
1053
+ {
1054
+ "internalType": "uint64",
1055
+ "name": "_chainSelector",
1056
+ "type": "uint64"
1057
+ },
1058
+ {
1059
+ "internalType": "address",
1060
+ "name": "_xSwapRouter",
1061
+ "type": "address"
1062
+ }
1063
+ ],
1064
+ "name": "updateChainSelectorToXSwapRouterMap",
1065
+ "outputs": [],
1066
+ "stateMutability": "nonpayable",
1067
+ "type": "function"
1068
+ },
1069
+ {
1070
+ "inputs": [
1071
+ {
1072
+ "internalType": "uint64[]",
1073
+ "name": "_chainSelectors",
1074
+ "type": "uint64[]"
1075
+ },
1076
+ {
1077
+ "internalType": "address[]",
1078
+ "name": "_xSwapRouters",
1079
+ "type": "address[]"
1080
+ }
1081
+ ],
1082
+ "name": "updateChainSelectorToXSwapRouterMapMany",
1083
+ "outputs": [],
1084
+ "stateMutability": "nonpayable",
1085
+ "type": "function"
1086
+ },
1087
+ {
1088
+ "inputs": [
1089
+ {
1090
+ "internalType": "uint64",
1091
+ "name": "_sourceChainSelector",
1092
+ "type": "uint64"
1093
+ },
1094
+ {
1095
+ "internalType": "address",
1096
+ "name": "_sender",
1097
+ "type": "address"
1098
+ },
1099
+ {
1100
+ "internalType": "bool",
1101
+ "name": "_isWhitelisted",
1102
+ "type": "bool"
1103
+ }
1104
+ ],
1105
+ "name": "updateWhitelistSender",
1106
+ "outputs": [],
1107
+ "stateMutability": "nonpayable",
1108
+ "type": "function"
1109
+ },
1110
+ {
1111
+ "inputs": [
1112
+ {
1113
+ "internalType": "uint64[]",
1114
+ "name": "_sourceChainSelectors",
1115
+ "type": "uint64[]"
1116
+ },
1117
+ {
1118
+ "internalType": "address[]",
1119
+ "name": "_senders",
1120
+ "type": "address[]"
1121
+ },
1122
+ {
1123
+ "internalType": "bool[]",
1124
+ "name": "_areWhitelisted",
1125
+ "type": "bool[]"
1126
+ }
1127
+ ],
1128
+ "name": "updateWhitelistSenderMany",
1129
+ "outputs": [],
1130
+ "stateMutability": "nonpayable",
1131
+ "type": "function"
1132
+ },
1133
+ {
1134
+ "inputs": [
1135
+ {
1136
+ "internalType": "address",
1137
+ "name": "_token",
1138
+ "type": "address"
1139
+ },
1140
+ {
1141
+ "internalType": "bool",
1142
+ "name": "_isWhitelisted",
1143
+ "type": "bool"
1144
+ }
1145
+ ],
1146
+ "name": "updateWhitelistToken",
1147
+ "outputs": [],
1148
+ "stateMutability": "nonpayable",
1149
+ "type": "function"
1150
+ },
1151
+ {
1152
+ "inputs": [
1153
+ {
1154
+ "internalType": "address",
1155
+ "name": "newImplementation",
1156
+ "type": "address"
1157
+ }
1158
+ ],
1159
+ "name": "upgradeTo",
1160
+ "outputs": [],
1161
+ "stateMutability": "nonpayable",
1162
+ "type": "function"
1163
+ },
1164
+ {
1165
+ "inputs": [
1166
+ {
1167
+ "internalType": "address",
1168
+ "name": "newImplementation",
1169
+ "type": "address"
1170
+ },
1171
+ {
1172
+ "internalType": "bytes",
1173
+ "name": "data",
1174
+ "type": "bytes"
1175
+ }
1176
+ ],
1177
+ "name": "upgradeToAndCall",
1178
+ "outputs": [],
1179
+ "stateMutability": "payable",
1180
+ "type": "function"
1181
+ },
1182
+ {
1183
+ "inputs": [
1184
+ {
1185
+ "internalType": "uint64",
1186
+ "name": "",
1187
+ "type": "uint64"
1188
+ },
1189
+ {
1190
+ "internalType": "address",
1191
+ "name": "",
1192
+ "type": "address"
1193
+ }
1194
+ ],
1195
+ "name": "whitelistedSenders",
1196
+ "outputs": [
1197
+ {
1198
+ "internalType": "bool",
1199
+ "name": "",
1200
+ "type": "bool"
1201
+ }
1202
+ ],
1203
+ "stateMutability": "view",
1204
+ "type": "function"
1205
+ },
1206
+ {
1207
+ "inputs": [
1208
+ {
1209
+ "internalType": "address",
1210
+ "name": "",
1211
+ "type": "address"
1212
+ }
1213
+ ],
1214
+ "name": "whitelistedTokens",
1215
+ "outputs": [
1216
+ {
1217
+ "internalType": "bool",
1218
+ "name": "",
1219
+ "type": "bool"
1220
+ }
1221
+ ],
1222
+ "stateMutability": "view",
1223
+ "type": "function"
1224
+ },
1225
+ {
1226
+ "inputs": [],
1227
+ "name": "xSwapExecutor",
1228
+ "outputs": [
1229
+ {
1230
+ "internalType": "address",
1231
+ "name": "",
1232
+ "type": "address"
1233
+ }
1234
+ ],
1235
+ "stateMutability": "view",
1236
+ "type": "function"
1237
+ },
1238
+ {
1239
+ "stateMutability": "payable",
1240
+ "type": "receive"
1241
+ }
1242
+ ]