@1delta/abis 0.0.1 → 0.0.3

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/aave/index.d.ts +3 -0
  2. package/dist/aave/index.d.ts.map +1 -0
  3. package/dist/aave/index.js +2 -0
  4. package/dist/aave/pool.d.ts +1657 -0
  5. package/dist/aave/pool.d.ts.map +1 -0
  6. package/dist/aave/pool.js +883 -0
  7. package/dist/aave/weth-gateway.d.ts +189 -0
  8. package/dist/aave/weth-gateway.d.ts.map +1 -0
  9. package/dist/aave/weth-gateway.js +114 -0
  10. package/dist/compound-v2/c-ether.d.ts +1032 -0
  11. package/dist/compound-v2/c-ether.d.ts.map +1 -0
  12. package/dist/compound-v2/c-ether.js +615 -0
  13. package/dist/compound-v2/comptroller.d.ts +1419 -0
  14. package/dist/compound-v2/comptroller.d.ts.map +1 -0
  15. package/dist/compound-v2/comptroller.js +789 -0
  16. package/dist/compound-v2/index.d.ts +3 -0
  17. package/dist/compound-v2/index.d.ts.map +1 -0
  18. package/dist/compound-v2/index.js +2 -0
  19. package/dist/compound-v3/comet.d.ts +1505 -0
  20. package/dist/compound-v3/comet.d.ts.map +1 -0
  21. package/dist/compound-v3/comet.js +790 -0
  22. package/dist/compound-v3/index.d.ts +2 -0
  23. package/dist/compound-v3/index.d.ts.map +1 -0
  24. package/dist/compound-v3/index.js +1 -0
  25. package/dist/erc20/index.d.ts +2 -0
  26. package/dist/erc20/index.d.ts.map +1 -0
  27. package/dist/erc20/index.js +1 -0
  28. package/dist/index.d.ts +8 -0
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +7 -0
  31. package/dist/morpho/blue.d.ts +1193 -0
  32. package/dist/morpho/blue.d.ts.map +1 -0
  33. package/dist/morpho/blue.js +612 -0
  34. package/dist/morpho/index.d.ts +3 -0
  35. package/dist/morpho/index.d.ts.map +1 -0
  36. package/{src/morpho/index.ts → dist/morpho/index.js} +2 -2
  37. package/dist/morpho/lens.d.ts +128 -0
  38. package/dist/morpho/lens.d.ts.map +1 -0
  39. package/dist/morpho/lens.js +129 -0
  40. package/dist/permissions/index.d.ts +566 -0
  41. package/dist/permissions/index.d.ts.map +1 -0
  42. package/dist/permissions/index.js +715 -0
  43. package/dist/silo-v2/index.d.ts +2 -0
  44. package/dist/silo-v2/index.d.ts.map +1 -0
  45. package/dist/silo-v2/index.js +1 -0
  46. package/dist/silo-v2/silo.d.ts +1980 -0
  47. package/dist/silo-v2/silo.d.ts.map +1 -0
  48. package/dist/silo-v2/silo.js +1031 -0
  49. package/package.json +12 -5
  50. package/src/aave/index.ts +0 -2
  51. package/src/aave/pool.ts +0 -883
  52. package/src/aave/weth-gateway.ts +0 -114
  53. package/src/compound-v2/c-ether.ts +0 -615
  54. package/src/compound-v2/comptroller.ts +0 -789
  55. package/src/compound-v2/index.ts +0 -2
  56. package/src/compound-v3/comet.ts +0 -790
  57. package/src/compound-v3/index.ts +0 -1
  58. package/src/erc20/index.ts +0 -1
  59. package/src/index.ts +0 -10
  60. package/src/morpho/blue.ts +0 -612
  61. package/src/morpho/lens.ts +0 -129
  62. package/src/permissions/index.ts +0 -718
  63. package/src/silo-v2/index.ts +0 -1
  64. package/src/silo-v2/silo.ts +0 -1031
  65. package/tsconfig.json +0 -20
