@gearbox-protocol/sdk 3.1.2 → 3.1.3-next.2

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 (48) hide show
  1. package/dist/cjs/abi/compressors.js +1124 -518
  2. package/dist/cjs/adapters/abi/adapters.js +123 -0
  3. package/dist/cjs/adapters/abi/index.js +1 -3
  4. package/dist/cjs/dev/setLTZero.js +7 -0
  5. package/dist/cjs/sdk/GearboxSDK.js +1 -6
  6. package/dist/cjs/sdk/accounts/CreditAccountsService.js +45 -30
  7. package/dist/cjs/sdk/accounts/utils.js +38 -0
  8. package/dist/cjs/sdk/constants/address-provider.js +11 -17
  9. package/dist/cjs/sdk/market/MarketSuite.js +1 -1
  10. package/dist/cjs/sdk/market/credit/CreditFacadeV300Contract.js +1 -5
  11. package/dist/cjs/sdk/market/credit/CreditFacadeV310Contract.js +1 -5
  12. package/dist/cjs/sdk/market/oracle/PriceOracleBaseContract.js +6 -5
  13. package/dist/cjs/sdk/market/pool/PoolSuite.js +1 -1
  14. package/dist/cjs/sdk/market/pricefeeds/PriceFeedsRegister.js +4 -4
  15. package/dist/cjs/sdk/sdk-legacy/core/creditAccount.js +3 -1
  16. package/dist/esm/abi/compressors.js +1124 -513
  17. package/dist/esm/adapters/abi/adapters.js +120 -0
  18. package/dist/esm/adapters/abi/index.js +0 -1
  19. package/dist/esm/dev/setLTZero.js +7 -0
  20. package/dist/esm/sdk/GearboxSDK.js +1 -6
  21. package/dist/esm/sdk/accounts/CreditAccountsService.js +45 -30
  22. package/dist/esm/sdk/accounts/utils.js +14 -0
  23. package/dist/esm/sdk/constants/address-provider.js +11 -15
  24. package/dist/esm/sdk/market/MarketSuite.js +1 -1
  25. package/dist/esm/sdk/market/credit/CreditFacadeV300Contract.js +1 -5
  26. package/dist/esm/sdk/market/credit/CreditFacadeV310Contract.js +1 -5
  27. package/dist/esm/sdk/market/oracle/PriceOracleBaseContract.js +6 -5
  28. package/dist/esm/sdk/market/pool/PoolSuite.js +1 -1
  29. package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +9 -6
  30. package/dist/esm/sdk/sdk-legacy/core/creditAccount.js +3 -1
  31. package/dist/types/abi/compressors.d.ts +1403 -775
  32. package/dist/types/adapters/BalancerV3RouterAdapterContract.d.ts +62 -104
  33. package/dist/types/adapters/abi/adapters.d.ts +213 -0
  34. package/dist/types/adapters/abi/index.d.ts +0 -1
  35. package/dist/types/sdk/accounts/CreditAccountsService.d.ts +3 -3
  36. package/dist/types/sdk/accounts/types.d.ts +15 -2
  37. package/dist/types/sdk/accounts/utils.d.ts +2 -0
  38. package/dist/types/sdk/base/types.d.ts +6 -6
  39. package/dist/types/sdk/constants/address-provider.d.ts +11 -13
  40. package/dist/types/sdk/market/oracle/PriceOracleBaseContract.d.ts +425 -85
  41. package/dist/types/sdk/market/pool/PoolQuotaKeeperV300Contract.d.ts +2 -2
  42. package/dist/types/sdk/market/pool/PoolQuotaKeeperV310Contract.d.ts +2 -2
  43. package/dist/types/sdk/market/pool/createPoolQuotaKeeper.d.ts +2 -2
  44. package/dist/types/sdk/types/state-human.d.ts +1 -3
  45. package/package.json +1 -1
  46. package/dist/cjs/adapters/abi/iBalancerV3RouterAdapter.js +0 -153
  47. package/dist/esm/adapters/abi/iBalancerV3RouterAdapter.js +0 -129
  48. package/dist/types/adapters/abi/iBalancerV3RouterAdapter.d.ts +0 -230
