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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/cjs/abi/compressors.js +527 -1133
  2. package/dist/cjs/adapters/abi/adapters.js +0 -123
  3. package/dist/cjs/adapters/abi/iBalancerV3RouterAdapter.js +153 -0
  4. package/dist/cjs/adapters/abi/index.js +3 -1
  5. package/dist/cjs/dev/setLTZero.js +0 -7
  6. package/dist/cjs/sdk/accounts/CreditAccountsService.js +30 -45
  7. package/dist/cjs/sdk/chain/chains.js +14 -2
  8. package/dist/cjs/sdk/constants/address-provider.js +18 -11
  9. package/dist/cjs/sdk/constants/addresses.js +8 -4
  10. package/dist/cjs/sdk/constants/networks.js +11 -4
  11. package/dist/cjs/sdk/market/MarketSuite.js +1 -1
  12. package/dist/cjs/sdk/market/credit/CreditFacadeV300Contract.js +5 -1
  13. package/dist/cjs/sdk/market/credit/CreditFacadeV310Contract.js +5 -1
  14. package/dist/cjs/sdk/market/oracle/PriceOracleBaseContract.js +5 -6
  15. package/dist/cjs/sdk/market/pool/PoolSuite.js +1 -1
  16. package/dist/cjs/sdk/market/pricefeeds/PriceFeedsRegister.js +4 -4
  17. package/dist/cjs/sdk/router/RouterV300Contract.js +2 -1
  18. package/dist/cjs/sdk/sdk-gov-legacy/contracts/contracts.js +74 -37
  19. package/dist/cjs/sdk/sdk-gov-legacy/tokens/quoted.js +2 -1
  20. package/dist/cjs/sdk/sdk-gov-legacy/tokens/token.js +4 -2
  21. package/dist/cjs/sdk/sdk-gov-legacy/tokens/tokenData.js +2 -1
  22. package/dist/cjs/sdk/sdk-legacy/core/creditAccount.js +1 -3
  23. package/dist/cjs/sdk/sdk-legacy/core/endpoint.js +2 -1
  24. package/dist/esm/abi/compressors.js +522 -1133
  25. package/dist/esm/adapters/abi/adapters.js +0 -120
  26. package/dist/esm/adapters/abi/iBalancerV3RouterAdapter.js +129 -0
  27. package/dist/esm/adapters/abi/index.js +1 -0
  28. package/dist/esm/dev/setLTZero.js +0 -7
  29. package/dist/esm/sdk/accounts/CreditAccountsService.js +30 -45
  30. package/dist/esm/sdk/chain/chains.js +16 -3
  31. package/dist/esm/sdk/constants/address-provider.js +16 -11
  32. package/dist/esm/sdk/constants/addresses.js +8 -4
  33. package/dist/esm/sdk/constants/networks.js +11 -4
  34. package/dist/esm/sdk/market/MarketSuite.js +1 -1
  35. package/dist/esm/sdk/market/credit/CreditFacadeV300Contract.js +5 -1
  36. package/dist/esm/sdk/market/credit/CreditFacadeV310Contract.js +5 -1
  37. package/dist/esm/sdk/market/oracle/PriceOracleBaseContract.js +5 -6
  38. package/dist/esm/sdk/market/pool/PoolSuite.js +1 -1
  39. package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +6 -9
  40. package/dist/esm/sdk/router/RouterV300Contract.js +2 -1
  41. package/dist/esm/sdk/sdk-gov-legacy/contracts/contracts.js +74 -37
  42. package/dist/esm/sdk/sdk-gov-legacy/tokens/quoted.js +2 -1
  43. package/dist/esm/sdk/sdk-gov-legacy/tokens/token.js +4 -2
  44. package/dist/esm/sdk/sdk-gov-legacy/tokens/tokenData.js +2 -1
  45. package/dist/esm/sdk/sdk-legacy/core/creditAccount.js +1 -3
  46. package/dist/esm/sdk/sdk-legacy/core/endpoint.js +2 -1
  47. package/dist/types/abi/compressors.d.ts +1106 -1734
  48. package/dist/types/adapters/BalancerV3RouterAdapterContract.d.ts +104 -62
  49. package/dist/types/adapters/abi/adapters.d.ts +0 -213
  50. package/dist/types/adapters/abi/iBalancerV3RouterAdapter.d.ts +230 -0
  51. package/dist/types/adapters/abi/index.d.ts +1 -0
  52. package/dist/types/sdk/accounts/CreditAccountsService.d.ts +3 -3
  53. package/dist/types/sdk/accounts/types.d.ts +2 -15
  54. package/dist/types/sdk/base/types.d.ts +6 -6
  55. package/dist/types/sdk/chain/chains.d.ts +2 -2
  56. package/dist/types/sdk/constants/address-provider.d.ts +12 -10
  57. package/dist/types/sdk/market/oracle/PriceOracleBaseContract.d.ts +85 -425
  58. package/dist/types/sdk/market/pool/PoolQuotaKeeperV300Contract.d.ts +2 -2
  59. package/dist/types/sdk/market/pool/PoolQuotaKeeperV310Contract.d.ts +2 -2
  60. package/dist/types/sdk/market/pool/createPoolQuotaKeeper.d.ts +2 -2
  61. package/dist/types/sdk/types/state-human.d.ts +3 -1
  62. package/package.json +1 -1
  63. package/dist/cjs/sdk/accounts/utils.js +0 -38
  64. package/dist/esm/sdk/accounts/utils.js +0 -14
  65. package/dist/types/sdk/accounts/utils.d.ts +0 -2
