curvance 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/README.md +2 -0
  2. package/dist/abis/BaseCToken.json +1550 -0
  3. package/dist/abis/BorrowableCToken.json +2188 -0
  4. package/dist/abis/IDynamicIRM.json +158 -0
  5. package/dist/abis/MarketManagerIsolated.json +1587 -0
  6. package/dist/abis/ProtocolReader.json +767 -0
  7. package/dist/classes/CToken.d.ts +170 -0
  8. package/dist/classes/CToken.d.ts.map +1 -0
  9. package/dist/classes/CToken.js +292 -0
  10. package/dist/classes/CToken.js.map +1 -0
  11. package/dist/classes/CVE.d.ts +7 -0
  12. package/dist/classes/CVE.d.ts.map +1 -0
  13. package/dist/classes/CVE.js +7 -0
  14. package/dist/classes/CVE.js.map +1 -0
  15. package/dist/classes/ERC20.d.ts +35 -0
  16. package/dist/classes/ERC20.d.ts.map +1 -0
  17. package/dist/classes/ERC20.js +68 -0
  18. package/dist/classes/ERC20.js.map +1 -0
  19. package/dist/classes/Faucet.d.ts +25 -0
  20. package/dist/classes/Faucet.d.ts.map +1 -0
  21. package/dist/classes/Faucet.js +48 -0
  22. package/dist/classes/Faucet.js.map +1 -0
  23. package/dist/classes/Market.d.ts +68 -0
  24. package/dist/classes/Market.d.ts.map +1 -0
  25. package/dist/classes/Market.js +136 -0
  26. package/dist/classes/Market.js.map +1 -0
  27. package/dist/classes/OracleManager.d.ts +13 -0
  28. package/dist/classes/OracleManager.d.ts.map +1 -0
  29. package/dist/classes/OracleManager.js +34 -0
  30. package/dist/classes/OracleManager.js.map +1 -0
  31. package/dist/classes/ProtocolReader.d.ts +116 -0
  32. package/dist/classes/ProtocolReader.d.ts.map +1 -0
  33. package/dist/classes/ProtocolReader.js +136 -0
  34. package/dist/classes/ProtocolReader.js.map +1 -0
  35. package/dist/helpers.d.ts +21 -0
  36. package/dist/helpers.d.ts.map +1 -0
  37. package/dist/helpers.js +55 -0
  38. package/dist/helpers.js.map +1 -0
  39. package/dist/index.d.ts +9 -0
  40. package/dist/index.d.ts.map +1 -0
  41. package/dist/index.js +25 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/setup.d.ts +11 -0
  44. package/dist/setup.d.ts.map +1 -0
  45. package/dist/setup.js +2 -10
  46. package/dist/setup.js.map +1 -0
  47. package/dist/types.d.ts +10 -0
  48. package/dist/types.d.ts.map +1 -0
  49. package/dist/types.js +3 -0
  50. package/dist/types.js.map +1 -0
  51. package/package.json +5 -4
