@centurion_project/router-sdk 2.11.4 → 2.11.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,717 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ISwapRouter02",
4
+ "sourceName": "contracts/interfaces/ISwapRouter02.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "token",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "name": "approveMax",
15
+ "outputs": [],
16
+ "stateMutability": "payable",
17
+ "type": "function"
18
+ },
19
+ {
20
+ "inputs": [
21
+ {
22
+ "internalType": "address",
23
+ "name": "token",
24
+ "type": "address"
25
+ }
26
+ ],
27
+ "name": "approveMaxMinusOne",
28
+ "outputs": [],
29
+ "stateMutability": "payable",
30
+ "type": "function"
31
+ },
32
+ {
33
+ "inputs": [
34
+ {
35
+ "internalType": "address",
36
+ "name": "token",
37
+ "type": "address"
38
+ }
39
+ ],
40
+ "name": "approveZeroThenMax",
41
+ "outputs": [],
42
+ "stateMutability": "payable",
43
+ "type": "function"
44
+ },
45
+ {
46
+ "inputs": [
47
+ {
48
+ "internalType": "address",
49
+ "name": "token",
50
+ "type": "address"
51
+ }
52
+ ],
53
+ "name": "approveZeroThenMaxMinusOne",
54
+ "outputs": [],
55
+ "stateMutability": "payable",
56
+ "type": "function"
57
+ },
58
+ {
59
+ "inputs": [
60
+ {
61
+ "internalType": "bytes",
62
+ "name": "data",
63
+ "type": "bytes"
64
+ }
65
+ ],
66
+ "name": "callPositionManager",
67
+ "outputs": [
68
+ {
69
+ "internalType": "bytes",
70
+ "name": "result",
71
+ "type": "bytes"
72
+ }
73
+ ],
74
+ "stateMutability": "payable",
75
+ "type": "function"
76
+ },
77
+ {
78
+ "inputs": [
79
+ {
80
+ "components": [
81
+ {
82
+ "internalType": "bytes",
83
+ "name": "path",
84
+ "type": "bytes"
85
+ },
86
+ {
87
+ "internalType": "address",
88
+ "name": "recipient",
89
+ "type": "address"
90
+ },
91
+ {
92
+ "internalType": "uint256",
93
+ "name": "amountIn",
94
+ "type": "uint256"
95
+ },
96
+ {
97
+ "internalType": "uint256",
98
+ "name": "amountOutMinimum",
99
+ "type": "uint256"
100
+ }
101
+ ],
102
+ "internalType": "struct IV3SwapRouter.ExactInputParams",
103
+ "name": "params",
104
+ "type": "tuple"
105
+ }
106
+ ],
107
+ "name": "exactInput",
108
+ "outputs": [
109
+ {
110
+ "internalType": "uint256",
111
+ "name": "amountOut",
112
+ "type": "uint256"
113
+ }
114
+ ],
115
+ "stateMutability": "payable",
116
+ "type": "function"
117
+ },
118
+ {
119
+ "inputs": [
120
+ {
121
+ "components": [
122
+ {
123
+ "internalType": "address",
124
+ "name": "tokenIn",
125
+ "type": "address"
126
+ },
127
+ {
128
+ "internalType": "address",
129
+ "name": "tokenOut",
130
+ "type": "address"
131
+ },
132
+ {
133
+ "internalType": "uint24",
134
+ "name": "fee",
135
+ "type": "uint24"
136
+ },
137
+ {
138
+ "internalType": "address",
139
+ "name": "recipient",
140
+ "type": "address"
141
+ },
142
+ {
143
+ "internalType": "uint256",
144
+ "name": "amountIn",
145
+ "type": "uint256"
146
+ },
147
+ {
148
+ "internalType": "uint256",
149
+ "name": "amountOutMinimum",
150
+ "type": "uint256"
151
+ },
152
+ {
153
+ "internalType": "uint160",
154
+ "name": "sqrtPriceLimitX96",
155
+ "type": "uint160"
156
+ }
157
+ ],
158
+ "internalType": "struct IV3SwapRouter.ExactInputSingleParams",
159
+ "name": "params",
160
+ "type": "tuple"
161
+ }
162
+ ],
163
+ "name": "exactInputSingle",
164
+ "outputs": [
165
+ {
166
+ "internalType": "uint256",
167
+ "name": "amountOut",
168
+ "type": "uint256"
169
+ }
170
+ ],
171
+ "stateMutability": "payable",
172
+ "type": "function"
173
+ },
174
+ {
175
+ "inputs": [
176
+ {
177
+ "components": [
178
+ {
179
+ "internalType": "bytes",
180
+ "name": "path",
181
+ "type": "bytes"
182
+ },
183
+ {
184
+ "internalType": "address",
185
+ "name": "recipient",
186
+ "type": "address"
187
+ },
188
+ {
189
+ "internalType": "uint256",
190
+ "name": "amountOut",
191
+ "type": "uint256"
192
+ },
193
+ {
194
+ "internalType": "uint256",
195
+ "name": "amountInMaximum",
196
+ "type": "uint256"
197
+ }
198
+ ],
199
+ "internalType": "struct IV3SwapRouter.ExactOutputParams",
200
+ "name": "params",
201
+ "type": "tuple"
202
+ }
203
+ ],
204
+ "name": "exactOutput",
205
+ "outputs": [
206
+ {
207
+ "internalType": "uint256",
208
+ "name": "amountIn",
209
+ "type": "uint256"
210
+ }
211
+ ],
212
+ "stateMutability": "payable",
213
+ "type": "function"
214
+ },
215
+ {
216
+ "inputs": [
217
+ {
218
+ "components": [
219
+ {
220
+ "internalType": "address",
221
+ "name": "tokenIn",
222
+ "type": "address"
223
+ },
224
+ {
225
+ "internalType": "address",
226
+ "name": "tokenOut",
227
+ "type": "address"
228
+ },
229
+ {
230
+ "internalType": "uint24",
231
+ "name": "fee",
232
+ "type": "uint24"
233
+ },
234
+ {
235
+ "internalType": "address",
236
+ "name": "recipient",
237
+ "type": "address"
238
+ },
239
+ {
240
+ "internalType": "uint256",
241
+ "name": "amountOut",
242
+ "type": "uint256"
243
+ },
244
+ {
245
+ "internalType": "uint256",
246
+ "name": "amountInMaximum",
247
+ "type": "uint256"
248
+ },
249
+ {
250
+ "internalType": "uint160",
251
+ "name": "sqrtPriceLimitX96",
252
+ "type": "uint160"
253
+ }
254
+ ],
255
+ "internalType": "struct IV3SwapRouter.ExactOutputSingleParams",
256
+ "name": "params",
257
+ "type": "tuple"
258
+ }
259
+ ],
260
+ "name": "exactOutputSingle",
261
+ "outputs": [
262
+ {
263
+ "internalType": "uint256",
264
+ "name": "amountIn",
265
+ "type": "uint256"
266
+ }
267
+ ],
268
+ "stateMutability": "payable",
269
+ "type": "function"
270
+ },
271
+ {
272
+ "inputs": [
273
+ {
274
+ "internalType": "address",
275
+ "name": "token",
276
+ "type": "address"
277
+ },
278
+ {
279
+ "internalType": "uint256",
280
+ "name": "amount",
281
+ "type": "uint256"
282
+ }
283
+ ],
284
+ "name": "getApprovalType",
285
+ "outputs": [
286
+ {
287
+ "internalType": "enum IApproveAndCall.ApprovalType",
288
+ "name": "",
289
+ "type": "uint8"
290
+ }
291
+ ],
292
+ "stateMutability": "nonpayable",
293
+ "type": "function"
294
+ },
295
+ {
296
+ "inputs": [
297
+ {
298
+ "components": [
299
+ {
300
+ "internalType": "address",
301
+ "name": "token0",
302
+ "type": "address"
303
+ },
304
+ {
305
+ "internalType": "address",
306
+ "name": "token1",
307
+ "type": "address"
308
+ },
309
+ {
310
+ "internalType": "uint256",
311
+ "name": "tokenId",
312
+ "type": "uint256"
313
+ },
314
+ {
315
+ "internalType": "uint256",
316
+ "name": "amount0Min",
317
+ "type": "uint256"
318
+ },
319
+ {
320
+ "internalType": "uint256",
321
+ "name": "amount1Min",
322
+ "type": "uint256"
323
+ }
324
+ ],
325
+ "internalType": "struct IApproveAndCall.IncreaseLiquidityParams",
326
+ "name": "params",
327
+ "type": "tuple"
328
+ }
329
+ ],
330
+ "name": "increaseLiquidity",
331
+ "outputs": [
332
+ {
333
+ "internalType": "bytes",
334
+ "name": "result",
335
+ "type": "bytes"
336
+ }
337
+ ],
338
+ "stateMutability": "payable",
339
+ "type": "function"
340
+ },
341
+ {
342
+ "inputs": [
343
+ {
344
+ "components": [
345
+ {
346
+ "internalType": "address",
347
+ "name": "token0",
348
+ "type": "address"
349
+ },
350
+ {
351
+ "internalType": "address",
352
+ "name": "token1",
353
+ "type": "address"
354
+ },
355
+ {
356
+ "internalType": "uint24",
357
+ "name": "fee",
358
+ "type": "uint24"
359
+ },
360
+ {
361
+ "internalType": "int24",
362
+ "name": "tickLower",
363
+ "type": "int24"
364
+ },
365
+ {
366
+ "internalType": "int24",
367
+ "name": "tickUpper",
368
+ "type": "int24"
369
+ },
370
+ {
371
+ "internalType": "uint256",
372
+ "name": "amount0Min",
373
+ "type": "uint256"
374
+ },
375
+ {
376
+ "internalType": "uint256",
377
+ "name": "amount1Min",
378
+ "type": "uint256"
379
+ },
380
+ {
381
+ "internalType": "address",
382
+ "name": "recipient",
383
+ "type": "address"
384
+ }
385
+ ],
386
+ "internalType": "struct IApproveAndCall.MintParams",
387
+ "name": "params",
388
+ "type": "tuple"
389
+ }
390
+ ],
391
+ "name": "mint",
392
+ "outputs": [
393
+ {
394
+ "internalType": "bytes",
395
+ "name": "result",
396
+ "type": "bytes"
397
+ }
398
+ ],
399
+ "stateMutability": "payable",
400
+ "type": "function"
401
+ },
402
+ {
403
+ "inputs": [
404
+ {
405
+ "internalType": "bytes32",
406
+ "name": "previousBlockhash",
407
+ "type": "bytes32"
408
+ },
409
+ {
410
+ "internalType": "bytes[]",
411
+ "name": "data",
412
+ "type": "bytes[]"
413
+ }
414
+ ],
415
+ "name": "multicall",
416
+ "outputs": [
417
+ {
418
+ "internalType": "bytes[]",
419
+ "name": "results",
420
+ "type": "bytes[]"
421
+ }
422
+ ],
423
+ "stateMutability": "payable",
424
+ "type": "function"
425
+ },
426
+ {
427
+ "inputs": [
428
+ {
429
+ "internalType": "uint256",
430
+ "name": "deadline",
431
+ "type": "uint256"
432
+ },
433
+ {
434
+ "internalType": "bytes[]",
435
+ "name": "data",
436
+ "type": "bytes[]"
437
+ }
438
+ ],
439
+ "name": "multicall",
440
+ "outputs": [
441
+ {
442
+ "internalType": "bytes[]",
443
+ "name": "results",
444
+ "type": "bytes[]"
445
+ }
446
+ ],
447
+ "stateMutability": "payable",
448
+ "type": "function"
449
+ },
450
+ {
451
+ "inputs": [
452
+ {
453
+ "internalType": "bytes[]",
454
+ "name": "data",
455
+ "type": "bytes[]"
456
+ }
457
+ ],
458
+ "name": "multicall",
459
+ "outputs": [
460
+ {
461
+ "internalType": "bytes[]",
462
+ "name": "results",
463
+ "type": "bytes[]"
464
+ }
465
+ ],
466
+ "stateMutability": "payable",
467
+ "type": "function"
468
+ },
469
+ {
470
+ "inputs": [
471
+ {
472
+ "internalType": "address",
473
+ "name": "token",
474
+ "type": "address"
475
+ },
476
+ {
477
+ "internalType": "uint256",
478
+ "name": "value",
479
+ "type": "uint256"
480
+ },
481
+ {
482
+ "internalType": "uint256",
483
+ "name": "deadline",
484
+ "type": "uint256"
485
+ },
486
+ {
487
+ "internalType": "uint8",
488
+ "name": "v",
489
+ "type": "uint8"
490
+ },
491
+ {
492
+ "internalType": "bytes32",
493
+ "name": "r",
494
+ "type": "bytes32"
495
+ },
496
+ {
497
+ "internalType": "bytes32",
498
+ "name": "s",
499
+ "type": "bytes32"
500
+ }
501
+ ],
502
+ "name": "selfPermit",
503
+ "outputs": [],
504
+ "stateMutability": "payable",
505
+ "type": "function"
506
+ },
507
+ {
508
+ "inputs": [
509
+ {
510
+ "internalType": "address",
511
+ "name": "token",
512
+ "type": "address"
513
+ },
514
+ {
515
+ "internalType": "uint256",
516
+ "name": "nonce",
517
+ "type": "uint256"
518
+ },
519
+ {
520
+ "internalType": "uint256",
521
+ "name": "expiry",
522
+ "type": "uint256"
523
+ },
524
+ {
525
+ "internalType": "uint8",
526
+ "name": "v",
527
+ "type": "uint8"
528
+ },
529
+ {
530
+ "internalType": "bytes32",
531
+ "name": "r",
532
+ "type": "bytes32"
533
+ },
534
+ {
535
+ "internalType": "bytes32",
536
+ "name": "s",
537
+ "type": "bytes32"
538
+ }
539
+ ],
540
+ "name": "selfPermitAllowed",
541
+ "outputs": [],
542
+ "stateMutability": "payable",
543
+ "type": "function"
544
+ },
545
+ {
546
+ "inputs": [
547
+ {
548
+ "internalType": "address",
549
+ "name": "token",
550
+ "type": "address"
551
+ },
552
+ {
553
+ "internalType": "uint256",
554
+ "name": "nonce",
555
+ "type": "uint256"
556
+ },
557
+ {
558
+ "internalType": "uint256",
559
+ "name": "expiry",
560
+ "type": "uint256"
561
+ },
562
+ {
563
+ "internalType": "uint8",
564
+ "name": "v",
565
+ "type": "uint8"
566
+ },
567
+ {
568
+ "internalType": "bytes32",
569
+ "name": "r",
570
+ "type": "bytes32"
571
+ },
572
+ {
573
+ "internalType": "bytes32",
574
+ "name": "s",
575
+ "type": "bytes32"
576
+ }
577
+ ],
578
+ "name": "selfPermitAllowedIfNecessary",
579
+ "outputs": [],
580
+ "stateMutability": "payable",
581
+ "type": "function"
582
+ },
583
+ {
584
+ "inputs": [
585
+ {
586
+ "internalType": "address",
587
+ "name": "token",
588
+ "type": "address"
589
+ },
590
+ {
591
+ "internalType": "uint256",
592
+ "name": "value",
593
+ "type": "uint256"
594
+ },
595
+ {
596
+ "internalType": "uint256",
597
+ "name": "deadline",
598
+ "type": "uint256"
599
+ },
600
+ {
601
+ "internalType": "uint8",
602
+ "name": "v",
603
+ "type": "uint8"
604
+ },
605
+ {
606
+ "internalType": "bytes32",
607
+ "name": "r",
608
+ "type": "bytes32"
609
+ },
610
+ {
611
+ "internalType": "bytes32",
612
+ "name": "s",
613
+ "type": "bytes32"
614
+ }
615
+ ],
616
+ "name": "selfPermitIfNecessary",
617
+ "outputs": [],
618
+ "stateMutability": "payable",
619
+ "type": "function"
620
+ },
621
+ {
622
+ "inputs": [
623
+ {
624
+ "internalType": "uint256",
625
+ "name": "amountIn",
626
+ "type": "uint256"
627
+ },
628
+ {
629
+ "internalType": "uint256",
630
+ "name": "amountOutMin",
631
+ "type": "uint256"
632
+ },
633
+ {
634
+ "internalType": "address[]",
635
+ "name": "path",
636
+ "type": "address[]"
637
+ },
638
+ {
639
+ "internalType": "address",
640
+ "name": "to",
641
+ "type": "address"
642
+ }
643
+ ],
644
+ "name": "swapExactTokensForTokens",
645
+ "outputs": [
646
+ {
647
+ "internalType": "uint256",
648
+ "name": "amountOut",
649
+ "type": "uint256"
650
+ }
651
+ ],
652
+ "stateMutability": "payable",
653
+ "type": "function"
654
+ },
655
+ {
656
+ "inputs": [
657
+ {
658
+ "internalType": "uint256",
659
+ "name": "amountOut",
660
+ "type": "uint256"
661
+ },
662
+ {
663
+ "internalType": "uint256",
664
+ "name": "amountInMax",
665
+ "type": "uint256"
666
+ },
667
+ {
668
+ "internalType": "address[]",
669
+ "name": "path",
670
+ "type": "address[]"
671
+ },
672
+ {
673
+ "internalType": "address",
674
+ "name": "to",
675
+ "type": "address"
676
+ }
677
+ ],
678
+ "name": "swapTokensForExactTokens",
679
+ "outputs": [
680
+ {
681
+ "internalType": "uint256",
682
+ "name": "amountIn",
683
+ "type": "uint256"
684
+ }
685
+ ],
686
+ "stateMutability": "payable",
687
+ "type": "function"
688
+ },
689
+ {
690
+ "inputs": [
691
+ {
692
+ "internalType": "int256",
693
+ "name": "amount0Delta",
694
+ "type": "int256"
695
+ },
696
+ {
697
+ "internalType": "int256",
698
+ "name": "amount1Delta",
699
+ "type": "int256"
700
+ },
701
+ {
702
+ "internalType": "bytes",
703
+ "name": "data",
704
+ "type": "bytes"
705
+ }
706
+ ],
707
+ "name": "uniswapV3SwapCallback",
708
+ "outputs": [],
709
+ "stateMutability": "nonpayable",
710
+ "type": "function"
711
+ }
712
+ ],
713
+ "bytecode": "0x",
714
+ "deployedBytecode": "0x",
715
+ "linkReferences": {},
716
+ "deployedLinkReferences": {}
717
+ }