@gearbox-protocol/sdk 3.2.0 → 4.0.0-next.1

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 (60) 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/AccountOpener.js +1 -1
  5. package/dist/cjs/dev/setLTZero.js +7 -0
  6. package/dist/cjs/sdk/GearboxSDK.js +33 -17
  7. package/dist/cjs/sdk/accounts/CreditAccountsService.js +47 -32
  8. package/dist/cjs/sdk/accounts/utils.js +38 -0
  9. package/dist/cjs/sdk/constants/address-provider.js +11 -17
  10. package/dist/cjs/sdk/market/MarketSuite.js +1 -1
  11. package/dist/cjs/sdk/market/credit/CreditFacadeV300Contract.js +1 -5
  12. package/dist/cjs/sdk/market/credit/CreditFacadeV310Contract.js +1 -5
  13. package/dist/cjs/sdk/market/oracle/PriceOracleBaseContract.js +6 -5
  14. package/dist/cjs/sdk/market/pool/PoolSuite.js +1 -1
  15. package/dist/cjs/sdk/market/pricefeeds/PriceFeedsRegister.js +4 -4
  16. package/dist/cjs/sdk/router/createRouter.js +4 -6
  17. package/dist/cjs/sdk/sdk-legacy/core/creditAccount.js +3 -1
  18. package/dist/cjs/sdk/utils/index.js +3 -1
  19. package/dist/cjs/sdk/utils/toAddress.js +36 -0
  20. package/dist/esm/abi/compressors.js +1124 -513
  21. package/dist/esm/adapters/abi/adapters.js +120 -0
  22. package/dist/esm/adapters/abi/index.js +0 -1
  23. package/dist/esm/dev/AccountOpener.js +1 -1
  24. package/dist/esm/dev/setLTZero.js +7 -0
  25. package/dist/esm/sdk/GearboxSDK.js +40 -18
  26. package/dist/esm/sdk/accounts/CreditAccountsService.js +47 -32
  27. package/dist/esm/sdk/accounts/utils.js +14 -0
  28. package/dist/esm/sdk/constants/address-provider.js +11 -15
  29. package/dist/esm/sdk/market/MarketSuite.js +1 -1
  30. package/dist/esm/sdk/market/credit/CreditFacadeV300Contract.js +1 -5
  31. package/dist/esm/sdk/market/credit/CreditFacadeV310Contract.js +1 -5
  32. package/dist/esm/sdk/market/oracle/PriceOracleBaseContract.js +6 -5
  33. package/dist/esm/sdk/market/pool/PoolSuite.js +1 -1
  34. package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +9 -6
  35. package/dist/esm/sdk/router/createRouter.js +4 -6
  36. package/dist/esm/sdk/sdk-legacy/core/creditAccount.js +3 -1
  37. package/dist/esm/sdk/utils/index.js +1 -0
  38. package/dist/esm/sdk/utils/toAddress.js +12 -0
  39. package/dist/types/abi/compressors.d.ts +1403 -775
  40. package/dist/types/adapters/BalancerV3RouterAdapterContract.d.ts +62 -104
  41. package/dist/types/adapters/abi/adapters.d.ts +213 -0
  42. package/dist/types/adapters/abi/index.d.ts +0 -1
  43. package/dist/types/sdk/GearboxSDK.d.ts +12 -3
  44. package/dist/types/sdk/accounts/CreditAccountsService.d.ts +3 -3
  45. package/dist/types/sdk/accounts/types.d.ts +15 -2
  46. package/dist/types/sdk/accounts/utils.d.ts +2 -0
  47. package/dist/types/sdk/base/types.d.ts +6 -6
  48. package/dist/types/sdk/constants/address-provider.d.ts +11 -13
  49. package/dist/types/sdk/market/oracle/PriceOracleBaseContract.d.ts +425 -85
  50. package/dist/types/sdk/market/pool/PoolQuotaKeeperV300Contract.d.ts +2 -2
  51. package/dist/types/sdk/market/pool/PoolQuotaKeeperV310Contract.d.ts +2 -2
  52. package/dist/types/sdk/market/pool/createPoolQuotaKeeper.d.ts +2 -2
  53. package/dist/types/sdk/router/createRouter.d.ts +2 -1
  54. package/dist/types/sdk/types/state-human.d.ts +1 -3
  55. package/dist/types/sdk/utils/index.d.ts +1 -0
  56. package/dist/types/sdk/utils/toAddress.d.ts +3 -0
  57. package/package.json +1 -1
  58. package/dist/cjs/adapters/abi/iBalancerV3RouterAdapter.js +0 -153
  59. package/dist/esm/adapters/abi/iBalancerV3RouterAdapter.js +0 -129
  60. package/dist/types/adapters/abi/iBalancerV3RouterAdapter.d.ts +0 -230
@@ -18,127 +18,16 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var compressors_exports = {};
20
20
  __export(compressors_exports, {
21
- iAdapterCompressorAbi: () => iAdapterCompressorAbi,
22
- iAuraL2CoordinatorAbi: () => iAuraL2CoordinatorAbi,
23
- iConvexTokenAbi: () => iConvexTokenAbi,
24
21
  iCreditAccountCompressorAbi: () => iCreditAccountCompressorAbi,
25
22
  iCreditSuiteCompressorAbi: () => iCreditSuiteCompressorAbi,
26
23
  iGaugeCompressorAbi: () => iGaugeCompressorAbi,
27
24
  iMarketCompressorAbi: () => iMarketCompressorAbi,
28
- iModifiedBoosterAbi: () => iModifiedBoosterAbi,
29
25
  iPeripheryCompressorAbi: () => iPeripheryCompressorAbi,
30
- iPoolCompressorAbi: () => iPoolCompressorAbi,
31
26
  iPriceFeedCompressorAbi: () => iPriceFeedCompressorAbi,
32
27
  iRewardsCompressorAbi: () => iRewardsCompressorAbi,
33
28
  iTokenCompressorAbi: () => iTokenCompressorAbi
34
29
  });
35
30
  module.exports = __toCommonJS(compressors_exports);
