@arcadia-finance/mcp-server 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/LICENSE.md +97 -0
  2. package/README.md +186 -0
  3. package/dist/abis/account.json +1012 -0
  4. package/dist/abis/account_v4.json +1027 -0
  5. package/dist/abis/chainlink.json +509 -0
  6. package/dist/abis/erc20.json +299 -0
  7. package/dist/abis/factory.json +938 -0
  8. package/dist/abis/gauge_helper.json +84 -0
  9. package/dist/abis/index.js +26 -0
  10. package/dist/abis/mainreg.json +1172 -0
  11. package/dist/abis/nftmanager.json +1221 -0
  12. package/dist/abis/nftmanager_v4.json +1297 -0
  13. package/dist/abis/pool.json +2136 -0
  14. package/dist/abis/slipstream_nftmanager.json +1312 -0
  15. package/dist/abis/staked_aero_am.json +1220 -0
  16. package/dist/abis/staked_slipstream_am.json +1131 -0
  17. package/dist/abis/state_viewer.json +365 -0
  18. package/dist/abis/tranche.json +1004 -0
  19. package/dist/abis/wrapped_aero_am.json +1232 -0
  20. package/dist/abis/wrapped_staked_slipstream_am.json +338 -0
  21. package/dist/clients/api.js +189 -0
  22. package/dist/clients/chain.js +30 -0
  23. package/dist/config/addresses.js +94 -0
  24. package/dist/config/chains.js +31 -0
  25. package/dist/index.js +29 -0
  26. package/dist/skills/clamm-liquidity/SKILL.md +167 -0
  27. package/dist/skills/clamm-liquidity/automation.md +138 -0
  28. package/dist/skills/clamm-liquidity/selection.md +183 -0
  29. package/dist/skills/clamm-liquidity/strategies.md +337 -0
  30. package/dist/tools/advanced/account-metadata.js +46 -0
  31. package/dist/tools/advanced/add-liquidity.js +310 -0
  32. package/dist/tools/advanced/close-position.js +208 -0
  33. package/dist/tools/advanced/format-response.js +26 -0
  34. package/dist/tools/advanced/position-actions.js +95 -0
  35. package/dist/tools/advanced/remove-liquidity.js +68 -0
  36. package/dist/tools/advanced/repay-with-collateral.js +66 -0
  37. package/dist/tools/advanced/swap.js +64 -0
  38. package/dist/tools/index.js +52 -0
  39. package/dist/tools/read/accounts.js +243 -0
  40. package/dist/tools/read/allowances.js +86 -0
  41. package/dist/tools/read/assets.js +54 -0
  42. package/dist/tools/read/balances.js +93 -0
  43. package/dist/tools/read/guides.js +59 -0
  44. package/dist/tools/read/points.js +25 -0
  45. package/dist/tools/read/pools.js +48 -0
  46. package/dist/tools/read/protocol.js +94 -0
  47. package/dist/tools/write/approve.js +99 -0
  48. package/dist/tools/write/borrow.js +87 -0
  49. package/dist/tools/write/configure-asset-manager.js +258 -0
  50. package/dist/tools/write/create-account.js +112 -0
  51. package/dist/tools/write/deposit.js +104 -0
  52. package/dist/tools/write/repay.js +56 -0
  53. package/dist/tools/write/set-asset-manager.js +65 -0
  54. package/dist/tools/write/sign-and-send.js +90 -0
  55. package/dist/tools/write/withdraw.js +114 -0
  56. package/dist/types/api.js +5 -0
  57. package/dist/utils/attribution.js +20 -0
  58. package/dist/utils/validation.js +17 -0
  59. package/package.json +67 -0
