@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,1131 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "registry",
7
+ "type": "address",
8
+ "internalType": "address"
9
+ },
10
+ {
11
+ "name": "nonFungiblePositionManager",
12
+ "type": "address",
13
+ "internalType": "address"
14
+ },
15
+ {
16
+ "name": "aerodromeVoter",
17
+ "type": "address",
18
+ "internalType": "address"
19
+ },
20
+ {
21
+ "name": "rewardToken",
22
+ "type": "address",
23
+ "internalType": "address"
24
+ }
25
+ ],
26
+ "stateMutability": "nonpayable"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "ASSET_TYPE",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "",
35
+ "type": "uint256",
36
+ "internalType": "uint256"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "REGISTRY",
44
+ "inputs": [],
45
+ "outputs": [
46
+ {
47
+ "name": "",
48
+ "type": "address",
49
+ "internalType": "address"
50
+ }
51
+ ],
52
+ "stateMutability": "view"
53
+ },
54
+ {
55
+ "type": "function",
56
+ "name": "REWARD_TOKEN",
57
+ "inputs": [],
58
+ "outputs": [
59
+ {
60
+ "name": "",
61
+ "type": "address",
62
+ "internalType": "contract ERC20"
63
+ }
64
+ ],
65
+ "stateMutability": "view"
66
+ },
67
+ {
68
+ "type": "function",
69
+ "name": "addGauge",
70
+ "inputs": [
71
+ {
72
+ "name": "gauge",
73
+ "type": "address",
74
+ "internalType": "address"
75
+ }
76
+ ],
77
+ "outputs": [],
78
+ "stateMutability": "nonpayable"
79
+ },
80
+ {
81
+ "type": "function",
82
+ "name": "approve",
83
+ "inputs": [
84
+ {
85
+ "name": "spender",
86
+ "type": "address",
87
+ "internalType": "address"
88
+ },
89
+ {
90
+ "name": "id",
91
+ "type": "uint256",
92
+ "internalType": "uint256"
93
+ }
94
+ ],
95
+ "outputs": [],
96
+ "stateMutability": "nonpayable"
97
+ },
98
+ {
99
+ "type": "function",
100
+ "name": "assetToUnderlyingAssets",
101
+ "inputs": [
102
+ {
103
+ "name": "assetKey",
104
+ "type": "bytes32",
105
+ "internalType": "bytes32"
106
+ },
107
+ {
108
+ "name": "",
109
+ "type": "uint256",
110
+ "internalType": "uint256"
111
+ }
112
+ ],
113
+ "outputs": [
114
+ {
115
+ "name": "underlyingAssetKeys",
116
+ "type": "bytes32",
117
+ "internalType": "bytes32"
118
+ }
119
+ ],
120
+ "stateMutability": "view"
121
+ },
122
+ {
123
+ "type": "function",
124
+ "name": "balanceOf",
125
+ "inputs": [
126
+ {
127
+ "name": "owner",
128
+ "type": "address",
129
+ "internalType": "address"
130
+ }
131
+ ],
132
+ "outputs": [
133
+ {
134
+ "name": "",
135
+ "type": "uint256",
136
+ "internalType": "uint256"
137
+ }
138
+ ],
139
+ "stateMutability": "view"
140
+ },
141
+ {
142
+ "type": "function",
143
+ "name": "baseURI",
144
+ "inputs": [],
145
+ "outputs": [
146
+ {
147
+ "name": "",
148
+ "type": "string",
149
+ "internalType": "string"
150
+ }
151
+ ],
152
+ "stateMutability": "view"
153
+ },
154
+ {
155
+ "type": "function",
156
+ "name": "burn",
157
+ "inputs": [
158
+ {
159
+ "name": "positionId",
160
+ "type": "uint256",
161
+ "internalType": "uint256"
162
+ }
163
+ ],
164
+ "outputs": [
165
+ {
166
+ "name": "rewards",
167
+ "type": "uint256",
168
+ "internalType": "uint256"
169
+ }
170
+ ],
171
+ "stateMutability": "nonpayable"
172
+ },
173
+ {
174
+ "type": "function",
175
+ "name": "claimReward",
176
+ "inputs": [
177
+ {
178
+ "name": "positionId",
179
+ "type": "uint256",
180
+ "internalType": "uint256"
181
+ }
182
+ ],
183
+ "outputs": [
184
+ {
185
+ "name": "rewards",
186
+ "type": "uint256",
187
+ "internalType": "uint256"
188
+ }
189
+ ],
190
+ "stateMutability": "nonpayable"
191
+ },
192
+ {
193
+ "type": "function",
194
+ "name": "getApproved",
195
+ "inputs": [
196
+ {
197
+ "name": "",
198
+ "type": "uint256",
199
+ "internalType": "uint256"
200
+ }
201
+ ],
202
+ "outputs": [
203
+ {
204
+ "name": "",
205
+ "type": "address",
206
+ "internalType": "address"
207
+ }
208
+ ],
209
+ "stateMutability": "view"
210
+ },
211
+ {
212
+ "type": "function",
213
+ "name": "getRiskFactors",
214
+ "inputs": [
215
+ {
216
+ "name": "creditor",
217
+ "type": "address",
218
+ "internalType": "address"
219
+ },
220
+ {
221
+ "name": "asset",
222
+ "type": "address",
223
+ "internalType": "address"
224
+ },
225
+ {
226
+ "name": "assetId",
227
+ "type": "uint256",
228
+ "internalType": "uint256"
229
+ }
230
+ ],
231
+ "outputs": [
232
+ {
233
+ "name": "collateralFactor",
234
+ "type": "uint16",
235
+ "internalType": "uint16"
236
+ },
237
+ {
238
+ "name": "liquidationFactor",
239
+ "type": "uint16",
240
+ "internalType": "uint16"
241
+ }
242
+ ],
243
+ "stateMutability": "view"
244
+ },
245
+ {
246
+ "type": "function",
247
+ "name": "getValue",
248
+ "inputs": [
249
+ {
250
+ "name": "creditor",
251
+ "type": "address",
252
+ "internalType": "address"
253
+ },
254
+ {
255
+ "name": "asset",
256
+ "type": "address",
257
+ "internalType": "address"
258
+ },
259
+ {
260
+ "name": "assetId",
261
+ "type": "uint256",
262
+ "internalType": "uint256"
263
+ },
264
+ {
265
+ "name": "assetAmount",
266
+ "type": "uint256",
267
+ "internalType": "uint256"
268
+ }
269
+ ],
270
+ "outputs": [
271
+ {
272
+ "name": "valueInUsd",
273
+ "type": "uint256",
274
+ "internalType": "uint256"
275
+ },
276
+ {
277
+ "name": "collateralFactor",
278
+ "type": "uint256",
279
+ "internalType": "uint256"
280
+ },
281
+ {
282
+ "name": "liquidationFactor",
283
+ "type": "uint256",
284
+ "internalType": "uint256"
285
+ }
286
+ ],
287
+ "stateMutability": "view"
288
+ },
289
+ {
290
+ "type": "function",
291
+ "name": "inAssetModule",
292
+ "inputs": [
293
+ {
294
+ "name": "",
295
+ "type": "address",
296
+ "internalType": "address"
297
+ }
298
+ ],
299
+ "outputs": [
300
+ {
301
+ "name": "",
302
+ "type": "bool",
303
+ "internalType": "bool"
304
+ }
305
+ ],
306
+ "stateMutability": "view"
307
+ },
308
+ {
309
+ "type": "function",
310
+ "name": "initialize",
311
+ "inputs": [],
312
+ "outputs": [],
313
+ "stateMutability": "nonpayable"
314
+ },
315
+ {
316
+ "type": "function",
317
+ "name": "isAllowed",
318
+ "inputs": [
319
+ {
320
+ "name": "asset",
321
+ "type": "address",
322
+ "internalType": "address"
323
+ },
324
+ {
325
+ "name": "assetId",
326
+ "type": "uint256",
327
+ "internalType": "uint256"
328
+ }
329
+ ],
330
+ "outputs": [
331
+ {
332
+ "name": "",
333
+ "type": "bool",
334
+ "internalType": "bool"
335
+ }
336
+ ],
337
+ "stateMutability": "view"
338
+ },
339
+ {
340
+ "type": "function",
341
+ "name": "isApprovedForAll",
342
+ "inputs": [
343
+ {
344
+ "name": "",
345
+ "type": "address",
346
+ "internalType": "address"
347
+ },
348
+ {
349
+ "name": "",
350
+ "type": "address",
351
+ "internalType": "address"
352
+ }
353
+ ],
354
+ "outputs": [
355
+ {
356
+ "name": "",
357
+ "type": "bool",
358
+ "internalType": "bool"
359
+ }
360
+ ],
361
+ "stateMutability": "view"
362
+ },
363
+ {
364
+ "type": "function",
365
+ "name": "lastExposureAssetToUnderlyingAsset",
366
+ "inputs": [
367
+ {
368
+ "name": "creditor",
369
+ "type": "address",
370
+ "internalType": "address"
371
+ },
372
+ {
373
+ "name": "assetKey",
374
+ "type": "bytes32",
375
+ "internalType": "bytes32"
376
+ },
377
+ {
378
+ "name": "underlyingAssetKey",
379
+ "type": "bytes32",
380
+ "internalType": "bytes32"
381
+ }
382
+ ],
383
+ "outputs": [
384
+ {
385
+ "name": "exposure",
386
+ "type": "uint256",
387
+ "internalType": "uint256"
388
+ }
389
+ ],
390
+ "stateMutability": "view"
391
+ },
392
+ {
393
+ "type": "function",
394
+ "name": "lastExposuresAsset",
395
+ "inputs": [
396
+ {
397
+ "name": "creditor",
398
+ "type": "address",
399
+ "internalType": "address"
400
+ },
401
+ {
402
+ "name": "assetKey",
403
+ "type": "bytes32",
404
+ "internalType": "bytes32"
405
+ }
406
+ ],
407
+ "outputs": [
408
+ {
409
+ "name": "lastExposureAsset",
410
+ "type": "uint112",
411
+ "internalType": "uint112"
412
+ },
413
+ {
414
+ "name": "lastUsdExposureAsset",
415
+ "type": "uint112",
416
+ "internalType": "uint112"
417
+ }
418
+ ],
419
+ "stateMutability": "view"
420
+ },
421
+ {
422
+ "type": "function",
423
+ "name": "mint",
424
+ "inputs": [
425
+ {
426
+ "name": "assetId",
427
+ "type": "uint256",
428
+ "internalType": "uint256"
429
+ }
430
+ ],
431
+ "outputs": [
432
+ {
433
+ "name": "positionId",
434
+ "type": "uint256",
435
+ "internalType": "uint256"
436
+ }
437
+ ],
438
+ "stateMutability": "nonpayable"
439
+ },
440
+ {
441
+ "type": "function",
442
+ "name": "name",
443
+ "inputs": [],
444
+ "outputs": [
445
+ {
446
+ "name": "",
447
+ "type": "string",
448
+ "internalType": "string"
449
+ }
450
+ ],
451
+ "stateMutability": "view"
452
+ },
453
+ {
454
+ "type": "function",
455
+ "name": "onERC721Received",
456
+ "inputs": [
457
+ {
458
+ "name": "",
459
+ "type": "address",
460
+ "internalType": "address"
461
+ },
462
+ {
463
+ "name": "",
464
+ "type": "address",
465
+ "internalType": "address"
466
+ },
467
+ {
468
+ "name": "",
469
+ "type": "uint256",
470
+ "internalType": "uint256"
471
+ },
472
+ {
473
+ "name": "",
474
+ "type": "bytes",
475
+ "internalType": "bytes"
476
+ }
477
+ ],
478
+ "outputs": [
479
+ {
480
+ "name": "",
481
+ "type": "bytes4",
482
+ "internalType": "bytes4"
483
+ }
484
+ ],
485
+ "stateMutability": "pure"
486
+ },
487
+ {
488
+ "type": "function",
489
+ "name": "owner",
490
+ "inputs": [],
491
+ "outputs": [
492
+ {
493
+ "name": "",
494
+ "type": "address",
495
+ "internalType": "address"
496
+ }
497
+ ],
498
+ "stateMutability": "view"
499
+ },
500
+ {
501
+ "type": "function",
502
+ "name": "ownerOf",
503
+ "inputs": [
504
+ {
505
+ "name": "id",
506
+ "type": "uint256",
507
+ "internalType": "uint256"
508
+ }
509
+ ],
510
+ "outputs": [
511
+ {
512
+ "name": "owner",
513
+ "type": "address",
514
+ "internalType": "address"
515
+ }
516
+ ],
517
+ "stateMutability": "view"
518
+ },
519
+ {
520
+ "type": "function",
521
+ "name": "poolToGauge",
522
+ "inputs": [
523
+ {
524
+ "name": "pool",
525
+ "type": "address",
526
+ "internalType": "address"
527
+ }
528
+ ],
529
+ "outputs": [
530
+ {
531
+ "name": "gauge",
532
+ "type": "address",
533
+ "internalType": "address"
534
+ }
535
+ ],
536
+ "stateMutability": "view"
537
+ },
538
+ {
539
+ "type": "function",
540
+ "name": "positionState",
541
+ "inputs": [
542
+ {
543
+ "name": "position",
544
+ "type": "uint256",
545
+ "internalType": "uint256"
546
+ }
547
+ ],
548
+ "outputs": [
549
+ {
550
+ "name": "tickLower",
551
+ "type": "int24",
552
+ "internalType": "int24"
553
+ },
554
+ {
555
+ "name": "tickUpper",
556
+ "type": "int24",
557
+ "internalType": "int24"
558
+ },
559
+ {
560
+ "name": "liquidity",
561
+ "type": "uint128",
562
+ "internalType": "uint128"
563
+ },
564
+ {
565
+ "name": "gauge",
566
+ "type": "address",
567
+ "internalType": "address"
568
+ }
569
+ ],
570
+ "stateMutability": "view"
571
+ },
572
+ {
573
+ "type": "function",
574
+ "name": "processDirectDeposit",
575
+ "inputs": [
576
+ {
577
+ "name": "creditor",
578
+ "type": "address",
579
+ "internalType": "address"
580
+ },
581
+ {
582
+ "name": "asset",
583
+ "type": "address",
584
+ "internalType": "address"
585
+ },
586
+ {
587
+ "name": "assetId",
588
+ "type": "uint256",
589
+ "internalType": "uint256"
590
+ },
591
+ {
592
+ "name": "amount",
593
+ "type": "uint256",
594
+ "internalType": "uint256"
595
+ }
596
+ ],
597
+ "outputs": [
598
+ {
599
+ "name": "recursiveCalls",
600
+ "type": "uint256",
601
+ "internalType": "uint256"
602
+ }
603
+ ],
604
+ "stateMutability": "nonpayable"
605
+ },
606
+ {
607
+ "type": "function",
608
+ "name": "processDirectWithdrawal",
609
+ "inputs": [
610
+ {
611
+ "name": "creditor",
612
+ "type": "address",
613
+ "internalType": "address"
614
+ },
615
+ {
616
+ "name": "asset",
617
+ "type": "address",
618
+ "internalType": "address"
619
+ },
620
+ {
621
+ "name": "assetId",
622
+ "type": "uint256",
623
+ "internalType": "uint256"
624
+ },
625
+ {
626
+ "name": "amount",
627
+ "type": "uint256",
628
+ "internalType": "uint256"
629
+ }
630
+ ],
631
+ "outputs": [],
632
+ "stateMutability": "nonpayable"
633
+ },
634
+ {
635
+ "type": "function",
636
+ "name": "processIndirectDeposit",
637
+ "inputs": [
638
+ {
639
+ "name": "creditor",
640
+ "type": "address",
641
+ "internalType": "address"
642
+ },
643
+ {
644
+ "name": "asset",
645
+ "type": "address",
646
+ "internalType": "address"
647
+ },
648
+ {
649
+ "name": "assetId",
650
+ "type": "uint256",
651
+ "internalType": "uint256"
652
+ },
653
+ {
654
+ "name": "exposureUpperAssetToAsset",
655
+ "type": "uint256",
656
+ "internalType": "uint256"
657
+ },
658
+ {
659
+ "name": "deltaExposureUpperAssetToAsset",
660
+ "type": "int256",
661
+ "internalType": "int256"
662
+ }
663
+ ],
664
+ "outputs": [
665
+ {
666
+ "name": "recursiveCalls",
667
+ "type": "uint256",
668
+ "internalType": "uint256"
669
+ },
670
+ {
671
+ "name": "usdExposureUpperAssetToAsset",
672
+ "type": "uint256",
673
+ "internalType": "uint256"
674
+ }
675
+ ],
676
+ "stateMutability": "nonpayable"
677
+ },
678
+ {
679
+ "type": "function",
680
+ "name": "processIndirectWithdrawal",
681
+ "inputs": [
682
+ {
683
+ "name": "creditor",
684
+ "type": "address",
685
+ "internalType": "address"
686
+ },
687
+ {
688
+ "name": "asset",
689
+ "type": "address",
690
+ "internalType": "address"
691
+ },
692
+ {
693
+ "name": "assetId",
694
+ "type": "uint256",
695
+ "internalType": "uint256"
696
+ },
697
+ {
698
+ "name": "exposureUpperAssetToAsset",
699
+ "type": "uint256",
700
+ "internalType": "uint256"
701
+ },
702
+ {
703
+ "name": "deltaExposureUpperAssetToAsset",
704
+ "type": "int256",
705
+ "internalType": "int256"
706
+ }
707
+ ],
708
+ "outputs": [
709
+ {
710
+ "name": "usdExposureUpperAssetToAsset",
711
+ "type": "uint256",
712
+ "internalType": "uint256"
713
+ }
714
+ ],
715
+ "stateMutability": "nonpayable"
716
+ },
717
+ {
718
+ "type": "function",
719
+ "name": "rewardOf",
720
+ "inputs": [
721
+ {
722
+ "name": "positionId",
723
+ "type": "uint256",
724
+ "internalType": "uint256"
725
+ }
726
+ ],
727
+ "outputs": [
728
+ {
729
+ "name": "rewards",
730
+ "type": "uint256",
731
+ "internalType": "uint256"
732
+ }
733
+ ],
734
+ "stateMutability": "view"
735
+ },
736
+ {
737
+ "type": "function",
738
+ "name": "riskParams",
739
+ "inputs": [
740
+ {
741
+ "name": "creditor",
742
+ "type": "address",
743
+ "internalType": "address"
744
+ }
745
+ ],
746
+ "outputs": [
747
+ {
748
+ "name": "lastUsdExposureProtocol",
749
+ "type": "uint112",
750
+ "internalType": "uint112"
751
+ },
752
+ {
753
+ "name": "maxUsdExposureProtocol",
754
+ "type": "uint112",
755
+ "internalType": "uint112"
756
+ },
757
+ {
758
+ "name": "riskFactor",
759
+ "type": "uint16",
760
+ "internalType": "uint16"
761
+ }
762
+ ],
763
+ "stateMutability": "view"
764
+ },
765
+ {
766
+ "type": "function",
767
+ "name": "safeTransferFrom",
768
+ "inputs": [
769
+ {
770
+ "name": "from",
771
+ "type": "address",
772
+ "internalType": "address"
773
+ },
774
+ {
775
+ "name": "to",
776
+ "type": "address",
777
+ "internalType": "address"
778
+ },
779
+ {
780
+ "name": "id",
781
+ "type": "uint256",
782
+ "internalType": "uint256"
783
+ }
784
+ ],
785
+ "outputs": [],
786
+ "stateMutability": "nonpayable"
787
+ },
788
+ {
789
+ "type": "function",
790
+ "name": "safeTransferFrom",
791
+ "inputs": [
792
+ {
793
+ "name": "from",
794
+ "type": "address",
795
+ "internalType": "address"
796
+ },
797
+ {
798
+ "name": "to",
799
+ "type": "address",
800
+ "internalType": "address"
801
+ },
802
+ {
803
+ "name": "id",
804
+ "type": "uint256",
805
+ "internalType": "uint256"
806
+ },
807
+ {
808
+ "name": "data",
809
+ "type": "bytes",
810
+ "internalType": "bytes"
811
+ }
812
+ ],
813
+ "outputs": [],
814
+ "stateMutability": "nonpayable"
815
+ },
816
+ {
817
+ "type": "function",
818
+ "name": "setApprovalForAll",
819
+ "inputs": [
820
+ {
821
+ "name": "operator",
822
+ "type": "address",
823
+ "internalType": "address"
824
+ },
825
+ {
826
+ "name": "approved",
827
+ "type": "bool",
828
+ "internalType": "bool"
829
+ }
830
+ ],
831
+ "outputs": [],
832
+ "stateMutability": "nonpayable"
833
+ },
834
+ {
835
+ "type": "function",
836
+ "name": "setBaseURI",
837
+ "inputs": [
838
+ {
839
+ "name": "newBaseURI",
840
+ "type": "string",
841
+ "internalType": "string"
842
+ }
843
+ ],
844
+ "outputs": [],
845
+ "stateMutability": "nonpayable"
846
+ },
847
+ {
848
+ "type": "function",
849
+ "name": "setRiskParameters",
850
+ "inputs": [
851
+ {
852
+ "name": "creditor",
853
+ "type": "address",
854
+ "internalType": "address"
855
+ },
856
+ {
857
+ "name": "maxUsdExposureProtocol_",
858
+ "type": "uint112",
859
+ "internalType": "uint112"
860
+ },
861
+ {
862
+ "name": "riskFactor",
863
+ "type": "uint16",
864
+ "internalType": "uint16"
865
+ }
866
+ ],
867
+ "outputs": [],
868
+ "stateMutability": "nonpayable"
869
+ },
870
+ {
871
+ "type": "function",
872
+ "name": "supportsInterface",
873
+ "inputs": [
874
+ {
875
+ "name": "interfaceId",
876
+ "type": "bytes4",
877
+ "internalType": "bytes4"
878
+ }
879
+ ],
880
+ "outputs": [
881
+ {
882
+ "name": "",
883
+ "type": "bool",
884
+ "internalType": "bool"
885
+ }
886
+ ],
887
+ "stateMutability": "view"
888
+ },
889
+ {
890
+ "type": "function",
891
+ "name": "symbol",
892
+ "inputs": [],
893
+ "outputs": [
894
+ {
895
+ "name": "",
896
+ "type": "string",
897
+ "internalType": "string"
898
+ }
899
+ ],
900
+ "stateMutability": "view"
901
+ },
902
+ {
903
+ "type": "function",
904
+ "name": "tokenURI",
905
+ "inputs": [
906
+ {
907
+ "name": "tokenId",
908
+ "type": "uint256",
909
+ "internalType": "uint256"
910
+ }
911
+ ],
912
+ "outputs": [
913
+ {
914
+ "name": "uri",
915
+ "type": "string",
916
+ "internalType": "string"
917
+ }
918
+ ],
919
+ "stateMutability": "view"
920
+ },
921
+ {
922
+ "type": "function",
923
+ "name": "transferFrom",
924
+ "inputs": [
925
+ {
926
+ "name": "from",
927
+ "type": "address",
928
+ "internalType": "address"
929
+ },
930
+ {
931
+ "name": "to",
932
+ "type": "address",
933
+ "internalType": "address"
934
+ },
935
+ {
936
+ "name": "id",
937
+ "type": "uint256",
938
+ "internalType": "uint256"
939
+ }
940
+ ],
941
+ "outputs": [],
942
+ "stateMutability": "nonpayable"
943
+ },
944
+ {
945
+ "type": "function",
946
+ "name": "transferOwnership",
947
+ "inputs": [
948
+ {
949
+ "name": "newOwner",
950
+ "type": "address",
951
+ "internalType": "address"
952
+ }
953
+ ],
954
+ "outputs": [],
955
+ "stateMutability": "nonpayable"
956
+ },
957
+ {
958
+ "type": "event",
959
+ "name": "Approval",
960
+ "inputs": [
961
+ {
962
+ "name": "owner",
963
+ "type": "address",
964
+ "indexed": true,
965
+ "internalType": "address"
966
+ },
967
+ {
968
+ "name": "spender",
969
+ "type": "address",
970
+ "indexed": true,
971
+ "internalType": "address"
972
+ },
973
+ {
974
+ "name": "id",
975
+ "type": "uint256",
976
+ "indexed": true,
977
+ "internalType": "uint256"
978
+ }
979
+ ],
980
+ "anonymous": false
981
+ },
982
+ {
983
+ "type": "event",
984
+ "name": "ApprovalForAll",
985
+ "inputs": [
986
+ {
987
+ "name": "owner",
988
+ "type": "address",
989
+ "indexed": true,
990
+ "internalType": "address"
991
+ },
992
+ {
993
+ "name": "operator",
994
+ "type": "address",
995
+ "indexed": true,
996
+ "internalType": "address"
997
+ },
998
+ {
999
+ "name": "approved",
1000
+ "type": "bool",
1001
+ "indexed": false,
1002
+ "internalType": "bool"
1003
+ }
1004
+ ],
1005
+ "anonymous": false
1006
+ },
1007
+ {
1008
+ "type": "event",
1009
+ "name": "OwnershipTransferred",
1010
+ "inputs": [
1011
+ {
1012
+ "name": "user",
1013
+ "type": "address",
1014
+ "indexed": true,
1015
+ "internalType": "address"
1016
+ },
1017
+ {
1018
+ "name": "newOwner",
1019
+ "type": "address",
1020
+ "indexed": true,
1021
+ "internalType": "address"
1022
+ }
1023
+ ],
1024
+ "anonymous": false
1025
+ },
1026
+ {
1027
+ "type": "event",
1028
+ "name": "RewardPaid",
1029
+ "inputs": [
1030
+ {
1031
+ "name": "positionId",
1032
+ "type": "uint256",
1033
+ "indexed": true,
1034
+ "internalType": "uint256"
1035
+ },
1036
+ {
1037
+ "name": "reward",
1038
+ "type": "address",
1039
+ "indexed": true,
1040
+ "internalType": "address"
1041
+ },
1042
+ {
1043
+ "name": "amount",
1044
+ "type": "uint128",
1045
+ "indexed": false,
1046
+ "internalType": "uint128"
1047
+ }
1048
+ ],
1049
+ "anonymous": false
1050
+ },
1051
+ {
1052
+ "type": "event",
1053
+ "name": "Transfer",
1054
+ "inputs": [
1055
+ {
1056
+ "name": "from",
1057
+ "type": "address",
1058
+ "indexed": true,
1059
+ "internalType": "address"
1060
+ },
1061
+ {
1062
+ "name": "to",
1063
+ "type": "address",
1064
+ "indexed": true,
1065
+ "internalType": "address"
1066
+ },
1067
+ {
1068
+ "name": "id",
1069
+ "type": "uint256",
1070
+ "indexed": true,
1071
+ "internalType": "uint256"
1072
+ }
1073
+ ],
1074
+ "anonymous": false
1075
+ },
1076
+ {
1077
+ "type": "error",
1078
+ "name": "AssetNotAllowed",
1079
+ "inputs": []
1080
+ },
1081
+ {
1082
+ "type": "error",
1083
+ "name": "ExposureNotInLimits",
1084
+ "inputs": []
1085
+ },
1086
+ {
1087
+ "type": "error",
1088
+ "name": "GaugeNotValid",
1089
+ "inputs": []
1090
+ },
1091
+ {
1092
+ "type": "error",
1093
+ "name": "InvalidId",
1094
+ "inputs": []
1095
+ },
1096
+ {
1097
+ "type": "error",
1098
+ "name": "NotOwner",
1099
+ "inputs": []
1100
+ },
1101
+ {
1102
+ "type": "error",
1103
+ "name": "OnlyRegistry",
1104
+ "inputs": []
1105
+ },
1106
+ {
1107
+ "type": "error",
1108
+ "name": "Overflow",
1109
+ "inputs": []
1110
+ },
1111
+ {
1112
+ "type": "error",
1113
+ "name": "RewardTokenNotAllowed",
1114
+ "inputs": []
1115
+ },
1116
+ {
1117
+ "type": "error",
1118
+ "name": "RewardTokenNotValid",
1119
+ "inputs": []
1120
+ },
1121
+ {
1122
+ "type": "error",
1123
+ "name": "RiskFactorNotInLimits",
1124
+ "inputs": []
1125
+ },
1126
+ {
1127
+ "type": "error",
1128
+ "name": "ZeroLiquidity",
1129
+ "inputs": []
1130
+ }
1131
+ ]