36
- const iAdapterCompressorAbi = [
37
- {
38
- type: "function",
39
- inputs: [],
40
- name: "contractType",
41
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
42
- stateMutability: "view"
43
- },
44
- {
45
- type: "function",
46
- inputs: [
47
- { name: "creditManager", internalType: "address", type: "address" }
48
- ],
49
- name: "getAdapters",
50
- outputs: [
51
- {
52
- name: "result",
53
- internalType: "struct AdapterState[]",
54
- type: "tuple[]",
55
- components: [
56
- {
57
- name: "baseParams",
58
- internalType: "struct BaseParams",
59
- type: "tuple",
60
- components: [
61
- { name: "addr", internalType: "address", type: "address" },
62
- { name: "version", internalType: "uint256", type: "uint256" },
63
- {
64
- name: "contractType",
65
- internalType: "bytes32",
66
- type: "bytes32"
67
- },
68
- {
69
- name: "serializedParams",
70
- internalType: "bytes",
71
- type: "bytes"
72
- }
73
- ]
74
- },
75
- { name: "targetContract", internalType: "address", type: "address" }
76
- ]
77
- }
78
- ],
79
- stateMutability: "view"
80
- },
81
- {
82
- type: "function",
83
- inputs: [],
84
- name: "version",
85
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
86
- stateMutability: "view"
87
- }
88
- ];
89
- const iAuraL2CoordinatorAbi = [
90
- {
91
- type: "function",
92
- inputs: [],
93
- name: "auraOFT",
94
- outputs: [{ name: "", internalType: "address", type: "address" }],
95
- stateMutability: "view"
96
- },
97
- {
98
- type: "function",
99
- inputs: [],
100
- name: "mintRate",
101
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
102
- stateMutability: "view"
103
- }
104
- ];
105
- const iConvexTokenAbi = [
106
- {
107
- type: "function",
108
- inputs: [],
109
- name: "EMISSIONS_MAX_SUPPLY",
110
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
111
- stateMutability: "view"
112
- },
113
- {
114
- type: "function",
115
- inputs: [],
116
- name: "maxSupply",
117
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
118
- stateMutability: "view"
119
- },
120
- {
121
- type: "function",
122
- inputs: [],
123
- name: "reductionPerCliff",
124
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
125
- stateMutability: "view"
126
- },
127
- {
128
- type: "function",
129
- inputs: [],
130
- name: "totalCliffs",
131
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
132
- stateMutability: "view"
133
- },
134
- {
135
- type: "function",
136
- inputs: [],
137
- name: "totalSupply",
138
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
139
- stateMutability: "view"
140
- }
141
- ];
142
31
  const iCreditAccountCompressorAbi = [
143
32
  {
144
33
  type: "function",
@@ -158,8 +47,8 @@ const iCreditAccountCompressorAbi = [
158
47
  components: [
159
48
  { name: "owner", internalType: "address", type: "address" },
160
49
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
161
- { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
162
- { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
50
+ { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
51
+ { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
163
52
  { name: "reverting", internalType: "bool", type: "bool" }
164
53
  ]
165
54
  }
@@ -173,7 +62,7 @@ const iCreditAccountCompressorAbi = [
173
62
  inputs: [
174
63
  {
175
64
  name: "cmFilter",
176
- internalType: "struct MarketFilter",
65
+ internalType: "struct CreditManagerFilter",
177
66
  type: "tuple",
178
67
  components: [
179
68
  {
@@ -181,6 +70,11 @@ const iCreditAccountCompressorAbi = [
181
70
  internalType: "address[]",
182
71
  type: "address[]"
183
72
  },
73
+ {
74
+ name: "creditManagers",
75
+ internalType: "address[]",
76
+ type: "address[]"
77
+ },
184
78
  { name: "pools", internalType: "address[]", type: "address[]" },
185
79
  { name: "underlying", internalType: "address", type: "address" }
186
80
  ]
@@ -192,8 +86,8 @@ const iCreditAccountCompressorAbi = [
192
86
  components: [
193
87
  { name: "owner", internalType: "address", type: "address" },
194
88
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
195
- { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
196
- { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
89
+ { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
90
+ { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
197
91
  { name: "reverting", internalType: "bool", type: "bool" }
198
92
  ]
199
93
  }
@@ -232,7 +126,7 @@ const iCreditAccountCompressorAbi = [
232
126
  { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
233
127
  { name: "twvUSD", internalType: "uint256", type: "uint256" },
234
128
  { name: "totalValue", internalType: "uint256", type: "uint256" },
235
- { name: "healthFactor", internalType: "uint16", type: "uint16" },
129
+ { name: "healthFactor", internalType: "uint256", type: "uint256" },
236
130
  { name: "success", internalType: "bool", type: "bool" },
237
131
  {
238
132
  name: "tokens",
@@ -256,7 +150,7 @@ const iCreditAccountCompressorAbi = [
256
150
  inputs: [
257
151
  {
258
152
  name: "cmFilter",
259
- internalType: "struct MarketFilter",
153
+ internalType: "struct CreditManagerFilter",
260
154
  type: "tuple",
261
155
  components: [
262
156
  {
@@ -264,6 +158,11 @@ const iCreditAccountCompressorAbi = [
264
158
  internalType: "address[]",
265
159
  type: "address[]"
266
160
  },
161
+ {
162
+ name: "creditManagers",
163
+ internalType: "address[]",
164
+ type: "address[]"
165
+ },
267
166
  { name: "pools", internalType: "address[]", type: "address[]" },
268
167
  { name: "underlying", internalType: "address", type: "address" }
269
168
  ]
@@ -275,12 +174,13 @@ const iCreditAccountCompressorAbi = [
275
174
  components: [
276
175
  { name: "owner", internalType: "address", type: "address" },
277
176
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
278
- { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
279
- { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
177
+ { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
178
+ { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
280
179
  { name: "reverting", internalType: "bool", type: "bool" }
281
180
  ]
282
181
  },
283
- { name: "offset", internalType: "uint256", type: "uint256" }
182
+ { name: "offset", internalType: "uint256", type: "uint256" },
183
+ { name: "limit", internalType: "uint256", type: "uint256" }
284
184
  ],
285
185
  name: "getCreditAccounts",
286
186
  outputs: [
@@ -307,7 +207,7 @@ const iCreditAccountCompressorAbi = [
307
207
  { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
308
208
  { name: "twvUSD", internalType: "uint256", type: "uint256" },
309
209
  { name: "totalValue", internalType: "uint256", type: "uint256" },
310
- { name: "healthFactor", internalType: "uint16", type: "uint16" },
210
+ { name: "healthFactor", internalType: "uint256", type: "uint256" },
311
211
  { name: "success", internalType: "bool", type: "bool" },
312
212
  {
313
213
  name: "tokens",
@@ -338,8 +238,8 @@ const iCreditAccountCompressorAbi = [
338
238
  components: [
339
239
  { name: "owner", internalType: "address", type: "address" },
340
240
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
341
- { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
342
- { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
241
+ { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
242
+ { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
343
243
  { name: "reverting", internalType: "bool", type: "bool" }
344
244
  ]
345
245
  },
@@ -370,7 +270,7 @@ const iCreditAccountCompressorAbi = [
370
270
  { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
371
271
  { name: "twvUSD", internalType: "uint256", type: "uint256" },
372
272
  { name: "totalValue", internalType: "uint256", type: "uint256" },
373
- { name: "healthFactor", internalType: "uint16", type: "uint16" },
273
+ { name: "healthFactor", internalType: "uint256", type: "uint256" },
374
274
  { name: "success", internalType: "bool", type: "bool" },
375
275
  {
376
276
  name: "tokens",
@@ -401,8 +301,8 @@ const iCreditAccountCompressorAbi = [
401
301
  components: [
402
302
  { name: "owner", internalType: "address", type: "address" },
403
303
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
404
- { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
405
- { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
304
+ { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
305
+ { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
406
306
  { name: "reverting", internalType: "bool", type: "bool" }
407
307
  ]
408
308
  },
@@ -434,7 +334,7 @@ const iCreditAccountCompressorAbi = [
434
334
  { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
435
335
  { name: "twvUSD", internalType: "uint256", type: "uint256" },
436
336
  { name: "totalValue", internalType: "uint256", type: "uint256" },
437
- { name: "healthFactor", internalType: "uint16", type: "uint16" },
337
+ { name: "healthFactor", internalType: "uint256", type: "uint256" },
438
338
  { name: "success", internalType: "bool", type: "bool" },
439
339
  {
440
340
  name: "tokens",
@@ -459,7 +359,7 @@ const iCreditAccountCompressorAbi = [
459
359
  inputs: [
460
360
  {
461
361
  name: "cmFilter",
462
- internalType: "struct MarketFilter",
362
+ internalType: "struct CreditManagerFilter",
463
363
  type: "tuple",
464
364
  components: [
465
365
  {
@@ -467,6 +367,11 @@ const iCreditAccountCompressorAbi = [
467
367
  internalType: "address[]",
468
368
  type: "address[]"
469
369
  },
370
+ {
371
+ name: "creditManagers",
372
+ internalType: "address[]",
373
+ type: "address[]"
374
+ },
470
375
  { name: "pools", internalType: "address[]", type: "address[]" },
471
376
  { name: "underlying", internalType: "address", type: "address" }
472
377
  ]
@@ -478,13 +383,12 @@ const iCreditAccountCompressorAbi = [
478
383
  components: [
479
384
  { name: "owner", internalType: "address", type: "address" },
480
385
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
481
- { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
482
- { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
386
+ { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
387
+ { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
483
388
  { name: "reverting", internalType: "bool", type: "bool" }
484
389
  ]
485
390
  },
486
- { name: "offset", internalType: "uint256", type: "uint256" },
487
- { name: "limit", internalType: "uint256", type: "uint256" }
391
+ { name: "offset", internalType: "uint256", type: "uint256" }
488
392
  ],
489
393
  name: "getCreditAccounts",
490
394
  outputs: [
@@ -511,7 +415,7 @@ const iCreditAccountCompressorAbi = [
511
415
  { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
512
416
  { name: "twvUSD", internalType: "uint256", type: "uint256" },
513
417
  { name: "totalValue", internalType: "uint256", type: "uint256" },
514
- { name: "healthFactor", internalType: "uint16", type: "uint16" },
418
+ { name: "healthFactor", internalType: "uint256", type: "uint256" },
515
419
  { name: "success", internalType: "bool", type: "bool" },
516
420
  {
517
421
  name: "tokens",
@@ -547,6 +451,115 @@ const iCreditSuiteCompressorAbi = [
547
451
  outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
548
452
  stateMutability: "view"
549
453
  },
454
+ {
455
+ type: "function",
456
+ inputs: [
457
+ { name: "accountFactory", internalType: "address", type: "address" }
458
+ ],
459
+ name: "getAccountFactoryState",
460
+ outputs: [
461
+ {
462
+ name: "",
463
+ internalType: "struct BaseState",
464
+ type: "tuple",
465
+ components: [
466
+ {
467
+ name: "baseParams",
468
+ internalType: "struct BaseParams",
469
+ type: "tuple",
470
+ components: [
471
+ { name: "addr", internalType: "address", type: "address" },
472
+ { name: "version", internalType: "uint256", type: "uint256" },
473
+ {
474
+ name: "contractType",
475
+ internalType: "bytes32",
476
+ type: "bytes32"
477
+ },
478
+ {
479
+ name: "serializedParams",
480
+ internalType: "bytes",
481
+ type: "bytes"
482
+ }
483
+ ]
484
+ }
485
+ ]
486
+ }
487
+ ],
488
+ stateMutability: "view"
489
+ },
490
+ {
491
+ type: "function",
492
+ inputs: [
493
+ { name: "creditManager", internalType: "address", type: "address" }
494
+ ],
495
+ name: "getAdapters",
496
+ outputs: [
497
+ {
498
+ name: "",
499
+ internalType: "struct AdapterState[]",
500
+ type: "tuple[]",
501
+ components: [
502
+ {
503
+ name: "baseParams",
504
+ internalType: "struct BaseParams",
505
+ type: "tuple",
506
+ components: [
507
+ { name: "addr", internalType: "address", type: "address" },
508
+ { name: "version", internalType: "uint256", type: "uint256" },
509
+ {
510
+ name: "contractType",
511
+ internalType: "bytes32",
512
+ type: "bytes32"
513
+ },
514
+ {
515
+ name: "serializedParams",
516
+ internalType: "bytes",
517
+ type: "bytes"
518
+ }
519
+ ]
520
+ },
521
+ { name: "targetContract", internalType: "address", type: "address" }
522
+ ]
523
+ }
524
+ ],
525
+ stateMutability: "view"
526
+ },
527
+ {
528
+ type: "function",
529
+ inputs: [
530
+ { name: "creditConfigurator", internalType: "address", type: "address" }
531
+ ],
532
+ name: "getCreditConfiguratorState",
533
+ outputs: [
534
+ {
535
+ name: "",
536
+ internalType: "struct BaseState",
537
+ type: "tuple",
538
+ components: [
539
+ {
540
+ name: "baseParams",
541
+ internalType: "struct BaseParams",
542
+ type: "tuple",
543
+ components: [
544
+ { name: "addr", internalType: "address", type: "address" },
545
+ { name: "version", internalType: "uint256", type: "uint256" },
546
+ {
547
+ name: "contractType",
548
+ internalType: "bytes32",
549
+ type: "bytes32"
550
+ },
551
+ {
552
+ name: "serializedParams",
553
+ internalType: "bytes",
554
+ type: "bytes"
555
+ }
556
+ ]
557
+ }
558
+ ]
559
+ }
560
+ ],
561
+ stateMutability: "view"
562
+ },
550
563
  {
551
564
  type: "function",
552
565
  inputs: [
@@ -578,7 +591,6 @@ const iCreditSuiteCompressorAbi = [
578
591
  }
579
592
  ]
580
593
  },
581
- { name: "creditManager", internalType: "address", type: "address" },
582
594
  { name: "degenNFT", internalType: "address", type: "address" },
583
595
  { name: "botList", internalType: "address", type: "address" },
584
596
  { name: "expirable", internalType: "bool", type: "bool" },
@@ -591,7 +603,7 @@ const iCreditSuiteCompressorAbi = [
591
603
  { name: "minDebt", internalType: "uint256", type: "uint256" },
592
604
  { name: "maxDebt", internalType: "uint256", type: "uint256" },
593
605
  {
594
- name: "forbiddenTokenMask",
606
+ name: "forbiddenTokensMask",
595
607
  internalType: "uint256",
596
608
  type: "uint256"
597
609
  },
@@ -714,11 +726,6 @@ const iCreditSuiteCompressorAbi = [
714
726
  }
715
727
  ]
716
728
  },
717
- {
718
- name: "creditManager",
719
- internalType: "address",
720
- type: "address"
721
- },
722
729
  { name: "degenNFT", internalType: "address", type: "address" },
723
730
  { name: "botList", internalType: "address", type: "address" },
724
731
  { name: "expirable", internalType: "bool", type: "bool" },
@@ -735,7 +742,7 @@ const iCreditSuiteCompressorAbi = [
735
742
  { name: "minDebt", internalType: "uint256", type: "uint256" },
736
743
  { name: "maxDebt", internalType: "uint256", type: "uint256" },
737
744
  {
738
- name: "forbiddenTokenMask",
745
+ name: "forbiddenTokensMask",
739
746
  internalType: "uint256",
740
747
  type: "uint256"
741
748
  },
@@ -851,6 +858,32 @@ const iCreditSuiteCompressorAbi = [
851
858
  }
852
859
  ]
853
860
  },
861
+ {
862
+ name: "accountFactory",
863
+ internalType: "struct BaseState",
864
+ type: "tuple",
865
+ components: [
866
+ {
867
+ name: "baseParams",
868
+ internalType: "struct BaseParams",
869
+ type: "tuple",
870
+ components: [
871
+ { name: "addr", internalType: "address", type: "address" },
872
+ { name: "version", internalType: "uint256", type: "uint256" },
873
+ {
874
+ name: "contractType",
875
+ internalType: "bytes32",
876
+ type: "bytes32"
877
+ },
878
+ {
879
+ name: "serializedParams",
880
+ internalType: "bytes",
881
+ type: "bytes"
882
+ }
883
+ ]
884
+ }
885
+ ]
886
+ },
854
887
  {
855
888
  name: "adapters",
856
889
  internalType: "struct AdapterState[]",
@@ -889,8 +922,256 @@ const iCreditSuiteCompressorAbi = [
889
922
  },
890
923
  {
891
924
  type: "function",
892
- inputs: [],
893
- name: "version",
925
+ inputs: [
926
+ {
927
+ name: "filter",
928
+ internalType: "struct CreditManagerFilter",
929
+ type: "tuple",
930
+ components: [
931
+ {
932
+ name: "configurators",
933
+ internalType: "address[]",
934
+ type: "address[]"
935
+ },
936
+ {
937
+ name: "creditManagers",
938
+ internalType: "address[]",
939
+ type: "address[]"
940
+ },
941
+ { name: "pools", internalType: "address[]", type: "address[]" },
942
+ { name: "underlying", internalType: "address", type: "address" }
943
+ ]
944
+ }
945
+ ],
946
+ name: "getCreditSuites",
947
+ outputs: [
948
+ {
949
+ name: "",
950
+ internalType: "struct CreditSuiteData[]",
951
+ type: "tuple[]",
952
+ components: [
953
+ {
954
+ name: "creditFacade",
955
+ internalType: "struct CreditFacadeState",
956
+ type: "tuple",
957
+ components: [
958
+ {
959
+ name: "baseParams",
960
+ internalType: "struct BaseParams",
961
+ type: "tuple",
962
+ components: [
963
+ { name: "addr", internalType: "address", type: "address" },
964
+ { name: "version", internalType: "uint256", type: "uint256" },
965
+ {
966
+ name: "contractType",
967
+ internalType: "bytes32",
968
+ type: "bytes32"
969
+ },
970
+ {
971
+ name: "serializedParams",
972
+ internalType: "bytes",
973
+ type: "bytes"
974
+ }
975
+ ]
976
+ },
977
+ { name: "degenNFT", internalType: "address", type: "address" },
978
+ { name: "botList", internalType: "address", type: "address" },
979
+ { name: "expirable", internalType: "bool", type: "bool" },
980
+ {
981
+ name: "expirationDate",
982
+ internalType: "uint40",
983
+ type: "uint40"
984
+ },
985
+ {
986
+ name: "maxDebtPerBlockMultiplier",
987
+ internalType: "uint8",
988
+ type: "uint8"
989
+ },
990
+ { name: "minDebt", internalType: "uint256", type: "uint256" },
991
+ { name: "maxDebt", internalType: "uint256", type: "uint256" },
992
+ {
993
+ name: "forbiddenTokensMask",
994
+ internalType: "uint256",
995
+ type: "uint256"
996
+ },
997
+ { name: "isPaused", internalType: "bool", type: "bool" }
998
+ ]
999
+ },
1000
+ {
1001
+ name: "creditManager",
1002
+ internalType: "struct CreditManagerState",
1003
+ type: "tuple",
1004
+ components: [
1005
+ {
1006
+ name: "baseParams",
1007
+ internalType: "struct BaseParams",
1008
+ type: "tuple",
1009
+ components: [
1010
+ { name: "addr", internalType: "address", type: "address" },
1011
+ { name: "version", internalType: "uint256", type: "uint256" },
1012
+ {
1013
+ name: "contractType",
1014
+ internalType: "bytes32",
1015
+ type: "bytes32"
1016
+ },
1017
+ {
1018
+ name: "serializedParams",
1019
+ internalType: "bytes",
1020
+ type: "bytes"
1021
+ }
1022
+ ]
1023
+ },
1024
+ { name: "name", internalType: "string", type: "string" },
1025
+ {
1026
+ name: "accountFactory",
1027
+ internalType: "address",
1028
+ type: "address"
1029
+ },
1030
+ { name: "underlying", internalType: "address", type: "address" },
1031
+ { name: "pool", internalType: "address", type: "address" },
1032
+ {
1033
+ name: "creditFacade",
1034
+ internalType: "address",
1035
+ type: "address"
1036
+ },
1037
+ {
1038
+ name: "creditConfigurator",
1039
+ internalType: "address",
1040
+ type: "address"
1041
+ },
1042
+ {
1043
+ name: "maxEnabledTokens",
1044
+ internalType: "uint8",
1045
+ type: "uint8"
1046
+ },
1047
+ {
1048
+ name: "collateralTokens",
1049
+ internalType: "struct CollateralToken[]",
1050
+ type: "tuple[]",
1051
+ components: [
1052
+ { name: "token", internalType: "address", type: "address" },
1053
+ {
1054
+ name: "liquidationThreshold",
1055
+ internalType: "uint16",
1056
+ type: "uint16"
1057
+ }
1058
+ ]
1059
+ },
1060
+ { name: "feeInterest", internalType: "uint16", type: "uint16" },
1061
+ {
1062
+ name: "feeLiquidation",
1063
+ internalType: "uint16",
1064
+ type: "uint16"
1065
+ },
1066
+ {
1067
+ name: "liquidationDiscount",
1068
+ internalType: "uint16",
1069
+ type: "uint16"
1070
+ },
1071
+ {
1072
+ name: "feeLiquidationExpired",
1073
+ internalType: "uint16",
1074
+ type: "uint16"
1075
+ },
1076
+ {
1077
+ name: "liquidationDiscountExpired",
1078
+ internalType: "uint16",
1079
+ type: "uint16"
1080
+ }
1081
+ ]
1082
+ },
1083
+ {
1084
+ name: "creditConfigurator",
1085
+ internalType: "struct BaseState",
1086
+ type: "tuple",
1087
+ components: [
1088
+ {
1089
+ name: "baseParams",
1090
+ internalType: "struct BaseParams",
1091
+ type: "tuple",
1092
+ components: [
1093
+ { name: "addr", internalType: "address", type: "address" },
1094
+ { name: "version", internalType: "uint256", type: "uint256" },
1095
+ {
1096
+ name: "contractType",
1097
+ internalType: "bytes32",
1098
+ type: "bytes32"
1099
+ },
1100
+ {
1101
+ name: "serializedParams",
1102
+ internalType: "bytes",
1103
+ type: "bytes"
1104
+ }
1105
+ ]
1106
+ }
1107
+ ]
1108
+ },
1109
+ {
1110
+ name: "accountFactory",
1111
+ internalType: "struct BaseState",
1112
+ type: "tuple",
1113
+ components: [
1114
+ {
1115
+ name: "baseParams",
1116
+ internalType: "struct BaseParams",
1117
+ type: "tuple",
1118
+ components: [
1119
+ { name: "addr", internalType: "address", type: "address" },
1120
+ { name: "version", internalType: "uint256", type: "uint256" },
1121
+ {
1122
+ name: "contractType",
1123
+ internalType: "bytes32",
1124
+ type: "bytes32"
1125
+ },
1126
+ {
1127
+ name: "serializedParams",
1128
+ internalType: "bytes",
1129
+ type: "bytes"
1130
+ }
1131
+ ]
1132
+ }
1133
+ ]
1134
+ },
1135
+ {
1136
+ name: "adapters",
1137
+ internalType: "struct AdapterState[]",
1138
+ type: "tuple[]",
1139
+ components: [
1140
+ {
1141
+ name: "baseParams",
1142
+ internalType: "struct BaseParams",
1143
+ type: "tuple",
1144
+ components: [
1145
+ { name: "addr", internalType: "address", type: "address" },
1146
+ { name: "version", internalType: "uint256", type: "uint256" },
1147
+ {
1148
+ name: "contractType",
1149
+ internalType: "bytes32",
1150
+ type: "bytes32"
1151
+ },
1152
+ {
1153
+ name: "serializedParams",
1154
+ internalType: "bytes",
1155
+ type: "bytes"
1156
+ }
1157
+ ]
1158
+ },
1159
+ {
1160
+ name: "targetContract",
1161
+ internalType: "address",
1162
+ type: "address"
1163
+ }
1164
+ ]
1165
+ }
1166
+ ]
1167
+ }
1168
+ ],
1169
+ stateMutability: "view"
1170
+ },
1171
+ {
1172
+ type: "function",
1173
+ inputs: [],
1174
+ name: "version",
894
1175
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
895
1176
  stateMutability: "view"
896
1177
  }
@@ -909,10 +1190,10 @@ const iGaugeCompressorAbi = [
909
1190
  { name: "gauge", internalType: "address", type: "address" },
910
1191
  { name: "staker", internalType: "address", type: "address" }
911
1192
  ],
912
- name: "getGauge",
1193
+ name: "getGaugeInfo",
913
1194
  outputs: [
914
1195
  {
915
- name: "result",
1196
+ name: "",
916
1197
  internalType: "struct GaugeInfo",
917
1198
  type: "tuple",
918
1199
  components: [
@@ -982,7 +1263,7 @@ const iGaugeCompressorAbi = [
982
1263
  name: "getGauges",
983
1264
  outputs: [
984
1265
  {
985
- name: "result",
1266
+ name: "",
986
1267
  internalType: "struct GaugeInfo[]",
987
1268
  type: "tuple[]",
988
1269
  components: [
@@ -1046,6 +1327,76 @@ const iMarketCompressorAbi = [
1046
1327
  outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
1047
1328
  stateMutability: "view"
1048
1329
  },
1330
+ {
1331
+ type: "function",
1332
+ inputs: [
1333
+ { name: "interestRateModel", internalType: "address", type: "address" }
1334
+ ],
1335
+ name: "getInterestRateModelState",
1336
+ outputs: [
1337
+ {
1338
+ name: "",
1339
+ internalType: "struct BaseState",
1340
+ type: "tuple",
1341
+ components: [
1342
+ {
1343
+ name: "baseParams",
1344
+ internalType: "struct BaseParams",
1345
+ type: "tuple",
1346
+ components: [
1347
+ { name: "addr", internalType: "address", type: "address" },
1348
+ { name: "version", internalType: "uint256", type: "uint256" },
1349
+ {
1350
+ name: "contractType",
1351
+ internalType: "bytes32",
1352
+ type: "bytes32"
1353
+ },
1354
+ {
1355
+ name: "serializedParams",
1356
+ internalType: "bytes",
1357
+ type: "bytes"
1358
+ }
1359
+ ]
1360
+ }
1361
+ ]
1362
+ }
1363
+ ],
1364
+ stateMutability: "view"
1365
+ },
1366
+ {
1367
+ type: "function",
1368
+ inputs: [{ name: "lossPolicy", internalType: "address", type: "address" }],
1369
+ name: "getLossPolicyState",
1370
+ outputs: [
1371
+ {
1372
+ name: "",
1373
+ internalType: "struct BaseState",
1374
+ type: "tuple",
1375
+ components: [
1376
+ {
1377
+ name: "baseParams",
1378
+ internalType: "struct BaseParams",
1379
+ type: "tuple",
1380
+ components: [
1381
+ { name: "addr", internalType: "address", type: "address" },
1382
+ { name: "version", internalType: "uint256", type: "uint256" },
1383
+ {
1384
+ name: "contractType",
1385
+ internalType: "bytes32",
1386
+ type: "bytes32"
1387
+ },
1388
+ {
1389
+ name: "serializedParams",
1390
+ internalType: "bytes",
1391
+ type: "bytes"
1392
+ }
1393
+ ]
1394
+ }
1395
+ ]
1396
+ }
1397
+ ],
1398
+ stateMutability: "view"
1399
+ },
1049
1400
  {
1050
1401
  type: "function",
1051
1402
  inputs: [
@@ -1055,7 +1406,7 @@ const iMarketCompressorAbi = [
1055
1406
  name: "getMarketData",
1056
1407
  outputs: [
1057
1408
  {
1058
- name: "result",
1409
+ name: "",
1059
1410
  internalType: "struct MarketData",
1060
1411
  type: "tuple",
1061
1412
  components: [
@@ -1094,11 +1445,7 @@ const iMarketCompressorAbi = [
1094
1445
  { name: "name", internalType: "string", type: "string" },
1095
1446
  { name: "decimals", internalType: "uint8", type: "uint8" },
1096
1447
  { name: "totalSupply", internalType: "uint256", type: "uint256" },
1097
- {
1098
- name: "poolQuotaKeeper",
1099
- internalType: "address",
1100
- type: "address"
1101
- },
1448
+ { name: "quotaKeeper", internalType: "address", type: "address" },
1102
1449
  {
1103
1450
  name: "interestRateModel",
1104
1451
  internalType: "address",
@@ -1190,8 +1537,8 @@ const iMarketCompressorAbi = [
1190
1537
  ]
1191
1538
  },
1192
1539
  {
1193
- name: "poolQuotaKeeper",
1194
- internalType: "struct PoolQuotaKeeperState",
1540
+ name: "quotaKeeper",
1541
+ internalType: "struct QuotaKeeperState",
1195
1542
  type: "tuple",
1196
1543
  components: [
1197
1544
  {
@@ -1314,7 +1661,7 @@ const iMarketCompressorAbi = [
1314
1661
  ]
1315
1662
  },
1316
1663
  {
1317
- name: "priceOracleData",
1664
+ name: "priceOracle",
1318
1665
  internalType: "struct PriceOracleState",
1319
1666
  type: "tuple",
1320
1667
  components: [
@@ -1338,7 +1685,7 @@ const iMarketCompressorAbi = [
1338
1685
  ]
1339
1686
  },
1340
1687
  {
1341
- name: "priceFeedMapping",
1688
+ name: "priceFeedMap",
1342
1689
  internalType: "struct PriceFeedMapEntry[]",
1343
1690
  type: "tuple[]",
1344
1691
  components: [
@@ -1357,7 +1704,7 @@ const iMarketCompressorAbi = [
1357
1704
  ]
1358
1705
  },
1359
1706
  {
1360
- name: "priceFeedStructure",
1707
+ name: "priceFeedTree",
1361
1708
  internalType: "struct PriceFeedTreeNode[]",
1362
1709
  type: "tuple[]",
1363
1710
  components: [
@@ -1498,11 +1845,6 @@ const iMarketCompressorAbi = [
1498
1845
  }
1499
1846
  ]
1500
1847
  },
1501
- {
1502
- name: "creditManager",
1503
- internalType: "address",
1504
- type: "address"
1505
- },
1506
1848
  {
1507
1849
  name: "degenNFT",
1508
1850
  internalType: "address",
@@ -1523,7 +1865,7 @@ const iMarketCompressorAbi = [
1523
1865
  { name: "minDebt", internalType: "uint256", type: "uint256" },
1524
1866
  { name: "maxDebt", internalType: "uint256", type: "uint256" },
1525
1867
  {
1526
- name: "forbiddenTokenMask",
1868
+ name: "forbiddenTokensMask",
1527
1869
  internalType: "uint256",
1528
1870
  type: "uint256"
1529
1871
  },
@@ -1667,6 +2009,40 @@ const iMarketCompressorAbi = [
1667
2009
  }
1668
2010
  ]
1669
2011
  },
2012
+ {
2013
+ name: "accountFactory",
2014
+ internalType: "struct BaseState",
2015
+ type: "tuple",
2016
+ components: [
2017
+ {
2018
+ name: "baseParams",
2019
+ internalType: "struct BaseParams",
2020
+ type: "tuple",
2021
+ components: [
2022
+ {
2023
+ name: "addr",
2024
+ internalType: "address",
2025
+ type: "address"
2026
+ },
2027
+ {
2028
+ name: "version",
2029
+ internalType: "uint256",
2030
+ type: "uint256"
2031
+ },
2032
+ {
2033
+ name: "contractType",
2034
+ internalType: "bytes32",
2035
+ type: "bytes32"
2036
+ },
2037
+ {
2038
+ name: "serializedParams",
2039
+ internalType: "bytes",
2040
+ type: "bytes"
2041
+ }
2042
+ ]
2043
+ }
2044
+ ]
2045
+ },
1670
2046
  {
1671
2047
  name: "adapters",
1672
2048
  internalType: "struct AdapterState[]",
@@ -1735,7 +2111,7 @@ const iMarketCompressorAbi = [
1735
2111
  name: "getMarketData",
1736
2112
  outputs: [
1737
2113
  {
1738
- name: "result",
2114
+ name: "",
1739
2115
  internalType: "struct MarketData",
1740
2116
  type: "tuple",
1741
2117
  components: [
@@ -1774,11 +2150,7 @@ const iMarketCompressorAbi = [
1774
2150
  { name: "name", internalType: "string", type: "string" },
1775
2151
  { name: "decimals", internalType: "uint8", type: "uint8" },
1776
2152
  { name: "totalSupply", internalType: "uint256", type: "uint256" },
1777
- {
1778
- name: "poolQuotaKeeper",
1779
- internalType: "address",
1780
- type: "address"
1781
- },
2153
+ { name: "quotaKeeper", internalType: "address", type: "address" },
1782
2154
  {
1783
2155
  name: "interestRateModel",
1784
2156
  internalType: "address",
@@ -1870,8 +2242,8 @@ const iMarketCompressorAbi = [
1870
2242
  ]
1871
2243
  },
1872
2244
  {
1873
- name: "poolQuotaKeeper",
1874
- internalType: "struct PoolQuotaKeeperState",
2245
+ name: "quotaKeeper",
2246
+ internalType: "struct QuotaKeeperState",
1875
2247
  type: "tuple",
1876
2248
  components: [
1877
2249
  {
@@ -1994,7 +2366,7 @@ const iMarketCompressorAbi = [
1994
2366
  ]
1995
2367
  },
1996
2368
  {
1997
- name: "priceOracleData",
2369
+ name: "priceOracle",
1998
2370
  internalType: "struct PriceOracleState",
1999
2371
  type: "tuple",
2000
2372
  components: [
@@ -2018,7 +2390,7 @@ const iMarketCompressorAbi = [
2018
2390
  ]
2019
2391
  },
2020
2392
  {
2021
- name: "priceFeedMapping",
2393
+ name: "priceFeedMap",
2022
2394
  internalType: "struct PriceFeedMapEntry[]",
2023
2395
  type: "tuple[]",
2024
2396
  components: [
@@ -2037,7 +2409,7 @@ const iMarketCompressorAbi = [
2037
2409
  ]
2038
2410
  },
2039
2411
  {
2040
- name: "priceFeedStructure",
2412
+ name: "priceFeedTree",
2041
2413
  internalType: "struct PriceFeedTreeNode[]",
2042
2414
  type: "tuple[]",
2043
2415
  components: [
@@ -2178,11 +2550,6 @@ const iMarketCompressorAbi = [
2178
2550
  }
2179
2551
  ]
2180
2552
  },
2181
- {
2182
- name: "creditManager",
2183
- internalType: "address",
2184
- type: "address"
2185
- },
2186
2553
  {
2187
2554
  name: "degenNFT",
2188
2555
  internalType: "address",
@@ -2203,7 +2570,7 @@ const iMarketCompressorAbi = [
2203
2570
  { name: "minDebt", internalType: "uint256", type: "uint256" },
2204
2571
  { name: "maxDebt", internalType: "uint256", type: "uint256" },
2205
2572
  {
2206
- name: "forbiddenTokenMask",
2573
+ name: "forbiddenTokensMask",
2207
2574
  internalType: "uint256",
2208
2575
  type: "uint256"
2209
2576
  },
@@ -2314,7 +2681,41 @@ const iMarketCompressorAbi = [
2314
2681
  ]
2315
2682
  },
2316
2683
  {
2317
- name: "creditConfigurator",
2684
+ name: "creditConfigurator",
2685
+ internalType: "struct BaseState",
2686
+ type: "tuple",
2687
+ components: [
2688
+ {
2689
+ name: "baseParams",
2690
+ internalType: "struct BaseParams",
2691
+ type: "tuple",
2692
+ components: [
2693
+ {
2694
+ name: "addr",
2695
+ internalType: "address",
2696
+ type: "address"
2697
+ },
2698
+ {
2699
+ name: "version",
2700
+ internalType: "uint256",
2701
+ type: "uint256"
2702
+ },
2703
+ {
2704
+ name: "contractType",
2705
+ internalType: "bytes32",
2706
+ type: "bytes32"
2707
+ },
2708
+ {
2709
+ name: "serializedParams",
2710
+ internalType: "bytes",
2711
+ type: "bytes"
2712
+ }
2713
+ ]
2714
+ }
2715
+ ]
2716
+ },
2717
+ {
2718
+ name: "accountFactory",
2318
2719
  internalType: "struct BaseState",
2319
2720
  type: "tuple",
2320
2721
  components: [
@@ -2430,7 +2831,7 @@ const iMarketCompressorAbi = [
2430
2831
  name: "getMarkets",
2431
2832
  outputs: [
2432
2833
  {
2433
- name: "result",
2834
+ name: "",
2434
2835
  internalType: "struct MarketData[]",
2435
2836
  type: "tuple[]",
2436
2837
  components: [
@@ -2469,11 +2870,7 @@ const iMarketCompressorAbi = [
2469
2870
  { name: "name", internalType: "string", type: "string" },
2470
2871
  { name: "decimals", internalType: "uint8", type: "uint8" },
2471
2872
  { name: "totalSupply", internalType: "uint256", type: "uint256" },
2472
- {
2473
- name: "poolQuotaKeeper",
2474
- internalType: "address",
2475
- type: "address"
2476
- },
2873
+ { name: "quotaKeeper", internalType: "address", type: "address" },
2477
2874
  {
2478
2875
  name: "interestRateModel",
2479
2876
  internalType: "address",
@@ -2565,8 +2962,8 @@ const iMarketCompressorAbi = [
2565
2962
  ]
2566
2963
  },
2567
2964
  {
2568
- name: "poolQuotaKeeper",
2569
- internalType: "struct PoolQuotaKeeperState",
2965
+ name: "quotaKeeper",
2966
+ internalType: "struct QuotaKeeperState",
2570
2967
  type: "tuple",
2571
2968
  components: [
2572
2969
  {
@@ -2689,7 +3086,7 @@ const iMarketCompressorAbi = [
2689
3086
  ]
2690
3087
  },
2691
3088
  {
2692
- name: "priceOracleData",
3089
+ name: "priceOracle",
2693
3090
  internalType: "struct PriceOracleState",
2694
3091
  type: "tuple",
2695
3092
  components: [
@@ -2713,7 +3110,7 @@ const iMarketCompressorAbi = [
2713
3110
  ]
2714
3111
  },
2715
3112
  {
2716
- name: "priceFeedMapping",
3113
+ name: "priceFeedMap",
2717
3114
  internalType: "struct PriceFeedMapEntry[]",
2718
3115
  type: "tuple[]",
2719
3116
  components: [
@@ -2732,7 +3129,7 @@ const iMarketCompressorAbi = [
2732
3129
  ]
2733
3130
  },
2734
3131
  {
2735
- name: "priceFeedStructure",
3132
+ name: "priceFeedTree",
2736
3133
  internalType: "struct PriceFeedTreeNode[]",
2737
3134
  type: "tuple[]",
2738
3135
  components: [
@@ -2873,11 +3270,6 @@ const iMarketCompressorAbi = [
2873
3270
  }
2874
3271
  ]
2875
3272
  },
2876
- {
2877
- name: "creditManager",
2878
- internalType: "address",
2879
- type: "address"
2880
- },
2881
3273
  {
2882
3274
  name: "degenNFT",
2883
3275
  internalType: "address",
@@ -2898,7 +3290,7 @@ const iMarketCompressorAbi = [
2898
3290
  { name: "minDebt", internalType: "uint256", type: "uint256" },
2899
3291
  { name: "maxDebt", internalType: "uint256", type: "uint256" },
2900
3292
  {
2901
- name: "forbiddenTokenMask",
3293
+ name: "forbiddenTokensMask",
2902
3294
  internalType: "uint256",
2903
3295
  type: "uint256"
2904
3296
  },
@@ -3042,6 +3434,40 @@ const iMarketCompressorAbi = [
3042
3434
  }
3043
3435
  ]
3044
3436
  },
3437
+ {
3438
+ name: "accountFactory",
3439
+ internalType: "struct BaseState",
3440
+ type: "tuple",
3441
+ components: [
3442
+ {
3443
+ name: "baseParams",
3444
+ internalType: "struct BaseParams",
3445
+ type: "tuple",
3446
+ components: [
3447
+ {
3448
+ name: "addr",
3449
+ internalType: "address",
3450
+ type: "address"
3451
+ },
3452
+ {
3453
+ name: "version",
3454
+ internalType: "uint256",
3455
+ type: "uint256"
3456
+ },
3457
+ {
3458
+ name: "contractType",
3459
+ internalType: "bytes32",
3460
+ type: "bytes32"
3461
+ },
3462
+ {
3463
+ name: "serializedParams",
3464
+ internalType: "bytes",
3465
+ type: "bytes"
3466
+ }
3467
+ ]
3468
+ }
3469
+ ]
3470
+ },
3045
3471
  {
3046
3472
  name: "adapters",
3047
3473
  internalType: "struct AdapterState[]",
@@ -3106,33 +3532,216 @@ const iMarketCompressorAbi = [
3106
3532
  },
3107
3533
  {
3108
3534
  type: "function",
3109
- inputs: [
3535
+ inputs: [{ name: "pool", internalType: "address", type: "address" }],
3536
+ name: "getPoolState",
3537
+ outputs: [
3110
3538
  {
3111
- name: "filter",
3112
- internalType: "struct MarketFilter",
3539
+ name: "",
3540
+ internalType: "struct PoolState",
3113
3541
  type: "tuple",
3114
3542
  components: [
3115
3543
  {
3116
- name: "configurators",
3544
+ name: "baseParams",
3545
+ internalType: "struct BaseParams",
3546
+ type: "tuple",
3547
+ components: [
3548
+ { name: "addr", internalType: "address", type: "address" },
3549
+ { name: "version", internalType: "uint256", type: "uint256" },
3550
+ {
3551
+ name: "contractType",
3552
+ internalType: "bytes32",
3553
+ type: "bytes32"
3554
+ },
3555
+ {
3556
+ name: "serializedParams",
3557
+ internalType: "bytes",
3558
+ type: "bytes"
3559
+ }
3560
+ ]
3561
+ },
3562
+ { name: "symbol", internalType: "string", type: "string" },
3563
+ { name: "name", internalType: "string", type: "string" },
3564
+ { name: "decimals", internalType: "uint8", type: "uint8" },
3565
+ { name: "totalSupply", internalType: "uint256", type: "uint256" },
3566
+ { name: "quotaKeeper", internalType: "address", type: "address" },
3567
+ {
3568
+ name: "interestRateModel",
3569
+ internalType: "address",
3570
+ type: "address"
3571
+ },
3572
+ { name: "underlying", internalType: "address", type: "address" },
3573
+ {
3574
+ name: "availableLiquidity",
3575
+ internalType: "uint256",
3576
+ type: "uint256"
3577
+ },
3578
+ {
3579
+ name: "expectedLiquidity",
3580
+ internalType: "uint256",
3581
+ type: "uint256"
3582
+ },
3583
+ {
3584
+ name: "baseInterestIndex",
3585
+ internalType: "uint256",
3586
+ type: "uint256"
3587
+ },
3588
+ {
3589
+ name: "baseInterestRate",
3590
+ internalType: "uint256",
3591
+ type: "uint256"
3592
+ },
3593
+ { name: "dieselRate", internalType: "uint256", type: "uint256" },
3594
+ { name: "supplyRate", internalType: "uint256", type: "uint256" },
3595
+ { name: "withdrawFee", internalType: "uint256", type: "uint256" },
3596
+ { name: "totalBorrowed", internalType: "uint256", type: "uint256" },
3597
+ { name: "totalDebtLimit", internalType: "uint256", type: "uint256" },
3598
+ {
3599
+ name: "creditManagerDebtParams",
3600
+ internalType: "struct CreditManagerDebtParams[]",
3601
+ type: "tuple[]",
3602
+ components: [
3603
+ {
3604
+ name: "creditManager",
3605
+ internalType: "address",
3606
+ type: "address"
3607
+ },
3608
+ { name: "borrowed", internalType: "uint256", type: "uint256" },
3609
+ { name: "limit", internalType: "uint256", type: "uint256" },
3610
+ { name: "available", internalType: "uint256", type: "uint256" }
3611
+ ]
3612
+ },
3613
+ {
3614
+ name: "baseInterestIndexLU",
3615
+ internalType: "uint256",
3616
+ type: "uint256"
3617
+ },
3618
+ {
3619
+ name: "expectedLiquidityLU",
3620
+ internalType: "uint256",
3621
+ type: "uint256"
3622
+ },
3623
+ { name: "quotaRevenue", internalType: "uint256", type: "uint256" },
3624
+ {
3625
+ name: "lastBaseInterestUpdate",
3626
+ internalType: "uint40",
3627
+ type: "uint40"
3628
+ },
3629
+ {
3630
+ name: "lastQuotaRevenueUpdate",
3631
+ internalType: "uint40",
3632
+ type: "uint40"
3633
+ },
3634
+ { name: "isPaused", internalType: "bool", type: "bool" }
3635
+ ]
3636
+ }
3637
+ ],
3638
+ stateMutability: "view"
3639
+ },
3640
+ {
3641
+ type: "function",
3642
+ inputs: [{ name: "quotaKeeper", internalType: "address", type: "address" }],
3643
+ name: "getQuotaKeeperState",
3644
+ outputs: [
3645
+ {
3646
+ name: "",
3647
+ internalType: "struct QuotaKeeperState",
3648
+ type: "tuple",
3649
+ components: [
3650
+ {
3651
+ name: "baseParams",
3652
+ internalType: "struct BaseParams",
3653
+ type: "tuple",
3654
+ components: [
3655
+ { name: "addr", internalType: "address", type: "address" },
3656
+ { name: "version", internalType: "uint256", type: "uint256" },
3657
+ {
3658
+ name: "contractType",
3659
+ internalType: "bytes32",
3660
+ type: "bytes32"
3661
+ },
3662
+ {
3663
+ name: "serializedParams",
3664
+ internalType: "bytes",
3665
+ type: "bytes"
3666
+ }
3667
+ ]
3668
+ },
3669
+ { name: "rateKeeper", internalType: "address", type: "address" },
3670
+ {
3671
+ name: "quotas",
3672
+ internalType: "struct QuotaTokenParams[]",
3673
+ type: "tuple[]",
3674
+ components: [
3675
+ { name: "token", internalType: "address", type: "address" },
3676
+ { name: "rate", internalType: "uint16", type: "uint16" },
3677
+ {
3678
+ name: "cumulativeIndexLU",
3679
+ internalType: "uint192",
3680
+ type: "uint192"
3681
+ },
3682
+ {
3683
+ name: "quotaIncreaseFee",
3684
+ internalType: "uint16",
3685
+ type: "uint16"
3686
+ },
3687
+ { name: "totalQuoted", internalType: "uint96", type: "uint96" },
3688
+ { name: "limit", internalType: "uint96", type: "uint96" },
3689
+ { name: "isActive", internalType: "bool", type: "bool" }
3690
+ ]
3691
+ },
3692
+ {
3693
+ name: "creditManagers",
3117
3694
  internalType: "address[]",
3118
3695
  type: "address[]"
3119
3696
  },
3120
- { name: "pools", internalType: "address[]", type: "address[]" },
3121
- { name: "underlying", internalType: "address", type: "address" }
3122
- ]
3123
- }
3124
- ],
3125
- name: "getUpdatablePriceFeeds",
3126
- outputs: [
3127
- {
3128
- name: "updatablePriceFeeds",
3129
- internalType: "struct BaseParams[]",
3130
- type: "tuple[]",
3131
- components: [
3132
- { name: "addr", internalType: "address", type: "address" },
3133
- { name: "version", internalType: "uint256", type: "uint256" },
3134
- { name: "contractType", internalType: "bytes32", type: "bytes32" },
3135
- { name: "serializedParams", internalType: "bytes", type: "bytes" }
3697
+ {
3698
+ name: "lastQuotaRateUpdate",
3699
+ internalType: "uint40",
3700
+ type: "uint40"
3701
+ }
3702
+ ]
3703
+ }
3704
+ ],
3705
+ stateMutability: "view"
3706
+ },
3707
+ {
3708
+ type: "function",
3709
+ inputs: [{ name: "rateKeeper", internalType: "address", type: "address" }],
3710
+ name: "getRateKeeperState",
3711
+ outputs: [
3712
+ {
3713
+ name: "",
3714
+ internalType: "struct RateKeeperState",
3715
+ type: "tuple",
3716
+ components: [
3717
+ {
3718
+ name: "baseParams",
3719
+ internalType: "struct BaseParams",
3720
+ type: "tuple",
3721
+ components: [
3722
+ { name: "addr", internalType: "address", type: "address" },
3723
+ { name: "version", internalType: "uint256", type: "uint256" },
3724
+ {
3725
+ name: "contractType",
3726
+ internalType: "bytes32",
3727
+ type: "bytes32"
3728
+ },
3729
+ {
3730
+ name: "serializedParams",
3731
+ internalType: "bytes",
3732
+ type: "bytes"
3733
+ }
3734
+ ]
3735
+ },
3736
+ {
3737
+ name: "rates",
3738
+ internalType: "struct Rate[]",
3739
+ type: "tuple[]",
3740
+ components: [
3741
+ { name: "token", internalType: "address", type: "address" },
3742
+ { name: "rate", internalType: "uint16", type: "uint16" }
3743
+ ]
3744
+ }
3136
3745
  ]
3137
3746
  }
3138
3747
  ],
@@ -3146,15 +3755,6 @@ const iMarketCompressorAbi = [
3146
3755
  stateMutability: "view"
3147
3756
  }
3148
3757
  ];
3149
- const iModifiedBoosterAbi = [
3150
- {
3151
- type: "function",
3152
- inputs: [{ name: "pool", internalType: "address", type: "address" }],
3153
- name: "getRewardMultipliers",
3154
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3155
- stateMutability: "view"
3156
- }
3157
- ];
3158
3758
  const iPeripheryCompressorAbi = [
3159
3759
  {
3160
3760
  type: "function",
@@ -3316,7 +3916,7 @@ const iPeripheryCompressorAbi = [
3316
3916
  stateMutability: "view"
3317
3917
  }
3318
3918
  ];
3319
- const iPoolCompressorAbi = [
3919
+ const iPriceFeedCompressorAbi = [
3320
3920
  {
3321
3921
  type: "function",
3322
3922
  inputs: [],
@@ -3326,48 +3926,12 @@ const iPoolCompressorAbi = [
3326
3926
  },
3327
3927
  {
3328
3928
  type: "function",
3329
- inputs: [
3330
- { name: "interestRateModel", internalType: "address", type: "address" }
3331
- ],
3332
- name: "getInterestRateModelState",
3333
- outputs: [
3334
- {
3335
- name: "",
3336
- internalType: "struct BaseState",
3337
- type: "tuple",
3338
- components: [
3339
- {
3340
- name: "baseParams",
3341
- internalType: "struct BaseParams",
3342
- type: "tuple",
3343
- components: [
3344
- { name: "addr", internalType: "address", type: "address" },
3345
- { name: "version", internalType: "uint256", type: "uint256" },
3346
- {
3347
- name: "contractType",
3348
- internalType: "bytes32",
3349
- type: "bytes32"
3350
- },
3351
- {
3352
- name: "serializedParams",
3353
- internalType: "bytes",
3354
- type: "bytes"
3355
- }
3356
- ]
3357
- }
3358
- ]
3359
- }
3360
- ],
3361
- stateMutability: "view"
3362
- },
3363
- {
3364
- type: "function",
3365
- inputs: [{ name: "lossPolicy", internalType: "address", type: "address" }],
3366
- name: "getLossPolicyState",
3929
+ inputs: [{ name: "priceOracle", internalType: "address", type: "address" }],
3930
+ name: "getPriceOracleState",
3367
3931
  outputs: [
3368
3932
  {
3369
3933
  name: "",
3370
- internalType: "struct BaseState",
3934
+ internalType: "struct PriceOracleState",
3371
3935
  type: "tuple",
3372
3936
  components: [
3373
3937
  {
@@ -3388,181 +3952,76 @@ const iPoolCompressorAbi = [
3388
3952
  type: "bytes"
3389
3953
  }
3390
3954
  ]
3391
- }
3392
- ]
3393
- }
3394
- ],
3395
- stateMutability: "view"
3396
- },
3397
- {
3398
- type: "function",
3399
- inputs: [{ name: "quotaKeeper", internalType: "address", type: "address" }],
3400
- name: "getPoolQuotaKeeperState",
3401
- outputs: [
3402
- {
3403
- name: "",
3404
- internalType: "struct PoolQuotaKeeperState",
3405
- type: "tuple",
3406
- components: [
3955
+ },
3407
3956
  {
3408
- name: "baseParams",
3409
- internalType: "struct BaseParams",
3410
- type: "tuple",
3957
+ name: "priceFeedMap",
3958
+ internalType: "struct PriceFeedMapEntry[]",
3959
+ type: "tuple[]",
3411
3960
  components: [
3412
- { name: "addr", internalType: "address", type: "address" },
3413
- { name: "version", internalType: "uint256", type: "uint256" },
3414
- {
3415
- name: "contractType",
3416
- internalType: "bytes32",
3417
- type: "bytes32"
3418
- },
3961
+ { name: "token", internalType: "address", type: "address" },
3962
+ { name: "reserve", internalType: "bool", type: "bool" },
3963
+ { name: "priceFeed", internalType: "address", type: "address" },
3419
3964
  {
3420
- name: "serializedParams",
3421
- internalType: "bytes",
3422
- type: "bytes"
3965
+ name: "stalenessPeriod",
3966
+ internalType: "uint32",
3967
+ type: "uint32"
3423
3968
  }
3424
3969
  ]
3425
3970
  },
3426
- { name: "rateKeeper", internalType: "address", type: "address" },
3427
3971
  {
3428
- name: "quotas",
3429
- internalType: "struct QuotaTokenParams[]",
3972
+ name: "priceFeedTree",
3973
+ internalType: "struct PriceFeedTreeNode[]",
3430
3974
  type: "tuple[]",
3431
3975
  components: [
3432
- { name: "token", internalType: "address", type: "address" },
3433
- { name: "rate", internalType: "uint16", type: "uint16" },
3434
3976
  {
3435
- name: "cumulativeIndexLU",
3436
- internalType: "uint192",
3437
- type: "uint192"
3977
+ name: "baseParams",
3978
+ internalType: "struct BaseParams",
3979
+ type: "tuple",
3980
+ components: [
3981
+ { name: "addr", internalType: "address", type: "address" },
3982
+ { name: "version", internalType: "uint256", type: "uint256" },
3983
+ {
3984
+ name: "contractType",
3985
+ internalType: "bytes32",
3986
+ type: "bytes32"
3987
+ },
3988
+ {
3989
+ name: "serializedParams",
3990
+ internalType: "bytes",
3991
+ type: "bytes"
3992
+ }
3993
+ ]
3438
3994
  },
3995
+ { name: "description", internalType: "string", type: "string" },
3996
+ { name: "decimals", internalType: "uint8", type: "uint8" },
3997
+ { name: "skipCheck", internalType: "bool", type: "bool" },
3998
+ { name: "updatable", internalType: "bool", type: "bool" },
3439
3999
  {
3440
- name: "quotaIncreaseFee",
3441
- internalType: "uint16",
3442
- type: "uint16"
4000
+ name: "underlyingFeeds",
4001
+ internalType: "address[]",
4002
+ type: "address[]"
3443
4003
  },
3444
- { name: "totalQuoted", internalType: "uint96", type: "uint96" },
3445
- { name: "limit", internalType: "uint96", type: "uint96" },
3446
- { name: "isActive", internalType: "bool", type: "bool" }
3447
- ]
3448
- },
3449
- {
3450
- name: "creditManagers",
3451
- internalType: "address[]",
3452
- type: "address[]"
3453
- },
3454
- {
3455
- name: "lastQuotaRateUpdate",
3456
- internalType: "uint40",
3457
- type: "uint40"
3458
- }
3459
- ]
3460
- }
3461
- ],
3462
- stateMutability: "view"
3463
- },
3464
- {
3465
- type: "function",
3466
- inputs: [{ name: "pool", internalType: "address", type: "address" }],
3467
- name: "getPoolState",
3468
- outputs: [
3469
- {
3470
- name: "",
3471
- internalType: "struct PoolState",
3472
- type: "tuple",
3473
- components: [
3474
- {
3475
- name: "baseParams",
3476
- internalType: "struct BaseParams",
3477
- type: "tuple",
3478
- components: [
3479
- { name: "addr", internalType: "address", type: "address" },
3480
- { name: "version", internalType: "uint256", type: "uint256" },
3481
4004
  {
3482
- name: "contractType",
3483
- internalType: "bytes32",
3484
- type: "bytes32"
4005
+ name: "underlyingStalenessPeriods",
4006
+ internalType: "uint32[]",
4007
+ type: "uint32[]"
3485
4008
  },
3486
4009
  {
3487
- name: "serializedParams",
3488
- internalType: "bytes",
3489
- type: "bytes"
3490
- }
3491
- ]
3492
- },
3493
- { name: "symbol", internalType: "string", type: "string" },
3494
- { name: "name", internalType: "string", type: "string" },
3495
- { name: "decimals", internalType: "uint8", type: "uint8" },
3496
- { name: "totalSupply", internalType: "uint256", type: "uint256" },
3497
- { name: "poolQuotaKeeper", internalType: "address", type: "address" },
3498
- {
3499
- name: "interestRateModel",
3500
- internalType: "address",
3501
- type: "address"
3502
- },
3503
- { name: "underlying", internalType: "address", type: "address" },
3504
- {
3505
- name: "availableLiquidity",
3506
- internalType: "uint256",
3507
- type: "uint256"
3508
- },
3509
- {
3510
- name: "expectedLiquidity",
3511
- internalType: "uint256",
3512
- type: "uint256"
3513
- },
3514
- {
3515
- name: "baseInterestIndex",
3516
- internalType: "uint256",
3517
- type: "uint256"
3518
- },
3519
- {
3520
- name: "baseInterestRate",
3521
- internalType: "uint256",
3522
- type: "uint256"
3523
- },
3524
- { name: "dieselRate", internalType: "uint256", type: "uint256" },
3525
- { name: "supplyRate", internalType: "uint256", type: "uint256" },
3526
- { name: "withdrawFee", internalType: "uint256", type: "uint256" },
3527
- { name: "totalBorrowed", internalType: "uint256", type: "uint256" },
3528
- { name: "totalDebtLimit", internalType: "uint256", type: "uint256" },
3529
- {
3530
- name: "creditManagerDebtParams",
3531
- internalType: "struct CreditManagerDebtParams[]",
3532
- type: "tuple[]",
3533
- components: [
3534
- {
3535
- name: "creditManager",
3536
- internalType: "address",
3537
- type: "address"
3538
- },
3539
- { name: "borrowed", internalType: "uint256", type: "uint256" },
3540
- { name: "limit", internalType: "uint256", type: "uint256" },
3541
- { name: "available", internalType: "uint256", type: "uint256" }
3542
- ]
3543
- },
3544
- {
3545
- name: "baseInterestIndexLU",
3546
- internalType: "uint256",
3547
- type: "uint256"
3548
- },
3549
- {
3550
- name: "expectedLiquidityLU",
3551
- internalType: "uint256",
3552
- type: "uint256"
3553
- },
3554
- { name: "quotaRevenue", internalType: "uint256", type: "uint256" },
3555
- {
3556
- name: "lastBaseInterestUpdate",
3557
- internalType: "uint40",
3558
- type: "uint40"
3559
- },
3560
- {
3561
- name: "lastQuotaRevenueUpdate",
3562
- internalType: "uint40",
3563
- type: "uint40"
3564
- },
3565
- { name: "isPaused", internalType: "bool", type: "bool" }
4010
+ name: "answer",
4011
+ internalType: "struct PriceFeedAnswer",
4012
+ type: "tuple",
4013
+ components: [
4014
+ { name: "price", internalType: "int256", type: "int256" },
4015
+ {
4016
+ name: "updatedAt",
4017
+ internalType: "uint256",
4018
+ type: "uint256"
4019
+ },
4020
+ { name: "success", internalType: "bool", type: "bool" }
4021
+ ]
4022
+ }
4023
+ ]
4024
+ }
3566
4025
  ]
3567
4026
  }
3568
4027
  ],
@@ -3570,12 +4029,15 @@ const iPoolCompressorAbi = [
3570
4029
  },
3571
4030
  {
3572
4031
  type: "function",
3573
- inputs: [{ name: "rateKeeper", internalType: "address", type: "address" }],
3574
- name: "getRateKeeperState",
4032
+ inputs: [
4033
+ { name: "priceOracle", internalType: "address", type: "address" },
4034
+ { name: "tokens", internalType: "address[]", type: "address[]" }
4035
+ ],
4036
+ name: "getPriceOracleState",
3575
4037
  outputs: [
3576
4038
  {
3577
4039
  name: "",
3578
- internalType: "struct RateKeeperState",
4040
+ internalType: "struct PriceOracleState",
3579
4041
  type: "tuple",
3580
4042
  components: [
3581
4043
  {
@@ -3598,12 +4060,72 @@ const iPoolCompressorAbi = [
3598
4060
  ]
3599
4061
  },
3600
4062
  {
3601
- name: "rates",
3602
- internalType: "struct Rate[]",
4063
+ name: "priceFeedMap",
4064
+ internalType: "struct PriceFeedMapEntry[]",
3603
4065
  type: "tuple[]",
3604
4066
  components: [
3605
4067
  { name: "token", internalType: "address", type: "address" },
3606
- { name: "rate", internalType: "uint16", type: "uint16" }
4068
+ { name: "reserve", internalType: "bool", type: "bool" },
4069
+ { name: "priceFeed", internalType: "address", type: "address" },
4070
+ {
4071
+ name: "stalenessPeriod",
4072
+ internalType: "uint32",
4073
+ type: "uint32"
4074
+ }
4075
+ ]
4076
+ },
4077
+ {
4078
+ name: "priceFeedTree",
4079
+ internalType: "struct PriceFeedTreeNode[]",
4080
+ type: "tuple[]",
4081
+ components: [
4082
+ {
4083
+ name: "baseParams",
4084
+ internalType: "struct BaseParams",
4085
+ type: "tuple",
4086
+ components: [
4087
+ { name: "addr", internalType: "address", type: "address" },
4088
+ { name: "version", internalType: "uint256", type: "uint256" },
4089
+ {
4090
+ name: "contractType",
4091
+ internalType: "bytes32",
4092
+ type: "bytes32"
4093
+ },
4094
+ {
4095
+ name: "serializedParams",
4096
+ internalType: "bytes",
4097
+ type: "bytes"
4098
+ }
4099
+ ]
4100
+ },
4101
+ { name: "description", internalType: "string", type: "string" },
4102
+ { name: "decimals", internalType: "uint8", type: "uint8" },
4103
+ { name: "skipCheck", internalType: "bool", type: "bool" },
4104
+ { name: "updatable", internalType: "bool", type: "bool" },
4105
+ {
4106
+ name: "underlyingFeeds",
4107
+ internalType: "address[]",
4108
+ type: "address[]"
4109
+ },
4110
+ {
4111
+ name: "underlyingStalenessPeriods",
4112
+ internalType: "uint32[]",
4113
+ type: "uint32[]"
4114
+ },
4115
+ {
4116
+ name: "answer",
4117
+ internalType: "struct PriceFeedAnswer",
4118
+ type: "tuple",
4119
+ components: [
4120
+ { name: "price", internalType: "int256", type: "int256" },
4121
+ {
4122
+ name: "updatedAt",
4123
+ internalType: "uint256",
4124
+ type: "uint256"
4125
+ },
4126
+ { name: "success", internalType: "bool", type: "bool" }
4127
+ ]
4128
+ }
3607
4129
  ]
3608
4130
  }
3609
4131
  ]
@@ -3611,44 +4133,29 @@ const iPoolCompressorAbi = [
3611
4133
  ],
3612
4134
  stateMutability: "view"
3613
4135
  },
3614
- {
3615
- type: "function",
3616
- inputs: [],
3617
- name: "version",
3618
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3619
- stateMutability: "view"
3620
- }
3621
- ];
3622
- const iPriceFeedCompressorAbi = [
3623
- {
3624
- type: "function",
3625
- inputs: [],
3626
- name: "contractType",
3627
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
3628
- stateMutability: "view"
3629
- },
3630
4136
  {
3631
4137
  type: "function",
3632
4138
  inputs: [
3633
- { name: "priceOracle", internalType: "address", type: "address" },
3634
- { name: "tokens", internalType: "address[]", type: "address[]" }
3635
- ],
3636
- name: "getPriceFeeds",
3637
- outputs: [
3638
4139
  {
3639
- name: "priceFeedMap",
3640
- internalType: "struct PriceFeedMapEntry[]",
3641
- type: "tuple[]",
4140
+ name: "filter",
4141
+ internalType: "struct MarketFilter",
4142
+ type: "tuple",
3642
4143
  components: [
3643
- { name: "token", internalType: "address", type: "address" },
3644
- { name: "reserve", internalType: "bool", type: "bool" },
3645
- { name: "priceFeed", internalType: "address", type: "address" },
3646
- { name: "stalenessPeriod", internalType: "uint32", type: "uint32" }
4144
+ {
4145
+ name: "configurators",
4146
+ internalType: "address[]",
4147
+ type: "address[]"
4148
+ },
4149
+ { name: "pools", internalType: "address[]", type: "address[]" },
4150
+ { name: "underlying", internalType: "address", type: "address" }
3647
4151
  ]
3648
- },
4152
+ }
4153
+ ],
4154
+ name: "getPriceOracles",
4155
+ outputs: [
3649
4156
  {
3650
- name: "priceFeedTree",
3651
- internalType: "struct PriceFeedTreeNode[]",
4157
+ name: "",
4158
+ internalType: "struct PriceOracleState[]",
3652
4159
  type: "tuple[]",
3653
4160
  components: [
3654
4161
  {
@@ -3670,28 +4177,73 @@ const iPriceFeedCompressorAbi = [
3670
4177
  }
3671
4178
  ]
3672
4179
  },
3673
- { name: "description", internalType: "string", type: "string" },
3674
- { name: "decimals", internalType: "uint8", type: "uint8" },
3675
- { name: "skipCheck", internalType: "bool", type: "bool" },
3676
- { name: "updatable", internalType: "bool", type: "bool" },
3677
- {
3678
- name: "underlyingFeeds",
3679
- internalType: "address[]",
3680
- type: "address[]"
3681
- },
3682
4180
  {
3683
- name: "underlyingStalenessPeriods",
3684
- internalType: "uint32[]",
3685
- type: "uint32[]"
4181
+ name: "priceFeedMap",
4182
+ internalType: "struct PriceFeedMapEntry[]",
4183
+ type: "tuple[]",
4184
+ components: [
4185
+ { name: "token", internalType: "address", type: "address" },
4186
+ { name: "reserve", internalType: "bool", type: "bool" },
4187
+ { name: "priceFeed", internalType: "address", type: "address" },
4188
+ {
4189
+ name: "stalenessPeriod",
4190
+ internalType: "uint32",
4191
+ type: "uint32"
4192
+ }
4193
+ ]
3686
4194
  },
3687
4195
  {
3688
- name: "answer",
3689
- internalType: "struct PriceFeedAnswer",
3690
- type: "tuple",
4196
+ name: "priceFeedTree",
4197
+ internalType: "struct PriceFeedTreeNode[]",
4198
+ type: "tuple[]",
3691
4199
  components: [
3692
- { name: "price", internalType: "int256", type: "int256" },
3693
- { name: "updatedAt", internalType: "uint256", type: "uint256" },
3694
- { name: "success", internalType: "bool", type: "bool" }
4200
+ {
4201
+ name: "baseParams",
4202
+ internalType: "struct BaseParams",
4203
+ type: "tuple",
4204
+ components: [
4205
+ { name: "addr", internalType: "address", type: "address" },
4206
+ { name: "version", internalType: "uint256", type: "uint256" },
4207
+ {
4208
+ name: "contractType",
4209
+ internalType: "bytes32",
4210
+ type: "bytes32"
4211
+ },
4212
+ {
4213
+ name: "serializedParams",
4214
+ internalType: "bytes",
4215
+ type: "bytes"
4216
+ }
4217
+ ]
4218
+ },
4219
+ { name: "description", internalType: "string", type: "string" },
4220
+ { name: "decimals", internalType: "uint8", type: "uint8" },
4221
+ { name: "skipCheck", internalType: "bool", type: "bool" },
4222
+ { name: "updatable", internalType: "bool", type: "bool" },
4223
+ {
4224
+ name: "underlyingFeeds",
4225
+ internalType: "address[]",
4226
+ type: "address[]"
4227
+ },
4228
+ {
4229
+ name: "underlyingStalenessPeriods",
4230
+ internalType: "uint32[]",
4231
+ type: "uint32[]"
4232
+ },
4233
+ {
4234
+ name: "answer",
4235
+ internalType: "struct PriceFeedAnswer",
4236
+ type: "tuple",
4237
+ components: [
4238
+ { name: "price", internalType: "int256", type: "int256" },
4239
+ {
4240
+ name: "updatedAt",
4241
+ internalType: "uint256",
4242
+ type: "uint256"
4243
+ },
4244
+ { name: "success", internalType: "bool", type: "bool" }
4245
+ ]
4246
+ }
3695
4247
  ]
3696
4248
  }
3697
4249
  ]
@@ -3701,22 +4253,81 @@ const iPriceFeedCompressorAbi = [
3701
4253
  },
3702
4254
  {
3703
4255
  type: "function",
3704
- inputs: [{ name: "priceOracle", internalType: "address", type: "address" }],
3705
- name: "getPriceFeeds",
4256
+ inputs: [
4257
+ { name: "priceFeeds", internalType: "address[]", type: "address[]" }
4258
+ ],
4259
+ name: "getUpdatablePriceFeeds",
3706
4260
  outputs: [
3707
4261
  {
3708
- name: "priceFeedMap",
3709
- internalType: "struct PriceFeedMapEntry[]",
4262
+ name: "",
4263
+ internalType: "struct BaseParams[]",
3710
4264
  type: "tuple[]",
3711
4265
  components: [
3712
- { name: "token", internalType: "address", type: "address" },
3713
- { name: "reserve", internalType: "bool", type: "bool" },
3714
- { name: "priceFeed", internalType: "address", type: "address" },
3715
- { name: "stalenessPeriod", internalType: "uint32", type: "uint32" }
4266
+ { name: "addr", internalType: "address", type: "address" },
4267
+ { name: "version", internalType: "uint256", type: "uint256" },
4268
+ { name: "contractType", internalType: "bytes32", type: "bytes32" },
4269
+ { name: "serializedParams", internalType: "bytes", type: "bytes" }
3716
4270
  ]
3717
- },
4271
+ }
4272
+ ],
4273
+ stateMutability: "view"
4274
+ },
4275
+ {
4276
+ type: "function",
4277
+ inputs: [
4278
+ {
4279
+ name: "filter",
4280
+ internalType: "struct MarketFilter",
4281
+ type: "tuple",
4282
+ components: [
4283
+ {
4284
+ name: "configurators",
4285
+ internalType: "address[]",
4286
+ type: "address[]"
4287
+ },
4288
+ { name: "pools", internalType: "address[]", type: "address[]" },
4289
+ { name: "underlying", internalType: "address", type: "address" }
4290
+ ]
4291
+ }
4292
+ ],
4293
+ name: "getUpdatablePriceFeeds",
4294
+ outputs: [
4295
+ {
4296
+ name: "",
4297
+ internalType: "struct BaseParams[]",
4298
+ type: "tuple[]",
4299
+ components: [
4300
+ { name: "addr", internalType: "address", type: "address" },
4301
+ { name: "version", internalType: "uint256", type: "uint256" },
4302
+ { name: "contractType", internalType: "bytes32", type: "bytes32" },
4303
+ { name: "serializedParams", internalType: "bytes", type: "bytes" }
4304
+ ]
4305
+ }
4306
+ ],
4307
+ stateMutability: "view"
4308
+ },
4309
+ {
4310
+ type: "function",
4311
+ inputs: [
4312
+ {
4313
+ name: "filter",
4314
+ internalType: "struct MarketFilter",
4315
+ type: "tuple",
4316
+ components: [
4317
+ {
4318
+ name: "configurators",
4319
+ internalType: "address[]",
4320
+ type: "address[]"
4321
+ },
4322
+ { name: "pools", internalType: "address[]", type: "address[]" },
4323
+ { name: "underlying", internalType: "address", type: "address" }
4324
+ ]
4325
+ }
4326
+ ],
4327
+ name: "loadPriceFeedTree",
4328
+ outputs: [
3718
4329
  {
3719
- name: "priceFeedTree",
4330
+ name: "",
3720
4331
  internalType: "struct PriceFeedTreeNode[]",
3721
4332
  type: "tuple[]",
3722
4333
  components: [
@@ -3776,7 +4387,7 @@ const iPriceFeedCompressorAbi = [
3776
4387
  name: "loadPriceFeedTree",
3777
4388
  outputs: [
3778
4389
  {
3779
- name: "priceFeedTree",
4390
+ name: "",
3780
4391
  internalType: "struct PriceFeedTreeNode[]",
3781
4392
  type: "tuple[]",
3782
4393
  components: [
@@ -3834,25 +4445,6 @@ const iPriceFeedCompressorAbi = [
3834
4445
  name: "version",
3835
4446
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3836
4447
  stateMutability: "view"
3837
- },
3838
- {
3839
- type: "event",
3840
- anonymous: false,
3841
- inputs: [
3842
- {
3843
- name: "contractType",
3844
- internalType: "bytes32",
3845
- type: "bytes32",
3846
- indexed: true
3847
- },
3848
- {
3849
- name: "serializer",
3850
- internalType: "address",
3851
- type: "address",
3852
- indexed: true
3853
- }
3854
- ],
3855
- name: "SetSerializer"
3856
4448
  }
3857
4449
  ];
3858
4450
  const iRewardsCompressorAbi = [
@@ -3910,7 +4502,7 @@ const iTokenCompressorAbi = [
3910
4502
  name: "getTokenInfo",
3911
4503
  outputs: [
3912
4504
  {
3913
- name: "result",
4505
+ name: "",
3914
4506
  internalType: "struct TokenData",
3915
4507
  type: "tuple",
3916
4508
  components: [
@@ -3923,6 +4515,25 @@ const iTokenCompressorAbi = [
3923
4515
  ],
3924
4516
  stateMutability: "view"
3925
4517
  },
4518
+ {
4519
+ type: "function",
4520
+ inputs: [{ name: "tokens", internalType: "address[]", type: "address[]" }],
4521
+ name: "getTokens",
4522
+ outputs: [
4523
+ {
4524
+ name: "",
4525
+ internalType: "struct TokenData[]",
4526
+ type: "tuple[]",
4527
+ components: [
4528
+ { name: "addr", internalType: "address", type: "address" },
4529
+ { name: "symbol", internalType: "string", type: "string" },
4530
+ { name: "name", internalType: "string", type: "string" },
4531
+ { name: "decimals", internalType: "uint8", type: "uint8" }
4532
+ ]
4533
+ }
4534
+ ],
4535
+ stateMutability: "view"
4536
+ },
3926
4537
  {
3927
4538
  type: "function",
3928
4539
  inputs: [],
@@ -3933,16 +4544,11 @@ const iTokenCompressorAbi = [
3933
4544
  ];
3934
4545
  // Annotate the CommonJS export names for ESM import in node:
3935
4546
  0 && (module.exports = {
3936
- iAdapterCompressorAbi,
3937
- iAuraL2CoordinatorAbi,
3938
- iConvexTokenAbi,
3939
4547
  iCreditAccountCompressorAbi,
3940
4548
  iCreditSuiteCompressorAbi,
3941
4549
  iGaugeCompressorAbi,
3942
4550
  iMarketCompressorAbi,
3943
- iModifiedBoosterAbi,
3944
4551
  iPeripheryCompressorAbi,
3945
- iPoolCompressorAbi,
3946
4552
  iPriceFeedCompressorAbi,
3947
4553
  iRewardsCompressorAbi,
3948
4554
  iTokenCompressorAbi