@wildcatfi/wildcat-sdk 3.0.41-beta → 3.0.43-beta

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