@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.
- package/dist/cjs/abi/compressors.js +527 -1133
- package/dist/cjs/adapters/abi/adapters.js +0 -123
- package/dist/cjs/adapters/abi/iBalancerV3RouterAdapter.js +153 -0
- package/dist/cjs/adapters/abi/index.js +3 -1
- package/dist/cjs/dev/setLTZero.js +0 -7
- package/dist/cjs/sdk/accounts/CreditAccountsService.js +30 -45
- package/dist/cjs/sdk/chain/chains.js +14 -2
- package/dist/cjs/sdk/constants/address-provider.js +18 -11
- package/dist/cjs/sdk/constants/addresses.js +8 -4
- package/dist/cjs/sdk/constants/networks.js +11 -4
- package/dist/cjs/sdk/market/MarketSuite.js +1 -1
- package/dist/cjs/sdk/market/credit/CreditFacadeV300Contract.js +5 -1
- package/dist/cjs/sdk/market/credit/CreditFacadeV310Contract.js +5 -1
- package/dist/cjs/sdk/market/oracle/PriceOracleBaseContract.js +5 -6
- package/dist/cjs/sdk/market/pool/PoolSuite.js +1 -1
- package/dist/cjs/sdk/market/pricefeeds/PriceFeedsRegister.js +4 -4
- package/dist/cjs/sdk/router/RouterV300Contract.js +2 -1
- package/dist/cjs/sdk/sdk-gov-legacy/contracts/contracts.js +74 -37
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/quoted.js +2 -1
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/token.js +4 -2
- package/dist/cjs/sdk/sdk-gov-legacy/tokens/tokenData.js +2 -1
- package/dist/cjs/sdk/sdk-legacy/core/creditAccount.js +1 -3
- package/dist/cjs/sdk/sdk-legacy/core/endpoint.js +2 -1
- package/dist/esm/abi/compressors.js +522 -1133
- package/dist/esm/adapters/abi/adapters.js +0 -120
- package/dist/esm/adapters/abi/iBalancerV3RouterAdapter.js +129 -0
- package/dist/esm/adapters/abi/index.js +1 -0
- package/dist/esm/dev/setLTZero.js +0 -7
- package/dist/esm/sdk/accounts/CreditAccountsService.js +30 -45
- package/dist/esm/sdk/chain/chains.js +16 -3
- package/dist/esm/sdk/constants/address-provider.js +16 -11
- package/dist/esm/sdk/constants/addresses.js +8 -4
- package/dist/esm/sdk/constants/networks.js +11 -4
- package/dist/esm/sdk/market/MarketSuite.js +1 -1
- package/dist/esm/sdk/market/credit/CreditFacadeV300Contract.js +5 -1
- package/dist/esm/sdk/market/credit/CreditFacadeV310Contract.js +5 -1
- package/dist/esm/sdk/market/oracle/PriceOracleBaseContract.js +5 -6
- package/dist/esm/sdk/market/pool/PoolSuite.js +1 -1
- package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +6 -9
- package/dist/esm/sdk/router/RouterV300Contract.js +2 -1
- package/dist/esm/sdk/sdk-gov-legacy/contracts/contracts.js +74 -37
- package/dist/esm/sdk/sdk-gov-legacy/tokens/quoted.js +2 -1
- package/dist/esm/sdk/sdk-gov-legacy/tokens/token.js +4 -2
- package/dist/esm/sdk/sdk-gov-legacy/tokens/tokenData.js +2 -1
- package/dist/esm/sdk/sdk-legacy/core/creditAccount.js +1 -3
- package/dist/esm/sdk/sdk-legacy/core/endpoint.js +2 -1
- package/dist/types/abi/compressors.d.ts +1106 -1734
- package/dist/types/adapters/BalancerV3RouterAdapterContract.d.ts +104 -62
- package/dist/types/adapters/abi/adapters.d.ts +0 -213
- package/dist/types/adapters/abi/iBalancerV3RouterAdapter.d.ts +230 -0
- package/dist/types/adapters/abi/index.d.ts +1 -0
- package/dist/types/sdk/accounts/CreditAccountsService.d.ts +3 -3
- package/dist/types/sdk/accounts/types.d.ts +2 -15
- package/dist/types/sdk/base/types.d.ts +6 -6
- package/dist/types/sdk/chain/chains.d.ts +2 -2
- package/dist/types/sdk/constants/address-provider.d.ts +12 -10
- package/dist/types/sdk/market/oracle/PriceOracleBaseContract.d.ts +85 -425
- package/dist/types/sdk/market/pool/PoolQuotaKeeperV300Contract.d.ts +2 -2
- package/dist/types/sdk/market/pool/PoolQuotaKeeperV310Contract.d.ts +2 -2
- package/dist/types/sdk/market/pool/createPoolQuotaKeeper.d.ts +2 -2
- package/dist/types/sdk/types/state-human.d.ts +3 -1
- package/package.json +1 -1
- package/dist/cjs/sdk/accounts/utils.js +0 -38
- package/dist/esm/sdk/accounts/utils.js +0 -14
- package/dist/types/sdk/accounts/utils.d.ts +0 -2
|
@@ -18,16 +18,127 @@ 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,
|
|
21
24
|
iCreditAccountCompressorAbi: () => iCreditAccountCompressorAbi,
|
|
22
25
|
iCreditSuiteCompressorAbi: () => iCreditSuiteCompressorAbi,
|
|
23
26
|
iGaugeCompressorAbi: () => iGaugeCompressorAbi,
|
|
24
27
|
iMarketCompressorAbi: () => iMarketCompressorAbi,
|
|
28
|
+
iModifiedBoosterAbi: () => iModifiedBoosterAbi,
|
|
25
29
|
iPeripheryCompressorAbi: () => iPeripheryCompressorAbi,
|
|
30
|
+
iPoolCompressorAbi: () => iPoolCompressorAbi,
|
|
26
31
|
iPriceFeedCompressorAbi: () => iPriceFeedCompressorAbi,
|
|
27
32
|
iRewardsCompressorAbi: () => iRewardsCompressorAbi,
|
|
28
33
|
iTokenCompressorAbi: () => iTokenCompressorAbi
|
|
29
34
|
});
|
|
30
35
|
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
|
+
];
|
|
31
142
|
const iCreditAccountCompressorAbi = [
|
|
32
143
|
{
|
|
33
144
|
type: "function",
|
|
@@ -47,8 +158,8 @@ const iCreditAccountCompressorAbi = [
|
|
|
47
158
|
components: [
|
|
48
159
|
{ name: "owner", internalType: "address", type: "address" },
|
|
49
160
|
{ name: "includeZeroDebt", internalType: "bool", type: "bool" },
|
|
50
|
-
{ name: "minHealthFactor", internalType: "
|
|
51
|
-
{ name: "maxHealthFactor", internalType: "
|
|
161
|
+
{ name: "minHealthFactor", internalType: "uint16", type: "uint16" },
|
|
162
|
+
{ name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
|
|
52
163
|
{ name: "reverting", internalType: "bool", type: "bool" }
|
|
53
164
|
]
|
|
54
165
|
}
|
|
@@ -62,7 +173,7 @@ const iCreditAccountCompressorAbi = [
|
|
|
62
173
|
inputs: [
|
|
63
174
|
{
|
|
64
175
|
name: "cmFilter",
|
|
65
|
-
internalType: "struct
|
|
176
|
+
internalType: "struct MarketFilter",
|
|
66
177
|
type: "tuple",
|
|
67
178
|
components: [
|
|
68
179
|
{
|
|
@@ -70,11 +181,6 @@ const iCreditAccountCompressorAbi = [
|
|
|
70
181
|
internalType: "address[]",
|
|
71
182
|
type: "address[]"
|
|
72
183
|
},
|
|
73
|
-
{
|
|
74
|
-
name: "creditManagers",
|
|
75
|
-
internalType: "address[]",
|
|
76
|
-
type: "address[]"
|
|
77
|
-
},
|
|
78
184
|
{ name: "pools", internalType: "address[]", type: "address[]" },
|
|
79
185
|
{ name: "underlying", internalType: "address", type: "address" }
|
|
80
186
|
]
|
|
@@ -86,8 +192,8 @@ const iCreditAccountCompressorAbi = [
|
|
|
86
192
|
components: [
|
|
87
193
|
{ name: "owner", internalType: "address", type: "address" },
|
|
88
194
|
{ name: "includeZeroDebt", internalType: "bool", type: "bool" },
|
|
89
|
-
{ name: "minHealthFactor", internalType: "
|
|
90
|
-
{ name: "maxHealthFactor", internalType: "
|
|
195
|
+
{ name: "minHealthFactor", internalType: "uint16", type: "uint16" },
|
|
196
|
+
{ name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
|
|
91
197
|
{ name: "reverting", internalType: "bool", type: "bool" }
|
|
92
198
|
]
|
|
93
199
|
}
|
|
@@ -126,7 +232,7 @@ const iCreditAccountCompressorAbi = [
|
|
|
126
232
|
{ name: "totalValueUSD", internalType: "uint256", type: "uint256" },
|
|
127
233
|
{ name: "twvUSD", internalType: "uint256", type: "uint256" },
|
|
128
234
|
{ name: "totalValue", internalType: "uint256", type: "uint256" },
|
|
129
|
-
{ name: "healthFactor", internalType: "
|
|
235
|
+
{ name: "healthFactor", internalType: "uint16", type: "uint16" },
|
|
130
236
|
{ name: "success", internalType: "bool", type: "bool" },
|
|
131
237
|
{
|
|
132
238
|
name: "tokens",
|
|
@@ -150,7 +256,7 @@ const iCreditAccountCompressorAbi = [
|
|
|
150
256
|
inputs: [
|
|
151
257
|
{
|
|
152
258
|
name: "cmFilter",
|
|
153
|
-
internalType: "struct
|
|
259
|
+
internalType: "struct MarketFilter",
|
|
154
260
|
type: "tuple",
|
|
155
261
|
components: [
|
|
156
262
|
{
|
|
@@ -158,11 +264,6 @@ const iCreditAccountCompressorAbi = [
|
|
|
158
264
|
internalType: "address[]",
|
|
159
265
|
type: "address[]"
|
|
160
266
|
},
|
|
161
|
-
{
|
|
162
|
-
name: "creditManagers",
|
|
163
|
-
internalType: "address[]",
|
|
164
|
-
type: "address[]"
|
|
165
|
-
},
|
|
166
267
|
{ name: "pools", internalType: "address[]", type: "address[]" },
|
|
167
268
|
{ name: "underlying", internalType: "address", type: "address" }
|
|
168
269
|
]
|
|
@@ -174,13 +275,12 @@ const iCreditAccountCompressorAbi = [
|
|
|
174
275
|
components: [
|
|
175
276
|
{ name: "owner", internalType: "address", type: "address" },
|
|
176
277
|
{ name: "includeZeroDebt", internalType: "bool", type: "bool" },
|
|
177
|
-
{ name: "minHealthFactor", internalType: "
|
|
178
|
-
{ name: "maxHealthFactor", internalType: "
|
|
278
|
+
{ name: "minHealthFactor", internalType: "uint16", type: "uint16" },
|
|
279
|
+
{ name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
|
|
179
280
|
{ name: "reverting", internalType: "bool", type: "bool" }
|
|
180
281
|
]
|
|
181
282
|
},
|
|
182
|
-
{ name: "offset", internalType: "uint256", type: "uint256" }
|
|
183
|
-
{ name: "limit", internalType: "uint256", type: "uint256" }
|
|
283
|
+
{ name: "offset", internalType: "uint256", type: "uint256" }
|
|
184
284
|
],
|
|
185
285
|
name: "getCreditAccounts",
|
|
186
286
|
outputs: [
|
|
@@ -207,7 +307,7 @@ const iCreditAccountCompressorAbi = [
|
|
|
207
307
|
{ name: "totalValueUSD", internalType: "uint256", type: "uint256" },
|
|
208
308
|
{ name: "twvUSD", internalType: "uint256", type: "uint256" },
|
|
209
309
|
{ name: "totalValue", internalType: "uint256", type: "uint256" },
|
|
210
|
-
{ name: "healthFactor", internalType: "
|
|
310
|
+
{ name: "healthFactor", internalType: "uint16", type: "uint16" },
|
|
211
311
|
{ name: "success", internalType: "bool", type: "bool" },
|
|
212
312
|
{
|
|
213
313
|
name: "tokens",
|
|
@@ -238,8 +338,8 @@ const iCreditAccountCompressorAbi = [
|
|
|
238
338
|
components: [
|
|
239
339
|
{ name: "owner", internalType: "address", type: "address" },
|
|
240
340
|
{ name: "includeZeroDebt", internalType: "bool", type: "bool" },
|
|
241
|
-
{ name: "minHealthFactor", internalType: "
|
|
242
|
-
{ name: "maxHealthFactor", internalType: "
|
|
341
|
+
{ name: "minHealthFactor", internalType: "uint16", type: "uint16" },
|
|
342
|
+
{ name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
|
|
243
343
|
{ name: "reverting", internalType: "bool", type: "bool" }
|
|
244
344
|
]
|
|
245
345
|
},
|
|
@@ -270,7 +370,7 @@ const iCreditAccountCompressorAbi = [
|
|
|
270
370
|
{ name: "totalValueUSD", internalType: "uint256", type: "uint256" },
|
|
271
371
|
{ name: "twvUSD", internalType: "uint256", type: "uint256" },
|
|
272
372
|
{ name: "totalValue", internalType: "uint256", type: "uint256" },
|
|
273
|
-
{ name: "healthFactor", internalType: "
|
|
373
|
+
{ name: "healthFactor", internalType: "uint16", type: "uint16" },
|
|
274
374
|
{ name: "success", internalType: "bool", type: "bool" },
|
|
275
375
|
{
|
|
276
376
|
name: "tokens",
|
|
@@ -301,8 +401,8 @@ const iCreditAccountCompressorAbi = [
|
|
|
301
401
|
components: [
|
|
302
402
|
{ name: "owner", internalType: "address", type: "address" },
|
|
303
403
|
{ name: "includeZeroDebt", internalType: "bool", type: "bool" },
|
|
304
|
-
{ name: "minHealthFactor", internalType: "
|
|
305
|
-
{ name: "maxHealthFactor", internalType: "
|
|
404
|
+
{ name: "minHealthFactor", internalType: "uint16", type: "uint16" },
|
|
405
|
+
{ name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
|
|
306
406
|
{ name: "reverting", internalType: "bool", type: "bool" }
|
|
307
407
|
]
|
|
308
408
|
},
|
|
@@ -334,7 +434,7 @@ const iCreditAccountCompressorAbi = [
|
|
|
334
434
|
{ name: "totalValueUSD", internalType: "uint256", type: "uint256" },
|
|
335
435
|
{ name: "twvUSD", internalType: "uint256", type: "uint256" },
|
|
336
436
|
{ name: "totalValue", internalType: "uint256", type: "uint256" },
|
|
337
|
-
{ name: "healthFactor", internalType: "
|
|
437
|
+
{ name: "healthFactor", internalType: "uint16", type: "uint16" },
|
|
338
438
|
{ name: "success", internalType: "bool", type: "bool" },
|
|
339
439
|
{
|
|
340
440
|
name: "tokens",
|
|
@@ -359,7 +459,7 @@ const iCreditAccountCompressorAbi = [
|
|
|
359
459
|
inputs: [
|
|
360
460
|
{
|
|
361
461
|
name: "cmFilter",
|
|
362
|
-
internalType: "struct
|
|
462
|
+
internalType: "struct MarketFilter",
|
|
363
463
|
type: "tuple",
|
|
364
464
|
components: [
|
|
365
465
|
{
|
|
@@ -367,11 +467,6 @@ const iCreditAccountCompressorAbi = [
|
|
|
367
467
|
internalType: "address[]",
|
|
368
468
|
type: "address[]"
|
|
369
469
|
},
|
|
370
|
-
{
|
|
371
|
-
name: "creditManagers",
|
|
372
|
-
internalType: "address[]",
|
|
373
|
-
type: "address[]"
|
|
374
|
-
},
|
|
375
470
|
{ name: "pools", internalType: "address[]", type: "address[]" },
|
|
376
471
|
{ name: "underlying", internalType: "address", type: "address" }
|
|
377
472
|
]
|
|
@@ -383,12 +478,13 @@ const iCreditAccountCompressorAbi = [
|
|
|
383
478
|
components: [
|
|
384
479
|
{ name: "owner", internalType: "address", type: "address" },
|
|
385
480
|
{ name: "includeZeroDebt", internalType: "bool", type: "bool" },
|
|
386
|
-
{ name: "minHealthFactor", internalType: "
|
|
387
|
-
{ name: "maxHealthFactor", internalType: "
|
|
481
|
+
{ name: "minHealthFactor", internalType: "uint16", type: "uint16" },
|
|
482
|
+
{ name: "maxHealthFactor", internalType: "uint16", type: "uint16" },
|
|
388
483
|
{ name: "reverting", internalType: "bool", type: "bool" }
|
|
389
484
|
]
|
|
390
485
|
},
|
|
391
|
-
{ name: "offset", internalType: "uint256", type: "uint256" }
|
|
486
|
+
{ name: "offset", internalType: "uint256", type: "uint256" },
|
|
487
|
+
{ name: "limit", internalType: "uint256", type: "uint256" }
|
|
392
488
|
],
|
|
393
489
|
name: "getCreditAccounts",
|
|
394
490
|
outputs: [
|
|
@@ -415,7 +511,7 @@ const iCreditAccountCompressorAbi = [
|
|
|
415
511
|
{ name: "totalValueUSD", internalType: "uint256", type: "uint256" },
|
|
416
512
|
{ name: "twvUSD", internalType: "uint256", type: "uint256" },
|
|
417
513
|
{ name: "totalValue", internalType: "uint256", type: "uint256" },
|
|
418
|
-
{ name: "healthFactor", internalType: "
|
|
514
|
+
{ name: "healthFactor", internalType: "uint16", type: "uint16" },
|
|
419
515
|
{ name: "success", internalType: "bool", type: "bool" },
|
|
420
516
|
{
|
|
421
517
|
name: "tokens",
|
|
@@ -451,115 +547,6 @@ const iCreditSuiteCompressorAbi = [
|
|
|
451
547
|
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
452
548
|
stateMutability: "view"
|
|
453
549
|
},
|
|
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
|
-
},
|
|
563
550
|
{
|
|
564
551
|
type: "function",
|
|
565
552
|
inputs: [
|
|
@@ -591,6 +578,7 @@ const iCreditSuiteCompressorAbi = [
|
|
|
591
578
|
}
|
|
592
579
|
]
|
|
593
580
|
},
|
|
581
|
+
{ name: "creditManager", internalType: "address", type: "address" },
|
|
594
582
|
{ name: "degenNFT", internalType: "address", type: "address" },
|
|
595
583
|
{ name: "botList", internalType: "address", type: "address" },
|
|
596
584
|
{ name: "expirable", internalType: "bool", type: "bool" },
|
|
@@ -603,7 +591,7 @@ const iCreditSuiteCompressorAbi = [
|
|
|
603
591
|
{ name: "minDebt", internalType: "uint256", type: "uint256" },
|
|
604
592
|
{ name: "maxDebt", internalType: "uint256", type: "uint256" },
|
|
605
593
|
{
|
|
606
|
-
name: "
|
|
594
|
+
name: "forbiddenTokenMask",
|
|
607
595
|
internalType: "uint256",
|
|
608
596
|
type: "uint256"
|
|
609
597
|
},
|
|
@@ -726,6 +714,11 @@ const iCreditSuiteCompressorAbi = [
|
|
|
726
714
|
}
|
|
727
715
|
]
|
|
728
716
|
},
|
|
717
|
+
{
|
|
718
|
+
name: "creditManager",
|
|
719
|
+
internalType: "address",
|
|
720
|
+
type: "address"
|
|
721
|
+
},
|
|
729
722
|
{ name: "degenNFT", internalType: "address", type: "address" },
|
|
730
723
|
{ name: "botList", internalType: "address", type: "address" },
|
|
731
724
|
{ name: "expirable", internalType: "bool", type: "bool" },
|
|
@@ -742,7 +735,7 @@ const iCreditSuiteCompressorAbi = [
|
|
|
742
735
|
{ name: "minDebt", internalType: "uint256", type: "uint256" },
|
|
743
736
|
{ name: "maxDebt", internalType: "uint256", type: "uint256" },
|
|
744
737
|
{
|
|
745
|
-
name: "
|
|
738
|
+
name: "forbiddenTokenMask",
|
|
746
739
|
internalType: "uint256",
|
|
747
740
|
type: "uint256"
|
|
748
741
|
},
|
|
@@ -858,280 +851,6 @@ const iCreditSuiteCompressorAbi = [
|
|
|
858
851
|
}
|
|
859
852
|
]
|
|
860
853
|
},
|
|
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
|
-
},
|
|
887
|
-
{
|
|
888
|
-
name: "adapters",
|
|
889
|
-
internalType: "struct AdapterState[]",
|
|
890
|
-
type: "tuple[]",
|
|
891
|
-
components: [
|
|
892
|
-
{
|
|
893
|
-
name: "baseParams",
|
|
894
|
-
internalType: "struct BaseParams",
|
|
895
|
-
type: "tuple",
|
|
896
|
-
components: [
|
|
897
|
-
{ name: "addr", internalType: "address", type: "address" },
|
|
898
|
-
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
899
|
-
{
|
|
900
|
-
name: "contractType",
|
|
901
|
-
internalType: "bytes32",
|
|
902
|
-
type: "bytes32"
|
|
903
|
-
},
|
|
904
|
-
{
|
|
905
|
-
name: "serializedParams",
|
|
906
|
-
internalType: "bytes",
|
|
907
|
-
type: "bytes"
|
|
908
|
-
}
|
|
909
|
-
]
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
name: "targetContract",
|
|
913
|
-
internalType: "address",
|
|
914
|
-
type: "address"
|
|
915
|
-
}
|
|
916
|
-
]
|
|
917
|
-
}
|
|
918
|
-
]
|
|
919
|
-
}
|
|
920
|
-
],
|
|
921
|
-
stateMutability: "view"
|
|
922
|
-
},
|
|
923
|
-
{
|
|
924
|
-
type: "function",
|
|
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
854
|
{
|
|
1136
855
|
name: "adapters",
|
|
1137
856
|
internalType: "struct AdapterState[]",
|
|
@@ -1190,10 +909,10 @@ const iGaugeCompressorAbi = [
|
|
|
1190
909
|
{ name: "gauge", internalType: "address", type: "address" },
|
|
1191
910
|
{ name: "staker", internalType: "address", type: "address" }
|
|
1192
911
|
],
|
|
1193
|
-
name: "
|
|
912
|
+
name: "getGauge",
|
|
1194
913
|
outputs: [
|
|
1195
914
|
{
|
|
1196
|
-
name: "",
|
|
915
|
+
name: "result",
|
|
1197
916
|
internalType: "struct GaugeInfo",
|
|
1198
917
|
type: "tuple",
|
|
1199
918
|
components: [
|
|
@@ -1263,7 +982,7 @@ const iGaugeCompressorAbi = [
|
|
|
1263
982
|
name: "getGauges",
|
|
1264
983
|
outputs: [
|
|
1265
984
|
{
|
|
1266
|
-
name: "",
|
|
985
|
+
name: "result",
|
|
1267
986
|
internalType: "struct GaugeInfo[]",
|
|
1268
987
|
type: "tuple[]",
|
|
1269
988
|
components: [
|
|
@@ -1327,76 +1046,6 @@ const iMarketCompressorAbi = [
|
|
|
1327
1046
|
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
1328
1047
|
stateMutability: "view"
|
|
1329
1048
|
},
|
|
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
|
-
},
|
|
1400
1049
|
{
|
|
1401
1050
|
type: "function",
|
|
1402
1051
|
inputs: [
|
|
@@ -1406,7 +1055,7 @@ const iMarketCompressorAbi = [
|
|
|
1406
1055
|
name: "getMarketData",
|
|
1407
1056
|
outputs: [
|
|
1408
1057
|
{
|
|
1409
|
-
name: "",
|
|
1058
|
+
name: "result",
|
|
1410
1059
|
internalType: "struct MarketData",
|
|
1411
1060
|
type: "tuple",
|
|
1412
1061
|
components: [
|
|
@@ -1445,7 +1094,11 @@ const iMarketCompressorAbi = [
|
|
|
1445
1094
|
{ name: "name", internalType: "string", type: "string" },
|
|
1446
1095
|
{ name: "decimals", internalType: "uint8", type: "uint8" },
|
|
1447
1096
|
{ name: "totalSupply", internalType: "uint256", type: "uint256" },
|
|
1448
|
-
{
|
|
1097
|
+
{
|
|
1098
|
+
name: "poolQuotaKeeper",
|
|
1099
|
+
internalType: "address",
|
|
1100
|
+
type: "address"
|
|
1101
|
+
},
|
|
1449
1102
|
{
|
|
1450
1103
|
name: "interestRateModel",
|
|
1451
1104
|
internalType: "address",
|
|
@@ -1537,8 +1190,8 @@ const iMarketCompressorAbi = [
|
|
|
1537
1190
|
]
|
|
1538
1191
|
},
|
|
1539
1192
|
{
|
|
1540
|
-
name: "
|
|
1541
|
-
internalType: "struct
|
|
1193
|
+
name: "poolQuotaKeeper",
|
|
1194
|
+
internalType: "struct PoolQuotaKeeperState",
|
|
1542
1195
|
type: "tuple",
|
|
1543
1196
|
components: [
|
|
1544
1197
|
{
|
|
@@ -1661,7 +1314,7 @@ const iMarketCompressorAbi = [
|
|
|
1661
1314
|
]
|
|
1662
1315
|
},
|
|
1663
1316
|
{
|
|
1664
|
-
name: "
|
|
1317
|
+
name: "priceOracleData",
|
|
1665
1318
|
internalType: "struct PriceOracleState",
|
|
1666
1319
|
type: "tuple",
|
|
1667
1320
|
components: [
|
|
@@ -1685,7 +1338,7 @@ const iMarketCompressorAbi = [
|
|
|
1685
1338
|
]
|
|
1686
1339
|
},
|
|
1687
1340
|
{
|
|
1688
|
-
name: "
|
|
1341
|
+
name: "priceFeedMapping",
|
|
1689
1342
|
internalType: "struct PriceFeedMapEntry[]",
|
|
1690
1343
|
type: "tuple[]",
|
|
1691
1344
|
components: [
|
|
@@ -1704,7 +1357,7 @@ const iMarketCompressorAbi = [
|
|
|
1704
1357
|
]
|
|
1705
1358
|
},
|
|
1706
1359
|
{
|
|
1707
|
-
name: "
|
|
1360
|
+
name: "priceFeedStructure",
|
|
1708
1361
|
internalType: "struct PriceFeedTreeNode[]",
|
|
1709
1362
|
type: "tuple[]",
|
|
1710
1363
|
components: [
|
|
@@ -1845,6 +1498,11 @@ const iMarketCompressorAbi = [
|
|
|
1845
1498
|
}
|
|
1846
1499
|
]
|
|
1847
1500
|
},
|
|
1501
|
+
{
|
|
1502
|
+
name: "creditManager",
|
|
1503
|
+
internalType: "address",
|
|
1504
|
+
type: "address"
|
|
1505
|
+
},
|
|
1848
1506
|
{
|
|
1849
1507
|
name: "degenNFT",
|
|
1850
1508
|
internalType: "address",
|
|
@@ -1865,7 +1523,7 @@ const iMarketCompressorAbi = [
|
|
|
1865
1523
|
{ name: "minDebt", internalType: "uint256", type: "uint256" },
|
|
1866
1524
|
{ name: "maxDebt", internalType: "uint256", type: "uint256" },
|
|
1867
1525
|
{
|
|
1868
|
-
name: "
|
|
1526
|
+
name: "forbiddenTokenMask",
|
|
1869
1527
|
internalType: "uint256",
|
|
1870
1528
|
type: "uint256"
|
|
1871
1529
|
},
|
|
@@ -2009,40 +1667,6 @@ const iMarketCompressorAbi = [
|
|
|
2009
1667
|
}
|
|
2010
1668
|
]
|
|
2011
1669
|
},
|
|
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
|
-
},
|
|
2046
1670
|
{
|
|
2047
1671
|
name: "adapters",
|
|
2048
1672
|
internalType: "struct AdapterState[]",
|
|
@@ -2111,7 +1735,7 @@ const iMarketCompressorAbi = [
|
|
|
2111
1735
|
name: "getMarketData",
|
|
2112
1736
|
outputs: [
|
|
2113
1737
|
{
|
|
2114
|
-
name: "",
|
|
1738
|
+
name: "result",
|
|
2115
1739
|
internalType: "struct MarketData",
|
|
2116
1740
|
type: "tuple",
|
|
2117
1741
|
components: [
|
|
@@ -2150,7 +1774,11 @@ const iMarketCompressorAbi = [
|
|
|
2150
1774
|
{ name: "name", internalType: "string", type: "string" },
|
|
2151
1775
|
{ name: "decimals", internalType: "uint8", type: "uint8" },
|
|
2152
1776
|
{ name: "totalSupply", internalType: "uint256", type: "uint256" },
|
|
2153
|
-
{
|
|
1777
|
+
{
|
|
1778
|
+
name: "poolQuotaKeeper",
|
|
1779
|
+
internalType: "address",
|
|
1780
|
+
type: "address"
|
|
1781
|
+
},
|
|
2154
1782
|
{
|
|
2155
1783
|
name: "interestRateModel",
|
|
2156
1784
|
internalType: "address",
|
|
@@ -2242,8 +1870,8 @@ const iMarketCompressorAbi = [
|
|
|
2242
1870
|
]
|
|
2243
1871
|
},
|
|
2244
1872
|
{
|
|
2245
|
-
name: "
|
|
2246
|
-
internalType: "struct
|
|
1873
|
+
name: "poolQuotaKeeper",
|
|
1874
|
+
internalType: "struct PoolQuotaKeeperState",
|
|
2247
1875
|
type: "tuple",
|
|
2248
1876
|
components: [
|
|
2249
1877
|
{
|
|
@@ -2366,7 +1994,7 @@ const iMarketCompressorAbi = [
|
|
|
2366
1994
|
]
|
|
2367
1995
|
},
|
|
2368
1996
|
{
|
|
2369
|
-
name: "
|
|
1997
|
+
name: "priceOracleData",
|
|
2370
1998
|
internalType: "struct PriceOracleState",
|
|
2371
1999
|
type: "tuple",
|
|
2372
2000
|
components: [
|
|
@@ -2390,7 +2018,7 @@ const iMarketCompressorAbi = [
|
|
|
2390
2018
|
]
|
|
2391
2019
|
},
|
|
2392
2020
|
{
|
|
2393
|
-
name: "
|
|
2021
|
+
name: "priceFeedMapping",
|
|
2394
2022
|
internalType: "struct PriceFeedMapEntry[]",
|
|
2395
2023
|
type: "tuple[]",
|
|
2396
2024
|
components: [
|
|
@@ -2409,7 +2037,7 @@ const iMarketCompressorAbi = [
|
|
|
2409
2037
|
]
|
|
2410
2038
|
},
|
|
2411
2039
|
{
|
|
2412
|
-
name: "
|
|
2040
|
+
name: "priceFeedStructure",
|
|
2413
2041
|
internalType: "struct PriceFeedTreeNode[]",
|
|
2414
2042
|
type: "tuple[]",
|
|
2415
2043
|
components: [
|
|
@@ -2550,6 +2178,11 @@ const iMarketCompressorAbi = [
|
|
|
2550
2178
|
}
|
|
2551
2179
|
]
|
|
2552
2180
|
},
|
|
2181
|
+
{
|
|
2182
|
+
name: "creditManager",
|
|
2183
|
+
internalType: "address",
|
|
2184
|
+
type: "address"
|
|
2185
|
+
},
|
|
2553
2186
|
{
|
|
2554
2187
|
name: "degenNFT",
|
|
2555
2188
|
internalType: "address",
|
|
@@ -2570,7 +2203,7 @@ const iMarketCompressorAbi = [
|
|
|
2570
2203
|
{ name: "minDebt", internalType: "uint256", type: "uint256" },
|
|
2571
2204
|
{ name: "maxDebt", internalType: "uint256", type: "uint256" },
|
|
2572
2205
|
{
|
|
2573
|
-
name: "
|
|
2206
|
+
name: "forbiddenTokenMask",
|
|
2574
2207
|
internalType: "uint256",
|
|
2575
2208
|
type: "uint256"
|
|
2576
2209
|
},
|
|
@@ -2714,40 +2347,6 @@ const iMarketCompressorAbi = [
|
|
|
2714
2347
|
}
|
|
2715
2348
|
]
|
|
2716
2349
|
},
|
|
2717
|
-
{
|
|
2718
|
-
name: "accountFactory",
|
|
2719
|
-
internalType: "struct BaseState",
|
|
2720
|
-
type: "tuple",
|
|
2721
|
-
components: [
|
|
2722
|
-
{
|
|
2723
|
-
name: "baseParams",
|
|
2724
|
-
internalType: "struct BaseParams",
|
|
2725
|
-
type: "tuple",
|
|
2726
|
-
components: [
|
|
2727
|
-
{
|
|
2728
|
-
name: "addr",
|
|
2729
|
-
internalType: "address",
|
|
2730
|
-
type: "address"
|
|
2731
|
-
},
|
|
2732
|
-
{
|
|
2733
|
-
name: "version",
|
|
2734
|
-
internalType: "uint256",
|
|
2735
|
-
type: "uint256"
|
|
2736
|
-
},
|
|
2737
|
-
{
|
|
2738
|
-
name: "contractType",
|
|
2739
|
-
internalType: "bytes32",
|
|
2740
|
-
type: "bytes32"
|
|
2741
|
-
},
|
|
2742
|
-
{
|
|
2743
|
-
name: "serializedParams",
|
|
2744
|
-
internalType: "bytes",
|
|
2745
|
-
type: "bytes"
|
|
2746
|
-
}
|
|
2747
|
-
]
|
|
2748
|
-
}
|
|
2749
|
-
]
|
|
2750
|
-
},
|
|
2751
2350
|
{
|
|
2752
2351
|
name: "adapters",
|
|
2753
2352
|
internalType: "struct AdapterState[]",
|
|
@@ -2831,7 +2430,7 @@ const iMarketCompressorAbi = [
|
|
|
2831
2430
|
name: "getMarkets",
|
|
2832
2431
|
outputs: [
|
|
2833
2432
|
{
|
|
2834
|
-
name: "",
|
|
2433
|
+
name: "result",
|
|
2835
2434
|
internalType: "struct MarketData[]",
|
|
2836
2435
|
type: "tuple[]",
|
|
2837
2436
|
components: [
|
|
@@ -2870,7 +2469,11 @@ const iMarketCompressorAbi = [
|
|
|
2870
2469
|
{ name: "name", internalType: "string", type: "string" },
|
|
2871
2470
|
{ name: "decimals", internalType: "uint8", type: "uint8" },
|
|
2872
2471
|
{ name: "totalSupply", internalType: "uint256", type: "uint256" },
|
|
2873
|
-
{
|
|
2472
|
+
{
|
|
2473
|
+
name: "poolQuotaKeeper",
|
|
2474
|
+
internalType: "address",
|
|
2475
|
+
type: "address"
|
|
2476
|
+
},
|
|
2874
2477
|
{
|
|
2875
2478
|
name: "interestRateModel",
|
|
2876
2479
|
internalType: "address",
|
|
@@ -2962,8 +2565,8 @@ const iMarketCompressorAbi = [
|
|
|
2962
2565
|
]
|
|
2963
2566
|
},
|
|
2964
2567
|
{
|
|
2965
|
-
name: "
|
|
2966
|
-
internalType: "struct
|
|
2568
|
+
name: "poolQuotaKeeper",
|
|
2569
|
+
internalType: "struct PoolQuotaKeeperState",
|
|
2967
2570
|
type: "tuple",
|
|
2968
2571
|
components: [
|
|
2969
2572
|
{
|
|
@@ -3086,7 +2689,7 @@ const iMarketCompressorAbi = [
|
|
|
3086
2689
|
]
|
|
3087
2690
|
},
|
|
3088
2691
|
{
|
|
3089
|
-
name: "
|
|
2692
|
+
name: "priceOracleData",
|
|
3090
2693
|
internalType: "struct PriceOracleState",
|
|
3091
2694
|
type: "tuple",
|
|
3092
2695
|
components: [
|
|
@@ -3110,7 +2713,7 @@ const iMarketCompressorAbi = [
|
|
|
3110
2713
|
]
|
|
3111
2714
|
},
|
|
3112
2715
|
{
|
|
3113
|
-
name: "
|
|
2716
|
+
name: "priceFeedMapping",
|
|
3114
2717
|
internalType: "struct PriceFeedMapEntry[]",
|
|
3115
2718
|
type: "tuple[]",
|
|
3116
2719
|
components: [
|
|
@@ -3129,7 +2732,7 @@ const iMarketCompressorAbi = [
|
|
|
3129
2732
|
]
|
|
3130
2733
|
},
|
|
3131
2734
|
{
|
|
3132
|
-
name: "
|
|
2735
|
+
name: "priceFeedStructure",
|
|
3133
2736
|
internalType: "struct PriceFeedTreeNode[]",
|
|
3134
2737
|
type: "tuple[]",
|
|
3135
2738
|
components: [
|
|
@@ -3270,6 +2873,11 @@ const iMarketCompressorAbi = [
|
|
|
3270
2873
|
}
|
|
3271
2874
|
]
|
|
3272
2875
|
},
|
|
2876
|
+
{
|
|
2877
|
+
name: "creditManager",
|
|
2878
|
+
internalType: "address",
|
|
2879
|
+
type: "address"
|
|
2880
|
+
},
|
|
3273
2881
|
{
|
|
3274
2882
|
name: "degenNFT",
|
|
3275
2883
|
internalType: "address",
|
|
@@ -3290,7 +2898,7 @@ const iMarketCompressorAbi = [
|
|
|
3290
2898
|
{ name: "minDebt", internalType: "uint256", type: "uint256" },
|
|
3291
2899
|
{ name: "maxDebt", internalType: "uint256", type: "uint256" },
|
|
3292
2900
|
{
|
|
3293
|
-
name: "
|
|
2901
|
+
name: "forbiddenTokenMask",
|
|
3294
2902
|
internalType: "uint256",
|
|
3295
2903
|
type: "uint256"
|
|
3296
2904
|
},
|
|
@@ -3434,40 +3042,6 @@ const iMarketCompressorAbi = [
|
|
|
3434
3042
|
}
|
|
3435
3043
|
]
|
|
3436
3044
|
},
|
|
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
|
-
},
|
|
3471
3045
|
{
|
|
3472
3046
|
name: "adapters",
|
|
3473
3047
|
internalType: "struct AdapterState[]",
|
|
@@ -3532,229 +3106,55 @@ const iMarketCompressorAbi = [
|
|
|
3532
3106
|
},
|
|
3533
3107
|
{
|
|
3534
3108
|
type: "function",
|
|
3535
|
-
inputs: [
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
}
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
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",
|
|
3694
|
-
internalType: "address[]",
|
|
3695
|
-
type: "address[]"
|
|
3696
|
-
},
|
|
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
|
-
}
|
|
3745
|
-
]
|
|
3746
|
-
}
|
|
3747
|
-
],
|
|
3748
|
-
stateMutability: "view"
|
|
3749
|
-
},
|
|
3750
|
-
{
|
|
3751
|
-
type: "function",
|
|
3109
|
+
inputs: [
|
|
3110
|
+
{
|
|
3111
|
+
name: "filter",
|
|
3112
|
+
internalType: "struct MarketFilter",
|
|
3113
|
+
type: "tuple",
|
|
3114
|
+
components: [
|
|
3115
|
+
{
|
|
3116
|
+
name: "configurators",
|
|
3117
|
+
internalType: "address[]",
|
|
3118
|
+
type: "address[]"
|
|
3119
|
+
},
|
|
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" }
|
|
3136
|
+
]
|
|
3137
|
+
}
|
|
3138
|
+
],
|
|
3139
|
+
stateMutability: "view"
|
|
3140
|
+
},
|
|
3141
|
+
{
|
|
3142
|
+
type: "function",
|
|
3752
3143
|
inputs: [],
|
|
3753
3144
|
name: "version",
|
|
3754
3145
|
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
3755
3146
|
stateMutability: "view"
|
|
3756
3147
|
}
|
|
3757
3148
|
];
|
|
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
|
+
];
|
|
3758
3158
|
const iPeripheryCompressorAbi = [
|
|
3759
3159
|
{
|
|
3760
3160
|
type: "function",
|
|
@@ -3916,7 +3316,7 @@ const iPeripheryCompressorAbi = [
|
|
|
3916
3316
|
stateMutability: "view"
|
|
3917
3317
|
}
|
|
3918
3318
|
];
|
|
3919
|
-
const
|
|
3319
|
+
const iPoolCompressorAbi = [
|
|
3920
3320
|
{
|
|
3921
3321
|
type: "function",
|
|
3922
3322
|
inputs: [],
|
|
@@ -3926,12 +3326,14 @@ const iPriceFeedCompressorAbi = [
|
|
|
3926
3326
|
},
|
|
3927
3327
|
{
|
|
3928
3328
|
type: "function",
|
|
3929
|
-
inputs: [
|
|
3930
|
-
|
|
3329
|
+
inputs: [
|
|
3330
|
+
{ name: "interestRateModel", internalType: "address", type: "address" }
|
|
3331
|
+
],
|
|
3332
|
+
name: "getInterestRateModelState",
|
|
3931
3333
|
outputs: [
|
|
3932
3334
|
{
|
|
3933
3335
|
name: "",
|
|
3934
|
-
internalType: "struct
|
|
3336
|
+
internalType: "struct BaseState",
|
|
3935
3337
|
type: "tuple",
|
|
3936
3338
|
components: [
|
|
3937
3339
|
{
|
|
@@ -3952,76 +3354,215 @@ const iPriceFeedCompressorAbi = [
|
|
|
3952
3354
|
type: "bytes"
|
|
3953
3355
|
}
|
|
3954
3356
|
]
|
|
3955
|
-
}
|
|
3357
|
+
}
|
|
3358
|
+
]
|
|
3359
|
+
}
|
|
3360
|
+
],
|
|
3361
|
+
stateMutability: "view"
|
|
3362
|
+
},
|
|
3363
|
+
{
|
|
3364
|
+
type: "function",
|
|
3365
|
+
inputs: [{ name: "lossPolicy", internalType: "address", type: "address" }],
|
|
3366
|
+
name: "getLossPolicyState",
|
|
3367
|
+
outputs: [
|
|
3368
|
+
{
|
|
3369
|
+
name: "",
|
|
3370
|
+
internalType: "struct BaseState",
|
|
3371
|
+
type: "tuple",
|
|
3372
|
+
components: [
|
|
3956
3373
|
{
|
|
3957
|
-
name: "
|
|
3958
|
-
internalType: "struct
|
|
3959
|
-
type: "tuple
|
|
3374
|
+
name: "baseParams",
|
|
3375
|
+
internalType: "struct BaseParams",
|
|
3376
|
+
type: "tuple",
|
|
3960
3377
|
components: [
|
|
3961
|
-
{ name: "
|
|
3962
|
-
{ name: "
|
|
3963
|
-
{
|
|
3378
|
+
{ name: "addr", internalType: "address", type: "address" },
|
|
3379
|
+
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
3380
|
+
{
|
|
3381
|
+
name: "contractType",
|
|
3382
|
+
internalType: "bytes32",
|
|
3383
|
+
type: "bytes32"
|
|
3384
|
+
},
|
|
3385
|
+
{
|
|
3386
|
+
name: "serializedParams",
|
|
3387
|
+
internalType: "bytes",
|
|
3388
|
+
type: "bytes"
|
|
3389
|
+
}
|
|
3390
|
+
]
|
|
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: [
|
|
3407
|
+
{
|
|
3408
|
+
name: "baseParams",
|
|
3409
|
+
internalType: "struct BaseParams",
|
|
3410
|
+
type: "tuple",
|
|
3411
|
+
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
|
+
},
|
|
3964
3419
|
{
|
|
3965
|
-
name: "
|
|
3966
|
-
internalType: "
|
|
3967
|
-
type: "
|
|
3420
|
+
name: "serializedParams",
|
|
3421
|
+
internalType: "bytes",
|
|
3422
|
+
type: "bytes"
|
|
3968
3423
|
}
|
|
3969
3424
|
]
|
|
3970
3425
|
},
|
|
3426
|
+
{ name: "rateKeeper", internalType: "address", type: "address" },
|
|
3971
3427
|
{
|
|
3972
|
-
name: "
|
|
3973
|
-
internalType: "struct
|
|
3428
|
+
name: "quotas",
|
|
3429
|
+
internalType: "struct QuotaTokenParams[]",
|
|
3974
3430
|
type: "tuple[]",
|
|
3975
3431
|
components: [
|
|
3432
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
3433
|
+
{ name: "rate", internalType: "uint16", type: "uint16" },
|
|
3976
3434
|
{
|
|
3977
|
-
name: "
|
|
3978
|
-
internalType: "
|
|
3979
|
-
type: "
|
|
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
|
-
]
|
|
3435
|
+
name: "cumulativeIndexLU",
|
|
3436
|
+
internalType: "uint192",
|
|
3437
|
+
type: "uint192"
|
|
3994
3438
|
},
|
|
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" },
|
|
3999
3439
|
{
|
|
4000
|
-
name: "
|
|
4001
|
-
internalType: "
|
|
4002
|
-
type: "
|
|
3440
|
+
name: "quotaIncreaseFee",
|
|
3441
|
+
internalType: "uint16",
|
|
3442
|
+
type: "uint16"
|
|
4003
3443
|
},
|
|
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" },
|
|
4004
3481
|
{
|
|
4005
|
-
name: "
|
|
4006
|
-
internalType: "
|
|
4007
|
-
type: "
|
|
3482
|
+
name: "contractType",
|
|
3483
|
+
internalType: "bytes32",
|
|
3484
|
+
type: "bytes32"
|
|
4008
3485
|
},
|
|
4009
3486
|
{
|
|
4010
|
-
name: "
|
|
4011
|
-
internalType: "
|
|
4012
|
-
type: "
|
|
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
|
-
]
|
|
3487
|
+
name: "serializedParams",
|
|
3488
|
+
internalType: "bytes",
|
|
3489
|
+
type: "bytes"
|
|
4022
3490
|
}
|
|
4023
3491
|
]
|
|
4024
|
-
}
|
|
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" }
|
|
4025
3566
|
]
|
|
4026
3567
|
}
|
|
4027
3568
|
],
|
|
@@ -4029,15 +3570,12 @@ const iPriceFeedCompressorAbi = [
|
|
|
4029
3570
|
},
|
|
4030
3571
|
{
|
|
4031
3572
|
type: "function",
|
|
4032
|
-
inputs: [
|
|
4033
|
-
|
|
4034
|
-
{ name: "tokens", internalType: "address[]", type: "address[]" }
|
|
4035
|
-
],
|
|
4036
|
-
name: "getPriceOracleState",
|
|
3573
|
+
inputs: [{ name: "rateKeeper", internalType: "address", type: "address" }],
|
|
3574
|
+
name: "getRateKeeperState",
|
|
4037
3575
|
outputs: [
|
|
4038
3576
|
{
|
|
4039
3577
|
name: "",
|
|
4040
|
-
internalType: "struct
|
|
3578
|
+
internalType: "struct RateKeeperState",
|
|
4041
3579
|
type: "tuple",
|
|
4042
3580
|
components: [
|
|
4043
3581
|
{
|
|
@@ -4060,72 +3598,12 @@ const iPriceFeedCompressorAbi = [
|
|
|
4060
3598
|
]
|
|
4061
3599
|
},
|
|
4062
3600
|
{
|
|
4063
|
-
name: "
|
|
4064
|
-
internalType: "struct
|
|
3601
|
+
name: "rates",
|
|
3602
|
+
internalType: "struct Rate[]",
|
|
4065
3603
|
type: "tuple[]",
|
|
4066
3604
|
components: [
|
|
4067
3605
|
{ name: "token", internalType: "address", type: "address" },
|
|
4068
|
-
{ name: "
|
|
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
|
-
}
|
|
3606
|
+
{ name: "rate", internalType: "uint16", type: "uint16" }
|
|
4129
3607
|
]
|
|
4130
3608
|
}
|
|
4131
3609
|
]
|
|
@@ -4133,29 +3611,44 @@ const iPriceFeedCompressorAbi = [
|
|
|
4133
3611
|
],
|
|
4134
3612
|
stateMutability: "view"
|
|
4135
3613
|
},
|
|
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
|
+
},
|
|
4136
3630
|
{
|
|
4137
3631
|
type: "function",
|
|
4138
3632
|
inputs: [
|
|
3633
|
+
{ name: "priceOracle", internalType: "address", type: "address" },
|
|
3634
|
+
{ name: "tokens", internalType: "address[]", type: "address[]" }
|
|
3635
|
+
],
|
|
3636
|
+
name: "getPriceFeeds",
|
|
3637
|
+
outputs: [
|
|
4139
3638
|
{
|
|
4140
|
-
name: "
|
|
4141
|
-
internalType: "struct
|
|
4142
|
-
type: "tuple",
|
|
3639
|
+
name: "priceFeedMap",
|
|
3640
|
+
internalType: "struct PriceFeedMapEntry[]",
|
|
3641
|
+
type: "tuple[]",
|
|
4143
3642
|
components: [
|
|
4144
|
-
{
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
},
|
|
4149
|
-
{ name: "pools", internalType: "address[]", type: "address[]" },
|
|
4150
|
-
{ name: "underlying", internalType: "address", type: "address" }
|
|
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" }
|
|
4151
3647
|
]
|
|
4152
|
-
}
|
|
4153
|
-
],
|
|
4154
|
-
name: "getPriceOracles",
|
|
4155
|
-
outputs: [
|
|
3648
|
+
},
|
|
4156
3649
|
{
|
|
4157
|
-
name: "",
|
|
4158
|
-
internalType: "struct
|
|
3650
|
+
name: "priceFeedTree",
|
|
3651
|
+
internalType: "struct PriceFeedTreeNode[]",
|
|
4159
3652
|
type: "tuple[]",
|
|
4160
3653
|
components: [
|
|
4161
3654
|
{
|
|
@@ -4177,73 +3670,28 @@ const iPriceFeedCompressorAbi = [
|
|
|
4177
3670
|
}
|
|
4178
3671
|
]
|
|
4179
3672
|
},
|
|
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" },
|
|
4180
3677
|
{
|
|
4181
|
-
name: "
|
|
4182
|
-
internalType: "
|
|
4183
|
-
type: "
|
|
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
|
-
]
|
|
3678
|
+
name: "underlyingFeeds",
|
|
3679
|
+
internalType: "address[]",
|
|
3680
|
+
type: "address[]"
|
|
4194
3681
|
},
|
|
4195
3682
|
{
|
|
4196
|
-
name: "
|
|
4197
|
-
internalType: "
|
|
4198
|
-
type: "
|
|
3683
|
+
name: "underlyingStalenessPeriods",
|
|
3684
|
+
internalType: "uint32[]",
|
|
3685
|
+
type: "uint32[]"
|
|
3686
|
+
},
|
|
3687
|
+
{
|
|
3688
|
+
name: "answer",
|
|
3689
|
+
internalType: "struct PriceFeedAnswer",
|
|
3690
|
+
type: "tuple",
|
|
4199
3691
|
components: [
|
|
4200
|
-
{
|
|
4201
|
-
|
|
4202
|
-
|
|
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
|
-
}
|
|
3692
|
+
{ name: "price", internalType: "int256", type: "int256" },
|
|
3693
|
+
{ name: "updatedAt", internalType: "uint256", type: "uint256" },
|
|
3694
|
+
{ name: "success", internalType: "bool", type: "bool" }
|
|
4247
3695
|
]
|
|
4248
3696
|
}
|
|
4249
3697
|
]
|
|
@@ -4253,81 +3701,22 @@ const iPriceFeedCompressorAbi = [
|
|
|
4253
3701
|
},
|
|
4254
3702
|
{
|
|
4255
3703
|
type: "function",
|
|
4256
|
-
inputs: [
|
|
4257
|
-
|
|
4258
|
-
],
|
|
4259
|
-
name: "getUpdatablePriceFeeds",
|
|
4260
|
-
outputs: [
|
|
4261
|
-
{
|
|
4262
|
-
name: "",
|
|
4263
|
-
internalType: "struct BaseParams[]",
|
|
4264
|
-
type: "tuple[]",
|
|
4265
|
-
components: [
|
|
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" }
|
|
4270
|
-
]
|
|
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",
|
|
3704
|
+
inputs: [{ name: "priceOracle", internalType: "address", type: "address" }],
|
|
3705
|
+
name: "getPriceFeeds",
|
|
4294
3706
|
outputs: [
|
|
4295
3707
|
{
|
|
4296
|
-
name: "",
|
|
4297
|
-
internalType: "struct
|
|
3708
|
+
name: "priceFeedMap",
|
|
3709
|
+
internalType: "struct PriceFeedMapEntry[]",
|
|
4298
3710
|
type: "tuple[]",
|
|
4299
3711
|
components: [
|
|
4300
|
-
{ name: "
|
|
4301
|
-
{ name: "
|
|
4302
|
-
{ name: "
|
|
4303
|
-
{ name: "
|
|
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" }
|
|
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" }
|
|
4324
3716
|
]
|
|
4325
|
-
}
|
|
4326
|
-
],
|
|
4327
|
-
name: "loadPriceFeedTree",
|
|
4328
|
-
outputs: [
|
|
3717
|
+
},
|
|
4329
3718
|
{
|
|
4330
|
-
name: "",
|
|
3719
|
+
name: "priceFeedTree",
|
|
4331
3720
|
internalType: "struct PriceFeedTreeNode[]",
|
|
4332
3721
|
type: "tuple[]",
|
|
4333
3722
|
components: [
|
|
@@ -4387,7 +3776,7 @@ const iPriceFeedCompressorAbi = [
|
|
|
4387
3776
|
name: "loadPriceFeedTree",
|
|
4388
3777
|
outputs: [
|
|
4389
3778
|
{
|
|
4390
|
-
name: "",
|
|
3779
|
+
name: "priceFeedTree",
|
|
4391
3780
|
internalType: "struct PriceFeedTreeNode[]",
|
|
4392
3781
|
type: "tuple[]",
|
|
4393
3782
|
components: [
|
|
@@ -4445,6 +3834,25 @@ const iPriceFeedCompressorAbi = [
|
|
|
4445
3834
|
name: "version",
|
|
4446
3835
|
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
4447
3836
|
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"
|
|
4448
3856
|
}
|
|
4449
3857
|
];
|
|
4450
3858
|
const iRewardsCompressorAbi = [
|
|
@@ -4502,7 +3910,7 @@ const iTokenCompressorAbi = [
|
|
|
4502
3910
|
name: "getTokenInfo",
|
|
4503
3911
|
outputs: [
|
|
4504
3912
|
{
|
|
4505
|
-
name: "",
|
|
3913
|
+
name: "result",
|
|
4506
3914
|
internalType: "struct TokenData",
|
|
4507
3915
|
type: "tuple",
|
|
4508
3916
|
components: [
|
|
@@ -4515,25 +3923,6 @@ const iTokenCompressorAbi = [
|
|
|
4515
3923
|
],
|
|
4516
3924
|
stateMutability: "view"
|
|
4517
3925
|
},
|
|
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
|
-
},
|
|
4537
3926
|
{
|
|
4538
3927
|
type: "function",
|
|
4539
3928
|
inputs: [],
|
|
@@ -4544,11 +3933,16 @@ const iTokenCompressorAbi = [
|
|
|
4544
3933
|
];
|
|
4545
3934
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4546
3935
|
0 && (module.exports = {
|
|
3936
|
+
iAdapterCompressorAbi,
|
|
3937
|
+
iAuraL2CoordinatorAbi,
|
|
3938
|
+
iConvexTokenAbi,
|
|
4547
3939
|
iCreditAccountCompressorAbi,
|
|
4548
3940
|
iCreditSuiteCompressorAbi,
|
|
4549
3941
|
iGaugeCompressorAbi,
|
|
4550
3942
|
iMarketCompressorAbi,
|
|
3943
|
+
iModifiedBoosterAbi,
|
|
4551
3944
|
iPeripheryCompressorAbi,
|
|
3945
|
+
iPoolCompressorAbi,
|
|
4552
3946
|
iPriceFeedCompressorAbi,
|
|
4553
3947
|
iRewardsCompressorAbi,
|
|
4554
3948
|
iTokenCompressorAbi
|