@@ -0,0 +1,1297 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "contract IPoolManager",
6
+ "name": "_poolManager",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "contract IAllowanceTransfer",
11
+ "name": "_permit2",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "uint256",
16
+ "name": "_unsubscribeGasLimit",
17
+ "type": "uint256"
18
+ },
19
+ {
20
+ "internalType": "contract IPositionDescriptor",
21
+ "name": "_tokenDescriptor",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "contract IWETH9",
26
+ "name": "_weth9",
27
+ "type": "address"
28
+ }
29
+ ],
30
+ "stateMutability": "nonpayable",
31
+ "type": "constructor"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "uint256",
37
+ "name": "tokenId",
38
+ "type": "uint256"
39
+ },
40
+ {
41
+ "internalType": "address",
42
+ "name": "subscriber",
43
+ "type": "address"
44
+ }
45
+ ],
46
+ "name": "AlreadySubscribed",
47
+ "type": "error"
48
+ },
49
+ {
50
+ "inputs": [
51
+ {
52
+ "internalType": "address",
53
+ "name": "subscriber",
54
+ "type": "address"
55
+ },
56
+ {
57
+ "internalType": "bytes",
58
+ "name": "reason",
59
+ "type": "bytes"
60
+ }
61
+ ],
62
+ "name": "BurnNotificationReverted",
63
+ "type": "error"
64
+ },
65
+ {
66
+ "inputs": [],
67
+ "name": "ContractLocked",
68
+ "type": "error"
69
+ },
70
+ {
71
+ "inputs": [
72
+ {
73
+ "internalType": "uint256",
74
+ "name": "deadline",
75
+ "type": "uint256"
76
+ }
77
+ ],
78
+ "name": "DeadlinePassed",
79
+ "type": "error"
80
+ },
81
+ {
82
+ "inputs": [
83
+ {
84
+ "internalType": "Currency",
85
+ "name": "currency",
86
+ "type": "address"
87
+ }
88
+ ],
89
+ "name": "DeltaNotNegative",
90
+ "type": "error"
91
+ },
92
+ {
93
+ "inputs": [
94
+ {
95
+ "internalType": "Currency",
96
+ "name": "currency",
97
+ "type": "address"
98
+ }
99
+ ],
100
+ "name": "DeltaNotPositive",
101
+ "type": "error"
102
+ },
103
+ {
104
+ "inputs": [],
105
+ "name": "GasLimitTooLow",
106
+ "type": "error"
107
+ },
108
+ {
109
+ "inputs": [],
110
+ "name": "InputLengthMismatch",
111
+ "type": "error"
112
+ },
113
+ {
114
+ "inputs": [],
115
+ "name": "InsufficientBalance",
116
+ "type": "error"
117
+ },
118
+ {
119
+ "inputs": [],
120
+ "name": "InvalidContractSignature",
121
+ "type": "error"
122
+ },
123
+ {
124
+ "inputs": [],
125
+ "name": "InvalidEthSender",
126
+ "type": "error"
127
+ },
128
+ {
129
+ "inputs": [],
130
+ "name": "InvalidSignature",
131
+ "type": "error"
132
+ },
133
+ {
134
+ "inputs": [],
135
+ "name": "InvalidSignatureLength",
136
+ "type": "error"
137
+ },
138
+ {
139
+ "inputs": [],
140
+ "name": "InvalidSigner",
141
+ "type": "error"
142
+ },
143
+ {
144
+ "inputs": [
145
+ {
146
+ "internalType": "uint128",
147
+ "name": "maximumAmount",
148
+ "type": "uint128"
149
+ },
150
+ {
151
+ "internalType": "uint128",
152
+ "name": "amountRequested",
153
+ "type": "uint128"
154
+ }
155
+ ],
156
+ "name": "MaximumAmountExceeded",
157
+ "type": "error"
158
+ },
159
+ {
160
+ "inputs": [
161
+ {
162
+ "internalType": "uint128",
163
+ "name": "minimumAmount",
164
+ "type": "uint128"
165
+ },
166
+ {
167
+ "internalType": "uint128",
168
+ "name": "amountReceived",
169
+ "type": "uint128"
170
+ }
171
+ ],
172
+ "name": "MinimumAmountInsufficient",
173
+ "type": "error"
174
+ },
175
+ {
176
+ "inputs": [
177
+ {
178
+ "internalType": "address",
179
+ "name": "subscriber",
180
+ "type": "address"
181
+ },
182
+ {
183
+ "internalType": "bytes",
184
+ "name": "reason",
185
+ "type": "bytes"
186
+ }
187
+ ],
188
+ "name": "ModifyLiquidityNotificationReverted",
189
+ "type": "error"
190
+ },
191
+ {
192
+ "inputs": [],
193
+ "name": "NoCodeSubscriber",
194
+ "type": "error"
195
+ },
196
+ {
197
+ "inputs": [],
198
+ "name": "NoSelfPermit",
199
+ "type": "error"
200
+ },
201
+ {
202
+ "inputs": [],
203
+ "name": "NonceAlreadyUsed",
204
+ "type": "error"
205
+ },
206
+ {
207
+ "inputs": [
208
+ {
209
+ "internalType": "address",
210
+ "name": "caller",
211
+ "type": "address"
212
+ }
213
+ ],
214
+ "name": "NotApproved",
215
+ "type": "error"
216
+ },
217
+ {
218
+ "inputs": [],
219
+ "name": "NotPoolManager",
220
+ "type": "error"
221
+ },
222
+ {
223
+ "inputs": [],
224
+ "name": "NotSubscribed",
225
+ "type": "error"
226
+ },
227
+ {
228
+ "inputs": [],
229
+ "name": "PoolManagerMustBeLocked",
230
+ "type": "error"
231
+ },
232
+ {
233
+ "inputs": [],
234
+ "name": "SignatureDeadlineExpired",
235
+ "type": "error"
236
+ },
237
+ {
238
+ "inputs": [
239
+ {
240
+ "internalType": "address",
241
+ "name": "subscriber",
242
+ "type": "address"
243
+ },
244
+ {
245
+ "internalType": "bytes",
246
+ "name": "reason",
247
+ "type": "bytes"
248
+ }
249
+ ],
250
+ "name": "SubscriptionReverted",
251
+ "type": "error"
252
+ },
253
+ {
254
+ "inputs": [],
255
+ "name": "Unauthorized",
256
+ "type": "error"
257
+ },
258
+ {
259
+ "inputs": [
260
+ {
261
+ "internalType": "uint256",
262
+ "name": "action",
263
+ "type": "uint256"
264
+ }
265
+ ],
266
+ "name": "UnsupportedAction",
267
+ "type": "error"
268
+ },
269
+ {
270
+ "anonymous": false,
271
+ "inputs": [
272
+ {
273
+ "indexed": true,
274
+ "internalType": "address",
275
+ "name": "owner",
276
+ "type": "address"
277
+ },
278
+ {
279
+ "indexed": true,
280
+ "internalType": "address",
281
+ "name": "spender",
282
+ "type": "address"
283
+ },
284
+ {
285
+ "indexed": true,
286
+ "internalType": "uint256",
287
+ "name": "id",
288
+ "type": "uint256"
289
+ }
290
+ ],
291
+ "name": "Approval",
292
+ "type": "event"
293
+ },
294
+ {
295
+ "anonymous": false,
296
+ "inputs": [
297
+ {
298
+ "indexed": true,
299
+ "internalType": "address",
300
+ "name": "owner",
301
+ "type": "address"
302
+ },
303
+ {
304
+ "indexed": true,
305
+ "internalType": "address",
306
+ "name": "operator",
307
+ "type": "address"
308
+ },
309
+ {
310
+ "indexed": false,
311
+ "internalType": "bool",
312
+ "name": "approved",
313
+ "type": "bool"
314
+ }
315
+ ],
316
+ "name": "ApprovalForAll",
317
+ "type": "event"
318
+ },
319
+ {
320
+ "anonymous": false,
321
+ "inputs": [
322
+ {
323
+ "indexed": true,
324
+ "internalType": "uint256",
325
+ "name": "tokenId",
326
+ "type": "uint256"
327
+ },
328
+ {
329
+ "indexed": true,
330
+ "internalType": "address",
331
+ "name": "subscriber",
332
+ "type": "address"
333
+ }
334
+ ],
335
+ "name": "Subscription",
336
+ "type": "event"
337
+ },
338
+ {
339
+ "anonymous": false,
340
+ "inputs": [
341
+ {
342
+ "indexed": true,
343
+ "internalType": "address",
344
+ "name": "from",
345
+ "type": "address"
346
+ },
347
+ {
348
+ "indexed": true,
349
+ "internalType": "address",
350
+ "name": "to",
351
+ "type": "address"
352
+ },
353
+ {
354
+ "indexed": true,
355
+ "internalType": "uint256",
356
+ "name": "id",
357
+ "type": "uint256"
358
+ }
359
+ ],
360
+ "name": "Transfer",
361
+ "type": "event"
362
+ },
363
+ {
364
+ "anonymous": false,
365
+ "inputs": [
366
+ {
367
+ "indexed": true,
368
+ "internalType": "uint256",
369
+ "name": "tokenId",
370
+ "type": "uint256"
371
+ },
372
+ {
373
+ "indexed": true,
374
+ "internalType": "address",
375
+ "name": "subscriber",
376
+ "type": "address"
377
+ }
378
+ ],
379
+ "name": "Unsubscription",
380
+ "type": "event"
381
+ },
382
+ {
383
+ "inputs": [],
384
+ "name": "DOMAIN_SEPARATOR",
385
+ "outputs": [
386
+ {
387
+ "internalType": "bytes32",
388
+ "name": "",
389
+ "type": "bytes32"
390
+ }
391
+ ],
392
+ "stateMutability": "view",
393
+ "type": "function"
394
+ },
395
+ {
396
+ "inputs": [],
397
+ "name": "WETH9",
398
+ "outputs": [
399
+ {
400
+ "internalType": "contract IWETH9",
401
+ "name": "",
402
+ "type": "address"
403
+ }
404
+ ],
405
+ "stateMutability": "view",
406
+ "type": "function"
407
+ },
408
+ {
409
+ "inputs": [
410
+ {
411
+ "internalType": "address",
412
+ "name": "spender",
413
+ "type": "address"
414
+ },
415
+ {
416
+ "internalType": "uint256",
417
+ "name": "id",
418
+ "type": "uint256"
419
+ }
420
+ ],
421
+ "name": "approve",
422
+ "outputs": [],
423
+ "stateMutability": "nonpayable",
424
+ "type": "function"
425
+ },
426
+ {
427
+ "inputs": [
428
+ {
429
+ "internalType": "address",
430
+ "name": "owner",
431
+ "type": "address"
432
+ }
433
+ ],
434
+ "name": "balanceOf",
435
+ "outputs": [
436
+ {
437
+ "internalType": "uint256",
438
+ "name": "",
439
+ "type": "uint256"
440
+ }
441
+ ],
442
+ "stateMutability": "view",
443
+ "type": "function"
444
+ },
445
+ {
446
+ "inputs": [
447
+ {
448
+ "internalType": "uint256",
449
+ "name": "",
450
+ "type": "uint256"
451
+ }
452
+ ],
453
+ "name": "getApproved",
454
+ "outputs": [
455
+ {
456
+ "internalType": "address",
457
+ "name": "",
458
+ "type": "address"
459
+ }
460
+ ],
461
+ "stateMutability": "view",
462
+ "type": "function"
463
+ },
464
+ {
465
+ "inputs": [
466
+ {
467
+ "internalType": "uint256",
468
+ "name": "tokenId",
469
+ "type": "uint256"
470
+ }
471
+ ],
472
+ "name": "getPoolAndPositionInfo",
473
+ "outputs": [
474
+ {
475
+ "components": [
476
+ {
477
+ "internalType": "Currency",
478
+ "name": "currency0",
479
+ "type": "address"
480
+ },
481
+ {
482
+ "internalType": "Currency",
483
+ "name": "currency1",
484
+ "type": "address"
485
+ },
486
+ {
487
+ "internalType": "uint24",
488
+ "name": "fee",
489
+ "type": "uint24"
490
+ },
491
+ {
492
+ "internalType": "int24",
493
+ "name": "tickSpacing",
494
+ "type": "int24"
495
+ },
496
+ {
497
+ "internalType": "contract IHooks",
498
+ "name": "hooks",
499
+ "type": "address"
500
+ }
501
+ ],
502
+ "internalType": "struct PoolKey",
503
+ "name": "poolKey",
504
+ "type": "tuple"
505
+ },
506
+ {
507
+ "internalType": "PositionInfo",
508
+ "name": "info",
509
+ "type": "uint256"
510
+ }
511
+ ],
512
+ "stateMutability": "view",
513
+ "type": "function"
514
+ },
515
+ {
516
+ "inputs": [
517
+ {
518
+ "internalType": "uint256",
519
+ "name": "tokenId",
520
+ "type": "uint256"
521
+ }
522
+ ],
523
+ "name": "getPositionLiquidity",
524
+ "outputs": [
525
+ {
526
+ "internalType": "uint128",
527
+ "name": "liquidity",
528
+ "type": "uint128"
529
+ }
530
+ ],
531
+ "stateMutability": "view",
532
+ "type": "function"
533
+ },
534
+ {
535
+ "inputs": [
536
+ {
537
+ "components": [
538
+ {
539
+ "internalType": "Currency",
540
+ "name": "currency0",
541
+ "type": "address"
542
+ },
543
+ {
544
+ "internalType": "Currency",
545
+ "name": "currency1",
546
+ "type": "address"
547
+ },
548
+ {
549
+ "internalType": "uint24",
550
+ "name": "fee",
551
+ "type": "uint24"
552
+ },
553
+ {
554
+ "internalType": "int24",
555
+ "name": "tickSpacing",
556
+ "type": "int24"
557
+ },
558
+ {
559
+ "internalType": "contract IHooks",
560
+ "name": "hooks",
561
+ "type": "address"
562
+ }
563
+ ],
564
+ "internalType": "struct PoolKey",
565
+ "name": "key",
566
+ "type": "tuple"
567
+ },
568
+ {
569
+ "internalType": "uint160",
570
+ "name": "sqrtPriceX96",
571
+ "type": "uint160"
572
+ }
573
+ ],
574
+ "name": "initializePool",
575
+ "outputs": [
576
+ {
577
+ "internalType": "int24",
578
+ "name": "",
579
+ "type": "int24"
580
+ }
581
+ ],
582
+ "stateMutability": "payable",
583
+ "type": "function"
584
+ },
585
+ {
586
+ "inputs": [
587
+ {
588
+ "internalType": "address",
589
+ "name": "",
590
+ "type": "address"
591
+ },
592
+ {
593
+ "internalType": "address",
594
+ "name": "",
595
+ "type": "address"
596
+ }
597
+ ],
598
+ "name": "isApprovedForAll",
599
+ "outputs": [
600
+ {
601
+ "internalType": "bool",
602
+ "name": "",
603
+ "type": "bool"
604
+ }
605
+ ],
606
+ "stateMutability": "view",
607
+ "type": "function"
608
+ },
609
+ {
610
+ "inputs": [
611
+ {
612
+ "internalType": "bytes",
613
+ "name": "unlockData",
614
+ "type": "bytes"
615
+ },
616
+ {
617
+ "internalType": "uint256",
618
+ "name": "deadline",
619
+ "type": "uint256"
620
+ }
621
+ ],
622
+ "name": "modifyLiquidities",
623
+ "outputs": [],
624
+ "stateMutability": "payable",
625
+ "type": "function"
626
+ },
627
+ {
628
+ "inputs": [
629
+ {
630
+ "internalType": "bytes",
631
+ "name": "actions",
632
+ "type": "bytes"
633
+ },
634
+ {
635
+ "internalType": "bytes[]",
636
+ "name": "params",
637
+ "type": "bytes[]"
638
+ }
639
+ ],
640
+ "name": "modifyLiquiditiesWithoutUnlock",
641
+ "outputs": [],
642
+ "stateMutability": "payable",
643
+ "type": "function"
644
+ },
645
+ {
646
+ "inputs": [],
647
+ "name": "msgSender",
648
+ "outputs": [
649
+ {
650
+ "internalType": "address",
651
+ "name": "",
652
+ "type": "address"
653
+ }
654
+ ],
655
+ "stateMutability": "view",
656
+ "type": "function"
657
+ },
658
+ {
659
+ "inputs": [
660
+ {
661
+ "internalType": "bytes[]",
662
+ "name": "data",
663
+ "type": "bytes[]"
664
+ }
665
+ ],
666
+ "name": "multicall",
667
+ "outputs": [
668
+ {
669
+ "internalType": "bytes[]",
670
+ "name": "results",
671
+ "type": "bytes[]"
672
+ }
673
+ ],
674
+ "stateMutability": "payable",
675
+ "type": "function"
676
+ },
677
+ {
678
+ "inputs": [],
679
+ "name": "name",
680
+ "outputs": [
681
+ {
682
+ "internalType": "string",
683
+ "name": "",
684
+ "type": "string"
685
+ }
686
+ ],
687
+ "stateMutability": "view",
688
+ "type": "function"
689
+ },
690
+ {
691
+ "inputs": [],
692
+ "name": "nextTokenId",
693
+ "outputs": [
694
+ {
695
+ "internalType": "uint256",
696
+ "name": "",
697
+ "type": "uint256"
698
+ }
699
+ ],
700
+ "stateMutability": "view",
701
+ "type": "function"
702
+ },
703
+ {
704
+ "inputs": [
705
+ {
706
+ "internalType": "address",
707
+ "name": "owner",
708
+ "type": "address"
709
+ },
710
+ {
711
+ "internalType": "uint256",
712
+ "name": "word",
713
+ "type": "uint256"
714
+ }
715
+ ],
716
+ "name": "nonces",
717
+ "outputs": [
718
+ {
719
+ "internalType": "uint256",
720
+ "name": "bitmap",
721
+ "type": "uint256"
722
+ }
723
+ ],
724
+ "stateMutability": "view",
725
+ "type": "function"
726
+ },
727
+ {
728
+ "inputs": [
729
+ {
730
+ "internalType": "uint256",
731
+ "name": "id",
732
+ "type": "uint256"
733
+ }
734
+ ],
735
+ "name": "ownerOf",
736
+ "outputs": [
737
+ {
738
+ "internalType": "address",
739
+ "name": "owner",
740
+ "type": "address"
741
+ }
742
+ ],
743
+ "stateMutability": "view",
744
+ "type": "function"
745
+ },
746
+ {
747
+ "inputs": [
748
+ {
749
+ "internalType": "address",
750
+ "name": "spender",
751
+ "type": "address"
752
+ },
753
+ {
754
+ "internalType": "uint256",
755
+ "name": "tokenId",
756
+ "type": "uint256"
757
+ },
758
+ {
759
+ "internalType": "uint256",
760
+ "name": "deadline",
761
+ "type": "uint256"
762
+ },
763
+ {
764
+ "internalType": "uint256",
765
+ "name": "nonce",
766
+ "type": "uint256"
767
+ },
768
+ {
769
+ "internalType": "bytes",
770
+ "name": "signature",
771
+ "type": "bytes"
772
+ }
773
+ ],
774
+ "name": "permit",
775
+ "outputs": [],
776
+ "stateMutability": "payable",
777
+ "type": "function"
778
+ },
779
+ {
780
+ "inputs": [
781
+ {
782
+ "internalType": "address",
783
+ "name": "owner",
784
+ "type": "address"
785
+ },
786
+ {
787
+ "components": [
788
+ {
789
+ "components": [
790
+ {
791
+ "internalType": "address",
792
+ "name": "token",
793
+ "type": "address"
794
+ },
795
+ {
796
+ "internalType": "uint160",
797
+ "name": "amount",
798
+ "type": "uint160"
799
+ },
800
+ {
801
+ "internalType": "uint48",
802
+ "name": "expiration",
803
+ "type": "uint48"
804
+ },
805
+ {
806
+ "internalType": "uint48",
807
+ "name": "nonce",
808
+ "type": "uint48"
809
+ }
810
+ ],
811
+ "internalType": "struct IAllowanceTransfer.PermitDetails",
812
+ "name": "details",
813
+ "type": "tuple"
814
+ },
815
+ {
816
+ "internalType": "address",
817
+ "name": "spender",
818
+ "type": "address"
819
+ },
820
+ {
821
+ "internalType": "uint256",
822
+ "name": "sigDeadline",
823
+ "type": "uint256"
824
+ }
825
+ ],
826
+ "internalType": "struct IAllowanceTransfer.PermitSingle",
827
+ "name": "permitSingle",
828
+ "type": "tuple"
829
+ },
830
+ {
831
+ "internalType": "bytes",
832
+ "name": "signature",
833
+ "type": "bytes"
834
+ }
835
+ ],
836
+ "name": "permit",
837
+ "outputs": [
838
+ {
839
+ "internalType": "bytes",
840
+ "name": "err",
841
+ "type": "bytes"
842
+ }
843
+ ],
844
+ "stateMutability": "payable",
845
+ "type": "function"
846
+ },
847
+ {
848
+ "inputs": [],
849
+ "name": "permit2",
850
+ "outputs": [
851
+ {
852
+ "internalType": "contract IAllowanceTransfer",
853
+ "name": "",
854
+ "type": "address"
855
+ }
856
+ ],
857
+ "stateMutability": "view",
858
+ "type": "function"
859
+ },
860
+ {
861
+ "inputs": [
862
+ {
863
+ "internalType": "address",
864
+ "name": "owner",
865
+ "type": "address"
866
+ },
867
+ {
868
+ "components": [
869
+ {
870
+ "components": [
871
+ {
872
+ "internalType": "address",
873
+ "name": "token",
874
+ "type": "address"
875
+ },
876
+ {
877
+ "internalType": "uint160",
878
+ "name": "amount",
879
+ "type": "uint160"
880
+ },
881
+ {
882
+ "internalType": "uint48",
883
+ "name": "expiration",
884
+ "type": "uint48"
885
+ },
886
+ {
887
+ "internalType": "uint48",
888
+ "name": "nonce",
889
+ "type": "uint48"
890
+ }
891
+ ],
892
+ "internalType": "struct IAllowanceTransfer.PermitDetails[]",
893
+ "name": "details",
894
+ "type": "tuple[]"
895
+ },
896
+ {
897
+ "internalType": "address",
898
+ "name": "spender",
899
+ "type": "address"
900
+ },
901
+ {
902
+ "internalType": "uint256",
903
+ "name": "sigDeadline",
904
+ "type": "uint256"
905
+ }
906
+ ],
907
+ "internalType": "struct IAllowanceTransfer.PermitBatch",
908
+ "name": "_permitBatch",
909
+ "type": "tuple"
910
+ },
911
+ {
912
+ "internalType": "bytes",
913
+ "name": "signature",
914
+ "type": "bytes"
915
+ }
916
+ ],
917
+ "name": "permitBatch",
918
+ "outputs": [
919
+ {
920
+ "internalType": "bytes",
921
+ "name": "err",
922
+ "type": "bytes"
923
+ }
924
+ ],
925
+ "stateMutability": "payable",
926
+ "type": "function"
927
+ },
928
+ {
929
+ "inputs": [
930
+ {
931
+ "internalType": "address",
932
+ "name": "owner",
933
+ "type": "address"
934
+ },
935
+ {
936
+ "internalType": "address",
937
+ "name": "operator",
938
+ "type": "address"
939
+ },
940
+ {
941
+ "internalType": "bool",
942
+ "name": "approved",
943
+ "type": "bool"
944
+ },
945
+ {
946
+ "internalType": "uint256",
947
+ "name": "deadline",
948
+ "type": "uint256"
949
+ },
950
+ {
951
+ "internalType": "uint256",
952
+ "name": "nonce",
953
+ "type": "uint256"
954
+ },
955
+ {
956
+ "internalType": "bytes",
957
+ "name": "signature",
958
+ "type": "bytes"
959
+ }
960
+ ],
961
+ "name": "permitForAll",
962
+ "outputs": [],
963
+ "stateMutability": "payable",
964
+ "type": "function"
965
+ },
966
+ {
967
+ "inputs": [
968
+ {
969
+ "internalType": "bytes25",
970
+ "name": "poolId",
971
+ "type": "bytes25"
972
+ }
973
+ ],
974
+ "name": "poolKeys",
975
+ "outputs": [
976
+ {
977
+ "internalType": "Currency",
978
+ "name": "currency0",
979
+ "type": "address"
980
+ },
981
+ {
982
+ "internalType": "Currency",
983
+ "name": "currency1",
984
+ "type": "address"
985
+ },
986
+ {
987
+ "internalType": "uint24",
988
+ "name": "fee",
989
+ "type": "uint24"
990
+ },
991
+ {
992
+ "internalType": "int24",
993
+ "name": "tickSpacing",
994
+ "type": "int24"
995
+ },
996
+ {
997
+ "internalType": "contract IHooks",
998
+ "name": "hooks",
999
+ "type": "address"
1000
+ }
1001
+ ],
1002
+ "stateMutability": "view",
1003
+ "type": "function"
1004
+ },
1005
+ {
1006
+ "inputs": [],
1007
+ "name": "poolManager",
1008
+ "outputs": [
1009
+ {
1010
+ "internalType": "contract IPoolManager",
1011
+ "name": "",
1012
+ "type": "address"
1013
+ }
1014
+ ],
1015
+ "stateMutability": "view",
1016
+ "type": "function"
1017
+ },
1018
+ {
1019
+ "inputs": [
1020
+ {
1021
+ "internalType": "uint256",
1022
+ "name": "tokenId",
1023
+ "type": "uint256"
1024
+ }
1025
+ ],
1026
+ "name": "positionInfo",
1027
+ "outputs": [
1028
+ {
1029
+ "internalType": "PositionInfo",
1030
+ "name": "info",
1031
+ "type": "uint256"
1032
+ }
1033
+ ],
1034
+ "stateMutability": "view",
1035
+ "type": "function"
1036
+ },
1037
+ {
1038
+ "inputs": [
1039
+ {
1040
+ "internalType": "uint256",
1041
+ "name": "nonce",
1042
+ "type": "uint256"
1043
+ }
1044
+ ],
1045
+ "name": "revokeNonce",
1046
+ "outputs": [],
1047
+ "stateMutability": "payable",
1048
+ "type": "function"
1049
+ },
1050
+ {
1051
+ "inputs": [
1052
+ {
1053
+ "internalType": "address",
1054
+ "name": "from",
1055
+ "type": "address"
1056
+ },
1057
+ {
1058
+ "internalType": "address",
1059
+ "name": "to",
1060
+ "type": "address"
1061
+ },
1062
+ {
1063
+ "internalType": "uint256",
1064
+ "name": "id",
1065
+ "type": "uint256"
1066
+ }
1067
+ ],
1068
+ "name": "safeTransferFrom",
1069
+ "outputs": [],
1070
+ "stateMutability": "nonpayable",
1071
+ "type": "function"
1072
+ },
1073
+ {
1074
+ "inputs": [
1075
+ {
1076
+ "internalType": "address",
1077
+ "name": "from",
1078
+ "type": "address"
1079
+ },
1080
+ {
1081
+ "internalType": "address",
1082
+ "name": "to",
1083
+ "type": "address"
1084
+ },
1085
+ {
1086
+ "internalType": "uint256",
1087
+ "name": "id",
1088
+ "type": "uint256"
1089
+ },
1090
+ {
1091
+ "internalType": "bytes",
1092
+ "name": "data",
1093
+ "type": "bytes"
1094
+ }
1095
+ ],
1096
+ "name": "safeTransferFrom",
1097
+ "outputs": [],
1098
+ "stateMutability": "nonpayable",
1099
+ "type": "function"
1100
+ },
1101
+ {
1102
+ "inputs": [
1103
+ {
1104
+ "internalType": "address",
1105
+ "name": "operator",
1106
+ "type": "address"
1107
+ },
1108
+ {
1109
+ "internalType": "bool",
1110
+ "name": "approved",
1111
+ "type": "bool"
1112
+ }
1113
+ ],
1114
+ "name": "setApprovalForAll",
1115
+ "outputs": [],
1116
+ "stateMutability": "nonpayable",
1117
+ "type": "function"
1118
+ },
1119
+ {
1120
+ "inputs": [
1121
+ {
1122
+ "internalType": "uint256",
1123
+ "name": "tokenId",
1124
+ "type": "uint256"
1125
+ },
1126
+ {
1127
+ "internalType": "address",
1128
+ "name": "newSubscriber",
1129
+ "type": "address"
1130
+ },
1131
+ {
1132
+ "internalType": "bytes",
1133
+ "name": "data",
1134
+ "type": "bytes"
1135
+ }
1136
+ ],
1137
+ "name": "subscribe",
1138
+ "outputs": [],
1139
+ "stateMutability": "payable",
1140
+ "type": "function"
1141
+ },
1142
+ {
1143
+ "inputs": [
1144
+ {
1145
+ "internalType": "uint256",
1146
+ "name": "tokenId",
1147
+ "type": "uint256"
1148
+ }
1149
+ ],
1150
+ "name": "subscriber",
1151
+ "outputs": [
1152
+ {
1153
+ "internalType": "contract ISubscriber",
1154
+ "name": "subscriber",
1155
+ "type": "address"
1156
+ }
1157
+ ],
1158
+ "stateMutability": "view",
1159
+ "type": "function"
1160
+ },
1161
+ {
1162
+ "inputs": [
1163
+ {
1164
+ "internalType": "bytes4",
1165
+ "name": "interfaceId",
1166
+ "type": "bytes4"
1167
+ }
1168
+ ],
1169
+ "name": "supportsInterface",
1170
+ "outputs": [
1171
+ {
1172
+ "internalType": "bool",
1173
+ "name": "",
1174
+ "type": "bool"
1175
+ }
1176
+ ],
1177
+ "stateMutability": "view",
1178
+ "type": "function"
1179
+ },
1180
+ {
1181
+ "inputs": [],
1182
+ "name": "symbol",
1183
+ "outputs": [
1184
+ {
1185
+ "internalType": "string",
1186
+ "name": "",
1187
+ "type": "string"
1188
+ }
1189
+ ],
1190
+ "stateMutability": "view",
1191
+ "type": "function"
1192
+ },
1193
+ {
1194
+ "inputs": [],
1195
+ "name": "tokenDescriptor",
1196
+ "outputs": [
1197
+ {
1198
+ "internalType": "contract IPositionDescriptor",
1199
+ "name": "",
1200
+ "type": "address"
1201
+ }
1202
+ ],
1203
+ "stateMutability": "view",
1204
+ "type": "function"
1205
+ },
1206
+ {
1207
+ "inputs": [
1208
+ {
1209
+ "internalType": "uint256",
1210
+ "name": "tokenId",
1211
+ "type": "uint256"
1212
+ }
1213
+ ],
1214
+ "name": "tokenURI",
1215
+ "outputs": [
1216
+ {
1217
+ "internalType": "string",
1218
+ "name": "",
1219
+ "type": "string"
1220
+ }
1221
+ ],
1222
+ "stateMutability": "view",
1223
+ "type": "function"
1224
+ },
1225
+ {
1226
+ "inputs": [
1227
+ {
1228
+ "internalType": "address",
1229
+ "name": "from",
1230
+ "type": "address"
1231
+ },
1232
+ {
1233
+ "internalType": "address",
1234
+ "name": "to",
1235
+ "type": "address"
1236
+ },
1237
+ {
1238
+ "internalType": "uint256",
1239
+ "name": "id",
1240
+ "type": "uint256"
1241
+ }
1242
+ ],
1243
+ "name": "transferFrom",
1244
+ "outputs": [],
1245
+ "stateMutability": "nonpayable",
1246
+ "type": "function"
1247
+ },
1248
+ {
1249
+ "inputs": [
1250
+ {
1251
+ "internalType": "bytes",
1252
+ "name": "data",
1253
+ "type": "bytes"
1254
+ }
1255
+ ],
1256
+ "name": "unlockCallback",
1257
+ "outputs": [
1258
+ {
1259
+ "internalType": "bytes",
1260
+ "name": "",
1261
+ "type": "bytes"
1262
+ }
1263
+ ],
1264
+ "stateMutability": "nonpayable",
1265
+ "type": "function"
1266
+ },
1267
+ {
1268
+ "inputs": [
1269
+ {
1270
+ "internalType": "uint256",
1271
+ "name": "tokenId",
1272
+ "type": "uint256"
1273
+ }
1274
+ ],
1275
+ "name": "unsubscribe",
1276
+ "outputs": [],
1277
+ "stateMutability": "payable",
1278
+ "type": "function"
1279
+ },
1280
+ {
1281
+ "inputs": [],
1282
+ "name": "unsubscribeGasLimit",
1283
+ "outputs": [
1284
+ {
1285
+ "internalType": "uint256",
1286
+ "name": "",
1287
+ "type": "uint256"
1288
+ }
1289
+ ],
1290
+ "stateMutability": "view",
1291
+ "type": "function"
1292
+ },
1293
+ {
1294
+ "stateMutability": "payable",
1295
+ "type": "receive"
1296
+ }
1297
+ ]