@@ -1,109 +1,3 @@
1
- const iAdapterCompressorAbi = [
2
- {
3
- type: "function",
4
- inputs: [],
5
- name: "contractType",
6
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
7
- stateMutability: "view"
8
- },
9
- {
10
- type: "function",
11
- inputs: [
12
- { name: "creditManager", internalType: "address", type: "address" }
13
- ],
14
- name: "getAdapters",
15
- outputs: [
16
- {
17
- name: "result",
18
- internalType: "struct AdapterState[]",
19
- type: "tuple[]",
20
- components: [
21
- {
22
- name: "baseParams",
23
- internalType: "struct BaseParams",
24
- type: "tuple",
25
- components: [
26
- { name: "addr", internalType: "address", type: "address" },
27
- { name: "version", internalType: "uint256", type: "uint256" },
28
- {
29
- name: "contractType",
30
- internalType: "bytes32",
31
- type: "bytes32"
32
- },
33
- {
34
- name: "serializedParams",
35
- internalType: "bytes",
36
- type: "bytes"
37
- }
38
- ]
39
- },
40
- { name: "targetContract", internalType: "address", type: "address" }
41
- ]
42
- }
43
- ],
44
- stateMutability: "view"
45
- },
46
- {
47
- type: "function",
48
- inputs: [],
49
- name: "version",
50
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
51
- stateMutability: "view"
52
- }
53
- ];
54
- const iAuraL2CoordinatorAbi = [
55
- {
56
- type: "function",
57
- inputs: [],
58
- name: "auraOFT",
59
- outputs: [{ name: "", internalType: "address", type: "address" }],
60
- stateMutability: "view"
61
- },
62
- {
63
- type: "function",
64
- inputs: [],
65
- name: "mintRate",
66
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
67
- stateMutability: "view"
68
- }
69
- ];
70
- const iConvexTokenAbi = [
71
- {
72
- type: "function",
73
- inputs: [],
74
- name: "EMISSIONS_MAX_SUPPLY",
75
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
76
- stateMutability: "view"
77
- },
78
- {
79
- type: "function",
80
- inputs: [],
81
- name: "maxSupply",
82
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
83
- stateMutability: "view"
84
- },
85
- {
86
- type: "function",
87
- inputs: [],
88
- name: "reductionPerCliff",
89
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
90
- stateMutability: "view"
91
- },
92
- {
93
- type: "function",
94
- inputs: [],
95
- name: "totalCliffs",
96
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
97
- stateMutability: "view"
98
- },
99
- {
100
- type: "function",
101
- inputs: [],
102
- name: "totalSupply",
103
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
104
- stateMutability: "view"
105
- }
106
- ];
107
1
  const iCreditAccountCompressorAbi = [
108
2
  {
109
3
  type: "function",
@@ -123,8 +17,8 @@ const iCreditAccountCompressorAbi = [
123
17
  components: [
124
18
  { name: "owner", internalType: "address", type: "address" },
125
19
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
126
- { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
127
- { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
20
+ { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
21
+ { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
128
22
  { name: "reverting", internalType: "bool", type: "bool" }
129
23
  ]
130
24
  }
@@ -138,7 +32,7 @@ const iCreditAccountCompressorAbi = [
138
32
  inputs: [
139
33
  {
140
34
  name: "cmFilter",
141
- internalType: "struct MarketFilter",
35
+ internalType: "struct CreditManagerFilter",
142
36
  type: "tuple",
143
37
  components: [
144
38
  {
@@ -146,6 +40,11 @@ const iCreditAccountCompressorAbi = [
146
40
  internalType: "address[]",
147
41
  type: "address[]"
148
42
  },
43
+ {
44
+ name: "creditManagers",
45
+ internalType: "address[]",
46
+ type: "address[]"
47
+ },
149
48
  { name: "pools", internalType: "address[]", type: "address[]" },
150
49
  { name: "underlying", internalType: "address", type: "address" }
151
50
  ]
@@ -157,8 +56,8 @@ const iCreditAccountCompressorAbi = [
157
56
  components: [
158
57
  { name: "owner", internalType: "address", type: "address" },
159
58
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
160
- { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
161
- { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
59
+ { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
60
+ { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
162
61
  { name: "reverting", internalType: "bool", type: "bool" }
163
62
  ]
164
63
  }
@@ -197,7 +96,7 @@ const iCreditAccountCompressorAbi = [
197
96
  { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
198
97
  { name: "twvUSD", internalType: "uint256", type: "uint256" },
199
98
  { name: "totalValue", internalType: "uint256", type: "uint256" },
200
- { name: "healthFactor", internalType: "uint16", type: "uint16" },
99
+ { name: "healthFactor", internalType: "uint256", type: "uint256" },
201
100
  { name: "success", internalType: "bool", type: "bool" },
202
101
  {
203
102
  name: "tokens",
@@ -221,7 +120,7 @@ const iCreditAccountCompressorAbi = [
221
120
  inputs: [
222
121
  {
223
122
  name: "cmFilter",
224
- internalType: "struct MarketFilter",
123
+ internalType: "struct CreditManagerFilter",
225
124
  type: "tuple",
226
125
  components: [
227
126
  {
@@ -229,6 +128,11 @@ const iCreditAccountCompressorAbi = [
229
128
  internalType: "address[]",
230
129
  type: "address[]"
231
130
  },
131
+ {
132
+ name: "creditManagers",
133
+ internalType: "address[]",
134
+ type: "address[]"
135
+ },
232
136
  { name: "pools", internalType: "address[]", type: "address[]" },
233
137
  { name: "underlying", internalType: "address", type: "address" }
234
138
  ]
@@ -240,12 +144,13 @@ const iCreditAccountCompressorAbi = [
240
144
  components: [
241
145
  { name: "owner", internalType: "address", type: "address" },
242
146
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
243
- { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
244
- { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
147
+ { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
148
+ { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
245
149
  { name: "reverting", internalType: "bool", type: "bool" }
246
150
  ]
247
151
  },
248
- { name: "offset", internalType: "uint256", type: "uint256" }
152
+ { name: "offset", internalType: "uint256", type: "uint256" },
153
+ { name: "limit", internalType: "uint256", type: "uint256" }
249
154
  ],
250
155
  name: "getCreditAccounts",
251
156
  outputs: [
@@ -272,7 +177,7 @@ const iCreditAccountCompressorAbi = [
272
177
  { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
273
178
  { name: "twvUSD", internalType: "uint256", type: "uint256" },
274
179
  { name: "totalValue", internalType: "uint256", type: "uint256" },
275
- { name: "healthFactor", internalType: "uint16", type: "uint16" },
180
+ { name: "healthFactor", internalType: "uint256", type: "uint256" },
276
181
  { name: "success", internalType: "bool", type: "bool" },
277
182
  {
278
183
  name: "tokens",
@@ -303,8 +208,8 @@ const iCreditAccountCompressorAbi = [
303
208
  components: [
304
209
  { name: "owner", internalType: "address", type: "address" },
305
210
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
306
- { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
307
- { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
211
+ { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
212
+ { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
308
213
  { name: "reverting", internalType: "bool", type: "bool" }
309
214
  ]
310
215
  },
@@ -335,7 +240,7 @@ const iCreditAccountCompressorAbi = [
335
240
  { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
336
241
  { name: "twvUSD", internalType: "uint256", type: "uint256" },
337
242
  { name: "totalValue", internalType: "uint256", type: "uint256" },
338
- { name: "healthFactor", internalType: "uint16", type: "uint16" },
243
+ { name: "healthFactor", internalType: "uint256", type: "uint256" },
339
244
  { name: "success", internalType: "bool", type: "bool" },
340
245
  {
341
246
  name: "tokens",
@@ -366,8 +271,8 @@ const iCreditAccountCompressorAbi = [
366
271
  components: [
367
272
  { name: "owner", internalType: "address", type: "address" },
368
273
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
369
- { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
370
- { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
274
+ { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
275
+ { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
371
276
  { name: "reverting", internalType: "bool", type: "bool" }
372
277
  ]
373
278
  },
@@ -399,7 +304,7 @@ const iCreditAccountCompressorAbi = [
399
304
  { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
400
305
  { name: "twvUSD", internalType: "uint256", type: "uint256" },
401
306
  { name: "totalValue", internalType: "uint256", type: "uint256" },
402
- { name: "healthFactor", internalType: "uint16", type: "uint16" },
307
+ { name: "healthFactor", internalType: "uint256", type: "uint256" },
403
308
  { name: "success", internalType: "bool", type: "bool" },
404
309
  {
405
310
  name: "tokens",
@@ -424,7 +329,7 @@ const iCreditAccountCompressorAbi = [
424
329
  inputs: [
425
330
  {
426
331
  name: "cmFilter",
427
- internalType: "struct MarketFilter",
332
+ internalType: "struct CreditManagerFilter",
428
333
  type: "tuple",
429
334
  components: [
430
335
  {
@@ -432,6 +337,11 @@ const iCreditAccountCompressorAbi = [
432
337
  internalType: "address[]",
433
338
  type: "address[]"
434
339
  },
340
+ {
341
+ name: "creditManagers",
342
+ internalType: "address[]",
343
+ type: "address[]"
344
+ },
435
345
  { name: "pools", internalType: "address[]", type: "address[]" },
436
346
  { name: "underlying", internalType: "address", type: "address" }
437
347
  ]
@@ -443,13 +353,12 @@ const iCreditAccountCompressorAbi = [
443
353
  components: [
444
354
  { name: "owner", internalType: "address", type: "address" },
445
355
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
446
- { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
447
- { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
356
+ { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
357
+ { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
448
358
  { name: "reverting", internalType: "bool", type: "bool" }
449
359
  ]
450
360
  },
451
- { name: "offset", internalType: "uint256", type: "uint256" },
452
- { name: "limit", internalType: "uint256", type: "uint256" }
361
+ { name: "offset", internalType: "uint256", type: "uint256" }
453
362
  ],
454
363
  name: "getCreditAccounts",
455
364
  outputs: [
@@ -476,7 +385,7 @@ const iCreditAccountCompressorAbi = [
476
385
  { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
477
386
  { name: "twvUSD", internalType: "uint256", type: "uint256" },
478
387
  { name: "totalValue", internalType: "uint256", type: "uint256" },
479
- { name: "healthFactor", internalType: "uint16", type: "uint16" },
388
+ { name: "healthFactor", internalType: "uint256", type: "uint256" },
480
389
  { name: "success", internalType: "bool", type: "bool" },
481
390
  {
482
391
  name: "tokens",
@@ -512,6 +421,115 @@ const iCreditSuiteCompressorAbi = [
512
421
  outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
513
422
  stateMutability: "view"
514
423
  },
424
+ {
425
+ type: "function",
426
+ inputs: [
427
+ { name: "accountFactory", internalType: "address", type: "address" }
428
+ ],
429
+ name: "getAccountFactoryState",
430
+ outputs: [
431
+ {
432
+ name: "",
433
+ internalType: "struct BaseState",
434
+ type: "tuple",
435
+ components: [
436
+ {
437
+ name: "baseParams",
438
+ internalType: "struct BaseParams",
439
+ type: "tuple",
440
+ components: [
441
+ { name: "addr", internalType: "address", type: "address" },
442
+ { name: "version", internalType: "uint256", type: "uint256" },
443
+ {
444
+ name: "contractType",
445
+ internalType: "bytes32",
446
+ type: "bytes32"
447
+ },
448
+ {
449
+ name: "serializedParams",
450
+ internalType: "bytes",
451
+ type: "bytes"
452
+ }
453
+ ]
454
+ }
455
+ ]
456
+ }
457
+ ],
458
+ stateMutability: "view"
459
+ },
460
+ {
461
+ type: "function",
462
+ inputs: [
463
+ { name: "creditManager", internalType: "address", type: "address" }
464
+ ],
465
+ name: "getAdapters",
466
+ outputs: [
467
+ {
468
+ name: "",
469
+ internalType: "struct AdapterState[]",
470
+ type: "tuple[]",
471
+ components: [
472
+ {
473
+ name: "baseParams",
474
+ internalType: "struct BaseParams",
475
+ type: "tuple",
476
+ components: [
477
+ { name: "addr", internalType: "address", type: "address" },
478
+ { name: "version", internalType: "uint256", type: "uint256" },
479
+ {
480
+ name: "contractType",
481
+ internalType: "bytes32",
482
+ type: "bytes32"
483
+ },
484
+ {
485
+ name: "serializedParams",
486
+ internalType: "bytes",
487
+ type: "bytes"
488
+ }
489
+ ]
490
+ },
491
+ { name: "targetContract", internalType: "address", type: "address" }
492
+ ]
493
+ }
494
+ ],
495
+ stateMutability: "view"
496
+ },
497
+ {
498
+ type: "function",
499
+ inputs: [
500
+ { name: "creditConfigurator", internalType: "address", type: "address" }
501
+ ],
502
+ name: "getCreditConfiguratorState",
503
+ outputs: [
504
+ {
505
+ name: "",
506
+ internalType: "struct BaseState",
507
+ type: "tuple",
508
+ components: [
509
+ {
510
+ name: "baseParams",
511
+ internalType: "struct BaseParams",
512
+ type: "tuple",
513
+ components: [
514
+ { name: "addr", internalType: "address", type: "address" },
515
+ { name: "version", internalType: "uint256", type: "uint256" },
516
+ {
517
+ name: "contractType",
518
+ internalType: "bytes32",
519
+ type: "bytes32"
520
+ },
521
+ {
522
+ name: "serializedParams",
523
+ internalType: "bytes",
524
+ type: "bytes"
525
+ }
526
+ ]
527
+ }
528
+ ]
529
+ }
530
+ ],
531
+ stateMutability: "view"
532
+ },
515
533
  {
516
534
  type: "function",
517
535
  inputs: [
@@ -543,7 +561,6 @@ const iCreditSuiteCompressorAbi = [
543
561
  }
544
562
  ]
545
563
  },
546
- { name: "creditManager", internalType: "address", type: "address" },
547
564
  { name: "degenNFT", internalType: "address", type: "address" },
548
565
  { name: "botList", internalType: "address", type: "address" },
549
566
  { name: "expirable", internalType: "bool", type: "bool" },
@@ -556,7 +573,7 @@ const iCreditSuiteCompressorAbi = [
556
573
  { name: "minDebt", internalType: "uint256", type: "uint256" },
557
574
  { name: "maxDebt", internalType: "uint256", type: "uint256" },
558
575
  {
559
- name: "forbiddenTokenMask",
576
+ name: "forbiddenTokensMask",
560
577
  internalType: "uint256",
561
578
  type: "uint256"
562
579
  },
@@ -679,11 +696,6 @@ const iCreditSuiteCompressorAbi = [
679
696
  }
680
697
  ]
681
698
  },
682
- {
683
- name: "creditManager",
684
- internalType: "address",
685
- type: "address"
686
- },
687
699
  { name: "degenNFT", internalType: "address", type: "address" },
688
700
  { name: "botList", internalType: "address", type: "address" },
689
701
  { name: "expirable", internalType: "bool", type: "bool" },
@@ -700,7 +712,7 @@ const iCreditSuiteCompressorAbi = [
700
712
  { name: "minDebt", internalType: "uint256", type: "uint256" },
701
713
  { name: "maxDebt", internalType: "uint256", type: "uint256" },
702
714
  {
703
- name: "forbiddenTokenMask",
715
+ name: "forbiddenTokensMask",
704
716
  internalType: "uint256",
705
717
  type: "uint256"
706
718
  },
@@ -816,6 +828,32 @@ const iCreditSuiteCompressorAbi = [
816
828
  }
817
829
  ]
818
830
  },
831
+ {
832
+ name: "accountFactory",
833
+ internalType: "struct BaseState",
834
+ type: "tuple",
835
+ components: [
836
+ {
837
+ name: "baseParams",
838
+ internalType: "struct BaseParams",
839
+ type: "tuple",
840
+ components: [
841
+ { name: "addr", internalType: "address", type: "address" },
842
+ { name: "version", internalType: "uint256", type: "uint256" },
843
+ {
844
+ name: "contractType",
845
+ internalType: "bytes32",
846
+ type: "bytes32"
847
+ },
848
+ {
849
+ name: "serializedParams",
850
+ internalType: "bytes",
851
+ type: "bytes"
852
+ }
853
+ ]
854
+ }
855
+ ]
856
+ },
819
857
  {
820
858
  name: "adapters",
821
859
  internalType: "struct AdapterState[]",
@@ -854,8 +892,256 @@ const iCreditSuiteCompressorAbi = [
854
892
  },
855
893
  {
856
894
  type: "function",
857
- inputs: [],
858
- name: "version",
895
+ inputs: [
896
+ {
897
+ name: "filter",
898
+ internalType: "struct CreditManagerFilter",
899
+ type: "tuple",
900
+ components: [
901
+ {
902
+ name: "configurators",
903
+ internalType: "address[]",
904
+ type: "address[]"
905
+ },
906
+ {
907
+ name: "creditManagers",
908
+ internalType: "address[]",
909
+ type: "address[]"
910
+ },
911
+ { name: "pools", internalType: "address[]", type: "address[]" },
912
+ { name: "underlying", internalType: "address", type: "address" }
913
+ ]
914
+ }
915
+ ],
916
+ name: "getCreditSuites",
917
+ outputs: [
918
+ {
919
+ name: "",
920
+ internalType: "struct CreditSuiteData[]",
921
+ type: "tuple[]",
922
+ components: [
923
+ {
924
+ name: "creditFacade",
925
+ internalType: "struct CreditFacadeState",
926
+ type: "tuple",
927
+ components: [
928
+ {
929
+ name: "baseParams",
930
+ internalType: "struct BaseParams",
931
+ type: "tuple",
932
+ components: [
933
+ { name: "addr", internalType: "address", type: "address" },
934
+ { name: "version", internalType: "uint256", type: "uint256" },
935
+ {
936
+ name: "contractType",
937
+ internalType: "bytes32",
938
+ type: "bytes32"
939
+ },
940
+ {
941
+ name: "serializedParams",
942
+ internalType: "bytes",
943
+ type: "bytes"
944
+ }
945
+ ]
946
+ },
947
+ { name: "degenNFT", internalType: "address", type: "address" },
948
+ { name: "botList", internalType: "address", type: "address" },
949
+ { name: "expirable", internalType: "bool", type: "bool" },
950
+ {
951
+ name: "expirationDate",
952
+ internalType: "uint40",
953
+ type: "uint40"
954
+ },
955
+ {
956
+ name: "maxDebtPerBlockMultiplier",
957
+ internalType: "uint8",
958
+ type: "uint8"
959
+ },
960
+ { name: "minDebt", internalType: "uint256", type: "uint256" },
961
+ { name: "maxDebt", internalType: "uint256", type: "uint256" },
962
+ {
963
+ name: "forbiddenTokensMask",
964
+ internalType: "uint256",
965
+ type: "uint256"
966
+ },
967
+ { name: "isPaused", internalType: "bool", type: "bool" }
968
+ ]
969
+ },
970
+ {
971
+ name: "creditManager",
972
+ internalType: "struct CreditManagerState",
973
+ type: "tuple",
974
+ components: [
975
+ {
976
+ name: "baseParams",
977
+ internalType: "struct BaseParams",
978
+ type: "tuple",
979
+ components: [
980
+ { name: "addr", internalType: "address", type: "address" },
981
+ { name: "version", internalType: "uint256", type: "uint256" },
982
+ {
983
+ name: "contractType",
984
+ internalType: "bytes32",
985
+ type: "bytes32"
986
+ },
987
+ {
988
+ name: "serializedParams",
989
+ internalType: "bytes",
990
+ type: "bytes"
991
+ }
992
+ ]
993
+ },
994
+ { name: "name", internalType: "string", type: "string" },
995
+ {
996
+ name: "accountFactory",
997
+ internalType: "address",
998
+ type: "address"
999
+ },
1000
+ { name: "underlying", internalType: "address", type: "address" },
1001
+ { name: "pool", internalType: "address", type: "address" },
1002
+ {
1003
+ name: "creditFacade",
1004
+ internalType: "address",
1005
+ type: "address"
1006
+ },
1007
+ {
1008
+ name: "creditConfigurator",
1009
+ internalType: "address",
1010
+ type: "address"
1011
+ },
1012
+ {
1013
+ name: "maxEnabledTokens",
1014
+ internalType: "uint8",
1015
+ type: "uint8"
1016
+ },
1017
+ {
1018
+ name: "collateralTokens",
1019
+ internalType: "struct CollateralToken[]",
1020
+ type: "tuple[]",
1021
+ components: [
1022
+ { name: "token", internalType: "address", type: "address" },
1023
+ {
1024
+ name: "liquidationThreshold",
1025
+ internalType: "uint16",
1026
+ type: "uint16"
1027
+ }
1028
+ ]
1029
+ },
1030
+ { name: "feeInterest", internalType: "uint16", type: "uint16" },
1031
+ {
1032
+ name: "feeLiquidation",
1033
+ internalType: "uint16",
1034
+ type: "uint16"
1035
+ },
1036
+ {
1037
+ name: "liquidationDiscount",
1038
+ internalType: "uint16",
1039
+ type: "uint16"
1040
+ },
1041
+ {
1042
+ name: "feeLiquidationExpired",
1043
+ internalType: "uint16",
1044
+ type: "uint16"
1045
+ },
1046
+ {
1047
+ name: "liquidationDiscountExpired",
1048
+ internalType: "uint16",
1049
+ type: "uint16"
1050
+ }
1051
+ ]
1052
+ },
1053
+ {
1054
+ name: "creditConfigurator",
1055
+ internalType: "struct BaseState",
1056
+ type: "tuple",
1057
+ components: [
1058
+ {
1059
+ name: "baseParams",
1060
+ internalType: "struct BaseParams",
1061
+ type: "tuple",
1062
+ components: [
1063
+ { name: "addr", internalType: "address", type: "address" },
1064
+ { name: "version", internalType: "uint256", type: "uint256" },
1065
+ {
1066
+ name: "contractType",
1067
+ internalType: "bytes32",
1068
+ type: "bytes32"
1069
+ },
1070
+ {
1071
+ name: "serializedParams",
1072
+ internalType: "bytes",
1073
+ type: "bytes"
1074
+ }
1075
+ ]
1076
+ }
1077
+ ]
1078
+ },
1079
+ {
1080
+ name: "accountFactory",
1081
+ internalType: "struct BaseState",
1082
+ type: "tuple",
1083
+ components: [
1084
+ {
1085
+ name: "baseParams",
1086
+ internalType: "struct BaseParams",
1087
+ type: "tuple",
1088
+ components: [
1089
+ { name: "addr", internalType: "address", type: "address" },
1090
+ { name: "version", internalType: "uint256", type: "uint256" },
1091
+ {
1092
+ name: "contractType",
1093
+ internalType: "bytes32",
1094
+ type: "bytes32"
1095
+ },
1096
+ {
1097
+ name: "serializedParams",
1098
+ internalType: "bytes",
1099
+ type: "bytes"
1100
+ }
1101
+ ]
1102
+ }
1103
+ ]
1104
+ },
1105
+ {
1106
+ name: "adapters",
1107
+ internalType: "struct AdapterState[]",
1108
+ type: "tuple[]",
1109
+ components: [
1110
+ {
1111
+ name: "baseParams",
1112
+ internalType: "struct BaseParams",
1113
+ type: "tuple",
1114
+ components: [
1115
+ { name: "addr", internalType: "address", type: "address" },
1116
+ { name: "version", internalType: "uint256", type: "uint256" },
1117
+ {
1118
+ name: "contractType",
1119
+ internalType: "bytes32",
1120
+ type: "bytes32"
1121
+ },
1122
+ {
1123
+ name: "serializedParams",
1124
+ internalType: "bytes",
1125
+ type: "bytes"
1126
+ }
1127
+ ]
1128
+ },
1129
+ {
1130
+ name: "targetContract",
1131
+ internalType: "address",
1132
+ type: "address"
1133
+ }
1134
+ ]
1135
+ }
1136
+ ]
1137
+ }
1138
+ ],
1139
+ stateMutability: "view"
1140
+ },
1141
+ {
1142
+ type: "function",
1143
+ inputs: [],
1144
+ name: "version",
859
1145
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
860
1146
  stateMutability: "view"
861
1147
  }
@@ -874,10 +1160,10 @@ const iGaugeCompressorAbi = [
874
1160
  { name: "gauge", internalType: "address", type: "address" },
875
1161
  { name: "staker", internalType: "address", type: "address" }
876
1162
  ],
877
- name: "getGauge",
1163
+ name: "getGaugeInfo",
878
1164
  outputs: [
879
1165
  {
880
- name: "result",
1166
+ name: "",
881
1167
  internalType: "struct GaugeInfo",
882
1168
  type: "tuple",
883
1169
  components: [
@@ -947,7 +1233,7 @@ const iGaugeCompressorAbi = [
947
1233
  name: "getGauges",
948
1234
  outputs: [
949
1235
  {
950
- name: "result",
1236
+ name: "",
951
1237
  internalType: "struct GaugeInfo[]",
952
1238
  type: "tuple[]",
953
1239
  components: [
@@ -1011,6 +1297,76 @@ const iMarketCompressorAbi = [
1011
1297
  outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
1012
1298
  stateMutability: "view"
1013
1299
  },
1300
+ {
1301
+ type: "function",
1302
+ inputs: [
1303
+ { name: "interestRateModel", internalType: "address", type: "address" }
1304
+ ],
1305
+ name: "getInterestRateModelState",
1306
+ outputs: [
1307
+ {
1308
+ name: "",
1309
+ internalType: "struct BaseState",
1310
+ type: "tuple",
1311
+ components: [
1312
+ {
1313
+ name: "baseParams",
1314
+ internalType: "struct BaseParams",
1315
+ type: "tuple",
1316
+ components: [
1317
+ { name: "addr", internalType: "address", type: "address" },
1318
+ { name: "version", internalType: "uint256", type: "uint256" },
1319
+ {
1320
+ name: "contractType",
1321
+ internalType: "bytes32",
1322
+ type: "bytes32"
1323
+ },
1324
+ {
1325
+ name: "serializedParams",
1326
+ internalType: "bytes",
1327
+ type: "bytes"
1328
+ }
1329
+ ]
1330
+ }
1331
+ ]
1332
+ }
1333
+ ],
1334
+ stateMutability: "view"
1335
+ },
1336
+ {
1337
+ type: "function",
1338
+ inputs: [{ name: "lossPolicy", internalType: "address", type: "address" }],
1339
+ name: "getLossPolicyState",
1340
+ outputs: [
1341
+ {
1342
+ name: "",
1343
+ internalType: "struct BaseState",
1344
+ type: "tuple",
1345
+ components: [
1346
+ {
1347
+ name: "baseParams",
1348
+ internalType: "struct BaseParams",
1349
+ type: "tuple",
1350
+ components: [
1351
+ { name: "addr", internalType: "address", type: "address" },
1352
+ { name: "version", internalType: "uint256", type: "uint256" },
1353
+ {
1354
+ name: "contractType",
1355
+ internalType: "bytes32",
1356
+ type: "bytes32"
1357
+ },
1358
+ {
1359
+ name: "serializedParams",
1360
+ internalType: "bytes",
1361
+ type: "bytes"
1362
+ }
1363
+ ]
1364
+ }
1365
+ ]
1366
+ }
1367
+ ],
1368
+ stateMutability: "view"
1369
+ },
1014
1370
  {
1015
1371
  type: "function",
1016
1372
  inputs: [
@@ -1020,7 +1376,7 @@ const iMarketCompressorAbi = [
1020
1376
  name: "getMarketData",
1021
1377
  outputs: [
1022
1378
  {
1023
- name: "result",
1379
+ name: "",
1024
1380
  internalType: "struct MarketData",
1025
1381
  type: "tuple",
1026
1382
  components: [
@@ -1059,11 +1415,7 @@ const iMarketCompressorAbi = [
1059
1415
  { name: "name", internalType: "string", type: "string" },
1060
1416
  { name: "decimals", internalType: "uint8", type: "uint8" },
1061
1417
  { name: "totalSupply", internalType: "uint256", type: "uint256" },
1062
- {
1063
- name: "poolQuotaKeeper",
1064
- internalType: "address",
1065
- type: "address"
1066
- },
1418
+ { name: "quotaKeeper", internalType: "address", type: "address" },
1067
1419
  {
1068
1420
  name: "interestRateModel",
1069
1421
  internalType: "address",
@@ -1155,8 +1507,8 @@ const iMarketCompressorAbi = [
1155
1507
  ]
1156
1508
  },
1157
1509
  {
1158
- name: "poolQuotaKeeper",
1159
- internalType: "struct PoolQuotaKeeperState",
1510
+ name: "quotaKeeper",
1511
+ internalType: "struct QuotaKeeperState",
1160
1512
  type: "tuple",
1161
1513
  components: [
1162
1514
  {
@@ -1279,7 +1631,7 @@ const iMarketCompressorAbi = [
1279
1631
  ]
1280
1632
  },
1281
1633
  {
1282
- name: "priceOracleData",
1634
+ name: "priceOracle",
1283
1635
  internalType: "struct PriceOracleState",
1284
1636
  type: "tuple",
1285
1637
  components: [
@@ -1303,7 +1655,7 @@ const iMarketCompressorAbi = [
1303
1655
  ]
1304
1656
  },
1305
1657
  {
1306
- name: "priceFeedMapping",
1658
+ name: "priceFeedMap",
1307
1659
  internalType: "struct PriceFeedMapEntry[]",
1308
1660
  type: "tuple[]",
1309
1661
  components: [
@@ -1322,7 +1674,7 @@ const iMarketCompressorAbi = [
1322
1674
  ]
1323
1675
  },
1324
1676
  {
1325
- name: "priceFeedStructure",
1677
+ name: "priceFeedTree",
1326
1678
  internalType: "struct PriceFeedTreeNode[]",
1327
1679
  type: "tuple[]",
1328
1680
  components: [
@@ -1463,11 +1815,6 @@ const iMarketCompressorAbi = [
1463
1815
  }
1464
1816
  ]
1465
1817
  },
1466
- {
1467
- name: "creditManager",
1468
- internalType: "address",
1469
- type: "address"
1470
- },
1471
1818
  {
1472
1819
  name: "degenNFT",
1473
1820
  internalType: "address",
@@ -1488,7 +1835,7 @@ const iMarketCompressorAbi = [
1488
1835
  { name: "minDebt", internalType: "uint256", type: "uint256" },
1489
1836
  { name: "maxDebt", internalType: "uint256", type: "uint256" },
1490
1837
  {
1491
- name: "forbiddenTokenMask",
1838
+ name: "forbiddenTokensMask",
1492
1839
  internalType: "uint256",
1493
1840
  type: "uint256"
1494
1841
  },
@@ -1632,6 +1979,40 @@ const iMarketCompressorAbi = [
1632
1979
  }
1633
1980
  ]
1634
1981
  },
1982
+ {
1983
+ name: "accountFactory",
1984
+ internalType: "struct BaseState",
1985
+ type: "tuple",
1986
+ components: [
1987
+ {
1988
+ name: "baseParams",
1989
+ internalType: "struct BaseParams",
1990
+ type: "tuple",
1991
+ components: [
1992
+ {
1993
+ name: "addr",
1994
+ internalType: "address",
1995
+ type: "address"
1996
+ },
1997
+ {
1998
+ name: "version",
1999
+ internalType: "uint256",
2000
+ type: "uint256"
2001
+ },
2002
+ {
2003
+ name: "contractType",
2004
+ internalType: "bytes32",
2005
+ type: "bytes32"
2006
+ },
2007
+ {
2008
+ name: "serializedParams",
2009
+ internalType: "bytes",
2010
+ type: "bytes"
2011
+ }
2012
+ ]
2013
+ }
2014
+ ]
2015
+ },
1635
2016
  {
1636
2017
  name: "adapters",
1637
2018
  internalType: "struct AdapterState[]",
@@ -1700,7 +2081,7 @@ const iMarketCompressorAbi = [
1700
2081
  name: "getMarketData",
1701
2082
  outputs: [
1702
2083
  {
1703
- name: "result",
2084
+ name: "",
1704
2085
  internalType: "struct MarketData",
1705
2086
  type: "tuple",
1706
2087
  components: [
@@ -1739,11 +2120,7 @@ const iMarketCompressorAbi = [
1739
2120
  { name: "name", internalType: "string", type: "string" },
1740
2121
  { name: "decimals", internalType: "uint8", type: "uint8" },
1741
2122
  { name: "totalSupply", internalType: "uint256", type: "uint256" },
1742
- {
1743
- name: "poolQuotaKeeper",
1744
- internalType: "address",
1745
- type: "address"
1746
- },
2123
+ { name: "quotaKeeper", internalType: "address", type: "address" },
1747
2124
  {
1748
2125
  name: "interestRateModel",
1749
2126
  internalType: "address",
@@ -1835,8 +2212,8 @@ const iMarketCompressorAbi = [
1835
2212
  ]
1836
2213
  },
1837
2214
  {
1838
- name: "poolQuotaKeeper",
1839
- internalType: "struct PoolQuotaKeeperState",
2215
+ name: "quotaKeeper",
2216
+ internalType: "struct QuotaKeeperState",
1840
2217
  type: "tuple",
1841
2218
  components: [
1842
2219
  {
@@ -1959,7 +2336,7 @@ const iMarketCompressorAbi = [
1959
2336
  ]
1960
2337
  },
1961
2338
  {
1962
- name: "priceOracleData",
2339
+ name: "priceOracle",
1963
2340
  internalType: "struct PriceOracleState",
1964
2341
  type: "tuple",
1965
2342
  components: [
@@ -1983,7 +2360,7 @@ const iMarketCompressorAbi = [
1983
2360
  ]
1984
2361
  },
1985
2362
  {
1986
- name: "priceFeedMapping",
2363
+ name: "priceFeedMap",
1987
2364
  internalType: "struct PriceFeedMapEntry[]",
1988
2365
  type: "tuple[]",
1989
2366
  components: [
@@ -2002,7 +2379,7 @@ const iMarketCompressorAbi = [
2002
2379
  ]
2003
2380
  },
2004
2381
  {
2005
- name: "priceFeedStructure",
2382
+ name: "priceFeedTree",
2006
2383
  internalType: "struct PriceFeedTreeNode[]",
2007
2384
  type: "tuple[]",
2008
2385
  components: [
@@ -2143,11 +2520,6 @@ const iMarketCompressorAbi = [
2143
2520
  }
2144
2521
  ]
2145
2522
  },
2146
- {
2147
- name: "creditManager",
2148
- internalType: "address",
2149
- type: "address"
2150
- },
2151
2523
  {
2152
2524
  name: "degenNFT",
2153
2525
  internalType: "address",
@@ -2168,7 +2540,7 @@ const iMarketCompressorAbi = [
2168
2540
  { name: "minDebt", internalType: "uint256", type: "uint256" },
2169
2541
  { name: "maxDebt", internalType: "uint256", type: "uint256" },
2170
2542
  {
2171
- name: "forbiddenTokenMask",
2543
+ name: "forbiddenTokensMask",
2172
2544
  internalType: "uint256",
2173
2545
  type: "uint256"
2174
2546
  },
@@ -2279,7 +2651,41 @@ const iMarketCompressorAbi = [
2279
2651
  ]
2280
2652
  },
2281
2653
  {
2282
- name: "creditConfigurator",
2654
+ name: "creditConfigurator",
2655
+ internalType: "struct BaseState",
2656
+ type: "tuple",
2657
+ components: [
2658
+ {
2659
+ name: "baseParams",
2660
+ internalType: "struct BaseParams",
2661
+ type: "tuple",
2662
+ components: [
2663
+ {
2664
+ name: "addr",
2665
+ internalType: "address",
2666
+ type: "address"
2667
+ },
2668
+ {
2669
+ name: "version",
2670
+ internalType: "uint256",
2671
+ type: "uint256"
2672
+ },
2673
+ {
2674
+ name: "contractType",
2675
+ internalType: "bytes32",
2676
+ type: "bytes32"
2677
+ },
2678
+ {
2679
+ name: "serializedParams",
2680
+ internalType: "bytes",
2681
+ type: "bytes"
2682
+ }
2683
+ ]
2684
+ }
2685
+ ]
2686
+ },
2687
+ {
2688
+ name: "accountFactory",
2283
2689
  internalType: "struct BaseState",
2284
2690
  type: "tuple",
2285
2691
  components: [
@@ -2395,7 +2801,7 @@ const iMarketCompressorAbi = [
2395
2801
  name: "getMarkets",
2396
2802
  outputs: [
2397
2803
  {
2398
- name: "result",
2804
+ name: "",
2399
2805
  internalType: "struct MarketData[]",
2400
2806
  type: "tuple[]",
2401
2807
  components: [
@@ -2434,11 +2840,7 @@ const iMarketCompressorAbi = [
2434
2840
  { name: "name", internalType: "string", type: "string" },
2435
2841
  { name: "decimals", internalType: "uint8", type: "uint8" },
2436
2842
  { name: "totalSupply", internalType: "uint256", type: "uint256" },
2437
- {
2438
- name: "poolQuotaKeeper",
2439
- internalType: "address",
2440
- type: "address"
2441
- },
2843
+ { name: "quotaKeeper", internalType: "address", type: "address" },
2442
2844
  {
2443
2845
  name: "interestRateModel",
2444
2846
  internalType: "address",
@@ -2530,8 +2932,8 @@ const iMarketCompressorAbi = [
2530
2932
  ]
2531
2933
  },
2532
2934
  {
2533
- name: "poolQuotaKeeper",
2534
- internalType: "struct PoolQuotaKeeperState",
2935
+ name: "quotaKeeper",
2936
+ internalType: "struct QuotaKeeperState",
2535
2937
  type: "tuple",
2536
2938
  components: [
2537
2939
  {
@@ -2654,7 +3056,7 @@ const iMarketCompressorAbi = [
2654
3056
  ]
2655
3057
  },
2656
3058
  {
2657
- name: "priceOracleData",
3059
+ name: "priceOracle",
2658
3060
  internalType: "struct PriceOracleState",
2659
3061
  type: "tuple",
2660
3062
  components: [
@@ -2678,7 +3080,7 @@ const iMarketCompressorAbi = [
2678
3080
  ]
2679
3081
  },
2680
3082
  {
2681
- name: "priceFeedMapping",
3083
+ name: "priceFeedMap",
2682
3084
  internalType: "struct PriceFeedMapEntry[]",
2683
3085
  type: "tuple[]",
2684
3086
  components: [
@@ -2697,7 +3099,7 @@ const iMarketCompressorAbi = [
2697
3099
  ]
2698
3100
  },
2699
3101
  {
2700
- name: "priceFeedStructure",
3102
+ name: "priceFeedTree",
2701
3103
  internalType: "struct PriceFeedTreeNode[]",
2702
3104
  type: "tuple[]",
2703
3105
  components: [
@@ -2838,11 +3240,6 @@ const iMarketCompressorAbi = [
2838
3240
  }
2839
3241
  ]
2840
3242
  },
2841
- {
2842
- name: "creditManager",
2843
- internalType: "address",
2844
- type: "address"
2845
- },
2846
3243
  {
2847
3244
  name: "degenNFT",
2848
3245
  internalType: "address",
@@ -2863,7 +3260,7 @@ const iMarketCompressorAbi = [
2863
3260
  { name: "minDebt", internalType: "uint256", type: "uint256" },
2864
3261
  { name: "maxDebt", internalType: "uint256", type: "uint256" },
2865
3262
  {
2866
- name: "forbiddenTokenMask",
3263
+ name: "forbiddenTokensMask",
2867
3264
  internalType: "uint256",
2868
3265
  type: "uint256"
2869
3266
  },
@@ -3007,6 +3404,40 @@ const iMarketCompressorAbi = [
3007
3404
  }
3008
3405
  ]
3009
3406
  },
3407
+ {
3408
+ name: "accountFactory",
3409
+ internalType: "struct BaseState",
3410
+ type: "tuple",
3411
+ components: [
3412
+ {
3413
+ name: "baseParams",
3414
+ internalType: "struct BaseParams",
3415
+ type: "tuple",
3416
+ components: [
3417
+ {
3418
+ name: "addr",
3419
+ internalType: "address",
3420
+ type: "address"
3421
+ },
3422
+ {
3423
+ name: "version",
3424
+ internalType: "uint256",
3425
+ type: "uint256"
3426
+ },
3427
+ {
3428
+ name: "contractType",
3429
+ internalType: "bytes32",
3430
+ type: "bytes32"
3431
+ },
3432
+ {
3433
+ name: "serializedParams",
3434
+ internalType: "bytes",
3435
+ type: "bytes"
3436
+ }
3437
+ ]
3438
+ }
3439
+ ]
3440
+ },
3010
3441
  {
3011
3442
  name: "adapters",
3012
3443
  internalType: "struct AdapterState[]",
@@ -3071,33 +3502,216 @@ const iMarketCompressorAbi = [
3071
3502
  },
3072
3503
  {
3073
3504
  type: "function",
3074
- inputs: [
3505
+ inputs: [{ name: "pool", internalType: "address", type: "address" }],
3506
+ name: "getPoolState",
3507
+ outputs: [
3075
3508
  {
3076
- name: "filter",
3077
- internalType: "struct MarketFilter",
3509
+ name: "",
3510
+ internalType: "struct PoolState",
3078
3511
  type: "tuple",
3079
3512
  components: [
3080
3513
  {
3081
- name: "configurators",
3514
+ name: "baseParams",
3515
+ internalType: "struct BaseParams",
3516
+ type: "tuple",
3517
+ components: [
3518
+ { name: "addr", internalType: "address", type: "address" },
3519
+ { name: "version", internalType: "uint256", type: "uint256" },
3520
+ {
3521
+ name: "contractType",
3522
+ internalType: "bytes32",
3523
+ type: "bytes32"
3524
+ },
3525
+ {
3526
+ name: "serializedParams",
3527
+ internalType: "bytes",
3528
+ type: "bytes"
3529
+ }
3530
+ ]
3531
+ },
3532
+ { name: "symbol", internalType: "string", type: "string" },
3533
+ { name: "name", internalType: "string", type: "string" },
3534
+ { name: "decimals", internalType: "uint8", type: "uint8" },
3535
+ { name: "totalSupply", internalType: "uint256", type: "uint256" },
3536
+ { name: "quotaKeeper", internalType: "address", type: "address" },
3537
+ {
3538
+ name: "interestRateModel",
3539
+ internalType: "address",
3540
+ type: "address"
3541
+ },
3542
+ { name: "underlying", internalType: "address", type: "address" },
3543
+ {
3544
+ name: "availableLiquidity",
3545
+ internalType: "uint256",
3546
+ type: "uint256"
3547
+ },
3548
+ {
3549
+ name: "expectedLiquidity",
3550
+ internalType: "uint256",
3551
+ type: "uint256"
3552
+ },
3553
+ {
3554
+ name: "baseInterestIndex",
3555
+ internalType: "uint256",
3556
+ type: "uint256"
3557
+ },
3558
+ {
3559
+ name: "baseInterestRate",
3560
+ internalType: "uint256",
3561
+ type: "uint256"
3562
+ },
3563
+ { name: "dieselRate", internalType: "uint256", type: "uint256" },
3564
+ { name: "supplyRate", internalType: "uint256", type: "uint256" },
3565
+ { name: "withdrawFee", internalType: "uint256", type: "uint256" },
3566
+ { name: "totalBorrowed", internalType: "uint256", type: "uint256" },
3567
+ { name: "totalDebtLimit", internalType: "uint256", type: "uint256" },
3568
+ {
3569
+ name: "creditManagerDebtParams",
3570
+ internalType: "struct CreditManagerDebtParams[]",
3571
+ type: "tuple[]",
3572
+ components: [
3573
+ {
3574
+ name: "creditManager",
3575
+ internalType: "address",
3576
+ type: "address"
3577
+ },
3578
+ { name: "borrowed", internalType: "uint256", type: "uint256" },
3579
+ { name: "limit", internalType: "uint256", type: "uint256" },
3580
+ { name: "available", internalType: "uint256", type: "uint256" }
3581
+ ]
3582
+ },
3583
+ {
3584
+ name: "baseInterestIndexLU",
3585
+ internalType: "uint256",
3586
+ type: "uint256"
3587
+ },
3588
+ {
3589
+ name: "expectedLiquidityLU",
3590
+ internalType: "uint256",
3591
+ type: "uint256"
3592
+ },
3593
+ { name: "quotaRevenue", internalType: "uint256", type: "uint256" },
3594
+ {
3595
+ name: "lastBaseInterestUpdate",
3596
+ internalType: "uint40",
3597
+ type: "uint40"
3598
+ },
3599
+ {
3600
+ name: "lastQuotaRevenueUpdate",
3601
+ internalType: "uint40",
3602
+ type: "uint40"
3603
+ },
3604
+ { name: "isPaused", internalType: "bool", type: "bool" }
3605
+ ]
3606
+ }
3607
+ ],
3608
+ stateMutability: "view"
3609
+ },
3610
+ {
3611
+ type: "function",
3612
+ inputs: [{ name: "quotaKeeper", internalType: "address", type: "address" }],
3613
+ name: "getQuotaKeeperState",
3614
+ outputs: [
3615
+ {
3616
+ name: "",
3617
+ internalType: "struct QuotaKeeperState",
3618
+ type: "tuple",
3619
+ components: [
3620
+ {
3621
+ name: "baseParams",
3622
+ internalType: "struct BaseParams",
3623
+ type: "tuple",
3624
+ components: [
3625
+ { name: "addr", internalType: "address", type: "address" },
3626
+ { name: "version", internalType: "uint256", type: "uint256" },
3627
+ {
3628
+ name: "contractType",
3629
+ internalType: "bytes32",
3630
+ type: "bytes32"
3631
+ },
3632
+ {
3633
+ name: "serializedParams",
3634
+ internalType: "bytes",
3635
+ type: "bytes"
3636
+ }
3637
+ ]
3638
+ },
3639
+ { name: "rateKeeper", internalType: "address", type: "address" },
3640
+ {
3641
+ name: "quotas",
3642
+ internalType: "struct QuotaTokenParams[]",
3643
+ type: "tuple[]",
3644
+ components: [
3645
+ { name: "token", internalType: "address", type: "address" },
3646
+ { name: "rate", internalType: "uint16", type: "uint16" },
3647
+ {
3648
+ name: "cumulativeIndexLU",
3649
+ internalType: "uint192",
3650
+ type: "uint192"
3651
+ },
3652
+ {
3653
+ name: "quotaIncreaseFee",
3654
+ internalType: "uint16",
3655
+ type: "uint16"
3656
+ },
3657
+ { name: "totalQuoted", internalType: "uint96", type: "uint96" },
3658
+ { name: "limit", internalType: "uint96", type: "uint96" },
3659
+ { name: "isActive", internalType: "bool", type: "bool" }
3660
+ ]
3661
+ },
3662
+ {
3663
+ name: "creditManagers",
3082
3664
  internalType: "address[]",
3083
3665
  type: "address[]"
3084
3666
  },
3085
- { name: "pools", internalType: "address[]", type: "address[]" },
3086
- { name: "underlying", internalType: "address", type: "address" }
3087
- ]
3088
- }
3089
- ],
3090
- name: "getUpdatablePriceFeeds",
3091
- outputs: [
3092
- {
3093
- name: "updatablePriceFeeds",
3094
- internalType: "struct BaseParams[]",
3095
- type: "tuple[]",
3096
- components: [
3097
- { name: "addr", internalType: "address", type: "address" },
3098
- { name: "version", internalType: "uint256", type: "uint256" },
3099
- { name: "contractType", internalType: "bytes32", type: "bytes32" },
3100
- { name: "serializedParams", internalType: "bytes", type: "bytes" }
3667
+ {
3668
+ name: "lastQuotaRateUpdate",
3669
+ internalType: "uint40",
3670
+ type: "uint40"
3671
+ }
3672
+ ]
3673
+ }
3674
+ ],
3675
+ stateMutability: "view"
3676
+ },
3677
+ {
3678
+ type: "function",
3679
+ inputs: [{ name: "rateKeeper", internalType: "address", type: "address" }],
3680
+ name: "getRateKeeperState",
3681
+ outputs: [
3682
+ {
3683
+ name: "",
3684
+ internalType: "struct RateKeeperState",
3685
+ type: "tuple",
3686
+ components: [
3687
+ {
3688
+ name: "baseParams",
3689
+ internalType: "struct BaseParams",
3690
+ type: "tuple",
3691
+ components: [
3692
+ { name: "addr", internalType: "address", type: "address" },
3693
+ { name: "version", internalType: "uint256", type: "uint256" },
3694
+ {
3695
+ name: "contractType",
3696
+ internalType: "bytes32",
3697
+ type: "bytes32"
3698
+ },
3699
+ {
3700
+ name: "serializedParams",
3701
+ internalType: "bytes",
3702
+ type: "bytes"
3703
+ }
3704
+ ]
3705
+ },
3706
+ {
3707
+ name: "rates",
3708
+ internalType: "struct Rate[]",
3709
+ type: "tuple[]",
3710
+ components: [
3711
+ { name: "token", internalType: "address", type: "address" },
3712
+ { name: "rate", internalType: "uint16", type: "uint16" }
3713
+ ]
3714
+ }
3101
3715
  ]
3102
3716
  }
3103
3717
  ],
@@ -3111,15 +3725,6 @@ const iMarketCompressorAbi = [
3111
3725
  stateMutability: "view"
3112
3726
  }
3113
3727
  ];
3114
- const iModifiedBoosterAbi = [
3115
- {
3116
- type: "function",
3117
- inputs: [{ name: "pool", internalType: "address", type: "address" }],
3118
- name: "getRewardMultipliers",
3119
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3120
- stateMutability: "view"
3121
- }
3122
- ];
3123
3728
  const iPeripheryCompressorAbi = [
3124
3729
  {
3125
3730
  type: "function",
@@ -3281,7 +3886,7 @@ const iPeripheryCompressorAbi = [
3281
3886
  stateMutability: "view"
3282
3887
  }
3283
3888
  ];
3284
- const iPoolCompressorAbi = [
3889
+ const iPriceFeedCompressorAbi = [
3285
3890
  {
3286
3891
  type: "function",
3287
3892
  inputs: [],
@@ -3291,48 +3896,12 @@ const iPoolCompressorAbi = [
3291
3896
  },
3292
3897
  {
3293
3898
  type: "function",
3294
- inputs: [
3295
- { name: "interestRateModel", internalType: "address", type: "address" }
3296
- ],
3297
- name: "getInterestRateModelState",
3298
- outputs: [
3299
- {
3300
- name: "",
3301
- internalType: "struct BaseState",
3302
- type: "tuple",
3303
- components: [
3304
- {
3305
- name: "baseParams",
3306
- internalType: "struct BaseParams",
3307
- type: "tuple",
3308
- components: [
3309
- { name: "addr", internalType: "address", type: "address" },
3310
- { name: "version", internalType: "uint256", type: "uint256" },
3311
- {
3312
- name: "contractType",
3313
- internalType: "bytes32",
3314
- type: "bytes32"
3315
- },
3316
- {
3317
- name: "serializedParams",
3318
- internalType: "bytes",
3319
- type: "bytes"
3320
- }
3321
- ]
3322
- }
3323
- ]
3324
- }
3325
- ],
3326
- stateMutability: "view"
3327
- },
3328
- {
3329
- type: "function",
3330
- inputs: [{ name: "lossPolicy", internalType: "address", type: "address" }],
3331
- name: "getLossPolicyState",
3899
+ inputs: [{ name: "priceOracle", internalType: "address", type: "address" }],
3900
+ name: "getPriceOracleState",
3332
3901
  outputs: [
3333
3902
  {
3334
3903
  name: "",
3335
- internalType: "struct BaseState",
3904
+ internalType: "struct PriceOracleState",
3336
3905
  type: "tuple",
3337
3906
  components: [
3338
3907
  {
@@ -3353,181 +3922,76 @@ const iPoolCompressorAbi = [
3353
3922
  type: "bytes"
3354
3923
  }
3355
3924
  ]
3356
- }
3357
- ]
3358
- }
3359
- ],
3360
- stateMutability: "view"
3361
- },
3362
- {
3363
- type: "function",
3364
- inputs: [{ name: "quotaKeeper", internalType: "address", type: "address" }],
3365
- name: "getPoolQuotaKeeperState",
3366
- outputs: [
3367
- {
3368
- name: "",
3369
- internalType: "struct PoolQuotaKeeperState",
3370
- type: "tuple",
3371
- components: [
3925
+ },
3372
3926
  {
3373
- name: "baseParams",
3374
- internalType: "struct BaseParams",
3375
- type: "tuple",
3927
+ name: "priceFeedMap",
3928
+ internalType: "struct PriceFeedMapEntry[]",
3929
+ type: "tuple[]",
3376
3930
  components: [
3377
- { name: "addr", internalType: "address", type: "address" },
3378
- { name: "version", internalType: "uint256", type: "uint256" },
3379
- {
3380
- name: "contractType",
3381
- internalType: "bytes32",
3382
- type: "bytes32"
3383
- },
3931
+ { name: "token", internalType: "address", type: "address" },
3932
+ { name: "reserve", internalType: "bool", type: "bool" },
3933
+ { name: "priceFeed", internalType: "address", type: "address" },
3384
3934
  {
3385
- name: "serializedParams",
3386
- internalType: "bytes",
3387
- type: "bytes"
3935
+ name: "stalenessPeriod",
3936
+ internalType: "uint32",
3937
+ type: "uint32"
3388
3938
  }
3389
3939
  ]
3390
3940
  },
3391
- { name: "rateKeeper", internalType: "address", type: "address" },
3392
3941
  {
3393
- name: "quotas",
3394
- internalType: "struct QuotaTokenParams[]",
3942
+ name: "priceFeedTree",
3943
+ internalType: "struct PriceFeedTreeNode[]",
3395
3944
  type: "tuple[]",
3396
3945
  components: [
3397
- { name: "token", internalType: "address", type: "address" },
3398
- { name: "rate", internalType: "uint16", type: "uint16" },
3399
3946
  {
3400
- name: "cumulativeIndexLU",
3401
- internalType: "uint192",
3402
- type: "uint192"
3947
+ name: "baseParams",
3948
+ internalType: "struct BaseParams",
3949
+ type: "tuple",
3950
+ components: [
3951
+ { name: "addr", internalType: "address", type: "address" },
3952
+ { name: "version", internalType: "uint256", type: "uint256" },
3953
+ {
3954
+ name: "contractType",
3955
+ internalType: "bytes32",
3956
+ type: "bytes32"
3957
+ },
3958
+ {
3959
+ name: "serializedParams",
3960
+ internalType: "bytes",
3961
+ type: "bytes"
3962
+ }
3963
+ ]
3403
3964
  },
3965
+ { name: "description", internalType: "string", type: "string" },
3966
+ { name: "decimals", internalType: "uint8", type: "uint8" },
3967
+ { name: "skipCheck", internalType: "bool", type: "bool" },
3968
+ { name: "updatable", internalType: "bool", type: "bool" },
3404
3969
  {
3405
- name: "quotaIncreaseFee",
3406
- internalType: "uint16",
3407
- type: "uint16"
3970
+ name: "underlyingFeeds",
3971
+ internalType: "address[]",
3972
+ type: "address[]"
3408
3973
  },
3409
- { name: "totalQuoted", internalType: "uint96", type: "uint96" },
3410
- { name: "limit", internalType: "uint96", type: "uint96" },
3411
- { name: "isActive", internalType: "bool", type: "bool" }
3412
- ]
3413
- },
3414
- {
3415
- name: "creditManagers",
3416
- internalType: "address[]",
3417
- type: "address[]"
3418
- },
3419
- {
3420
- name: "lastQuotaRateUpdate",
3421
- internalType: "uint40",
3422
- type: "uint40"
3423
- }
3424
- ]
3425
- }
3426
- ],
3427
- stateMutability: "view"
3428
- },
3429
- {
3430
- type: "function",
3431
- inputs: [{ name: "pool", internalType: "address", type: "address" }],
3432
- name: "getPoolState",
3433
- outputs: [
3434
- {
3435
- name: "",
3436
- internalType: "struct PoolState",
3437
- type: "tuple",
3438
- components: [
3439
- {
3440
- name: "baseParams",
3441
- internalType: "struct BaseParams",
3442
- type: "tuple",
3443
- components: [
3444
- { name: "addr", internalType: "address", type: "address" },
3445
- { name: "version", internalType: "uint256", type: "uint256" },
3446
3974
  {
3447
- name: "contractType",
3448
- internalType: "bytes32",
3449
- type: "bytes32"
3975
+ name: "underlyingStalenessPeriods",
3976
+ internalType: "uint32[]",
3977
+ type: "uint32[]"
3450
3978
  },
3451
3979
  {
3452
- name: "serializedParams",
3453
- internalType: "bytes",
3454
- type: "bytes"
3455
- }
3456
- ]
3457
- },
3458
- { name: "symbol", internalType: "string", type: "string" },
3459
- { name: "name", internalType: "string", type: "string" },
3460
- { name: "decimals", internalType: "uint8", type: "uint8" },
3461
- { name: "totalSupply", internalType: "uint256", type: "uint256" },
3462
- { name: "poolQuotaKeeper", internalType: "address", type: "address" },
3463
- {
3464
- name: "interestRateModel",
3465
- internalType: "address",
3466
- type: "address"
3467
- },
3468
- { name: "underlying", internalType: "address", type: "address" },
3469
- {
3470
- name: "availableLiquidity",
3471
- internalType: "uint256",
3472
- type: "uint256"
3473
- },
3474
- {
3475
- name: "expectedLiquidity",
3476
- internalType: "uint256",
3477
- type: "uint256"
3478
- },
3479
- {
3480
- name: "baseInterestIndex",
3481
- internalType: "uint256",
3482
- type: "uint256"
3483
- },
3484
- {
3485
- name: "baseInterestRate",
3486
- internalType: "uint256",
3487
- type: "uint256"
3488
- },
3489
- { name: "dieselRate", internalType: "uint256", type: "uint256" },
3490
- { name: "supplyRate", internalType: "uint256", type: "uint256" },
3491
- { name: "withdrawFee", internalType: "uint256", type: "uint256" },
3492
- { name: "totalBorrowed", internalType: "uint256", type: "uint256" },
3493
- { name: "totalDebtLimit", internalType: "uint256", type: "uint256" },
3494
- {
3495
- name: "creditManagerDebtParams",
3496
- internalType: "struct CreditManagerDebtParams[]",
3497
- type: "tuple[]",
3498
- components: [
3499
- {
3500
- name: "creditManager",
3501
- internalType: "address",
3502
- type: "address"
3503
- },
3504
- { name: "borrowed", internalType: "uint256", type: "uint256" },
3505
- { name: "limit", internalType: "uint256", type: "uint256" },
3506
- { name: "available", internalType: "uint256", type: "uint256" }
3507
- ]
3508
- },
3509
- {
3510
- name: "baseInterestIndexLU",
3511
- internalType: "uint256",
3512
- type: "uint256"
3513
- },
3514
- {
3515
- name: "expectedLiquidityLU",
3516
- internalType: "uint256",
3517
- type: "uint256"
3518
- },
3519
- { name: "quotaRevenue", internalType: "uint256", type: "uint256" },
3520
- {
3521
- name: "lastBaseInterestUpdate",
3522
- internalType: "uint40",
3523
- type: "uint40"
3524
- },
3525
- {
3526
- name: "lastQuotaRevenueUpdate",
3527
- internalType: "uint40",
3528
- type: "uint40"
3529
- },
3530
- { name: "isPaused", internalType: "bool", type: "bool" }
3980
+ name: "answer",
3981
+ internalType: "struct PriceFeedAnswer",
3982
+ type: "tuple",
3983
+ components: [
3984
+ { name: "price", internalType: "int256", type: "int256" },
3985
+ {
3986
+ name: "updatedAt",
3987
+ internalType: "uint256",
3988
+ type: "uint256"
3989
+ },
3990
+ { name: "success", internalType: "bool", type: "bool" }
3991
+ ]
3992
+ }
3993
+ ]
3994
+ }
3531
3995
  ]
3532
3996
  }
3533
3997
  ],
@@ -3535,12 +3999,15 @@ const iPoolCompressorAbi = [
3535
3999
  },
3536
4000
  {
3537
4001
  type: "function",
3538
- inputs: [{ name: "rateKeeper", internalType: "address", type: "address" }],
3539
- name: "getRateKeeperState",
4002
+ inputs: [
4003
+ { name: "priceOracle", internalType: "address", type: "address" },
4004
+ { name: "tokens", internalType: "address[]", type: "address[]" }
4005
+ ],
4006
+ name: "getPriceOracleState",
3540
4007
  outputs: [
3541
4008
  {
3542
4009
  name: "",
3543
- internalType: "struct RateKeeperState",
4010
+ internalType: "struct PriceOracleState",
3544
4011
  type: "tuple",
3545
4012
  components: [
3546
4013
  {
@@ -3563,12 +4030,72 @@ const iPoolCompressorAbi = [
3563
4030
  ]
3564
4031
  },
3565
4032
  {
3566
- name: "rates",
3567
- internalType: "struct Rate[]",
4033
+ name: "priceFeedMap",
4034
+ internalType: "struct PriceFeedMapEntry[]",
3568
4035
  type: "tuple[]",
3569
4036
  components: [
3570
4037
  { name: "token", internalType: "address", type: "address" },
3571
- { name: "rate", internalType: "uint16", type: "uint16" }
4038
+ { name: "reserve", internalType: "bool", type: "bool" },
4039
+ { name: "priceFeed", internalType: "address", type: "address" },
4040
+ {
4041
+ name: "stalenessPeriod",
4042
+ internalType: "uint32",
4043
+ type: "uint32"
4044
+ }
4045
+ ]
4046
+ },
4047
+ {
4048
+ name: "priceFeedTree",
4049
+ internalType: "struct PriceFeedTreeNode[]",
4050
+ type: "tuple[]",
4051
+ components: [
4052
+ {
4053
+ name: "baseParams",
4054
+ internalType: "struct BaseParams",
4055
+ type: "tuple",
4056
+ components: [
4057
+ { name: "addr", internalType: "address", type: "address" },
4058
+ { name: "version", internalType: "uint256", type: "uint256" },
4059
+ {
4060
+ name: "contractType",
4061
+ internalType: "bytes32",
4062
+ type: "bytes32"
4063
+ },
4064
+ {
4065
+ name: "serializedParams",
4066
+ internalType: "bytes",
4067
+ type: "bytes"
4068
+ }
4069
+ ]
4070
+ },
4071
+ { name: "description", internalType: "string", type: "string" },
4072
+ { name: "decimals", internalType: "uint8", type: "uint8" },
4073
+ { name: "skipCheck", internalType: "bool", type: "bool" },
4074
+ { name: "updatable", internalType: "bool", type: "bool" },
4075
+ {
4076
+ name: "underlyingFeeds",
4077
+ internalType: "address[]",
4078
+ type: "address[]"
4079
+ },
4080
+ {
4081
+ name: "underlyingStalenessPeriods",
4082
+ internalType: "uint32[]",
4083
+ type: "uint32[]"
4084
+ },
4085
+ {
4086
+ name: "answer",
4087
+ internalType: "struct PriceFeedAnswer",
4088
+ type: "tuple",
4089
+ components: [
4090
+ { name: "price", internalType: "int256", type: "int256" },
4091
+ {
4092
+ name: "updatedAt",
4093
+ internalType: "uint256",
4094
+ type: "uint256"
4095
+ },
4096
+ { name: "success", internalType: "bool", type: "bool" }
4097
+ ]
4098
+ }
3572
4099
  ]
3573
4100
  }
3574
4101
  ]
@@ -3576,44 +4103,29 @@ const iPoolCompressorAbi = [
3576
4103
  ],
3577
4104
  stateMutability: "view"
3578
4105
  },
3579
- {
3580
- type: "function",
3581
- inputs: [],
3582
- name: "version",
3583
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3584
- stateMutability: "view"
3585
- }
3586
- ];
3587
- const iPriceFeedCompressorAbi = [
3588
- {
3589
- type: "function",
3590
- inputs: [],
3591
- name: "contractType",
3592
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
3593
- stateMutability: "view"
3594
- },
3595
4106
  {
3596
4107
  type: "function",
3597
4108
  inputs: [
3598
- { name: "priceOracle", internalType: "address", type: "address" },
3599
- { name: "tokens", internalType: "address[]", type: "address[]" }
3600
- ],
3601
- name: "getPriceFeeds",
3602
- outputs: [
3603
4109
  {
3604
- name: "priceFeedMap",
3605
- internalType: "struct PriceFeedMapEntry[]",
3606
- type: "tuple[]",
4110
+ name: "filter",
4111
+ internalType: "struct MarketFilter",
4112
+ type: "tuple",
3607
4113
  components: [
3608
- { name: "token", internalType: "address", type: "address" },
3609
- { name: "reserve", internalType: "bool", type: "bool" },
3610
- { name: "priceFeed", internalType: "address", type: "address" },
3611
- { name: "stalenessPeriod", internalType: "uint32", type: "uint32" }
4114
+ {
4115
+ name: "configurators",
4116
+ internalType: "address[]",
4117
+ type: "address[]"
4118
+ },
4119
+ { name: "pools", internalType: "address[]", type: "address[]" },
4120
+ { name: "underlying", internalType: "address", type: "address" }
3612
4121
  ]
3613
- },
4122
+ }
4123
+ ],
4124
+ name: "getPriceOracles",
4125
+ outputs: [
3614
4126
  {
3615
- name: "priceFeedTree",
3616
- internalType: "struct PriceFeedTreeNode[]",
4127
+ name: "",
4128
+ internalType: "struct PriceOracleState[]",
3617
4129
  type: "tuple[]",
3618
4130
  components: [
3619
4131
  {
@@ -3635,28 +4147,73 @@ const iPriceFeedCompressorAbi = [
3635
4147
  }
3636
4148
  ]
3637
4149
  },
3638
- { name: "description", internalType: "string", type: "string" },
3639
- { name: "decimals", internalType: "uint8", type: "uint8" },
3640
- { name: "skipCheck", internalType: "bool", type: "bool" },
3641
- { name: "updatable", internalType: "bool", type: "bool" },
3642
- {
3643
- name: "underlyingFeeds",
3644
- internalType: "address[]",
3645
- type: "address[]"
3646
- },
3647
4150
  {
3648
- name: "underlyingStalenessPeriods",
3649
- internalType: "uint32[]",
3650
- type: "uint32[]"
4151
+ name: "priceFeedMap",
4152
+ internalType: "struct PriceFeedMapEntry[]",
4153
+ type: "tuple[]",
4154
+ components: [
4155
+ { name: "token", internalType: "address", type: "address" },
4156
+ { name: "reserve", internalType: "bool", type: "bool" },
4157
+ { name: "priceFeed", internalType: "address", type: "address" },
4158
+ {
4159
+ name: "stalenessPeriod",
4160
+ internalType: "uint32",
4161
+ type: "uint32"
4162
+ }
4163
+ ]
3651
4164
  },
3652
4165
  {
3653
- name: "answer",
3654
- internalType: "struct PriceFeedAnswer",
3655
- type: "tuple",
4166
+ name: "priceFeedTree",
4167
+ internalType: "struct PriceFeedTreeNode[]",
4168
+ type: "tuple[]",
3656
4169
  components: [
3657
- { name: "price", internalType: "int256", type: "int256" },
3658
- { name: "updatedAt", internalType: "uint256", type: "uint256" },
3659
- { name: "success", internalType: "bool", type: "bool" }
4170
+ {
4171
+ name: "baseParams",
4172
+ internalType: "struct BaseParams",
4173
+ type: "tuple",
4174
+ components: [
4175
+ { name: "addr", internalType: "address", type: "address" },
4176
+ { name: "version", internalType: "uint256", type: "uint256" },
4177
+ {
4178
+ name: "contractType",
4179
+ internalType: "bytes32",
4180
+ type: "bytes32"
4181
+ },
4182
+ {
4183
+ name: "serializedParams",
4184
+ internalType: "bytes",
4185
+ type: "bytes"
4186
+ }
4187
+ ]
4188
+ },
4189
+ { name: "description", internalType: "string", type: "string" },
4190
+ { name: "decimals", internalType: "uint8", type: "uint8" },
4191
+ { name: "skipCheck", internalType: "bool", type: "bool" },
4192
+ { name: "updatable", internalType: "bool", type: "bool" },
4193
+ {
4194
+ name: "underlyingFeeds",
4195
+ internalType: "address[]",
4196
+ type: "address[]"
4197
+ },
4198
+ {
4199
+ name: "underlyingStalenessPeriods",
4200
+ internalType: "uint32[]",
4201
+ type: "uint32[]"
4202
+ },
4203
+ {
4204
+ name: "answer",
4205
+ internalType: "struct PriceFeedAnswer",
4206
+ type: "tuple",
4207
+ components: [
4208
+ { name: "price", internalType: "int256", type: "int256" },
4209
+ {
4210
+ name: "updatedAt",
4211
+ internalType: "uint256",
4212
+ type: "uint256"
4213
+ },
4214
+ { name: "success", internalType: "bool", type: "bool" }
4215
+ ]
4216
+ }
3660
4217
  ]
3661
4218
  }
3662
4219
  ]
@@ -3666,22 +4223,81 @@ const iPriceFeedCompressorAbi = [
3666
4223
  },
3667
4224
  {
3668
4225
  type: "function",
3669
- inputs: [{ name: "priceOracle", internalType: "address", type: "address" }],
3670
- name: "getPriceFeeds",
4226
+ inputs: [
4227
+ { name: "priceFeeds", internalType: "address[]", type: "address[]" }
4228
+ ],
4229
+ name: "getUpdatablePriceFeeds",
3671
4230
  outputs: [
3672
4231
  {
3673
- name: "priceFeedMap",
3674
- internalType: "struct PriceFeedMapEntry[]",
4232
+ name: "",
4233
+ internalType: "struct BaseParams[]",
3675
4234
  type: "tuple[]",
3676
4235
  components: [
3677
- { name: "token", internalType: "address", type: "address" },
3678
- { name: "reserve", internalType: "bool", type: "bool" },
3679
- { name: "priceFeed", internalType: "address", type: "address" },
3680
- { name: "stalenessPeriod", internalType: "uint32", type: "uint32" }
4236
+ { name: "addr", internalType: "address", type: "address" },
4237
+ { name: "version", internalType: "uint256", type: "uint256" },
4238
+ { name: "contractType", internalType: "bytes32", type: "bytes32" },
4239
+ { name: "serializedParams", internalType: "bytes", type: "bytes" }
3681
4240
  ]
3682
- },
4241
+ }
4242
+ ],
4243
+ stateMutability: "view"
4244
+ },
4245
+ {
4246
+ type: "function",
4247
+ inputs: [
4248
+ {
4249
+ name: "filter",
4250
+ internalType: "struct MarketFilter",
4251
+ type: "tuple",
4252
+ components: [
4253
+ {
4254
+ name: "configurators",
4255
+ internalType: "address[]",
4256
+ type: "address[]"
4257
+ },
4258
+ { name: "pools", internalType: "address[]", type: "address[]" },
4259
+ { name: "underlying", internalType: "address", type: "address" }
4260
+ ]
4261
+ }
4262
+ ],
4263
+ name: "getUpdatablePriceFeeds",
4264
+ outputs: [
4265
+ {
4266
+ name: "",
4267
+ internalType: "struct BaseParams[]",
4268
+ type: "tuple[]",
4269
+ components: [
4270
+ { name: "addr", internalType: "address", type: "address" },
4271
+ { name: "version", internalType: "uint256", type: "uint256" },
4272
+ { name: "contractType", internalType: "bytes32", type: "bytes32" },
4273
+ { name: "serializedParams", internalType: "bytes", type: "bytes" }
4274
+ ]
4275
+ }
4276
+ ],
4277
+ stateMutability: "view"
4278
+ },
4279
+ {
4280
+ type: "function",
4281
+ inputs: [
4282
+ {
4283
+ name: "filter",
4284
+ internalType: "struct MarketFilter",
4285
+ type: "tuple",
4286
+ components: [
4287
+ {
4288
+ name: "configurators",
4289
+ internalType: "address[]",
4290
+ type: "address[]"
4291
+ },
4292
+ { name: "pools", internalType: "address[]", type: "address[]" },
4293
+ { name: "underlying", internalType: "address", type: "address" }
4294
+ ]
4295
+ }
4296
+ ],
4297
+ name: "loadPriceFeedTree",
4298
+ outputs: [
3683
4299
  {
3684
- name: "priceFeedTree",
4300
+ name: "",
3685
4301
  internalType: "struct PriceFeedTreeNode[]",
3686
4302
  type: "tuple[]",
3687
4303
  components: [
@@ -3741,7 +4357,7 @@ const iPriceFeedCompressorAbi = [
3741
4357
  name: "loadPriceFeedTree",
3742
4358
  outputs: [
3743
4359
  {
3744
- name: "priceFeedTree",
4360
+ name: "",
3745
4361
  internalType: "struct PriceFeedTreeNode[]",
3746
4362
  type: "tuple[]",
3747
4363
  components: [
@@ -3799,25 +4415,6 @@ const iPriceFeedCompressorAbi = [
3799
4415
  name: "version",
3800
4416
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3801
4417
  stateMutability: "view"
3802
- },
3803
- {
3804
- type: "event",
3805
- anonymous: false,
3806
- inputs: [
3807
- {
3808
- name: "contractType",
3809
- internalType: "bytes32",
3810
- type: "bytes32",
3811
- indexed: true
3812
- },
3813
- {
3814
- name: "serializer",
3815
- internalType: "address",
3816
- type: "address",
3817
- indexed: true
3818
- }
3819
- ],
3820
- name: "SetSerializer"
3821
4418
  }
3822
4419
  ];
3823
4420
  const iRewardsCompressorAbi = [
@@ -3875,7 +4472,7 @@ const iTokenCompressorAbi = [
3875
4472
  name: "getTokenInfo",
3876
4473
  outputs: [
3877
4474
  {
3878
- name: "result",
4475
+ name: "",
3879
4476
  internalType: "struct TokenData",
3880
4477
  type: "tuple",
3881
4478
  components: [
@@ -3888,6 +4485,25 @@ const iTokenCompressorAbi = [
3888
4485
  ],
3889
4486
  stateMutability: "view"
3890
4487
  },
4488
+ {
4489
+ type: "function",
4490
+ inputs: [{ name: "tokens", internalType: "address[]", type: "address[]" }],
4491
+ name: "getTokens",
4492
+ outputs: [
4493
+ {
4494
+ name: "",
4495
+ internalType: "struct TokenData[]",
4496
+ type: "tuple[]",
4497
+ components: [
4498
+ { name: "addr", internalType: "address", type: "address" },
4499
+ { name: "symbol", internalType: "string", type: "string" },
4500
+ { name: "name", internalType: "string", type: "string" },
4501
+ { name: "decimals", internalType: "uint8", type: "uint8" }
4502
+ ]
4503
+ }
4504
+ ],
4505
+ stateMutability: "view"
4506
+ },
3891
4507
  {
3892
4508
  type: "function",
3893
4509
  inputs: [],
@@ -3897,16 +4513,11 @@ const iTokenCompressorAbi = [
3897
4513
  }
3898
4514
  ];
3899
4515
  export {
3900
- iAdapterCompressorAbi,
3901
- iAuraL2CoordinatorAbi,
3902
- iConvexTokenAbi,
3903
4516
  iCreditAccountCompressorAbi,
3904
4517
  iCreditSuiteCompressorAbi,
3905
4518
  iGaugeCompressorAbi,
3906
4519
  iMarketCompressorAbi,
3907
- iModifiedBoosterAbi,
3908
4520
  iPeripheryCompressorAbi,
3909
- iPoolCompressorAbi,
3910
4521
  iPriceFeedCompressorAbi,
3911
4522
  iRewardsCompressorAbi,
3912
4523
  iTokenCompressorAbi