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