@@ -1,3 +1,109 @@
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
+ ];
1
107
  const iCreditAccountCompressorAbi = [
2
108
  {
3
109
  type: "function",
@@ -17,8 +123,8 @@ const iCreditAccountCompressorAbi = [
17
123
  components: [
18
124
  { name: "owner", internalType: "address", type: "address" },
19
125
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
20
- { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
21
- { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
126
+ { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
127
+ { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
22
128
  { name: "reverting", internalType: "bool", type: "bool" }
23
129
  ]
24
130
  }
@@ -32,7 +138,7 @@ const iCreditAccountCompressorAbi = [
32
138
  inputs: [
33
139
  {
34
140
  name: "cmFilter",
35
- internalType: "struct CreditManagerFilter",
141
+ internalType: "struct MarketFilter",
36
142
  type: "tuple",
37
143
  components: [
38
144
  {
@@ -40,11 +146,6 @@ const iCreditAccountCompressorAbi = [
40
146
  internalType: "address[]",
41
147
  type: "address[]"
42
148
  },
43
- {
44
- name: "creditManagers",
45
- internalType: "address[]",
46
- type: "address[]"
47
- },
48
149
  { name: "pools", internalType: "address[]", type: "address[]" },
49
150
  { name: "underlying", internalType: "address", type: "address" }
50
151
  ]
@@ -56,8 +157,8 @@ const iCreditAccountCompressorAbi = [
56
157
  components: [
57
158
  { name: "owner", internalType: "address", type: "address" },
58
159
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
59
- { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
60
- { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
160
+ { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
161
+ { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
61
162
  { name: "reverting", internalType: "bool", type: "bool" }
62
163
  ]
63
164
  }
@@ -96,7 +197,7 @@ const iCreditAccountCompressorAbi = [
96
197
  { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
97
198
  { name: "twvUSD", internalType: "uint256", type: "uint256" },
98
199
  { name: "totalValue", internalType: "uint256", type: "uint256" },
99
- { name: "healthFactor", internalType: "uint256", type: "uint256" },
200
+ { name: "healthFactor", internalType: "uint16", type: "uint16" },
100
201
  { name: "success", internalType: "bool", type: "bool" },
101
202
  {
102
203
  name: "tokens",
@@ -120,7 +221,7 @@ const iCreditAccountCompressorAbi = [
120
221
  inputs: [
121
222
  {
122
223
  name: "cmFilter",
123
- internalType: "struct CreditManagerFilter",
224
+ internalType: "struct MarketFilter",
124
225
  type: "tuple",
125
226
  components: [
126
227
  {
@@ -128,11 +229,6 @@ const iCreditAccountCompressorAbi = [
128
229
  internalType: "address[]",
129
230
  type: "address[]"
130
231
  },
131
- {
132
- name: "creditManagers",
133
- internalType: "address[]",
134
- type: "address[]"
135
- },
136
232
  { name: "pools", internalType: "address[]", type: "address[]" },
137
233
  { name: "underlying", internalType: "address", type: "address" }
138
234
  ]
@@ -144,13 +240,12 @@ const iCreditAccountCompressorAbi = [
144
240
  components: [
145
241
  { name: "owner", internalType: "address", type: "address" },
146
242
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
147
- { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
148
- { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
243
+ { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
244
+ { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
149
245
  { name: "reverting", internalType: "bool", type: "bool" }
150
246
  ]
151
247
  },
152
- { name: "offset", internalType: "uint256", type: "uint256" },
153
- { name: "limit", internalType: "uint256", type: "uint256" }
248
+ { name: "offset", internalType: "uint256", type: "uint256" }
154
249
  ],
155
250
  name: "getCreditAccounts",
156
251
  outputs: [
@@ -177,7 +272,7 @@ const iCreditAccountCompressorAbi = [
177
272
  { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
178
273
  { name: "twvUSD", internalType: "uint256", type: "uint256" },
179
274
  { name: "totalValue", internalType: "uint256", type: "uint256" },
180
- { name: "healthFactor", internalType: "uint256", type: "uint256" },
275
+ { name: "healthFactor", internalType: "uint16", type: "uint16" },
181
276
  { name: "success", internalType: "bool", type: "bool" },
182
277
  {
183
278
  name: "tokens",
@@ -208,8 +303,8 @@ const iCreditAccountCompressorAbi = [
208
303
  components: [
209
304
  { name: "owner", internalType: "address", type: "address" },
210
305
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
211
- { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
212
- { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
306
+ { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
307
+ { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
213
308
  { name: "reverting", internalType: "bool", type: "bool" }
214
309
  ]
215
310
  },
@@ -240,7 +335,7 @@ const iCreditAccountCompressorAbi = [
240
335
  { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
241
336
  { name: "twvUSD", internalType: "uint256", type: "uint256" },
242
337
  { name: "totalValue", internalType: "uint256", type: "uint256" },
243
- { name: "healthFactor", internalType: "uint256", type: "uint256" },
338
+ { name: "healthFactor", internalType: "uint16", type: "uint16" },
244
339
  { name: "success", internalType: "bool", type: "bool" },
245
340
  {
246
341
  name: "tokens",
@@ -271,8 +366,8 @@ const iCreditAccountCompressorAbi = [
271
366
  components: [
272
367
  { name: "owner", internalType: "address", type: "address" },
273
368
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
274
- { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
275
- { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
369
+ { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
370
+ { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
276
371
  { name: "reverting", internalType: "bool", type: "bool" }
277
372
  ]
278
373
  },
@@ -304,7 +399,7 @@ const iCreditAccountCompressorAbi = [
304
399
  { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
305
400
  { name: "twvUSD", internalType: "uint256", type: "uint256" },
306
401
  { name: "totalValue", internalType: "uint256", type: "uint256" },
307
- { name: "healthFactor", internalType: "uint256", type: "uint256" },
402
+ { name: "healthFactor", internalType: "uint16", type: "uint16" },
308
403
  { name: "success", internalType: "bool", type: "bool" },
309
404
  {
310
405
  name: "tokens",
@@ -329,7 +424,7 @@ const iCreditAccountCompressorAbi = [
329
424
  inputs: [
330
425
  {
331
426
  name: "cmFilter",
332
- internalType: "struct CreditManagerFilter",
427
+ internalType: "struct MarketFilter",
333
428
  type: "tuple",
334
429
  components: [
335
430
  {
@@ -337,11 +432,6 @@ const iCreditAccountCompressorAbi = [
337
432
  internalType: "address[]",
338
433
  type: "address[]"
339
434
  },
340
- {
341
- name: "creditManagers",
342
- internalType: "address[]",
343
- type: "address[]"
344
- },
345
435
  { name: "pools", internalType: "address[]", type: "address[]" },
346
436
  { name: "underlying", internalType: "address", type: "address" }
347
437
  ]
@@ -353,12 +443,13 @@ const iCreditAccountCompressorAbi = [
353
443
  components: [
354
444
  { name: "owner", internalType: "address", type: "address" },
355
445
  { name: "includeZeroDebt", internalType: "bool", type: "bool" },
356
- { name: "minHealthFactor", internalType: "uint256", type: "uint256" },
357
- { name: "maxHealthFactor", internalType: "uint256", type: "uint256" },
446
+ { name: "minHealthFactor", internalType: "uint16", type: "uint16" },
447
+ { name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
358
448
  { name: "reverting", internalType: "bool", type: "bool" }
359
449
  ]
360
450
  },
361
- { name: "offset", internalType: "uint256", type: "uint256" }
451
+ { name: "offset", internalType: "uint256", type: "uint256" },
452
+ { name: "limit", internalType: "uint256", type: "uint256" }
362
453
  ],
363
454
  name: "getCreditAccounts",
364
455
  outputs: [
@@ -385,7 +476,7 @@ const iCreditAccountCompressorAbi = [
385
476
  { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
386
477
  { name: "twvUSD", internalType: "uint256", type: "uint256" },
387
478
  { name: "totalValue", internalType: "uint256", type: "uint256" },
388
- { name: "healthFactor", internalType: "uint256", type: "uint256" },
479
+ { name: "healthFactor", internalType: "uint16", type: "uint16" },
389
480
  { name: "success", internalType: "bool", type: "bool" },
390
481
  {
391
482
  name: "tokens",
@@ -421,115 +512,6 @@ const iCreditSuiteCompressorAbi = [
421
512
  outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
422
513
  stateMutability: "view"
423
514
  },
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
- },
533
515
  {
534
516
  type: "function",
535
517
  inputs: [
@@ -561,6 +543,7 @@ const iCreditSuiteCompressorAbi = [
561
543
  }
562
544
  ]
563
545
  },
546
+ { name: "creditManager", internalType: "address", type: "address" },
564
547
  { name: "degenNFT", internalType: "address", type: "address" },
565
548
  { name: "botList", internalType: "address", type: "address" },
566
549
  { name: "expirable", internalType: "bool", type: "bool" },
@@ -573,7 +556,7 @@ const iCreditSuiteCompressorAbi = [
573
556
  { name: "minDebt", internalType: "uint256", type: "uint256" },
574
557
  { name: "maxDebt", internalType: "uint256", type: "uint256" },
575
558
  {
576
- name: "forbiddenTokensMask",
559
+ name: "forbiddenTokenMask",
577
560
  internalType: "uint256",
578
561
  type: "uint256"
579
562
  },
@@ -696,6 +679,11 @@ const iCreditSuiteCompressorAbi = [
696
679
  }
697
680
  ]
698
681
  },
682
+ {
683
+ name: "creditManager",
684
+ internalType: "address",
685
+ type: "address"
686
+ },
699
687
  { name: "degenNFT", internalType: "address", type: "address" },
700
688
  { name: "botList", internalType: "address", type: "address" },
701
689
  { name: "expirable", internalType: "bool", type: "bool" },
@@ -712,7 +700,7 @@ const iCreditSuiteCompressorAbi = [
712
700
  { name: "minDebt", internalType: "uint256", type: "uint256" },
713
701
  { name: "maxDebt", internalType: "uint256", type: "uint256" },
714
702
  {
715
- name: "forbiddenTokensMask",
703
+ name: "forbiddenTokenMask",
716
704
  internalType: "uint256",
717
705
  type: "uint256"
718
706
  },
@@ -828,280 +816,6 @@ const iCreditSuiteCompressorAbi = [
828
816
  }
829
817
  ]
830
818
  },
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
- },
857
- {
858
- name: "adapters",
859
- internalType: "struct AdapterState[]",
860
- type: "tuple[]",
861
- components: [
862
- {
863
- name: "baseParams",
864
- internalType: "struct BaseParams",
865
- type: "tuple",
866
- components: [
867
- { name: "addr", internalType: "address", type: "address" },
868
- { name: "version", internalType: "uint256", type: "uint256" },
869
- {
870
- name: "contractType",
871
- internalType: "bytes32",
872
- type: "bytes32"
873
- },
874
- {
875
- name: "serializedParams",
876
- internalType: "bytes",
877
- type: "bytes"
878
- }
879
- ]
880
- },
881
- {
882
- name: "targetContract",
883
- internalType: "address",
884
- type: "address"
885
- }
886
- ]
887
- }
888
- ]
889
- }
890
- ],
891
- stateMutability: "view"
892
- },
893
- {
894
- type: "function",
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
819
  {
1106
820
  name: "adapters",
1107
821
  internalType: "struct AdapterState[]",
@@ -1160,10 +874,10 @@ const iGaugeCompressorAbi = [
1160
874
  { name: "gauge", internalType: "address", type: "address" },
1161
875
  { name: "staker", internalType: "address", type: "address" }
1162
876
  ],
1163
- name: "getGaugeInfo",
877
+ name: "getGauge",
1164
878
  outputs: [
1165
879
  {
1166
- name: "",
880
+ name: "result",
1167
881
  internalType: "struct GaugeInfo",
1168
882
  type: "tuple",
1169
883
  components: [
@@ -1233,7 +947,7 @@ const iGaugeCompressorAbi = [
1233
947
  name: "getGauges",
1234
948
  outputs: [
1235
949
  {
1236
- name: "",
950
+ name: "result",
1237
951
  internalType: "struct GaugeInfo[]",
1238
952
  type: "tuple[]",
1239
953
  components: [
@@ -1297,76 +1011,6 @@ const iMarketCompressorAbi = [
1297
1011
  outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
1298
1012
  stateMutability: "view"
1299
1013
  },
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
- },
1370
1014
  {
1371
1015
  type: "function",
1372
1016
  inputs: [
@@ -1376,7 +1020,7 @@ const iMarketCompressorAbi = [
1376
1020
  name: "getMarketData",
1377
1021
  outputs: [
1378
1022
  {
1379
- name: "",
1023
+ name: "result",
1380
1024
  internalType: "struct MarketData",
1381
1025
  type: "tuple",
1382
1026
  components: [
@@ -1415,7 +1059,11 @@ const iMarketCompressorAbi = [
1415
1059
  { name: "name", internalType: "string", type: "string" },
1416
1060
  { name: "decimals", internalType: "uint8", type: "uint8" },
1417
1061
  { name: "totalSupply", internalType: "uint256", type: "uint256" },
1418
- { name: "quotaKeeper", internalType: "address", type: "address" },
1062
+ {
1063
+ name: "poolQuotaKeeper",
1064
+ internalType: "address",
1065
+ type: "address"
1066
+ },
1419
1067
  {
1420
1068
  name: "interestRateModel",
1421
1069
  internalType: "address",
@@ -1507,8 +1155,8 @@ const iMarketCompressorAbi = [
1507
1155
  ]
1508
1156
  },
1509
1157
  {
1510
- name: "quotaKeeper",
1511
- internalType: "struct QuotaKeeperState",
1158
+ name: "poolQuotaKeeper",
1159
+ internalType: "struct PoolQuotaKeeperState",
1512
1160
  type: "tuple",
1513
1161
  components: [
1514
1162
  {
@@ -1631,7 +1279,7 @@ const iMarketCompressorAbi = [
1631
1279
  ]
1632
1280
  },
1633
1281
  {
1634
- name: "priceOracle",
1282
+ name: "priceOracleData",
1635
1283
  internalType: "struct PriceOracleState",
1636
1284
  type: "tuple",
1637
1285
  components: [
@@ -1655,7 +1303,7 @@ const iMarketCompressorAbi = [
1655
1303
  ]
1656
1304
  },
1657
1305
  {
1658
- name: "priceFeedMap",
1306
+ name: "priceFeedMapping",
1659
1307
  internalType: "struct PriceFeedMapEntry[]",
1660
1308
  type: "tuple[]",
1661
1309
  components: [
@@ -1674,7 +1322,7 @@ const iMarketCompressorAbi = [
1674
1322
  ]
1675
1323
  },
1676
1324
  {
1677
- name: "priceFeedTree",
1325
+ name: "priceFeedStructure",
1678
1326
  internalType: "struct PriceFeedTreeNode[]",
1679
1327
  type: "tuple[]",
1680
1328
  components: [
@@ -1815,6 +1463,11 @@ const iMarketCompressorAbi = [
1815
1463
  }
1816
1464
  ]
1817
1465
  },
1466
+ {
1467
+ name: "creditManager",
1468
+ internalType: "address",
1469
+ type: "address"
1470
+ },
1818
1471
  {
1819
1472
  name: "degenNFT",
1820
1473
  internalType: "address",
@@ -1835,7 +1488,7 @@ const iMarketCompressorAbi = [
1835
1488
  { name: "minDebt", internalType: "uint256", type: "uint256" },
1836
1489
  { name: "maxDebt", internalType: "uint256", type: "uint256" },
1837
1490
  {
1838
- name: "forbiddenTokensMask",
1491
+ name: "forbiddenTokenMask",
1839
1492
  internalType: "uint256",
1840
1493
  type: "uint256"
1841
1494
  },
@@ -1979,40 +1632,6 @@ const iMarketCompressorAbi = [
1979
1632
  }
1980
1633
  ]
1981
1634
  },
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
- },
2016
1635
  {
2017
1636
  name: "adapters",
2018
1637
  internalType: "struct AdapterState[]",
@@ -2081,7 +1700,7 @@ const iMarketCompressorAbi = [
2081
1700
  name: "getMarketData",
2082
1701
  outputs: [
2083
1702
  {
2084
- name: "",
1703
+ name: "result",
2085
1704
  internalType: "struct MarketData",
2086
1705
  type: "tuple",
2087
1706
  components: [
@@ -2120,7 +1739,11 @@ const iMarketCompressorAbi = [
2120
1739
  { name: "name", internalType: "string", type: "string" },
2121
1740
  { name: "decimals", internalType: "uint8", type: "uint8" },
2122
1741
  { name: "totalSupply", internalType: "uint256", type: "uint256" },
2123
- { name: "quotaKeeper", internalType: "address", type: "address" },
1742
+ {
1743
+ name: "poolQuotaKeeper",
1744
+ internalType: "address",
1745
+ type: "address"
1746
+ },
2124
1747
  {
2125
1748
  name: "interestRateModel",
2126
1749
  internalType: "address",
@@ -2212,8 +1835,8 @@ const iMarketCompressorAbi = [
2212
1835
  ]
2213
1836
  },
2214
1837
  {
2215
- name: "quotaKeeper",
2216
- internalType: "struct QuotaKeeperState",
1838
+ name: "poolQuotaKeeper",
1839
+ internalType: "struct PoolQuotaKeeperState",
2217
1840
  type: "tuple",
2218
1841
  components: [
2219
1842
  {
@@ -2336,7 +1959,7 @@ const iMarketCompressorAbi = [
2336
1959
  ]
2337
1960
  },
2338
1961
  {
2339
- name: "priceOracle",
1962
+ name: "priceOracleData",
2340
1963
  internalType: "struct PriceOracleState",
2341
1964
  type: "tuple",
2342
1965
  components: [
@@ -2360,7 +1983,7 @@ const iMarketCompressorAbi = [
2360
1983
  ]
2361
1984
  },
2362
1985
  {
2363
- name: "priceFeedMap",
1986
+ name: "priceFeedMapping",
2364
1987
  internalType: "struct PriceFeedMapEntry[]",
2365
1988
  type: "tuple[]",
2366
1989
  components: [
@@ -2379,7 +2002,7 @@ const iMarketCompressorAbi = [
2379
2002
  ]
2380
2003
  },
2381
2004
  {
2382
- name: "priceFeedTree",
2005
+ name: "priceFeedStructure",
2383
2006
  internalType: "struct PriceFeedTreeNode[]",
2384
2007
  type: "tuple[]",
2385
2008
  components: [
@@ -2520,6 +2143,11 @@ const iMarketCompressorAbi = [
2520
2143
  }
2521
2144
  ]
2522
2145
  },
2146
+ {
2147
+ name: "creditManager",
2148
+ internalType: "address",
2149
+ type: "address"
2150
+ },
2523
2151
  {
2524
2152
  name: "degenNFT",
2525
2153
  internalType: "address",
@@ -2540,7 +2168,7 @@ const iMarketCompressorAbi = [
2540
2168
  { name: "minDebt", internalType: "uint256", type: "uint256" },
2541
2169
  { name: "maxDebt", internalType: "uint256", type: "uint256" },
2542
2170
  {
2543
- name: "forbiddenTokensMask",
2171
+ name: "forbiddenTokenMask",
2544
2172
  internalType: "uint256",
2545
2173
  type: "uint256"
2546
2174
  },
@@ -2684,40 +2312,6 @@ const iMarketCompressorAbi = [
2684
2312
  }
2685
2313
  ]
2686
2314
  },
2687
- {
2688
- name: "accountFactory",
2689
- internalType: "struct BaseState",
2690
- type: "tuple",
2691
- components: [
2692
- {
2693
- name: "baseParams",
2694
- internalType: "struct BaseParams",
2695
- type: "tuple",
2696
- components: [
2697
- {
2698
- name: "addr",
2699
- internalType: "address",
2700
- type: "address"
2701
- },
2702
- {
2703
- name: "version",
2704
- internalType: "uint256",
2705
- type: "uint256"
2706
- },
2707
- {
2708
- name: "contractType",
2709
- internalType: "bytes32",
2710
- type: "bytes32"
2711
- },
2712
- {
2713
- name: "serializedParams",
2714
- internalType: "bytes",
2715
- type: "bytes"
2716
- }
2717
- ]
2718
- }
2719
- ]
2720
- },
2721
2315
  {
2722
2316
  name: "adapters",
2723
2317
  internalType: "struct AdapterState[]",
@@ -2801,7 +2395,7 @@ const iMarketCompressorAbi = [
2801
2395
  name: "getMarkets",
2802
2396
  outputs: [
2803
2397
  {
2804
- name: "",
2398
+ name: "result",
2805
2399
  internalType: "struct MarketData[]",
2806
2400
  type: "tuple[]",
2807
2401
  components: [
@@ -2840,7 +2434,11 @@ const iMarketCompressorAbi = [
2840
2434
  { name: "name", internalType: "string", type: "string" },
2841
2435
  { name: "decimals", internalType: "uint8", type: "uint8" },
2842
2436
  { name: "totalSupply", internalType: "uint256", type: "uint256" },
2843
- { name: "quotaKeeper", internalType: "address", type: "address" },
2437
+ {
2438
+ name: "poolQuotaKeeper",
2439
+ internalType: "address",
2440
+ type: "address"
2441
+ },
2844
2442
  {
2845
2443
  name: "interestRateModel",
2846
2444
  internalType: "address",
@@ -2932,8 +2530,8 @@ const iMarketCompressorAbi = [
2932
2530
  ]
2933
2531
  },
2934
2532
  {
2935
- name: "quotaKeeper",
2936
- internalType: "struct QuotaKeeperState",
2533
+ name: "poolQuotaKeeper",
2534
+ internalType: "struct PoolQuotaKeeperState",
2937
2535
  type: "tuple",
2938
2536
  components: [
2939
2537
  {
@@ -3056,7 +2654,7 @@ const iMarketCompressorAbi = [
3056
2654
  ]
3057
2655
  },
3058
2656
  {
3059
- name: "priceOracle",
2657
+ name: "priceOracleData",
3060
2658
  internalType: "struct PriceOracleState",
3061
2659
  type: "tuple",
3062
2660
  components: [
@@ -3080,7 +2678,7 @@ const iMarketCompressorAbi = [
3080
2678
  ]
3081
2679
  },
3082
2680
  {
3083
- name: "priceFeedMap",
2681
+ name: "priceFeedMapping",
3084
2682
  internalType: "struct PriceFeedMapEntry[]",
3085
2683
  type: "tuple[]",
3086
2684
  components: [
@@ -3099,7 +2697,7 @@ const iMarketCompressorAbi = [
3099
2697
  ]
3100
2698
  },
3101
2699
  {
3102
- name: "priceFeedTree",
2700
+ name: "priceFeedStructure",
3103
2701
  internalType: "struct PriceFeedTreeNode[]",
3104
2702
  type: "tuple[]",
3105
2703
  components: [
@@ -3240,6 +2838,11 @@ const iMarketCompressorAbi = [
3240
2838
  }
3241
2839
  ]
3242
2840
  },
2841
+ {
2842
+ name: "creditManager",
2843
+ internalType: "address",
2844
+ type: "address"
2845
+ },
3243
2846
  {
3244
2847
  name: "degenNFT",
3245
2848
  internalType: "address",
@@ -3260,7 +2863,7 @@ const iMarketCompressorAbi = [
3260
2863
  { name: "minDebt", internalType: "uint256", type: "uint256" },
3261
2864
  { name: "maxDebt", internalType: "uint256", type: "uint256" },
3262
2865
  {
3263
- name: "forbiddenTokensMask",
2866
+ name: "forbiddenTokenMask",
3264
2867
  internalType: "uint256",
3265
2868
  type: "uint256"
3266
2869
  },
@@ -3404,40 +3007,6 @@ const iMarketCompressorAbi = [
3404
3007
  }
3405
3008
  ]
3406
3009
  },
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
- },
3441
3010
  {
3442
3011
  name: "adapters",
3443
3012
  internalType: "struct AdapterState[]",
@@ -3502,229 +3071,55 @@ const iMarketCompressorAbi = [
3502
3071
  },
3503
3072
  {
3504
3073
  type: "function",
3505
- inputs: [{ name: "pool", internalType: "address", type: "address" }],
3506
- name: "getPoolState",
3507
- outputs: [
3508
- {
3509
- name: "",
3510
- internalType: "struct PoolState",
3511
- type: "tuple",
3512
- components: [
3513
- {
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",
3664
- internalType: "address[]",
3665
- type: "address[]"
3666
- },
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
- }
3715
- ]
3716
- }
3717
- ],
3718
- stateMutability: "view"
3719
- },
3720
- {
3721
- type: "function",
3074
+ inputs: [
3075
+ {
3076
+ name: "filter",
3077
+ internalType: "struct MarketFilter",
3078
+ type: "tuple",
3079
+ components: [
3080
+ {
3081
+ name: "configurators",
3082
+ internalType: "address[]",
3083
+ type: "address[]"
3084
+ },
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" }
3101
+ ]
3102
+ }
3103
+ ],
3104
+ stateMutability: "view"
3105
+ },
3106
+ {
3107
+ type: "function",
3722
3108
  inputs: [],
3723
3109
  name: "version",
3724
3110
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3725
3111
  stateMutability: "view"
3726
3112
  }
3727
3113
  ];
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
+ ];
3728
3123
  const iPeripheryCompressorAbi = [
3729
3124
  {
3730
3125
  type: "function",
@@ -3886,7 +3281,7 @@ const iPeripheryCompressorAbi = [
3886
3281
  stateMutability: "view"
3887
3282
  }
3888
3283
  ];
3889
- const iPriceFeedCompressorAbi = [
3284
+ const iPoolCompressorAbi = [
3890
3285
  {
3891
3286
  type: "function",
3892
3287
  inputs: [],
@@ -3896,12 +3291,14 @@ const iPriceFeedCompressorAbi = [
3896
3291
  },
3897
3292
  {
3898
3293
  type: "function",
3899
- inputs: [{ name: "priceOracle", internalType: "address", type: "address" }],
3900
- name: "getPriceOracleState",
3294
+ inputs: [
3295
+ { name: "interestRateModel", internalType: "address", type: "address" }
3296
+ ],
3297
+ name: "getInterestRateModelState",
3901
3298
  outputs: [
3902
3299
  {
3903
3300
  name: "",
3904
- internalType: "struct PriceOracleState",
3301
+ internalType: "struct BaseState",
3905
3302
  type: "tuple",
3906
3303
  components: [
3907
3304
  {
@@ -3922,76 +3319,215 @@ const iPriceFeedCompressorAbi = [
3922
3319
  type: "bytes"
3923
3320
  }
3924
3321
  ]
3925
- },
3322
+ }
3323
+ ]
3324
+ }
3325
+ ],
3326
+ stateMutability: "view"
3327
+ },
3328
+ {
3329
+ type: "function",
3330
+ inputs: [{ name: "lossPolicy", internalType: "address", type: "address" }],
3331
+ name: "getLossPolicyState",
3332
+ outputs: [
3333
+ {
3334
+ name: "",
3335
+ internalType: "struct BaseState",
3336
+ type: "tuple",
3337
+ components: [
3926
3338
  {
3927
- name: "priceFeedMap",
3928
- internalType: "struct PriceFeedMapEntry[]",
3929
- type: "tuple[]",
3339
+ name: "baseParams",
3340
+ internalType: "struct BaseParams",
3341
+ type: "tuple",
3930
3342
  components: [
3931
- { name: "token", internalType: "address", type: "address" },
3932
- { name: "reserve", internalType: "bool", type: "bool" },
3933
- { name: "priceFeed", internalType: "address", type: "address" },
3343
+ { name: "addr", internalType: "address", type: "address" },
3344
+ { name: "version", internalType: "uint256", type: "uint256" },
3345
+ {
3346
+ name: "contractType",
3347
+ internalType: "bytes32",
3348
+ type: "bytes32"
3349
+ },
3350
+ {
3351
+ name: "serializedParams",
3352
+ internalType: "bytes",
3353
+ type: "bytes"
3354
+ }
3355
+ ]
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: [
3372
+ {
3373
+ name: "baseParams",
3374
+ internalType: "struct BaseParams",
3375
+ type: "tuple",
3376
+ 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
+ },
3934
3384
  {
3935
- name: "stalenessPeriod",
3936
- internalType: "uint32",
3937
- type: "uint32"
3385
+ name: "serializedParams",
3386
+ internalType: "bytes",
3387
+ type: "bytes"
3938
3388
  }
3939
3389
  ]
3940
3390
  },
3391
+ { name: "rateKeeper", internalType: "address", type: "address" },
3941
3392
  {
3942
- name: "priceFeedTree",
3943
- internalType: "struct PriceFeedTreeNode[]",
3393
+ name: "quotas",
3394
+ internalType: "struct QuotaTokenParams[]",
3944
3395
  type: "tuple[]",
3945
3396
  components: [
3397
+ { name: "token", internalType: "address", type: "address" },
3398
+ { name: "rate", internalType: "uint16", type: "uint16" },
3946
3399
  {
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
- ]
3400
+ name: "cumulativeIndexLU",
3401
+ internalType: "uint192",
3402
+ type: "uint192"
3964
3403
  },
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" },
3969
3404
  {
3970
- name: "underlyingFeeds",
3971
- internalType: "address[]",
3972
- type: "address[]"
3405
+ name: "quotaIncreaseFee",
3406
+ internalType: "uint16",
3407
+ type: "uint16"
3973
3408
  },
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" },
3974
3446
  {
3975
- name: "underlyingStalenessPeriods",
3976
- internalType: "uint32[]",
3977
- type: "uint32[]"
3447
+ name: "contractType",
3448
+ internalType: "bytes32",
3449
+ type: "bytes32"
3978
3450
  },
3979
3451
  {
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
- ]
3452
+ name: "serializedParams",
3453
+ internalType: "bytes",
3454
+ type: "bytes"
3992
3455
  }
3993
3456
  ]
3994
- }
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" }
3995
3531
  ]
3996
3532
  }
3997
3533
  ],
@@ -3999,15 +3535,12 @@ const iPriceFeedCompressorAbi = [
3999
3535
  },
4000
3536
  {
4001
3537
  type: "function",
4002
- inputs: [
4003
- { name: "priceOracle", internalType: "address", type: "address" },
4004
- { name: "tokens", internalType: "address[]", type: "address[]" }
4005
- ],
4006
- name: "getPriceOracleState",
3538
+ inputs: [{ name: "rateKeeper", internalType: "address", type: "address" }],
3539
+ name: "getRateKeeperState",
4007
3540
  outputs: [
4008
3541
  {
4009
3542
  name: "",
4010
- internalType: "struct PriceOracleState",
3543
+ internalType: "struct RateKeeperState",
4011
3544
  type: "tuple",
4012
3545
  components: [
4013
3546
  {
@@ -4030,72 +3563,12 @@ const iPriceFeedCompressorAbi = [
4030
3563
  ]
4031
3564
  },
4032
3565
  {
4033
- name: "priceFeedMap",
4034
- internalType: "struct PriceFeedMapEntry[]",
3566
+ name: "rates",
3567
+ internalType: "struct Rate[]",
4035
3568
  type: "tuple[]",
4036
3569
  components: [
4037
3570
  { name: "token", internalType: "address", type: "address" },
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
- }
3571
+ { name: "rate", internalType: "uint16", type: "uint16" }
4099
3572
  ]
4100
3573
  }
4101
3574
  ]
@@ -4103,29 +3576,44 @@ const iPriceFeedCompressorAbi = [
4103
3576
  ],
4104
3577
  stateMutability: "view"
4105
3578
  },
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
+ },
4106
3595
  {
4107
3596
  type: "function",
4108
3597
  inputs: [
3598
+ { name: "priceOracle", internalType: "address", type: "address" },
3599
+ { name: "tokens", internalType: "address[]", type: "address[]" }
3600
+ ],
3601
+ name: "getPriceFeeds",
3602
+ outputs: [
4109
3603
  {
4110
- name: "filter",
4111
- internalType: "struct MarketFilter",
4112
- type: "tuple",
3604
+ name: "priceFeedMap",
3605
+ internalType: "struct PriceFeedMapEntry[]",
3606
+ type: "tuple[]",
4113
3607
  components: [
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" }
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" }
4121
3612
  ]
4122
- }
4123
- ],
4124
- name: "getPriceOracles",
4125
- outputs: [
3613
+ },
4126
3614
  {
4127
- name: "",
4128
- internalType: "struct PriceOracleState[]",
3615
+ name: "priceFeedTree",
3616
+ internalType: "struct PriceFeedTreeNode[]",
4129
3617
  type: "tuple[]",
4130
3618
  components: [
4131
3619
  {
@@ -4147,73 +3635,28 @@ const iPriceFeedCompressorAbi = [
4147
3635
  }
4148
3636
  ]
4149
3637
  },
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" },
4150
3642
  {
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
- ]
3643
+ name: "underlyingFeeds",
3644
+ internalType: "address[]",
3645
+ type: "address[]"
4164
3646
  },
4165
3647
  {
4166
- name: "priceFeedTree",
4167
- internalType: "struct PriceFeedTreeNode[]",
4168
- type: "tuple[]",
3648
+ name: "underlyingStalenessPeriods",
3649
+ internalType: "uint32[]",
3650
+ type: "uint32[]"
3651
+ },
3652
+ {
3653
+ name: "answer",
3654
+ internalType: "struct PriceFeedAnswer",
3655
+ type: "tuple",
4169
3656
  components: [
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
- }
3657
+ { name: "price", internalType: "int256", type: "int256" },
3658
+ { name: "updatedAt", internalType: "uint256", type: "uint256" },
3659
+ { name: "success", internalType: "bool", type: "bool" }
4217
3660
  ]
4218
3661
  }
4219
3662
  ]
@@ -4223,81 +3666,22 @@ const iPriceFeedCompressorAbi = [
4223
3666
  },
4224
3667
  {
4225
3668
  type: "function",
4226
- inputs: [
4227
- { name: "priceFeeds", internalType: "address[]", type: "address[]" }
4228
- ],
4229
- name: "getUpdatablePriceFeeds",
4230
- outputs: [
4231
- {
4232
- name: "",
4233
- internalType: "struct BaseParams[]",
4234
- type: "tuple[]",
4235
- components: [
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" }
4240
- ]
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",
3669
+ inputs: [{ name: "priceOracle", internalType: "address", type: "address" }],
3670
+ name: "getPriceFeeds",
4264
3671
  outputs: [
4265
3672
  {
4266
- name: "",
4267
- internalType: "struct BaseParams[]",
3673
+ name: "priceFeedMap",
3674
+ internalType: "struct PriceFeedMapEntry[]",
4268
3675
  type: "tuple[]",
4269
3676
  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" }
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" }
4294
3681
  ]
4295
- }
4296
- ],
4297
- name: "loadPriceFeedTree",
4298
- outputs: [
3682
+ },
4299
3683
  {
4300
- name: "",
3684
+ name: "priceFeedTree",
4301
3685
  internalType: "struct PriceFeedTreeNode[]",
4302
3686
  type: "tuple[]",
4303
3687
  components: [
@@ -4357,7 +3741,7 @@ const iPriceFeedCompressorAbi = [
4357
3741
  name: "loadPriceFeedTree",
4358
3742
  outputs: [
4359
3743
  {
4360
- name: "",
3744
+ name: "priceFeedTree",
4361
3745
  internalType: "struct PriceFeedTreeNode[]",
4362
3746
  type: "tuple[]",
4363
3747
  components: [
@@ -4415,6 +3799,25 @@ const iPriceFeedCompressorAbi = [
4415
3799
  name: "version",
4416
3800
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4417
3801
  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"
4418
3821
  }
4419
3822
  ];
4420
3823
  const iRewardsCompressorAbi = [
@@ -4472,7 +3875,7 @@ const iTokenCompressorAbi = [
4472
3875
  name: "getTokenInfo",
4473
3876
  outputs: [
4474
3877
  {
4475
- name: "",
3878
+ name: "result",
4476
3879
  internalType: "struct TokenData",
4477
3880
  type: "tuple",
4478
3881
  components: [
@@ -4485,25 +3888,6 @@ const iTokenCompressorAbi = [
4485
3888
  ],
4486
3889
  stateMutability: "view"
4487
3890
  },
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
- },
4507
3891
  {
4508
3892
  type: "function",
4509
3893
  inputs: [],
@@ -4513,11 +3897,16 @@ const iTokenCompressorAbi = [
4513
3897
  }
4514
3898
  ];
4515
3899
  export {
3900
+ iAdapterCompressorAbi,
3901
+ iAuraL2CoordinatorAbi,
3902
+ iConvexTokenAbi,
4516
3903
  iCreditAccountCompressorAbi,
4517
3904
  iCreditSuiteCompressorAbi,
4518
3905
  iGaugeCompressorAbi,
4519
3906
  iMarketCompressorAbi,
3907
+ iModifiedBoosterAbi,
4520
3908
  iPeripheryCompressorAbi,
3909
+ iPoolCompressorAbi,
4521
3910
  iPriceFeedCompressorAbi,
4522
3911
  iRewardsCompressorAbi,
4523
3912
  iTokenCompressorAbi