@1delta/abis 0.0.12 → 0.0.14
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/compound-v2/c-ether.d.ts +1 -1
- package/dist/compound-v2/c-ether.d.ts.map +1 -1
- package/dist/compound-v2/c-ether.js +368 -65
- package/dist/compound-v2/index.d.ts +1 -1
- package/dist/compound-v2/index.js +1 -1
- package/dist/fluid/index.d.ts +3 -0
- package/dist/fluid/index.d.ts.map +1 -0
- package/dist/fluid/index.js +2 -0
- package/dist/fluid/lendingResolver.d.ts +91 -0
- package/dist/fluid/lendingResolver.d.ts.map +1 -0
- package/dist/fluid/lendingResolver.js +55 -0
- package/dist/fluid/resolvers.d.ts +3 -0
- package/dist/fluid/resolvers.d.ts.map +1 -0
- package/dist/fluid/resolvers.js +12 -0
- package/dist/fluid/vaultResolver.d.ts +1083 -0
- package/dist/fluid/vaultResolver.d.ts.map +1 -0
- package/dist/fluid/vaultResolver.js +1479 -0
- package/dist/gearbox/creditFacadeV3.d.ts +59 -0
- package/dist/gearbox/creditFacadeV3.d.ts.map +1 -0
- package/dist/gearbox/creditFacadeV3.js +59 -0
- package/dist/gearbox/creditManagerV3.d.ts +156 -0
- package/dist/gearbox/creditManagerV3.d.ts.map +1 -0
- package/dist/gearbox/creditManagerV3.js +108 -0
- package/dist/gearbox/dataCompressorV3.d.ts +560 -0
- package/dist/gearbox/dataCompressorV3.d.ts.map +1 -0
- package/dist/gearbox/dataCompressorV3.js +225 -0
- package/dist/gearbox/index.d.ts +7 -0
- package/dist/gearbox/index.d.ts.map +1 -0
- package/dist/gearbox/index.js +6 -0
- package/dist/gearbox/poolQuotaKeeperV3.d.ts +65 -0
- package/dist/gearbox/poolQuotaKeeperV3.d.ts.map +1 -0
- package/dist/gearbox/poolQuotaKeeperV3.js +52 -0
- package/dist/gearbox/poolV3.d.ts +152 -0
- package/dist/gearbox/poolV3.d.ts.map +1 -0
- package/dist/gearbox/poolV3.js +133 -0
- package/dist/gearbox/priceOracleV3.d.ts +35 -0
- package/dist/gearbox/priceOracleV3.d.ts.map +1 -0
- package/dist/gearbox/priceOracleV3.js +28 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c-ether.d.ts","sourceRoot":"","sources":["../../src/compound-v2/c-ether.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"c-ether.d.ts","sourceRoot":"","sources":["../../src/compound-v2/c-ether.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAq5BtB,CAAA"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const CompoundV2CEtherAbi = [
|
|
2
2
|
{
|
|
3
3
|
inputs: [
|
|
4
|
-
{
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
{
|
|
5
|
+
internalType: 'contract ComptrollerInterface',
|
|
6
|
+
name: 'comptroller_',
|
|
7
|
+
type: 'address',
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
internalType: 'contract InterestRateModel',
|
|
11
|
+
name: 'interestRateModel_',
|
|
12
|
+
type: 'address',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
internalType: 'uint256',
|
|
16
|
+
name: 'initialExchangeRateMantissa_',
|
|
17
|
+
type: 'uint256',
|
|
18
|
+
},
|
|
7
19
|
{ internalType: 'string', name: 'name_', type: 'string' },
|
|
8
20
|
{ internalType: 'string', name: 'symbol_', type: 'string' },
|
|
9
21
|
{ internalType: 'uint8', name: 'decimals_', type: 'uint8' },
|
|
@@ -16,10 +28,30 @@ export const COmpoundV2CEtherAbi = [
|
|
|
16
28
|
{
|
|
17
29
|
anonymous: false,
|
|
18
30
|
inputs: [
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
31
|
+
{
|
|
32
|
+
indexed: false,
|
|
33
|
+
internalType: 'uint256',
|
|
34
|
+
name: 'cashPrior',
|
|
35
|
+
type: 'uint256',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
indexed: false,
|
|
39
|
+
internalType: 'uint256',
|
|
40
|
+
name: 'interestAccumulated',
|
|
41
|
+
type: 'uint256',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
indexed: false,
|
|
45
|
+
internalType: 'uint256',
|
|
46
|
+
name: 'borrowIndex',
|
|
47
|
+
type: 'uint256',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
indexed: false,
|
|
51
|
+
internalType: 'uint256',
|
|
52
|
+
name: 'totalBorrows',
|
|
53
|
+
type: 'uint256',
|
|
54
|
+
},
|
|
23
55
|
],
|
|
24
56
|
name: 'AccrueInterest',
|
|
25
57
|
type: 'event',
|
|
@@ -27,9 +59,24 @@ export const COmpoundV2CEtherAbi = [
|
|
|
27
59
|
{
|
|
28
60
|
anonymous: false,
|
|
29
61
|
inputs: [
|
|
30
|
-
{
|
|
31
|
-
|
|
32
|
-
|
|
62
|
+
{
|
|
63
|
+
indexed: true,
|
|
64
|
+
internalType: 'address',
|
|
65
|
+
name: 'owner',
|
|
66
|
+
type: 'address',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
indexed: true,
|
|
70
|
+
internalType: 'address',
|
|
71
|
+
name: 'spender',
|
|
72
|
+
type: 'address',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
indexed: false,
|
|
76
|
+
internalType: 'uint256',
|
|
77
|
+
name: 'amount',
|
|
78
|
+
type: 'uint256',
|
|
79
|
+
},
|
|
33
80
|
],
|
|
34
81
|
name: 'Approval',
|
|
35
82
|
type: 'event',
|
|
@@ -37,10 +84,30 @@ export const COmpoundV2CEtherAbi = [
|
|
|
37
84
|
{
|
|
38
85
|
anonymous: false,
|
|
39
86
|
inputs: [
|
|
40
|
-
{
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
87
|
+
{
|
|
88
|
+
indexed: false,
|
|
89
|
+
internalType: 'address',
|
|
90
|
+
name: 'borrower',
|
|
91
|
+
type: 'address',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
indexed: false,
|
|
95
|
+
internalType: 'uint256',
|
|
96
|
+
name: 'borrowAmount',
|
|
97
|
+
type: 'uint256',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
indexed: false,
|
|
101
|
+
internalType: 'uint256',
|
|
102
|
+
name: 'accountBorrows',
|
|
103
|
+
type: 'uint256',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
indexed: false,
|
|
107
|
+
internalType: 'uint256',
|
|
108
|
+
name: 'totalBorrows',
|
|
109
|
+
type: 'uint256',
|
|
110
|
+
},
|
|
44
111
|
],
|
|
45
112
|
name: 'Borrow',
|
|
46
113
|
type: 'event',
|
|
@@ -48,9 +115,24 @@ export const COmpoundV2CEtherAbi = [
|
|
|
48
115
|
{
|
|
49
116
|
anonymous: false,
|
|
50
117
|
inputs: [
|
|
51
|
-
{
|
|
52
|
-
|
|
53
|
-
|
|
118
|
+
{
|
|
119
|
+
indexed: false,
|
|
120
|
+
internalType: 'uint256',
|
|
121
|
+
name: 'error',
|
|
122
|
+
type: 'uint256',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
indexed: false,
|
|
126
|
+
internalType: 'uint256',
|
|
127
|
+
name: 'info',
|
|
128
|
+
type: 'uint256',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
indexed: false,
|
|
132
|
+
internalType: 'uint256',
|
|
133
|
+
name: 'detail',
|
|
134
|
+
type: 'uint256',
|
|
135
|
+
},
|
|
54
136
|
],
|
|
55
137
|
name: 'Failure',
|
|
56
138
|
type: 'event',
|
|
@@ -58,11 +140,36 @@ export const COmpoundV2CEtherAbi = [
|
|
|
58
140
|
{
|
|
59
141
|
anonymous: false,
|
|
60
142
|
inputs: [
|
|
61
|
-
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
143
|
+
{
|
|
144
|
+
indexed: false,
|
|
145
|
+
internalType: 'address',
|
|
146
|
+
name: 'liquidator',
|
|
147
|
+
type: 'address',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
indexed: false,
|
|
151
|
+
internalType: 'address',
|
|
152
|
+
name: 'borrower',
|
|
153
|
+
type: 'address',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
indexed: false,
|
|
157
|
+
internalType: 'uint256',
|
|
158
|
+
name: 'repayAmount',
|
|
159
|
+
type: 'uint256',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
indexed: false,
|
|
163
|
+
internalType: 'address',
|
|
164
|
+
name: 'vTokenCollateral',
|
|
165
|
+
type: 'address',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
indexed: false,
|
|
169
|
+
internalType: 'uint256',
|
|
170
|
+
name: 'seizeTokens',
|
|
171
|
+
type: 'uint256',
|
|
172
|
+
},
|
|
66
173
|
],
|
|
67
174
|
name: 'LiquidateBorrow',
|
|
68
175
|
type: 'event',
|
|
@@ -70,9 +177,24 @@ export const COmpoundV2CEtherAbi = [
|
|
|
70
177
|
{
|
|
71
178
|
anonymous: false,
|
|
72
179
|
inputs: [
|
|
73
|
-
{
|
|
74
|
-
|
|
75
|
-
|
|
180
|
+
{
|
|
181
|
+
indexed: false,
|
|
182
|
+
internalType: 'address',
|
|
183
|
+
name: 'minter',
|
|
184
|
+
type: 'address',
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
indexed: false,
|
|
188
|
+
internalType: 'uint256',
|
|
189
|
+
name: 'mintAmount',
|
|
190
|
+
type: 'uint256',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
indexed: false,
|
|
194
|
+
internalType: 'uint256',
|
|
195
|
+
name: 'mintTokens',
|
|
196
|
+
type: 'uint256',
|
|
197
|
+
},
|
|
76
198
|
],
|
|
77
199
|
name: 'Mint',
|
|
78
200
|
type: 'event',
|
|
@@ -80,8 +202,18 @@ export const COmpoundV2CEtherAbi = [
|
|
|
80
202
|
{
|
|
81
203
|
anonymous: false,
|
|
82
204
|
inputs: [
|
|
83
|
-
{
|
|
84
|
-
|
|
205
|
+
{
|
|
206
|
+
indexed: false,
|
|
207
|
+
internalType: 'address',
|
|
208
|
+
name: 'oldAdmin',
|
|
209
|
+
type: 'address',
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
indexed: false,
|
|
213
|
+
internalType: 'address',
|
|
214
|
+
name: 'newAdmin',
|
|
215
|
+
type: 'address',
|
|
216
|
+
},
|
|
85
217
|
],
|
|
86
218
|
name: 'NewAdmin',
|
|
87
219
|
type: 'event',
|
|
@@ -89,8 +221,18 @@ export const COmpoundV2CEtherAbi = [
|
|
|
89
221
|
{
|
|
90
222
|
anonymous: false,
|
|
91
223
|
inputs: [
|
|
92
|
-
{
|
|
93
|
-
|
|
224
|
+
{
|
|
225
|
+
indexed: false,
|
|
226
|
+
internalType: 'contract ComptrollerInterface',
|
|
227
|
+
name: 'oldComptroller',
|
|
228
|
+
type: 'address',
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
indexed: false,
|
|
232
|
+
internalType: 'contract ComptrollerInterface',
|
|
233
|
+
name: 'newComptroller',
|
|
234
|
+
type: 'address',
|
|
235
|
+
},
|
|
94
236
|
],
|
|
95
237
|
name: 'NewComptroller',
|
|
96
238
|
type: 'event',
|
|
@@ -98,8 +240,18 @@ export const COmpoundV2CEtherAbi = [
|
|
|
98
240
|
{
|
|
99
241
|
anonymous: false,
|
|
100
242
|
inputs: [
|
|
101
|
-
{
|
|
102
|
-
|
|
243
|
+
{
|
|
244
|
+
indexed: false,
|
|
245
|
+
internalType: 'contract InterestRateModel',
|
|
246
|
+
name: 'oldInterestRateModel',
|
|
247
|
+
type: 'address',
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
indexed: false,
|
|
251
|
+
internalType: 'contract InterestRateModel',
|
|
252
|
+
name: 'newInterestRateModel',
|
|
253
|
+
type: 'address',
|
|
254
|
+
},
|
|
103
255
|
],
|
|
104
256
|
name: 'NewMarketInterestRateModel',
|
|
105
257
|
type: 'event',
|
|
@@ -107,8 +259,18 @@ export const COmpoundV2CEtherAbi = [
|
|
|
107
259
|
{
|
|
108
260
|
anonymous: false,
|
|
109
261
|
inputs: [
|
|
110
|
-
{
|
|
111
|
-
|
|
262
|
+
{
|
|
263
|
+
indexed: false,
|
|
264
|
+
internalType: 'address',
|
|
265
|
+
name: 'oldPendingAdmin',
|
|
266
|
+
type: 'address',
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
indexed: false,
|
|
270
|
+
internalType: 'address',
|
|
271
|
+
name: 'newPendingAdmin',
|
|
272
|
+
type: 'address',
|
|
273
|
+
},
|
|
112
274
|
],
|
|
113
275
|
name: 'NewPendingAdmin',
|
|
114
276
|
type: 'event',
|
|
@@ -116,8 +278,18 @@ export const COmpoundV2CEtherAbi = [
|
|
|
116
278
|
{
|
|
117
279
|
anonymous: false,
|
|
118
280
|
inputs: [
|
|
119
|
-
{
|
|
120
|
-
|
|
281
|
+
{
|
|
282
|
+
indexed: false,
|
|
283
|
+
internalType: 'uint256',
|
|
284
|
+
name: 'oldReserveFactorMantissa',
|
|
285
|
+
type: 'uint256',
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
indexed: false,
|
|
289
|
+
internalType: 'uint256',
|
|
290
|
+
name: 'newReserveFactorMantissa',
|
|
291
|
+
type: 'uint256',
|
|
292
|
+
},
|
|
121
293
|
],
|
|
122
294
|
name: 'NewReserveFactor',
|
|
123
295
|
type: 'event',
|
|
@@ -125,9 +297,24 @@ export const COmpoundV2CEtherAbi = [
|
|
|
125
297
|
{
|
|
126
298
|
anonymous: false,
|
|
127
299
|
inputs: [
|
|
128
|
-
{
|
|
129
|
-
|
|
130
|
-
|
|
300
|
+
{
|
|
301
|
+
indexed: false,
|
|
302
|
+
internalType: 'address',
|
|
303
|
+
name: 'redeemer',
|
|
304
|
+
type: 'address',
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
indexed: false,
|
|
308
|
+
internalType: 'uint256',
|
|
309
|
+
name: 'redeemAmount',
|
|
310
|
+
type: 'uint256',
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
indexed: false,
|
|
314
|
+
internalType: 'uint256',
|
|
315
|
+
name: 'redeemTokens',
|
|
316
|
+
type: 'uint256',
|
|
317
|
+
},
|
|
131
318
|
],
|
|
132
319
|
name: 'Redeem',
|
|
133
320
|
type: 'event',
|
|
@@ -135,11 +322,36 @@ export const COmpoundV2CEtherAbi = [
|
|
|
135
322
|
{
|
|
136
323
|
anonymous: false,
|
|
137
324
|
inputs: [
|
|
138
|
-
{
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
325
|
+
{
|
|
326
|
+
indexed: false,
|
|
327
|
+
internalType: 'address',
|
|
328
|
+
name: 'payer',
|
|
329
|
+
type: 'address',
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
indexed: false,
|
|
333
|
+
internalType: 'address',
|
|
334
|
+
name: 'borrower',
|
|
335
|
+
type: 'address',
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
indexed: false,
|
|
339
|
+
internalType: 'uint256',
|
|
340
|
+
name: 'repayAmount',
|
|
341
|
+
type: 'uint256',
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
indexed: false,
|
|
345
|
+
internalType: 'uint256',
|
|
346
|
+
name: 'accountBorrows',
|
|
347
|
+
type: 'uint256',
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
indexed: false,
|
|
351
|
+
internalType: 'uint256',
|
|
352
|
+
name: 'totalBorrows',
|
|
353
|
+
type: 'uint256',
|
|
354
|
+
},
|
|
143
355
|
],
|
|
144
356
|
name: 'RepayBorrow',
|
|
145
357
|
type: 'event',
|
|
@@ -147,9 +359,24 @@ export const COmpoundV2CEtherAbi = [
|
|
|
147
359
|
{
|
|
148
360
|
anonymous: false,
|
|
149
361
|
inputs: [
|
|
150
|
-
{
|
|
151
|
-
|
|
152
|
-
|
|
362
|
+
{
|
|
363
|
+
indexed: false,
|
|
364
|
+
internalType: 'address',
|
|
365
|
+
name: 'benefactor',
|
|
366
|
+
type: 'address',
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
indexed: false,
|
|
370
|
+
internalType: 'uint256',
|
|
371
|
+
name: 'addAmount',
|
|
372
|
+
type: 'uint256',
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
indexed: false,
|
|
376
|
+
internalType: 'uint256',
|
|
377
|
+
name: 'newTotalReserves',
|
|
378
|
+
type: 'uint256',
|
|
379
|
+
},
|
|
153
380
|
],
|
|
154
381
|
name: 'ReservesAdded',
|
|
155
382
|
type: 'event',
|
|
@@ -157,9 +384,24 @@ export const COmpoundV2CEtherAbi = [
|
|
|
157
384
|
{
|
|
158
385
|
anonymous: false,
|
|
159
386
|
inputs: [
|
|
160
|
-
{
|
|
161
|
-
|
|
162
|
-
|
|
387
|
+
{
|
|
388
|
+
indexed: false,
|
|
389
|
+
internalType: 'address',
|
|
390
|
+
name: 'admin',
|
|
391
|
+
type: 'address',
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
indexed: false,
|
|
395
|
+
internalType: 'uint256',
|
|
396
|
+
name: 'reduceAmount',
|
|
397
|
+
type: 'uint256',
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
indexed: false,
|
|
401
|
+
internalType: 'uint256',
|
|
402
|
+
name: 'newTotalReserves',
|
|
403
|
+
type: 'uint256',
|
|
404
|
+
},
|
|
163
405
|
],
|
|
164
406
|
name: 'ReservesReduced',
|
|
165
407
|
type: 'event',
|
|
@@ -169,7 +411,12 @@ export const COmpoundV2CEtherAbi = [
|
|
|
169
411
|
inputs: [
|
|
170
412
|
{ indexed: true, internalType: 'address', name: 'from', type: 'address' },
|
|
171
413
|
{ indexed: true, internalType: 'address', name: 'to', type: 'address' },
|
|
172
|
-
{
|
|
414
|
+
{
|
|
415
|
+
indexed: false,
|
|
416
|
+
internalType: 'uint256',
|
|
417
|
+
name: 'amount',
|
|
418
|
+
type: 'uint256',
|
|
419
|
+
},
|
|
173
420
|
],
|
|
174
421
|
name: 'Transfer',
|
|
175
422
|
type: 'event',
|
|
@@ -186,7 +433,9 @@ export const COmpoundV2CEtherAbi = [
|
|
|
186
433
|
},
|
|
187
434
|
{
|
|
188
435
|
constant: false,
|
|
189
|
-
inputs: [
|
|
436
|
+
inputs: [
|
|
437
|
+
{ internalType: 'uint256', name: 'reduceAmount', type: 'uint256' },
|
|
438
|
+
],
|
|
190
439
|
name: '_reduceReserves',
|
|
191
440
|
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
192
441
|
payable: false,
|
|
@@ -195,7 +444,13 @@ export const COmpoundV2CEtherAbi = [
|
|
|
195
444
|
},
|
|
196
445
|
{
|
|
197
446
|
constant: false,
|
|
198
|
-
inputs: [
|
|
447
|
+
inputs: [
|
|
448
|
+
{
|
|
449
|
+
internalType: 'contract ComptrollerInterface',
|
|
450
|
+
name: 'newComptroller',
|
|
451
|
+
type: 'address',
|
|
452
|
+
},
|
|
453
|
+
],
|
|
199
454
|
name: '_setComptroller',
|
|
200
455
|
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
201
456
|
payable: false,
|
|
@@ -204,7 +459,13 @@ export const COmpoundV2CEtherAbi = [
|
|
|
204
459
|
},
|
|
205
460
|
{
|
|
206
461
|
constant: false,
|
|
207
|
-
inputs: [
|
|
462
|
+
inputs: [
|
|
463
|
+
{
|
|
464
|
+
internalType: 'contract InterestRateModel',
|
|
465
|
+
name: 'newInterestRateModel',
|
|
466
|
+
type: 'address',
|
|
467
|
+
},
|
|
468
|
+
],
|
|
208
469
|
name: '_setInterestRateModel',
|
|
209
470
|
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
210
471
|
payable: false,
|
|
@@ -213,7 +474,13 @@ export const COmpoundV2CEtherAbi = [
|
|
|
213
474
|
},
|
|
214
475
|
{
|
|
215
476
|
constant: false,
|
|
216
|
-
inputs: [
|
|
477
|
+
inputs: [
|
|
478
|
+
{
|
|
479
|
+
internalType: 'address payable',
|
|
480
|
+
name: 'newPendingAdmin',
|
|
481
|
+
type: 'address',
|
|
482
|
+
},
|
|
483
|
+
],
|
|
217
484
|
name: '_setPendingAdmin',
|
|
218
485
|
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
219
486
|
payable: false,
|
|
@@ -222,7 +489,13 @@ export const COmpoundV2CEtherAbi = [
|
|
|
222
489
|
},
|
|
223
490
|
{
|
|
224
491
|
constant: false,
|
|
225
|
-
inputs: [
|
|
492
|
+
inputs: [
|
|
493
|
+
{
|
|
494
|
+
internalType: 'uint256',
|
|
495
|
+
name: 'newReserveFactorMantissa',
|
|
496
|
+
type: 'uint256',
|
|
497
|
+
},
|
|
498
|
+
],
|
|
226
499
|
name: '_setReserveFactor',
|
|
227
500
|
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
228
501
|
payable: false,
|
|
@@ -300,7 +573,9 @@ export const COmpoundV2CEtherAbi = [
|
|
|
300
573
|
},
|
|
301
574
|
{
|
|
302
575
|
constant: false,
|
|
303
|
-
inputs: [
|
|
576
|
+
inputs: [
|
|
577
|
+
{ internalType: 'uint256', name: 'borrowAmount', type: 'uint256' },
|
|
578
|
+
],
|
|
304
579
|
name: 'borrow',
|
|
305
580
|
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
306
581
|
payable: false,
|
|
@@ -347,7 +622,13 @@ export const COmpoundV2CEtherAbi = [
|
|
|
347
622
|
constant: true,
|
|
348
623
|
inputs: [],
|
|
349
624
|
name: 'comptroller',
|
|
350
|
-
outputs: [
|
|
625
|
+
outputs: [
|
|
626
|
+
{
|
|
627
|
+
internalType: 'contract ComptrollerInterface',
|
|
628
|
+
name: '',
|
|
629
|
+
type: 'address',
|
|
630
|
+
},
|
|
631
|
+
],
|
|
351
632
|
payable: false,
|
|
352
633
|
stateMutability: 'view',
|
|
353
634
|
type: 'function',
|
|
@@ -405,9 +686,21 @@ export const COmpoundV2CEtherAbi = [
|
|
|
405
686
|
{
|
|
406
687
|
constant: false,
|
|
407
688
|
inputs: [
|
|
408
|
-
{
|
|
409
|
-
|
|
410
|
-
|
|
689
|
+
{
|
|
690
|
+
internalType: 'contract ComptrollerInterface',
|
|
691
|
+
name: 'comptroller_',
|
|
692
|
+
type: 'address',
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
internalType: 'contract InterestRateModel',
|
|
696
|
+
name: 'interestRateModel_',
|
|
697
|
+
type: 'address',
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
internalType: 'uint256',
|
|
701
|
+
name: 'initialExchangeRateMantissa_',
|
|
702
|
+
type: 'uint256',
|
|
703
|
+
},
|
|
411
704
|
{ internalType: 'string', name: 'name_', type: 'string' },
|
|
412
705
|
{ internalType: 'string', name: 'symbol_', type: 'string' },
|
|
413
706
|
{ internalType: 'uint8', name: 'decimals_', type: 'uint8' },
|
|
@@ -422,7 +715,9 @@ export const COmpoundV2CEtherAbi = [
|
|
|
422
715
|
constant: true,
|
|
423
716
|
inputs: [],
|
|
424
717
|
name: 'interestRateModel',
|
|
425
|
-
outputs: [
|
|
718
|
+
outputs: [
|
|
719
|
+
{ internalType: 'contract InterestRateModel', name: '', type: 'address' },
|
|
720
|
+
],
|
|
426
721
|
payable: false,
|
|
427
722
|
stateMutability: 'view',
|
|
428
723
|
type: 'function',
|
|
@@ -440,7 +735,11 @@ export const COmpoundV2CEtherAbi = [
|
|
|
440
735
|
constant: false,
|
|
441
736
|
inputs: [
|
|
442
737
|
{ internalType: 'address', name: 'borrower', type: 'address' },
|
|
443
|
-
{
|
|
738
|
+
{
|
|
739
|
+
internalType: 'contract VToken',
|
|
740
|
+
name: 'vTokenCollateral',
|
|
741
|
+
type: 'address',
|
|
742
|
+
},
|
|
444
743
|
],
|
|
445
744
|
name: 'liquidateBorrow',
|
|
446
745
|
outputs: [],
|
|
@@ -477,7 +776,9 @@ export const COmpoundV2CEtherAbi = [
|
|
|
477
776
|
},
|
|
478
777
|
{
|
|
479
778
|
constant: false,
|
|
480
|
-
inputs: [
|
|
779
|
+
inputs: [
|
|
780
|
+
{ internalType: 'uint256', name: 'redeemTokens', type: 'uint256' },
|
|
781
|
+
],
|
|
481
782
|
name: 'redeem',
|
|
482
783
|
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
483
784
|
payable: false,
|
|
@@ -486,7 +787,9 @@ export const COmpoundV2CEtherAbi = [
|
|
|
486
787
|
},
|
|
487
788
|
{
|
|
488
789
|
constant: false,
|
|
489
|
-
inputs: [
|
|
790
|
+
inputs: [
|
|
791
|
+
{ internalType: 'uint256', name: 'redeemAmount', type: 'uint256' },
|
|
792
|
+
],
|
|
490
793
|
name: 'redeemUnderlying',
|
|
491
794
|
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
492
795
|
payable: false,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { venusCompoundV2ComptrollerAbi } from './comptroller.js';
|
|
2
|
-
export {
|
|
2
|
+
export { CompoundV2CEtherAbi } from './c-ether.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fluid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA"}
|