@@ -1,790 +0,0 @@
1
- export const CompoundV3CometAbi = [
2
- {
3
- inputs: [
4
- {
5
- components: [
6
- { internalType: 'address', name: 'governor', type: 'address' },
7
- { internalType: 'address', name: 'pauseGuardian', type: 'address' },
8
- { internalType: 'address', name: 'baseToken', type: 'address' },
9
- { internalType: 'address', name: 'baseTokenPriceFeed', type: 'address' },
10
- { internalType: 'address', name: 'extensionDelegate', type: 'address' },
11
- { internalType: 'uint64', name: 'supplyKink', type: 'uint64' },
12
- { internalType: 'uint64', name: 'supplyPerYearInterestRateSlopeLow', type: 'uint64' },
13
- { internalType: 'uint64', name: 'supplyPerYearInterestRateSlopeHigh', type: 'uint64' },
14
- { internalType: 'uint64', name: 'supplyPerYearInterestRateBase', type: 'uint64' },
15
- { internalType: 'uint64', name: 'borrowKink', type: 'uint64' },
16
- { internalType: 'uint64', name: 'borrowPerYearInterestRateSlopeLow', type: 'uint64' },
17
- { internalType: 'uint64', name: 'borrowPerYearInterestRateSlopeHigh', type: 'uint64' },
18
- { internalType: 'uint64', name: 'borrowPerYearInterestRateBase', type: 'uint64' },
19
- { internalType: 'uint64', name: 'storeFrontPriceFactor', type: 'uint64' },
20
- { internalType: 'uint64', name: 'trackingIndexScale', type: 'uint64' },
21
- { internalType: 'uint64', name: 'baseTrackingSupplySpeed', type: 'uint64' },
22
- { internalType: 'uint64', name: 'baseTrackingBorrowSpeed', type: 'uint64' },
23
- { internalType: 'uint104', name: 'baseMinForRewards', type: 'uint104' },
24
- { internalType: 'uint104', name: 'baseBorrowMin', type: 'uint104' },
25
- { internalType: 'uint104', name: 'targetReserves', type: 'uint104' },
26
- {
27
- components: [
28
- { internalType: 'address', name: 'asset', type: 'address' },
29
- { internalType: 'address', name: 'priceFeed', type: 'address' },
30
- { internalType: 'uint8', name: 'decimals', type: 'uint8' },
31
- { internalType: 'uint64', name: 'borrowCollateralFactor', type: 'uint64' },
32
- { internalType: 'uint64', name: 'liquidateCollateralFactor', type: 'uint64' },
33
- { internalType: 'uint64', name: 'liquidationFactor', type: 'uint64' },
34
- { internalType: 'uint128', name: 'supplyCap', type: 'uint128' },
35
- ],
36
- internalType: 'struct CometConfiguration.AssetConfig[]',
37
- name: 'assetConfigs',
38
- type: 'tuple[]',
39
- },
40
- ],
41
- internalType: 'struct CometConfiguration.Configuration',
42
- name: 'config',
43
- type: 'tuple',
44
- },
45
- ],
46
- stateMutability: 'nonpayable',
47
- type: 'constructor',
48
- },
49
- { inputs: [], name: 'Absurd', type: 'error' },
50
- { inputs: [], name: 'AlreadyInitialized', type: 'error' },
51
- { inputs: [], name: 'BadAsset', type: 'error' },
52
- { inputs: [], name: 'BadDecimals', type: 'error' },
53
- { inputs: [], name: 'BadDiscount', type: 'error' },
54
- { inputs: [], name: 'BadMinimum', type: 'error' },
55
- { inputs: [], name: 'BadPrice', type: 'error' },
56
- { inputs: [], name: 'BorrowCFTooLarge', type: 'error' },
57
- { inputs: [], name: 'BorrowTooSmall', type: 'error' },
58
- { inputs: [], name: 'InsufficientReserves', type: 'error' },
59
- { inputs: [], name: 'InvalidInt104', type: 'error' },
60
- { inputs: [], name: 'InvalidInt256', type: 'error' },
61
- { inputs: [], name: 'InvalidUInt104', type: 'error' },
62
- { inputs: [], name: 'InvalidUInt128', type: 'error' },
63
- { inputs: [], name: 'InvalidUInt64', type: 'error' },
64
- { inputs: [], name: 'LiquidateCFTooLarge', type: 'error' },
65
- { inputs: [], name: 'NegativeNumber', type: 'error' },
66
- { inputs: [], name: 'NoSelfTransfer', type: 'error' },
67
- { inputs: [], name: 'NotCollateralized', type: 'error' },
68
- { inputs: [], name: 'NotForSale', type: 'error' },
69
- { inputs: [], name: 'NotLiquidatable', type: 'error' },
70
- { inputs: [], name: 'Paused', type: 'error' },
71
- { inputs: [], name: 'ReentrantCallBlocked', type: 'error' },
72
- { inputs: [], name: 'SupplyCapExceeded', type: 'error' },
73
- { inputs: [], name: 'TimestampTooLarge', type: 'error' },
74
- { inputs: [], name: 'TooManyAssets', type: 'error' },
75
- { inputs: [], name: 'TooMuchSlippage', type: 'error' },
76
- { inputs: [], name: 'TransferInFailed', type: 'error' },
77
- { inputs: [], name: 'TransferOutFailed', type: 'error' },
78
- { inputs: [], name: 'Unauthorized', type: 'error' },
79
- {
80
- anonymous: false,
81
- inputs: [
82
- { indexed: true, internalType: 'address', name: 'absorber', type: 'address' },
83
- { indexed: true, internalType: 'address', name: 'borrower', type: 'address' },
84
- { indexed: true, internalType: 'address', name: 'asset', type: 'address' },
85
- { indexed: false, internalType: 'uint256', name: 'collateralAbsorbed', type: 'uint256' },
86
- { indexed: false, internalType: 'uint256', name: 'usdValue', type: 'uint256' },
87
- ],
88
- name: 'AbsorbCollateral',
89
- type: 'event',
90
- },
91
- {
92
- anonymous: false,
93
- inputs: [
94
- { indexed: true, internalType: 'address', name: 'absorber', type: 'address' },
95
- { indexed: true, internalType: 'address', name: 'borrower', type: 'address' },
96
- { indexed: false, internalType: 'uint256', name: 'basePaidOut', type: 'uint256' },
97
- { indexed: false, internalType: 'uint256', name: 'usdValue', type: 'uint256' },
98
- ],
99
- name: 'AbsorbDebt',
100
- type: 'event',
101
- },
102
- {
103
- anonymous: false,
104
- inputs: [
105
- { indexed: true, internalType: 'address', name: 'buyer', type: 'address' },
106
- { indexed: true, internalType: 'address', name: 'asset', type: 'address' },
107
- { indexed: false, internalType: 'uint256', name: 'baseAmount', type: 'uint256' },
108
- { indexed: false, internalType: 'uint256', name: 'collateralAmount', type: 'uint256' },
109
- ],
110
- name: 'BuyCollateral',
111
- type: 'event',
112
- },
113
- {
114
- anonymous: false,
115
- inputs: [
116
- { indexed: false, internalType: 'bool', name: 'supplyPaused', type: 'bool' },
117
- { indexed: false, internalType: 'bool', name: 'transferPaused', type: 'bool' },
118
- { indexed: false, internalType: 'bool', name: 'withdrawPaused', type: 'bool' },
119
- { indexed: false, internalType: 'bool', name: 'absorbPaused', type: 'bool' },
120
- { indexed: false, internalType: 'bool', name: 'buyPaused', type: 'bool' },
121
- ],
122
- name: 'PauseAction',
123
- type: 'event',
124
- },
125
- {
126
- anonymous: false,
127
- inputs: [
128
- { indexed: true, internalType: 'address', name: 'from', type: 'address' },
129
- { indexed: true, internalType: 'address', name: 'dst', type: 'address' },
130
- { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
131
- ],
132
- name: 'Supply',
133
- type: 'event',
134
- },
135
- {
136
- anonymous: false,
137
- inputs: [
138
- { indexed: true, internalType: 'address', name: 'from', type: 'address' },
139
- { indexed: true, internalType: 'address', name: 'dst', type: 'address' },
140
- { indexed: true, internalType: 'address', name: 'asset', type: 'address' },
141
- { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
142
- ],
143
- name: 'SupplyCollateral',
144
- type: 'event',
145
- },
146
- {
147
- anonymous: false,
148
- inputs: [
149
- { indexed: true, internalType: 'address', name: 'from', type: 'address' },
150
- { indexed: true, internalType: 'address', name: 'to', type: 'address' },
151
- { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
152
- ],
153
- name: 'Transfer',
154
- type: 'event',
155
- },
156
- {
157
- anonymous: false,
158
- inputs: [
159
- { indexed: true, internalType: 'address', name: 'from', type: 'address' },
160
- { indexed: true, internalType: 'address', name: 'to', type: 'address' },
161
- { indexed: true, internalType: 'address', name: 'asset', type: 'address' },
162
- { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
163
- ],
164
- name: 'TransferCollateral',
165
- type: 'event',
166
- },
167
- {
168
- anonymous: false,
169
- inputs: [
170
- { indexed: true, internalType: 'address', name: 'src', type: 'address' },
171
- { indexed: true, internalType: 'address', name: 'to', type: 'address' },
172
- { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
173
- ],
174
- name: 'Withdraw',
175
- type: 'event',
176
- },
177
- {
178
- anonymous: false,
179
- inputs: [
180
- { indexed: true, internalType: 'address', name: 'src', type: 'address' },
181
- { indexed: true, internalType: 'address', name: 'to', type: 'address' },
182
- { indexed: true, internalType: 'address', name: 'asset', type: 'address' },
183
- { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
184
- ],
185
- name: 'WithdrawCollateral',
186
- type: 'event',
187
- },
188
- {
189
- anonymous: false,
190
- inputs: [
191
- { indexed: true, internalType: 'address', name: 'to', type: 'address' },
192
- { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
193
- ],
194
- name: 'WithdrawReserves',
195
- type: 'event',
196
- },
197
- { stateMutability: 'payable', type: 'fallback' },
198
- {
199
- inputs: [
200
- { internalType: 'address', name: 'absorber', type: 'address' },
201
- { internalType: 'address[]', name: 'accounts', type: 'address[]' },
202
- ],
203
- name: 'absorb',
204
- outputs: [],
205
- stateMutability: 'nonpayable',
206
- type: 'function',
207
- },
208
- {
209
- inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
210
- name: 'accrueAccount',
211
- outputs: [],
212
- stateMutability: 'nonpayable',
213
- type: 'function',
214
- },
215
- {
216
- inputs: [
217
- { internalType: 'address', name: 'manager', type: 'address' },
218
- { internalType: 'address', name: 'asset', type: 'address' },
219
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
220
- ],
221
- name: 'approveThis',
222
- outputs: [],
223
- stateMutability: 'nonpayable',
224
- type: 'function',
225
- },
226
- {
227
- inputs: [],
228
- name: 'assetList',
229
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
230
- stateMutability: 'view',
231
- type: 'function',
232
- },
233
- {
234
- inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
235
- name: 'balanceOf',
236
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
237
- stateMutability: 'view',
238
- type: 'function',
239
- },
240
- {
241
- inputs: [],
242
- name: 'baseBorrowMin',
243
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
244
- stateMutability: 'view',
245
- type: 'function',
246
- },
247
- {
248
- inputs: [],
249
- name: 'baseMinForRewards',
250
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
251
- stateMutability: 'view',
252
- type: 'function',
253
- },
254
- {
255
- inputs: [],
256
- name: 'baseScale',
257
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
258
- stateMutability: 'view',
259
- type: 'function',
260
- },
261
- {
262
- inputs: [],
263
- name: 'baseToken',
264
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
265
- stateMutability: 'view',
266
- type: 'function',
267
- },
268
- {
269
- inputs: [],
270
- name: 'baseTokenPriceFeed',
271
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
272
- stateMutability: 'view',
273
- type: 'function',
274
- },
275
- {
276
- inputs: [],
277
- name: 'baseTrackingBorrowSpeed',
278
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
279
- stateMutability: 'view',
280
- type: 'function',
281
- },
282
- {
283
- inputs: [],
284
- name: 'baseTrackingSupplySpeed',
285
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
286
- stateMutability: 'view',
287
- type: 'function',
288
- },
289
- {
290
- inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
291
- name: 'borrowBalanceOf',
292
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
293
- stateMutability: 'view',
294
- type: 'function',
295
- },
296
- {
297
- inputs: [],
298
- name: 'borrowKink',
299
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
300
- stateMutability: 'view',
301
- type: 'function',
302
- },
303
- {
304
- inputs: [],
305
- name: 'borrowPerSecondInterestRateBase',
306
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
307
- stateMutability: 'view',
308
- type: 'function',
309
- },
310
- {
311
- inputs: [],
312
- name: 'borrowPerSecondInterestRateSlopeHigh',
313
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
314
- stateMutability: 'view',
315
- type: 'function',
316
- },
317
- {
318
- inputs: [],
319
- name: 'borrowPerSecondInterestRateSlopeLow',
320
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
321
- stateMutability: 'view',
322
- type: 'function',
323
- },
324
- {
325
- inputs: [
326
- { internalType: 'address', name: 'asset', type: 'address' },
327
- { internalType: 'uint256', name: 'minAmount', type: 'uint256' },
328
- { internalType: 'uint256', name: 'baseAmount', type: 'uint256' },
329
- { internalType: 'address', name: 'recipient', type: 'address' },
330
- ],
331
- name: 'buyCollateral',
332
- outputs: [],
333
- stateMutability: 'nonpayable',
334
- type: 'function',
335
- },
336
- {
337
- inputs: [],
338
- name: 'decimals',
339
- outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
340
- stateMutability: 'view',
341
- type: 'function',
342
- },
343
- {
344
- inputs: [],
345
- name: 'extensionDelegate',
346
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
347
- stateMutability: 'view',
348
- type: 'function',
349
- },
350
- {
351
- inputs: [{ internalType: 'uint8', name: 'i', type: 'uint8' }],
352
- name: 'getAssetInfo',
353
- outputs: [
354
- {
355
- components: [
356
- { internalType: 'uint8', name: 'offset', type: 'uint8' },
357
- { internalType: 'address', name: 'asset', type: 'address' },
358
- { internalType: 'address', name: 'priceFeed', type: 'address' },
359
- { internalType: 'uint64', name: 'scale', type: 'uint64' },
360
- { internalType: 'uint64', name: 'borrowCollateralFactor', type: 'uint64' },
361
- { internalType: 'uint64', name: 'liquidateCollateralFactor', type: 'uint64' },
362
- { internalType: 'uint64', name: 'liquidationFactor', type: 'uint64' },
363
- { internalType: 'uint128', name: 'supplyCap', type: 'uint128' },
364
- ],
365
- internalType: 'struct CometCore.AssetInfo',
366
- name: '',
367
- type: 'tuple',
368
- },
369
- ],
370
- stateMutability: 'view',
371
- type: 'function',
372
- },
373
- {
374
- inputs: [{ internalType: 'address', name: 'asset', type: 'address' }],
375
- name: 'getAssetInfoByAddress',
376
- outputs: [
377
- {
378
- components: [
379
- { internalType: 'uint8', name: 'offset', type: 'uint8' },
380
- { internalType: 'address', name: 'asset', type: 'address' },
381
- { internalType: 'address', name: 'priceFeed', type: 'address' },
382
- { internalType: 'uint64', name: 'scale', type: 'uint64' },
383
- { internalType: 'uint64', name: 'borrowCollateralFactor', type: 'uint64' },
384
- { internalType: 'uint64', name: 'liquidateCollateralFactor', type: 'uint64' },
385
- { internalType: 'uint64', name: 'liquidationFactor', type: 'uint64' },
386
- { internalType: 'uint128', name: 'supplyCap', type: 'uint128' },
387
- ],
388
- internalType: 'struct CometCore.AssetInfo',
389
- name: '',
390
- type: 'tuple',
391
- },
392
- ],
393
- stateMutability: 'view',
394
- type: 'function',
395
- },
396
- {
397
- inputs: [{ internalType: 'uint256', name: 'utilization', type: 'uint256' }],
398
- name: 'getBorrowRate',
399
- outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],
400
- stateMutability: 'view',
401
- type: 'function',
402
- },
403
- {
404
- inputs: [{ internalType: 'address', name: 'asset', type: 'address' }],
405
- name: 'getCollateralReserves',
406
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
407
- stateMutability: 'view',
408
- type: 'function',
409
- },
410
- {
411
- inputs: [{ internalType: 'address', name: 'priceFeed', type: 'address' }],
412
- name: 'getPrice',
413
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
414
- stateMutability: 'view',
415
- type: 'function',
416
- },
417
- {
418
- inputs: [],
419
- name: 'getReserves',
420
- outputs: [{ internalType: 'int256', name: '', type: 'int256' }],
421
- stateMutability: 'view',
422
- type: 'function',
423
- },
424
- {
425
- inputs: [{ internalType: 'uint256', name: 'utilization', type: 'uint256' }],
426
- name: 'getSupplyRate',
427
- outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],
428
- stateMutability: 'view',
429
- type: 'function',
430
- },
431
- {
432
- inputs: [],
433
- name: 'getUtilization',
434
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
435
- stateMutability: 'view',
436
- type: 'function',
437
- },
438
- {
439
- inputs: [],
440
- name: 'governor',
441
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
442
- stateMutability: 'view',
443
- type: 'function',
444
- },
445
- {
446
- inputs: [
447
- { internalType: 'address', name: 'owner', type: 'address' },
448
- { internalType: 'address', name: 'manager', type: 'address' },
449
- ],
450
- name: 'hasPermission',
451
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
452
- stateMutability: 'view',
453
- type: 'function',
454
- },
455
- { inputs: [], name: 'initializeStorage', outputs: [], stateMutability: 'nonpayable', type: 'function' },
456
- {
457
- inputs: [],
458
- name: 'isAbsorbPaused',
459
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
460
- stateMutability: 'view',
461
- type: 'function',
462
- },
463
- {
464
- inputs: [
465
- { internalType: 'address', name: '', type: 'address' },
466
- { internalType: 'address', name: '', type: 'address' },
467
- ],
468
- name: 'isAllowed',
469
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
470
- stateMutability: 'view',
471
- type: 'function',
472
- },
473
- {
474
- inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
475
- name: 'isBorrowCollateralized',
476
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
477
- stateMutability: 'view',
478
- type: 'function',
479
- },
480
- {
481
- inputs: [],
482
- name: 'isBuyPaused',
483
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
484
- stateMutability: 'view',
485
- type: 'function',
486
- },
487
- {
488
- inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
489
- name: 'isLiquidatable',
490
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
491
- stateMutability: 'view',
492
- type: 'function',
493
- },
494
- {
495
- inputs: [],
496
- name: 'isSupplyPaused',
497
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
498
- stateMutability: 'view',
499
- type: 'function',
500
- },
501
- {
502
- inputs: [],
503
- name: 'isTransferPaused',
504
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
505
- stateMutability: 'view',
506
- type: 'function',
507
- },
508
- {
509
- inputs: [],
510
- name: 'isWithdrawPaused',
511
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
512
- stateMutability: 'view',
513
- type: 'function',
514
- },
515
- {
516
- inputs: [{ internalType: 'address', name: '', type: 'address' }],
517
- name: 'liquidatorPoints',
518
- outputs: [
519
- { internalType: 'uint32', name: 'numAbsorbs', type: 'uint32' },
520
- { internalType: 'uint64', name: 'numAbsorbed', type: 'uint64' },
521
- { internalType: 'uint128', name: 'approxSpend', type: 'uint128' },
522
- { internalType: 'uint32', name: '_reserved', type: 'uint32' },
523
- ],
524
- stateMutability: 'view',
525
- type: 'function',
526
- },
527
- {
528
- inputs: [],
529
- name: 'numAssets',
530
- outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
531
- stateMutability: 'view',
532
- type: 'function',
533
- },
534
- {
535
- inputs: [
536
- { internalType: 'bool', name: 'supplyPaused', type: 'bool' },
537
- { internalType: 'bool', name: 'transferPaused', type: 'bool' },
538
- { internalType: 'bool', name: 'withdrawPaused', type: 'bool' },
539
- { internalType: 'bool', name: 'absorbPaused', type: 'bool' },
540
- { internalType: 'bool', name: 'buyPaused', type: 'bool' },
541
- ],
542
- name: 'pause',
543
- outputs: [],
544
- stateMutability: 'nonpayable',
545
- type: 'function',
546
- },
547
- {
548
- inputs: [],
549
- name: 'pauseGuardian',
550
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
551
- stateMutability: 'view',
552
- type: 'function',
553
- },
554
- {
555
- inputs: [
556
- { internalType: 'address', name: 'asset', type: 'address' },
557
- { internalType: 'uint256', name: 'baseAmount', type: 'uint256' },
558
- ],
559
- name: 'quoteCollateral',
560
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
561
- stateMutability: 'view',
562
- type: 'function',
563
- },
564
- {
565
- inputs: [],
566
- name: 'storeFrontPriceFactor',
567
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
568
- stateMutability: 'view',
569
- type: 'function',
570
- },
571
- {
572
- inputs: [
573
- { internalType: 'address', name: 'asset', type: 'address' },
574
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
575
- ],
576
- name: 'supply',
577
- outputs: [],
578
- stateMutability: 'nonpayable',
579
- type: 'function',
580
- },
581
- {
582
- inputs: [
583
- { internalType: 'address', name: 'from', type: 'address' },
584
- { internalType: 'address', name: 'dst', type: 'address' },
585
- { internalType: 'address', name: 'asset', type: 'address' },
586
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
587
- ],
588
- name: 'supplyFrom',
589
- outputs: [],
590
- stateMutability: 'nonpayable',
591
- type: 'function',
592
- },
593
- {
594
- inputs: [],
595
- name: 'supplyKink',
596
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
597
- stateMutability: 'view',
598
- type: 'function',
599
- },
600
- {
601
- inputs: [],
602
- name: 'supplyPerSecondInterestRateBase',
603
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
604
- stateMutability: 'view',
605
- type: 'function',
606
- },
607
- {
608
- inputs: [],
609
- name: 'supplyPerSecondInterestRateSlopeHigh',
610
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
611
- stateMutability: 'view',
612
- type: 'function',
613
- },
614
- {
615
- inputs: [],
616
- name: 'supplyPerSecondInterestRateSlopeLow',
617
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
618
- stateMutability: 'view',
619
- type: 'function',
620
- },
621
- {
622
- inputs: [
623
- { internalType: 'address', name: 'dst', type: 'address' },
624
- { internalType: 'address', name: 'asset', type: 'address' },
625
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
626
- ],
627
- name: 'supplyTo',
628
- outputs: [],
629
- stateMutability: 'nonpayable',
630
- type: 'function',
631
- },
632
- {
633
- inputs: [],
634
- name: 'targetReserves',
635
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
636
- stateMutability: 'view',
637
- type: 'function',
638
- },
639
- {
640
- inputs: [],
641
- name: 'totalBorrow',
642
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
643
- stateMutability: 'view',
644
- type: 'function',
645
- },
646
- {
647
- inputs: [],
648
- name: 'totalSupply',
649
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
650
- stateMutability: 'view',
651
- type: 'function',
652
- },
653
- {
654
- inputs: [{ internalType: 'address', name: '', type: 'address' }],
655
- name: 'totalsCollateral',
656
- outputs: [
657
- { internalType: 'uint128', name: 'totalSupplyAsset', type: 'uint128' },
658
- { internalType: 'uint128', name: '_reserved', type: 'uint128' },
659
- ],
660
- stateMutability: 'view',
661
- type: 'function',
662
- },
663
- {
664
- inputs: [],
665
- name: 'trackingIndexScale',
666
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
667
- stateMutability: 'view',
668
- type: 'function',
669
- },
670
- {
671
- inputs: [
672
- { internalType: 'address', name: 'dst', type: 'address' },
673
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
674
- ],
675
- name: 'transfer',
676
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
677
- stateMutability: 'nonpayable',
678
- type: 'function',
679
- },
680
- {
681
- inputs: [
682
- { internalType: 'address', name: 'dst', type: 'address' },
683
- { internalType: 'address', name: 'asset', type: 'address' },
684
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
685
- ],
686
- name: 'transferAsset',
687
- outputs: [],
688
- stateMutability: 'nonpayable',
689
- type: 'function',
690
- },
691
- {
692
- inputs: [
693
- { internalType: 'address', name: 'src', type: 'address' },
694
- { internalType: 'address', name: 'dst', type: 'address' },
695
- { internalType: 'address', name: 'asset', type: 'address' },
696
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
697
- ],
698
- name: 'transferAssetFrom',
699
- outputs: [],
700
- stateMutability: 'nonpayable',
701
- type: 'function',
702
- },
703
- {
704
- inputs: [
705
- { internalType: 'address', name: 'src', type: 'address' },
706
- { internalType: 'address', name: 'dst', type: 'address' },
707
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
708
- ],
709
- name: 'transferFrom',
710
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
711
- stateMutability: 'nonpayable',
712
- type: 'function',
713
- },
714
- {
715
- inputs: [{ internalType: 'address', name: '', type: 'address' }],
716
- name: 'userBasic',
717
- outputs: [
718
- { internalType: 'int104', name: 'principal', type: 'int104' },
719
- { internalType: 'uint64', name: 'baseTrackingIndex', type: 'uint64' },
720
- { internalType: 'uint64', name: 'baseTrackingAccrued', type: 'uint64' },
721
- { internalType: 'uint16', name: 'assetsIn', type: 'uint16' },
722
- { internalType: 'uint8', name: '_reserved', type: 'uint8' },
723
- ],
724
- stateMutability: 'view',
725
- type: 'function',
726
- },
727
- {
728
- inputs: [
729
- { internalType: 'address', name: '', type: 'address' },
730
- { internalType: 'address', name: '', type: 'address' },
731
- ],
732
- name: 'userCollateral',
733
- outputs: [
734
- { internalType: 'uint128', name: 'balance', type: 'uint128' },
735
- { internalType: 'uint128', name: '_reserved', type: 'uint128' },
736
- ],
737
- stateMutability: 'view',
738
- type: 'function',
739
- },
740
- {
741
- inputs: [{ internalType: 'address', name: '', type: 'address' }],
742
- name: 'userNonce',
743
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
744
- stateMutability: 'view',
745
- type: 'function',
746
- },
747
- {
748
- inputs: [
749
- { internalType: 'address', name: 'asset', type: 'address' },
750
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
751
- ],
752
- name: 'withdraw',
753
- outputs: [],
754
- stateMutability: 'nonpayable',
755
- type: 'function',
756
- },
757
- {
758
- inputs: [
759
- { internalType: 'address', name: 'src', type: 'address' },
760
- { internalType: 'address', name: 'to', type: 'address' },
761
- { internalType: 'address', name: 'asset', type: 'address' },
762
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
763
- ],
764
- name: 'withdrawFrom',
765
- outputs: [],
766
- stateMutability: 'nonpayable',
767
- type: 'function',
768
- },
769
- {
770
- inputs: [
771
- { internalType: 'address', name: 'to', type: 'address' },
772
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
773
- ],
774
- name: 'withdrawReserves',
775
- outputs: [],
776
- stateMutability: 'nonpayable',
777
- type: 'function',
778
- },
779
- {
780
- inputs: [
781
- { internalType: 'address', name: 'to', type: 'address' },
782
- { internalType: 'address', name: 'asset', type: 'address' },
783
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
784
- ],
785
- name: 'withdrawTo',
786
- outputs: [],
787
- stateMutability: 'nonpayable',
788
- type: 'function',
789
- },
790
- ] as const