@@ -0,0 +1,1550 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "DOMAIN_SEPARATOR",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "result",
9
+ "type": "bytes32",
10
+ "internalType": "bytes32"
11
+ }
12
+ ],
13
+ "stateMutability": "view"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "accrueIfNeeded",
18
+ "inputs": [],
19
+ "outputs": [],
20
+ "stateMutability": "nonpayable"
21
+ },
22
+ {
23
+ "type": "function",
24
+ "name": "allowance",
25
+ "inputs": [
26
+ {
27
+ "name": "owner",
28
+ "type": "address",
29
+ "internalType": "address"
30
+ },
31
+ {
32
+ "name": "spender",
33
+ "type": "address",
34
+ "internalType": "address"
35
+ }
36
+ ],
37
+ "outputs": [
38
+ {
39
+ "name": "result",
40
+ "type": "uint256",
41
+ "internalType": "uint256"
42
+ }
43
+ ],
44
+ "stateMutability": "view"
45
+ },
46
+ {
47
+ "type": "function",
48
+ "name": "approve",
49
+ "inputs": [
50
+ {
51
+ "name": "spender",
52
+ "type": "address",
53
+ "internalType": "address"
54
+ },
55
+ {
56
+ "name": "amount",
57
+ "type": "uint256",
58
+ "internalType": "uint256"
59
+ }
60
+ ],
61
+ "outputs": [
62
+ {
63
+ "name": "",
64
+ "type": "bool",
65
+ "internalType": "bool"
66
+ }
67
+ ],
68
+ "stateMutability": "nonpayable"
69
+ },
70
+ {
71
+ "type": "function",
72
+ "name": "asset",
73
+ "inputs": [],
74
+ "outputs": [
75
+ {
76
+ "name": "",
77
+ "type": "address",
78
+ "internalType": "address"
79
+ }
80
+ ],
81
+ "stateMutability": "view"
82
+ },
83
+ {
84
+ "type": "function",
85
+ "name": "balanceOf",
86
+ "inputs": [
87
+ {
88
+ "name": "owner",
89
+ "type": "address",
90
+ "internalType": "address"
91
+ }
92
+ ],
93
+ "outputs": [
94
+ {
95
+ "name": "result",
96
+ "type": "uint256",
97
+ "internalType": "uint256"
98
+ }
99
+ ],
100
+ "stateMutability": "view"
101
+ },
102
+ {
103
+ "type": "function",
104
+ "name": "centralRegistry",
105
+ "inputs": [],
106
+ "outputs": [
107
+ {
108
+ "name": "",
109
+ "type": "address",
110
+ "internalType": "contract ICentralRegistry"
111
+ }
112
+ ],
113
+ "stateMutability": "view"
114
+ },
115
+ {
116
+ "type": "function",
117
+ "name": "checkDelegationDisabled",
118
+ "inputs": [
119
+ {
120
+ "name": "user",
121
+ "type": "address",
122
+ "internalType": "address"
123
+ }
124
+ ],
125
+ "outputs": [
126
+ {
127
+ "name": "result",
128
+ "type": "bool",
129
+ "internalType": "bool"
130
+ }
131
+ ],
132
+ "stateMutability": "view"
133
+ },
134
+ {
135
+ "type": "function",
136
+ "name": "collateralPosted",
137
+ "inputs": [
138
+ {
139
+ "name": "",
140
+ "type": "address",
141
+ "internalType": "address"
142
+ }
143
+ ],
144
+ "outputs": [
145
+ {
146
+ "name": "",
147
+ "type": "uint256",
148
+ "internalType": "uint256"
149
+ }
150
+ ],
151
+ "stateMutability": "view"
152
+ },
153
+ {
154
+ "type": "function",
155
+ "name": "convertToAssets",
156
+ "inputs": [
157
+ {
158
+ "name": "shares",
159
+ "type": "uint256",
160
+ "internalType": "uint256"
161
+ }
162
+ ],
163
+ "outputs": [
164
+ {
165
+ "name": "",
166
+ "type": "uint256",
167
+ "internalType": "uint256"
168
+ }
169
+ ],
170
+ "stateMutability": "view"
171
+ },
172
+ {
173
+ "type": "function",
174
+ "name": "convertToShares",
175
+ "inputs": [
176
+ {
177
+ "name": "assets",
178
+ "type": "uint256",
179
+ "internalType": "uint256"
180
+ }
181
+ ],
182
+ "outputs": [
183
+ {
184
+ "name": "",
185
+ "type": "uint256",
186
+ "internalType": "uint256"
187
+ }
188
+ ],
189
+ "stateMutability": "view"
190
+ },
191
+ {
192
+ "type": "function",
193
+ "name": "decimals",
194
+ "inputs": [],
195
+ "outputs": [
196
+ {
197
+ "name": "",
198
+ "type": "uint8",
199
+ "internalType": "uint8"
200
+ }
201
+ ],
202
+ "stateMutability": "view"
203
+ },
204
+ {
205
+ "type": "function",
206
+ "name": "deposit",
207
+ "inputs": [
208
+ {
209
+ "name": "assets",
210
+ "type": "uint256",
211
+ "internalType": "uint256"
212
+ },
213
+ {
214
+ "name": "receiver",
215
+ "type": "address",
216
+ "internalType": "address"
217
+ }
218
+ ],
219
+ "outputs": [
220
+ {
221
+ "name": "shares",
222
+ "type": "uint256",
223
+ "internalType": "uint256"
224
+ }
225
+ ],
226
+ "stateMutability": "nonpayable"
227
+ },
228
+ {
229
+ "type": "function",
230
+ "name": "depositAsCollateral",
231
+ "inputs": [
232
+ {
233
+ "name": "assets",
234
+ "type": "uint256",
235
+ "internalType": "uint256"
236
+ },
237
+ {
238
+ "name": "receiver",
239
+ "type": "address",
240
+ "internalType": "address"
241
+ }
242
+ ],
243
+ "outputs": [
244
+ {
245
+ "name": "shares",
246
+ "type": "uint256",
247
+ "internalType": "uint256"
248
+ }
249
+ ],
250
+ "stateMutability": "nonpayable"
251
+ },
252
+ {
253
+ "type": "function",
254
+ "name": "depositAsCollateralFor",
255
+ "inputs": [
256
+ {
257
+ "name": "assets",
258
+ "type": "uint256",
259
+ "internalType": "uint256"
260
+ },
261
+ {
262
+ "name": "receiver",
263
+ "type": "address",
264
+ "internalType": "address"
265
+ }
266
+ ],
267
+ "outputs": [
268
+ {
269
+ "name": "shares",
270
+ "type": "uint256",
271
+ "internalType": "uint256"
272
+ }
273
+ ],
274
+ "stateMutability": "nonpayable"
275
+ },
276
+ {
277
+ "type": "function",
278
+ "name": "exchangeRate",
279
+ "inputs": [],
280
+ "outputs": [
281
+ {
282
+ "name": "r",
283
+ "type": "uint256",
284
+ "internalType": "uint256"
285
+ }
286
+ ],
287
+ "stateMutability": "view"
288
+ },
289
+ {
290
+ "type": "function",
291
+ "name": "getSnapshot",
292
+ "inputs": [
293
+ {
294
+ "name": "account",
295
+ "type": "address",
296
+ "internalType": "address"
297
+ }
298
+ ],
299
+ "outputs": [
300
+ {
301
+ "name": "result",
302
+ "type": "tuple",
303
+ "internalType": "struct AccountSnapshot",
304
+ "components": [
305
+ {
306
+ "name": "asset",
307
+ "type": "address",
308
+ "internalType": "address"
309
+ },
310
+ {
311
+ "name": "decimals",
312
+ "type": "uint8",
313
+ "internalType": "uint8"
314
+ },
315
+ {
316
+ "name": "isCollateral",
317
+ "type": "bool",
318
+ "internalType": "bool"
319
+ },
320
+ {
321
+ "name": "exchangeRate",
322
+ "type": "uint256",
323
+ "internalType": "uint256"
324
+ },
325
+ {
326
+ "name": "collateralPosted",
327
+ "type": "uint256",
328
+ "internalType": "uint256"
329
+ },
330
+ {
331
+ "name": "debtBalance",
332
+ "type": "uint256",
333
+ "internalType": "uint256"
334
+ }
335
+ ]
336
+ }
337
+ ],
338
+ "stateMutability": "view"
339
+ },
340
+ {
341
+ "type": "function",
342
+ "name": "initializeDeposits",
343
+ "inputs": [
344
+ {
345
+ "name": "by",
346
+ "type": "address",
347
+ "internalType": "address"
348
+ }
349
+ ],
350
+ "outputs": [
351
+ {
352
+ "name": "",
353
+ "type": "bool",
354
+ "internalType": "bool"
355
+ }
356
+ ],
357
+ "stateMutability": "nonpayable"
358
+ },
359
+ {
360
+ "type": "function",
361
+ "name": "isBorrowable",
362
+ "inputs": [],
363
+ "outputs": [
364
+ {
365
+ "name": "",
366
+ "type": "bool",
367
+ "internalType": "bool"
368
+ }
369
+ ],
370
+ "stateMutability": "pure"
371
+ },
372
+ {
373
+ "type": "function",
374
+ "name": "isDelegate",
375
+ "inputs": [
376
+ {
377
+ "name": "user",
378
+ "type": "address",
379
+ "internalType": "address"
380
+ },
381
+ {
382
+ "name": "delegate",
383
+ "type": "address",
384
+ "internalType": "address"
385
+ }
386
+ ],
387
+ "outputs": [
388
+ {
389
+ "name": "result",
390
+ "type": "bool",
391
+ "internalType": "bool"
392
+ }
393
+ ],
394
+ "stateMutability": "view"
395
+ },
396
+ {
397
+ "type": "function",
398
+ "name": "marketCollateralPosted",
399
+ "inputs": [],
400
+ "outputs": [
401
+ {
402
+ "name": "",
403
+ "type": "uint256",
404
+ "internalType": "uint256"
405
+ }
406
+ ],
407
+ "stateMutability": "view"
408
+ },
409
+ {
410
+ "type": "function",
411
+ "name": "marketManager",
412
+ "inputs": [],
413
+ "outputs": [
414
+ {
415
+ "name": "",
416
+ "type": "address",
417
+ "internalType": "contract IMarketManager"
418
+ }
419
+ ],
420
+ "stateMutability": "view"
421
+ },
422
+ {
423
+ "type": "function",
424
+ "name": "maxDeposit",
425
+ "inputs": [
426
+ {
427
+ "name": "receiver",
428
+ "type": "address",
429
+ "internalType": "address"
430
+ }
431
+ ],
432
+ "outputs": [
433
+ {
434
+ "name": "maxAssets",
435
+ "type": "uint256",
436
+ "internalType": "uint256"
437
+ }
438
+ ],
439
+ "stateMutability": "view"
440
+ },
441
+ {
442
+ "type": "function",
443
+ "name": "maxMint",
444
+ "inputs": [
445
+ {
446
+ "name": "receiver",
447
+ "type": "address",
448
+ "internalType": "address"
449
+ }
450
+ ],
451
+ "outputs": [
452
+ {
453
+ "name": "maxShares",
454
+ "type": "uint256",
455
+ "internalType": "uint256"
456
+ }
457
+ ],
458
+ "stateMutability": "view"
459
+ },
460
+ {
461
+ "type": "function",
462
+ "name": "maxRedeem",
463
+ "inputs": [
464
+ {
465
+ "name": "owner",
466
+ "type": "address",
467
+ "internalType": "address"
468
+ }
469
+ ],
470
+ "outputs": [
471
+ {
472
+ "name": "maxShares",
473
+ "type": "uint256",
474
+ "internalType": "uint256"
475
+ }
476
+ ],
477
+ "stateMutability": "view"
478
+ },
479
+ {
480
+ "type": "function",
481
+ "name": "maxWithdraw",
482
+ "inputs": [
483
+ {
484
+ "name": "owner",
485
+ "type": "address",
486
+ "internalType": "address"
487
+ }
488
+ ],
489
+ "outputs": [
490
+ {
491
+ "name": "maxAssets",
492
+ "type": "uint256",
493
+ "internalType": "uint256"
494
+ }
495
+ ],
496
+ "stateMutability": "view"
497
+ },
498
+ {
499
+ "type": "function",
500
+ "name": "mint",
501
+ "inputs": [
502
+ {
503
+ "name": "shares",
504
+ "type": "uint256",
505
+ "internalType": "uint256"
506
+ },
507
+ {
508
+ "name": "receiver",
509
+ "type": "address",
510
+ "internalType": "address"
511
+ }
512
+ ],
513
+ "outputs": [
514
+ {
515
+ "name": "assets",
516
+ "type": "uint256",
517
+ "internalType": "uint256"
518
+ }
519
+ ],
520
+ "stateMutability": "nonpayable"
521
+ },
522
+ {
523
+ "type": "function",
524
+ "name": "multicall",
525
+ "inputs": [
526
+ {
527
+ "name": "calls",
528
+ "type": "tuple[]",
529
+ "internalType": "struct Multicall.MulticallAction[]",
530
+ "components": [
531
+ {
532
+ "name": "target",
533
+ "type": "address",
534
+ "internalType": "address"
535
+ },
536
+ {
537
+ "name": "isPriceUpdate",
538
+ "type": "bool",
539
+ "internalType": "bool"
540
+ },
541
+ {
542
+ "name": "data",
543
+ "type": "bytes",
544
+ "internalType": "bytes"
545
+ }
546
+ ]
547
+ }
548
+ ],
549
+ "outputs": [
550
+ {
551
+ "name": "results",
552
+ "type": "bytes[]",
553
+ "internalType": "bytes[]"
554
+ }
555
+ ],
556
+ "stateMutability": "nonpayable"
557
+ },
558
+ {
559
+ "type": "function",
560
+ "name": "name",
561
+ "inputs": [],
562
+ "outputs": [
563
+ {
564
+ "name": "",
565
+ "type": "string",
566
+ "internalType": "string"
567
+ }
568
+ ],
569
+ "stateMutability": "view"
570
+ },
571
+ {
572
+ "type": "function",
573
+ "name": "nonces",
574
+ "inputs": [
575
+ {
576
+ "name": "owner",
577
+ "type": "address",
578
+ "internalType": "address"
579
+ }
580
+ ],
581
+ "outputs": [
582
+ {
583
+ "name": "result",
584
+ "type": "uint256",
585
+ "internalType": "uint256"
586
+ }
587
+ ],
588
+ "stateMutability": "view"
589
+ },
590
+ {
591
+ "type": "function",
592
+ "name": "permit",
593
+ "inputs": [
594
+ {
595
+ "name": "owner",
596
+ "type": "address",
597
+ "internalType": "address"
598
+ },
599
+ {
600
+ "name": "spender",
601
+ "type": "address",
602
+ "internalType": "address"
603
+ },
604
+ {
605
+ "name": "value",
606
+ "type": "uint256",
607
+ "internalType": "uint256"
608
+ },
609
+ {
610
+ "name": "deadline",
611
+ "type": "uint256",
612
+ "internalType": "uint256"
613
+ },
614
+ {
615
+ "name": "v",
616
+ "type": "uint8",
617
+ "internalType": "uint8"
618
+ },
619
+ {
620
+ "name": "r",
621
+ "type": "bytes32",
622
+ "internalType": "bytes32"
623
+ },
624
+ {
625
+ "name": "s",
626
+ "type": "bytes32",
627
+ "internalType": "bytes32"
628
+ }
629
+ ],
630
+ "outputs": [],
631
+ "stateMutability": "nonpayable"
632
+ },
633
+ {
634
+ "type": "function",
635
+ "name": "postCollateral",
636
+ "inputs": [
637
+ {
638
+ "name": "shares",
639
+ "type": "uint256",
640
+ "internalType": "uint256"
641
+ }
642
+ ],
643
+ "outputs": [],
644
+ "stateMutability": "nonpayable"
645
+ },
646
+ {
647
+ "type": "function",
648
+ "name": "postCollateralFor",
649
+ "inputs": [
650
+ {
651
+ "name": "shares",
652
+ "type": "uint256",
653
+ "internalType": "uint256"
654
+ },
655
+ {
656
+ "name": "owner",
657
+ "type": "address",
658
+ "internalType": "address"
659
+ }
660
+ ],
661
+ "outputs": [],
662
+ "stateMutability": "nonpayable"
663
+ },
664
+ {
665
+ "type": "function",
666
+ "name": "previewDeposit",
667
+ "inputs": [
668
+ {
669
+ "name": "assets",
670
+ "type": "uint256",
671
+ "internalType": "uint256"
672
+ }
673
+ ],
674
+ "outputs": [
675
+ {
676
+ "name": "",
677
+ "type": "uint256",
678
+ "internalType": "uint256"
679
+ }
680
+ ],
681
+ "stateMutability": "view"
682
+ },
683
+ {
684
+ "type": "function",
685
+ "name": "previewMint",
686
+ "inputs": [
687
+ {
688
+ "name": "shares",
689
+ "type": "uint256",
690
+ "internalType": "uint256"
691
+ }
692
+ ],
693
+ "outputs": [
694
+ {
695
+ "name": "",
696
+ "type": "uint256",
697
+ "internalType": "uint256"
698
+ }
699
+ ],
700
+ "stateMutability": "view"
701
+ },
702
+ {
703
+ "type": "function",
704
+ "name": "previewRedeem",
705
+ "inputs": [
706
+ {
707
+ "name": "shares",
708
+ "type": "uint256",
709
+ "internalType": "uint256"
710
+ }
711
+ ],
712
+ "outputs": [
713
+ {
714
+ "name": "",
715
+ "type": "uint256",
716
+ "internalType": "uint256"
717
+ }
718
+ ],
719
+ "stateMutability": "view"
720
+ },
721
+ {
722
+ "type": "function",
723
+ "name": "previewWithdraw",
724
+ "inputs": [
725
+ {
726
+ "name": "assets",
727
+ "type": "uint256",
728
+ "internalType": "uint256"
729
+ }
730
+ ],
731
+ "outputs": [
732
+ {
733
+ "name": "",
734
+ "type": "uint256",
735
+ "internalType": "uint256"
736
+ }
737
+ ],
738
+ "stateMutability": "view"
739
+ },
740
+ {
741
+ "type": "function",
742
+ "name": "redeem",
743
+ "inputs": [
744
+ {
745
+ "name": "shares",
746
+ "type": "uint256",
747
+ "internalType": "uint256"
748
+ },
749
+ {
750
+ "name": "receiver",
751
+ "type": "address",
752
+ "internalType": "address"
753
+ },
754
+ {
755
+ "name": "owner",
756
+ "type": "address",
757
+ "internalType": "address"
758
+ }
759
+ ],
760
+ "outputs": [
761
+ {
762
+ "name": "assets",
763
+ "type": "uint256",
764
+ "internalType": "uint256"
765
+ }
766
+ ],
767
+ "stateMutability": "nonpayable"
768
+ },
769
+ {
770
+ "type": "function",
771
+ "name": "redeemCollateral",
772
+ "inputs": [
773
+ {
774
+ "name": "shares",
775
+ "type": "uint256",
776
+ "internalType": "uint256"
777
+ },
778
+ {
779
+ "name": "receiver",
780
+ "type": "address",
781
+ "internalType": "address"
782
+ },
783
+ {
784
+ "name": "owner",
785
+ "type": "address",
786
+ "internalType": "address"
787
+ }
788
+ ],
789
+ "outputs": [
790
+ {
791
+ "name": "assets",
792
+ "type": "uint256",
793
+ "internalType": "uint256"
794
+ }
795
+ ],
796
+ "stateMutability": "nonpayable"
797
+ },
798
+ {
799
+ "type": "function",
800
+ "name": "redeemCollateralFor",
801
+ "inputs": [
802
+ {
803
+ "name": "shares",
804
+ "type": "uint256",
805
+ "internalType": "uint256"
806
+ },
807
+ {
808
+ "name": "receiver",
809
+ "type": "address",
810
+ "internalType": "address"
811
+ },
812
+ {
813
+ "name": "owner",
814
+ "type": "address",
815
+ "internalType": "address"
816
+ }
817
+ ],
818
+ "outputs": [
819
+ {
820
+ "name": "assets",
821
+ "type": "uint256",
822
+ "internalType": "uint256"
823
+ }
824
+ ],
825
+ "stateMutability": "nonpayable"
826
+ },
827
+ {
828
+ "type": "function",
829
+ "name": "redeemFor",
830
+ "inputs": [
831
+ {
832
+ "name": "shares",
833
+ "type": "uint256",
834
+ "internalType": "uint256"
835
+ },
836
+ {
837
+ "name": "receiver",
838
+ "type": "address",
839
+ "internalType": "address"
840
+ },
841
+ {
842
+ "name": "owner",
843
+ "type": "address",
844
+ "internalType": "address"
845
+ }
846
+ ],
847
+ "outputs": [
848
+ {
849
+ "name": "assets",
850
+ "type": "uint256",
851
+ "internalType": "uint256"
852
+ }
853
+ ],
854
+ "stateMutability": "nonpayable"
855
+ },
856
+ {
857
+ "type": "function",
858
+ "name": "removeCollateral",
859
+ "inputs": [
860
+ {
861
+ "name": "shares",
862
+ "type": "uint256",
863
+ "internalType": "uint256"
864
+ }
865
+ ],
866
+ "outputs": [],
867
+ "stateMutability": "nonpayable"
868
+ },
869
+ {
870
+ "type": "function",
871
+ "name": "removeCollateralFor",
872
+ "inputs": [
873
+ {
874
+ "name": "shares",
875
+ "type": "uint256",
876
+ "internalType": "uint256"
877
+ },
878
+ {
879
+ "name": "owner",
880
+ "type": "address",
881
+ "internalType": "address"
882
+ }
883
+ ],
884
+ "outputs": [],
885
+ "stateMutability": "nonpayable"
886
+ },
887
+ {
888
+ "type": "function",
889
+ "name": "rescueToken",
890
+ "inputs": [
891
+ {
892
+ "name": "token",
893
+ "type": "address",
894
+ "internalType": "address"
895
+ },
896
+ {
897
+ "name": "amount",
898
+ "type": "uint256",
899
+ "internalType": "uint256"
900
+ }
901
+ ],
902
+ "outputs": [],
903
+ "stateMutability": "nonpayable"
904
+ },
905
+ {
906
+ "type": "function",
907
+ "name": "seize",
908
+ "inputs": [
909
+ {
910
+ "name": "liquidatedShares",
911
+ "type": "uint256[]",
912
+ "internalType": "uint256[]"
913
+ },
914
+ {
915
+ "name": "liquidator",
916
+ "type": "address",
917
+ "internalType": "address"
918
+ },
919
+ {
920
+ "name": "accounts",
921
+ "type": "address[]",
922
+ "internalType": "address[]"
923
+ }
924
+ ],
925
+ "outputs": [],
926
+ "stateMutability": "nonpayable"
927
+ },
928
+ {
929
+ "type": "function",
930
+ "name": "setDelegateApproval",
931
+ "inputs": [
932
+ {
933
+ "name": "delegate",
934
+ "type": "address",
935
+ "internalType": "address"
936
+ },
937
+ {
938
+ "name": "isApproved",
939
+ "type": "bool",
940
+ "internalType": "bool"
941
+ }
942
+ ],
943
+ "outputs": [],
944
+ "stateMutability": "nonpayable"
945
+ },
946
+ {
947
+ "type": "function",
948
+ "name": "supportsInterface",
949
+ "inputs": [
950
+ {
951
+ "name": "interfaceId",
952
+ "type": "bytes4",
953
+ "internalType": "bytes4"
954
+ }
955
+ ],
956
+ "outputs": [
957
+ {
958
+ "name": "result",
959
+ "type": "bool",
960
+ "internalType": "bool"
961
+ }
962
+ ],
963
+ "stateMutability": "pure"
964
+ },
965
+ {
966
+ "type": "function",
967
+ "name": "symbol",
968
+ "inputs": [],
969
+ "outputs": [
970
+ {
971
+ "name": "",
972
+ "type": "string",
973
+ "internalType": "string"
974
+ }
975
+ ],
976
+ "stateMutability": "view"
977
+ },
978
+ {
979
+ "type": "function",
980
+ "name": "totalAssets",
981
+ "inputs": [],
982
+ "outputs": [
983
+ {
984
+ "name": "",
985
+ "type": "uint256",
986
+ "internalType": "uint256"
987
+ }
988
+ ],
989
+ "stateMutability": "view"
990
+ },
991
+ {
992
+ "type": "function",
993
+ "name": "totalSupply",
994
+ "inputs": [],
995
+ "outputs": [
996
+ {
997
+ "name": "result",
998
+ "type": "uint256",
999
+ "internalType": "uint256"
1000
+ }
1001
+ ],
1002
+ "stateMutability": "view"
1003
+ },
1004
+ {
1005
+ "type": "function",
1006
+ "name": "transfer",
1007
+ "inputs": [
1008
+ {
1009
+ "name": "receiver",
1010
+ "type": "address",
1011
+ "internalType": "address"
1012
+ },
1013
+ {
1014
+ "name": "shares",
1015
+ "type": "uint256",
1016
+ "internalType": "uint256"
1017
+ }
1018
+ ],
1019
+ "outputs": [
1020
+ {
1021
+ "name": "",
1022
+ "type": "bool",
1023
+ "internalType": "bool"
1024
+ }
1025
+ ],
1026
+ "stateMutability": "nonpayable"
1027
+ },
1028
+ {
1029
+ "type": "function",
1030
+ "name": "transferFrom",
1031
+ "inputs": [
1032
+ {
1033
+ "name": "owner",
1034
+ "type": "address",
1035
+ "internalType": "address"
1036
+ },
1037
+ {
1038
+ "name": "receiver",
1039
+ "type": "address",
1040
+ "internalType": "address"
1041
+ },
1042
+ {
1043
+ "name": "shares",
1044
+ "type": "uint256",
1045
+ "internalType": "uint256"
1046
+ }
1047
+ ],
1048
+ "outputs": [
1049
+ {
1050
+ "name": "",
1051
+ "type": "bool",
1052
+ "internalType": "bool"
1053
+ }
1054
+ ],
1055
+ "stateMutability": "nonpayable"
1056
+ },
1057
+ {
1058
+ "type": "function",
1059
+ "name": "userApprovalIndex",
1060
+ "inputs": [
1061
+ {
1062
+ "name": "user",
1063
+ "type": "address",
1064
+ "internalType": "address"
1065
+ }
1066
+ ],
1067
+ "outputs": [
1068
+ {
1069
+ "name": "result",
1070
+ "type": "uint256",
1071
+ "internalType": "uint256"
1072
+ }
1073
+ ],
1074
+ "stateMutability": "view"
1075
+ },
1076
+ {
1077
+ "type": "function",
1078
+ "name": "withdraw",
1079
+ "inputs": [
1080
+ {
1081
+ "name": "assets",
1082
+ "type": "uint256",
1083
+ "internalType": "uint256"
1084
+ },
1085
+ {
1086
+ "name": "receiver",
1087
+ "type": "address",
1088
+ "internalType": "address"
1089
+ },
1090
+ {
1091
+ "name": "owner",
1092
+ "type": "address",
1093
+ "internalType": "address"
1094
+ }
1095
+ ],
1096
+ "outputs": [
1097
+ {
1098
+ "name": "shares",
1099
+ "type": "uint256",
1100
+ "internalType": "uint256"
1101
+ }
1102
+ ],
1103
+ "stateMutability": "nonpayable"
1104
+ },
1105
+ {
1106
+ "type": "function",
1107
+ "name": "withdrawByPositionManager",
1108
+ "inputs": [
1109
+ {
1110
+ "name": "assets",
1111
+ "type": "uint256",
1112
+ "internalType": "uint256"
1113
+ },
1114
+ {
1115
+ "name": "owner",
1116
+ "type": "address",
1117
+ "internalType": "address"
1118
+ },
1119
+ {
1120
+ "name": "action",
1121
+ "type": "tuple",
1122
+ "internalType": "struct IPositionManager.DeleverageAction",
1123
+ "components": [
1124
+ {
1125
+ "name": "cToken",
1126
+ "type": "address",
1127
+ "internalType": "contract ICToken"
1128
+ },
1129
+ {
1130
+ "name": "collateralAssets",
1131
+ "type": "uint256",
1132
+ "internalType": "uint256"
1133
+ },
1134
+ {
1135
+ "name": "borrowableCToken",
1136
+ "type": "address",
1137
+ "internalType": "contract IBorrowableCToken"
1138
+ },
1139
+ {
1140
+ "name": "repayAssets",
1141
+ "type": "uint256",
1142
+ "internalType": "uint256"
1143
+ },
1144
+ {
1145
+ "name": "swapActions",
1146
+ "type": "tuple[]",
1147
+ "internalType": "struct SwapperLib.Swap[]",
1148
+ "components": [
1149
+ {
1150
+ "name": "inputToken",
1151
+ "type": "address",
1152
+ "internalType": "address"
1153
+ },
1154
+ {
1155
+ "name": "inputAmount",
1156
+ "type": "uint256",
1157
+ "internalType": "uint256"
1158
+ },
1159
+ {
1160
+ "name": "outputToken",
1161
+ "type": "address",
1162
+ "internalType": "address"
1163
+ },
1164
+ {
1165
+ "name": "target",
1166
+ "type": "address",
1167
+ "internalType": "address"
1168
+ },
1169
+ {
1170
+ "name": "slippage",
1171
+ "type": "uint256",
1172
+ "internalType": "uint256"
1173
+ },
1174
+ {
1175
+ "name": "call",
1176
+ "type": "bytes",
1177
+ "internalType": "bytes"
1178
+ }
1179
+ ]
1180
+ },
1181
+ {
1182
+ "name": "auxData",
1183
+ "type": "bytes",
1184
+ "internalType": "bytes"
1185
+ }
1186
+ ]
1187
+ }
1188
+ ],
1189
+ "outputs": [],
1190
+ "stateMutability": "nonpayable"
1191
+ },
1192
+ {
1193
+ "type": "function",
1194
+ "name": "withdrawCollateral",
1195
+ "inputs": [
1196
+ {
1197
+ "name": "assets",
1198
+ "type": "uint256",
1199
+ "internalType": "uint256"
1200
+ },
1201
+ {
1202
+ "name": "receiver",
1203
+ "type": "address",
1204
+ "internalType": "address"
1205
+ },
1206
+ {
1207
+ "name": "owner",
1208
+ "type": "address",
1209
+ "internalType": "address"
1210
+ }
1211
+ ],
1212
+ "outputs": [
1213
+ {
1214
+ "name": "shares",
1215
+ "type": "uint256",
1216
+ "internalType": "uint256"
1217
+ }
1218
+ ],
1219
+ "stateMutability": "nonpayable"
1220
+ },
1221
+ {
1222
+ "type": "event",
1223
+ "name": "Approval",
1224
+ "inputs": [
1225
+ {
1226
+ "name": "owner",
1227
+ "type": "address",
1228
+ "indexed": true,
1229
+ "internalType": "address"
1230
+ },
1231
+ {
1232
+ "name": "spender",
1233
+ "type": "address",
1234
+ "indexed": true,
1235
+ "internalType": "address"
1236
+ },
1237
+ {
1238
+ "name": "amount",
1239
+ "type": "uint256",
1240
+ "indexed": false,
1241
+ "internalType": "uint256"
1242
+ }
1243
+ ],
1244
+ "anonymous": false
1245
+ },
1246
+ {
1247
+ "type": "event",
1248
+ "name": "CollateralUpdated",
1249
+ "inputs": [
1250
+ {
1251
+ "name": "shares",
1252
+ "type": "uint256",
1253
+ "indexed": false,
1254
+ "internalType": "uint256"
1255
+ },
1256
+ {
1257
+ "name": "increased",
1258
+ "type": "bool",
1259
+ "indexed": false,
1260
+ "internalType": "bool"
1261
+ },
1262
+ {
1263
+ "name": "account",
1264
+ "type": "address",
1265
+ "indexed": false,
1266
+ "internalType": "address"
1267
+ }
1268
+ ],
1269
+ "anonymous": false
1270
+ },
1271
+ {
1272
+ "type": "event",
1273
+ "name": "DelegateApproval",
1274
+ "inputs": [
1275
+ {
1276
+ "name": "owner",
1277
+ "type": "address",
1278
+ "indexed": true,
1279
+ "internalType": "address"
1280
+ },
1281
+ {
1282
+ "name": "delegate",
1283
+ "type": "address",
1284
+ "indexed": true,
1285
+ "internalType": "address"
1286
+ },
1287
+ {
1288
+ "name": "approvalIndex",
1289
+ "type": "uint256",
1290
+ "indexed": false,
1291
+ "internalType": "uint256"
1292
+ },
1293
+ {
1294
+ "name": "isApproved",
1295
+ "type": "bool",
1296
+ "indexed": false,
1297
+ "internalType": "bool"
1298
+ }
1299
+ ],
1300
+ "anonymous": false
1301
+ },
1302
+ {
1303
+ "type": "event",
1304
+ "name": "Deposit",
1305
+ "inputs": [
1306
+ {
1307
+ "name": "by",
1308
+ "type": "address",
1309
+ "indexed": true,
1310
+ "internalType": "address"
1311
+ },
1312
+ {
1313
+ "name": "owner",
1314
+ "type": "address",
1315
+ "indexed": true,
1316
+ "internalType": "address"
1317
+ },
1318
+ {
1319
+ "name": "assets",
1320
+ "type": "uint256",
1321
+ "indexed": false,
1322
+ "internalType": "uint256"
1323
+ },
1324
+ {
1325
+ "name": "shares",
1326
+ "type": "uint256",
1327
+ "indexed": false,
1328
+ "internalType": "uint256"
1329
+ }
1330
+ ],
1331
+ "anonymous": false
1332
+ },
1333
+ {
1334
+ "type": "event",
1335
+ "name": "Liquidated",
1336
+ "inputs": [
1337
+ {
1338
+ "name": "shares",
1339
+ "type": "uint256",
1340
+ "indexed": false,
1341
+ "internalType": "uint256"
1342
+ },
1343
+ {
1344
+ "name": "liquidator",
1345
+ "type": "address",
1346
+ "indexed": false,
1347
+ "internalType": "address"
1348
+ },
1349
+ {
1350
+ "name": "account",
1351
+ "type": "address",
1352
+ "indexed": false,
1353
+ "internalType": "address"
1354
+ }
1355
+ ],
1356
+ "anonymous": false
1357
+ },
1358
+ {
1359
+ "type": "event",
1360
+ "name": "Transfer",
1361
+ "inputs": [
1362
+ {
1363
+ "name": "from",
1364
+ "type": "address",
1365
+ "indexed": true,
1366
+ "internalType": "address"
1367
+ },
1368
+ {
1369
+ "name": "to",
1370
+ "type": "address",
1371
+ "indexed": true,
1372
+ "internalType": "address"
1373
+ },
1374
+ {
1375
+ "name": "amount",
1376
+ "type": "uint256",
1377
+ "indexed": false,
1378
+ "internalType": "uint256"
1379
+ }
1380
+ ],
1381
+ "anonymous": false
1382
+ },
1383
+ {
1384
+ "type": "event",
1385
+ "name": "Withdraw",
1386
+ "inputs": [
1387
+ {
1388
+ "name": "by",
1389
+ "type": "address",
1390
+ "indexed": true,
1391
+ "internalType": "address"
1392
+ },
1393
+ {
1394
+ "name": "to",
1395
+ "type": "address",
1396
+ "indexed": true,
1397
+ "internalType": "address"
1398
+ },
1399
+ {
1400
+ "name": "owner",
1401
+ "type": "address",
1402
+ "indexed": true,
1403
+ "internalType": "address"
1404
+ },
1405
+ {
1406
+ "name": "assets",
1407
+ "type": "uint256",
1408
+ "indexed": false,
1409
+ "internalType": "uint256"
1410
+ },
1411
+ {
1412
+ "name": "shares",
1413
+ "type": "uint256",
1414
+ "indexed": false,
1415
+ "internalType": "uint256"
1416
+ }
1417
+ ],
1418
+ "anonymous": false
1419
+ },
1420
+ {
1421
+ "type": "error",
1422
+ "name": "AllowanceOverflow",
1423
+ "inputs": []
1424
+ },
1425
+ {
1426
+ "type": "error",
1427
+ "name": "AllowanceUnderflow",
1428
+ "inputs": []
1429
+ },
1430
+ {
1431
+ "type": "error",
1432
+ "name": "BaseCToken__InsufficientLiquidity",
1433
+ "inputs": []
1434
+ },
1435
+ {
1436
+ "type": "error",
1437
+ "name": "BaseCToken__InvalidMarketManager",
1438
+ "inputs": []
1439
+ },
1440
+ {
1441
+ "type": "error",
1442
+ "name": "BaseCToken__TransferError",
1443
+ "inputs": []
1444
+ },
1445
+ {
1446
+ "type": "error",
1447
+ "name": "BaseCToken__Unauthorized",
1448
+ "inputs": []
1449
+ },
1450
+ {
1451
+ "type": "error",
1452
+ "name": "BaseCToken__UnsupportedAsset",
1453
+ "inputs": []
1454
+ },
1455
+ {
1456
+ "type": "error",
1457
+ "name": "BaseCToken__UnsupportedChain",
1458
+ "inputs": []
1459
+ },
1460
+ {
1461
+ "type": "error",
1462
+ "name": "BaseCToken__ZeroAmount",
1463
+ "inputs": []
1464
+ },
1465
+ {
1466
+ "type": "error",
1467
+ "name": "CentralRegistryLib__InvalidCentralRegistry",
1468
+ "inputs": []
1469
+ },
1470
+ {
1471
+ "type": "error",
1472
+ "name": "DepositMoreThanMax",
1473
+ "inputs": []
1474
+ },
1475
+ {
1476
+ "type": "error",
1477
+ "name": "InsufficientAllowance",
1478
+ "inputs": []
1479
+ },
1480
+ {
1481
+ "type": "error",
1482
+ "name": "InsufficientBalance",
1483
+ "inputs": []
1484
+ },
1485
+ {
1486
+ "type": "error",
1487
+ "name": "InvalidPermit",
1488
+ "inputs": []
1489
+ },
1490
+ {
1491
+ "type": "error",
1492
+ "name": "LowLevelCallsHelper__CallFailed",
1493
+ "inputs": []
1494
+ },
1495
+ {
1496
+ "type": "error",
1497
+ "name": "MintMoreThanMax",
1498
+ "inputs": []
1499
+ },
1500
+ {
1501
+ "type": "error",
1502
+ "name": "Multicall__InvalidTarget",
1503
+ "inputs": []
1504
+ },
1505
+ {
1506
+ "type": "error",
1507
+ "name": "Multicall__UnknownCalldata",
1508
+ "inputs": []
1509
+ },
1510
+ {
1511
+ "type": "error",
1512
+ "name": "PermitExpired",
1513
+ "inputs": []
1514
+ },
1515
+ {
1516
+ "type": "error",
1517
+ "name": "PluginDelegable_InvalidParameter",
1518
+ "inputs": []
1519
+ },
1520
+ {
1521
+ "type": "error",
1522
+ "name": "PluginDelegable__DelegatingDisabled",
1523
+ "inputs": []
1524
+ },
1525
+ {
1526
+ "type": "error",
1527
+ "name": "PluginDelegable__Unauthorized",
1528
+ "inputs": []
1529
+ },
1530
+ {
1531
+ "type": "error",
1532
+ "name": "RedeemMoreThanMax",
1533
+ "inputs": []
1534
+ },
1535
+ {
1536
+ "type": "error",
1537
+ "name": "Reentrancy",
1538
+ "inputs": []
1539
+ },
1540
+ {
1541
+ "type": "error",
1542
+ "name": "TotalSupplyOverflow",
1543
+ "inputs": []
1544
+ },
1545
+ {
1546
+ "type": "error",
1547
+ "name": "WithdrawMoreThanMax",
1548
+ "inputs": []
1549
+ }
1550
+ ]