@gitmyabi/loanmanagerownable2stepwithshortcut 0.0.0-stage → 1.0.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/README.md +107 -2
- package/contracts/LoanManagerOwnable2StepWithShortcut.d.ts +2282 -0
- package/contracts/LoanManagerOwnable2StepWithShortcut.js +2256 -0
- package/contracts/LoanManagerOwnable2StepWithShortcut.ts +2981 -0
- package/contracts/index.d.ts +2 -0
- package/contracts/index.js +7 -0
- package/contracts/index.ts +3 -0
- package/index.d.ts +1 -0
- package/index.js +19 -0
- package/package.json +40 -3
|
@@ -0,0 +1,2282 @@
|
|
|
1
|
+
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* ILoanManager.LoanConfig struct type
|
|
4
|
+
*/
|
|
5
|
+
export type ILoanManager_LoanConfig = {
|
|
6
|
+
supplyAddress: `0x${string}`;
|
|
7
|
+
borrowAddress: `0x${string}`;
|
|
8
|
+
minHealthFactor: bigint;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* LoanManager.MerkleClaimData struct type
|
|
12
|
+
*/
|
|
13
|
+
export type LoanManager_MerkleClaimData = {
|
|
14
|
+
users: `0x${string}`[];
|
|
15
|
+
tokens: `0x${string}`[];
|
|
16
|
+
values: bigint[];
|
|
17
|
+
proof: `0x${string}`[][];
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* MarketParams struct type
|
|
21
|
+
*/
|
|
22
|
+
export type MarketParams = {
|
|
23
|
+
loanToken: `0x${string}`;
|
|
24
|
+
collateralToken: `0x${string}`;
|
|
25
|
+
oracle: `0x${string}`;
|
|
26
|
+
irm: `0x${string}`;
|
|
27
|
+
lltv: bigint;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* LoanManagerOwnable2StepWithShortcut ABI
|
|
31
|
+
*
|
|
32
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
33
|
+
*/
|
|
34
|
+
export declare const LoanManagerOwnable2StepWithShortcutAbi: readonly [{
|
|
35
|
+
readonly inputs: readonly [{
|
|
36
|
+
readonly internalType: "address[]";
|
|
37
|
+
readonly name: "_executors";
|
|
38
|
+
readonly type: "address[]";
|
|
39
|
+
}, {
|
|
40
|
+
readonly internalType: "address payable";
|
|
41
|
+
readonly name: "_wnative";
|
|
42
|
+
readonly type: "address";
|
|
43
|
+
}, {
|
|
44
|
+
readonly internalType: "Id";
|
|
45
|
+
readonly name: "_marketId";
|
|
46
|
+
readonly type: "bytes32";
|
|
47
|
+
}, {
|
|
48
|
+
readonly internalType: "uint256";
|
|
49
|
+
readonly name: "_minHealthFactor";
|
|
50
|
+
readonly type: "uint256";
|
|
51
|
+
}, {
|
|
52
|
+
readonly internalType: "contract IMorpho";
|
|
53
|
+
readonly name: "_morphoBlue";
|
|
54
|
+
readonly type: "address";
|
|
55
|
+
}, {
|
|
56
|
+
readonly internalType: "address";
|
|
57
|
+
readonly name: "_merkleDistributor";
|
|
58
|
+
readonly type: "address";
|
|
59
|
+
}];
|
|
60
|
+
readonly stateMutability: "nonpayable";
|
|
61
|
+
readonly type: "constructor";
|
|
62
|
+
}, {
|
|
63
|
+
readonly inputs: readonly [{
|
|
64
|
+
readonly internalType: "address";
|
|
65
|
+
readonly name: "owner";
|
|
66
|
+
readonly type: "address";
|
|
67
|
+
}];
|
|
68
|
+
readonly name: "OwnableInvalidOwner";
|
|
69
|
+
readonly type: "error";
|
|
70
|
+
}, {
|
|
71
|
+
readonly inputs: readonly [{
|
|
72
|
+
readonly internalType: "address";
|
|
73
|
+
readonly name: "account";
|
|
74
|
+
readonly type: "address";
|
|
75
|
+
}];
|
|
76
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
77
|
+
readonly type: "error";
|
|
78
|
+
}, {
|
|
79
|
+
readonly inputs: readonly [{
|
|
80
|
+
readonly internalType: "address";
|
|
81
|
+
readonly name: "token";
|
|
82
|
+
readonly type: "address";
|
|
83
|
+
}];
|
|
84
|
+
readonly name: "SafeERC20FailedOperation";
|
|
85
|
+
readonly type: "error";
|
|
86
|
+
}, {
|
|
87
|
+
readonly anonymous: false;
|
|
88
|
+
readonly inputs: readonly [{
|
|
89
|
+
readonly indexed: true;
|
|
90
|
+
readonly internalType: "address";
|
|
91
|
+
readonly name: "token";
|
|
92
|
+
readonly type: "address";
|
|
93
|
+
}, {
|
|
94
|
+
readonly indexed: false;
|
|
95
|
+
readonly internalType: "address";
|
|
96
|
+
readonly name: "guy";
|
|
97
|
+
readonly type: "address";
|
|
98
|
+
}, {
|
|
99
|
+
readonly indexed: false;
|
|
100
|
+
readonly internalType: "uint256";
|
|
101
|
+
readonly name: "wad";
|
|
102
|
+
readonly type: "uint256";
|
|
103
|
+
}];
|
|
104
|
+
readonly name: "ApproveToken";
|
|
105
|
+
readonly type: "event";
|
|
106
|
+
}, {
|
|
107
|
+
readonly anonymous: false;
|
|
108
|
+
readonly inputs: readonly [{
|
|
109
|
+
readonly indexed: true;
|
|
110
|
+
readonly internalType: "address";
|
|
111
|
+
readonly name: "caller";
|
|
112
|
+
readonly type: "address";
|
|
113
|
+
}, {
|
|
114
|
+
readonly indexed: false;
|
|
115
|
+
readonly internalType: "address[]";
|
|
116
|
+
readonly name: "tokens";
|
|
117
|
+
readonly type: "address[]";
|
|
118
|
+
}, {
|
|
119
|
+
readonly indexed: false;
|
|
120
|
+
readonly internalType: "uint256[]";
|
|
121
|
+
readonly name: "values";
|
|
122
|
+
readonly type: "uint256[]";
|
|
123
|
+
}];
|
|
124
|
+
readonly name: "ClaimMerkleRewards";
|
|
125
|
+
readonly type: "event";
|
|
126
|
+
}, {
|
|
127
|
+
readonly anonymous: false;
|
|
128
|
+
readonly inputs: readonly [{
|
|
129
|
+
readonly indexed: true;
|
|
130
|
+
readonly internalType: "address";
|
|
131
|
+
readonly name: "executor";
|
|
132
|
+
readonly type: "address";
|
|
133
|
+
}, {
|
|
134
|
+
readonly indexed: false;
|
|
135
|
+
readonly internalType: "bool";
|
|
136
|
+
readonly name: "enabled";
|
|
137
|
+
readonly type: "bool";
|
|
138
|
+
}];
|
|
139
|
+
readonly name: "ExecutorUpdated";
|
|
140
|
+
readonly type: "event";
|
|
141
|
+
}, {
|
|
142
|
+
readonly anonymous: false;
|
|
143
|
+
readonly inputs: readonly [{
|
|
144
|
+
readonly indexed: true;
|
|
145
|
+
readonly internalType: "address";
|
|
146
|
+
readonly name: "_to";
|
|
147
|
+
readonly type: "address";
|
|
148
|
+
}, {
|
|
149
|
+
readonly indexed: true;
|
|
150
|
+
readonly internalType: "address";
|
|
151
|
+
readonly name: "_asset_address";
|
|
152
|
+
readonly type: "address";
|
|
153
|
+
}, {
|
|
154
|
+
readonly indexed: false;
|
|
155
|
+
readonly internalType: "uint256";
|
|
156
|
+
readonly name: "amount";
|
|
157
|
+
readonly type: "uint256";
|
|
158
|
+
}];
|
|
159
|
+
readonly name: "LogWithdraw";
|
|
160
|
+
readonly type: "event";
|
|
161
|
+
}, {
|
|
162
|
+
readonly anonymous: false;
|
|
163
|
+
readonly inputs: readonly [{
|
|
164
|
+
readonly indexed: true;
|
|
165
|
+
readonly internalType: "address";
|
|
166
|
+
readonly name: "previousOwner";
|
|
167
|
+
readonly type: "address";
|
|
168
|
+
}, {
|
|
169
|
+
readonly indexed: true;
|
|
170
|
+
readonly internalType: "address";
|
|
171
|
+
readonly name: "newOwner";
|
|
172
|
+
readonly type: "address";
|
|
173
|
+
}];
|
|
174
|
+
readonly name: "OwnershipTransferStarted";
|
|
175
|
+
readonly type: "event";
|
|
176
|
+
}, {
|
|
177
|
+
readonly anonymous: false;
|
|
178
|
+
readonly inputs: readonly [{
|
|
179
|
+
readonly indexed: true;
|
|
180
|
+
readonly internalType: "address";
|
|
181
|
+
readonly name: "previousOwner";
|
|
182
|
+
readonly type: "address";
|
|
183
|
+
}, {
|
|
184
|
+
readonly indexed: true;
|
|
185
|
+
readonly internalType: "address";
|
|
186
|
+
readonly name: "newOwner";
|
|
187
|
+
readonly type: "address";
|
|
188
|
+
}];
|
|
189
|
+
readonly name: "OwnershipTransferred";
|
|
190
|
+
readonly type: "event";
|
|
191
|
+
}, {
|
|
192
|
+
readonly anonymous: false;
|
|
193
|
+
readonly inputs: readonly [{
|
|
194
|
+
readonly indexed: true;
|
|
195
|
+
readonly internalType: "enum LoanManager.SnapshotUpdateAction";
|
|
196
|
+
readonly name: "action";
|
|
197
|
+
readonly type: "uint8";
|
|
198
|
+
}, {
|
|
199
|
+
readonly indexed: false;
|
|
200
|
+
readonly internalType: "uint256";
|
|
201
|
+
readonly name: "amount";
|
|
202
|
+
readonly type: "uint256";
|
|
203
|
+
}, {
|
|
204
|
+
readonly indexed: false;
|
|
205
|
+
readonly internalType: "address";
|
|
206
|
+
readonly name: "executor";
|
|
207
|
+
readonly type: "address";
|
|
208
|
+
}, {
|
|
209
|
+
readonly indexed: false;
|
|
210
|
+
readonly internalType: "address";
|
|
211
|
+
readonly name: "supplyToken";
|
|
212
|
+
readonly type: "address";
|
|
213
|
+
}, {
|
|
214
|
+
readonly indexed: false;
|
|
215
|
+
readonly internalType: "address";
|
|
216
|
+
readonly name: "borrowToken";
|
|
217
|
+
readonly type: "address";
|
|
218
|
+
}, {
|
|
219
|
+
readonly indexed: false;
|
|
220
|
+
readonly internalType: "uint256";
|
|
221
|
+
readonly name: "totalSupplied";
|
|
222
|
+
readonly type: "uint256";
|
|
223
|
+
}, {
|
|
224
|
+
readonly indexed: false;
|
|
225
|
+
readonly internalType: "uint256";
|
|
226
|
+
readonly name: "totalDebt";
|
|
227
|
+
readonly type: "uint256";
|
|
228
|
+
}];
|
|
229
|
+
readonly name: "SnapshotUpdate";
|
|
230
|
+
readonly type: "event";
|
|
231
|
+
}, {
|
|
232
|
+
readonly anonymous: false;
|
|
233
|
+
readonly inputs: readonly [{
|
|
234
|
+
readonly components: readonly [{
|
|
235
|
+
readonly internalType: "address";
|
|
236
|
+
readonly name: "supplyAddress";
|
|
237
|
+
readonly type: "address";
|
|
238
|
+
}, {
|
|
239
|
+
readonly internalType: "address";
|
|
240
|
+
readonly name: "borrowAddress";
|
|
241
|
+
readonly type: "address";
|
|
242
|
+
}, {
|
|
243
|
+
readonly internalType: "uint256";
|
|
244
|
+
readonly name: "minHealthFactor";
|
|
245
|
+
readonly type: "uint256";
|
|
246
|
+
}];
|
|
247
|
+
readonly indexed: false;
|
|
248
|
+
readonly internalType: "struct ILoanManager.LoanConfig";
|
|
249
|
+
readonly name: "oldConfig";
|
|
250
|
+
readonly type: "tuple";
|
|
251
|
+
}, {
|
|
252
|
+
readonly components: readonly [{
|
|
253
|
+
readonly internalType: "address";
|
|
254
|
+
readonly name: "supplyAddress";
|
|
255
|
+
readonly type: "address";
|
|
256
|
+
}, {
|
|
257
|
+
readonly internalType: "address";
|
|
258
|
+
readonly name: "borrowAddress";
|
|
259
|
+
readonly type: "address";
|
|
260
|
+
}, {
|
|
261
|
+
readonly internalType: "uint256";
|
|
262
|
+
readonly name: "minHealthFactor";
|
|
263
|
+
readonly type: "uint256";
|
|
264
|
+
}];
|
|
265
|
+
readonly indexed: false;
|
|
266
|
+
readonly internalType: "struct ILoanManager.LoanConfig";
|
|
267
|
+
readonly name: "newConfig";
|
|
268
|
+
readonly type: "tuple";
|
|
269
|
+
}, {
|
|
270
|
+
readonly indexed: false;
|
|
271
|
+
readonly internalType: "Id";
|
|
272
|
+
readonly name: "oldMarketId";
|
|
273
|
+
readonly type: "bytes32";
|
|
274
|
+
}, {
|
|
275
|
+
readonly indexed: false;
|
|
276
|
+
readonly internalType: "Id";
|
|
277
|
+
readonly name: "newMarketId";
|
|
278
|
+
readonly type: "bytes32";
|
|
279
|
+
}];
|
|
280
|
+
readonly name: "UpdateLoanConfig";
|
|
281
|
+
readonly type: "event";
|
|
282
|
+
}, {
|
|
283
|
+
readonly anonymous: false;
|
|
284
|
+
readonly inputs: readonly [{
|
|
285
|
+
readonly indexed: true;
|
|
286
|
+
readonly internalType: "address";
|
|
287
|
+
readonly name: "caller";
|
|
288
|
+
readonly type: "address";
|
|
289
|
+
}, {
|
|
290
|
+
readonly indexed: false;
|
|
291
|
+
readonly internalType: "address";
|
|
292
|
+
readonly name: "merkle_distributor";
|
|
293
|
+
readonly type: "address";
|
|
294
|
+
}];
|
|
295
|
+
readonly name: "UpdateMerkleDistributor";
|
|
296
|
+
readonly type: "event";
|
|
297
|
+
}, {
|
|
298
|
+
readonly anonymous: false;
|
|
299
|
+
readonly inputs: readonly [{
|
|
300
|
+
readonly indexed: false;
|
|
301
|
+
readonly internalType: "contract IMorpho";
|
|
302
|
+
readonly name: "oldPool";
|
|
303
|
+
readonly type: "address";
|
|
304
|
+
}, {
|
|
305
|
+
readonly indexed: false;
|
|
306
|
+
readonly internalType: "contract IMorpho";
|
|
307
|
+
readonly name: "newPool";
|
|
308
|
+
readonly type: "address";
|
|
309
|
+
}];
|
|
310
|
+
readonly name: "UpdateMorphoBlue";
|
|
311
|
+
readonly type: "event";
|
|
312
|
+
}, {
|
|
313
|
+
readonly inputs: readonly [];
|
|
314
|
+
readonly name: "WNATIVE";
|
|
315
|
+
readonly outputs: readonly [{
|
|
316
|
+
readonly internalType: "address payable";
|
|
317
|
+
readonly name: "";
|
|
318
|
+
readonly type: "address";
|
|
319
|
+
}];
|
|
320
|
+
readonly stateMutability: "view";
|
|
321
|
+
readonly type: "function";
|
|
322
|
+
}, {
|
|
323
|
+
readonly inputs: readonly [];
|
|
324
|
+
readonly name: "acceptOwnership";
|
|
325
|
+
readonly outputs: readonly [];
|
|
326
|
+
readonly stateMutability: "nonpayable";
|
|
327
|
+
readonly type: "function";
|
|
328
|
+
}, {
|
|
329
|
+
readonly inputs: readonly [{
|
|
330
|
+
readonly internalType: "address";
|
|
331
|
+
readonly name: "_executor";
|
|
332
|
+
readonly type: "address";
|
|
333
|
+
}];
|
|
334
|
+
readonly name: "addExecutor";
|
|
335
|
+
readonly outputs: readonly [];
|
|
336
|
+
readonly stateMutability: "nonpayable";
|
|
337
|
+
readonly type: "function";
|
|
338
|
+
}, {
|
|
339
|
+
readonly inputs: readonly [{
|
|
340
|
+
readonly internalType: "address";
|
|
341
|
+
readonly name: "_token";
|
|
342
|
+
readonly type: "address";
|
|
343
|
+
}, {
|
|
344
|
+
readonly internalType: "address";
|
|
345
|
+
readonly name: "_guy";
|
|
346
|
+
readonly type: "address";
|
|
347
|
+
}, {
|
|
348
|
+
readonly internalType: "uint256";
|
|
349
|
+
readonly name: "_wad";
|
|
350
|
+
readonly type: "uint256";
|
|
351
|
+
}];
|
|
352
|
+
readonly name: "approveToken";
|
|
353
|
+
readonly outputs: readonly [];
|
|
354
|
+
readonly stateMutability: "nonpayable";
|
|
355
|
+
readonly type: "function";
|
|
356
|
+
}, {
|
|
357
|
+
readonly inputs: readonly [{
|
|
358
|
+
readonly internalType: "address";
|
|
359
|
+
readonly name: "_asset_address";
|
|
360
|
+
readonly type: "address";
|
|
361
|
+
}, {
|
|
362
|
+
readonly internalType: "address";
|
|
363
|
+
readonly name: "_account";
|
|
364
|
+
readonly type: "address";
|
|
365
|
+
}];
|
|
366
|
+
readonly name: "balanceOf";
|
|
367
|
+
readonly outputs: readonly [{
|
|
368
|
+
readonly internalType: "uint256";
|
|
369
|
+
readonly name: "";
|
|
370
|
+
readonly type: "uint256";
|
|
371
|
+
}];
|
|
372
|
+
readonly stateMutability: "view";
|
|
373
|
+
readonly type: "function";
|
|
374
|
+
}, {
|
|
375
|
+
readonly inputs: readonly [{
|
|
376
|
+
readonly internalType: "address[]";
|
|
377
|
+
readonly name: "_tos";
|
|
378
|
+
readonly type: "address[]";
|
|
379
|
+
}, {
|
|
380
|
+
readonly internalType: "uint256[]";
|
|
381
|
+
readonly name: "_values";
|
|
382
|
+
readonly type: "uint256[]";
|
|
383
|
+
}, {
|
|
384
|
+
readonly internalType: "bytes[]";
|
|
385
|
+
readonly name: "_datas";
|
|
386
|
+
readonly type: "bytes[]";
|
|
387
|
+
}];
|
|
388
|
+
readonly name: "batchExecute";
|
|
389
|
+
readonly outputs: readonly [];
|
|
390
|
+
readonly stateMutability: "payable";
|
|
391
|
+
readonly type: "function";
|
|
392
|
+
}, {
|
|
393
|
+
readonly inputs: readonly [{
|
|
394
|
+
readonly internalType: "uint256";
|
|
395
|
+
readonly name: "_amount";
|
|
396
|
+
readonly type: "uint256";
|
|
397
|
+
}];
|
|
398
|
+
readonly name: "borrow";
|
|
399
|
+
readonly outputs: readonly [];
|
|
400
|
+
readonly stateMutability: "nonpayable";
|
|
401
|
+
readonly type: "function";
|
|
402
|
+
}, {
|
|
403
|
+
readonly inputs: readonly [];
|
|
404
|
+
readonly name: "claimRewards";
|
|
405
|
+
readonly outputs: readonly [{
|
|
406
|
+
readonly internalType: "address[]";
|
|
407
|
+
readonly name: "";
|
|
408
|
+
readonly type: "address[]";
|
|
409
|
+
}, {
|
|
410
|
+
readonly internalType: "uint256[]";
|
|
411
|
+
readonly name: "";
|
|
412
|
+
readonly type: "uint256[]";
|
|
413
|
+
}];
|
|
414
|
+
readonly stateMutability: "view";
|
|
415
|
+
readonly type: "function";
|
|
416
|
+
}, {
|
|
417
|
+
readonly inputs: readonly [{
|
|
418
|
+
readonly components: readonly [{
|
|
419
|
+
readonly internalType: "address[]";
|
|
420
|
+
readonly name: "users";
|
|
421
|
+
readonly type: "address[]";
|
|
422
|
+
}, {
|
|
423
|
+
readonly internalType: "address[]";
|
|
424
|
+
readonly name: "tokens";
|
|
425
|
+
readonly type: "address[]";
|
|
426
|
+
}, {
|
|
427
|
+
readonly internalType: "uint256[]";
|
|
428
|
+
readonly name: "values";
|
|
429
|
+
readonly type: "uint256[]";
|
|
430
|
+
}, {
|
|
431
|
+
readonly internalType: "bytes32[][]";
|
|
432
|
+
readonly name: "proof";
|
|
433
|
+
readonly type: "bytes32[][]";
|
|
434
|
+
}];
|
|
435
|
+
readonly internalType: "struct LoanManager.MerkleClaimData";
|
|
436
|
+
readonly name: "_merkle_claim_data";
|
|
437
|
+
readonly type: "tuple";
|
|
438
|
+
}];
|
|
439
|
+
readonly name: "claimRewards";
|
|
440
|
+
readonly outputs: readonly [{
|
|
441
|
+
readonly internalType: "address[]";
|
|
442
|
+
readonly name: "merkle_tokens_out";
|
|
443
|
+
readonly type: "address[]";
|
|
444
|
+
}, {
|
|
445
|
+
readonly internalType: "uint256[]";
|
|
446
|
+
readonly name: "merkle_amounts_out";
|
|
447
|
+
readonly type: "uint256[]";
|
|
448
|
+
}];
|
|
449
|
+
readonly stateMutability: "nonpayable";
|
|
450
|
+
readonly type: "function";
|
|
451
|
+
}, {
|
|
452
|
+
readonly inputs: readonly [{
|
|
453
|
+
readonly internalType: "uint256";
|
|
454
|
+
readonly name: "_amount";
|
|
455
|
+
readonly type: "uint256";
|
|
456
|
+
}, {
|
|
457
|
+
readonly internalType: "uint256";
|
|
458
|
+
readonly name: "";
|
|
459
|
+
readonly type: "uint256";
|
|
460
|
+
}];
|
|
461
|
+
readonly name: "deposit";
|
|
462
|
+
readonly outputs: readonly [];
|
|
463
|
+
readonly stateMutability: "nonpayable";
|
|
464
|
+
readonly type: "function";
|
|
465
|
+
}, {
|
|
466
|
+
readonly inputs: readonly [{
|
|
467
|
+
readonly internalType: "address";
|
|
468
|
+
readonly name: "_to";
|
|
469
|
+
readonly type: "address";
|
|
470
|
+
}, {
|
|
471
|
+
readonly internalType: "uint256";
|
|
472
|
+
readonly name: "_value";
|
|
473
|
+
readonly type: "uint256";
|
|
474
|
+
}, {
|
|
475
|
+
readonly internalType: "bytes";
|
|
476
|
+
readonly name: "_data";
|
|
477
|
+
readonly type: "bytes";
|
|
478
|
+
}];
|
|
479
|
+
readonly name: "execute";
|
|
480
|
+
readonly outputs: readonly [];
|
|
481
|
+
readonly stateMutability: "payable";
|
|
482
|
+
readonly type: "function";
|
|
483
|
+
}, {
|
|
484
|
+
readonly inputs: readonly [{
|
|
485
|
+
readonly internalType: "address";
|
|
486
|
+
readonly name: "";
|
|
487
|
+
readonly type: "address";
|
|
488
|
+
}];
|
|
489
|
+
readonly name: "executors";
|
|
490
|
+
readonly outputs: readonly [{
|
|
491
|
+
readonly internalType: "bool";
|
|
492
|
+
readonly name: "";
|
|
493
|
+
readonly type: "bool";
|
|
494
|
+
}];
|
|
495
|
+
readonly stateMutability: "view";
|
|
496
|
+
readonly type: "function";
|
|
497
|
+
}, {
|
|
498
|
+
readonly inputs: readonly [];
|
|
499
|
+
readonly name: "getBorrow";
|
|
500
|
+
readonly outputs: readonly [{
|
|
501
|
+
readonly internalType: "uint256";
|
|
502
|
+
readonly name: "borrowed";
|
|
503
|
+
readonly type: "uint256";
|
|
504
|
+
}];
|
|
505
|
+
readonly stateMutability: "view";
|
|
506
|
+
readonly type: "function";
|
|
507
|
+
}, {
|
|
508
|
+
readonly inputs: readonly [];
|
|
509
|
+
readonly name: "getBorrowRate";
|
|
510
|
+
readonly outputs: readonly [{
|
|
511
|
+
readonly internalType: "uint256";
|
|
512
|
+
readonly name: "borrowRate";
|
|
513
|
+
readonly type: "uint256";
|
|
514
|
+
}];
|
|
515
|
+
readonly stateMutability: "view";
|
|
516
|
+
readonly type: "function";
|
|
517
|
+
}, {
|
|
518
|
+
readonly inputs: readonly [];
|
|
519
|
+
readonly name: "getConfig";
|
|
520
|
+
readonly outputs: readonly [{
|
|
521
|
+
readonly components: readonly [{
|
|
522
|
+
readonly internalType: "address";
|
|
523
|
+
readonly name: "supplyAddress";
|
|
524
|
+
readonly type: "address";
|
|
525
|
+
}, {
|
|
526
|
+
readonly internalType: "address";
|
|
527
|
+
readonly name: "borrowAddress";
|
|
528
|
+
readonly type: "address";
|
|
529
|
+
}, {
|
|
530
|
+
readonly internalType: "uint256";
|
|
531
|
+
readonly name: "minHealthFactor";
|
|
532
|
+
readonly type: "uint256";
|
|
533
|
+
}];
|
|
534
|
+
readonly internalType: "struct ILoanManager.LoanConfig";
|
|
535
|
+
readonly name: "config";
|
|
536
|
+
readonly type: "tuple";
|
|
537
|
+
}];
|
|
538
|
+
readonly stateMutability: "view";
|
|
539
|
+
readonly type: "function";
|
|
540
|
+
}, {
|
|
541
|
+
readonly inputs: readonly [];
|
|
542
|
+
readonly name: "getHealthFactor";
|
|
543
|
+
readonly outputs: readonly [{
|
|
544
|
+
readonly internalType: "uint256";
|
|
545
|
+
readonly name: "healthFactor";
|
|
546
|
+
readonly type: "uint256";
|
|
547
|
+
}];
|
|
548
|
+
readonly stateMutability: "view";
|
|
549
|
+
readonly type: "function";
|
|
550
|
+
}, {
|
|
551
|
+
readonly inputs: readonly [{
|
|
552
|
+
readonly internalType: "address";
|
|
553
|
+
readonly name: "";
|
|
554
|
+
readonly type: "address";
|
|
555
|
+
}];
|
|
556
|
+
readonly name: "getLiquidationThreshold";
|
|
557
|
+
readonly outputs: readonly [{
|
|
558
|
+
readonly internalType: "uint256";
|
|
559
|
+
readonly name: "";
|
|
560
|
+
readonly type: "uint256";
|
|
561
|
+
}];
|
|
562
|
+
readonly stateMutability: "view";
|
|
563
|
+
readonly type: "function";
|
|
564
|
+
}, {
|
|
565
|
+
readonly inputs: readonly [];
|
|
566
|
+
readonly name: "getLiquidityAndShortFall";
|
|
567
|
+
readonly outputs: readonly [{
|
|
568
|
+
readonly internalType: "uint256";
|
|
569
|
+
readonly name: "liquidity";
|
|
570
|
+
readonly type: "uint256";
|
|
571
|
+
}, {
|
|
572
|
+
readonly internalType: "uint256";
|
|
573
|
+
readonly name: "shortfall";
|
|
574
|
+
readonly type: "uint256";
|
|
575
|
+
}];
|
|
576
|
+
readonly stateMutability: "view";
|
|
577
|
+
readonly type: "function";
|
|
578
|
+
}, {
|
|
579
|
+
readonly inputs: readonly [];
|
|
580
|
+
readonly name: "getMarketParams";
|
|
581
|
+
readonly outputs: readonly [{
|
|
582
|
+
readonly components: readonly [{
|
|
583
|
+
readonly internalType: "address";
|
|
584
|
+
readonly name: "loanToken";
|
|
585
|
+
readonly type: "address";
|
|
586
|
+
}, {
|
|
587
|
+
readonly internalType: "address";
|
|
588
|
+
readonly name: "collateralToken";
|
|
589
|
+
readonly type: "address";
|
|
590
|
+
}, {
|
|
591
|
+
readonly internalType: "address";
|
|
592
|
+
readonly name: "oracle";
|
|
593
|
+
readonly type: "address";
|
|
594
|
+
}, {
|
|
595
|
+
readonly internalType: "address";
|
|
596
|
+
readonly name: "irm";
|
|
597
|
+
readonly type: "address";
|
|
598
|
+
}, {
|
|
599
|
+
readonly internalType: "uint256";
|
|
600
|
+
readonly name: "lltv";
|
|
601
|
+
readonly type: "uint256";
|
|
602
|
+
}];
|
|
603
|
+
readonly internalType: "struct MarketParams";
|
|
604
|
+
readonly name: "";
|
|
605
|
+
readonly type: "tuple";
|
|
606
|
+
}];
|
|
607
|
+
readonly stateMutability: "view";
|
|
608
|
+
readonly type: "function";
|
|
609
|
+
}, {
|
|
610
|
+
readonly inputs: readonly [];
|
|
611
|
+
readonly name: "getMarketsData";
|
|
612
|
+
readonly outputs: readonly [{
|
|
613
|
+
readonly internalType: "uint256";
|
|
614
|
+
readonly name: "supplyMarketDeposits";
|
|
615
|
+
readonly type: "uint256";
|
|
616
|
+
}, {
|
|
617
|
+
readonly internalType: "uint256";
|
|
618
|
+
readonly name: "supplyMarketDebt";
|
|
619
|
+
readonly type: "uint256";
|
|
620
|
+
}, {
|
|
621
|
+
readonly internalType: "uint256";
|
|
622
|
+
readonly name: "supplyMarketAssetPrice";
|
|
623
|
+
readonly type: "uint256";
|
|
624
|
+
}, {
|
|
625
|
+
readonly internalType: "uint256";
|
|
626
|
+
readonly name: "borrowMarketDeposits";
|
|
627
|
+
readonly type: "uint256";
|
|
628
|
+
}, {
|
|
629
|
+
readonly internalType: "uint256";
|
|
630
|
+
readonly name: "borrowMarketDebt";
|
|
631
|
+
readonly type: "uint256";
|
|
632
|
+
}, {
|
|
633
|
+
readonly internalType: "uint256";
|
|
634
|
+
readonly name: "borrowMarketAssetPrice";
|
|
635
|
+
readonly type: "uint256";
|
|
636
|
+
}];
|
|
637
|
+
readonly stateMutability: "view";
|
|
638
|
+
readonly type: "function";
|
|
639
|
+
}, {
|
|
640
|
+
readonly inputs: readonly [];
|
|
641
|
+
readonly name: "getPositionAssets";
|
|
642
|
+
readonly outputs: readonly [{
|
|
643
|
+
readonly internalType: "address[]";
|
|
644
|
+
readonly name: "";
|
|
645
|
+
readonly type: "address[]";
|
|
646
|
+
}];
|
|
647
|
+
readonly stateMutability: "view";
|
|
648
|
+
readonly type: "function";
|
|
649
|
+
}, {
|
|
650
|
+
readonly inputs: readonly [];
|
|
651
|
+
readonly name: "getPositionDataSnapshot";
|
|
652
|
+
readonly outputs: readonly [{
|
|
653
|
+
readonly internalType: "uint256";
|
|
654
|
+
readonly name: "healthFactor";
|
|
655
|
+
readonly type: "uint256";
|
|
656
|
+
}, {
|
|
657
|
+
readonly internalType: "uint256";
|
|
658
|
+
readonly name: "liquidity";
|
|
659
|
+
readonly type: "uint256";
|
|
660
|
+
}, {
|
|
661
|
+
readonly internalType: "uint256";
|
|
662
|
+
readonly name: "shortfall";
|
|
663
|
+
readonly type: "uint256";
|
|
664
|
+
}, {
|
|
665
|
+
readonly internalType: "uint256";
|
|
666
|
+
readonly name: "supplied";
|
|
667
|
+
readonly type: "uint256";
|
|
668
|
+
}, {
|
|
669
|
+
readonly internalType: "uint256";
|
|
670
|
+
readonly name: "borrowed";
|
|
671
|
+
readonly type: "uint256";
|
|
672
|
+
}, {
|
|
673
|
+
readonly internalType: "uint256";
|
|
674
|
+
readonly name: "supplyRate";
|
|
675
|
+
readonly type: "uint256";
|
|
676
|
+
}, {
|
|
677
|
+
readonly internalType: "uint256";
|
|
678
|
+
readonly name: "borrowRate";
|
|
679
|
+
readonly type: "uint256";
|
|
680
|
+
}];
|
|
681
|
+
readonly stateMutability: "view";
|
|
682
|
+
readonly type: "function";
|
|
683
|
+
}, {
|
|
684
|
+
readonly inputs: readonly [];
|
|
685
|
+
readonly name: "getPrices";
|
|
686
|
+
readonly outputs: readonly [{
|
|
687
|
+
readonly internalType: "uint256";
|
|
688
|
+
readonly name: "supplyTokenPrice";
|
|
689
|
+
readonly type: "uint256";
|
|
690
|
+
}, {
|
|
691
|
+
readonly internalType: "uint256";
|
|
692
|
+
readonly name: "borrowTokenPrice";
|
|
693
|
+
readonly type: "uint256";
|
|
694
|
+
}];
|
|
695
|
+
readonly stateMutability: "view";
|
|
696
|
+
readonly type: "function";
|
|
697
|
+
}, {
|
|
698
|
+
readonly inputs: readonly [];
|
|
699
|
+
readonly name: "getSupply";
|
|
700
|
+
readonly outputs: readonly [{
|
|
701
|
+
readonly internalType: "uint256";
|
|
702
|
+
readonly name: "supplied";
|
|
703
|
+
readonly type: "uint256";
|
|
704
|
+
}];
|
|
705
|
+
readonly stateMutability: "view";
|
|
706
|
+
readonly type: "function";
|
|
707
|
+
}, {
|
|
708
|
+
readonly inputs: readonly [];
|
|
709
|
+
readonly name: "getSupplyRate";
|
|
710
|
+
readonly outputs: readonly [{
|
|
711
|
+
readonly internalType: "uint256";
|
|
712
|
+
readonly name: "supplyRate";
|
|
713
|
+
readonly type: "uint256";
|
|
714
|
+
}];
|
|
715
|
+
readonly stateMutability: "pure";
|
|
716
|
+
readonly type: "function";
|
|
717
|
+
}, {
|
|
718
|
+
readonly inputs: readonly [];
|
|
719
|
+
readonly name: "loanConfig";
|
|
720
|
+
readonly outputs: readonly [{
|
|
721
|
+
readonly internalType: "address";
|
|
722
|
+
readonly name: "supplyAddress";
|
|
723
|
+
readonly type: "address";
|
|
724
|
+
}, {
|
|
725
|
+
readonly internalType: "address";
|
|
726
|
+
readonly name: "borrowAddress";
|
|
727
|
+
readonly type: "address";
|
|
728
|
+
}, {
|
|
729
|
+
readonly internalType: "uint256";
|
|
730
|
+
readonly name: "minHealthFactor";
|
|
731
|
+
readonly type: "uint256";
|
|
732
|
+
}];
|
|
733
|
+
readonly stateMutability: "view";
|
|
734
|
+
readonly type: "function";
|
|
735
|
+
}, {
|
|
736
|
+
readonly inputs: readonly [];
|
|
737
|
+
readonly name: "marketId";
|
|
738
|
+
readonly outputs: readonly [{
|
|
739
|
+
readonly internalType: "Id";
|
|
740
|
+
readonly name: "";
|
|
741
|
+
readonly type: "bytes32";
|
|
742
|
+
}];
|
|
743
|
+
readonly stateMutability: "view";
|
|
744
|
+
readonly type: "function";
|
|
745
|
+
}, {
|
|
746
|
+
readonly inputs: readonly [];
|
|
747
|
+
readonly name: "merkleDistributor";
|
|
748
|
+
readonly outputs: readonly [{
|
|
749
|
+
readonly internalType: "contract IMerkleDistributor";
|
|
750
|
+
readonly name: "";
|
|
751
|
+
readonly type: "address";
|
|
752
|
+
}];
|
|
753
|
+
readonly stateMutability: "view";
|
|
754
|
+
readonly type: "function";
|
|
755
|
+
}, {
|
|
756
|
+
readonly inputs: readonly [];
|
|
757
|
+
readonly name: "morphoBlue";
|
|
758
|
+
readonly outputs: readonly [{
|
|
759
|
+
readonly internalType: "contract IMorpho";
|
|
760
|
+
readonly name: "";
|
|
761
|
+
readonly type: "address";
|
|
762
|
+
}];
|
|
763
|
+
readonly stateMutability: "view";
|
|
764
|
+
readonly type: "function";
|
|
765
|
+
}, {
|
|
766
|
+
readonly inputs: readonly [];
|
|
767
|
+
readonly name: "owner";
|
|
768
|
+
readonly outputs: readonly [{
|
|
769
|
+
readonly internalType: "address";
|
|
770
|
+
readonly name: "";
|
|
771
|
+
readonly type: "address";
|
|
772
|
+
}];
|
|
773
|
+
readonly stateMutability: "view";
|
|
774
|
+
readonly type: "function";
|
|
775
|
+
}, {
|
|
776
|
+
readonly inputs: readonly [];
|
|
777
|
+
readonly name: "pendingOwner";
|
|
778
|
+
readonly outputs: readonly [{
|
|
779
|
+
readonly internalType: "address";
|
|
780
|
+
readonly name: "";
|
|
781
|
+
readonly type: "address";
|
|
782
|
+
}];
|
|
783
|
+
readonly stateMutability: "view";
|
|
784
|
+
readonly type: "function";
|
|
785
|
+
}, {
|
|
786
|
+
readonly inputs: readonly [{
|
|
787
|
+
readonly internalType: "address";
|
|
788
|
+
readonly name: "_executor";
|
|
789
|
+
readonly type: "address";
|
|
790
|
+
}];
|
|
791
|
+
readonly name: "removeExecutor";
|
|
792
|
+
readonly outputs: readonly [];
|
|
793
|
+
readonly stateMutability: "nonpayable";
|
|
794
|
+
readonly type: "function";
|
|
795
|
+
}, {
|
|
796
|
+
readonly inputs: readonly [];
|
|
797
|
+
readonly name: "renounceOwnership";
|
|
798
|
+
readonly outputs: readonly [];
|
|
799
|
+
readonly stateMutability: "nonpayable";
|
|
800
|
+
readonly type: "function";
|
|
801
|
+
}, {
|
|
802
|
+
readonly inputs: readonly [{
|
|
803
|
+
readonly internalType: "uint256";
|
|
804
|
+
readonly name: "_amount";
|
|
805
|
+
readonly type: "uint256";
|
|
806
|
+
}];
|
|
807
|
+
readonly name: "repay";
|
|
808
|
+
readonly outputs: readonly [];
|
|
809
|
+
readonly stateMutability: "nonpayable";
|
|
810
|
+
readonly type: "function";
|
|
811
|
+
}, {
|
|
812
|
+
readonly inputs: readonly [];
|
|
813
|
+
readonly name: "repayAll";
|
|
814
|
+
readonly outputs: readonly [];
|
|
815
|
+
readonly stateMutability: "nonpayable";
|
|
816
|
+
readonly type: "function";
|
|
817
|
+
}, {
|
|
818
|
+
readonly inputs: readonly [];
|
|
819
|
+
readonly name: "repayAllAndWithdrawSupplyAll";
|
|
820
|
+
readonly outputs: readonly [{
|
|
821
|
+
readonly internalType: "uint256";
|
|
822
|
+
readonly name: "amountWithdrawn";
|
|
823
|
+
readonly type: "uint256";
|
|
824
|
+
}];
|
|
825
|
+
readonly stateMutability: "nonpayable";
|
|
826
|
+
readonly type: "function";
|
|
827
|
+
}, {
|
|
828
|
+
readonly inputs: readonly [{
|
|
829
|
+
readonly internalType: "address";
|
|
830
|
+
readonly name: "_token";
|
|
831
|
+
readonly type: "address";
|
|
832
|
+
}, {
|
|
833
|
+
readonly internalType: "address";
|
|
834
|
+
readonly name: "_guy";
|
|
835
|
+
readonly type: "address";
|
|
836
|
+
}];
|
|
837
|
+
readonly name: "revokeToken";
|
|
838
|
+
readonly outputs: readonly [];
|
|
839
|
+
readonly stateMutability: "nonpayable";
|
|
840
|
+
readonly type: "function";
|
|
841
|
+
}, {
|
|
842
|
+
readonly inputs: readonly [{
|
|
843
|
+
readonly internalType: "Id";
|
|
844
|
+
readonly name: "_marketId";
|
|
845
|
+
readonly type: "bytes32";
|
|
846
|
+
}, {
|
|
847
|
+
readonly internalType: "uint256";
|
|
848
|
+
readonly name: "_minHealthFactor";
|
|
849
|
+
readonly type: "uint256";
|
|
850
|
+
}];
|
|
851
|
+
readonly name: "setConfig";
|
|
852
|
+
readonly outputs: readonly [];
|
|
853
|
+
readonly stateMutability: "nonpayable";
|
|
854
|
+
readonly type: "function";
|
|
855
|
+
}, {
|
|
856
|
+
readonly inputs: readonly [{
|
|
857
|
+
readonly internalType: "address";
|
|
858
|
+
readonly name: "";
|
|
859
|
+
readonly type: "address";
|
|
860
|
+
}, {
|
|
861
|
+
readonly internalType: "address";
|
|
862
|
+
readonly name: "";
|
|
863
|
+
readonly type: "address";
|
|
864
|
+
}, {
|
|
865
|
+
readonly internalType: "uint256";
|
|
866
|
+
readonly name: "";
|
|
867
|
+
readonly type: "uint256";
|
|
868
|
+
}];
|
|
869
|
+
readonly name: "setConfig";
|
|
870
|
+
readonly outputs: readonly [];
|
|
871
|
+
readonly stateMutability: "pure";
|
|
872
|
+
readonly type: "function";
|
|
873
|
+
}, {
|
|
874
|
+
readonly inputs: readonly [{
|
|
875
|
+
readonly internalType: "uint256";
|
|
876
|
+
readonly name: "_amount";
|
|
877
|
+
readonly type: "uint256";
|
|
878
|
+
}];
|
|
879
|
+
readonly name: "supply";
|
|
880
|
+
readonly outputs: readonly [];
|
|
881
|
+
readonly stateMutability: "nonpayable";
|
|
882
|
+
readonly type: "function";
|
|
883
|
+
}, {
|
|
884
|
+
readonly inputs: readonly [{
|
|
885
|
+
readonly internalType: "address";
|
|
886
|
+
readonly name: "newOwner";
|
|
887
|
+
readonly type: "address";
|
|
888
|
+
}];
|
|
889
|
+
readonly name: "transferOwnership";
|
|
890
|
+
readonly outputs: readonly [];
|
|
891
|
+
readonly stateMutability: "nonpayable";
|
|
892
|
+
readonly type: "function";
|
|
893
|
+
}, {
|
|
894
|
+
readonly inputs: readonly [{
|
|
895
|
+
readonly internalType: "address";
|
|
896
|
+
readonly name: "newOwner";
|
|
897
|
+
readonly type: "address";
|
|
898
|
+
}];
|
|
899
|
+
readonly name: "transferOwnership1Step";
|
|
900
|
+
readonly outputs: readonly [];
|
|
901
|
+
readonly stateMutability: "nonpayable";
|
|
902
|
+
readonly type: "function";
|
|
903
|
+
}, {
|
|
904
|
+
readonly inputs: readonly [{
|
|
905
|
+
readonly internalType: "uint256";
|
|
906
|
+
readonly name: "_amount";
|
|
907
|
+
readonly type: "uint256";
|
|
908
|
+
}];
|
|
909
|
+
readonly name: "unwrapNative";
|
|
910
|
+
readonly outputs: readonly [];
|
|
911
|
+
readonly stateMutability: "nonpayable";
|
|
912
|
+
readonly type: "function";
|
|
913
|
+
}, {
|
|
914
|
+
readonly inputs: readonly [{
|
|
915
|
+
readonly internalType: "address";
|
|
916
|
+
readonly name: "_merkle_distributor";
|
|
917
|
+
readonly type: "address";
|
|
918
|
+
}];
|
|
919
|
+
readonly name: "updateMerkleDistributor";
|
|
920
|
+
readonly outputs: readonly [];
|
|
921
|
+
readonly stateMutability: "nonpayable";
|
|
922
|
+
readonly type: "function";
|
|
923
|
+
}, {
|
|
924
|
+
readonly inputs: readonly [{
|
|
925
|
+
readonly internalType: "contract IMorpho";
|
|
926
|
+
readonly name: "_address";
|
|
927
|
+
readonly type: "address";
|
|
928
|
+
}];
|
|
929
|
+
readonly name: "updateMorphoBlue";
|
|
930
|
+
readonly outputs: readonly [];
|
|
931
|
+
readonly stateMutability: "nonpayable";
|
|
932
|
+
readonly type: "function";
|
|
933
|
+
}, {
|
|
934
|
+
readonly inputs: readonly [{
|
|
935
|
+
readonly internalType: "address";
|
|
936
|
+
readonly name: "_asset_address";
|
|
937
|
+
readonly type: "address";
|
|
938
|
+
}, {
|
|
939
|
+
readonly internalType: "uint256";
|
|
940
|
+
readonly name: "_amount";
|
|
941
|
+
readonly type: "uint256";
|
|
942
|
+
}];
|
|
943
|
+
readonly name: "withdraw";
|
|
944
|
+
readonly outputs: readonly [];
|
|
945
|
+
readonly stateMutability: "nonpayable";
|
|
946
|
+
readonly type: "function";
|
|
947
|
+
}, {
|
|
948
|
+
readonly inputs: readonly [{
|
|
949
|
+
readonly internalType: "address";
|
|
950
|
+
readonly name: "_asset_address";
|
|
951
|
+
readonly type: "address";
|
|
952
|
+
}];
|
|
953
|
+
readonly name: "withdrawAll";
|
|
954
|
+
readonly outputs: readonly [];
|
|
955
|
+
readonly stateMutability: "nonpayable";
|
|
956
|
+
readonly type: "function";
|
|
957
|
+
}, {
|
|
958
|
+
readonly inputs: readonly [{
|
|
959
|
+
readonly internalType: "address";
|
|
960
|
+
readonly name: "_asset_address";
|
|
961
|
+
readonly type: "address";
|
|
962
|
+
}, {
|
|
963
|
+
readonly internalType: "address payable";
|
|
964
|
+
readonly name: "_to";
|
|
965
|
+
readonly type: "address";
|
|
966
|
+
}];
|
|
967
|
+
readonly name: "withdrawAllTo";
|
|
968
|
+
readonly outputs: readonly [];
|
|
969
|
+
readonly stateMutability: "nonpayable";
|
|
970
|
+
readonly type: "function";
|
|
971
|
+
}, {
|
|
972
|
+
readonly inputs: readonly [{
|
|
973
|
+
readonly internalType: "uint256";
|
|
974
|
+
readonly name: "_amount";
|
|
975
|
+
readonly type: "uint256";
|
|
976
|
+
}];
|
|
977
|
+
readonly name: "withdrawSupply";
|
|
978
|
+
readonly outputs: readonly [];
|
|
979
|
+
readonly stateMutability: "nonpayable";
|
|
980
|
+
readonly type: "function";
|
|
981
|
+
}, {
|
|
982
|
+
readonly inputs: readonly [];
|
|
983
|
+
readonly name: "withdrawSupplyAll";
|
|
984
|
+
readonly outputs: readonly [];
|
|
985
|
+
readonly stateMutability: "nonpayable";
|
|
986
|
+
readonly type: "function";
|
|
987
|
+
}, {
|
|
988
|
+
readonly inputs: readonly [{
|
|
989
|
+
readonly internalType: "address";
|
|
990
|
+
readonly name: "_asset_address";
|
|
991
|
+
readonly type: "address";
|
|
992
|
+
}, {
|
|
993
|
+
readonly internalType: "uint256";
|
|
994
|
+
readonly name: "_amount";
|
|
995
|
+
readonly type: "uint256";
|
|
996
|
+
}, {
|
|
997
|
+
readonly internalType: "address payable";
|
|
998
|
+
readonly name: "_to";
|
|
999
|
+
readonly type: "address";
|
|
1000
|
+
}];
|
|
1001
|
+
readonly name: "withdrawTo";
|
|
1002
|
+
readonly outputs: readonly [];
|
|
1003
|
+
readonly stateMutability: "nonpayable";
|
|
1004
|
+
readonly type: "function";
|
|
1005
|
+
}, {
|
|
1006
|
+
readonly inputs: readonly [{
|
|
1007
|
+
readonly internalType: "uint256";
|
|
1008
|
+
readonly name: "_amount";
|
|
1009
|
+
readonly type: "uint256";
|
|
1010
|
+
}];
|
|
1011
|
+
readonly name: "wrapNative";
|
|
1012
|
+
readonly outputs: readonly [];
|
|
1013
|
+
readonly stateMutability: "nonpayable";
|
|
1014
|
+
readonly type: "function";
|
|
1015
|
+
}, {
|
|
1016
|
+
readonly stateMutability: "payable";
|
|
1017
|
+
readonly type: "receive";
|
|
1018
|
+
}];
|
|
1019
|
+
/**
|
|
1020
|
+
* Type-safe ABI for LoanManagerOwnable2StepWithShortcut
|
|
1021
|
+
*/
|
|
1022
|
+
export type LoanManagerOwnable2StepWithShortcutAbi = typeof LoanManagerOwnable2StepWithShortcutAbi;
|
|
1023
|
+
/**
|
|
1024
|
+
* Contract instance type for LoanManagerOwnable2StepWithShortcut
|
|
1025
|
+
*/
|
|
1026
|
+
export type LoanManagerOwnable2StepWithShortcutContract = any;
|
|
1027
|
+
/**
|
|
1028
|
+
* LoanManagerOwnable2StepWithShortcut Contract Class
|
|
1029
|
+
*
|
|
1030
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1031
|
+
*
|
|
1032
|
+
* @example
|
|
1033
|
+
* ```typescript
|
|
1034
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1035
|
+
* import { mainnet } from 'viem/chains';
|
|
1036
|
+
* import { LoanManagerOwnable2StepWithShortcut } from 'LoanManagerOwnable2StepWithShortcut';
|
|
1037
|
+
*
|
|
1038
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1039
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1040
|
+
*
|
|
1041
|
+
* const contract = new LoanManagerOwnable2StepWithShortcut('0x...', { publicClient, walletClient });
|
|
1042
|
+
*
|
|
1043
|
+
* // Read functions
|
|
1044
|
+
* const result = await contract.balanceOf('0x...');
|
|
1045
|
+
*
|
|
1046
|
+
* // Write functions
|
|
1047
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
1048
|
+
*
|
|
1049
|
+
* // Simulate transactions (dry-run)
|
|
1050
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
1051
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
1052
|
+
*
|
|
1053
|
+
* // Watch events
|
|
1054
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1055
|
+
* console.log('Transfer event:', event);
|
|
1056
|
+
* });
|
|
1057
|
+
* ```
|
|
1058
|
+
*/
|
|
1059
|
+
export declare class LoanManagerOwnable2StepWithShortcut {
|
|
1060
|
+
private contract;
|
|
1061
|
+
private contractAddress;
|
|
1062
|
+
private publicClient;
|
|
1063
|
+
constructor(address: Address, clients: {
|
|
1064
|
+
publicClient: PublicClient;
|
|
1065
|
+
walletClient?: WalletClient;
|
|
1066
|
+
});
|
|
1067
|
+
/**
|
|
1068
|
+
* Get the contract address
|
|
1069
|
+
*/
|
|
1070
|
+
get address(): Address;
|
|
1071
|
+
/**
|
|
1072
|
+
* Get the underlying viem contract instance.
|
|
1073
|
+
*/
|
|
1074
|
+
getContract(): LoanManagerOwnable2StepWithShortcutContract;
|
|
1075
|
+
/**
|
|
1076
|
+
* WNATIVE
|
|
1077
|
+
* view
|
|
1078
|
+
*/
|
|
1079
|
+
WNATIVE(): Promise<`0x${string}`>;
|
|
1080
|
+
/**
|
|
1081
|
+
* balanceOf
|
|
1082
|
+
* view
|
|
1083
|
+
*/
|
|
1084
|
+
balanceOf(_asset_address: `0x${string}`, _account: `0x${string}`): Promise<bigint>;
|
|
1085
|
+
/**
|
|
1086
|
+
* executors
|
|
1087
|
+
* view
|
|
1088
|
+
*/
|
|
1089
|
+
executors(arg0: `0x${string}`): Promise<boolean>;
|
|
1090
|
+
/**
|
|
1091
|
+
* getBorrow
|
|
1092
|
+
* view
|
|
1093
|
+
*/
|
|
1094
|
+
getBorrow(): Promise<bigint>;
|
|
1095
|
+
/**
|
|
1096
|
+
* getBorrowRate
|
|
1097
|
+
* view
|
|
1098
|
+
*/
|
|
1099
|
+
getBorrowRate(): Promise<bigint>;
|
|
1100
|
+
/**
|
|
1101
|
+
* getConfig
|
|
1102
|
+
* view
|
|
1103
|
+
*/
|
|
1104
|
+
getConfig(): Promise<ILoanManager_LoanConfig>;
|
|
1105
|
+
/**
|
|
1106
|
+
* getHealthFactor
|
|
1107
|
+
* view
|
|
1108
|
+
*/
|
|
1109
|
+
getHealthFactor(): Promise<bigint>;
|
|
1110
|
+
/**
|
|
1111
|
+
* getLiquidationThreshold
|
|
1112
|
+
* view
|
|
1113
|
+
*/
|
|
1114
|
+
getLiquidationThreshold(arg0: `0x${string}`): Promise<bigint>;
|
|
1115
|
+
/**
|
|
1116
|
+
* getLiquidityAndShortFall
|
|
1117
|
+
* view
|
|
1118
|
+
*/
|
|
1119
|
+
getLiquidityAndShortFall(): Promise<[bigint, bigint]>;
|
|
1120
|
+
/**
|
|
1121
|
+
* getMarketParams
|
|
1122
|
+
* view
|
|
1123
|
+
*/
|
|
1124
|
+
getMarketParams(): Promise<MarketParams>;
|
|
1125
|
+
/**
|
|
1126
|
+
* getMarketsData
|
|
1127
|
+
* view
|
|
1128
|
+
*/
|
|
1129
|
+
getMarketsData(): Promise<[bigint, bigint, bigint, bigint, bigint, bigint]>;
|
|
1130
|
+
/**
|
|
1131
|
+
* getPositionAssets
|
|
1132
|
+
* view
|
|
1133
|
+
*/
|
|
1134
|
+
getPositionAssets(): Promise<`0x${string}`[]>;
|
|
1135
|
+
/**
|
|
1136
|
+
* getPositionDataSnapshot
|
|
1137
|
+
* view
|
|
1138
|
+
*/
|
|
1139
|
+
getPositionDataSnapshot(): Promise<[bigint, bigint, bigint, bigint, bigint, bigint, bigint]>;
|
|
1140
|
+
/**
|
|
1141
|
+
* getPrices
|
|
1142
|
+
* view
|
|
1143
|
+
*/
|
|
1144
|
+
getPrices(): Promise<[bigint, bigint]>;
|
|
1145
|
+
/**
|
|
1146
|
+
* getSupply
|
|
1147
|
+
* view
|
|
1148
|
+
*/
|
|
1149
|
+
getSupply(): Promise<bigint>;
|
|
1150
|
+
/**
|
|
1151
|
+
* getSupplyRate
|
|
1152
|
+
* pure
|
|
1153
|
+
*/
|
|
1154
|
+
getSupplyRate(): Promise<bigint>;
|
|
1155
|
+
/**
|
|
1156
|
+
* loanConfig
|
|
1157
|
+
* view
|
|
1158
|
+
*/
|
|
1159
|
+
loanConfig(): Promise<[`0x${string}`, `0x${string}`, bigint]>;
|
|
1160
|
+
/**
|
|
1161
|
+
* marketId
|
|
1162
|
+
* view
|
|
1163
|
+
*/
|
|
1164
|
+
marketId(): Promise<`0x${string}`>;
|
|
1165
|
+
/**
|
|
1166
|
+
* merkleDistributor
|
|
1167
|
+
* view
|
|
1168
|
+
*/
|
|
1169
|
+
merkleDistributor(): Promise<`0x${string}`>;
|
|
1170
|
+
/**
|
|
1171
|
+
* morphoBlue
|
|
1172
|
+
* view
|
|
1173
|
+
*/
|
|
1174
|
+
morphoBlue(): Promise<`0x${string}`>;
|
|
1175
|
+
/**
|
|
1176
|
+
* owner
|
|
1177
|
+
* view
|
|
1178
|
+
*/
|
|
1179
|
+
owner(): Promise<`0x${string}`>;
|
|
1180
|
+
/**
|
|
1181
|
+
* pendingOwner
|
|
1182
|
+
* view
|
|
1183
|
+
*/
|
|
1184
|
+
pendingOwner(): Promise<`0x${string}`>;
|
|
1185
|
+
/**
|
|
1186
|
+
* acceptOwnership
|
|
1187
|
+
* nonpayable
|
|
1188
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1189
|
+
*/
|
|
1190
|
+
acceptOwnership(options?: {
|
|
1191
|
+
accessList?: import('viem').AccessList;
|
|
1192
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1193
|
+
chain?: import('viem').Chain | null;
|
|
1194
|
+
dataSuffix?: `0x${string}`;
|
|
1195
|
+
gas?: bigint;
|
|
1196
|
+
gasPrice?: bigint;
|
|
1197
|
+
maxFeePerGas?: bigint;
|
|
1198
|
+
maxPriorityFeePerGas?: bigint;
|
|
1199
|
+
nonce?: number;
|
|
1200
|
+
value?: bigint;
|
|
1201
|
+
}): Promise<`0x${string}`>;
|
|
1202
|
+
/**
|
|
1203
|
+
* addExecutor
|
|
1204
|
+
* nonpayable
|
|
1205
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1206
|
+
*/
|
|
1207
|
+
addExecutor(_executor: `0x${string}`, options?: {
|
|
1208
|
+
accessList?: import('viem').AccessList;
|
|
1209
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1210
|
+
chain?: import('viem').Chain | null;
|
|
1211
|
+
dataSuffix?: `0x${string}`;
|
|
1212
|
+
gas?: bigint;
|
|
1213
|
+
gasPrice?: bigint;
|
|
1214
|
+
maxFeePerGas?: bigint;
|
|
1215
|
+
maxPriorityFeePerGas?: bigint;
|
|
1216
|
+
nonce?: number;
|
|
1217
|
+
value?: bigint;
|
|
1218
|
+
}): Promise<`0x${string}`>;
|
|
1219
|
+
/**
|
|
1220
|
+
* approveToken
|
|
1221
|
+
* nonpayable
|
|
1222
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1223
|
+
*/
|
|
1224
|
+
approveToken(_token: `0x${string}`, _guy: `0x${string}`, _wad: bigint, options?: {
|
|
1225
|
+
accessList?: import('viem').AccessList;
|
|
1226
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1227
|
+
chain?: import('viem').Chain | null;
|
|
1228
|
+
dataSuffix?: `0x${string}`;
|
|
1229
|
+
gas?: bigint;
|
|
1230
|
+
gasPrice?: bigint;
|
|
1231
|
+
maxFeePerGas?: bigint;
|
|
1232
|
+
maxPriorityFeePerGas?: bigint;
|
|
1233
|
+
nonce?: number;
|
|
1234
|
+
value?: bigint;
|
|
1235
|
+
}): Promise<`0x${string}`>;
|
|
1236
|
+
/**
|
|
1237
|
+
* batchExecute
|
|
1238
|
+
* payable
|
|
1239
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1240
|
+
*/
|
|
1241
|
+
batchExecute(_tos: `0x${string}`[], _values: bigint[], _datas: `0x${string}`[], options?: {
|
|
1242
|
+
accessList?: import('viem').AccessList;
|
|
1243
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1244
|
+
chain?: import('viem').Chain | null;
|
|
1245
|
+
dataSuffix?: `0x${string}`;
|
|
1246
|
+
gas?: bigint;
|
|
1247
|
+
gasPrice?: bigint;
|
|
1248
|
+
maxFeePerGas?: bigint;
|
|
1249
|
+
maxPriorityFeePerGas?: bigint;
|
|
1250
|
+
nonce?: number;
|
|
1251
|
+
value?: bigint;
|
|
1252
|
+
}): Promise<`0x${string}`>;
|
|
1253
|
+
/**
|
|
1254
|
+
* borrow
|
|
1255
|
+
* nonpayable
|
|
1256
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1257
|
+
*/
|
|
1258
|
+
borrow(_amount: bigint, options?: {
|
|
1259
|
+
accessList?: import('viem').AccessList;
|
|
1260
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1261
|
+
chain?: import('viem').Chain | null;
|
|
1262
|
+
dataSuffix?: `0x${string}`;
|
|
1263
|
+
gas?: bigint;
|
|
1264
|
+
gasPrice?: bigint;
|
|
1265
|
+
maxFeePerGas?: bigint;
|
|
1266
|
+
maxPriorityFeePerGas?: bigint;
|
|
1267
|
+
nonce?: number;
|
|
1268
|
+
value?: bigint;
|
|
1269
|
+
}): Promise<`0x${string}`>;
|
|
1270
|
+
/**
|
|
1271
|
+
* deposit
|
|
1272
|
+
* nonpayable
|
|
1273
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1274
|
+
*/
|
|
1275
|
+
deposit(_amount: bigint, arg1: bigint, options?: {
|
|
1276
|
+
accessList?: import('viem').AccessList;
|
|
1277
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1278
|
+
chain?: import('viem').Chain | null;
|
|
1279
|
+
dataSuffix?: `0x${string}`;
|
|
1280
|
+
gas?: bigint;
|
|
1281
|
+
gasPrice?: bigint;
|
|
1282
|
+
maxFeePerGas?: bigint;
|
|
1283
|
+
maxPriorityFeePerGas?: bigint;
|
|
1284
|
+
nonce?: number;
|
|
1285
|
+
value?: bigint;
|
|
1286
|
+
}): Promise<`0x${string}`>;
|
|
1287
|
+
/**
|
|
1288
|
+
* execute
|
|
1289
|
+
* payable
|
|
1290
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1291
|
+
*/
|
|
1292
|
+
execute(_to: `0x${string}`, _value: bigint, _data: `0x${string}`, options?: {
|
|
1293
|
+
accessList?: import('viem').AccessList;
|
|
1294
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1295
|
+
chain?: import('viem').Chain | null;
|
|
1296
|
+
dataSuffix?: `0x${string}`;
|
|
1297
|
+
gas?: bigint;
|
|
1298
|
+
gasPrice?: bigint;
|
|
1299
|
+
maxFeePerGas?: bigint;
|
|
1300
|
+
maxPriorityFeePerGas?: bigint;
|
|
1301
|
+
nonce?: number;
|
|
1302
|
+
value?: bigint;
|
|
1303
|
+
}): Promise<`0x${string}`>;
|
|
1304
|
+
/**
|
|
1305
|
+
* removeExecutor
|
|
1306
|
+
* nonpayable
|
|
1307
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1308
|
+
*/
|
|
1309
|
+
removeExecutor(_executor: `0x${string}`, options?: {
|
|
1310
|
+
accessList?: import('viem').AccessList;
|
|
1311
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1312
|
+
chain?: import('viem').Chain | null;
|
|
1313
|
+
dataSuffix?: `0x${string}`;
|
|
1314
|
+
gas?: bigint;
|
|
1315
|
+
gasPrice?: bigint;
|
|
1316
|
+
maxFeePerGas?: bigint;
|
|
1317
|
+
maxPriorityFeePerGas?: bigint;
|
|
1318
|
+
nonce?: number;
|
|
1319
|
+
value?: bigint;
|
|
1320
|
+
}): Promise<`0x${string}`>;
|
|
1321
|
+
/**
|
|
1322
|
+
* renounceOwnership
|
|
1323
|
+
* nonpayable
|
|
1324
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1325
|
+
*/
|
|
1326
|
+
renounceOwnership(options?: {
|
|
1327
|
+
accessList?: import('viem').AccessList;
|
|
1328
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1329
|
+
chain?: import('viem').Chain | null;
|
|
1330
|
+
dataSuffix?: `0x${string}`;
|
|
1331
|
+
gas?: bigint;
|
|
1332
|
+
gasPrice?: bigint;
|
|
1333
|
+
maxFeePerGas?: bigint;
|
|
1334
|
+
maxPriorityFeePerGas?: bigint;
|
|
1335
|
+
nonce?: number;
|
|
1336
|
+
value?: bigint;
|
|
1337
|
+
}): Promise<`0x${string}`>;
|
|
1338
|
+
/**
|
|
1339
|
+
* repay
|
|
1340
|
+
* nonpayable
|
|
1341
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1342
|
+
*/
|
|
1343
|
+
repay(_amount: bigint, options?: {
|
|
1344
|
+
accessList?: import('viem').AccessList;
|
|
1345
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1346
|
+
chain?: import('viem').Chain | null;
|
|
1347
|
+
dataSuffix?: `0x${string}`;
|
|
1348
|
+
gas?: bigint;
|
|
1349
|
+
gasPrice?: bigint;
|
|
1350
|
+
maxFeePerGas?: bigint;
|
|
1351
|
+
maxPriorityFeePerGas?: bigint;
|
|
1352
|
+
nonce?: number;
|
|
1353
|
+
value?: bigint;
|
|
1354
|
+
}): Promise<`0x${string}`>;
|
|
1355
|
+
/**
|
|
1356
|
+
* repayAll
|
|
1357
|
+
* nonpayable
|
|
1358
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1359
|
+
*/
|
|
1360
|
+
repayAll(options?: {
|
|
1361
|
+
accessList?: import('viem').AccessList;
|
|
1362
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1363
|
+
chain?: import('viem').Chain | null;
|
|
1364
|
+
dataSuffix?: `0x${string}`;
|
|
1365
|
+
gas?: bigint;
|
|
1366
|
+
gasPrice?: bigint;
|
|
1367
|
+
maxFeePerGas?: bigint;
|
|
1368
|
+
maxPriorityFeePerGas?: bigint;
|
|
1369
|
+
nonce?: number;
|
|
1370
|
+
value?: bigint;
|
|
1371
|
+
}): Promise<`0x${string}`>;
|
|
1372
|
+
/**
|
|
1373
|
+
* repayAllAndWithdrawSupplyAll
|
|
1374
|
+
* nonpayable
|
|
1375
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1376
|
+
*/
|
|
1377
|
+
repayAllAndWithdrawSupplyAll(options?: {
|
|
1378
|
+
accessList?: import('viem').AccessList;
|
|
1379
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1380
|
+
chain?: import('viem').Chain | null;
|
|
1381
|
+
dataSuffix?: `0x${string}`;
|
|
1382
|
+
gas?: bigint;
|
|
1383
|
+
gasPrice?: bigint;
|
|
1384
|
+
maxFeePerGas?: bigint;
|
|
1385
|
+
maxPriorityFeePerGas?: bigint;
|
|
1386
|
+
nonce?: number;
|
|
1387
|
+
value?: bigint;
|
|
1388
|
+
}): Promise<`0x${string}`>;
|
|
1389
|
+
/**
|
|
1390
|
+
* revokeToken
|
|
1391
|
+
* nonpayable
|
|
1392
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1393
|
+
*/
|
|
1394
|
+
revokeToken(_token: `0x${string}`, _guy: `0x${string}`, options?: {
|
|
1395
|
+
accessList?: import('viem').AccessList;
|
|
1396
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1397
|
+
chain?: import('viem').Chain | null;
|
|
1398
|
+
dataSuffix?: `0x${string}`;
|
|
1399
|
+
gas?: bigint;
|
|
1400
|
+
gasPrice?: bigint;
|
|
1401
|
+
maxFeePerGas?: bigint;
|
|
1402
|
+
maxPriorityFeePerGas?: bigint;
|
|
1403
|
+
nonce?: number;
|
|
1404
|
+
value?: bigint;
|
|
1405
|
+
}): Promise<`0x${string}`>;
|
|
1406
|
+
/**
|
|
1407
|
+
* supply
|
|
1408
|
+
* nonpayable
|
|
1409
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1410
|
+
*/
|
|
1411
|
+
supply(_amount: bigint, options?: {
|
|
1412
|
+
accessList?: import('viem').AccessList;
|
|
1413
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1414
|
+
chain?: import('viem').Chain | null;
|
|
1415
|
+
dataSuffix?: `0x${string}`;
|
|
1416
|
+
gas?: bigint;
|
|
1417
|
+
gasPrice?: bigint;
|
|
1418
|
+
maxFeePerGas?: bigint;
|
|
1419
|
+
maxPriorityFeePerGas?: bigint;
|
|
1420
|
+
nonce?: number;
|
|
1421
|
+
value?: bigint;
|
|
1422
|
+
}): Promise<`0x${string}`>;
|
|
1423
|
+
/**
|
|
1424
|
+
* transferOwnership
|
|
1425
|
+
* nonpayable
|
|
1426
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1427
|
+
*/
|
|
1428
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1429
|
+
accessList?: import('viem').AccessList;
|
|
1430
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1431
|
+
chain?: import('viem').Chain | null;
|
|
1432
|
+
dataSuffix?: `0x${string}`;
|
|
1433
|
+
gas?: bigint;
|
|
1434
|
+
gasPrice?: bigint;
|
|
1435
|
+
maxFeePerGas?: bigint;
|
|
1436
|
+
maxPriorityFeePerGas?: bigint;
|
|
1437
|
+
nonce?: number;
|
|
1438
|
+
value?: bigint;
|
|
1439
|
+
}): Promise<`0x${string}`>;
|
|
1440
|
+
/**
|
|
1441
|
+
* transferOwnership1Step
|
|
1442
|
+
* nonpayable
|
|
1443
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1444
|
+
*/
|
|
1445
|
+
transferOwnership1Step(newOwner: `0x${string}`, options?: {
|
|
1446
|
+
accessList?: import('viem').AccessList;
|
|
1447
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1448
|
+
chain?: import('viem').Chain | null;
|
|
1449
|
+
dataSuffix?: `0x${string}`;
|
|
1450
|
+
gas?: bigint;
|
|
1451
|
+
gasPrice?: bigint;
|
|
1452
|
+
maxFeePerGas?: bigint;
|
|
1453
|
+
maxPriorityFeePerGas?: bigint;
|
|
1454
|
+
nonce?: number;
|
|
1455
|
+
value?: bigint;
|
|
1456
|
+
}): Promise<`0x${string}`>;
|
|
1457
|
+
/**
|
|
1458
|
+
* unwrapNative
|
|
1459
|
+
* nonpayable
|
|
1460
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1461
|
+
*/
|
|
1462
|
+
unwrapNative(_amount: bigint, options?: {
|
|
1463
|
+
accessList?: import('viem').AccessList;
|
|
1464
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1465
|
+
chain?: import('viem').Chain | null;
|
|
1466
|
+
dataSuffix?: `0x${string}`;
|
|
1467
|
+
gas?: bigint;
|
|
1468
|
+
gasPrice?: bigint;
|
|
1469
|
+
maxFeePerGas?: bigint;
|
|
1470
|
+
maxPriorityFeePerGas?: bigint;
|
|
1471
|
+
nonce?: number;
|
|
1472
|
+
value?: bigint;
|
|
1473
|
+
}): Promise<`0x${string}`>;
|
|
1474
|
+
/**
|
|
1475
|
+
* updateMerkleDistributor
|
|
1476
|
+
* nonpayable
|
|
1477
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1478
|
+
*/
|
|
1479
|
+
updateMerkleDistributor(_merkle_distributor: `0x${string}`, options?: {
|
|
1480
|
+
accessList?: import('viem').AccessList;
|
|
1481
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1482
|
+
chain?: import('viem').Chain | null;
|
|
1483
|
+
dataSuffix?: `0x${string}`;
|
|
1484
|
+
gas?: bigint;
|
|
1485
|
+
gasPrice?: bigint;
|
|
1486
|
+
maxFeePerGas?: bigint;
|
|
1487
|
+
maxPriorityFeePerGas?: bigint;
|
|
1488
|
+
nonce?: number;
|
|
1489
|
+
value?: bigint;
|
|
1490
|
+
}): Promise<`0x${string}`>;
|
|
1491
|
+
/**
|
|
1492
|
+
* updateMorphoBlue
|
|
1493
|
+
* nonpayable
|
|
1494
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1495
|
+
*/
|
|
1496
|
+
updateMorphoBlue(_address: `0x${string}`, options?: {
|
|
1497
|
+
accessList?: import('viem').AccessList;
|
|
1498
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1499
|
+
chain?: import('viem').Chain | null;
|
|
1500
|
+
dataSuffix?: `0x${string}`;
|
|
1501
|
+
gas?: bigint;
|
|
1502
|
+
gasPrice?: bigint;
|
|
1503
|
+
maxFeePerGas?: bigint;
|
|
1504
|
+
maxPriorityFeePerGas?: bigint;
|
|
1505
|
+
nonce?: number;
|
|
1506
|
+
value?: bigint;
|
|
1507
|
+
}): Promise<`0x${string}`>;
|
|
1508
|
+
/**
|
|
1509
|
+
* withdraw
|
|
1510
|
+
* nonpayable
|
|
1511
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1512
|
+
*/
|
|
1513
|
+
withdraw(_asset_address: `0x${string}`, _amount: bigint, options?: {
|
|
1514
|
+
accessList?: import('viem').AccessList;
|
|
1515
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1516
|
+
chain?: import('viem').Chain | null;
|
|
1517
|
+
dataSuffix?: `0x${string}`;
|
|
1518
|
+
gas?: bigint;
|
|
1519
|
+
gasPrice?: bigint;
|
|
1520
|
+
maxFeePerGas?: bigint;
|
|
1521
|
+
maxPriorityFeePerGas?: bigint;
|
|
1522
|
+
nonce?: number;
|
|
1523
|
+
value?: bigint;
|
|
1524
|
+
}): Promise<`0x${string}`>;
|
|
1525
|
+
/**
|
|
1526
|
+
* withdrawAll
|
|
1527
|
+
* nonpayable
|
|
1528
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1529
|
+
*/
|
|
1530
|
+
withdrawAll(_asset_address: `0x${string}`, options?: {
|
|
1531
|
+
accessList?: import('viem').AccessList;
|
|
1532
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1533
|
+
chain?: import('viem').Chain | null;
|
|
1534
|
+
dataSuffix?: `0x${string}`;
|
|
1535
|
+
gas?: bigint;
|
|
1536
|
+
gasPrice?: bigint;
|
|
1537
|
+
maxFeePerGas?: bigint;
|
|
1538
|
+
maxPriorityFeePerGas?: bigint;
|
|
1539
|
+
nonce?: number;
|
|
1540
|
+
value?: bigint;
|
|
1541
|
+
}): Promise<`0x${string}`>;
|
|
1542
|
+
/**
|
|
1543
|
+
* withdrawAllTo
|
|
1544
|
+
* nonpayable
|
|
1545
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1546
|
+
*/
|
|
1547
|
+
withdrawAllTo(_asset_address: `0x${string}`, _to: `0x${string}`, options?: {
|
|
1548
|
+
accessList?: import('viem').AccessList;
|
|
1549
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1550
|
+
chain?: import('viem').Chain | null;
|
|
1551
|
+
dataSuffix?: `0x${string}`;
|
|
1552
|
+
gas?: bigint;
|
|
1553
|
+
gasPrice?: bigint;
|
|
1554
|
+
maxFeePerGas?: bigint;
|
|
1555
|
+
maxPriorityFeePerGas?: bigint;
|
|
1556
|
+
nonce?: number;
|
|
1557
|
+
value?: bigint;
|
|
1558
|
+
}): Promise<`0x${string}`>;
|
|
1559
|
+
/**
|
|
1560
|
+
* withdrawSupply
|
|
1561
|
+
* nonpayable
|
|
1562
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1563
|
+
*/
|
|
1564
|
+
withdrawSupply(_amount: bigint, options?: {
|
|
1565
|
+
accessList?: import('viem').AccessList;
|
|
1566
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1567
|
+
chain?: import('viem').Chain | null;
|
|
1568
|
+
dataSuffix?: `0x${string}`;
|
|
1569
|
+
gas?: bigint;
|
|
1570
|
+
gasPrice?: bigint;
|
|
1571
|
+
maxFeePerGas?: bigint;
|
|
1572
|
+
maxPriorityFeePerGas?: bigint;
|
|
1573
|
+
nonce?: number;
|
|
1574
|
+
value?: bigint;
|
|
1575
|
+
}): Promise<`0x${string}`>;
|
|
1576
|
+
/**
|
|
1577
|
+
* withdrawSupplyAll
|
|
1578
|
+
* nonpayable
|
|
1579
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1580
|
+
*/
|
|
1581
|
+
withdrawSupplyAll(options?: {
|
|
1582
|
+
accessList?: import('viem').AccessList;
|
|
1583
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1584
|
+
chain?: import('viem').Chain | null;
|
|
1585
|
+
dataSuffix?: `0x${string}`;
|
|
1586
|
+
gas?: bigint;
|
|
1587
|
+
gasPrice?: bigint;
|
|
1588
|
+
maxFeePerGas?: bigint;
|
|
1589
|
+
maxPriorityFeePerGas?: bigint;
|
|
1590
|
+
nonce?: number;
|
|
1591
|
+
value?: bigint;
|
|
1592
|
+
}): Promise<`0x${string}`>;
|
|
1593
|
+
/**
|
|
1594
|
+
* withdrawTo
|
|
1595
|
+
* nonpayable
|
|
1596
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1597
|
+
*/
|
|
1598
|
+
withdrawTo(_asset_address: `0x${string}`, _amount: bigint, _to: `0x${string}`, options?: {
|
|
1599
|
+
accessList?: import('viem').AccessList;
|
|
1600
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1601
|
+
chain?: import('viem').Chain | null;
|
|
1602
|
+
dataSuffix?: `0x${string}`;
|
|
1603
|
+
gas?: bigint;
|
|
1604
|
+
gasPrice?: bigint;
|
|
1605
|
+
maxFeePerGas?: bigint;
|
|
1606
|
+
maxPriorityFeePerGas?: bigint;
|
|
1607
|
+
nonce?: number;
|
|
1608
|
+
value?: bigint;
|
|
1609
|
+
}): Promise<`0x${string}`>;
|
|
1610
|
+
/**
|
|
1611
|
+
* wrapNative
|
|
1612
|
+
* nonpayable
|
|
1613
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1614
|
+
*/
|
|
1615
|
+
wrapNative(_amount: bigint, options?: {
|
|
1616
|
+
accessList?: import('viem').AccessList;
|
|
1617
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1618
|
+
chain?: import('viem').Chain | null;
|
|
1619
|
+
dataSuffix?: `0x${string}`;
|
|
1620
|
+
gas?: bigint;
|
|
1621
|
+
gasPrice?: bigint;
|
|
1622
|
+
maxFeePerGas?: bigint;
|
|
1623
|
+
maxPriorityFeePerGas?: bigint;
|
|
1624
|
+
nonce?: number;
|
|
1625
|
+
value?: bigint;
|
|
1626
|
+
}): Promise<`0x${string}`>;
|
|
1627
|
+
claimRewards(): Promise<[`0x${string}`[], bigint[]]>;
|
|
1628
|
+
claimRewards(_merkle_claim_data: LoanManager_MerkleClaimData, options?: {
|
|
1629
|
+
accessList?: import('viem').AccessList;
|
|
1630
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1631
|
+
chain?: import('viem').Chain | null;
|
|
1632
|
+
dataSuffix?: `0x${string}`;
|
|
1633
|
+
gas?: bigint;
|
|
1634
|
+
gasPrice?: bigint;
|
|
1635
|
+
maxFeePerGas?: bigint;
|
|
1636
|
+
maxPriorityFeePerGas?: bigint;
|
|
1637
|
+
nonce?: number;
|
|
1638
|
+
value?: bigint;
|
|
1639
|
+
}): Promise<`0x${string}`>;
|
|
1640
|
+
setConfig(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint): Promise<void>;
|
|
1641
|
+
setConfig(_marketId: `0x${string}`, _minHealthFactor: bigint, options?: {
|
|
1642
|
+
accessList?: import('viem').AccessList;
|
|
1643
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1644
|
+
chain?: import('viem').Chain | null;
|
|
1645
|
+
dataSuffix?: `0x${string}`;
|
|
1646
|
+
gas?: bigint;
|
|
1647
|
+
gasPrice?: bigint;
|
|
1648
|
+
maxFeePerGas?: bigint;
|
|
1649
|
+
maxPriorityFeePerGas?: bigint;
|
|
1650
|
+
nonce?: number;
|
|
1651
|
+
value?: bigint;
|
|
1652
|
+
}): Promise<`0x${string}`>;
|
|
1653
|
+
/**
|
|
1654
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
1655
|
+
*
|
|
1656
|
+
* @example
|
|
1657
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
1658
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
1659
|
+
* console.log('Would succeed:', result.result);
|
|
1660
|
+
*/
|
|
1661
|
+
get simulate(): {
|
|
1662
|
+
/**
|
|
1663
|
+
* Simulate acceptOwnership
|
|
1664
|
+
* Returns gas estimate and result without sending transaction
|
|
1665
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1666
|
+
*/
|
|
1667
|
+
acceptOwnership(options?: {
|
|
1668
|
+
accessList?: import("viem").AccessList;
|
|
1669
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1670
|
+
chain?: import("viem").Chain | null;
|
|
1671
|
+
dataSuffix?: `0x${string}`;
|
|
1672
|
+
gas?: bigint;
|
|
1673
|
+
gasPrice?: bigint;
|
|
1674
|
+
maxFeePerGas?: bigint;
|
|
1675
|
+
maxPriorityFeePerGas?: bigint;
|
|
1676
|
+
nonce?: number;
|
|
1677
|
+
value?: bigint;
|
|
1678
|
+
}): Promise<void>;
|
|
1679
|
+
/**
|
|
1680
|
+
* Simulate addExecutor
|
|
1681
|
+
* Returns gas estimate and result without sending transaction
|
|
1682
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1683
|
+
*/
|
|
1684
|
+
addExecutor(_executor: `0x${string}`, options?: {
|
|
1685
|
+
accessList?: import("viem").AccessList;
|
|
1686
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1687
|
+
chain?: import("viem").Chain | null;
|
|
1688
|
+
dataSuffix?: `0x${string}`;
|
|
1689
|
+
gas?: bigint;
|
|
1690
|
+
gasPrice?: bigint;
|
|
1691
|
+
maxFeePerGas?: bigint;
|
|
1692
|
+
maxPriorityFeePerGas?: bigint;
|
|
1693
|
+
nonce?: number;
|
|
1694
|
+
value?: bigint;
|
|
1695
|
+
}): Promise<void>;
|
|
1696
|
+
/**
|
|
1697
|
+
* Simulate approveToken
|
|
1698
|
+
* Returns gas estimate and result without sending transaction
|
|
1699
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1700
|
+
*/
|
|
1701
|
+
approveToken(_token: `0x${string}`, _guy: `0x${string}`, _wad: bigint, options?: {
|
|
1702
|
+
accessList?: import("viem").AccessList;
|
|
1703
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1704
|
+
chain?: import("viem").Chain | null;
|
|
1705
|
+
dataSuffix?: `0x${string}`;
|
|
1706
|
+
gas?: bigint;
|
|
1707
|
+
gasPrice?: bigint;
|
|
1708
|
+
maxFeePerGas?: bigint;
|
|
1709
|
+
maxPriorityFeePerGas?: bigint;
|
|
1710
|
+
nonce?: number;
|
|
1711
|
+
value?: bigint;
|
|
1712
|
+
}): Promise<void>;
|
|
1713
|
+
/**
|
|
1714
|
+
* Simulate batchExecute
|
|
1715
|
+
* Returns gas estimate and result without sending transaction
|
|
1716
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1717
|
+
*/
|
|
1718
|
+
batchExecute(_tos: `0x${string}`[], _values: bigint[], _datas: `0x${string}`[], options?: {
|
|
1719
|
+
accessList?: import("viem").AccessList;
|
|
1720
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1721
|
+
chain?: import("viem").Chain | null;
|
|
1722
|
+
dataSuffix?: `0x${string}`;
|
|
1723
|
+
gas?: bigint;
|
|
1724
|
+
gasPrice?: bigint;
|
|
1725
|
+
maxFeePerGas?: bigint;
|
|
1726
|
+
maxPriorityFeePerGas?: bigint;
|
|
1727
|
+
nonce?: number;
|
|
1728
|
+
value?: bigint;
|
|
1729
|
+
}): Promise<void>;
|
|
1730
|
+
/**
|
|
1731
|
+
* Simulate borrow
|
|
1732
|
+
* Returns gas estimate and result without sending transaction
|
|
1733
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1734
|
+
*/
|
|
1735
|
+
borrow(_amount: bigint, options?: {
|
|
1736
|
+
accessList?: import("viem").AccessList;
|
|
1737
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1738
|
+
chain?: import("viem").Chain | null;
|
|
1739
|
+
dataSuffix?: `0x${string}`;
|
|
1740
|
+
gas?: bigint;
|
|
1741
|
+
gasPrice?: bigint;
|
|
1742
|
+
maxFeePerGas?: bigint;
|
|
1743
|
+
maxPriorityFeePerGas?: bigint;
|
|
1744
|
+
nonce?: number;
|
|
1745
|
+
value?: bigint;
|
|
1746
|
+
}): Promise<void>;
|
|
1747
|
+
/**
|
|
1748
|
+
* Simulate claimRewards
|
|
1749
|
+
* Returns gas estimate and result without sending transaction
|
|
1750
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1751
|
+
*/
|
|
1752
|
+
claimRewards(_merkle_claim_data: LoanManager_MerkleClaimData, options?: {
|
|
1753
|
+
accessList?: import("viem").AccessList;
|
|
1754
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1755
|
+
chain?: import("viem").Chain | null;
|
|
1756
|
+
dataSuffix?: `0x${string}`;
|
|
1757
|
+
gas?: bigint;
|
|
1758
|
+
gasPrice?: bigint;
|
|
1759
|
+
maxFeePerGas?: bigint;
|
|
1760
|
+
maxPriorityFeePerGas?: bigint;
|
|
1761
|
+
nonce?: number;
|
|
1762
|
+
value?: bigint;
|
|
1763
|
+
}): Promise<[`0x${string}`[], bigint[]]>;
|
|
1764
|
+
/**
|
|
1765
|
+
* Simulate deposit
|
|
1766
|
+
* Returns gas estimate and result without sending transaction
|
|
1767
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1768
|
+
*/
|
|
1769
|
+
deposit(_amount: bigint, arg1: bigint, options?: {
|
|
1770
|
+
accessList?: import("viem").AccessList;
|
|
1771
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1772
|
+
chain?: import("viem").Chain | null;
|
|
1773
|
+
dataSuffix?: `0x${string}`;
|
|
1774
|
+
gas?: bigint;
|
|
1775
|
+
gasPrice?: bigint;
|
|
1776
|
+
maxFeePerGas?: bigint;
|
|
1777
|
+
maxPriorityFeePerGas?: bigint;
|
|
1778
|
+
nonce?: number;
|
|
1779
|
+
value?: bigint;
|
|
1780
|
+
}): Promise<void>;
|
|
1781
|
+
/**
|
|
1782
|
+
* Simulate execute
|
|
1783
|
+
* Returns gas estimate and result without sending transaction
|
|
1784
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1785
|
+
*/
|
|
1786
|
+
execute(_to: `0x${string}`, _value: bigint, _data: `0x${string}`, options?: {
|
|
1787
|
+
accessList?: import("viem").AccessList;
|
|
1788
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1789
|
+
chain?: import("viem").Chain | null;
|
|
1790
|
+
dataSuffix?: `0x${string}`;
|
|
1791
|
+
gas?: bigint;
|
|
1792
|
+
gasPrice?: bigint;
|
|
1793
|
+
maxFeePerGas?: bigint;
|
|
1794
|
+
maxPriorityFeePerGas?: bigint;
|
|
1795
|
+
nonce?: number;
|
|
1796
|
+
value?: bigint;
|
|
1797
|
+
}): Promise<void>;
|
|
1798
|
+
/**
|
|
1799
|
+
* Simulate removeExecutor
|
|
1800
|
+
* Returns gas estimate and result without sending transaction
|
|
1801
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1802
|
+
*/
|
|
1803
|
+
removeExecutor(_executor: `0x${string}`, options?: {
|
|
1804
|
+
accessList?: import("viem").AccessList;
|
|
1805
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1806
|
+
chain?: import("viem").Chain | null;
|
|
1807
|
+
dataSuffix?: `0x${string}`;
|
|
1808
|
+
gas?: bigint;
|
|
1809
|
+
gasPrice?: bigint;
|
|
1810
|
+
maxFeePerGas?: bigint;
|
|
1811
|
+
maxPriorityFeePerGas?: bigint;
|
|
1812
|
+
nonce?: number;
|
|
1813
|
+
value?: bigint;
|
|
1814
|
+
}): Promise<void>;
|
|
1815
|
+
/**
|
|
1816
|
+
* Simulate renounceOwnership
|
|
1817
|
+
* Returns gas estimate and result without sending transaction
|
|
1818
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1819
|
+
*/
|
|
1820
|
+
renounceOwnership(options?: {
|
|
1821
|
+
accessList?: import("viem").AccessList;
|
|
1822
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1823
|
+
chain?: import("viem").Chain | null;
|
|
1824
|
+
dataSuffix?: `0x${string}`;
|
|
1825
|
+
gas?: bigint;
|
|
1826
|
+
gasPrice?: bigint;
|
|
1827
|
+
maxFeePerGas?: bigint;
|
|
1828
|
+
maxPriorityFeePerGas?: bigint;
|
|
1829
|
+
nonce?: number;
|
|
1830
|
+
value?: bigint;
|
|
1831
|
+
}): Promise<void>;
|
|
1832
|
+
/**
|
|
1833
|
+
* Simulate repay
|
|
1834
|
+
* Returns gas estimate and result without sending transaction
|
|
1835
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1836
|
+
*/
|
|
1837
|
+
repay(_amount: bigint, options?: {
|
|
1838
|
+
accessList?: import("viem").AccessList;
|
|
1839
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1840
|
+
chain?: import("viem").Chain | null;
|
|
1841
|
+
dataSuffix?: `0x${string}`;
|
|
1842
|
+
gas?: bigint;
|
|
1843
|
+
gasPrice?: bigint;
|
|
1844
|
+
maxFeePerGas?: bigint;
|
|
1845
|
+
maxPriorityFeePerGas?: bigint;
|
|
1846
|
+
nonce?: number;
|
|
1847
|
+
value?: bigint;
|
|
1848
|
+
}): Promise<void>;
|
|
1849
|
+
/**
|
|
1850
|
+
* Simulate repayAll
|
|
1851
|
+
* Returns gas estimate and result without sending transaction
|
|
1852
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1853
|
+
*/
|
|
1854
|
+
repayAll(options?: {
|
|
1855
|
+
accessList?: import("viem").AccessList;
|
|
1856
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1857
|
+
chain?: import("viem").Chain | null;
|
|
1858
|
+
dataSuffix?: `0x${string}`;
|
|
1859
|
+
gas?: bigint;
|
|
1860
|
+
gasPrice?: bigint;
|
|
1861
|
+
maxFeePerGas?: bigint;
|
|
1862
|
+
maxPriorityFeePerGas?: bigint;
|
|
1863
|
+
nonce?: number;
|
|
1864
|
+
value?: bigint;
|
|
1865
|
+
}): Promise<void>;
|
|
1866
|
+
/**
|
|
1867
|
+
* Simulate repayAllAndWithdrawSupplyAll
|
|
1868
|
+
* Returns gas estimate and result without sending transaction
|
|
1869
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1870
|
+
*/
|
|
1871
|
+
repayAllAndWithdrawSupplyAll(options?: {
|
|
1872
|
+
accessList?: import("viem").AccessList;
|
|
1873
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1874
|
+
chain?: import("viem").Chain | null;
|
|
1875
|
+
dataSuffix?: `0x${string}`;
|
|
1876
|
+
gas?: bigint;
|
|
1877
|
+
gasPrice?: bigint;
|
|
1878
|
+
maxFeePerGas?: bigint;
|
|
1879
|
+
maxPriorityFeePerGas?: bigint;
|
|
1880
|
+
nonce?: number;
|
|
1881
|
+
value?: bigint;
|
|
1882
|
+
}): Promise<bigint>;
|
|
1883
|
+
/**
|
|
1884
|
+
* Simulate revokeToken
|
|
1885
|
+
* Returns gas estimate and result without sending transaction
|
|
1886
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1887
|
+
*/
|
|
1888
|
+
revokeToken(_token: `0x${string}`, _guy: `0x${string}`, options?: {
|
|
1889
|
+
accessList?: import("viem").AccessList;
|
|
1890
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1891
|
+
chain?: import("viem").Chain | null;
|
|
1892
|
+
dataSuffix?: `0x${string}`;
|
|
1893
|
+
gas?: bigint;
|
|
1894
|
+
gasPrice?: bigint;
|
|
1895
|
+
maxFeePerGas?: bigint;
|
|
1896
|
+
maxPriorityFeePerGas?: bigint;
|
|
1897
|
+
nonce?: number;
|
|
1898
|
+
value?: bigint;
|
|
1899
|
+
}): Promise<void>;
|
|
1900
|
+
/**
|
|
1901
|
+
* Simulate setConfig
|
|
1902
|
+
* Returns gas estimate and result without sending transaction
|
|
1903
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1904
|
+
*/
|
|
1905
|
+
setConfig(_marketId: `0x${string}`, _minHealthFactor: bigint, options?: {
|
|
1906
|
+
accessList?: import("viem").AccessList;
|
|
1907
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1908
|
+
chain?: import("viem").Chain | null;
|
|
1909
|
+
dataSuffix?: `0x${string}`;
|
|
1910
|
+
gas?: bigint;
|
|
1911
|
+
gasPrice?: bigint;
|
|
1912
|
+
maxFeePerGas?: bigint;
|
|
1913
|
+
maxPriorityFeePerGas?: bigint;
|
|
1914
|
+
nonce?: number;
|
|
1915
|
+
value?: bigint;
|
|
1916
|
+
}): Promise<void>;
|
|
1917
|
+
/**
|
|
1918
|
+
* Simulate supply
|
|
1919
|
+
* Returns gas estimate and result without sending transaction
|
|
1920
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1921
|
+
*/
|
|
1922
|
+
supply(_amount: bigint, options?: {
|
|
1923
|
+
accessList?: import("viem").AccessList;
|
|
1924
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1925
|
+
chain?: import("viem").Chain | null;
|
|
1926
|
+
dataSuffix?: `0x${string}`;
|
|
1927
|
+
gas?: bigint;
|
|
1928
|
+
gasPrice?: bigint;
|
|
1929
|
+
maxFeePerGas?: bigint;
|
|
1930
|
+
maxPriorityFeePerGas?: bigint;
|
|
1931
|
+
nonce?: number;
|
|
1932
|
+
value?: bigint;
|
|
1933
|
+
}): Promise<void>;
|
|
1934
|
+
/**
|
|
1935
|
+
* Simulate transferOwnership
|
|
1936
|
+
* Returns gas estimate and result without sending transaction
|
|
1937
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1938
|
+
*/
|
|
1939
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1940
|
+
accessList?: import("viem").AccessList;
|
|
1941
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1942
|
+
chain?: import("viem").Chain | null;
|
|
1943
|
+
dataSuffix?: `0x${string}`;
|
|
1944
|
+
gas?: bigint;
|
|
1945
|
+
gasPrice?: bigint;
|
|
1946
|
+
maxFeePerGas?: bigint;
|
|
1947
|
+
maxPriorityFeePerGas?: bigint;
|
|
1948
|
+
nonce?: number;
|
|
1949
|
+
value?: bigint;
|
|
1950
|
+
}): Promise<void>;
|
|
1951
|
+
/**
|
|
1952
|
+
* Simulate transferOwnership1Step
|
|
1953
|
+
* Returns gas estimate and result without sending transaction
|
|
1954
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1955
|
+
*/
|
|
1956
|
+
transferOwnership1Step(newOwner: `0x${string}`, options?: {
|
|
1957
|
+
accessList?: import("viem").AccessList;
|
|
1958
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1959
|
+
chain?: import("viem").Chain | null;
|
|
1960
|
+
dataSuffix?: `0x${string}`;
|
|
1961
|
+
gas?: bigint;
|
|
1962
|
+
gasPrice?: bigint;
|
|
1963
|
+
maxFeePerGas?: bigint;
|
|
1964
|
+
maxPriorityFeePerGas?: bigint;
|
|
1965
|
+
nonce?: number;
|
|
1966
|
+
value?: bigint;
|
|
1967
|
+
}): Promise<void>;
|
|
1968
|
+
/**
|
|
1969
|
+
* Simulate unwrapNative
|
|
1970
|
+
* Returns gas estimate and result without sending transaction
|
|
1971
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1972
|
+
*/
|
|
1973
|
+
unwrapNative(_amount: bigint, options?: {
|
|
1974
|
+
accessList?: import("viem").AccessList;
|
|
1975
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1976
|
+
chain?: import("viem").Chain | null;
|
|
1977
|
+
dataSuffix?: `0x${string}`;
|
|
1978
|
+
gas?: bigint;
|
|
1979
|
+
gasPrice?: bigint;
|
|
1980
|
+
maxFeePerGas?: bigint;
|
|
1981
|
+
maxPriorityFeePerGas?: bigint;
|
|
1982
|
+
nonce?: number;
|
|
1983
|
+
value?: bigint;
|
|
1984
|
+
}): Promise<void>;
|
|
1985
|
+
/**
|
|
1986
|
+
* Simulate updateMerkleDistributor
|
|
1987
|
+
* Returns gas estimate and result without sending transaction
|
|
1988
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1989
|
+
*/
|
|
1990
|
+
updateMerkleDistributor(_merkle_distributor: `0x${string}`, options?: {
|
|
1991
|
+
accessList?: import("viem").AccessList;
|
|
1992
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1993
|
+
chain?: import("viem").Chain | null;
|
|
1994
|
+
dataSuffix?: `0x${string}`;
|
|
1995
|
+
gas?: bigint;
|
|
1996
|
+
gasPrice?: bigint;
|
|
1997
|
+
maxFeePerGas?: bigint;
|
|
1998
|
+
maxPriorityFeePerGas?: bigint;
|
|
1999
|
+
nonce?: number;
|
|
2000
|
+
value?: bigint;
|
|
2001
|
+
}): Promise<void>;
|
|
2002
|
+
/**
|
|
2003
|
+
* Simulate updateMorphoBlue
|
|
2004
|
+
* Returns gas estimate and result without sending transaction
|
|
2005
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2006
|
+
*/
|
|
2007
|
+
updateMorphoBlue(_address: `0x${string}`, options?: {
|
|
2008
|
+
accessList?: import("viem").AccessList;
|
|
2009
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2010
|
+
chain?: import("viem").Chain | null;
|
|
2011
|
+
dataSuffix?: `0x${string}`;
|
|
2012
|
+
gas?: bigint;
|
|
2013
|
+
gasPrice?: bigint;
|
|
2014
|
+
maxFeePerGas?: bigint;
|
|
2015
|
+
maxPriorityFeePerGas?: bigint;
|
|
2016
|
+
nonce?: number;
|
|
2017
|
+
value?: bigint;
|
|
2018
|
+
}): Promise<void>;
|
|
2019
|
+
/**
|
|
2020
|
+
* Simulate withdraw
|
|
2021
|
+
* Returns gas estimate and result without sending transaction
|
|
2022
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2023
|
+
*/
|
|
2024
|
+
withdraw(_asset_address: `0x${string}`, _amount: bigint, options?: {
|
|
2025
|
+
accessList?: import("viem").AccessList;
|
|
2026
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2027
|
+
chain?: import("viem").Chain | null;
|
|
2028
|
+
dataSuffix?: `0x${string}`;
|
|
2029
|
+
gas?: bigint;
|
|
2030
|
+
gasPrice?: bigint;
|
|
2031
|
+
maxFeePerGas?: bigint;
|
|
2032
|
+
maxPriorityFeePerGas?: bigint;
|
|
2033
|
+
nonce?: number;
|
|
2034
|
+
value?: bigint;
|
|
2035
|
+
}): Promise<void>;
|
|
2036
|
+
/**
|
|
2037
|
+
* Simulate withdrawAll
|
|
2038
|
+
* Returns gas estimate and result without sending transaction
|
|
2039
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2040
|
+
*/
|
|
2041
|
+
withdrawAll(_asset_address: `0x${string}`, options?: {
|
|
2042
|
+
accessList?: import("viem").AccessList;
|
|
2043
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2044
|
+
chain?: import("viem").Chain | null;
|
|
2045
|
+
dataSuffix?: `0x${string}`;
|
|
2046
|
+
gas?: bigint;
|
|
2047
|
+
gasPrice?: bigint;
|
|
2048
|
+
maxFeePerGas?: bigint;
|
|
2049
|
+
maxPriorityFeePerGas?: bigint;
|
|
2050
|
+
nonce?: number;
|
|
2051
|
+
value?: bigint;
|
|
2052
|
+
}): Promise<void>;
|
|
2053
|
+
/**
|
|
2054
|
+
* Simulate withdrawAllTo
|
|
2055
|
+
* Returns gas estimate and result without sending transaction
|
|
2056
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2057
|
+
*/
|
|
2058
|
+
withdrawAllTo(_asset_address: `0x${string}`, _to: `0x${string}`, options?: {
|
|
2059
|
+
accessList?: import("viem").AccessList;
|
|
2060
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2061
|
+
chain?: import("viem").Chain | null;
|
|
2062
|
+
dataSuffix?: `0x${string}`;
|
|
2063
|
+
gas?: bigint;
|
|
2064
|
+
gasPrice?: bigint;
|
|
2065
|
+
maxFeePerGas?: bigint;
|
|
2066
|
+
maxPriorityFeePerGas?: bigint;
|
|
2067
|
+
nonce?: number;
|
|
2068
|
+
value?: bigint;
|
|
2069
|
+
}): Promise<void>;
|
|
2070
|
+
/**
|
|
2071
|
+
* Simulate withdrawSupply
|
|
2072
|
+
* Returns gas estimate and result without sending transaction
|
|
2073
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2074
|
+
*/
|
|
2075
|
+
withdrawSupply(_amount: bigint, options?: {
|
|
2076
|
+
accessList?: import("viem").AccessList;
|
|
2077
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2078
|
+
chain?: import("viem").Chain | null;
|
|
2079
|
+
dataSuffix?: `0x${string}`;
|
|
2080
|
+
gas?: bigint;
|
|
2081
|
+
gasPrice?: bigint;
|
|
2082
|
+
maxFeePerGas?: bigint;
|
|
2083
|
+
maxPriorityFeePerGas?: bigint;
|
|
2084
|
+
nonce?: number;
|
|
2085
|
+
value?: bigint;
|
|
2086
|
+
}): Promise<void>;
|
|
2087
|
+
/**
|
|
2088
|
+
* Simulate withdrawSupplyAll
|
|
2089
|
+
* Returns gas estimate and result without sending transaction
|
|
2090
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2091
|
+
*/
|
|
2092
|
+
withdrawSupplyAll(options?: {
|
|
2093
|
+
accessList?: import("viem").AccessList;
|
|
2094
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2095
|
+
chain?: import("viem").Chain | null;
|
|
2096
|
+
dataSuffix?: `0x${string}`;
|
|
2097
|
+
gas?: bigint;
|
|
2098
|
+
gasPrice?: bigint;
|
|
2099
|
+
maxFeePerGas?: bigint;
|
|
2100
|
+
maxPriorityFeePerGas?: bigint;
|
|
2101
|
+
nonce?: number;
|
|
2102
|
+
value?: bigint;
|
|
2103
|
+
}): Promise<void>;
|
|
2104
|
+
/**
|
|
2105
|
+
* Simulate withdrawTo
|
|
2106
|
+
* Returns gas estimate and result without sending transaction
|
|
2107
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2108
|
+
*/
|
|
2109
|
+
withdrawTo(_asset_address: `0x${string}`, _amount: bigint, _to: `0x${string}`, options?: {
|
|
2110
|
+
accessList?: import("viem").AccessList;
|
|
2111
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2112
|
+
chain?: import("viem").Chain | null;
|
|
2113
|
+
dataSuffix?: `0x${string}`;
|
|
2114
|
+
gas?: bigint;
|
|
2115
|
+
gasPrice?: bigint;
|
|
2116
|
+
maxFeePerGas?: bigint;
|
|
2117
|
+
maxPriorityFeePerGas?: bigint;
|
|
2118
|
+
nonce?: number;
|
|
2119
|
+
value?: bigint;
|
|
2120
|
+
}): Promise<void>;
|
|
2121
|
+
/**
|
|
2122
|
+
* Simulate wrapNative
|
|
2123
|
+
* Returns gas estimate and result without sending transaction
|
|
2124
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2125
|
+
*/
|
|
2126
|
+
wrapNative(_amount: bigint, options?: {
|
|
2127
|
+
accessList?: import("viem").AccessList;
|
|
2128
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2129
|
+
chain?: import("viem").Chain | null;
|
|
2130
|
+
dataSuffix?: `0x${string}`;
|
|
2131
|
+
gas?: bigint;
|
|
2132
|
+
gasPrice?: bigint;
|
|
2133
|
+
maxFeePerGas?: bigint;
|
|
2134
|
+
maxPriorityFeePerGas?: bigint;
|
|
2135
|
+
nonce?: number;
|
|
2136
|
+
value?: bigint;
|
|
2137
|
+
}): Promise<void>;
|
|
2138
|
+
};
|
|
2139
|
+
/**
|
|
2140
|
+
* Watch contract events
|
|
2141
|
+
*
|
|
2142
|
+
* @example
|
|
2143
|
+
* // Watch all Transfer events
|
|
2144
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
2145
|
+
* console.log('Transfer:', event);
|
|
2146
|
+
* });
|
|
2147
|
+
*
|
|
2148
|
+
* // Stop watching
|
|
2149
|
+
* unwatch();
|
|
2150
|
+
*/
|
|
2151
|
+
get watch(): {
|
|
2152
|
+
/**
|
|
2153
|
+
* Watch ApproveToken events
|
|
2154
|
+
* @param callback Function to call when event is emitted
|
|
2155
|
+
* @param filter Optional filter for indexed parameters
|
|
2156
|
+
* @returns Unwatch function to stop listening
|
|
2157
|
+
*/
|
|
2158
|
+
ApproveToken: (callback: (event: {
|
|
2159
|
+
token: `0x${string}`;
|
|
2160
|
+
guy: `0x${string}`;
|
|
2161
|
+
wad: bigint;
|
|
2162
|
+
}) => void, filter?: {
|
|
2163
|
+
token?: `0x${string}` | `0x${string}`[] | null;
|
|
2164
|
+
}) => () => void;
|
|
2165
|
+
/**
|
|
2166
|
+
* Watch ClaimMerkleRewards events
|
|
2167
|
+
* @param callback Function to call when event is emitted
|
|
2168
|
+
* @param filter Optional filter for indexed parameters
|
|
2169
|
+
* @returns Unwatch function to stop listening
|
|
2170
|
+
*/
|
|
2171
|
+
ClaimMerkleRewards: (callback: (event: {
|
|
2172
|
+
caller: `0x${string}`;
|
|
2173
|
+
tokens: `0x${string}`[];
|
|
2174
|
+
values: bigint[];
|
|
2175
|
+
}) => void, filter?: {
|
|
2176
|
+
caller?: `0x${string}` | `0x${string}`[] | null;
|
|
2177
|
+
}) => () => void;
|
|
2178
|
+
/**
|
|
2179
|
+
* Watch ExecutorUpdated events
|
|
2180
|
+
* @param callback Function to call when event is emitted
|
|
2181
|
+
* @param filter Optional filter for indexed parameters
|
|
2182
|
+
* @returns Unwatch function to stop listening
|
|
2183
|
+
*/
|
|
2184
|
+
ExecutorUpdated: (callback: (event: {
|
|
2185
|
+
executor: `0x${string}`;
|
|
2186
|
+
enabled: boolean;
|
|
2187
|
+
}) => void, filter?: {
|
|
2188
|
+
executor?: `0x${string}` | `0x${string}`[] | null;
|
|
2189
|
+
}) => () => void;
|
|
2190
|
+
/**
|
|
2191
|
+
* Watch LogWithdraw events
|
|
2192
|
+
* @param callback Function to call when event is emitted
|
|
2193
|
+
* @param filter Optional filter for indexed parameters
|
|
2194
|
+
* @returns Unwatch function to stop listening
|
|
2195
|
+
*/
|
|
2196
|
+
LogWithdraw: (callback: (event: {
|
|
2197
|
+
_to: `0x${string}`;
|
|
2198
|
+
_asset_address: `0x${string}`;
|
|
2199
|
+
amount: bigint;
|
|
2200
|
+
}) => void, filter?: {
|
|
2201
|
+
_to?: `0x${string}` | `0x${string}`[] | null;
|
|
2202
|
+
_asset_address?: `0x${string}` | `0x${string}`[] | null;
|
|
2203
|
+
}) => () => void;
|
|
2204
|
+
/**
|
|
2205
|
+
* Watch OwnershipTransferStarted events
|
|
2206
|
+
* @param callback Function to call when event is emitted
|
|
2207
|
+
* @param filter Optional filter for indexed parameters
|
|
2208
|
+
* @returns Unwatch function to stop listening
|
|
2209
|
+
*/
|
|
2210
|
+
OwnershipTransferStarted: (callback: (event: {
|
|
2211
|
+
previousOwner: `0x${string}`;
|
|
2212
|
+
newOwner: `0x${string}`;
|
|
2213
|
+
}) => void, filter?: {
|
|
2214
|
+
previousOwner?: `0x${string}` | `0x${string}`[] | null;
|
|
2215
|
+
newOwner?: `0x${string}` | `0x${string}`[] | null;
|
|
2216
|
+
}) => () => void;
|
|
2217
|
+
/**
|
|
2218
|
+
* Watch OwnershipTransferred events
|
|
2219
|
+
* @param callback Function to call when event is emitted
|
|
2220
|
+
* @param filter Optional filter for indexed parameters
|
|
2221
|
+
* @returns Unwatch function to stop listening
|
|
2222
|
+
*/
|
|
2223
|
+
OwnershipTransferred: (callback: (event: {
|
|
2224
|
+
previousOwner: `0x${string}`;
|
|
2225
|
+
newOwner: `0x${string}`;
|
|
2226
|
+
}) => void, filter?: {
|
|
2227
|
+
previousOwner?: `0x${string}` | `0x${string}`[] | null;
|
|
2228
|
+
newOwner?: `0x${string}` | `0x${string}`[] | null;
|
|
2229
|
+
}) => () => void;
|
|
2230
|
+
/**
|
|
2231
|
+
* Watch SnapshotUpdate events
|
|
2232
|
+
* @param callback Function to call when event is emitted
|
|
2233
|
+
* @param filter Optional filter for indexed parameters
|
|
2234
|
+
* @returns Unwatch function to stop listening
|
|
2235
|
+
*/
|
|
2236
|
+
SnapshotUpdate: (callback: (event: {
|
|
2237
|
+
action: bigint;
|
|
2238
|
+
amount: bigint;
|
|
2239
|
+
executor: `0x${string}`;
|
|
2240
|
+
supplyToken: `0x${string}`;
|
|
2241
|
+
borrowToken: `0x${string}`;
|
|
2242
|
+
totalSupplied: bigint;
|
|
2243
|
+
totalDebt: bigint;
|
|
2244
|
+
}) => void, filter?: {
|
|
2245
|
+
action?: number | number[] | null;
|
|
2246
|
+
}) => () => void;
|
|
2247
|
+
/**
|
|
2248
|
+
* Watch UpdateLoanConfig events
|
|
2249
|
+
* @param callback Function to call when event is emitted
|
|
2250
|
+
* @param filter Optional filter for indexed parameters
|
|
2251
|
+
* @returns Unwatch function to stop listening
|
|
2252
|
+
*/
|
|
2253
|
+
UpdateLoanConfig: (callback: (event: {
|
|
2254
|
+
oldConfig: ILoanManager_LoanConfig;
|
|
2255
|
+
newConfig: ILoanManager_LoanConfig;
|
|
2256
|
+
oldMarketId: `0x${string}`;
|
|
2257
|
+
newMarketId: `0x${string}`;
|
|
2258
|
+
}) => void) => () => void;
|
|
2259
|
+
/**
|
|
2260
|
+
* Watch UpdateMerkleDistributor events
|
|
2261
|
+
* @param callback Function to call when event is emitted
|
|
2262
|
+
* @param filter Optional filter for indexed parameters
|
|
2263
|
+
* @returns Unwatch function to stop listening
|
|
2264
|
+
*/
|
|
2265
|
+
UpdateMerkleDistributor: (callback: (event: {
|
|
2266
|
+
caller: `0x${string}`;
|
|
2267
|
+
merkle_distributor: `0x${string}`;
|
|
2268
|
+
}) => void, filter?: {
|
|
2269
|
+
caller?: `0x${string}` | `0x${string}`[] | null;
|
|
2270
|
+
}) => () => void;
|
|
2271
|
+
/**
|
|
2272
|
+
* Watch UpdateMorphoBlue events
|
|
2273
|
+
* @param callback Function to call when event is emitted
|
|
2274
|
+
* @param filter Optional filter for indexed parameters
|
|
2275
|
+
* @returns Unwatch function to stop listening
|
|
2276
|
+
*/
|
|
2277
|
+
UpdateMorphoBlue: (callback: (event: {
|
|
2278
|
+
oldPool: `0x${string}`;
|
|
2279
|
+
newPool: `0x${string}`;
|
|
2280
|
+
}) => void) => () => void;
|
|
2281
|
+
};
|
|
2282
|
+
}
|