@gitmyabi/sierra 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 +108 -0
- package/contracts/BeaconProxy_json.d.ts +152 -0
- package/contracts/BeaconProxy_json.js +191 -0
- package/contracts/BeaconProxy_json.ts +220 -0
- package/contracts/LYTPool_json.d.ts +2456 -0
- package/contracts/LYTPool_json.js +2718 -0
- package/contracts/LYTPool_json.ts +3212 -0
- package/contracts/index.d.ts +4 -0
- package/contracts/index.js +10 -0
- package/contracts/index.ts +5 -0
- package/index.d.ts +1 -0
- package/index.js +19 -0
- package/package.json +43 -0
|
@@ -0,0 +1,2718 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LYTPool_json = exports.LYTPool_jsonAbi = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
/**
|
|
6
|
+
* LYTPool_json ABI
|
|
7
|
+
*
|
|
8
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
9
|
+
*/
|
|
10
|
+
exports.LYTPool_jsonAbi = [
|
|
11
|
+
{
|
|
12
|
+
"inputs": [
|
|
13
|
+
{
|
|
14
|
+
"internalType": "address",
|
|
15
|
+
"name": "addr",
|
|
16
|
+
"type": "address"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"name": "BlacklistedAddress",
|
|
20
|
+
"type": "error"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"inputs": [],
|
|
24
|
+
"name": "BurnExceedsBalance",
|
|
25
|
+
"type": "error"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"inputs": [],
|
|
29
|
+
"name": "CrossChainError",
|
|
30
|
+
"type": "error"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"inputs": [
|
|
34
|
+
{
|
|
35
|
+
"internalType": "address",
|
|
36
|
+
"name": "spender",
|
|
37
|
+
"type": "address"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"internalType": "uint256",
|
|
41
|
+
"name": "allowance",
|
|
42
|
+
"type": "uint256"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"internalType": "uint256",
|
|
46
|
+
"name": "needed",
|
|
47
|
+
"type": "uint256"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"name": "ERC20InsufficientAllowance",
|
|
51
|
+
"type": "error"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"inputs": [
|
|
55
|
+
{
|
|
56
|
+
"internalType": "address",
|
|
57
|
+
"name": "sender",
|
|
58
|
+
"type": "address"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"internalType": "uint256",
|
|
62
|
+
"name": "balance",
|
|
63
|
+
"type": "uint256"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"internalType": "uint256",
|
|
67
|
+
"name": "needed",
|
|
68
|
+
"type": "uint256"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"name": "ERC20InsufficientBalance",
|
|
72
|
+
"type": "error"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"inputs": [
|
|
76
|
+
{
|
|
77
|
+
"internalType": "address",
|
|
78
|
+
"name": "approver",
|
|
79
|
+
"type": "address"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"name": "ERC20InvalidApprover",
|
|
83
|
+
"type": "error"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"inputs": [
|
|
87
|
+
{
|
|
88
|
+
"internalType": "address",
|
|
89
|
+
"name": "receiver",
|
|
90
|
+
"type": "address"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"name": "ERC20InvalidReceiver",
|
|
94
|
+
"type": "error"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"inputs": [
|
|
98
|
+
{
|
|
99
|
+
"internalType": "address",
|
|
100
|
+
"name": "sender",
|
|
101
|
+
"type": "address"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"name": "ERC20InvalidSender",
|
|
105
|
+
"type": "error"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"inputs": [
|
|
109
|
+
{
|
|
110
|
+
"internalType": "address",
|
|
111
|
+
"name": "spender",
|
|
112
|
+
"type": "address"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"name": "ERC20InvalidSpender",
|
|
116
|
+
"type": "error"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"inputs": [],
|
|
120
|
+
"name": "ExchangeRateInvalid",
|
|
121
|
+
"type": "error"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"inputs": [],
|
|
125
|
+
"name": "InvalidAccess",
|
|
126
|
+
"type": "error"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"inputs": [],
|
|
130
|
+
"name": "InvalidInitialization",
|
|
131
|
+
"type": "error"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"inputs": [],
|
|
135
|
+
"name": "InvalidLoan",
|
|
136
|
+
"type": "error"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"inputs": [],
|
|
140
|
+
"name": "InvalidRedemptions",
|
|
141
|
+
"type": "error"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"inputs": [],
|
|
145
|
+
"name": "MintingToPool",
|
|
146
|
+
"type": "error"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"inputs": [],
|
|
150
|
+
"name": "NoAdjustmentsToZeroBalance",
|
|
151
|
+
"type": "error"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"inputs": [],
|
|
155
|
+
"name": "NotInitializing",
|
|
156
|
+
"type": "error"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"inputs": [],
|
|
160
|
+
"name": "NotIssuer",
|
|
161
|
+
"type": "error"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"inputs": [],
|
|
165
|
+
"name": "NotMarketMaker",
|
|
166
|
+
"type": "error"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"inputs": [],
|
|
170
|
+
"name": "NotPoolAdmin",
|
|
171
|
+
"type": "error"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"inputs": [],
|
|
175
|
+
"name": "NotPoolController",
|
|
176
|
+
"type": "error"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"inputs": [],
|
|
180
|
+
"name": "PoolInvalidState",
|
|
181
|
+
"type": "error"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"inputs": [],
|
|
185
|
+
"name": "PoolNotActive",
|
|
186
|
+
"type": "error"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"inputs": [],
|
|
190
|
+
"name": "PoolPaused",
|
|
191
|
+
"type": "error"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"inputs": [],
|
|
195
|
+
"name": "RedeemExceedsBalance",
|
|
196
|
+
"type": "error"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"inputs": [],
|
|
200
|
+
"name": "RedemptionDoesNotCoverDeposits",
|
|
201
|
+
"type": "error"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"inputs": [],
|
|
205
|
+
"name": "RedemptionNotFound",
|
|
206
|
+
"type": "error"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"inputs": [
|
|
210
|
+
{
|
|
211
|
+
"internalType": "address",
|
|
212
|
+
"name": "token",
|
|
213
|
+
"type": "address"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"name": "SafeERC20FailedOperation",
|
|
217
|
+
"type": "error"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"inputs": [],
|
|
221
|
+
"name": "TransferDisabled",
|
|
222
|
+
"type": "error"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"inputs": [],
|
|
226
|
+
"name": "ZeroAmount",
|
|
227
|
+
"type": "error"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"anonymous": false,
|
|
231
|
+
"inputs": [
|
|
232
|
+
{
|
|
233
|
+
"indexed": true,
|
|
234
|
+
"internalType": "address",
|
|
235
|
+
"name": "lender",
|
|
236
|
+
"type": "address"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"indexed": false,
|
|
240
|
+
"internalType": "uint256",
|
|
241
|
+
"name": "amount",
|
|
242
|
+
"type": "uint256"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"indexed": false,
|
|
246
|
+
"internalType": "uint256",
|
|
247
|
+
"name": "shares",
|
|
248
|
+
"type": "uint256"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"name": "AccountCredit",
|
|
252
|
+
"type": "event"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"anonymous": false,
|
|
256
|
+
"inputs": [
|
|
257
|
+
{
|
|
258
|
+
"indexed": true,
|
|
259
|
+
"internalType": "address",
|
|
260
|
+
"name": "lender",
|
|
261
|
+
"type": "address"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"indexed": false,
|
|
265
|
+
"internalType": "uint256",
|
|
266
|
+
"name": "amount",
|
|
267
|
+
"type": "uint256"
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"name": "AccountDebit",
|
|
271
|
+
"type": "event"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"anonymous": false,
|
|
275
|
+
"inputs": [
|
|
276
|
+
{
|
|
277
|
+
"indexed": true,
|
|
278
|
+
"internalType": "address",
|
|
279
|
+
"name": "owner",
|
|
280
|
+
"type": "address"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"indexed": true,
|
|
284
|
+
"internalType": "address",
|
|
285
|
+
"name": "spender",
|
|
286
|
+
"type": "address"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"indexed": false,
|
|
290
|
+
"internalType": "uint256",
|
|
291
|
+
"name": "value",
|
|
292
|
+
"type": "uint256"
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
"name": "Approval",
|
|
296
|
+
"type": "event"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"anonymous": false,
|
|
300
|
+
"inputs": [
|
|
301
|
+
{
|
|
302
|
+
"indexed": true,
|
|
303
|
+
"internalType": "address",
|
|
304
|
+
"name": "sender",
|
|
305
|
+
"type": "address"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"indexed": true,
|
|
309
|
+
"internalType": "address",
|
|
310
|
+
"name": "owner",
|
|
311
|
+
"type": "address"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"indexed": false,
|
|
315
|
+
"internalType": "uint256",
|
|
316
|
+
"name": "assets",
|
|
317
|
+
"type": "uint256"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"indexed": false,
|
|
321
|
+
"internalType": "uint256",
|
|
322
|
+
"name": "shares",
|
|
323
|
+
"type": "uint256"
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
"name": "Deposit",
|
|
327
|
+
"type": "event"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"anonymous": false,
|
|
331
|
+
"inputs": [
|
|
332
|
+
{
|
|
333
|
+
"indexed": false,
|
|
334
|
+
"internalType": "uint256",
|
|
335
|
+
"name": "_exchangeRate",
|
|
336
|
+
"type": "uint256"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"indexed": false,
|
|
340
|
+
"internalType": "uint256",
|
|
341
|
+
"name": "interestRate",
|
|
342
|
+
"type": "uint256"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"indexed": false,
|
|
346
|
+
"internalType": "uint256",
|
|
347
|
+
"name": "typeDependantChangeParam",
|
|
348
|
+
"type": "uint256"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"indexed": false,
|
|
352
|
+
"internalType": "uint256",
|
|
353
|
+
"name": "exchangeRateMaturityDay",
|
|
354
|
+
"type": "uint256"
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"name": "ExchangeRateSet",
|
|
358
|
+
"type": "event"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"anonymous": false,
|
|
362
|
+
"inputs": [
|
|
363
|
+
{
|
|
364
|
+
"indexed": false,
|
|
365
|
+
"internalType": "uint256",
|
|
366
|
+
"name": "_indicativeInterestRate",
|
|
367
|
+
"type": "uint256"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"indexed": false,
|
|
371
|
+
"internalType": "uint256",
|
|
372
|
+
"name": "_collateralRate",
|
|
373
|
+
"type": "uint256"
|
|
374
|
+
}
|
|
375
|
+
],
|
|
376
|
+
"name": "IndicativeAndCollateralRatesSet",
|
|
377
|
+
"type": "event"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"anonymous": false,
|
|
381
|
+
"inputs": [
|
|
382
|
+
{
|
|
383
|
+
"indexed": false,
|
|
384
|
+
"internalType": "uint64",
|
|
385
|
+
"name": "version",
|
|
386
|
+
"type": "uint64"
|
|
387
|
+
}
|
|
388
|
+
],
|
|
389
|
+
"name": "Initialized",
|
|
390
|
+
"type": "event"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"anonymous": false,
|
|
394
|
+
"inputs": [],
|
|
395
|
+
"name": "PoolCreated",
|
|
396
|
+
"type": "event"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"anonymous": false,
|
|
400
|
+
"inputs": [
|
|
401
|
+
{
|
|
402
|
+
"indexed": true,
|
|
403
|
+
"internalType": "address",
|
|
404
|
+
"name": "lender",
|
|
405
|
+
"type": "address"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"indexed": false,
|
|
409
|
+
"internalType": "uint256",
|
|
410
|
+
"name": "assets",
|
|
411
|
+
"type": "uint256"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"indexed": false,
|
|
415
|
+
"internalType": "uint256",
|
|
416
|
+
"name": "shares",
|
|
417
|
+
"type": "uint256"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"indexed": false,
|
|
421
|
+
"internalType": "enum ILYTPoolDepositType",
|
|
422
|
+
"name": "depositType",
|
|
423
|
+
"type": "uint8"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"indexed": false,
|
|
427
|
+
"internalType": "bytes32",
|
|
428
|
+
"name": "transferTxHash",
|
|
429
|
+
"type": "bytes32"
|
|
430
|
+
}
|
|
431
|
+
],
|
|
432
|
+
"name": "PoolDeposit",
|
|
433
|
+
"type": "event"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"anonymous": false,
|
|
437
|
+
"inputs": [
|
|
438
|
+
{
|
|
439
|
+
"indexed": true,
|
|
440
|
+
"internalType": "address",
|
|
441
|
+
"name": "lender",
|
|
442
|
+
"type": "address"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"indexed": false,
|
|
446
|
+
"internalType": "uint256",
|
|
447
|
+
"name": "assets",
|
|
448
|
+
"type": "uint256"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"indexed": false,
|
|
452
|
+
"internalType": "uint256",
|
|
453
|
+
"name": "shares",
|
|
454
|
+
"type": "uint256"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"indexed": false,
|
|
458
|
+
"internalType": "bytes32",
|
|
459
|
+
"name": "uuid",
|
|
460
|
+
"type": "bytes32"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"indexed": false,
|
|
464
|
+
"internalType": "address",
|
|
465
|
+
"name": "fundsDestination",
|
|
466
|
+
"type": "address"
|
|
467
|
+
}
|
|
468
|
+
],
|
|
469
|
+
"name": "RedeemDestinationChanged",
|
|
470
|
+
"type": "event"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"anonymous": false,
|
|
474
|
+
"inputs": [
|
|
475
|
+
{
|
|
476
|
+
"indexed": true,
|
|
477
|
+
"internalType": "address",
|
|
478
|
+
"name": "lender",
|
|
479
|
+
"type": "address"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"indexed": false,
|
|
483
|
+
"internalType": "uint256",
|
|
484
|
+
"name": "shares",
|
|
485
|
+
"type": "uint256"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"indexed": false,
|
|
489
|
+
"internalType": "uint256",
|
|
490
|
+
"name": "assets",
|
|
491
|
+
"type": "uint256"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"indexed": false,
|
|
495
|
+
"internalType": "uint256",
|
|
496
|
+
"name": "fees",
|
|
497
|
+
"type": "uint256"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"indexed": false,
|
|
501
|
+
"internalType": "bytes32",
|
|
502
|
+
"name": "uuid",
|
|
503
|
+
"type": "bytes32"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"indexed": false,
|
|
507
|
+
"internalType": "uint256",
|
|
508
|
+
"name": "expectedAssets",
|
|
509
|
+
"type": "uint256"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"indexed": false,
|
|
513
|
+
"internalType": "address",
|
|
514
|
+
"name": "fundsDestination",
|
|
515
|
+
"type": "address"
|
|
516
|
+
}
|
|
517
|
+
],
|
|
518
|
+
"name": "RedeemRepay",
|
|
519
|
+
"type": "event"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"anonymous": false,
|
|
523
|
+
"inputs": [
|
|
524
|
+
{
|
|
525
|
+
"indexed": true,
|
|
526
|
+
"internalType": "address",
|
|
527
|
+
"name": "lender",
|
|
528
|
+
"type": "address"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"indexed": false,
|
|
532
|
+
"internalType": "uint256",
|
|
533
|
+
"name": "assets",
|
|
534
|
+
"type": "uint256"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"indexed": false,
|
|
538
|
+
"internalType": "uint256",
|
|
539
|
+
"name": "shares",
|
|
540
|
+
"type": "uint256"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"indexed": false,
|
|
544
|
+
"internalType": "bytes32",
|
|
545
|
+
"name": "uuid",
|
|
546
|
+
"type": "bytes32"
|
|
547
|
+
}
|
|
548
|
+
],
|
|
549
|
+
"name": "RedeemRequested",
|
|
550
|
+
"type": "event"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"anonymous": false,
|
|
554
|
+
"inputs": [
|
|
555
|
+
{
|
|
556
|
+
"indexed": true,
|
|
557
|
+
"internalType": "address",
|
|
558
|
+
"name": "from",
|
|
559
|
+
"type": "address"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"indexed": true,
|
|
563
|
+
"internalType": "address",
|
|
564
|
+
"name": "to",
|
|
565
|
+
"type": "address"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"indexed": false,
|
|
569
|
+
"internalType": "uint256",
|
|
570
|
+
"name": "value",
|
|
571
|
+
"type": "uint256"
|
|
572
|
+
}
|
|
573
|
+
],
|
|
574
|
+
"name": "Transfer",
|
|
575
|
+
"type": "event"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"anonymous": false,
|
|
579
|
+
"inputs": [
|
|
580
|
+
{
|
|
581
|
+
"indexed": true,
|
|
582
|
+
"internalType": "address",
|
|
583
|
+
"name": "fundsDestination",
|
|
584
|
+
"type": "address"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"indexed": false,
|
|
588
|
+
"internalType": "uint256",
|
|
589
|
+
"name": "amount",
|
|
590
|
+
"type": "uint256"
|
|
591
|
+
}
|
|
592
|
+
],
|
|
593
|
+
"name": "TransferAssets",
|
|
594
|
+
"type": "event"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"anonymous": false,
|
|
598
|
+
"inputs": [
|
|
599
|
+
{
|
|
600
|
+
"indexed": true,
|
|
601
|
+
"internalType": "address",
|
|
602
|
+
"name": "sender",
|
|
603
|
+
"type": "address"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"indexed": true,
|
|
607
|
+
"internalType": "address",
|
|
608
|
+
"name": "receiver",
|
|
609
|
+
"type": "address"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"indexed": true,
|
|
613
|
+
"internalType": "address",
|
|
614
|
+
"name": "owner",
|
|
615
|
+
"type": "address"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"indexed": false,
|
|
619
|
+
"internalType": "uint256",
|
|
620
|
+
"name": "assets",
|
|
621
|
+
"type": "uint256"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"indexed": false,
|
|
625
|
+
"internalType": "uint256",
|
|
626
|
+
"name": "shares",
|
|
627
|
+
"type": "uint256"
|
|
628
|
+
}
|
|
629
|
+
],
|
|
630
|
+
"name": "Withdraw",
|
|
631
|
+
"type": "event"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"inputs": [],
|
|
635
|
+
"name": "accounting",
|
|
636
|
+
"outputs": [
|
|
637
|
+
{
|
|
638
|
+
"components": [
|
|
639
|
+
{
|
|
640
|
+
"internalType": "uint256",
|
|
641
|
+
"name": "totalAssetsDeposited",
|
|
642
|
+
"type": "uint256"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"internalType": "uint256",
|
|
646
|
+
"name": "totalAssetsWithdrawn",
|
|
647
|
+
"type": "uint256"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"internalType": "uint256",
|
|
651
|
+
"name": "exchangeRate",
|
|
652
|
+
"type": "uint256"
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"internalType": "uint256",
|
|
656
|
+
"name": "exchangeRateSetDay",
|
|
657
|
+
"type": "uint256"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"internalType": "uint256",
|
|
661
|
+
"name": "exchangeRateChangeRate",
|
|
662
|
+
"type": "uint256"
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"internalType": "uint256",
|
|
666
|
+
"name": "exchangeRateCompoundingRate",
|
|
667
|
+
"type": "uint256"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"internalType": "uint256",
|
|
671
|
+
"name": "exchangeRateAtMaturity",
|
|
672
|
+
"type": "uint256"
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"internalType": "uint256",
|
|
676
|
+
"name": "exchangeRateMaturityDay",
|
|
677
|
+
"type": "uint256"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"internalType": "uint256",
|
|
681
|
+
"name": "interestRate",
|
|
682
|
+
"type": "uint256"
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
"internalType": "uint256",
|
|
686
|
+
"name": "indicativeInterestRate",
|
|
687
|
+
"type": "uint256"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"internalType": "uint256",
|
|
691
|
+
"name": "collateralRate",
|
|
692
|
+
"type": "uint256"
|
|
693
|
+
}
|
|
694
|
+
],
|
|
695
|
+
"internalType": "struct ILYTPoolAccounting",
|
|
696
|
+
"name": "",
|
|
697
|
+
"type": "tuple"
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
"stateMutability": "view",
|
|
701
|
+
"type": "function"
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"inputs": [
|
|
705
|
+
{
|
|
706
|
+
"internalType": "address",
|
|
707
|
+
"name": "lender",
|
|
708
|
+
"type": "address"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"internalType": "uint256",
|
|
712
|
+
"name": "debit",
|
|
713
|
+
"type": "uint256"
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"internalType": "uint256",
|
|
717
|
+
"name": "credit",
|
|
718
|
+
"type": "uint256"
|
|
719
|
+
}
|
|
720
|
+
],
|
|
721
|
+
"name": "addAdjustmentAmount",
|
|
722
|
+
"outputs": [],
|
|
723
|
+
"stateMutability": "nonpayable",
|
|
724
|
+
"type": "function"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"inputs": [],
|
|
728
|
+
"name": "admin",
|
|
729
|
+
"outputs": [
|
|
730
|
+
{
|
|
731
|
+
"internalType": "address",
|
|
732
|
+
"name": "",
|
|
733
|
+
"type": "address"
|
|
734
|
+
}
|
|
735
|
+
],
|
|
736
|
+
"stateMutability": "view",
|
|
737
|
+
"type": "function"
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"inputs": [
|
|
741
|
+
{
|
|
742
|
+
"internalType": "address",
|
|
743
|
+
"name": "owner",
|
|
744
|
+
"type": "address"
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"internalType": "address",
|
|
748
|
+
"name": "spender",
|
|
749
|
+
"type": "address"
|
|
750
|
+
}
|
|
751
|
+
],
|
|
752
|
+
"name": "allowance",
|
|
753
|
+
"outputs": [
|
|
754
|
+
{
|
|
755
|
+
"internalType": "uint256",
|
|
756
|
+
"name": "",
|
|
757
|
+
"type": "uint256"
|
|
758
|
+
}
|
|
759
|
+
],
|
|
760
|
+
"stateMutability": "view",
|
|
761
|
+
"type": "function"
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"inputs": [
|
|
765
|
+
{
|
|
766
|
+
"internalType": "address",
|
|
767
|
+
"name": "spender",
|
|
768
|
+
"type": "address"
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"internalType": "uint256",
|
|
772
|
+
"name": "value",
|
|
773
|
+
"type": "uint256"
|
|
774
|
+
}
|
|
775
|
+
],
|
|
776
|
+
"name": "approve",
|
|
777
|
+
"outputs": [
|
|
778
|
+
{
|
|
779
|
+
"internalType": "bool",
|
|
780
|
+
"name": "",
|
|
781
|
+
"type": "bool"
|
|
782
|
+
}
|
|
783
|
+
],
|
|
784
|
+
"stateMutability": "nonpayable",
|
|
785
|
+
"type": "function"
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
"inputs": [],
|
|
789
|
+
"name": "asset",
|
|
790
|
+
"outputs": [
|
|
791
|
+
{
|
|
792
|
+
"internalType": "address",
|
|
793
|
+
"name": "",
|
|
794
|
+
"type": "address"
|
|
795
|
+
}
|
|
796
|
+
],
|
|
797
|
+
"stateMutability": "view",
|
|
798
|
+
"type": "function"
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
"inputs": [
|
|
802
|
+
{
|
|
803
|
+
"internalType": "address",
|
|
804
|
+
"name": "lender",
|
|
805
|
+
"type": "address"
|
|
806
|
+
}
|
|
807
|
+
],
|
|
808
|
+
"name": "assetBalanceOf",
|
|
809
|
+
"outputs": [
|
|
810
|
+
{
|
|
811
|
+
"internalType": "uint256",
|
|
812
|
+
"name": "",
|
|
813
|
+
"type": "uint256"
|
|
814
|
+
}
|
|
815
|
+
],
|
|
816
|
+
"stateMutability": "view",
|
|
817
|
+
"type": "function"
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"inputs": [
|
|
821
|
+
{
|
|
822
|
+
"internalType": "address",
|
|
823
|
+
"name": "account",
|
|
824
|
+
"type": "address"
|
|
825
|
+
}
|
|
826
|
+
],
|
|
827
|
+
"name": "balanceOf",
|
|
828
|
+
"outputs": [
|
|
829
|
+
{
|
|
830
|
+
"internalType": "uint256",
|
|
831
|
+
"name": "",
|
|
832
|
+
"type": "uint256"
|
|
833
|
+
}
|
|
834
|
+
],
|
|
835
|
+
"stateMutability": "view",
|
|
836
|
+
"type": "function"
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"inputs": [
|
|
840
|
+
{
|
|
841
|
+
"internalType": "address",
|
|
842
|
+
"name": "lender",
|
|
843
|
+
"type": "address"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
"internalType": "bytes32",
|
|
847
|
+
"name": "uuid",
|
|
848
|
+
"type": "bytes32"
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"internalType": "address",
|
|
852
|
+
"name": "fundsDestination",
|
|
853
|
+
"type": "address"
|
|
854
|
+
}
|
|
855
|
+
],
|
|
856
|
+
"name": "changeRedemptionDestination",
|
|
857
|
+
"outputs": [],
|
|
858
|
+
"stateMutability": "nonpayable",
|
|
859
|
+
"type": "function"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"inputs": [
|
|
863
|
+
{
|
|
864
|
+
"internalType": "uint256",
|
|
865
|
+
"name": "shares",
|
|
866
|
+
"type": "uint256"
|
|
867
|
+
}
|
|
868
|
+
],
|
|
869
|
+
"name": "convertToAssets",
|
|
870
|
+
"outputs": [
|
|
871
|
+
{
|
|
872
|
+
"internalType": "uint256",
|
|
873
|
+
"name": "assets",
|
|
874
|
+
"type": "uint256"
|
|
875
|
+
}
|
|
876
|
+
],
|
|
877
|
+
"stateMutability": "view",
|
|
878
|
+
"type": "function"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"inputs": [
|
|
882
|
+
{
|
|
883
|
+
"internalType": "uint256",
|
|
884
|
+
"name": "assets",
|
|
885
|
+
"type": "uint256"
|
|
886
|
+
}
|
|
887
|
+
],
|
|
888
|
+
"name": "convertToShares",
|
|
889
|
+
"outputs": [
|
|
890
|
+
{
|
|
891
|
+
"internalType": "uint256",
|
|
892
|
+
"name": "shares",
|
|
893
|
+
"type": "uint256"
|
|
894
|
+
}
|
|
895
|
+
],
|
|
896
|
+
"stateMutability": "view",
|
|
897
|
+
"type": "function"
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"inputs": [],
|
|
901
|
+
"name": "decimals",
|
|
902
|
+
"outputs": [
|
|
903
|
+
{
|
|
904
|
+
"internalType": "uint8",
|
|
905
|
+
"name": "",
|
|
906
|
+
"type": "uint8"
|
|
907
|
+
}
|
|
908
|
+
],
|
|
909
|
+
"stateMutability": "view",
|
|
910
|
+
"type": "function"
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"inputs": [
|
|
914
|
+
{
|
|
915
|
+
"internalType": "uint256",
|
|
916
|
+
"name": "assets",
|
|
917
|
+
"type": "uint256"
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
"internalType": "address",
|
|
921
|
+
"name": "lender",
|
|
922
|
+
"type": "address"
|
|
923
|
+
}
|
|
924
|
+
],
|
|
925
|
+
"name": "deposit",
|
|
926
|
+
"outputs": [
|
|
927
|
+
{
|
|
928
|
+
"internalType": "uint256",
|
|
929
|
+
"name": "shares",
|
|
930
|
+
"type": "uint256"
|
|
931
|
+
}
|
|
932
|
+
],
|
|
933
|
+
"stateMutability": "nonpayable",
|
|
934
|
+
"type": "function"
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
"inputs": [
|
|
938
|
+
{
|
|
939
|
+
"internalType": "uint256",
|
|
940
|
+
"name": "assets",
|
|
941
|
+
"type": "uint256"
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"internalType": "address",
|
|
945
|
+
"name": "lender",
|
|
946
|
+
"type": "address"
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
"internalType": "bytes32",
|
|
950
|
+
"name": "transferTxHash",
|
|
951
|
+
"type": "bytes32"
|
|
952
|
+
}
|
|
953
|
+
],
|
|
954
|
+
"name": "depositFromTransfer",
|
|
955
|
+
"outputs": [
|
|
956
|
+
{
|
|
957
|
+
"internalType": "uint256",
|
|
958
|
+
"name": "shares",
|
|
959
|
+
"type": "uint256"
|
|
960
|
+
}
|
|
961
|
+
],
|
|
962
|
+
"stateMutability": "nonpayable",
|
|
963
|
+
"type": "function"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"inputs": [
|
|
967
|
+
{
|
|
968
|
+
"internalType": "uint256",
|
|
969
|
+
"name": "assets",
|
|
970
|
+
"type": "uint256"
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"internalType": "address",
|
|
974
|
+
"name": "lender",
|
|
975
|
+
"type": "address"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"internalType": "bytes32",
|
|
979
|
+
"name": "transferTxHash",
|
|
980
|
+
"type": "bytes32"
|
|
981
|
+
}
|
|
982
|
+
],
|
|
983
|
+
"name": "depositOffChain",
|
|
984
|
+
"outputs": [
|
|
985
|
+
{
|
|
986
|
+
"internalType": "uint256",
|
|
987
|
+
"name": "shares",
|
|
988
|
+
"type": "uint256"
|
|
989
|
+
}
|
|
990
|
+
],
|
|
991
|
+
"stateMutability": "nonpayable",
|
|
992
|
+
"type": "function"
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"inputs": [],
|
|
996
|
+
"name": "exchangeRate",
|
|
997
|
+
"outputs": [
|
|
998
|
+
{
|
|
999
|
+
"internalType": "uint256",
|
|
1000
|
+
"name": "_exchangeRate",
|
|
1001
|
+
"type": "uint256"
|
|
1002
|
+
}
|
|
1003
|
+
],
|
|
1004
|
+
"stateMutability": "view",
|
|
1005
|
+
"type": "function"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"inputs": [],
|
|
1009
|
+
"name": "getActiveWithdraws",
|
|
1010
|
+
"outputs": [
|
|
1011
|
+
{
|
|
1012
|
+
"components": [
|
|
1013
|
+
{
|
|
1014
|
+
"internalType": "bytes32",
|
|
1015
|
+
"name": "uuid",
|
|
1016
|
+
"type": "bytes32"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"internalType": "address",
|
|
1020
|
+
"name": "lender",
|
|
1021
|
+
"type": "address"
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"internalType": "uint256",
|
|
1025
|
+
"name": "assets",
|
|
1026
|
+
"type": "uint256"
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"internalType": "uint256",
|
|
1030
|
+
"name": "shares",
|
|
1031
|
+
"type": "uint256"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"internalType": "enum ILYTPoolWithdrawStage",
|
|
1035
|
+
"name": "stage",
|
|
1036
|
+
"type": "uint8"
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"internalType": "address",
|
|
1040
|
+
"name": "fundsDestination",
|
|
1041
|
+
"type": "address"
|
|
1042
|
+
}
|
|
1043
|
+
],
|
|
1044
|
+
"internalType": "struct ILYTPoolWithdraw[]",
|
|
1045
|
+
"name": "",
|
|
1046
|
+
"type": "tuple[]"
|
|
1047
|
+
}
|
|
1048
|
+
],
|
|
1049
|
+
"stateMutability": "view",
|
|
1050
|
+
"type": "function"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"inputs": [
|
|
1054
|
+
{
|
|
1055
|
+
"internalType": "address",
|
|
1056
|
+
"name": "lender",
|
|
1057
|
+
"type": "address"
|
|
1058
|
+
}
|
|
1059
|
+
],
|
|
1060
|
+
"name": "getLYTPoolAccountState",
|
|
1061
|
+
"outputs": [
|
|
1062
|
+
{
|
|
1063
|
+
"components": [
|
|
1064
|
+
{
|
|
1065
|
+
"internalType": "address",
|
|
1066
|
+
"name": "poolAddr",
|
|
1067
|
+
"type": "address"
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"internalType": "address",
|
|
1071
|
+
"name": "accountAddr",
|
|
1072
|
+
"type": "address"
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"internalType": "address",
|
|
1076
|
+
"name": "liquidityAssetAddr",
|
|
1077
|
+
"type": "address"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"internalType": "uint256",
|
|
1081
|
+
"name": "tokenBalance",
|
|
1082
|
+
"type": "uint256"
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"internalType": "uint256",
|
|
1086
|
+
"name": "assetBalance",
|
|
1087
|
+
"type": "uint256"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"internalType": "uint256",
|
|
1091
|
+
"name": "maxWithdrawRequest",
|
|
1092
|
+
"type": "uint256"
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
"internalType": "uint256",
|
|
1096
|
+
"name": "maxRedeemRequest",
|
|
1097
|
+
"type": "uint256"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"internalType": "uint256",
|
|
1101
|
+
"name": "requestedSharesOf",
|
|
1102
|
+
"type": "uint256"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"internalType": "uint256",
|
|
1106
|
+
"name": "requestedAssetsOf",
|
|
1107
|
+
"type": "uint256"
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"internalType": "uint256",
|
|
1111
|
+
"name": "assetsDeposited",
|
|
1112
|
+
"type": "uint256"
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
"internalType": "uint256",
|
|
1116
|
+
"name": "assetsWithdrawn",
|
|
1117
|
+
"type": "uint256"
|
|
1118
|
+
}
|
|
1119
|
+
],
|
|
1120
|
+
"internalType": "struct ILYTPoolAccountState",
|
|
1121
|
+
"name": "_poolAccountState",
|
|
1122
|
+
"type": "tuple"
|
|
1123
|
+
}
|
|
1124
|
+
],
|
|
1125
|
+
"stateMutability": "view",
|
|
1126
|
+
"type": "function"
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
"inputs": [],
|
|
1130
|
+
"name": "getLYTPoolConfigurationState",
|
|
1131
|
+
"outputs": [
|
|
1132
|
+
{
|
|
1133
|
+
"components": [
|
|
1134
|
+
{
|
|
1135
|
+
"internalType": "address",
|
|
1136
|
+
"name": "poolAddr",
|
|
1137
|
+
"type": "address"
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
"internalType": "string",
|
|
1141
|
+
"name": "name",
|
|
1142
|
+
"type": "string"
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
"internalType": "string",
|
|
1146
|
+
"name": "symbol",
|
|
1147
|
+
"type": "string"
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
"internalType": "address",
|
|
1151
|
+
"name": "poolAccessControl",
|
|
1152
|
+
"type": "address"
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
"internalType": "address",
|
|
1156
|
+
"name": "lytPoolController",
|
|
1157
|
+
"type": "address"
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
"internalType": "uint256",
|
|
1161
|
+
"name": "activatedAt",
|
|
1162
|
+
"type": "uint256"
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
"internalType": "address",
|
|
1166
|
+
"name": "serviceConfiguration",
|
|
1167
|
+
"type": "address"
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"internalType": "address",
|
|
1171
|
+
"name": "liquidityAssetAddr",
|
|
1172
|
+
"type": "address"
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"internalType": "address",
|
|
1176
|
+
"name": "poolAdmin",
|
|
1177
|
+
"type": "address"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"internalType": "address",
|
|
1181
|
+
"name": "issuer",
|
|
1182
|
+
"type": "address"
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
"internalType": "address",
|
|
1186
|
+
"name": "treasuryWalletAddr",
|
|
1187
|
+
"type": "address"
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"internalType": "address",
|
|
1191
|
+
"name": "feeCollectorAddress",
|
|
1192
|
+
"type": "address"
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
"internalType": "enum ILYTPoolExchangeRateType",
|
|
1196
|
+
"name": "exchangeRateType",
|
|
1197
|
+
"type": "uint8"
|
|
1198
|
+
}
|
|
1199
|
+
],
|
|
1200
|
+
"internalType": "struct ILYTPoolConfigurationState",
|
|
1201
|
+
"name": "_poolConfigurationState",
|
|
1202
|
+
"type": "tuple"
|
|
1203
|
+
}
|
|
1204
|
+
],
|
|
1205
|
+
"stateMutability": "view",
|
|
1206
|
+
"type": "function"
|
|
1207
|
+
},
|
|
1208
|
+
{
|
|
1209
|
+
"inputs": [],
|
|
1210
|
+
"name": "getLYTPoolOverviewState",
|
|
1211
|
+
"outputs": [
|
|
1212
|
+
{
|
|
1213
|
+
"components": [
|
|
1214
|
+
{
|
|
1215
|
+
"internalType": "address",
|
|
1216
|
+
"name": "poolAddr",
|
|
1217
|
+
"type": "address"
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"internalType": "uint256",
|
|
1221
|
+
"name": "state",
|
|
1222
|
+
"type": "uint256"
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
"internalType": "uint256",
|
|
1226
|
+
"name": "totalAssetsDeposited",
|
|
1227
|
+
"type": "uint256"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"internalType": "uint256",
|
|
1231
|
+
"name": "totalAssetsWithdrawn",
|
|
1232
|
+
"type": "uint256"
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"internalType": "uint256",
|
|
1236
|
+
"name": "totalAssets",
|
|
1237
|
+
"type": "uint256"
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
"internalType": "uint256",
|
|
1241
|
+
"name": "totalShares",
|
|
1242
|
+
"type": "uint256"
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
"internalType": "uint256",
|
|
1246
|
+
"name": "exchangeRate",
|
|
1247
|
+
"type": "uint256"
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"internalType": "uint256",
|
|
1251
|
+
"name": "exchangeRateAtSetDay",
|
|
1252
|
+
"type": "uint256"
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
"internalType": "uint256",
|
|
1256
|
+
"name": "exchangeRateSetDay",
|
|
1257
|
+
"type": "uint256"
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"internalType": "uint256",
|
|
1261
|
+
"name": "exchangeRateChangeRate",
|
|
1262
|
+
"type": "uint256"
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"internalType": "uint256",
|
|
1266
|
+
"name": "exchangeRateCompoundingRate",
|
|
1267
|
+
"type": "uint256"
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
"internalType": "uint256",
|
|
1271
|
+
"name": "exchangeRateAtMaturity",
|
|
1272
|
+
"type": "uint256"
|
|
1273
|
+
},
|
|
1274
|
+
{
|
|
1275
|
+
"internalType": "uint256",
|
|
1276
|
+
"name": "exchangeRateMaturityDay",
|
|
1277
|
+
"type": "uint256"
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
"internalType": "uint256",
|
|
1281
|
+
"name": "interestRate",
|
|
1282
|
+
"type": "uint256"
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
"internalType": "uint256",
|
|
1286
|
+
"name": "indicativeInterestRate",
|
|
1287
|
+
"type": "uint256"
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"internalType": "uint256",
|
|
1291
|
+
"name": "collateralRate",
|
|
1292
|
+
"type": "uint256"
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
"components": [
|
|
1296
|
+
{
|
|
1297
|
+
"internalType": "bytes32",
|
|
1298
|
+
"name": "uuid",
|
|
1299
|
+
"type": "bytes32"
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
"internalType": "address",
|
|
1303
|
+
"name": "lender",
|
|
1304
|
+
"type": "address"
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
"internalType": "uint256",
|
|
1308
|
+
"name": "assets",
|
|
1309
|
+
"type": "uint256"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
"internalType": "uint256",
|
|
1313
|
+
"name": "shares",
|
|
1314
|
+
"type": "uint256"
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"internalType": "enum ILYTPoolWithdrawStage",
|
|
1318
|
+
"name": "stage",
|
|
1319
|
+
"type": "uint8"
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
"internalType": "address",
|
|
1323
|
+
"name": "fundsDestination",
|
|
1324
|
+
"type": "address"
|
|
1325
|
+
}
|
|
1326
|
+
],
|
|
1327
|
+
"internalType": "struct ILYTPoolWithdraw[]",
|
|
1328
|
+
"name": "activeWithdraws",
|
|
1329
|
+
"type": "tuple[]"
|
|
1330
|
+
}
|
|
1331
|
+
],
|
|
1332
|
+
"internalType": "struct ILYTPoolOverviewState",
|
|
1333
|
+
"name": "_poolOverviewState",
|
|
1334
|
+
"type": "tuple"
|
|
1335
|
+
}
|
|
1336
|
+
],
|
|
1337
|
+
"stateMutability": "view",
|
|
1338
|
+
"type": "function"
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
"inputs": [
|
|
1342
|
+
{
|
|
1343
|
+
"components": [
|
|
1344
|
+
{
|
|
1345
|
+
"internalType": "address",
|
|
1346
|
+
"name": "liquidityAsset",
|
|
1347
|
+
"type": "address"
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
"internalType": "address",
|
|
1351
|
+
"name": "poolAdmin",
|
|
1352
|
+
"type": "address"
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"internalType": "address",
|
|
1356
|
+
"name": "serviceConfiguration",
|
|
1357
|
+
"type": "address"
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
"internalType": "address",
|
|
1361
|
+
"name": "lytPoolControllerFactory",
|
|
1362
|
+
"type": "address"
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"internalType": "address",
|
|
1366
|
+
"name": "poolAccessControlFactory",
|
|
1367
|
+
"type": "address"
|
|
1368
|
+
}
|
|
1369
|
+
],
|
|
1370
|
+
"internalType": "struct LYTPoolAddressList",
|
|
1371
|
+
"name": "poolAddressList",
|
|
1372
|
+
"type": "tuple"
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"components": [
|
|
1376
|
+
{
|
|
1377
|
+
"internalType": "address",
|
|
1378
|
+
"name": "issuer",
|
|
1379
|
+
"type": "address"
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
"internalType": "address",
|
|
1383
|
+
"name": "treasuryWalletAddr",
|
|
1384
|
+
"type": "address"
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
"internalType": "address",
|
|
1388
|
+
"name": "feeCollectorAddress",
|
|
1389
|
+
"type": "address"
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"internalType": "enum ILYTPoolExchangeRateType",
|
|
1393
|
+
"name": "exchangeRateType",
|
|
1394
|
+
"type": "uint8"
|
|
1395
|
+
}
|
|
1396
|
+
],
|
|
1397
|
+
"internalType": "struct ILYTPoolConfigurableSettings",
|
|
1398
|
+
"name": "poolSettings",
|
|
1399
|
+
"type": "tuple"
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
"internalType": "string",
|
|
1403
|
+
"name": "tokenName",
|
|
1404
|
+
"type": "string"
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
"internalType": "string",
|
|
1408
|
+
"name": "tokenSymbol",
|
|
1409
|
+
"type": "string"
|
|
1410
|
+
}
|
|
1411
|
+
],
|
|
1412
|
+
"name": "initialize",
|
|
1413
|
+
"outputs": [],
|
|
1414
|
+
"stateMutability": "nonpayable",
|
|
1415
|
+
"type": "function"
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
"inputs": [],
|
|
1419
|
+
"name": "issuerAddr",
|
|
1420
|
+
"outputs": [
|
|
1421
|
+
{
|
|
1422
|
+
"internalType": "address",
|
|
1423
|
+
"name": "",
|
|
1424
|
+
"type": "address"
|
|
1425
|
+
}
|
|
1426
|
+
],
|
|
1427
|
+
"stateMutability": "view",
|
|
1428
|
+
"type": "function"
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
"inputs": [],
|
|
1432
|
+
"name": "liquidityAssetAddr",
|
|
1433
|
+
"outputs": [
|
|
1434
|
+
{
|
|
1435
|
+
"internalType": "address",
|
|
1436
|
+
"name": "",
|
|
1437
|
+
"type": "address"
|
|
1438
|
+
}
|
|
1439
|
+
],
|
|
1440
|
+
"stateMutability": "view",
|
|
1441
|
+
"type": "function"
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"inputs": [],
|
|
1445
|
+
"name": "lytPoolController",
|
|
1446
|
+
"outputs": [
|
|
1447
|
+
{
|
|
1448
|
+
"internalType": "contract ILYTPoolController",
|
|
1449
|
+
"name": "",
|
|
1450
|
+
"type": "address"
|
|
1451
|
+
}
|
|
1452
|
+
],
|
|
1453
|
+
"stateMutability": "view",
|
|
1454
|
+
"type": "function"
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
"inputs": [
|
|
1458
|
+
{
|
|
1459
|
+
"internalType": "address",
|
|
1460
|
+
"name": "owner",
|
|
1461
|
+
"type": "address"
|
|
1462
|
+
}
|
|
1463
|
+
],
|
|
1464
|
+
"name": "maxRedeemRequest",
|
|
1465
|
+
"outputs": [
|
|
1466
|
+
{
|
|
1467
|
+
"internalType": "uint256",
|
|
1468
|
+
"name": "maxShares",
|
|
1469
|
+
"type": "uint256"
|
|
1470
|
+
}
|
|
1471
|
+
],
|
|
1472
|
+
"stateMutability": "view",
|
|
1473
|
+
"type": "function"
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
"inputs": [
|
|
1477
|
+
{
|
|
1478
|
+
"internalType": "address",
|
|
1479
|
+
"name": "owner",
|
|
1480
|
+
"type": "address"
|
|
1481
|
+
}
|
|
1482
|
+
],
|
|
1483
|
+
"name": "maxWithdrawRequest",
|
|
1484
|
+
"outputs": [
|
|
1485
|
+
{
|
|
1486
|
+
"internalType": "uint256",
|
|
1487
|
+
"name": "maxAssets",
|
|
1488
|
+
"type": "uint256"
|
|
1489
|
+
}
|
|
1490
|
+
],
|
|
1491
|
+
"stateMutability": "view",
|
|
1492
|
+
"type": "function"
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
"inputs": [],
|
|
1496
|
+
"name": "name",
|
|
1497
|
+
"outputs": [
|
|
1498
|
+
{
|
|
1499
|
+
"internalType": "string",
|
|
1500
|
+
"name": "",
|
|
1501
|
+
"type": "string"
|
|
1502
|
+
}
|
|
1503
|
+
],
|
|
1504
|
+
"stateMutability": "view",
|
|
1505
|
+
"type": "function"
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
"inputs": [],
|
|
1509
|
+
"name": "poolAccessControl",
|
|
1510
|
+
"outputs": [
|
|
1511
|
+
{
|
|
1512
|
+
"internalType": "contract ILYTPoolAccessControl",
|
|
1513
|
+
"name": "",
|
|
1514
|
+
"type": "address"
|
|
1515
|
+
}
|
|
1516
|
+
],
|
|
1517
|
+
"stateMutability": "view",
|
|
1518
|
+
"type": "function"
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
"inputs": [],
|
|
1522
|
+
"name": "poolType",
|
|
1523
|
+
"outputs": [
|
|
1524
|
+
{
|
|
1525
|
+
"internalType": "enum IPoolType",
|
|
1526
|
+
"name": "",
|
|
1527
|
+
"type": "uint8"
|
|
1528
|
+
}
|
|
1529
|
+
],
|
|
1530
|
+
"stateMutability": "pure",
|
|
1531
|
+
"type": "function"
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
"inputs": [
|
|
1535
|
+
{
|
|
1536
|
+
"internalType": "uint256",
|
|
1537
|
+
"name": "shares",
|
|
1538
|
+
"type": "uint256"
|
|
1539
|
+
}
|
|
1540
|
+
],
|
|
1541
|
+
"name": "previewRedeemRequest",
|
|
1542
|
+
"outputs": [
|
|
1543
|
+
{
|
|
1544
|
+
"internalType": "uint256",
|
|
1545
|
+
"name": "assets",
|
|
1546
|
+
"type": "uint256"
|
|
1547
|
+
}
|
|
1548
|
+
],
|
|
1549
|
+
"stateMutability": "view",
|
|
1550
|
+
"type": "function"
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
"inputs": [
|
|
1554
|
+
{
|
|
1555
|
+
"internalType": "uint256",
|
|
1556
|
+
"name": "assets",
|
|
1557
|
+
"type": "uint256"
|
|
1558
|
+
}
|
|
1559
|
+
],
|
|
1560
|
+
"name": "previewWithdrawRequest",
|
|
1561
|
+
"outputs": [
|
|
1562
|
+
{
|
|
1563
|
+
"internalType": "uint256",
|
|
1564
|
+
"name": "shares",
|
|
1565
|
+
"type": "uint256"
|
|
1566
|
+
}
|
|
1567
|
+
],
|
|
1568
|
+
"stateMutability": "view",
|
|
1569
|
+
"type": "function"
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
"inputs": [
|
|
1573
|
+
{
|
|
1574
|
+
"internalType": "address",
|
|
1575
|
+
"name": "lender",
|
|
1576
|
+
"type": "address"
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
"internalType": "uint256",
|
|
1580
|
+
"name": "repayment",
|
|
1581
|
+
"type": "uint256"
|
|
1582
|
+
},
|
|
1583
|
+
{
|
|
1584
|
+
"internalType": "uint256",
|
|
1585
|
+
"name": "fees",
|
|
1586
|
+
"type": "uint256"
|
|
1587
|
+
},
|
|
1588
|
+
{
|
|
1589
|
+
"internalType": "bytes32",
|
|
1590
|
+
"name": "uuid",
|
|
1591
|
+
"type": "bytes32"
|
|
1592
|
+
}
|
|
1593
|
+
],
|
|
1594
|
+
"name": "processRedemption",
|
|
1595
|
+
"outputs": [],
|
|
1596
|
+
"stateMutability": "nonpayable",
|
|
1597
|
+
"type": "function"
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
"inputs": [
|
|
1601
|
+
{
|
|
1602
|
+
"internalType": "uint256",
|
|
1603
|
+
"name": "shares",
|
|
1604
|
+
"type": "uint256"
|
|
1605
|
+
}
|
|
1606
|
+
],
|
|
1607
|
+
"name": "requestRedeem",
|
|
1608
|
+
"outputs": [
|
|
1609
|
+
{
|
|
1610
|
+
"internalType": "uint256",
|
|
1611
|
+
"name": "assets",
|
|
1612
|
+
"type": "uint256"
|
|
1613
|
+
}
|
|
1614
|
+
],
|
|
1615
|
+
"stateMutability": "nonpayable",
|
|
1616
|
+
"type": "function"
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
"inputs": [],
|
|
1620
|
+
"name": "serviceConfiguration",
|
|
1621
|
+
"outputs": [
|
|
1622
|
+
{
|
|
1623
|
+
"internalType": "contract ILYTPoolServiceConfiguration",
|
|
1624
|
+
"name": "",
|
|
1625
|
+
"type": "address"
|
|
1626
|
+
}
|
|
1627
|
+
],
|
|
1628
|
+
"stateMutability": "view",
|
|
1629
|
+
"type": "function"
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
"inputs": [
|
|
1633
|
+
{
|
|
1634
|
+
"internalType": "uint256",
|
|
1635
|
+
"name": "_exchangeRate",
|
|
1636
|
+
"type": "uint256"
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
"internalType": "uint256",
|
|
1640
|
+
"name": "_typeDependantChangeParam",
|
|
1641
|
+
"type": "uint256"
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
"internalType": "uint256",
|
|
1645
|
+
"name": "_exchangeRateMaturityDay",
|
|
1646
|
+
"type": "uint256"
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
"internalType": "uint256",
|
|
1650
|
+
"name": "_interestRate",
|
|
1651
|
+
"type": "uint256"
|
|
1652
|
+
}
|
|
1653
|
+
],
|
|
1654
|
+
"name": "setExchangeRate",
|
|
1655
|
+
"outputs": [],
|
|
1656
|
+
"stateMutability": "nonpayable",
|
|
1657
|
+
"type": "function"
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
"inputs": [
|
|
1661
|
+
{
|
|
1662
|
+
"internalType": "uint256",
|
|
1663
|
+
"name": "_indicativeInterestRate",
|
|
1664
|
+
"type": "uint256"
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
"internalType": "uint256",
|
|
1668
|
+
"name": "_collateralRate",
|
|
1669
|
+
"type": "uint256"
|
|
1670
|
+
}
|
|
1671
|
+
],
|
|
1672
|
+
"name": "setIndicativeAndCollateralRates",
|
|
1673
|
+
"outputs": [],
|
|
1674
|
+
"stateMutability": "nonpayable",
|
|
1675
|
+
"type": "function"
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
"inputs": [],
|
|
1679
|
+
"name": "settings",
|
|
1680
|
+
"outputs": [
|
|
1681
|
+
{
|
|
1682
|
+
"components": [
|
|
1683
|
+
{
|
|
1684
|
+
"internalType": "address",
|
|
1685
|
+
"name": "issuer",
|
|
1686
|
+
"type": "address"
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
"internalType": "address",
|
|
1690
|
+
"name": "treasuryWalletAddr",
|
|
1691
|
+
"type": "address"
|
|
1692
|
+
},
|
|
1693
|
+
{
|
|
1694
|
+
"internalType": "address",
|
|
1695
|
+
"name": "feeCollectorAddress",
|
|
1696
|
+
"type": "address"
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
"internalType": "enum ILYTPoolExchangeRateType",
|
|
1700
|
+
"name": "exchangeRateType",
|
|
1701
|
+
"type": "uint8"
|
|
1702
|
+
}
|
|
1703
|
+
],
|
|
1704
|
+
"internalType": "struct ILYTPoolConfigurableSettings",
|
|
1705
|
+
"name": "poolSettings",
|
|
1706
|
+
"type": "tuple"
|
|
1707
|
+
}
|
|
1708
|
+
],
|
|
1709
|
+
"stateMutability": "view",
|
|
1710
|
+
"type": "function"
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
"inputs": [],
|
|
1714
|
+
"name": "state",
|
|
1715
|
+
"outputs": [
|
|
1716
|
+
{
|
|
1717
|
+
"internalType": "enum ILYTPoolLifeCycleState",
|
|
1718
|
+
"name": "",
|
|
1719
|
+
"type": "uint8"
|
|
1720
|
+
}
|
|
1721
|
+
],
|
|
1722
|
+
"stateMutability": "view",
|
|
1723
|
+
"type": "function"
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
"inputs": [],
|
|
1727
|
+
"name": "symbol",
|
|
1728
|
+
"outputs": [
|
|
1729
|
+
{
|
|
1730
|
+
"internalType": "string",
|
|
1731
|
+
"name": "",
|
|
1732
|
+
"type": "string"
|
|
1733
|
+
}
|
|
1734
|
+
],
|
|
1735
|
+
"stateMutability": "view",
|
|
1736
|
+
"type": "function"
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
"inputs": [],
|
|
1740
|
+
"name": "totalAssets",
|
|
1741
|
+
"outputs": [
|
|
1742
|
+
{
|
|
1743
|
+
"internalType": "uint256",
|
|
1744
|
+
"name": "",
|
|
1745
|
+
"type": "uint256"
|
|
1746
|
+
}
|
|
1747
|
+
],
|
|
1748
|
+
"stateMutability": "view",
|
|
1749
|
+
"type": "function"
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
"inputs": [],
|
|
1753
|
+
"name": "totalAvailableAssets",
|
|
1754
|
+
"outputs": [
|
|
1755
|
+
{
|
|
1756
|
+
"internalType": "uint256",
|
|
1757
|
+
"name": "assets",
|
|
1758
|
+
"type": "uint256"
|
|
1759
|
+
}
|
|
1760
|
+
],
|
|
1761
|
+
"stateMutability": "view",
|
|
1762
|
+
"type": "function"
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
"inputs": [],
|
|
1766
|
+
"name": "totalSupply",
|
|
1767
|
+
"outputs": [
|
|
1768
|
+
{
|
|
1769
|
+
"internalType": "uint256",
|
|
1770
|
+
"name": "",
|
|
1771
|
+
"type": "uint256"
|
|
1772
|
+
}
|
|
1773
|
+
],
|
|
1774
|
+
"stateMutability": "view",
|
|
1775
|
+
"type": "function"
|
|
1776
|
+
},
|
|
1777
|
+
{
|
|
1778
|
+
"inputs": [
|
|
1779
|
+
{
|
|
1780
|
+
"internalType": "address",
|
|
1781
|
+
"name": "to",
|
|
1782
|
+
"type": "address"
|
|
1783
|
+
},
|
|
1784
|
+
{
|
|
1785
|
+
"internalType": "uint256",
|
|
1786
|
+
"name": "value",
|
|
1787
|
+
"type": "uint256"
|
|
1788
|
+
}
|
|
1789
|
+
],
|
|
1790
|
+
"name": "transfer",
|
|
1791
|
+
"outputs": [
|
|
1792
|
+
{
|
|
1793
|
+
"internalType": "bool",
|
|
1794
|
+
"name": "",
|
|
1795
|
+
"type": "bool"
|
|
1796
|
+
}
|
|
1797
|
+
],
|
|
1798
|
+
"stateMutability": "nonpayable",
|
|
1799
|
+
"type": "function"
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
"inputs": [
|
|
1803
|
+
{
|
|
1804
|
+
"internalType": "address",
|
|
1805
|
+
"name": "from",
|
|
1806
|
+
"type": "address"
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
"internalType": "address",
|
|
1810
|
+
"name": "to",
|
|
1811
|
+
"type": "address"
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
"internalType": "uint256",
|
|
1815
|
+
"name": "value",
|
|
1816
|
+
"type": "uint256"
|
|
1817
|
+
}
|
|
1818
|
+
],
|
|
1819
|
+
"name": "transferFrom",
|
|
1820
|
+
"outputs": [
|
|
1821
|
+
{
|
|
1822
|
+
"internalType": "bool",
|
|
1823
|
+
"name": "",
|
|
1824
|
+
"type": "bool"
|
|
1825
|
+
}
|
|
1826
|
+
],
|
|
1827
|
+
"stateMutability": "nonpayable",
|
|
1828
|
+
"type": "function"
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
"inputs": [
|
|
1832
|
+
{
|
|
1833
|
+
"internalType": "uint256",
|
|
1834
|
+
"name": "assets",
|
|
1835
|
+
"type": "uint256"
|
|
1836
|
+
}
|
|
1837
|
+
],
|
|
1838
|
+
"name": "transferToTreasuryWallet",
|
|
1839
|
+
"outputs": [],
|
|
1840
|
+
"stateMutability": "nonpayable",
|
|
1841
|
+
"type": "function"
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
"inputs": [],
|
|
1845
|
+
"name": "treasuryWalletAddr",
|
|
1846
|
+
"outputs": [
|
|
1847
|
+
{
|
|
1848
|
+
"internalType": "address",
|
|
1849
|
+
"name": "",
|
|
1850
|
+
"type": "address"
|
|
1851
|
+
}
|
|
1852
|
+
],
|
|
1853
|
+
"stateMutability": "view",
|
|
1854
|
+
"type": "function"
|
|
1855
|
+
}
|
|
1856
|
+
];
|
|
1857
|
+
/**
|
|
1858
|
+
* LYTPool_json Contract Class
|
|
1859
|
+
*
|
|
1860
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1861
|
+
*
|
|
1862
|
+
* @example
|
|
1863
|
+
* ```typescript
|
|
1864
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1865
|
+
* import { mainnet } from 'viem/chains';
|
|
1866
|
+
* import { LYTPool_json } from 'LYTPool_json';
|
|
1867
|
+
*
|
|
1868
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1869
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1870
|
+
*
|
|
1871
|
+
* const contract = new LYTPool_json('0x...', { publicClient, walletClient });
|
|
1872
|
+
*
|
|
1873
|
+
* // Read functions
|
|
1874
|
+
* const result = await contract.balanceOf('0x...');
|
|
1875
|
+
*
|
|
1876
|
+
* // Write functions
|
|
1877
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
1878
|
+
*
|
|
1879
|
+
* // Simulate transactions (dry-run)
|
|
1880
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
1881
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
1882
|
+
*
|
|
1883
|
+
* // Watch events
|
|
1884
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1885
|
+
* console.log('Transfer event:', event);
|
|
1886
|
+
* });
|
|
1887
|
+
* ```
|
|
1888
|
+
*/
|
|
1889
|
+
class LYTPool_json {
|
|
1890
|
+
constructor(address, clients) {
|
|
1891
|
+
this.contractAddress = address;
|
|
1892
|
+
this.publicClient = clients.publicClient;
|
|
1893
|
+
this.contract = (0, viem_1.getContract)({
|
|
1894
|
+
address,
|
|
1895
|
+
abi: exports.LYTPool_jsonAbi,
|
|
1896
|
+
client: {
|
|
1897
|
+
public: clients.publicClient,
|
|
1898
|
+
wallet: clients.walletClient,
|
|
1899
|
+
},
|
|
1900
|
+
});
|
|
1901
|
+
}
|
|
1902
|
+
/**
|
|
1903
|
+
* Get the contract address
|
|
1904
|
+
*/
|
|
1905
|
+
get address() {
|
|
1906
|
+
return this.contractAddress;
|
|
1907
|
+
}
|
|
1908
|
+
/**
|
|
1909
|
+
* Get the underlying viem contract instance
|
|
1910
|
+
*/
|
|
1911
|
+
getContract() {
|
|
1912
|
+
return this.contract;
|
|
1913
|
+
}
|
|
1914
|
+
/**
|
|
1915
|
+
* accounting
|
|
1916
|
+
* view
|
|
1917
|
+
*/
|
|
1918
|
+
async accounting() {
|
|
1919
|
+
return this.contract.read.accounting();
|
|
1920
|
+
}
|
|
1921
|
+
/**
|
|
1922
|
+
* admin
|
|
1923
|
+
* view
|
|
1924
|
+
*/
|
|
1925
|
+
async admin() {
|
|
1926
|
+
return this.contract.read.admin();
|
|
1927
|
+
}
|
|
1928
|
+
/**
|
|
1929
|
+
* allowance
|
|
1930
|
+
* view
|
|
1931
|
+
*/
|
|
1932
|
+
async allowance(owner, spender) {
|
|
1933
|
+
return this.contract.read.allowance([owner, spender]);
|
|
1934
|
+
}
|
|
1935
|
+
/**
|
|
1936
|
+
* asset
|
|
1937
|
+
* view
|
|
1938
|
+
*/
|
|
1939
|
+
async asset() {
|
|
1940
|
+
return this.contract.read.asset();
|
|
1941
|
+
}
|
|
1942
|
+
/**
|
|
1943
|
+
* assetBalanceOf
|
|
1944
|
+
* view
|
|
1945
|
+
*/
|
|
1946
|
+
async assetBalanceOf(lender) {
|
|
1947
|
+
return this.contract.read.assetBalanceOf([lender]);
|
|
1948
|
+
}
|
|
1949
|
+
/**
|
|
1950
|
+
* balanceOf
|
|
1951
|
+
* view
|
|
1952
|
+
*/
|
|
1953
|
+
async balanceOf(account) {
|
|
1954
|
+
return this.contract.read.balanceOf([account]);
|
|
1955
|
+
}
|
|
1956
|
+
/**
|
|
1957
|
+
* convertToAssets
|
|
1958
|
+
* view
|
|
1959
|
+
*/
|
|
1960
|
+
async convertToAssets(shares) {
|
|
1961
|
+
return this.contract.read.convertToAssets([shares]);
|
|
1962
|
+
}
|
|
1963
|
+
/**
|
|
1964
|
+
* convertToShares
|
|
1965
|
+
* view
|
|
1966
|
+
*/
|
|
1967
|
+
async convertToShares(assets) {
|
|
1968
|
+
return this.contract.read.convertToShares([assets]);
|
|
1969
|
+
}
|
|
1970
|
+
/**
|
|
1971
|
+
* decimals
|
|
1972
|
+
* view
|
|
1973
|
+
*/
|
|
1974
|
+
async decimals() {
|
|
1975
|
+
return this.contract.read.decimals();
|
|
1976
|
+
}
|
|
1977
|
+
/**
|
|
1978
|
+
* exchangeRate
|
|
1979
|
+
* view
|
|
1980
|
+
*/
|
|
1981
|
+
async exchangeRate() {
|
|
1982
|
+
return this.contract.read.exchangeRate();
|
|
1983
|
+
}
|
|
1984
|
+
/**
|
|
1985
|
+
* getActiveWithdraws
|
|
1986
|
+
* view
|
|
1987
|
+
*/
|
|
1988
|
+
async getActiveWithdraws() {
|
|
1989
|
+
return this.contract.read.getActiveWithdraws();
|
|
1990
|
+
}
|
|
1991
|
+
/**
|
|
1992
|
+
* getLYTPoolAccountState
|
|
1993
|
+
* view
|
|
1994
|
+
*/
|
|
1995
|
+
async getLYTPoolAccountState(lender) {
|
|
1996
|
+
return this.contract.read.getLYTPoolAccountState([lender]);
|
|
1997
|
+
}
|
|
1998
|
+
/**
|
|
1999
|
+
* getLYTPoolConfigurationState
|
|
2000
|
+
* view
|
|
2001
|
+
*/
|
|
2002
|
+
async getLYTPoolConfigurationState() {
|
|
2003
|
+
return this.contract.read.getLYTPoolConfigurationState();
|
|
2004
|
+
}
|
|
2005
|
+
/**
|
|
2006
|
+
* getLYTPoolOverviewState
|
|
2007
|
+
* view
|
|
2008
|
+
*/
|
|
2009
|
+
async getLYTPoolOverviewState() {
|
|
2010
|
+
return this.contract.read.getLYTPoolOverviewState();
|
|
2011
|
+
}
|
|
2012
|
+
/**
|
|
2013
|
+
* issuerAddr
|
|
2014
|
+
* view
|
|
2015
|
+
*/
|
|
2016
|
+
async issuerAddr() {
|
|
2017
|
+
return this.contract.read.issuerAddr();
|
|
2018
|
+
}
|
|
2019
|
+
/**
|
|
2020
|
+
* liquidityAssetAddr
|
|
2021
|
+
* view
|
|
2022
|
+
*/
|
|
2023
|
+
async liquidityAssetAddr() {
|
|
2024
|
+
return this.contract.read.liquidityAssetAddr();
|
|
2025
|
+
}
|
|
2026
|
+
/**
|
|
2027
|
+
* lytPoolController
|
|
2028
|
+
* view
|
|
2029
|
+
*/
|
|
2030
|
+
async lytPoolController() {
|
|
2031
|
+
return this.contract.read.lytPoolController();
|
|
2032
|
+
}
|
|
2033
|
+
/**
|
|
2034
|
+
* maxRedeemRequest
|
|
2035
|
+
* view
|
|
2036
|
+
*/
|
|
2037
|
+
async maxRedeemRequest(owner) {
|
|
2038
|
+
return this.contract.read.maxRedeemRequest([owner]);
|
|
2039
|
+
}
|
|
2040
|
+
/**
|
|
2041
|
+
* maxWithdrawRequest
|
|
2042
|
+
* view
|
|
2043
|
+
*/
|
|
2044
|
+
async maxWithdrawRequest(owner) {
|
|
2045
|
+
return this.contract.read.maxWithdrawRequest([owner]);
|
|
2046
|
+
}
|
|
2047
|
+
/**
|
|
2048
|
+
* name
|
|
2049
|
+
* view
|
|
2050
|
+
*/
|
|
2051
|
+
async name() {
|
|
2052
|
+
return this.contract.read.name();
|
|
2053
|
+
}
|
|
2054
|
+
/**
|
|
2055
|
+
* poolAccessControl
|
|
2056
|
+
* view
|
|
2057
|
+
*/
|
|
2058
|
+
async poolAccessControl() {
|
|
2059
|
+
return this.contract.read.poolAccessControl();
|
|
2060
|
+
}
|
|
2061
|
+
/**
|
|
2062
|
+
* poolType
|
|
2063
|
+
* pure
|
|
2064
|
+
*/
|
|
2065
|
+
async poolType() {
|
|
2066
|
+
return this.contract.read.poolType();
|
|
2067
|
+
}
|
|
2068
|
+
/**
|
|
2069
|
+
* previewRedeemRequest
|
|
2070
|
+
* view
|
|
2071
|
+
*/
|
|
2072
|
+
async previewRedeemRequest(shares) {
|
|
2073
|
+
return this.contract.read.previewRedeemRequest([shares]);
|
|
2074
|
+
}
|
|
2075
|
+
/**
|
|
2076
|
+
* previewWithdrawRequest
|
|
2077
|
+
* view
|
|
2078
|
+
*/
|
|
2079
|
+
async previewWithdrawRequest(assets) {
|
|
2080
|
+
return this.contract.read.previewWithdrawRequest([assets]);
|
|
2081
|
+
}
|
|
2082
|
+
/**
|
|
2083
|
+
* serviceConfiguration
|
|
2084
|
+
* view
|
|
2085
|
+
*/
|
|
2086
|
+
async serviceConfiguration() {
|
|
2087
|
+
return this.contract.read.serviceConfiguration();
|
|
2088
|
+
}
|
|
2089
|
+
/**
|
|
2090
|
+
* settings
|
|
2091
|
+
* view
|
|
2092
|
+
*/
|
|
2093
|
+
async settings() {
|
|
2094
|
+
return this.contract.read.settings();
|
|
2095
|
+
}
|
|
2096
|
+
/**
|
|
2097
|
+
* state
|
|
2098
|
+
* view
|
|
2099
|
+
*/
|
|
2100
|
+
async state() {
|
|
2101
|
+
return this.contract.read.state();
|
|
2102
|
+
}
|
|
2103
|
+
/**
|
|
2104
|
+
* symbol
|
|
2105
|
+
* view
|
|
2106
|
+
*/
|
|
2107
|
+
async symbol() {
|
|
2108
|
+
return this.contract.read.symbol();
|
|
2109
|
+
}
|
|
2110
|
+
/**
|
|
2111
|
+
* totalAssets
|
|
2112
|
+
* view
|
|
2113
|
+
*/
|
|
2114
|
+
async totalAssets() {
|
|
2115
|
+
return this.contract.read.totalAssets();
|
|
2116
|
+
}
|
|
2117
|
+
/**
|
|
2118
|
+
* totalAvailableAssets
|
|
2119
|
+
* view
|
|
2120
|
+
*/
|
|
2121
|
+
async totalAvailableAssets() {
|
|
2122
|
+
return this.contract.read.totalAvailableAssets();
|
|
2123
|
+
}
|
|
2124
|
+
/**
|
|
2125
|
+
* totalSupply
|
|
2126
|
+
* view
|
|
2127
|
+
*/
|
|
2128
|
+
async totalSupply() {
|
|
2129
|
+
return this.contract.read.totalSupply();
|
|
2130
|
+
}
|
|
2131
|
+
/**
|
|
2132
|
+
* treasuryWalletAddr
|
|
2133
|
+
* view
|
|
2134
|
+
*/
|
|
2135
|
+
async treasuryWalletAddr() {
|
|
2136
|
+
return this.contract.read.treasuryWalletAddr();
|
|
2137
|
+
}
|
|
2138
|
+
/**
|
|
2139
|
+
* addAdjustmentAmount
|
|
2140
|
+
* nonpayable
|
|
2141
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2142
|
+
*/
|
|
2143
|
+
async addAdjustmentAmount(lender, debit, credit, options) {
|
|
2144
|
+
if (!this.contract.write) {
|
|
2145
|
+
throw new Error('Wallet client is required for write operations');
|
|
2146
|
+
}
|
|
2147
|
+
return this.contract.write.addAdjustmentAmount([lender, debit, credit], options);
|
|
2148
|
+
}
|
|
2149
|
+
/**
|
|
2150
|
+
* approve
|
|
2151
|
+
* nonpayable
|
|
2152
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2153
|
+
*/
|
|
2154
|
+
async approve(spender, value, options) {
|
|
2155
|
+
if (!this.contract.write) {
|
|
2156
|
+
throw new Error('Wallet client is required for write operations');
|
|
2157
|
+
}
|
|
2158
|
+
return this.contract.write.approve([spender, value], options);
|
|
2159
|
+
}
|
|
2160
|
+
/**
|
|
2161
|
+
* changeRedemptionDestination
|
|
2162
|
+
* nonpayable
|
|
2163
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2164
|
+
*/
|
|
2165
|
+
async changeRedemptionDestination(lender, uuid, fundsDestination, options) {
|
|
2166
|
+
if (!this.contract.write) {
|
|
2167
|
+
throw new Error('Wallet client is required for write operations');
|
|
2168
|
+
}
|
|
2169
|
+
return this.contract.write.changeRedemptionDestination([lender, uuid, fundsDestination], options);
|
|
2170
|
+
}
|
|
2171
|
+
/**
|
|
2172
|
+
* deposit
|
|
2173
|
+
* nonpayable
|
|
2174
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2175
|
+
*/
|
|
2176
|
+
async deposit(assets, lender, options) {
|
|
2177
|
+
if (!this.contract.write) {
|
|
2178
|
+
throw new Error('Wallet client is required for write operations');
|
|
2179
|
+
}
|
|
2180
|
+
return this.contract.write.deposit([assets, lender], options);
|
|
2181
|
+
}
|
|
2182
|
+
/**
|
|
2183
|
+
* depositFromTransfer
|
|
2184
|
+
* nonpayable
|
|
2185
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2186
|
+
*/
|
|
2187
|
+
async depositFromTransfer(assets, lender, transferTxHash, options) {
|
|
2188
|
+
if (!this.contract.write) {
|
|
2189
|
+
throw new Error('Wallet client is required for write operations');
|
|
2190
|
+
}
|
|
2191
|
+
return this.contract.write.depositFromTransfer([assets, lender, transferTxHash], options);
|
|
2192
|
+
}
|
|
2193
|
+
/**
|
|
2194
|
+
* depositOffChain
|
|
2195
|
+
* nonpayable
|
|
2196
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2197
|
+
*/
|
|
2198
|
+
async depositOffChain(assets, lender, transferTxHash, options) {
|
|
2199
|
+
if (!this.contract.write) {
|
|
2200
|
+
throw new Error('Wallet client is required for write operations');
|
|
2201
|
+
}
|
|
2202
|
+
return this.contract.write.depositOffChain([assets, lender, transferTxHash], options);
|
|
2203
|
+
}
|
|
2204
|
+
/**
|
|
2205
|
+
* initialize
|
|
2206
|
+
* nonpayable
|
|
2207
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2208
|
+
*/
|
|
2209
|
+
async initialize(poolAddressList, poolSettings, tokenName, tokenSymbol, options) {
|
|
2210
|
+
if (!this.contract.write) {
|
|
2211
|
+
throw new Error('Wallet client is required for write operations');
|
|
2212
|
+
}
|
|
2213
|
+
return this.contract.write.initialize([poolAddressList, poolSettings, tokenName, tokenSymbol], options);
|
|
2214
|
+
}
|
|
2215
|
+
/**
|
|
2216
|
+
* processRedemption
|
|
2217
|
+
* nonpayable
|
|
2218
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2219
|
+
*/
|
|
2220
|
+
async processRedemption(lender, repayment, fees, uuid, options) {
|
|
2221
|
+
if (!this.contract.write) {
|
|
2222
|
+
throw new Error('Wallet client is required for write operations');
|
|
2223
|
+
}
|
|
2224
|
+
return this.contract.write.processRedemption([lender, repayment, fees, uuid], options);
|
|
2225
|
+
}
|
|
2226
|
+
/**
|
|
2227
|
+
* requestRedeem
|
|
2228
|
+
* nonpayable
|
|
2229
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2230
|
+
*/
|
|
2231
|
+
async requestRedeem(shares, options) {
|
|
2232
|
+
if (!this.contract.write) {
|
|
2233
|
+
throw new Error('Wallet client is required for write operations');
|
|
2234
|
+
}
|
|
2235
|
+
return this.contract.write.requestRedeem([shares], options);
|
|
2236
|
+
}
|
|
2237
|
+
/**
|
|
2238
|
+
* setExchangeRate
|
|
2239
|
+
* nonpayable
|
|
2240
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2241
|
+
*/
|
|
2242
|
+
async setExchangeRate(_exchangeRate, _typeDependantChangeParam, _exchangeRateMaturityDay, _interestRate, options) {
|
|
2243
|
+
if (!this.contract.write) {
|
|
2244
|
+
throw new Error('Wallet client is required for write operations');
|
|
2245
|
+
}
|
|
2246
|
+
return this.contract.write.setExchangeRate([_exchangeRate, _typeDependantChangeParam, _exchangeRateMaturityDay, _interestRate], options);
|
|
2247
|
+
}
|
|
2248
|
+
/**
|
|
2249
|
+
* setIndicativeAndCollateralRates
|
|
2250
|
+
* nonpayable
|
|
2251
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2252
|
+
*/
|
|
2253
|
+
async setIndicativeAndCollateralRates(_indicativeInterestRate, _collateralRate, options) {
|
|
2254
|
+
if (!this.contract.write) {
|
|
2255
|
+
throw new Error('Wallet client is required for write operations');
|
|
2256
|
+
}
|
|
2257
|
+
return this.contract.write.setIndicativeAndCollateralRates([_indicativeInterestRate, _collateralRate], options);
|
|
2258
|
+
}
|
|
2259
|
+
/**
|
|
2260
|
+
* transfer
|
|
2261
|
+
* nonpayable
|
|
2262
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2263
|
+
*/
|
|
2264
|
+
async transfer(to, value, options) {
|
|
2265
|
+
if (!this.contract.write) {
|
|
2266
|
+
throw new Error('Wallet client is required for write operations');
|
|
2267
|
+
}
|
|
2268
|
+
return this.contract.write.transfer([to, value], options);
|
|
2269
|
+
}
|
|
2270
|
+
/**
|
|
2271
|
+
* transferFrom
|
|
2272
|
+
* nonpayable
|
|
2273
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2274
|
+
*/
|
|
2275
|
+
async transferFrom(from, to, value, options) {
|
|
2276
|
+
if (!this.contract.write) {
|
|
2277
|
+
throw new Error('Wallet client is required for write operations');
|
|
2278
|
+
}
|
|
2279
|
+
return this.contract.write.transferFrom([from, to, value], options);
|
|
2280
|
+
}
|
|
2281
|
+
/**
|
|
2282
|
+
* transferToTreasuryWallet
|
|
2283
|
+
* nonpayable
|
|
2284
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2285
|
+
*/
|
|
2286
|
+
async transferToTreasuryWallet(assets, options) {
|
|
2287
|
+
if (!this.contract.write) {
|
|
2288
|
+
throw new Error('Wallet client is required for write operations');
|
|
2289
|
+
}
|
|
2290
|
+
return this.contract.write.transferToTreasuryWallet([assets], options);
|
|
2291
|
+
}
|
|
2292
|
+
/**
|
|
2293
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
2294
|
+
*
|
|
2295
|
+
* @example
|
|
2296
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
2297
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
2298
|
+
* console.log('Would succeed:', result.result);
|
|
2299
|
+
*/
|
|
2300
|
+
get simulate() {
|
|
2301
|
+
const contract = this.contract;
|
|
2302
|
+
if (!contract.simulate) {
|
|
2303
|
+
throw new Error('Public client is required for simulation');
|
|
2304
|
+
}
|
|
2305
|
+
return {
|
|
2306
|
+
/**
|
|
2307
|
+
* Simulate addAdjustmentAmount
|
|
2308
|
+
* Returns gas estimate and result without sending transaction
|
|
2309
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2310
|
+
*/
|
|
2311
|
+
async addAdjustmentAmount(lender, debit, credit, options) {
|
|
2312
|
+
return contract.simulate.addAdjustmentAmount([lender, debit, credit], options);
|
|
2313
|
+
},
|
|
2314
|
+
/**
|
|
2315
|
+
* Simulate approve
|
|
2316
|
+
* Returns gas estimate and result without sending transaction
|
|
2317
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2318
|
+
*/
|
|
2319
|
+
async approve(spender, value, options) {
|
|
2320
|
+
return contract.simulate.approve([spender, value], options);
|
|
2321
|
+
},
|
|
2322
|
+
/**
|
|
2323
|
+
* Simulate changeRedemptionDestination
|
|
2324
|
+
* Returns gas estimate and result without sending transaction
|
|
2325
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2326
|
+
*/
|
|
2327
|
+
async changeRedemptionDestination(lender, uuid, fundsDestination, options) {
|
|
2328
|
+
return contract.simulate.changeRedemptionDestination([lender, uuid, fundsDestination], options);
|
|
2329
|
+
},
|
|
2330
|
+
/**
|
|
2331
|
+
* Simulate deposit
|
|
2332
|
+
* Returns gas estimate and result without sending transaction
|
|
2333
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2334
|
+
*/
|
|
2335
|
+
async deposit(assets, lender, options) {
|
|
2336
|
+
return contract.simulate.deposit([assets, lender], options);
|
|
2337
|
+
},
|
|
2338
|
+
/**
|
|
2339
|
+
* Simulate depositFromTransfer
|
|
2340
|
+
* Returns gas estimate and result without sending transaction
|
|
2341
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2342
|
+
*/
|
|
2343
|
+
async depositFromTransfer(assets, lender, transferTxHash, options) {
|
|
2344
|
+
return contract.simulate.depositFromTransfer([assets, lender, transferTxHash], options);
|
|
2345
|
+
},
|
|
2346
|
+
/**
|
|
2347
|
+
* Simulate depositOffChain
|
|
2348
|
+
* Returns gas estimate and result without sending transaction
|
|
2349
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2350
|
+
*/
|
|
2351
|
+
async depositOffChain(assets, lender, transferTxHash, options) {
|
|
2352
|
+
return contract.simulate.depositOffChain([assets, lender, transferTxHash], options);
|
|
2353
|
+
},
|
|
2354
|
+
/**
|
|
2355
|
+
* Simulate initialize
|
|
2356
|
+
* Returns gas estimate and result without sending transaction
|
|
2357
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2358
|
+
*/
|
|
2359
|
+
async initialize(poolAddressList, poolSettings, tokenName, tokenSymbol, options) {
|
|
2360
|
+
return contract.simulate.initialize([poolAddressList, poolSettings, tokenName, tokenSymbol], options);
|
|
2361
|
+
},
|
|
2362
|
+
/**
|
|
2363
|
+
* Simulate processRedemption
|
|
2364
|
+
* Returns gas estimate and result without sending transaction
|
|
2365
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2366
|
+
*/
|
|
2367
|
+
async processRedemption(lender, repayment, fees, uuid, options) {
|
|
2368
|
+
return contract.simulate.processRedemption([lender, repayment, fees, uuid], options);
|
|
2369
|
+
},
|
|
2370
|
+
/**
|
|
2371
|
+
* Simulate requestRedeem
|
|
2372
|
+
* Returns gas estimate and result without sending transaction
|
|
2373
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2374
|
+
*/
|
|
2375
|
+
async requestRedeem(shares, options) {
|
|
2376
|
+
return contract.simulate.requestRedeem([shares], options);
|
|
2377
|
+
},
|
|
2378
|
+
/**
|
|
2379
|
+
* Simulate setExchangeRate
|
|
2380
|
+
* Returns gas estimate and result without sending transaction
|
|
2381
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2382
|
+
*/
|
|
2383
|
+
async setExchangeRate(_exchangeRate, _typeDependantChangeParam, _exchangeRateMaturityDay, _interestRate, options) {
|
|
2384
|
+
return contract.simulate.setExchangeRate([_exchangeRate, _typeDependantChangeParam, _exchangeRateMaturityDay, _interestRate], options);
|
|
2385
|
+
},
|
|
2386
|
+
/**
|
|
2387
|
+
* Simulate setIndicativeAndCollateralRates
|
|
2388
|
+
* Returns gas estimate and result without sending transaction
|
|
2389
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2390
|
+
*/
|
|
2391
|
+
async setIndicativeAndCollateralRates(_indicativeInterestRate, _collateralRate, options) {
|
|
2392
|
+
return contract.simulate.setIndicativeAndCollateralRates([_indicativeInterestRate, _collateralRate], options);
|
|
2393
|
+
},
|
|
2394
|
+
/**
|
|
2395
|
+
* Simulate transfer
|
|
2396
|
+
* Returns gas estimate and result without sending transaction
|
|
2397
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2398
|
+
*/
|
|
2399
|
+
async transfer(to, value, options) {
|
|
2400
|
+
return contract.simulate.transfer([to, value], options);
|
|
2401
|
+
},
|
|
2402
|
+
/**
|
|
2403
|
+
* Simulate transferFrom
|
|
2404
|
+
* Returns gas estimate and result without sending transaction
|
|
2405
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2406
|
+
*/
|
|
2407
|
+
async transferFrom(from, to, value, options) {
|
|
2408
|
+
return contract.simulate.transferFrom([from, to, value], options);
|
|
2409
|
+
},
|
|
2410
|
+
/**
|
|
2411
|
+
* Simulate transferToTreasuryWallet
|
|
2412
|
+
* Returns gas estimate and result without sending transaction
|
|
2413
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2414
|
+
*/
|
|
2415
|
+
async transferToTreasuryWallet(assets, options) {
|
|
2416
|
+
return contract.simulate.transferToTreasuryWallet([assets], options);
|
|
2417
|
+
}
|
|
2418
|
+
};
|
|
2419
|
+
}
|
|
2420
|
+
/**
|
|
2421
|
+
* Watch contract events
|
|
2422
|
+
*
|
|
2423
|
+
* @example
|
|
2424
|
+
* // Watch all Transfer events
|
|
2425
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
2426
|
+
* console.log('Transfer:', event);
|
|
2427
|
+
* });
|
|
2428
|
+
*
|
|
2429
|
+
* // Stop watching
|
|
2430
|
+
* unwatch();
|
|
2431
|
+
*/
|
|
2432
|
+
get watch() {
|
|
2433
|
+
return {
|
|
2434
|
+
/**
|
|
2435
|
+
* Watch AccountCredit events
|
|
2436
|
+
* @param callback Function to call when event is emitted
|
|
2437
|
+
* @param filter Optional filter for indexed parameters
|
|
2438
|
+
* @returns Unwatch function to stop listening
|
|
2439
|
+
*/
|
|
2440
|
+
AccountCredit: (callback, filter) => {
|
|
2441
|
+
return this.publicClient.watchContractEvent({
|
|
2442
|
+
address: this.contractAddress,
|
|
2443
|
+
abi: exports.LYTPool_jsonAbi,
|
|
2444
|
+
eventName: 'AccountCredit',
|
|
2445
|
+
args: filter,
|
|
2446
|
+
onLogs: (logs) => {
|
|
2447
|
+
logs.forEach((log) => {
|
|
2448
|
+
callback(log.args);
|
|
2449
|
+
});
|
|
2450
|
+
},
|
|
2451
|
+
});
|
|
2452
|
+
},
|
|
2453
|
+
/**
|
|
2454
|
+
* Watch AccountDebit events
|
|
2455
|
+
* @param callback Function to call when event is emitted
|
|
2456
|
+
* @param filter Optional filter for indexed parameters
|
|
2457
|
+
* @returns Unwatch function to stop listening
|
|
2458
|
+
*/
|
|
2459
|
+
AccountDebit: (callback, filter) => {
|
|
2460
|
+
return this.publicClient.watchContractEvent({
|
|
2461
|
+
address: this.contractAddress,
|
|
2462
|
+
abi: exports.LYTPool_jsonAbi,
|
|
2463
|
+
eventName: 'AccountDebit',
|
|
2464
|
+
args: filter,
|
|
2465
|
+
onLogs: (logs) => {
|
|
2466
|
+
logs.forEach((log) => {
|
|
2467
|
+
callback(log.args);
|
|
2468
|
+
});
|
|
2469
|
+
},
|
|
2470
|
+
});
|
|
2471
|
+
},
|
|
2472
|
+
/**
|
|
2473
|
+
* Watch Approval events
|
|
2474
|
+
* @param callback Function to call when event is emitted
|
|
2475
|
+
* @param filter Optional filter for indexed parameters
|
|
2476
|
+
* @returns Unwatch function to stop listening
|
|
2477
|
+
*/
|
|
2478
|
+
Approval: (callback, filter) => {
|
|
2479
|
+
return this.publicClient.watchContractEvent({
|
|
2480
|
+
address: this.contractAddress,
|
|
2481
|
+
abi: exports.LYTPool_jsonAbi,
|
|
2482
|
+
eventName: 'Approval',
|
|
2483
|
+
args: filter,
|
|
2484
|
+
onLogs: (logs) => {
|
|
2485
|
+
logs.forEach((log) => {
|
|
2486
|
+
callback(log.args);
|
|
2487
|
+
});
|
|
2488
|
+
},
|
|
2489
|
+
});
|
|
2490
|
+
},
|
|
2491
|
+
/**
|
|
2492
|
+
* Watch Deposit events
|
|
2493
|
+
* @param callback Function to call when event is emitted
|
|
2494
|
+
* @param filter Optional filter for indexed parameters
|
|
2495
|
+
* @returns Unwatch function to stop listening
|
|
2496
|
+
*/
|
|
2497
|
+
Deposit: (callback, filter) => {
|
|
2498
|
+
return this.publicClient.watchContractEvent({
|
|
2499
|
+
address: this.contractAddress,
|
|
2500
|
+
abi: exports.LYTPool_jsonAbi,
|
|
2501
|
+
eventName: 'Deposit',
|
|
2502
|
+
args: filter,
|
|
2503
|
+
onLogs: (logs) => {
|
|
2504
|
+
logs.forEach((log) => {
|
|
2505
|
+
callback(log.args);
|
|
2506
|
+
});
|
|
2507
|
+
},
|
|
2508
|
+
});
|
|
2509
|
+
},
|
|
2510
|
+
/**
|
|
2511
|
+
* Watch ExchangeRateSet events
|
|
2512
|
+
* @param callback Function to call when event is emitted
|
|
2513
|
+
* @param filter Optional filter for indexed parameters
|
|
2514
|
+
* @returns Unwatch function to stop listening
|
|
2515
|
+
*/
|
|
2516
|
+
ExchangeRateSet: (callback) => {
|
|
2517
|
+
return this.publicClient.watchContractEvent({
|
|
2518
|
+
address: this.contractAddress,
|
|
2519
|
+
abi: exports.LYTPool_jsonAbi,
|
|
2520
|
+
eventName: 'ExchangeRateSet',
|
|
2521
|
+
onLogs: (logs) => {
|
|
2522
|
+
logs.forEach((log) => {
|
|
2523
|
+
callback(log.args);
|
|
2524
|
+
});
|
|
2525
|
+
},
|
|
2526
|
+
});
|
|
2527
|
+
},
|
|
2528
|
+
/**
|
|
2529
|
+
* Watch IndicativeAndCollateralRatesSet events
|
|
2530
|
+
* @param callback Function to call when event is emitted
|
|
2531
|
+
* @param filter Optional filter for indexed parameters
|
|
2532
|
+
* @returns Unwatch function to stop listening
|
|
2533
|
+
*/
|
|
2534
|
+
IndicativeAndCollateralRatesSet: (callback) => {
|
|
2535
|
+
return this.publicClient.watchContractEvent({
|
|
2536
|
+
address: this.contractAddress,
|
|
2537
|
+
abi: exports.LYTPool_jsonAbi,
|
|
2538
|
+
eventName: 'IndicativeAndCollateralRatesSet',
|
|
2539
|
+
onLogs: (logs) => {
|
|
2540
|
+
logs.forEach((log) => {
|
|
2541
|
+
callback(log.args);
|
|
2542
|
+
});
|
|
2543
|
+
},
|
|
2544
|
+
});
|
|
2545
|
+
},
|
|
2546
|
+
/**
|
|
2547
|
+
* Watch Initialized events
|
|
2548
|
+
* @param callback Function to call when event is emitted
|
|
2549
|
+
* @param filter Optional filter for indexed parameters
|
|
2550
|
+
* @returns Unwatch function to stop listening
|
|
2551
|
+
*/
|
|
2552
|
+
Initialized: (callback) => {
|
|
2553
|
+
return this.publicClient.watchContractEvent({
|
|
2554
|
+
address: this.contractAddress,
|
|
2555
|
+
abi: exports.LYTPool_jsonAbi,
|
|
2556
|
+
eventName: 'Initialized',
|
|
2557
|
+
onLogs: (logs) => {
|
|
2558
|
+
logs.forEach((log) => {
|
|
2559
|
+
callback(log.args);
|
|
2560
|
+
});
|
|
2561
|
+
},
|
|
2562
|
+
});
|
|
2563
|
+
},
|
|
2564
|
+
/**
|
|
2565
|
+
* Watch PoolCreated events
|
|
2566
|
+
* @param callback Function to call when event is emitted
|
|
2567
|
+
* @param filter Optional filter for indexed parameters
|
|
2568
|
+
* @returns Unwatch function to stop listening
|
|
2569
|
+
*/
|
|
2570
|
+
PoolCreated: (callback) => {
|
|
2571
|
+
return this.publicClient.watchContractEvent({
|
|
2572
|
+
address: this.contractAddress,
|
|
2573
|
+
abi: exports.LYTPool_jsonAbi,
|
|
2574
|
+
eventName: 'PoolCreated',
|
|
2575
|
+
onLogs: (logs) => {
|
|
2576
|
+
logs.forEach((log) => {
|
|
2577
|
+
callback(log.args);
|
|
2578
|
+
});
|
|
2579
|
+
},
|
|
2580
|
+
});
|
|
2581
|
+
},
|
|
2582
|
+
/**
|
|
2583
|
+
* Watch PoolDeposit events
|
|
2584
|
+
* @param callback Function to call when event is emitted
|
|
2585
|
+
* @param filter Optional filter for indexed parameters
|
|
2586
|
+
* @returns Unwatch function to stop listening
|
|
2587
|
+
*/
|
|
2588
|
+
PoolDeposit: (callback, filter) => {
|
|
2589
|
+
return this.publicClient.watchContractEvent({
|
|
2590
|
+
address: this.contractAddress,
|
|
2591
|
+
abi: exports.LYTPool_jsonAbi,
|
|
2592
|
+
eventName: 'PoolDeposit',
|
|
2593
|
+
args: filter,
|
|
2594
|
+
onLogs: (logs) => {
|
|
2595
|
+
logs.forEach((log) => {
|
|
2596
|
+
callback(log.args);
|
|
2597
|
+
});
|
|
2598
|
+
},
|
|
2599
|
+
});
|
|
2600
|
+
},
|
|
2601
|
+
/**
|
|
2602
|
+
* Watch RedeemDestinationChanged events
|
|
2603
|
+
* @param callback Function to call when event is emitted
|
|
2604
|
+
* @param filter Optional filter for indexed parameters
|
|
2605
|
+
* @returns Unwatch function to stop listening
|
|
2606
|
+
*/
|
|
2607
|
+
RedeemDestinationChanged: (callback, filter) => {
|
|
2608
|
+
return this.publicClient.watchContractEvent({
|
|
2609
|
+
address: this.contractAddress,
|
|
2610
|
+
abi: exports.LYTPool_jsonAbi,
|
|
2611
|
+
eventName: 'RedeemDestinationChanged',
|
|
2612
|
+
args: filter,
|
|
2613
|
+
onLogs: (logs) => {
|
|
2614
|
+
logs.forEach((log) => {
|
|
2615
|
+
callback(log.args);
|
|
2616
|
+
});
|
|
2617
|
+
},
|
|
2618
|
+
});
|
|
2619
|
+
},
|
|
2620
|
+
/**
|
|
2621
|
+
* Watch RedeemRepay events
|
|
2622
|
+
* @param callback Function to call when event is emitted
|
|
2623
|
+
* @param filter Optional filter for indexed parameters
|
|
2624
|
+
* @returns Unwatch function to stop listening
|
|
2625
|
+
*/
|
|
2626
|
+
RedeemRepay: (callback, filter) => {
|
|
2627
|
+
return this.publicClient.watchContractEvent({
|
|
2628
|
+
address: this.contractAddress,
|
|
2629
|
+
abi: exports.LYTPool_jsonAbi,
|
|
2630
|
+
eventName: 'RedeemRepay',
|
|
2631
|
+
args: filter,
|
|
2632
|
+
onLogs: (logs) => {
|
|
2633
|
+
logs.forEach((log) => {
|
|
2634
|
+
callback(log.args);
|
|
2635
|
+
});
|
|
2636
|
+
},
|
|
2637
|
+
});
|
|
2638
|
+
},
|
|
2639
|
+
/**
|
|
2640
|
+
* Watch RedeemRequested events
|
|
2641
|
+
* @param callback Function to call when event is emitted
|
|
2642
|
+
* @param filter Optional filter for indexed parameters
|
|
2643
|
+
* @returns Unwatch function to stop listening
|
|
2644
|
+
*/
|
|
2645
|
+
RedeemRequested: (callback, filter) => {
|
|
2646
|
+
return this.publicClient.watchContractEvent({
|
|
2647
|
+
address: this.contractAddress,
|
|
2648
|
+
abi: exports.LYTPool_jsonAbi,
|
|
2649
|
+
eventName: 'RedeemRequested',
|
|
2650
|
+
args: filter,
|
|
2651
|
+
onLogs: (logs) => {
|
|
2652
|
+
logs.forEach((log) => {
|
|
2653
|
+
callback(log.args);
|
|
2654
|
+
});
|
|
2655
|
+
},
|
|
2656
|
+
});
|
|
2657
|
+
},
|
|
2658
|
+
/**
|
|
2659
|
+
* Watch Transfer events
|
|
2660
|
+
* @param callback Function to call when event is emitted
|
|
2661
|
+
* @param filter Optional filter for indexed parameters
|
|
2662
|
+
* @returns Unwatch function to stop listening
|
|
2663
|
+
*/
|
|
2664
|
+
Transfer: (callback, filter) => {
|
|
2665
|
+
return this.publicClient.watchContractEvent({
|
|
2666
|
+
address: this.contractAddress,
|
|
2667
|
+
abi: exports.LYTPool_jsonAbi,
|
|
2668
|
+
eventName: 'Transfer',
|
|
2669
|
+
args: filter,
|
|
2670
|
+
onLogs: (logs) => {
|
|
2671
|
+
logs.forEach((log) => {
|
|
2672
|
+
callback(log.args);
|
|
2673
|
+
});
|
|
2674
|
+
},
|
|
2675
|
+
});
|
|
2676
|
+
},
|
|
2677
|
+
/**
|
|
2678
|
+
* Watch TransferAssets events
|
|
2679
|
+
* @param callback Function to call when event is emitted
|
|
2680
|
+
* @param filter Optional filter for indexed parameters
|
|
2681
|
+
* @returns Unwatch function to stop listening
|
|
2682
|
+
*/
|
|
2683
|
+
TransferAssets: (callback, filter) => {
|
|
2684
|
+
return this.publicClient.watchContractEvent({
|
|
2685
|
+
address: this.contractAddress,
|
|
2686
|
+
abi: exports.LYTPool_jsonAbi,
|
|
2687
|
+
eventName: 'TransferAssets',
|
|
2688
|
+
args: filter,
|
|
2689
|
+
onLogs: (logs) => {
|
|
2690
|
+
logs.forEach((log) => {
|
|
2691
|
+
callback(log.args);
|
|
2692
|
+
});
|
|
2693
|
+
},
|
|
2694
|
+
});
|
|
2695
|
+
},
|
|
2696
|
+
/**
|
|
2697
|
+
* Watch Withdraw events
|
|
2698
|
+
* @param callback Function to call when event is emitted
|
|
2699
|
+
* @param filter Optional filter for indexed parameters
|
|
2700
|
+
* @returns Unwatch function to stop listening
|
|
2701
|
+
*/
|
|
2702
|
+
Withdraw: (callback, filter) => {
|
|
2703
|
+
return this.publicClient.watchContractEvent({
|
|
2704
|
+
address: this.contractAddress,
|
|
2705
|
+
abi: exports.LYTPool_jsonAbi,
|
|
2706
|
+
eventName: 'Withdraw',
|
|
2707
|
+
args: filter,
|
|
2708
|
+
onLogs: (logs) => {
|
|
2709
|
+
logs.forEach((log) => {
|
|
2710
|
+
callback(log.args);
|
|
2711
|
+
});
|
|
2712
|
+
},
|
|
2713
|
+
});
|
|
2714
|
+
}
|
|
2715
|
+
};
|
|
2716
|
+
}
|
|
2717
|
+
}
|
|
2718
|
+
exports.LYTPool_json = LYTPool_json;
|