@gitmyabi/arm-weth-steth 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/LidoARM_json.d.ts +2971 -0
- package/contracts/LidoARM_json.js +3293 -0
- package/contracts/LidoARM_json.ts +4004 -0
- package/contracts/Proxy_json.d.ts +370 -0
- package/contracts/Proxy_json.js +378 -0
- package/contracts/Proxy_json.ts +501 -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,3293 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LidoARM_json = exports.LidoARM_jsonAbi = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
/**
|
|
6
|
+
* LidoARM_json ABI
|
|
7
|
+
*
|
|
8
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
9
|
+
*/
|
|
10
|
+
exports.LidoARM_jsonAbi = [
|
|
11
|
+
{
|
|
12
|
+
"inputs": [
|
|
13
|
+
{
|
|
14
|
+
"internalType": "address",
|
|
15
|
+
"name": "_steth",
|
|
16
|
+
"type": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "address",
|
|
20
|
+
"name": "_weth",
|
|
21
|
+
"type": "address"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "address",
|
|
25
|
+
"name": "_lidoWithdrawalQueue",
|
|
26
|
+
"type": "address"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"internalType": "uint256",
|
|
30
|
+
"name": "_claimDelay",
|
|
31
|
+
"type": "uint256"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"internalType": "uint256",
|
|
35
|
+
"name": "_minSharesToRedeem",
|
|
36
|
+
"type": "uint256"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"internalType": "int256",
|
|
40
|
+
"name": "_allocateThreshold",
|
|
41
|
+
"type": "int256"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"stateMutability": "nonpayable",
|
|
45
|
+
"type": "constructor"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"inputs": [],
|
|
49
|
+
"name": "ContractPaused",
|
|
50
|
+
"type": "error"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"inputs": [
|
|
54
|
+
{
|
|
55
|
+
"internalType": "address",
|
|
56
|
+
"name": "spender",
|
|
57
|
+
"type": "address"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"internalType": "uint256",
|
|
61
|
+
"name": "allowance",
|
|
62
|
+
"type": "uint256"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"internalType": "uint256",
|
|
66
|
+
"name": "needed",
|
|
67
|
+
"type": "uint256"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"name": "ERC20InsufficientAllowance",
|
|
71
|
+
"type": "error"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"inputs": [
|
|
75
|
+
{
|
|
76
|
+
"internalType": "address",
|
|
77
|
+
"name": "sender",
|
|
78
|
+
"type": "address"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"internalType": "uint256",
|
|
82
|
+
"name": "balance",
|
|
83
|
+
"type": "uint256"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"internalType": "uint256",
|
|
87
|
+
"name": "needed",
|
|
88
|
+
"type": "uint256"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"name": "ERC20InsufficientBalance",
|
|
92
|
+
"type": "error"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"inputs": [
|
|
96
|
+
{
|
|
97
|
+
"internalType": "address",
|
|
98
|
+
"name": "approver",
|
|
99
|
+
"type": "address"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"name": "ERC20InvalidApprover",
|
|
103
|
+
"type": "error"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"inputs": [
|
|
107
|
+
{
|
|
108
|
+
"internalType": "address",
|
|
109
|
+
"name": "receiver",
|
|
110
|
+
"type": "address"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"name": "ERC20InvalidReceiver",
|
|
114
|
+
"type": "error"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"inputs": [
|
|
118
|
+
{
|
|
119
|
+
"internalType": "address",
|
|
120
|
+
"name": "sender",
|
|
121
|
+
"type": "address"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"name": "ERC20InvalidSender",
|
|
125
|
+
"type": "error"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"inputs": [
|
|
129
|
+
{
|
|
130
|
+
"internalType": "address",
|
|
131
|
+
"name": "spender",
|
|
132
|
+
"type": "address"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"name": "ERC20InvalidSpender",
|
|
136
|
+
"type": "error"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"inputs": [],
|
|
140
|
+
"name": "InvalidInitialization",
|
|
141
|
+
"type": "error"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"inputs": [],
|
|
145
|
+
"name": "NotInitializing",
|
|
146
|
+
"type": "error"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"inputs": [
|
|
150
|
+
{
|
|
151
|
+
"internalType": "uint8",
|
|
152
|
+
"name": "bits",
|
|
153
|
+
"type": "uint8"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"internalType": "int256",
|
|
157
|
+
"name": "value",
|
|
158
|
+
"type": "int256"
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"name": "SafeCastOverflowedIntDowncast",
|
|
162
|
+
"type": "error"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"inputs": [
|
|
166
|
+
{
|
|
167
|
+
"internalType": "int256",
|
|
168
|
+
"name": "value",
|
|
169
|
+
"type": "int256"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"name": "SafeCastOverflowedIntToUint",
|
|
173
|
+
"type": "error"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"inputs": [
|
|
177
|
+
{
|
|
178
|
+
"internalType": "uint8",
|
|
179
|
+
"name": "bits",
|
|
180
|
+
"type": "uint8"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"internalType": "uint256",
|
|
184
|
+
"name": "value",
|
|
185
|
+
"type": "uint256"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"name": "SafeCastOverflowedUintDowncast",
|
|
189
|
+
"type": "error"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"inputs": [
|
|
193
|
+
{
|
|
194
|
+
"internalType": "uint256",
|
|
195
|
+
"name": "value",
|
|
196
|
+
"type": "uint256"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"name": "SafeCastOverflowedUintToInt",
|
|
200
|
+
"type": "error"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"anonymous": false,
|
|
204
|
+
"inputs": [
|
|
205
|
+
{
|
|
206
|
+
"indexed": false,
|
|
207
|
+
"internalType": "uint256",
|
|
208
|
+
"name": "armBuffer",
|
|
209
|
+
"type": "uint256"
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"name": "ARMBufferUpdated",
|
|
213
|
+
"type": "event"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"anonymous": false,
|
|
217
|
+
"inputs": [
|
|
218
|
+
{
|
|
219
|
+
"indexed": true,
|
|
220
|
+
"internalType": "address",
|
|
221
|
+
"name": "market",
|
|
222
|
+
"type": "address"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
"name": "ActiveMarketUpdated",
|
|
226
|
+
"type": "event"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"anonymous": false,
|
|
230
|
+
"inputs": [
|
|
231
|
+
{
|
|
232
|
+
"indexed": false,
|
|
233
|
+
"internalType": "address",
|
|
234
|
+
"name": "previousAdmin",
|
|
235
|
+
"type": "address"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"indexed": false,
|
|
239
|
+
"internalType": "address",
|
|
240
|
+
"name": "newAdmin",
|
|
241
|
+
"type": "address"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"name": "AdminChanged",
|
|
245
|
+
"type": "event"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"anonymous": false,
|
|
249
|
+
"inputs": [
|
|
250
|
+
{
|
|
251
|
+
"indexed": true,
|
|
252
|
+
"internalType": "address",
|
|
253
|
+
"name": "market",
|
|
254
|
+
"type": "address"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"indexed": false,
|
|
258
|
+
"internalType": "int256",
|
|
259
|
+
"name": "targetLiquidityDelta",
|
|
260
|
+
"type": "int256"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"indexed": false,
|
|
264
|
+
"internalType": "int256",
|
|
265
|
+
"name": "actualLiquidityDelta",
|
|
266
|
+
"type": "int256"
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
"name": "Allocated",
|
|
270
|
+
"type": "event"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"anonymous": false,
|
|
274
|
+
"inputs": [
|
|
275
|
+
{
|
|
276
|
+
"indexed": true,
|
|
277
|
+
"internalType": "address",
|
|
278
|
+
"name": "owner",
|
|
279
|
+
"type": "address"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"indexed": true,
|
|
283
|
+
"internalType": "address",
|
|
284
|
+
"name": "spender",
|
|
285
|
+
"type": "address"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"indexed": false,
|
|
289
|
+
"internalType": "uint256",
|
|
290
|
+
"name": "value",
|
|
291
|
+
"type": "uint256"
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
"name": "Approval",
|
|
295
|
+
"type": "event"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"anonymous": false,
|
|
299
|
+
"inputs": [
|
|
300
|
+
{
|
|
301
|
+
"indexed": true,
|
|
302
|
+
"internalType": "address",
|
|
303
|
+
"name": "capManager",
|
|
304
|
+
"type": "address"
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"name": "CapManagerUpdated",
|
|
308
|
+
"type": "event"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"anonymous": false,
|
|
312
|
+
"inputs": [
|
|
313
|
+
{
|
|
314
|
+
"indexed": false,
|
|
315
|
+
"internalType": "uint256[]",
|
|
316
|
+
"name": "requestIds",
|
|
317
|
+
"type": "uint256[]"
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
"name": "ClaimLidoWithdrawals",
|
|
321
|
+
"type": "event"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"anonymous": false,
|
|
325
|
+
"inputs": [
|
|
326
|
+
{
|
|
327
|
+
"indexed": false,
|
|
328
|
+
"internalType": "uint256",
|
|
329
|
+
"name": "crossPrice",
|
|
330
|
+
"type": "uint256"
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
"name": "CrossPriceUpdated",
|
|
334
|
+
"type": "event"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"anonymous": false,
|
|
338
|
+
"inputs": [
|
|
339
|
+
{
|
|
340
|
+
"indexed": true,
|
|
341
|
+
"internalType": "address",
|
|
342
|
+
"name": "owner",
|
|
343
|
+
"type": "address"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"indexed": false,
|
|
347
|
+
"internalType": "uint256",
|
|
348
|
+
"name": "assets",
|
|
349
|
+
"type": "uint256"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"indexed": false,
|
|
353
|
+
"internalType": "uint256",
|
|
354
|
+
"name": "shares",
|
|
355
|
+
"type": "uint256"
|
|
356
|
+
}
|
|
357
|
+
],
|
|
358
|
+
"name": "Deposit",
|
|
359
|
+
"type": "event"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"anonymous": false,
|
|
363
|
+
"inputs": [
|
|
364
|
+
{
|
|
365
|
+
"indexed": true,
|
|
366
|
+
"internalType": "address",
|
|
367
|
+
"name": "feeCollector",
|
|
368
|
+
"type": "address"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"indexed": false,
|
|
372
|
+
"internalType": "uint256",
|
|
373
|
+
"name": "fee",
|
|
374
|
+
"type": "uint256"
|
|
375
|
+
}
|
|
376
|
+
],
|
|
377
|
+
"name": "FeeCollected",
|
|
378
|
+
"type": "event"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"anonymous": false,
|
|
382
|
+
"inputs": [
|
|
383
|
+
{
|
|
384
|
+
"indexed": true,
|
|
385
|
+
"internalType": "address",
|
|
386
|
+
"name": "newFeeCollector",
|
|
387
|
+
"type": "address"
|
|
388
|
+
}
|
|
389
|
+
],
|
|
390
|
+
"name": "FeeCollectorUpdated",
|
|
391
|
+
"type": "event"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"anonymous": false,
|
|
395
|
+
"inputs": [
|
|
396
|
+
{
|
|
397
|
+
"indexed": false,
|
|
398
|
+
"internalType": "uint256",
|
|
399
|
+
"name": "fee",
|
|
400
|
+
"type": "uint256"
|
|
401
|
+
}
|
|
402
|
+
],
|
|
403
|
+
"name": "FeeUpdated",
|
|
404
|
+
"type": "event"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"anonymous": false,
|
|
408
|
+
"inputs": [
|
|
409
|
+
{
|
|
410
|
+
"indexed": false,
|
|
411
|
+
"internalType": "uint64",
|
|
412
|
+
"name": "version",
|
|
413
|
+
"type": "uint64"
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"name": "Initialized",
|
|
417
|
+
"type": "event"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"anonymous": false,
|
|
421
|
+
"inputs": [
|
|
422
|
+
{
|
|
423
|
+
"indexed": true,
|
|
424
|
+
"internalType": "address",
|
|
425
|
+
"name": "market",
|
|
426
|
+
"type": "address"
|
|
427
|
+
}
|
|
428
|
+
],
|
|
429
|
+
"name": "MarketAdded",
|
|
430
|
+
"type": "event"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"anonymous": false,
|
|
434
|
+
"inputs": [
|
|
435
|
+
{
|
|
436
|
+
"indexed": true,
|
|
437
|
+
"internalType": "address",
|
|
438
|
+
"name": "market",
|
|
439
|
+
"type": "address"
|
|
440
|
+
}
|
|
441
|
+
],
|
|
442
|
+
"name": "MarketRemoved",
|
|
443
|
+
"type": "event"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"anonymous": false,
|
|
447
|
+
"inputs": [
|
|
448
|
+
{
|
|
449
|
+
"indexed": false,
|
|
450
|
+
"internalType": "address",
|
|
451
|
+
"name": "newAdmin",
|
|
452
|
+
"type": "address"
|
|
453
|
+
}
|
|
454
|
+
],
|
|
455
|
+
"name": "OperatorChanged",
|
|
456
|
+
"type": "event"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"anonymous": false,
|
|
460
|
+
"inputs": [
|
|
461
|
+
{
|
|
462
|
+
"indexed": true,
|
|
463
|
+
"internalType": "address",
|
|
464
|
+
"name": "account",
|
|
465
|
+
"type": "address"
|
|
466
|
+
}
|
|
467
|
+
],
|
|
468
|
+
"name": "Paused",
|
|
469
|
+
"type": "event"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"anonymous": false,
|
|
473
|
+
"inputs": [
|
|
474
|
+
{
|
|
475
|
+
"indexed": true,
|
|
476
|
+
"internalType": "address",
|
|
477
|
+
"name": "withdrawer",
|
|
478
|
+
"type": "address"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"indexed": true,
|
|
482
|
+
"internalType": "uint256",
|
|
483
|
+
"name": "requestId",
|
|
484
|
+
"type": "uint256"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"indexed": false,
|
|
488
|
+
"internalType": "uint256",
|
|
489
|
+
"name": "assets",
|
|
490
|
+
"type": "uint256"
|
|
491
|
+
}
|
|
492
|
+
],
|
|
493
|
+
"name": "RedeemClaimed",
|
|
494
|
+
"type": "event"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"anonymous": false,
|
|
498
|
+
"inputs": [
|
|
499
|
+
{
|
|
500
|
+
"indexed": true,
|
|
501
|
+
"internalType": "address",
|
|
502
|
+
"name": "withdrawer",
|
|
503
|
+
"type": "address"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"indexed": true,
|
|
507
|
+
"internalType": "uint256",
|
|
508
|
+
"name": "requestId",
|
|
509
|
+
"type": "uint256"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"indexed": false,
|
|
513
|
+
"internalType": "uint256",
|
|
514
|
+
"name": "assets",
|
|
515
|
+
"type": "uint256"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"indexed": false,
|
|
519
|
+
"internalType": "uint256",
|
|
520
|
+
"name": "queued",
|
|
521
|
+
"type": "uint256"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"indexed": false,
|
|
525
|
+
"internalType": "uint256",
|
|
526
|
+
"name": "claimTimestamp",
|
|
527
|
+
"type": "uint256"
|
|
528
|
+
}
|
|
529
|
+
],
|
|
530
|
+
"name": "RedeemRequested",
|
|
531
|
+
"type": "event"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"anonymous": false,
|
|
535
|
+
"inputs": [
|
|
536
|
+
{
|
|
537
|
+
"indexed": false,
|
|
538
|
+
"internalType": "uint256[]",
|
|
539
|
+
"name": "requestIds",
|
|
540
|
+
"type": "uint256[]"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"indexed": false,
|
|
544
|
+
"internalType": "uint256",
|
|
545
|
+
"name": "totalAmountRequested",
|
|
546
|
+
"type": "uint256"
|
|
547
|
+
}
|
|
548
|
+
],
|
|
549
|
+
"name": "RegisterLidoWithdrawalRequests",
|
|
550
|
+
"type": "event"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"anonymous": false,
|
|
554
|
+
"inputs": [
|
|
555
|
+
{
|
|
556
|
+
"indexed": false,
|
|
557
|
+
"internalType": "uint256[]",
|
|
558
|
+
"name": "amounts",
|
|
559
|
+
"type": "uint256[]"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"indexed": false,
|
|
563
|
+
"internalType": "uint256[]",
|
|
564
|
+
"name": "requestIds",
|
|
565
|
+
"type": "uint256[]"
|
|
566
|
+
}
|
|
567
|
+
],
|
|
568
|
+
"name": "RequestLidoWithdrawals",
|
|
569
|
+
"type": "event"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"anonymous": false,
|
|
573
|
+
"inputs": [
|
|
574
|
+
{
|
|
575
|
+
"indexed": false,
|
|
576
|
+
"internalType": "uint256",
|
|
577
|
+
"name": "traderate0",
|
|
578
|
+
"type": "uint256"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"indexed": false,
|
|
582
|
+
"internalType": "uint256",
|
|
583
|
+
"name": "traderate1",
|
|
584
|
+
"type": "uint256"
|
|
585
|
+
}
|
|
586
|
+
],
|
|
587
|
+
"name": "TraderateChanged",
|
|
588
|
+
"type": "event"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"anonymous": false,
|
|
592
|
+
"inputs": [
|
|
593
|
+
{
|
|
594
|
+
"indexed": true,
|
|
595
|
+
"internalType": "address",
|
|
596
|
+
"name": "from",
|
|
597
|
+
"type": "address"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"indexed": true,
|
|
601
|
+
"internalType": "address",
|
|
602
|
+
"name": "to",
|
|
603
|
+
"type": "address"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"indexed": false,
|
|
607
|
+
"internalType": "uint256",
|
|
608
|
+
"name": "value",
|
|
609
|
+
"type": "uint256"
|
|
610
|
+
}
|
|
611
|
+
],
|
|
612
|
+
"name": "Transfer",
|
|
613
|
+
"type": "event"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"anonymous": false,
|
|
617
|
+
"inputs": [
|
|
618
|
+
{
|
|
619
|
+
"indexed": true,
|
|
620
|
+
"internalType": "address",
|
|
621
|
+
"name": "account",
|
|
622
|
+
"type": "address"
|
|
623
|
+
}
|
|
624
|
+
],
|
|
625
|
+
"name": "Unpaused",
|
|
626
|
+
"type": "event"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"inputs": [],
|
|
630
|
+
"name": "FEE_SCALE",
|
|
631
|
+
"outputs": [
|
|
632
|
+
{
|
|
633
|
+
"internalType": "uint256",
|
|
634
|
+
"name": "",
|
|
635
|
+
"type": "uint256"
|
|
636
|
+
}
|
|
637
|
+
],
|
|
638
|
+
"stateMutability": "view",
|
|
639
|
+
"type": "function"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"inputs": [],
|
|
643
|
+
"name": "MAX_CROSS_PRICE_DEVIATION",
|
|
644
|
+
"outputs": [
|
|
645
|
+
{
|
|
646
|
+
"internalType": "uint256",
|
|
647
|
+
"name": "",
|
|
648
|
+
"type": "uint256"
|
|
649
|
+
}
|
|
650
|
+
],
|
|
651
|
+
"stateMutability": "view",
|
|
652
|
+
"type": "function"
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"inputs": [],
|
|
656
|
+
"name": "PRICE_SCALE",
|
|
657
|
+
"outputs": [
|
|
658
|
+
{
|
|
659
|
+
"internalType": "uint256",
|
|
660
|
+
"name": "",
|
|
661
|
+
"type": "uint256"
|
|
662
|
+
}
|
|
663
|
+
],
|
|
664
|
+
"stateMutability": "view",
|
|
665
|
+
"type": "function"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"inputs": [],
|
|
669
|
+
"name": "activeMarket",
|
|
670
|
+
"outputs": [
|
|
671
|
+
{
|
|
672
|
+
"internalType": "address",
|
|
673
|
+
"name": "",
|
|
674
|
+
"type": "address"
|
|
675
|
+
}
|
|
676
|
+
],
|
|
677
|
+
"stateMutability": "view",
|
|
678
|
+
"type": "function"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"inputs": [
|
|
682
|
+
{
|
|
683
|
+
"internalType": "address[]",
|
|
684
|
+
"name": "_markets",
|
|
685
|
+
"type": "address[]"
|
|
686
|
+
}
|
|
687
|
+
],
|
|
688
|
+
"name": "addMarkets",
|
|
689
|
+
"outputs": [],
|
|
690
|
+
"stateMutability": "nonpayable",
|
|
691
|
+
"type": "function"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"inputs": [],
|
|
695
|
+
"name": "allocate",
|
|
696
|
+
"outputs": [
|
|
697
|
+
{
|
|
698
|
+
"internalType": "int256",
|
|
699
|
+
"name": "targetLiquidityDelta",
|
|
700
|
+
"type": "int256"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"internalType": "int256",
|
|
704
|
+
"name": "actualLiquidityDelta",
|
|
705
|
+
"type": "int256"
|
|
706
|
+
}
|
|
707
|
+
],
|
|
708
|
+
"stateMutability": "nonpayable",
|
|
709
|
+
"type": "function"
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"inputs": [],
|
|
713
|
+
"name": "allocateThreshold",
|
|
714
|
+
"outputs": [
|
|
715
|
+
{
|
|
716
|
+
"internalType": "int256",
|
|
717
|
+
"name": "",
|
|
718
|
+
"type": "int256"
|
|
719
|
+
}
|
|
720
|
+
],
|
|
721
|
+
"stateMutability": "view",
|
|
722
|
+
"type": "function"
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"inputs": [
|
|
726
|
+
{
|
|
727
|
+
"internalType": "address",
|
|
728
|
+
"name": "owner",
|
|
729
|
+
"type": "address"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"internalType": "address",
|
|
733
|
+
"name": "spender",
|
|
734
|
+
"type": "address"
|
|
735
|
+
}
|
|
736
|
+
],
|
|
737
|
+
"name": "allowance",
|
|
738
|
+
"outputs": [
|
|
739
|
+
{
|
|
740
|
+
"internalType": "uint256",
|
|
741
|
+
"name": "",
|
|
742
|
+
"type": "uint256"
|
|
743
|
+
}
|
|
744
|
+
],
|
|
745
|
+
"stateMutability": "view",
|
|
746
|
+
"type": "function"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"inputs": [
|
|
750
|
+
{
|
|
751
|
+
"internalType": "address",
|
|
752
|
+
"name": "spender",
|
|
753
|
+
"type": "address"
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
"internalType": "uint256",
|
|
757
|
+
"name": "value",
|
|
758
|
+
"type": "uint256"
|
|
759
|
+
}
|
|
760
|
+
],
|
|
761
|
+
"name": "approve",
|
|
762
|
+
"outputs": [
|
|
763
|
+
{
|
|
764
|
+
"internalType": "bool",
|
|
765
|
+
"name": "",
|
|
766
|
+
"type": "bool"
|
|
767
|
+
}
|
|
768
|
+
],
|
|
769
|
+
"stateMutability": "nonpayable",
|
|
770
|
+
"type": "function"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"inputs": [],
|
|
774
|
+
"name": "armBuffer",
|
|
775
|
+
"outputs": [
|
|
776
|
+
{
|
|
777
|
+
"internalType": "uint256",
|
|
778
|
+
"name": "",
|
|
779
|
+
"type": "uint256"
|
|
780
|
+
}
|
|
781
|
+
],
|
|
782
|
+
"stateMutability": "view",
|
|
783
|
+
"type": "function"
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
"inputs": [],
|
|
787
|
+
"name": "asset",
|
|
788
|
+
"outputs": [
|
|
789
|
+
{
|
|
790
|
+
"internalType": "address",
|
|
791
|
+
"name": "",
|
|
792
|
+
"type": "address"
|
|
793
|
+
}
|
|
794
|
+
],
|
|
795
|
+
"stateMutability": "view",
|
|
796
|
+
"type": "function"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"inputs": [
|
|
800
|
+
{
|
|
801
|
+
"internalType": "address",
|
|
802
|
+
"name": "account",
|
|
803
|
+
"type": "address"
|
|
804
|
+
}
|
|
805
|
+
],
|
|
806
|
+
"name": "balanceOf",
|
|
807
|
+
"outputs": [
|
|
808
|
+
{
|
|
809
|
+
"internalType": "uint256",
|
|
810
|
+
"name": "",
|
|
811
|
+
"type": "uint256"
|
|
812
|
+
}
|
|
813
|
+
],
|
|
814
|
+
"stateMutability": "view",
|
|
815
|
+
"type": "function"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"inputs": [],
|
|
819
|
+
"name": "baseAsset",
|
|
820
|
+
"outputs": [
|
|
821
|
+
{
|
|
822
|
+
"internalType": "address",
|
|
823
|
+
"name": "",
|
|
824
|
+
"type": "address"
|
|
825
|
+
}
|
|
826
|
+
],
|
|
827
|
+
"stateMutability": "view",
|
|
828
|
+
"type": "function"
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"inputs": [],
|
|
832
|
+
"name": "capManager",
|
|
833
|
+
"outputs": [
|
|
834
|
+
{
|
|
835
|
+
"internalType": "address",
|
|
836
|
+
"name": "",
|
|
837
|
+
"type": "address"
|
|
838
|
+
}
|
|
839
|
+
],
|
|
840
|
+
"stateMutability": "view",
|
|
841
|
+
"type": "function"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"inputs": [],
|
|
845
|
+
"name": "claimDelay",
|
|
846
|
+
"outputs": [
|
|
847
|
+
{
|
|
848
|
+
"internalType": "uint256",
|
|
849
|
+
"name": "",
|
|
850
|
+
"type": "uint256"
|
|
851
|
+
}
|
|
852
|
+
],
|
|
853
|
+
"stateMutability": "view",
|
|
854
|
+
"type": "function"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"inputs": [
|
|
858
|
+
{
|
|
859
|
+
"internalType": "uint256[]",
|
|
860
|
+
"name": "requestIds",
|
|
861
|
+
"type": "uint256[]"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"internalType": "uint256[]",
|
|
865
|
+
"name": "hintIds",
|
|
866
|
+
"type": "uint256[]"
|
|
867
|
+
}
|
|
868
|
+
],
|
|
869
|
+
"name": "claimLidoWithdrawals",
|
|
870
|
+
"outputs": [],
|
|
871
|
+
"stateMutability": "nonpayable",
|
|
872
|
+
"type": "function"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"inputs": [
|
|
876
|
+
{
|
|
877
|
+
"internalType": "uint256",
|
|
878
|
+
"name": "requestId",
|
|
879
|
+
"type": "uint256"
|
|
880
|
+
}
|
|
881
|
+
],
|
|
882
|
+
"name": "claimRedeem",
|
|
883
|
+
"outputs": [
|
|
884
|
+
{
|
|
885
|
+
"internalType": "uint256",
|
|
886
|
+
"name": "assets",
|
|
887
|
+
"type": "uint256"
|
|
888
|
+
}
|
|
889
|
+
],
|
|
890
|
+
"stateMutability": "nonpayable",
|
|
891
|
+
"type": "function"
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
"inputs": [],
|
|
895
|
+
"name": "claimable",
|
|
896
|
+
"outputs": [
|
|
897
|
+
{
|
|
898
|
+
"internalType": "uint256",
|
|
899
|
+
"name": "claimableAmount",
|
|
900
|
+
"type": "uint256"
|
|
901
|
+
}
|
|
902
|
+
],
|
|
903
|
+
"stateMutability": "view",
|
|
904
|
+
"type": "function"
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
"inputs": [],
|
|
908
|
+
"name": "collectFees",
|
|
909
|
+
"outputs": [
|
|
910
|
+
{
|
|
911
|
+
"internalType": "uint256",
|
|
912
|
+
"name": "fees",
|
|
913
|
+
"type": "uint256"
|
|
914
|
+
}
|
|
915
|
+
],
|
|
916
|
+
"stateMutability": "nonpayable",
|
|
917
|
+
"type": "function"
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
"inputs": [
|
|
921
|
+
{
|
|
922
|
+
"internalType": "uint256",
|
|
923
|
+
"name": "shares",
|
|
924
|
+
"type": "uint256"
|
|
925
|
+
}
|
|
926
|
+
],
|
|
927
|
+
"name": "convertToAssets",
|
|
928
|
+
"outputs": [
|
|
929
|
+
{
|
|
930
|
+
"internalType": "uint256",
|
|
931
|
+
"name": "assets",
|
|
932
|
+
"type": "uint256"
|
|
933
|
+
}
|
|
934
|
+
],
|
|
935
|
+
"stateMutability": "view",
|
|
936
|
+
"type": "function"
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
"inputs": [
|
|
940
|
+
{
|
|
941
|
+
"internalType": "uint256",
|
|
942
|
+
"name": "assets",
|
|
943
|
+
"type": "uint256"
|
|
944
|
+
}
|
|
945
|
+
],
|
|
946
|
+
"name": "convertToShares",
|
|
947
|
+
"outputs": [
|
|
948
|
+
{
|
|
949
|
+
"internalType": "uint256",
|
|
950
|
+
"name": "shares",
|
|
951
|
+
"type": "uint256"
|
|
952
|
+
}
|
|
953
|
+
],
|
|
954
|
+
"stateMutability": "view",
|
|
955
|
+
"type": "function"
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"inputs": [],
|
|
959
|
+
"name": "crossPrice",
|
|
960
|
+
"outputs": [
|
|
961
|
+
{
|
|
962
|
+
"internalType": "uint256",
|
|
963
|
+
"name": "",
|
|
964
|
+
"type": "uint256"
|
|
965
|
+
}
|
|
966
|
+
],
|
|
967
|
+
"stateMutability": "view",
|
|
968
|
+
"type": "function"
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"inputs": [],
|
|
972
|
+
"name": "decimals",
|
|
973
|
+
"outputs": [
|
|
974
|
+
{
|
|
975
|
+
"internalType": "uint8",
|
|
976
|
+
"name": "",
|
|
977
|
+
"type": "uint8"
|
|
978
|
+
}
|
|
979
|
+
],
|
|
980
|
+
"stateMutability": "view",
|
|
981
|
+
"type": "function"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"inputs": [
|
|
985
|
+
{
|
|
986
|
+
"internalType": "uint256",
|
|
987
|
+
"name": "assets",
|
|
988
|
+
"type": "uint256"
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"internalType": "address",
|
|
992
|
+
"name": "receiver",
|
|
993
|
+
"type": "address"
|
|
994
|
+
}
|
|
995
|
+
],
|
|
996
|
+
"name": "deposit",
|
|
997
|
+
"outputs": [
|
|
998
|
+
{
|
|
999
|
+
"internalType": "uint256",
|
|
1000
|
+
"name": "shares",
|
|
1001
|
+
"type": "uint256"
|
|
1002
|
+
}
|
|
1003
|
+
],
|
|
1004
|
+
"stateMutability": "nonpayable",
|
|
1005
|
+
"type": "function"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"inputs": [
|
|
1009
|
+
{
|
|
1010
|
+
"internalType": "uint256",
|
|
1011
|
+
"name": "assets",
|
|
1012
|
+
"type": "uint256"
|
|
1013
|
+
}
|
|
1014
|
+
],
|
|
1015
|
+
"name": "deposit",
|
|
1016
|
+
"outputs": [
|
|
1017
|
+
{
|
|
1018
|
+
"internalType": "uint256",
|
|
1019
|
+
"name": "shares",
|
|
1020
|
+
"type": "uint256"
|
|
1021
|
+
}
|
|
1022
|
+
],
|
|
1023
|
+
"stateMutability": "nonpayable",
|
|
1024
|
+
"type": "function"
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
"inputs": [],
|
|
1028
|
+
"name": "fee",
|
|
1029
|
+
"outputs": [
|
|
1030
|
+
{
|
|
1031
|
+
"internalType": "uint16",
|
|
1032
|
+
"name": "",
|
|
1033
|
+
"type": "uint16"
|
|
1034
|
+
}
|
|
1035
|
+
],
|
|
1036
|
+
"stateMutability": "view",
|
|
1037
|
+
"type": "function"
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
"inputs": [],
|
|
1041
|
+
"name": "feeCollector",
|
|
1042
|
+
"outputs": [
|
|
1043
|
+
{
|
|
1044
|
+
"internalType": "address",
|
|
1045
|
+
"name": "",
|
|
1046
|
+
"type": "address"
|
|
1047
|
+
}
|
|
1048
|
+
],
|
|
1049
|
+
"stateMutability": "view",
|
|
1050
|
+
"type": "function"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"inputs": [],
|
|
1054
|
+
"name": "feesAccrued",
|
|
1055
|
+
"outputs": [
|
|
1056
|
+
{
|
|
1057
|
+
"internalType": "uint256",
|
|
1058
|
+
"name": "fees",
|
|
1059
|
+
"type": "uint256"
|
|
1060
|
+
}
|
|
1061
|
+
],
|
|
1062
|
+
"stateMutability": "view",
|
|
1063
|
+
"type": "function"
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"inputs": [],
|
|
1067
|
+
"name": "getReserves",
|
|
1068
|
+
"outputs": [
|
|
1069
|
+
{
|
|
1070
|
+
"internalType": "uint256",
|
|
1071
|
+
"name": "reserve0",
|
|
1072
|
+
"type": "uint256"
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"internalType": "uint256",
|
|
1076
|
+
"name": "reserve1",
|
|
1077
|
+
"type": "uint256"
|
|
1078
|
+
}
|
|
1079
|
+
],
|
|
1080
|
+
"stateMutability": "view",
|
|
1081
|
+
"type": "function"
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"inputs": [
|
|
1085
|
+
{
|
|
1086
|
+
"internalType": "string",
|
|
1087
|
+
"name": "_name",
|
|
1088
|
+
"type": "string"
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"internalType": "string",
|
|
1092
|
+
"name": "_symbol",
|
|
1093
|
+
"type": "string"
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
"internalType": "address",
|
|
1097
|
+
"name": "_operator",
|
|
1098
|
+
"type": "address"
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
"internalType": "uint256",
|
|
1102
|
+
"name": "_fee",
|
|
1103
|
+
"type": "uint256"
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"internalType": "address",
|
|
1107
|
+
"name": "_feeCollector",
|
|
1108
|
+
"type": "address"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"internalType": "address",
|
|
1112
|
+
"name": "_capManager",
|
|
1113
|
+
"type": "address"
|
|
1114
|
+
}
|
|
1115
|
+
],
|
|
1116
|
+
"name": "initialize",
|
|
1117
|
+
"outputs": [],
|
|
1118
|
+
"stateMutability": "nonpayable",
|
|
1119
|
+
"type": "function"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"inputs": [],
|
|
1123
|
+
"name": "lastAvailableAssets",
|
|
1124
|
+
"outputs": [
|
|
1125
|
+
{
|
|
1126
|
+
"internalType": "int128",
|
|
1127
|
+
"name": "",
|
|
1128
|
+
"type": "int128"
|
|
1129
|
+
}
|
|
1130
|
+
],
|
|
1131
|
+
"stateMutability": "view",
|
|
1132
|
+
"type": "function"
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"inputs": [],
|
|
1136
|
+
"name": "lidoWithdrawalQueue",
|
|
1137
|
+
"outputs": [
|
|
1138
|
+
{
|
|
1139
|
+
"internalType": "contract IStETHWithdrawal",
|
|
1140
|
+
"name": "",
|
|
1141
|
+
"type": "address"
|
|
1142
|
+
}
|
|
1143
|
+
],
|
|
1144
|
+
"stateMutability": "view",
|
|
1145
|
+
"type": "function"
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"inputs": [],
|
|
1149
|
+
"name": "lidoWithdrawalQueueAmount",
|
|
1150
|
+
"outputs": [
|
|
1151
|
+
{
|
|
1152
|
+
"internalType": "uint256",
|
|
1153
|
+
"name": "",
|
|
1154
|
+
"type": "uint256"
|
|
1155
|
+
}
|
|
1156
|
+
],
|
|
1157
|
+
"stateMutability": "view",
|
|
1158
|
+
"type": "function"
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
"inputs": [
|
|
1162
|
+
{
|
|
1163
|
+
"internalType": "uint256",
|
|
1164
|
+
"name": "id",
|
|
1165
|
+
"type": "uint256"
|
|
1166
|
+
}
|
|
1167
|
+
],
|
|
1168
|
+
"name": "lidoWithdrawalRequests",
|
|
1169
|
+
"outputs": [
|
|
1170
|
+
{
|
|
1171
|
+
"internalType": "uint256",
|
|
1172
|
+
"name": "amount",
|
|
1173
|
+
"type": "uint256"
|
|
1174
|
+
}
|
|
1175
|
+
],
|
|
1176
|
+
"stateMutability": "view",
|
|
1177
|
+
"type": "function"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"inputs": [],
|
|
1181
|
+
"name": "liquidityAsset",
|
|
1182
|
+
"outputs": [
|
|
1183
|
+
{
|
|
1184
|
+
"internalType": "address",
|
|
1185
|
+
"name": "",
|
|
1186
|
+
"type": "address"
|
|
1187
|
+
}
|
|
1188
|
+
],
|
|
1189
|
+
"stateMutability": "view",
|
|
1190
|
+
"type": "function"
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"inputs": [],
|
|
1194
|
+
"name": "minSharesToRedeem",
|
|
1195
|
+
"outputs": [
|
|
1196
|
+
{
|
|
1197
|
+
"internalType": "uint256",
|
|
1198
|
+
"name": "",
|
|
1199
|
+
"type": "uint256"
|
|
1200
|
+
}
|
|
1201
|
+
],
|
|
1202
|
+
"stateMutability": "view",
|
|
1203
|
+
"type": "function"
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
"inputs": [],
|
|
1207
|
+
"name": "name",
|
|
1208
|
+
"outputs": [
|
|
1209
|
+
{
|
|
1210
|
+
"internalType": "string",
|
|
1211
|
+
"name": "",
|
|
1212
|
+
"type": "string"
|
|
1213
|
+
}
|
|
1214
|
+
],
|
|
1215
|
+
"stateMutability": "view",
|
|
1216
|
+
"type": "function"
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"inputs": [],
|
|
1220
|
+
"name": "nextWithdrawalIndex",
|
|
1221
|
+
"outputs": [
|
|
1222
|
+
{
|
|
1223
|
+
"internalType": "uint256",
|
|
1224
|
+
"name": "",
|
|
1225
|
+
"type": "uint256"
|
|
1226
|
+
}
|
|
1227
|
+
],
|
|
1228
|
+
"stateMutability": "view",
|
|
1229
|
+
"type": "function"
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
"inputs": [],
|
|
1233
|
+
"name": "operator",
|
|
1234
|
+
"outputs": [
|
|
1235
|
+
{
|
|
1236
|
+
"internalType": "address",
|
|
1237
|
+
"name": "",
|
|
1238
|
+
"type": "address"
|
|
1239
|
+
}
|
|
1240
|
+
],
|
|
1241
|
+
"stateMutability": "view",
|
|
1242
|
+
"type": "function"
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
"inputs": [],
|
|
1246
|
+
"name": "owner",
|
|
1247
|
+
"outputs": [
|
|
1248
|
+
{
|
|
1249
|
+
"internalType": "address",
|
|
1250
|
+
"name": "",
|
|
1251
|
+
"type": "address"
|
|
1252
|
+
}
|
|
1253
|
+
],
|
|
1254
|
+
"stateMutability": "view",
|
|
1255
|
+
"type": "function"
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
"inputs": [],
|
|
1259
|
+
"name": "pause",
|
|
1260
|
+
"outputs": [],
|
|
1261
|
+
"stateMutability": "nonpayable",
|
|
1262
|
+
"type": "function"
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"inputs": [],
|
|
1266
|
+
"name": "paused",
|
|
1267
|
+
"outputs": [
|
|
1268
|
+
{
|
|
1269
|
+
"internalType": "bool",
|
|
1270
|
+
"name": "",
|
|
1271
|
+
"type": "bool"
|
|
1272
|
+
}
|
|
1273
|
+
],
|
|
1274
|
+
"stateMutability": "view",
|
|
1275
|
+
"type": "function"
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
"inputs": [
|
|
1279
|
+
{
|
|
1280
|
+
"internalType": "uint256",
|
|
1281
|
+
"name": "assets",
|
|
1282
|
+
"type": "uint256"
|
|
1283
|
+
}
|
|
1284
|
+
],
|
|
1285
|
+
"name": "previewDeposit",
|
|
1286
|
+
"outputs": [
|
|
1287
|
+
{
|
|
1288
|
+
"internalType": "uint256",
|
|
1289
|
+
"name": "shares",
|
|
1290
|
+
"type": "uint256"
|
|
1291
|
+
}
|
|
1292
|
+
],
|
|
1293
|
+
"stateMutability": "view",
|
|
1294
|
+
"type": "function"
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
"inputs": [
|
|
1298
|
+
{
|
|
1299
|
+
"internalType": "uint256",
|
|
1300
|
+
"name": "shares",
|
|
1301
|
+
"type": "uint256"
|
|
1302
|
+
}
|
|
1303
|
+
],
|
|
1304
|
+
"name": "previewRedeem",
|
|
1305
|
+
"outputs": [
|
|
1306
|
+
{
|
|
1307
|
+
"internalType": "uint256",
|
|
1308
|
+
"name": "assets",
|
|
1309
|
+
"type": "uint256"
|
|
1310
|
+
}
|
|
1311
|
+
],
|
|
1312
|
+
"stateMutability": "view",
|
|
1313
|
+
"type": "function"
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
"inputs": [],
|
|
1317
|
+
"name": "registerLidoWithdrawalRequests",
|
|
1318
|
+
"outputs": [],
|
|
1319
|
+
"stateMutability": "nonpayable",
|
|
1320
|
+
"type": "function"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"inputs": [
|
|
1324
|
+
{
|
|
1325
|
+
"internalType": "address",
|
|
1326
|
+
"name": "_market",
|
|
1327
|
+
"type": "address"
|
|
1328
|
+
}
|
|
1329
|
+
],
|
|
1330
|
+
"name": "removeMarket",
|
|
1331
|
+
"outputs": [],
|
|
1332
|
+
"stateMutability": "nonpayable",
|
|
1333
|
+
"type": "function"
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"inputs": [
|
|
1337
|
+
{
|
|
1338
|
+
"internalType": "uint256[]",
|
|
1339
|
+
"name": "amounts",
|
|
1340
|
+
"type": "uint256[]"
|
|
1341
|
+
}
|
|
1342
|
+
],
|
|
1343
|
+
"name": "requestLidoWithdrawals",
|
|
1344
|
+
"outputs": [
|
|
1345
|
+
{
|
|
1346
|
+
"internalType": "uint256[]",
|
|
1347
|
+
"name": "requestIds",
|
|
1348
|
+
"type": "uint256[]"
|
|
1349
|
+
}
|
|
1350
|
+
],
|
|
1351
|
+
"stateMutability": "nonpayable",
|
|
1352
|
+
"type": "function"
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"inputs": [
|
|
1356
|
+
{
|
|
1357
|
+
"internalType": "uint256",
|
|
1358
|
+
"name": "shares",
|
|
1359
|
+
"type": "uint256"
|
|
1360
|
+
}
|
|
1361
|
+
],
|
|
1362
|
+
"name": "requestRedeem",
|
|
1363
|
+
"outputs": [
|
|
1364
|
+
{
|
|
1365
|
+
"internalType": "uint256",
|
|
1366
|
+
"name": "requestId",
|
|
1367
|
+
"type": "uint256"
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
"internalType": "uint256",
|
|
1371
|
+
"name": "assets",
|
|
1372
|
+
"type": "uint256"
|
|
1373
|
+
}
|
|
1374
|
+
],
|
|
1375
|
+
"stateMutability": "nonpayable",
|
|
1376
|
+
"type": "function"
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"inputs": [
|
|
1380
|
+
{
|
|
1381
|
+
"internalType": "uint256",
|
|
1382
|
+
"name": "_armBuffer",
|
|
1383
|
+
"type": "uint256"
|
|
1384
|
+
}
|
|
1385
|
+
],
|
|
1386
|
+
"name": "setARMBuffer",
|
|
1387
|
+
"outputs": [],
|
|
1388
|
+
"stateMutability": "nonpayable",
|
|
1389
|
+
"type": "function"
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"inputs": [
|
|
1393
|
+
{
|
|
1394
|
+
"internalType": "address",
|
|
1395
|
+
"name": "_market",
|
|
1396
|
+
"type": "address"
|
|
1397
|
+
}
|
|
1398
|
+
],
|
|
1399
|
+
"name": "setActiveMarket",
|
|
1400
|
+
"outputs": [],
|
|
1401
|
+
"stateMutability": "nonpayable",
|
|
1402
|
+
"type": "function"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"inputs": [
|
|
1406
|
+
{
|
|
1407
|
+
"internalType": "address",
|
|
1408
|
+
"name": "_capManager",
|
|
1409
|
+
"type": "address"
|
|
1410
|
+
}
|
|
1411
|
+
],
|
|
1412
|
+
"name": "setCapManager",
|
|
1413
|
+
"outputs": [],
|
|
1414
|
+
"stateMutability": "nonpayable",
|
|
1415
|
+
"type": "function"
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
"inputs": [
|
|
1419
|
+
{
|
|
1420
|
+
"internalType": "uint256",
|
|
1421
|
+
"name": "newCrossPrice",
|
|
1422
|
+
"type": "uint256"
|
|
1423
|
+
}
|
|
1424
|
+
],
|
|
1425
|
+
"name": "setCrossPrice",
|
|
1426
|
+
"outputs": [],
|
|
1427
|
+
"stateMutability": "nonpayable",
|
|
1428
|
+
"type": "function"
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
"inputs": [
|
|
1432
|
+
{
|
|
1433
|
+
"internalType": "uint256",
|
|
1434
|
+
"name": "_fee",
|
|
1435
|
+
"type": "uint256"
|
|
1436
|
+
}
|
|
1437
|
+
],
|
|
1438
|
+
"name": "setFee",
|
|
1439
|
+
"outputs": [],
|
|
1440
|
+
"stateMutability": "nonpayable",
|
|
1441
|
+
"type": "function"
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"inputs": [
|
|
1445
|
+
{
|
|
1446
|
+
"internalType": "address",
|
|
1447
|
+
"name": "_feeCollector",
|
|
1448
|
+
"type": "address"
|
|
1449
|
+
}
|
|
1450
|
+
],
|
|
1451
|
+
"name": "setFeeCollector",
|
|
1452
|
+
"outputs": [],
|
|
1453
|
+
"stateMutability": "nonpayable",
|
|
1454
|
+
"type": "function"
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
"inputs": [
|
|
1458
|
+
{
|
|
1459
|
+
"internalType": "address",
|
|
1460
|
+
"name": "newOperator",
|
|
1461
|
+
"type": "address"
|
|
1462
|
+
}
|
|
1463
|
+
],
|
|
1464
|
+
"name": "setOperator",
|
|
1465
|
+
"outputs": [],
|
|
1466
|
+
"stateMutability": "nonpayable",
|
|
1467
|
+
"type": "function"
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
"inputs": [
|
|
1471
|
+
{
|
|
1472
|
+
"internalType": "address",
|
|
1473
|
+
"name": "newOwner",
|
|
1474
|
+
"type": "address"
|
|
1475
|
+
}
|
|
1476
|
+
],
|
|
1477
|
+
"name": "setOwner",
|
|
1478
|
+
"outputs": [],
|
|
1479
|
+
"stateMutability": "nonpayable",
|
|
1480
|
+
"type": "function"
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
"inputs": [
|
|
1484
|
+
{
|
|
1485
|
+
"internalType": "uint256",
|
|
1486
|
+
"name": "buyT1",
|
|
1487
|
+
"type": "uint256"
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
"internalType": "uint256",
|
|
1491
|
+
"name": "sellT1",
|
|
1492
|
+
"type": "uint256"
|
|
1493
|
+
}
|
|
1494
|
+
],
|
|
1495
|
+
"name": "setPrices",
|
|
1496
|
+
"outputs": [],
|
|
1497
|
+
"stateMutability": "nonpayable",
|
|
1498
|
+
"type": "function"
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"inputs": [],
|
|
1502
|
+
"name": "steth",
|
|
1503
|
+
"outputs": [
|
|
1504
|
+
{
|
|
1505
|
+
"internalType": "contract IERC20",
|
|
1506
|
+
"name": "",
|
|
1507
|
+
"type": "address"
|
|
1508
|
+
}
|
|
1509
|
+
],
|
|
1510
|
+
"stateMutability": "view",
|
|
1511
|
+
"type": "function"
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
"inputs": [
|
|
1515
|
+
{
|
|
1516
|
+
"internalType": "address",
|
|
1517
|
+
"name": "market",
|
|
1518
|
+
"type": "address"
|
|
1519
|
+
}
|
|
1520
|
+
],
|
|
1521
|
+
"name": "supportedMarkets",
|
|
1522
|
+
"outputs": [
|
|
1523
|
+
{
|
|
1524
|
+
"internalType": "bool",
|
|
1525
|
+
"name": "supported",
|
|
1526
|
+
"type": "bool"
|
|
1527
|
+
}
|
|
1528
|
+
],
|
|
1529
|
+
"stateMutability": "view",
|
|
1530
|
+
"type": "function"
|
|
1531
|
+
},
|
|
1532
|
+
{
|
|
1533
|
+
"inputs": [
|
|
1534
|
+
{
|
|
1535
|
+
"internalType": "uint256",
|
|
1536
|
+
"name": "amountIn",
|
|
1537
|
+
"type": "uint256"
|
|
1538
|
+
},
|
|
1539
|
+
{
|
|
1540
|
+
"internalType": "uint256",
|
|
1541
|
+
"name": "amountOutMin",
|
|
1542
|
+
"type": "uint256"
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
"internalType": "address[]",
|
|
1546
|
+
"name": "path",
|
|
1547
|
+
"type": "address[]"
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
"internalType": "address",
|
|
1551
|
+
"name": "to",
|
|
1552
|
+
"type": "address"
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
"internalType": "uint256",
|
|
1556
|
+
"name": "deadline",
|
|
1557
|
+
"type": "uint256"
|
|
1558
|
+
}
|
|
1559
|
+
],
|
|
1560
|
+
"name": "swapExactTokensForTokens",
|
|
1561
|
+
"outputs": [
|
|
1562
|
+
{
|
|
1563
|
+
"internalType": "uint256[]",
|
|
1564
|
+
"name": "amounts",
|
|
1565
|
+
"type": "uint256[]"
|
|
1566
|
+
}
|
|
1567
|
+
],
|
|
1568
|
+
"stateMutability": "nonpayable",
|
|
1569
|
+
"type": "function"
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
"inputs": [
|
|
1573
|
+
{
|
|
1574
|
+
"internalType": "contract IERC20",
|
|
1575
|
+
"name": "inToken",
|
|
1576
|
+
"type": "address"
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
"internalType": "contract IERC20",
|
|
1580
|
+
"name": "outToken",
|
|
1581
|
+
"type": "address"
|
|
1582
|
+
},
|
|
1583
|
+
{
|
|
1584
|
+
"internalType": "uint256",
|
|
1585
|
+
"name": "amountIn",
|
|
1586
|
+
"type": "uint256"
|
|
1587
|
+
},
|
|
1588
|
+
{
|
|
1589
|
+
"internalType": "uint256",
|
|
1590
|
+
"name": "amountOutMin",
|
|
1591
|
+
"type": "uint256"
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
"internalType": "address",
|
|
1595
|
+
"name": "to",
|
|
1596
|
+
"type": "address"
|
|
1597
|
+
}
|
|
1598
|
+
],
|
|
1599
|
+
"name": "swapExactTokensForTokens",
|
|
1600
|
+
"outputs": [
|
|
1601
|
+
{
|
|
1602
|
+
"internalType": "uint256[]",
|
|
1603
|
+
"name": "amounts",
|
|
1604
|
+
"type": "uint256[]"
|
|
1605
|
+
}
|
|
1606
|
+
],
|
|
1607
|
+
"stateMutability": "nonpayable",
|
|
1608
|
+
"type": "function"
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
"inputs": [
|
|
1612
|
+
{
|
|
1613
|
+
"internalType": "uint256",
|
|
1614
|
+
"name": "amountOut",
|
|
1615
|
+
"type": "uint256"
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
"internalType": "uint256",
|
|
1619
|
+
"name": "amountInMax",
|
|
1620
|
+
"type": "uint256"
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
"internalType": "address[]",
|
|
1624
|
+
"name": "path",
|
|
1625
|
+
"type": "address[]"
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
"internalType": "address",
|
|
1629
|
+
"name": "to",
|
|
1630
|
+
"type": "address"
|
|
1631
|
+
},
|
|
1632
|
+
{
|
|
1633
|
+
"internalType": "uint256",
|
|
1634
|
+
"name": "deadline",
|
|
1635
|
+
"type": "uint256"
|
|
1636
|
+
}
|
|
1637
|
+
],
|
|
1638
|
+
"name": "swapTokensForExactTokens",
|
|
1639
|
+
"outputs": [
|
|
1640
|
+
{
|
|
1641
|
+
"internalType": "uint256[]",
|
|
1642
|
+
"name": "amounts",
|
|
1643
|
+
"type": "uint256[]"
|
|
1644
|
+
}
|
|
1645
|
+
],
|
|
1646
|
+
"stateMutability": "nonpayable",
|
|
1647
|
+
"type": "function"
|
|
1648
|
+
},
|
|
1649
|
+
{
|
|
1650
|
+
"inputs": [
|
|
1651
|
+
{
|
|
1652
|
+
"internalType": "contract IERC20",
|
|
1653
|
+
"name": "inToken",
|
|
1654
|
+
"type": "address"
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
"internalType": "contract IERC20",
|
|
1658
|
+
"name": "outToken",
|
|
1659
|
+
"type": "address"
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
"internalType": "uint256",
|
|
1663
|
+
"name": "amountOut",
|
|
1664
|
+
"type": "uint256"
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
"internalType": "uint256",
|
|
1668
|
+
"name": "amountInMax",
|
|
1669
|
+
"type": "uint256"
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
"internalType": "address",
|
|
1673
|
+
"name": "to",
|
|
1674
|
+
"type": "address"
|
|
1675
|
+
}
|
|
1676
|
+
],
|
|
1677
|
+
"name": "swapTokensForExactTokens",
|
|
1678
|
+
"outputs": [
|
|
1679
|
+
{
|
|
1680
|
+
"internalType": "uint256[]",
|
|
1681
|
+
"name": "amounts",
|
|
1682
|
+
"type": "uint256[]"
|
|
1683
|
+
}
|
|
1684
|
+
],
|
|
1685
|
+
"stateMutability": "nonpayable",
|
|
1686
|
+
"type": "function"
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
"inputs": [],
|
|
1690
|
+
"name": "symbol",
|
|
1691
|
+
"outputs": [
|
|
1692
|
+
{
|
|
1693
|
+
"internalType": "string",
|
|
1694
|
+
"name": "",
|
|
1695
|
+
"type": "string"
|
|
1696
|
+
}
|
|
1697
|
+
],
|
|
1698
|
+
"stateMutability": "view",
|
|
1699
|
+
"type": "function"
|
|
1700
|
+
},
|
|
1701
|
+
{
|
|
1702
|
+
"inputs": [],
|
|
1703
|
+
"name": "token0",
|
|
1704
|
+
"outputs": [
|
|
1705
|
+
{
|
|
1706
|
+
"internalType": "contract IERC20",
|
|
1707
|
+
"name": "",
|
|
1708
|
+
"type": "address"
|
|
1709
|
+
}
|
|
1710
|
+
],
|
|
1711
|
+
"stateMutability": "view",
|
|
1712
|
+
"type": "function"
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
"inputs": [],
|
|
1716
|
+
"name": "token1",
|
|
1717
|
+
"outputs": [
|
|
1718
|
+
{
|
|
1719
|
+
"internalType": "contract IERC20",
|
|
1720
|
+
"name": "",
|
|
1721
|
+
"type": "address"
|
|
1722
|
+
}
|
|
1723
|
+
],
|
|
1724
|
+
"stateMutability": "view",
|
|
1725
|
+
"type": "function"
|
|
1726
|
+
},
|
|
1727
|
+
{
|
|
1728
|
+
"inputs": [],
|
|
1729
|
+
"name": "totalAssets",
|
|
1730
|
+
"outputs": [
|
|
1731
|
+
{
|
|
1732
|
+
"internalType": "uint256",
|
|
1733
|
+
"name": "",
|
|
1734
|
+
"type": "uint256"
|
|
1735
|
+
}
|
|
1736
|
+
],
|
|
1737
|
+
"stateMutability": "view",
|
|
1738
|
+
"type": "function"
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
"inputs": [],
|
|
1742
|
+
"name": "totalSupply",
|
|
1743
|
+
"outputs": [
|
|
1744
|
+
{
|
|
1745
|
+
"internalType": "uint256",
|
|
1746
|
+
"name": "",
|
|
1747
|
+
"type": "uint256"
|
|
1748
|
+
}
|
|
1749
|
+
],
|
|
1750
|
+
"stateMutability": "view",
|
|
1751
|
+
"type": "function"
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
"inputs": [],
|
|
1755
|
+
"name": "traderate0",
|
|
1756
|
+
"outputs": [
|
|
1757
|
+
{
|
|
1758
|
+
"internalType": "uint256",
|
|
1759
|
+
"name": "",
|
|
1760
|
+
"type": "uint256"
|
|
1761
|
+
}
|
|
1762
|
+
],
|
|
1763
|
+
"stateMutability": "view",
|
|
1764
|
+
"type": "function"
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
"inputs": [],
|
|
1768
|
+
"name": "traderate1",
|
|
1769
|
+
"outputs": [
|
|
1770
|
+
{
|
|
1771
|
+
"internalType": "uint256",
|
|
1772
|
+
"name": "",
|
|
1773
|
+
"type": "uint256"
|
|
1774
|
+
}
|
|
1775
|
+
],
|
|
1776
|
+
"stateMutability": "view",
|
|
1777
|
+
"type": "function"
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
"inputs": [
|
|
1781
|
+
{
|
|
1782
|
+
"internalType": "address",
|
|
1783
|
+
"name": "to",
|
|
1784
|
+
"type": "address"
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
"internalType": "uint256",
|
|
1788
|
+
"name": "value",
|
|
1789
|
+
"type": "uint256"
|
|
1790
|
+
}
|
|
1791
|
+
],
|
|
1792
|
+
"name": "transfer",
|
|
1793
|
+
"outputs": [
|
|
1794
|
+
{
|
|
1795
|
+
"internalType": "bool",
|
|
1796
|
+
"name": "",
|
|
1797
|
+
"type": "bool"
|
|
1798
|
+
}
|
|
1799
|
+
],
|
|
1800
|
+
"stateMutability": "nonpayable",
|
|
1801
|
+
"type": "function"
|
|
1802
|
+
},
|
|
1803
|
+
{
|
|
1804
|
+
"inputs": [
|
|
1805
|
+
{
|
|
1806
|
+
"internalType": "address",
|
|
1807
|
+
"name": "from",
|
|
1808
|
+
"type": "address"
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
"internalType": "address",
|
|
1812
|
+
"name": "to",
|
|
1813
|
+
"type": "address"
|
|
1814
|
+
},
|
|
1815
|
+
{
|
|
1816
|
+
"internalType": "uint256",
|
|
1817
|
+
"name": "value",
|
|
1818
|
+
"type": "uint256"
|
|
1819
|
+
}
|
|
1820
|
+
],
|
|
1821
|
+
"name": "transferFrom",
|
|
1822
|
+
"outputs": [
|
|
1823
|
+
{
|
|
1824
|
+
"internalType": "bool",
|
|
1825
|
+
"name": "",
|
|
1826
|
+
"type": "bool"
|
|
1827
|
+
}
|
|
1828
|
+
],
|
|
1829
|
+
"stateMutability": "nonpayable",
|
|
1830
|
+
"type": "function"
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
"inputs": [],
|
|
1834
|
+
"name": "unpause",
|
|
1835
|
+
"outputs": [],
|
|
1836
|
+
"stateMutability": "nonpayable",
|
|
1837
|
+
"type": "function"
|
|
1838
|
+
},
|
|
1839
|
+
{
|
|
1840
|
+
"inputs": [],
|
|
1841
|
+
"name": "weth",
|
|
1842
|
+
"outputs": [
|
|
1843
|
+
{
|
|
1844
|
+
"internalType": "contract IWETH",
|
|
1845
|
+
"name": "",
|
|
1846
|
+
"type": "address"
|
|
1847
|
+
}
|
|
1848
|
+
],
|
|
1849
|
+
"stateMutability": "view",
|
|
1850
|
+
"type": "function"
|
|
1851
|
+
},
|
|
1852
|
+
{
|
|
1853
|
+
"inputs": [
|
|
1854
|
+
{
|
|
1855
|
+
"internalType": "uint256",
|
|
1856
|
+
"name": "requestId",
|
|
1857
|
+
"type": "uint256"
|
|
1858
|
+
}
|
|
1859
|
+
],
|
|
1860
|
+
"name": "withdrawalRequests",
|
|
1861
|
+
"outputs": [
|
|
1862
|
+
{
|
|
1863
|
+
"internalType": "address",
|
|
1864
|
+
"name": "withdrawer",
|
|
1865
|
+
"type": "address"
|
|
1866
|
+
},
|
|
1867
|
+
{
|
|
1868
|
+
"internalType": "bool",
|
|
1869
|
+
"name": "claimed",
|
|
1870
|
+
"type": "bool"
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
"internalType": "uint40",
|
|
1874
|
+
"name": "claimTimestamp",
|
|
1875
|
+
"type": "uint40"
|
|
1876
|
+
},
|
|
1877
|
+
{
|
|
1878
|
+
"internalType": "uint128",
|
|
1879
|
+
"name": "assets",
|
|
1880
|
+
"type": "uint128"
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
"internalType": "uint128",
|
|
1884
|
+
"name": "queued",
|
|
1885
|
+
"type": "uint128"
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
"internalType": "uint128",
|
|
1889
|
+
"name": "shares",
|
|
1890
|
+
"type": "uint128"
|
|
1891
|
+
}
|
|
1892
|
+
],
|
|
1893
|
+
"stateMutability": "view",
|
|
1894
|
+
"type": "function"
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
"inputs": [],
|
|
1898
|
+
"name": "withdrawsClaimed",
|
|
1899
|
+
"outputs": [
|
|
1900
|
+
{
|
|
1901
|
+
"internalType": "uint128",
|
|
1902
|
+
"name": "",
|
|
1903
|
+
"type": "uint128"
|
|
1904
|
+
}
|
|
1905
|
+
],
|
|
1906
|
+
"stateMutability": "view",
|
|
1907
|
+
"type": "function"
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
"inputs": [],
|
|
1911
|
+
"name": "withdrawsQueued",
|
|
1912
|
+
"outputs": [
|
|
1913
|
+
{
|
|
1914
|
+
"internalType": "uint128",
|
|
1915
|
+
"name": "",
|
|
1916
|
+
"type": "uint128"
|
|
1917
|
+
}
|
|
1918
|
+
],
|
|
1919
|
+
"stateMutability": "view",
|
|
1920
|
+
"type": "function"
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
"stateMutability": "payable",
|
|
1924
|
+
"type": "receive"
|
|
1925
|
+
}
|
|
1926
|
+
];
|
|
1927
|
+
/**
|
|
1928
|
+
* LidoARM_json Contract Class
|
|
1929
|
+
*
|
|
1930
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1931
|
+
*
|
|
1932
|
+
* @example
|
|
1933
|
+
* ```typescript
|
|
1934
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1935
|
+
* import { mainnet } from 'viem/chains';
|
|
1936
|
+
* import { LidoARM_json } from 'LidoARM_json';
|
|
1937
|
+
*
|
|
1938
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1939
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1940
|
+
*
|
|
1941
|
+
* const contract = new LidoARM_json('0x...', { publicClient, walletClient });
|
|
1942
|
+
*
|
|
1943
|
+
* // Read functions
|
|
1944
|
+
* const result = await contract.balanceOf('0x...');
|
|
1945
|
+
*
|
|
1946
|
+
* // Write functions
|
|
1947
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
1948
|
+
*
|
|
1949
|
+
* // Simulate transactions (dry-run)
|
|
1950
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
1951
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
1952
|
+
*
|
|
1953
|
+
* // Watch events
|
|
1954
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1955
|
+
* console.log('Transfer event:', event);
|
|
1956
|
+
* });
|
|
1957
|
+
* ```
|
|
1958
|
+
*/
|
|
1959
|
+
class LidoARM_json {
|
|
1960
|
+
constructor(address, clients) {
|
|
1961
|
+
this.contractAddress = address;
|
|
1962
|
+
this.publicClient = clients.publicClient;
|
|
1963
|
+
this.contract = (0, viem_1.getContract)({
|
|
1964
|
+
address,
|
|
1965
|
+
abi: exports.LidoARM_jsonAbi,
|
|
1966
|
+
client: {
|
|
1967
|
+
public: clients.publicClient,
|
|
1968
|
+
wallet: clients.walletClient,
|
|
1969
|
+
},
|
|
1970
|
+
});
|
|
1971
|
+
}
|
|
1972
|
+
/**
|
|
1973
|
+
* Get the contract address
|
|
1974
|
+
*/
|
|
1975
|
+
get address() {
|
|
1976
|
+
return this.contractAddress;
|
|
1977
|
+
}
|
|
1978
|
+
/**
|
|
1979
|
+
* Get the underlying viem contract instance
|
|
1980
|
+
*/
|
|
1981
|
+
getContract() {
|
|
1982
|
+
return this.contract;
|
|
1983
|
+
}
|
|
1984
|
+
/**
|
|
1985
|
+
* FEE_SCALE
|
|
1986
|
+
* view
|
|
1987
|
+
*/
|
|
1988
|
+
async FEE_SCALE() {
|
|
1989
|
+
return this.contract.read.FEE_SCALE();
|
|
1990
|
+
}
|
|
1991
|
+
/**
|
|
1992
|
+
* MAX_CROSS_PRICE_DEVIATION
|
|
1993
|
+
* view
|
|
1994
|
+
*/
|
|
1995
|
+
async MAX_CROSS_PRICE_DEVIATION() {
|
|
1996
|
+
return this.contract.read.MAX_CROSS_PRICE_DEVIATION();
|
|
1997
|
+
}
|
|
1998
|
+
/**
|
|
1999
|
+
* PRICE_SCALE
|
|
2000
|
+
* view
|
|
2001
|
+
*/
|
|
2002
|
+
async PRICE_SCALE() {
|
|
2003
|
+
return this.contract.read.PRICE_SCALE();
|
|
2004
|
+
}
|
|
2005
|
+
/**
|
|
2006
|
+
* activeMarket
|
|
2007
|
+
* view
|
|
2008
|
+
*/
|
|
2009
|
+
async activeMarket() {
|
|
2010
|
+
return this.contract.read.activeMarket();
|
|
2011
|
+
}
|
|
2012
|
+
/**
|
|
2013
|
+
* allocateThreshold
|
|
2014
|
+
* view
|
|
2015
|
+
*/
|
|
2016
|
+
async allocateThreshold() {
|
|
2017
|
+
return this.contract.read.allocateThreshold();
|
|
2018
|
+
}
|
|
2019
|
+
/**
|
|
2020
|
+
* allowance
|
|
2021
|
+
* view
|
|
2022
|
+
*/
|
|
2023
|
+
async allowance(owner, spender) {
|
|
2024
|
+
return this.contract.read.allowance([owner, spender]);
|
|
2025
|
+
}
|
|
2026
|
+
/**
|
|
2027
|
+
* armBuffer
|
|
2028
|
+
* view
|
|
2029
|
+
*/
|
|
2030
|
+
async armBuffer() {
|
|
2031
|
+
return this.contract.read.armBuffer();
|
|
2032
|
+
}
|
|
2033
|
+
/**
|
|
2034
|
+
* asset
|
|
2035
|
+
* view
|
|
2036
|
+
*/
|
|
2037
|
+
async asset() {
|
|
2038
|
+
return this.contract.read.asset();
|
|
2039
|
+
}
|
|
2040
|
+
/**
|
|
2041
|
+
* balanceOf
|
|
2042
|
+
* view
|
|
2043
|
+
*/
|
|
2044
|
+
async balanceOf(account) {
|
|
2045
|
+
return this.contract.read.balanceOf([account]);
|
|
2046
|
+
}
|
|
2047
|
+
/**
|
|
2048
|
+
* baseAsset
|
|
2049
|
+
* view
|
|
2050
|
+
*/
|
|
2051
|
+
async baseAsset() {
|
|
2052
|
+
return this.contract.read.baseAsset();
|
|
2053
|
+
}
|
|
2054
|
+
/**
|
|
2055
|
+
* capManager
|
|
2056
|
+
* view
|
|
2057
|
+
*/
|
|
2058
|
+
async capManager() {
|
|
2059
|
+
return this.contract.read.capManager();
|
|
2060
|
+
}
|
|
2061
|
+
/**
|
|
2062
|
+
* claimDelay
|
|
2063
|
+
* view
|
|
2064
|
+
*/
|
|
2065
|
+
async claimDelay() {
|
|
2066
|
+
return this.contract.read.claimDelay();
|
|
2067
|
+
}
|
|
2068
|
+
/**
|
|
2069
|
+
* claimable
|
|
2070
|
+
* view
|
|
2071
|
+
*/
|
|
2072
|
+
async claimable() {
|
|
2073
|
+
return this.contract.read.claimable();
|
|
2074
|
+
}
|
|
2075
|
+
/**
|
|
2076
|
+
* convertToAssets
|
|
2077
|
+
* view
|
|
2078
|
+
*/
|
|
2079
|
+
async convertToAssets(shares) {
|
|
2080
|
+
return this.contract.read.convertToAssets([shares]);
|
|
2081
|
+
}
|
|
2082
|
+
/**
|
|
2083
|
+
* convertToShares
|
|
2084
|
+
* view
|
|
2085
|
+
*/
|
|
2086
|
+
async convertToShares(assets) {
|
|
2087
|
+
return this.contract.read.convertToShares([assets]);
|
|
2088
|
+
}
|
|
2089
|
+
/**
|
|
2090
|
+
* crossPrice
|
|
2091
|
+
* view
|
|
2092
|
+
*/
|
|
2093
|
+
async crossPrice() {
|
|
2094
|
+
return this.contract.read.crossPrice();
|
|
2095
|
+
}
|
|
2096
|
+
/**
|
|
2097
|
+
* decimals
|
|
2098
|
+
* view
|
|
2099
|
+
*/
|
|
2100
|
+
async decimals() {
|
|
2101
|
+
return this.contract.read.decimals();
|
|
2102
|
+
}
|
|
2103
|
+
/**
|
|
2104
|
+
* fee
|
|
2105
|
+
* view
|
|
2106
|
+
*/
|
|
2107
|
+
async fee() {
|
|
2108
|
+
return this.contract.read.fee();
|
|
2109
|
+
}
|
|
2110
|
+
/**
|
|
2111
|
+
* feeCollector
|
|
2112
|
+
* view
|
|
2113
|
+
*/
|
|
2114
|
+
async feeCollector() {
|
|
2115
|
+
return this.contract.read.feeCollector();
|
|
2116
|
+
}
|
|
2117
|
+
/**
|
|
2118
|
+
* feesAccrued
|
|
2119
|
+
* view
|
|
2120
|
+
*/
|
|
2121
|
+
async feesAccrued() {
|
|
2122
|
+
return this.contract.read.feesAccrued();
|
|
2123
|
+
}
|
|
2124
|
+
/**
|
|
2125
|
+
* getReserves
|
|
2126
|
+
* view
|
|
2127
|
+
*/
|
|
2128
|
+
async getReserves() {
|
|
2129
|
+
return this.contract.read.getReserves();
|
|
2130
|
+
}
|
|
2131
|
+
/**
|
|
2132
|
+
* lastAvailableAssets
|
|
2133
|
+
* view
|
|
2134
|
+
*/
|
|
2135
|
+
async lastAvailableAssets() {
|
|
2136
|
+
return this.contract.read.lastAvailableAssets();
|
|
2137
|
+
}
|
|
2138
|
+
/**
|
|
2139
|
+
* lidoWithdrawalQueue
|
|
2140
|
+
* view
|
|
2141
|
+
*/
|
|
2142
|
+
async lidoWithdrawalQueue() {
|
|
2143
|
+
return this.contract.read.lidoWithdrawalQueue();
|
|
2144
|
+
}
|
|
2145
|
+
/**
|
|
2146
|
+
* lidoWithdrawalQueueAmount
|
|
2147
|
+
* view
|
|
2148
|
+
*/
|
|
2149
|
+
async lidoWithdrawalQueueAmount() {
|
|
2150
|
+
return this.contract.read.lidoWithdrawalQueueAmount();
|
|
2151
|
+
}
|
|
2152
|
+
/**
|
|
2153
|
+
* lidoWithdrawalRequests
|
|
2154
|
+
* view
|
|
2155
|
+
*/
|
|
2156
|
+
async lidoWithdrawalRequests(id) {
|
|
2157
|
+
return this.contract.read.lidoWithdrawalRequests([id]);
|
|
2158
|
+
}
|
|
2159
|
+
/**
|
|
2160
|
+
* liquidityAsset
|
|
2161
|
+
* view
|
|
2162
|
+
*/
|
|
2163
|
+
async liquidityAsset() {
|
|
2164
|
+
return this.contract.read.liquidityAsset();
|
|
2165
|
+
}
|
|
2166
|
+
/**
|
|
2167
|
+
* minSharesToRedeem
|
|
2168
|
+
* view
|
|
2169
|
+
*/
|
|
2170
|
+
async minSharesToRedeem() {
|
|
2171
|
+
return this.contract.read.minSharesToRedeem();
|
|
2172
|
+
}
|
|
2173
|
+
/**
|
|
2174
|
+
* name
|
|
2175
|
+
* view
|
|
2176
|
+
*/
|
|
2177
|
+
async name() {
|
|
2178
|
+
return this.contract.read.name();
|
|
2179
|
+
}
|
|
2180
|
+
/**
|
|
2181
|
+
* nextWithdrawalIndex
|
|
2182
|
+
* view
|
|
2183
|
+
*/
|
|
2184
|
+
async nextWithdrawalIndex() {
|
|
2185
|
+
return this.contract.read.nextWithdrawalIndex();
|
|
2186
|
+
}
|
|
2187
|
+
/**
|
|
2188
|
+
* operator
|
|
2189
|
+
* view
|
|
2190
|
+
*/
|
|
2191
|
+
async operator() {
|
|
2192
|
+
return this.contract.read.operator();
|
|
2193
|
+
}
|
|
2194
|
+
/**
|
|
2195
|
+
* owner
|
|
2196
|
+
* view
|
|
2197
|
+
*/
|
|
2198
|
+
async owner() {
|
|
2199
|
+
return this.contract.read.owner();
|
|
2200
|
+
}
|
|
2201
|
+
/**
|
|
2202
|
+
* paused
|
|
2203
|
+
* view
|
|
2204
|
+
*/
|
|
2205
|
+
async paused() {
|
|
2206
|
+
return this.contract.read.paused();
|
|
2207
|
+
}
|
|
2208
|
+
/**
|
|
2209
|
+
* previewDeposit
|
|
2210
|
+
* view
|
|
2211
|
+
*/
|
|
2212
|
+
async previewDeposit(assets) {
|
|
2213
|
+
return this.contract.read.previewDeposit([assets]);
|
|
2214
|
+
}
|
|
2215
|
+
/**
|
|
2216
|
+
* previewRedeem
|
|
2217
|
+
* view
|
|
2218
|
+
*/
|
|
2219
|
+
async previewRedeem(shares) {
|
|
2220
|
+
return this.contract.read.previewRedeem([shares]);
|
|
2221
|
+
}
|
|
2222
|
+
/**
|
|
2223
|
+
* steth
|
|
2224
|
+
* view
|
|
2225
|
+
*/
|
|
2226
|
+
async steth() {
|
|
2227
|
+
return this.contract.read.steth();
|
|
2228
|
+
}
|
|
2229
|
+
/**
|
|
2230
|
+
* supportedMarkets
|
|
2231
|
+
* view
|
|
2232
|
+
*/
|
|
2233
|
+
async supportedMarkets(market) {
|
|
2234
|
+
return this.contract.read.supportedMarkets([market]);
|
|
2235
|
+
}
|
|
2236
|
+
/**
|
|
2237
|
+
* symbol
|
|
2238
|
+
* view
|
|
2239
|
+
*/
|
|
2240
|
+
async symbol() {
|
|
2241
|
+
return this.contract.read.symbol();
|
|
2242
|
+
}
|
|
2243
|
+
/**
|
|
2244
|
+
* token0
|
|
2245
|
+
* view
|
|
2246
|
+
*/
|
|
2247
|
+
async token0() {
|
|
2248
|
+
return this.contract.read.token0();
|
|
2249
|
+
}
|
|
2250
|
+
/**
|
|
2251
|
+
* token1
|
|
2252
|
+
* view
|
|
2253
|
+
*/
|
|
2254
|
+
async token1() {
|
|
2255
|
+
return this.contract.read.token1();
|
|
2256
|
+
}
|
|
2257
|
+
/**
|
|
2258
|
+
* totalAssets
|
|
2259
|
+
* view
|
|
2260
|
+
*/
|
|
2261
|
+
async totalAssets() {
|
|
2262
|
+
return this.contract.read.totalAssets();
|
|
2263
|
+
}
|
|
2264
|
+
/**
|
|
2265
|
+
* totalSupply
|
|
2266
|
+
* view
|
|
2267
|
+
*/
|
|
2268
|
+
async totalSupply() {
|
|
2269
|
+
return this.contract.read.totalSupply();
|
|
2270
|
+
}
|
|
2271
|
+
/**
|
|
2272
|
+
* traderate0
|
|
2273
|
+
* view
|
|
2274
|
+
*/
|
|
2275
|
+
async traderate0() {
|
|
2276
|
+
return this.contract.read.traderate0();
|
|
2277
|
+
}
|
|
2278
|
+
/**
|
|
2279
|
+
* traderate1
|
|
2280
|
+
* view
|
|
2281
|
+
*/
|
|
2282
|
+
async traderate1() {
|
|
2283
|
+
return this.contract.read.traderate1();
|
|
2284
|
+
}
|
|
2285
|
+
/**
|
|
2286
|
+
* weth
|
|
2287
|
+
* view
|
|
2288
|
+
*/
|
|
2289
|
+
async weth() {
|
|
2290
|
+
return this.contract.read.weth();
|
|
2291
|
+
}
|
|
2292
|
+
/**
|
|
2293
|
+
* withdrawalRequests
|
|
2294
|
+
* view
|
|
2295
|
+
*/
|
|
2296
|
+
async withdrawalRequests(requestId) {
|
|
2297
|
+
return this.contract.read.withdrawalRequests([requestId]);
|
|
2298
|
+
}
|
|
2299
|
+
/**
|
|
2300
|
+
* withdrawsClaimed
|
|
2301
|
+
* view
|
|
2302
|
+
*/
|
|
2303
|
+
async withdrawsClaimed() {
|
|
2304
|
+
return this.contract.read.withdrawsClaimed();
|
|
2305
|
+
}
|
|
2306
|
+
/**
|
|
2307
|
+
* withdrawsQueued
|
|
2308
|
+
* view
|
|
2309
|
+
*/
|
|
2310
|
+
async withdrawsQueued() {
|
|
2311
|
+
return this.contract.read.withdrawsQueued();
|
|
2312
|
+
}
|
|
2313
|
+
/**
|
|
2314
|
+
* addMarkets
|
|
2315
|
+
* nonpayable
|
|
2316
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2317
|
+
*/
|
|
2318
|
+
async addMarkets(_markets, options) {
|
|
2319
|
+
if (!this.contract.write) {
|
|
2320
|
+
throw new Error('Wallet client is required for write operations');
|
|
2321
|
+
}
|
|
2322
|
+
return this.contract.write.addMarkets([_markets], options);
|
|
2323
|
+
}
|
|
2324
|
+
/**
|
|
2325
|
+
* allocate
|
|
2326
|
+
* nonpayable
|
|
2327
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2328
|
+
*/
|
|
2329
|
+
async allocate(options) {
|
|
2330
|
+
if (!this.contract.write) {
|
|
2331
|
+
throw new Error('Wallet client is required for write operations');
|
|
2332
|
+
}
|
|
2333
|
+
return this.contract.write.allocate(options);
|
|
2334
|
+
}
|
|
2335
|
+
/**
|
|
2336
|
+
* approve
|
|
2337
|
+
* nonpayable
|
|
2338
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2339
|
+
*/
|
|
2340
|
+
async approve(spender, value, options) {
|
|
2341
|
+
if (!this.contract.write) {
|
|
2342
|
+
throw new Error('Wallet client is required for write operations');
|
|
2343
|
+
}
|
|
2344
|
+
return this.contract.write.approve([spender, value], options);
|
|
2345
|
+
}
|
|
2346
|
+
/**
|
|
2347
|
+
* claimLidoWithdrawals
|
|
2348
|
+
* nonpayable
|
|
2349
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2350
|
+
*/
|
|
2351
|
+
async claimLidoWithdrawals(requestIds, hintIds, options) {
|
|
2352
|
+
if (!this.contract.write) {
|
|
2353
|
+
throw new Error('Wallet client is required for write operations');
|
|
2354
|
+
}
|
|
2355
|
+
return this.contract.write.claimLidoWithdrawals([requestIds, hintIds], options);
|
|
2356
|
+
}
|
|
2357
|
+
/**
|
|
2358
|
+
* claimRedeem
|
|
2359
|
+
* nonpayable
|
|
2360
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2361
|
+
*/
|
|
2362
|
+
async claimRedeem(requestId, options) {
|
|
2363
|
+
if (!this.contract.write) {
|
|
2364
|
+
throw new Error('Wallet client is required for write operations');
|
|
2365
|
+
}
|
|
2366
|
+
return this.contract.write.claimRedeem([requestId], options);
|
|
2367
|
+
}
|
|
2368
|
+
/**
|
|
2369
|
+
* collectFees
|
|
2370
|
+
* nonpayable
|
|
2371
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2372
|
+
*/
|
|
2373
|
+
async collectFees(options) {
|
|
2374
|
+
if (!this.contract.write) {
|
|
2375
|
+
throw new Error('Wallet client is required for write operations');
|
|
2376
|
+
}
|
|
2377
|
+
return this.contract.write.collectFees(options);
|
|
2378
|
+
}
|
|
2379
|
+
async deposit(...args) {
|
|
2380
|
+
if (!this.contract.write) {
|
|
2381
|
+
throw new Error('Wallet client is required for write operations');
|
|
2382
|
+
}
|
|
2383
|
+
return this.contract.write.deposit(args);
|
|
2384
|
+
}
|
|
2385
|
+
/**
|
|
2386
|
+
* initialize
|
|
2387
|
+
* nonpayable
|
|
2388
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2389
|
+
*/
|
|
2390
|
+
async initialize(_name, _symbol, _operator, _fee, _feeCollector, _capManager, options) {
|
|
2391
|
+
if (!this.contract.write) {
|
|
2392
|
+
throw new Error('Wallet client is required for write operations');
|
|
2393
|
+
}
|
|
2394
|
+
return this.contract.write.initialize([_name, _symbol, _operator, _fee, _feeCollector, _capManager], options);
|
|
2395
|
+
}
|
|
2396
|
+
/**
|
|
2397
|
+
* pause
|
|
2398
|
+
* nonpayable
|
|
2399
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2400
|
+
*/
|
|
2401
|
+
async pause(options) {
|
|
2402
|
+
if (!this.contract.write) {
|
|
2403
|
+
throw new Error('Wallet client is required for write operations');
|
|
2404
|
+
}
|
|
2405
|
+
return this.contract.write.pause(options);
|
|
2406
|
+
}
|
|
2407
|
+
/**
|
|
2408
|
+
* registerLidoWithdrawalRequests
|
|
2409
|
+
* nonpayable
|
|
2410
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2411
|
+
*/
|
|
2412
|
+
async registerLidoWithdrawalRequests(options) {
|
|
2413
|
+
if (!this.contract.write) {
|
|
2414
|
+
throw new Error('Wallet client is required for write operations');
|
|
2415
|
+
}
|
|
2416
|
+
return this.contract.write.registerLidoWithdrawalRequests(options);
|
|
2417
|
+
}
|
|
2418
|
+
/**
|
|
2419
|
+
* removeMarket
|
|
2420
|
+
* nonpayable
|
|
2421
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2422
|
+
*/
|
|
2423
|
+
async removeMarket(_market, options) {
|
|
2424
|
+
if (!this.contract.write) {
|
|
2425
|
+
throw new Error('Wallet client is required for write operations');
|
|
2426
|
+
}
|
|
2427
|
+
return this.contract.write.removeMarket([_market], options);
|
|
2428
|
+
}
|
|
2429
|
+
/**
|
|
2430
|
+
* requestLidoWithdrawals
|
|
2431
|
+
* nonpayable
|
|
2432
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2433
|
+
*/
|
|
2434
|
+
async requestLidoWithdrawals(amounts, options) {
|
|
2435
|
+
if (!this.contract.write) {
|
|
2436
|
+
throw new Error('Wallet client is required for write operations');
|
|
2437
|
+
}
|
|
2438
|
+
return this.contract.write.requestLidoWithdrawals([amounts], options);
|
|
2439
|
+
}
|
|
2440
|
+
/**
|
|
2441
|
+
* requestRedeem
|
|
2442
|
+
* nonpayable
|
|
2443
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2444
|
+
*/
|
|
2445
|
+
async requestRedeem(shares, options) {
|
|
2446
|
+
if (!this.contract.write) {
|
|
2447
|
+
throw new Error('Wallet client is required for write operations');
|
|
2448
|
+
}
|
|
2449
|
+
return this.contract.write.requestRedeem([shares], options);
|
|
2450
|
+
}
|
|
2451
|
+
/**
|
|
2452
|
+
* setARMBuffer
|
|
2453
|
+
* nonpayable
|
|
2454
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2455
|
+
*/
|
|
2456
|
+
async setARMBuffer(_armBuffer, options) {
|
|
2457
|
+
if (!this.contract.write) {
|
|
2458
|
+
throw new Error('Wallet client is required for write operations');
|
|
2459
|
+
}
|
|
2460
|
+
return this.contract.write.setARMBuffer([_armBuffer], options);
|
|
2461
|
+
}
|
|
2462
|
+
/**
|
|
2463
|
+
* setActiveMarket
|
|
2464
|
+
* nonpayable
|
|
2465
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2466
|
+
*/
|
|
2467
|
+
async setActiveMarket(_market, options) {
|
|
2468
|
+
if (!this.contract.write) {
|
|
2469
|
+
throw new Error('Wallet client is required for write operations');
|
|
2470
|
+
}
|
|
2471
|
+
return this.contract.write.setActiveMarket([_market], options);
|
|
2472
|
+
}
|
|
2473
|
+
/**
|
|
2474
|
+
* setCapManager
|
|
2475
|
+
* nonpayable
|
|
2476
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2477
|
+
*/
|
|
2478
|
+
async setCapManager(_capManager, options) {
|
|
2479
|
+
if (!this.contract.write) {
|
|
2480
|
+
throw new Error('Wallet client is required for write operations');
|
|
2481
|
+
}
|
|
2482
|
+
return this.contract.write.setCapManager([_capManager], options);
|
|
2483
|
+
}
|
|
2484
|
+
/**
|
|
2485
|
+
* setCrossPrice
|
|
2486
|
+
* nonpayable
|
|
2487
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2488
|
+
*/
|
|
2489
|
+
async setCrossPrice(newCrossPrice, options) {
|
|
2490
|
+
if (!this.contract.write) {
|
|
2491
|
+
throw new Error('Wallet client is required for write operations');
|
|
2492
|
+
}
|
|
2493
|
+
return this.contract.write.setCrossPrice([newCrossPrice], options);
|
|
2494
|
+
}
|
|
2495
|
+
/**
|
|
2496
|
+
* setFee
|
|
2497
|
+
* nonpayable
|
|
2498
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2499
|
+
*/
|
|
2500
|
+
async setFee(_fee, options) {
|
|
2501
|
+
if (!this.contract.write) {
|
|
2502
|
+
throw new Error('Wallet client is required for write operations');
|
|
2503
|
+
}
|
|
2504
|
+
return this.contract.write.setFee([_fee], options);
|
|
2505
|
+
}
|
|
2506
|
+
/**
|
|
2507
|
+
* setFeeCollector
|
|
2508
|
+
* nonpayable
|
|
2509
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2510
|
+
*/
|
|
2511
|
+
async setFeeCollector(_feeCollector, options) {
|
|
2512
|
+
if (!this.contract.write) {
|
|
2513
|
+
throw new Error('Wallet client is required for write operations');
|
|
2514
|
+
}
|
|
2515
|
+
return this.contract.write.setFeeCollector([_feeCollector], options);
|
|
2516
|
+
}
|
|
2517
|
+
/**
|
|
2518
|
+
* setOperator
|
|
2519
|
+
* nonpayable
|
|
2520
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2521
|
+
*/
|
|
2522
|
+
async setOperator(newOperator, options) {
|
|
2523
|
+
if (!this.contract.write) {
|
|
2524
|
+
throw new Error('Wallet client is required for write operations');
|
|
2525
|
+
}
|
|
2526
|
+
return this.contract.write.setOperator([newOperator], options);
|
|
2527
|
+
}
|
|
2528
|
+
/**
|
|
2529
|
+
* setOwner
|
|
2530
|
+
* nonpayable
|
|
2531
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2532
|
+
*/
|
|
2533
|
+
async setOwner(newOwner, options) {
|
|
2534
|
+
if (!this.contract.write) {
|
|
2535
|
+
throw new Error('Wallet client is required for write operations');
|
|
2536
|
+
}
|
|
2537
|
+
return this.contract.write.setOwner([newOwner], options);
|
|
2538
|
+
}
|
|
2539
|
+
/**
|
|
2540
|
+
* setPrices
|
|
2541
|
+
* nonpayable
|
|
2542
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2543
|
+
*/
|
|
2544
|
+
async setPrices(buyT1, sellT1, options) {
|
|
2545
|
+
if (!this.contract.write) {
|
|
2546
|
+
throw new Error('Wallet client is required for write operations');
|
|
2547
|
+
}
|
|
2548
|
+
return this.contract.write.setPrices([buyT1, sellT1], options);
|
|
2549
|
+
}
|
|
2550
|
+
async swapExactTokensForTokens(...args) {
|
|
2551
|
+
if (!this.contract.write) {
|
|
2552
|
+
throw new Error('Wallet client is required for write operations');
|
|
2553
|
+
}
|
|
2554
|
+
return this.contract.write.swapExactTokensForTokens(args);
|
|
2555
|
+
}
|
|
2556
|
+
async swapTokensForExactTokens(...args) {
|
|
2557
|
+
if (!this.contract.write) {
|
|
2558
|
+
throw new Error('Wallet client is required for write operations');
|
|
2559
|
+
}
|
|
2560
|
+
return this.contract.write.swapTokensForExactTokens(args);
|
|
2561
|
+
}
|
|
2562
|
+
/**
|
|
2563
|
+
* transfer
|
|
2564
|
+
* nonpayable
|
|
2565
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2566
|
+
*/
|
|
2567
|
+
async transfer(to, value, options) {
|
|
2568
|
+
if (!this.contract.write) {
|
|
2569
|
+
throw new Error('Wallet client is required for write operations');
|
|
2570
|
+
}
|
|
2571
|
+
return this.contract.write.transfer([to, value], options);
|
|
2572
|
+
}
|
|
2573
|
+
/**
|
|
2574
|
+
* transferFrom
|
|
2575
|
+
* nonpayable
|
|
2576
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2577
|
+
*/
|
|
2578
|
+
async transferFrom(from, to, value, options) {
|
|
2579
|
+
if (!this.contract.write) {
|
|
2580
|
+
throw new Error('Wallet client is required for write operations');
|
|
2581
|
+
}
|
|
2582
|
+
return this.contract.write.transferFrom([from, to, value], options);
|
|
2583
|
+
}
|
|
2584
|
+
/**
|
|
2585
|
+
* unpause
|
|
2586
|
+
* nonpayable
|
|
2587
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2588
|
+
*/
|
|
2589
|
+
async unpause(options) {
|
|
2590
|
+
if (!this.contract.write) {
|
|
2591
|
+
throw new Error('Wallet client is required for write operations');
|
|
2592
|
+
}
|
|
2593
|
+
return this.contract.write.unpause(options);
|
|
2594
|
+
}
|
|
2595
|
+
/**
|
|
2596
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
2597
|
+
*
|
|
2598
|
+
* @example
|
|
2599
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
2600
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
2601
|
+
* console.log('Would succeed:', result.result);
|
|
2602
|
+
*/
|
|
2603
|
+
get simulate() {
|
|
2604
|
+
const contract = this.contract;
|
|
2605
|
+
if (!contract.simulate) {
|
|
2606
|
+
throw new Error('Public client is required for simulation');
|
|
2607
|
+
}
|
|
2608
|
+
return {
|
|
2609
|
+
/**
|
|
2610
|
+
* Simulate addMarkets
|
|
2611
|
+
* Returns gas estimate and result without sending transaction
|
|
2612
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2613
|
+
*/
|
|
2614
|
+
async addMarkets(_markets, options) {
|
|
2615
|
+
return contract.simulate.addMarkets([_markets], options);
|
|
2616
|
+
},
|
|
2617
|
+
/**
|
|
2618
|
+
* Simulate allocate
|
|
2619
|
+
* Returns gas estimate and result without sending transaction
|
|
2620
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2621
|
+
*/
|
|
2622
|
+
async allocate(options) {
|
|
2623
|
+
return contract.simulate.allocate(options);
|
|
2624
|
+
},
|
|
2625
|
+
/**
|
|
2626
|
+
* Simulate approve
|
|
2627
|
+
* Returns gas estimate and result without sending transaction
|
|
2628
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2629
|
+
*/
|
|
2630
|
+
async approve(spender, value, options) {
|
|
2631
|
+
return contract.simulate.approve([spender, value], options);
|
|
2632
|
+
},
|
|
2633
|
+
/**
|
|
2634
|
+
* Simulate claimLidoWithdrawals
|
|
2635
|
+
* Returns gas estimate and result without sending transaction
|
|
2636
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2637
|
+
*/
|
|
2638
|
+
async claimLidoWithdrawals(requestIds, hintIds, options) {
|
|
2639
|
+
return contract.simulate.claimLidoWithdrawals([requestIds, hintIds], options);
|
|
2640
|
+
},
|
|
2641
|
+
/**
|
|
2642
|
+
* Simulate claimRedeem
|
|
2643
|
+
* Returns gas estimate and result without sending transaction
|
|
2644
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2645
|
+
*/
|
|
2646
|
+
async claimRedeem(requestId, options) {
|
|
2647
|
+
return contract.simulate.claimRedeem([requestId], options);
|
|
2648
|
+
},
|
|
2649
|
+
/**
|
|
2650
|
+
* Simulate collectFees
|
|
2651
|
+
* Returns gas estimate and result without sending transaction
|
|
2652
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2653
|
+
*/
|
|
2654
|
+
async collectFees(options) {
|
|
2655
|
+
return contract.simulate.collectFees(options);
|
|
2656
|
+
},
|
|
2657
|
+
/**
|
|
2658
|
+
* Simulate deposit
|
|
2659
|
+
* Returns gas estimate and result without sending transaction
|
|
2660
|
+
* Supports multiple overloads: (uint256, address), (uint256)
|
|
2661
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2662
|
+
*/
|
|
2663
|
+
async deposit(...args) {
|
|
2664
|
+
return contract.simulate.deposit(args);
|
|
2665
|
+
},
|
|
2666
|
+
/**
|
|
2667
|
+
* Simulate initialize
|
|
2668
|
+
* Returns gas estimate and result without sending transaction
|
|
2669
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2670
|
+
*/
|
|
2671
|
+
async initialize(_name, _symbol, _operator, _fee, _feeCollector, _capManager, options) {
|
|
2672
|
+
return contract.simulate.initialize([_name, _symbol, _operator, _fee, _feeCollector, _capManager], options);
|
|
2673
|
+
},
|
|
2674
|
+
/**
|
|
2675
|
+
* Simulate pause
|
|
2676
|
+
* Returns gas estimate and result without sending transaction
|
|
2677
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2678
|
+
*/
|
|
2679
|
+
async pause(options) {
|
|
2680
|
+
return contract.simulate.pause(options);
|
|
2681
|
+
},
|
|
2682
|
+
/**
|
|
2683
|
+
* Simulate registerLidoWithdrawalRequests
|
|
2684
|
+
* Returns gas estimate and result without sending transaction
|
|
2685
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2686
|
+
*/
|
|
2687
|
+
async registerLidoWithdrawalRequests(options) {
|
|
2688
|
+
return contract.simulate.registerLidoWithdrawalRequests(options);
|
|
2689
|
+
},
|
|
2690
|
+
/**
|
|
2691
|
+
* Simulate removeMarket
|
|
2692
|
+
* Returns gas estimate and result without sending transaction
|
|
2693
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2694
|
+
*/
|
|
2695
|
+
async removeMarket(_market, options) {
|
|
2696
|
+
return contract.simulate.removeMarket([_market], options);
|
|
2697
|
+
},
|
|
2698
|
+
/**
|
|
2699
|
+
* Simulate requestLidoWithdrawals
|
|
2700
|
+
* Returns gas estimate and result without sending transaction
|
|
2701
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2702
|
+
*/
|
|
2703
|
+
async requestLidoWithdrawals(amounts, options) {
|
|
2704
|
+
return contract.simulate.requestLidoWithdrawals([amounts], options);
|
|
2705
|
+
},
|
|
2706
|
+
/**
|
|
2707
|
+
* Simulate requestRedeem
|
|
2708
|
+
* Returns gas estimate and result without sending transaction
|
|
2709
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2710
|
+
*/
|
|
2711
|
+
async requestRedeem(shares, options) {
|
|
2712
|
+
return contract.simulate.requestRedeem([shares], options);
|
|
2713
|
+
},
|
|
2714
|
+
/**
|
|
2715
|
+
* Simulate setARMBuffer
|
|
2716
|
+
* Returns gas estimate and result without sending transaction
|
|
2717
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2718
|
+
*/
|
|
2719
|
+
async setARMBuffer(_armBuffer, options) {
|
|
2720
|
+
return contract.simulate.setARMBuffer([_armBuffer], options);
|
|
2721
|
+
},
|
|
2722
|
+
/**
|
|
2723
|
+
* Simulate setActiveMarket
|
|
2724
|
+
* Returns gas estimate and result without sending transaction
|
|
2725
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2726
|
+
*/
|
|
2727
|
+
async setActiveMarket(_market, options) {
|
|
2728
|
+
return contract.simulate.setActiveMarket([_market], options);
|
|
2729
|
+
},
|
|
2730
|
+
/**
|
|
2731
|
+
* Simulate setCapManager
|
|
2732
|
+
* Returns gas estimate and result without sending transaction
|
|
2733
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2734
|
+
*/
|
|
2735
|
+
async setCapManager(_capManager, options) {
|
|
2736
|
+
return contract.simulate.setCapManager([_capManager], options);
|
|
2737
|
+
},
|
|
2738
|
+
/**
|
|
2739
|
+
* Simulate setCrossPrice
|
|
2740
|
+
* Returns gas estimate and result without sending transaction
|
|
2741
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2742
|
+
*/
|
|
2743
|
+
async setCrossPrice(newCrossPrice, options) {
|
|
2744
|
+
return contract.simulate.setCrossPrice([newCrossPrice], options);
|
|
2745
|
+
},
|
|
2746
|
+
/**
|
|
2747
|
+
* Simulate setFee
|
|
2748
|
+
* Returns gas estimate and result without sending transaction
|
|
2749
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2750
|
+
*/
|
|
2751
|
+
async setFee(_fee, options) {
|
|
2752
|
+
return contract.simulate.setFee([_fee], options);
|
|
2753
|
+
},
|
|
2754
|
+
/**
|
|
2755
|
+
* Simulate setFeeCollector
|
|
2756
|
+
* Returns gas estimate and result without sending transaction
|
|
2757
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2758
|
+
*/
|
|
2759
|
+
async setFeeCollector(_feeCollector, options) {
|
|
2760
|
+
return contract.simulate.setFeeCollector([_feeCollector], options);
|
|
2761
|
+
},
|
|
2762
|
+
/**
|
|
2763
|
+
* Simulate setOperator
|
|
2764
|
+
* Returns gas estimate and result without sending transaction
|
|
2765
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2766
|
+
*/
|
|
2767
|
+
async setOperator(newOperator, options) {
|
|
2768
|
+
return contract.simulate.setOperator([newOperator], options);
|
|
2769
|
+
},
|
|
2770
|
+
/**
|
|
2771
|
+
* Simulate setOwner
|
|
2772
|
+
* Returns gas estimate and result without sending transaction
|
|
2773
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2774
|
+
*/
|
|
2775
|
+
async setOwner(newOwner, options) {
|
|
2776
|
+
return contract.simulate.setOwner([newOwner], options);
|
|
2777
|
+
},
|
|
2778
|
+
/**
|
|
2779
|
+
* Simulate setPrices
|
|
2780
|
+
* Returns gas estimate and result without sending transaction
|
|
2781
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2782
|
+
*/
|
|
2783
|
+
async setPrices(buyT1, sellT1, options) {
|
|
2784
|
+
return contract.simulate.setPrices([buyT1, sellT1], options);
|
|
2785
|
+
},
|
|
2786
|
+
/**
|
|
2787
|
+
* Simulate swapExactTokensForTokens
|
|
2788
|
+
* Returns gas estimate and result without sending transaction
|
|
2789
|
+
* Supports multiple overloads: (uint256, uint256, address[], address, uint256), (address, address, uint256, uint256, address)
|
|
2790
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2791
|
+
*/
|
|
2792
|
+
async swapExactTokensForTokens(...args) {
|
|
2793
|
+
return contract.simulate.swapExactTokensForTokens(args);
|
|
2794
|
+
},
|
|
2795
|
+
/**
|
|
2796
|
+
* Simulate swapTokensForExactTokens
|
|
2797
|
+
* Returns gas estimate and result without sending transaction
|
|
2798
|
+
* Supports multiple overloads: (uint256, uint256, address[], address, uint256), (address, address, uint256, uint256, address)
|
|
2799
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2800
|
+
*/
|
|
2801
|
+
async swapTokensForExactTokens(...args) {
|
|
2802
|
+
return contract.simulate.swapTokensForExactTokens(args);
|
|
2803
|
+
},
|
|
2804
|
+
/**
|
|
2805
|
+
* Simulate transfer
|
|
2806
|
+
* Returns gas estimate and result without sending transaction
|
|
2807
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2808
|
+
*/
|
|
2809
|
+
async transfer(to, value, options) {
|
|
2810
|
+
return contract.simulate.transfer([to, value], options);
|
|
2811
|
+
},
|
|
2812
|
+
/**
|
|
2813
|
+
* Simulate transferFrom
|
|
2814
|
+
* Returns gas estimate and result without sending transaction
|
|
2815
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2816
|
+
*/
|
|
2817
|
+
async transferFrom(from, to, value, options) {
|
|
2818
|
+
return contract.simulate.transferFrom([from, to, value], options);
|
|
2819
|
+
},
|
|
2820
|
+
/**
|
|
2821
|
+
* Simulate unpause
|
|
2822
|
+
* Returns gas estimate and result without sending transaction
|
|
2823
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2824
|
+
*/
|
|
2825
|
+
async unpause(options) {
|
|
2826
|
+
return contract.simulate.unpause(options);
|
|
2827
|
+
}
|
|
2828
|
+
};
|
|
2829
|
+
}
|
|
2830
|
+
/**
|
|
2831
|
+
* Watch contract events
|
|
2832
|
+
*
|
|
2833
|
+
* @example
|
|
2834
|
+
* // Watch all Transfer events
|
|
2835
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
2836
|
+
* console.log('Transfer:', event);
|
|
2837
|
+
* });
|
|
2838
|
+
*
|
|
2839
|
+
* // Stop watching
|
|
2840
|
+
* unwatch();
|
|
2841
|
+
*/
|
|
2842
|
+
get watch() {
|
|
2843
|
+
return {
|
|
2844
|
+
/**
|
|
2845
|
+
* Watch ARMBufferUpdated events
|
|
2846
|
+
* @param callback Function to call when event is emitted
|
|
2847
|
+
* @param filter Optional filter for indexed parameters
|
|
2848
|
+
* @returns Unwatch function to stop listening
|
|
2849
|
+
*/
|
|
2850
|
+
ARMBufferUpdated: (callback) => {
|
|
2851
|
+
return this.publicClient.watchContractEvent({
|
|
2852
|
+
address: this.contractAddress,
|
|
2853
|
+
abi: exports.LidoARM_jsonAbi,
|
|
2854
|
+
eventName: 'ARMBufferUpdated',
|
|
2855
|
+
onLogs: (logs) => {
|
|
2856
|
+
logs.forEach((log) => {
|
|
2857
|
+
callback(log.args);
|
|
2858
|
+
});
|
|
2859
|
+
},
|
|
2860
|
+
});
|
|
2861
|
+
},
|
|
2862
|
+
/**
|
|
2863
|
+
* Watch ActiveMarketUpdated events
|
|
2864
|
+
* @param callback Function to call when event is emitted
|
|
2865
|
+
* @param filter Optional filter for indexed parameters
|
|
2866
|
+
* @returns Unwatch function to stop listening
|
|
2867
|
+
*/
|
|
2868
|
+
ActiveMarketUpdated: (callback, filter) => {
|
|
2869
|
+
return this.publicClient.watchContractEvent({
|
|
2870
|
+
address: this.contractAddress,
|
|
2871
|
+
abi: exports.LidoARM_jsonAbi,
|
|
2872
|
+
eventName: 'ActiveMarketUpdated',
|
|
2873
|
+
args: filter,
|
|
2874
|
+
onLogs: (logs) => {
|
|
2875
|
+
logs.forEach((log) => {
|
|
2876
|
+
callback(log.args);
|
|
2877
|
+
});
|
|
2878
|
+
},
|
|
2879
|
+
});
|
|
2880
|
+
},
|
|
2881
|
+
/**
|
|
2882
|
+
* Watch AdminChanged events
|
|
2883
|
+
* @param callback Function to call when event is emitted
|
|
2884
|
+
* @param filter Optional filter for indexed parameters
|
|
2885
|
+
* @returns Unwatch function to stop listening
|
|
2886
|
+
*/
|
|
2887
|
+
AdminChanged: (callback) => {
|
|
2888
|
+
return this.publicClient.watchContractEvent({
|
|
2889
|
+
address: this.contractAddress,
|
|
2890
|
+
abi: exports.LidoARM_jsonAbi,
|
|
2891
|
+
eventName: 'AdminChanged',
|
|
2892
|
+
onLogs: (logs) => {
|
|
2893
|
+
logs.forEach((log) => {
|
|
2894
|
+
callback(log.args);
|
|
2895
|
+
});
|
|
2896
|
+
},
|
|
2897
|
+
});
|
|
2898
|
+
},
|
|
2899
|
+
/**
|
|
2900
|
+
* Watch Allocated events
|
|
2901
|
+
* @param callback Function to call when event is emitted
|
|
2902
|
+
* @param filter Optional filter for indexed parameters
|
|
2903
|
+
* @returns Unwatch function to stop listening
|
|
2904
|
+
*/
|
|
2905
|
+
Allocated: (callback, filter) => {
|
|
2906
|
+
return this.publicClient.watchContractEvent({
|
|
2907
|
+
address: this.contractAddress,
|
|
2908
|
+
abi: exports.LidoARM_jsonAbi,
|
|
2909
|
+
eventName: 'Allocated',
|
|
2910
|
+
args: filter,
|
|
2911
|
+
onLogs: (logs) => {
|
|
2912
|
+
logs.forEach((log) => {
|
|
2913
|
+
callback(log.args);
|
|
2914
|
+
});
|
|
2915
|
+
},
|
|
2916
|
+
});
|
|
2917
|
+
},
|
|
2918
|
+
/**
|
|
2919
|
+
* Watch Approval events
|
|
2920
|
+
* @param callback Function to call when event is emitted
|
|
2921
|
+
* @param filter Optional filter for indexed parameters
|
|
2922
|
+
* @returns Unwatch function to stop listening
|
|
2923
|
+
*/
|
|
2924
|
+
Approval: (callback, filter) => {
|
|
2925
|
+
return this.publicClient.watchContractEvent({
|
|
2926
|
+
address: this.contractAddress,
|
|
2927
|
+
abi: exports.LidoARM_jsonAbi,
|
|
2928
|
+
eventName: 'Approval',
|
|
2929
|
+
args: filter,
|
|
2930
|
+
onLogs: (logs) => {
|
|
2931
|
+
logs.forEach((log) => {
|
|
2932
|
+
callback(log.args);
|
|
2933
|
+
});
|
|
2934
|
+
},
|
|
2935
|
+
});
|
|
2936
|
+
},
|
|
2937
|
+
/**
|
|
2938
|
+
* Watch CapManagerUpdated events
|
|
2939
|
+
* @param callback Function to call when event is emitted
|
|
2940
|
+
* @param filter Optional filter for indexed parameters
|
|
2941
|
+
* @returns Unwatch function to stop listening
|
|
2942
|
+
*/
|
|
2943
|
+
CapManagerUpdated: (callback, filter) => {
|
|
2944
|
+
return this.publicClient.watchContractEvent({
|
|
2945
|
+
address: this.contractAddress,
|
|
2946
|
+
abi: exports.LidoARM_jsonAbi,
|
|
2947
|
+
eventName: 'CapManagerUpdated',
|
|
2948
|
+
args: filter,
|
|
2949
|
+
onLogs: (logs) => {
|
|
2950
|
+
logs.forEach((log) => {
|
|
2951
|
+
callback(log.args);
|
|
2952
|
+
});
|
|
2953
|
+
},
|
|
2954
|
+
});
|
|
2955
|
+
},
|
|
2956
|
+
/**
|
|
2957
|
+
* Watch ClaimLidoWithdrawals events
|
|
2958
|
+
* @param callback Function to call when event is emitted
|
|
2959
|
+
* @param filter Optional filter for indexed parameters
|
|
2960
|
+
* @returns Unwatch function to stop listening
|
|
2961
|
+
*/
|
|
2962
|
+
ClaimLidoWithdrawals: (callback) => {
|
|
2963
|
+
return this.publicClient.watchContractEvent({
|
|
2964
|
+
address: this.contractAddress,
|
|
2965
|
+
abi: exports.LidoARM_jsonAbi,
|
|
2966
|
+
eventName: 'ClaimLidoWithdrawals',
|
|
2967
|
+
onLogs: (logs) => {
|
|
2968
|
+
logs.forEach((log) => {
|
|
2969
|
+
callback(log.args);
|
|
2970
|
+
});
|
|
2971
|
+
},
|
|
2972
|
+
});
|
|
2973
|
+
},
|
|
2974
|
+
/**
|
|
2975
|
+
* Watch CrossPriceUpdated events
|
|
2976
|
+
* @param callback Function to call when event is emitted
|
|
2977
|
+
* @param filter Optional filter for indexed parameters
|
|
2978
|
+
* @returns Unwatch function to stop listening
|
|
2979
|
+
*/
|
|
2980
|
+
CrossPriceUpdated: (callback) => {
|
|
2981
|
+
return this.publicClient.watchContractEvent({
|
|
2982
|
+
address: this.contractAddress,
|
|
2983
|
+
abi: exports.LidoARM_jsonAbi,
|
|
2984
|
+
eventName: 'CrossPriceUpdated',
|
|
2985
|
+
onLogs: (logs) => {
|
|
2986
|
+
logs.forEach((log) => {
|
|
2987
|
+
callback(log.args);
|
|
2988
|
+
});
|
|
2989
|
+
},
|
|
2990
|
+
});
|
|
2991
|
+
},
|
|
2992
|
+
/**
|
|
2993
|
+
* Watch Deposit events
|
|
2994
|
+
* @param callback Function to call when event is emitted
|
|
2995
|
+
* @param filter Optional filter for indexed parameters
|
|
2996
|
+
* @returns Unwatch function to stop listening
|
|
2997
|
+
*/
|
|
2998
|
+
Deposit: (callback, filter) => {
|
|
2999
|
+
return this.publicClient.watchContractEvent({
|
|
3000
|
+
address: this.contractAddress,
|
|
3001
|
+
abi: exports.LidoARM_jsonAbi,
|
|
3002
|
+
eventName: 'Deposit',
|
|
3003
|
+
args: filter,
|
|
3004
|
+
onLogs: (logs) => {
|
|
3005
|
+
logs.forEach((log) => {
|
|
3006
|
+
callback(log.args);
|
|
3007
|
+
});
|
|
3008
|
+
},
|
|
3009
|
+
});
|
|
3010
|
+
},
|
|
3011
|
+
/**
|
|
3012
|
+
* Watch FeeCollected events
|
|
3013
|
+
* @param callback Function to call when event is emitted
|
|
3014
|
+
* @param filter Optional filter for indexed parameters
|
|
3015
|
+
* @returns Unwatch function to stop listening
|
|
3016
|
+
*/
|
|
3017
|
+
FeeCollected: (callback, filter) => {
|
|
3018
|
+
return this.publicClient.watchContractEvent({
|
|
3019
|
+
address: this.contractAddress,
|
|
3020
|
+
abi: exports.LidoARM_jsonAbi,
|
|
3021
|
+
eventName: 'FeeCollected',
|
|
3022
|
+
args: filter,
|
|
3023
|
+
onLogs: (logs) => {
|
|
3024
|
+
logs.forEach((log) => {
|
|
3025
|
+
callback(log.args);
|
|
3026
|
+
});
|
|
3027
|
+
},
|
|
3028
|
+
});
|
|
3029
|
+
},
|
|
3030
|
+
/**
|
|
3031
|
+
* Watch FeeCollectorUpdated events
|
|
3032
|
+
* @param callback Function to call when event is emitted
|
|
3033
|
+
* @param filter Optional filter for indexed parameters
|
|
3034
|
+
* @returns Unwatch function to stop listening
|
|
3035
|
+
*/
|
|
3036
|
+
FeeCollectorUpdated: (callback, filter) => {
|
|
3037
|
+
return this.publicClient.watchContractEvent({
|
|
3038
|
+
address: this.contractAddress,
|
|
3039
|
+
abi: exports.LidoARM_jsonAbi,
|
|
3040
|
+
eventName: 'FeeCollectorUpdated',
|
|
3041
|
+
args: filter,
|
|
3042
|
+
onLogs: (logs) => {
|
|
3043
|
+
logs.forEach((log) => {
|
|
3044
|
+
callback(log.args);
|
|
3045
|
+
});
|
|
3046
|
+
},
|
|
3047
|
+
});
|
|
3048
|
+
},
|
|
3049
|
+
/**
|
|
3050
|
+
* Watch FeeUpdated events
|
|
3051
|
+
* @param callback Function to call when event is emitted
|
|
3052
|
+
* @param filter Optional filter for indexed parameters
|
|
3053
|
+
* @returns Unwatch function to stop listening
|
|
3054
|
+
*/
|
|
3055
|
+
FeeUpdated: (callback) => {
|
|
3056
|
+
return this.publicClient.watchContractEvent({
|
|
3057
|
+
address: this.contractAddress,
|
|
3058
|
+
abi: exports.LidoARM_jsonAbi,
|
|
3059
|
+
eventName: 'FeeUpdated',
|
|
3060
|
+
onLogs: (logs) => {
|
|
3061
|
+
logs.forEach((log) => {
|
|
3062
|
+
callback(log.args);
|
|
3063
|
+
});
|
|
3064
|
+
},
|
|
3065
|
+
});
|
|
3066
|
+
},
|
|
3067
|
+
/**
|
|
3068
|
+
* Watch Initialized events
|
|
3069
|
+
* @param callback Function to call when event is emitted
|
|
3070
|
+
* @param filter Optional filter for indexed parameters
|
|
3071
|
+
* @returns Unwatch function to stop listening
|
|
3072
|
+
*/
|
|
3073
|
+
Initialized: (callback) => {
|
|
3074
|
+
return this.publicClient.watchContractEvent({
|
|
3075
|
+
address: this.contractAddress,
|
|
3076
|
+
abi: exports.LidoARM_jsonAbi,
|
|
3077
|
+
eventName: 'Initialized',
|
|
3078
|
+
onLogs: (logs) => {
|
|
3079
|
+
logs.forEach((log) => {
|
|
3080
|
+
callback(log.args);
|
|
3081
|
+
});
|
|
3082
|
+
},
|
|
3083
|
+
});
|
|
3084
|
+
},
|
|
3085
|
+
/**
|
|
3086
|
+
* Watch MarketAdded events
|
|
3087
|
+
* @param callback Function to call when event is emitted
|
|
3088
|
+
* @param filter Optional filter for indexed parameters
|
|
3089
|
+
* @returns Unwatch function to stop listening
|
|
3090
|
+
*/
|
|
3091
|
+
MarketAdded: (callback, filter) => {
|
|
3092
|
+
return this.publicClient.watchContractEvent({
|
|
3093
|
+
address: this.contractAddress,
|
|
3094
|
+
abi: exports.LidoARM_jsonAbi,
|
|
3095
|
+
eventName: 'MarketAdded',
|
|
3096
|
+
args: filter,
|
|
3097
|
+
onLogs: (logs) => {
|
|
3098
|
+
logs.forEach((log) => {
|
|
3099
|
+
callback(log.args);
|
|
3100
|
+
});
|
|
3101
|
+
},
|
|
3102
|
+
});
|
|
3103
|
+
},
|
|
3104
|
+
/**
|
|
3105
|
+
* Watch MarketRemoved events
|
|
3106
|
+
* @param callback Function to call when event is emitted
|
|
3107
|
+
* @param filter Optional filter for indexed parameters
|
|
3108
|
+
* @returns Unwatch function to stop listening
|
|
3109
|
+
*/
|
|
3110
|
+
MarketRemoved: (callback, filter) => {
|
|
3111
|
+
return this.publicClient.watchContractEvent({
|
|
3112
|
+
address: this.contractAddress,
|
|
3113
|
+
abi: exports.LidoARM_jsonAbi,
|
|
3114
|
+
eventName: 'MarketRemoved',
|
|
3115
|
+
args: filter,
|
|
3116
|
+
onLogs: (logs) => {
|
|
3117
|
+
logs.forEach((log) => {
|
|
3118
|
+
callback(log.args);
|
|
3119
|
+
});
|
|
3120
|
+
},
|
|
3121
|
+
});
|
|
3122
|
+
},
|
|
3123
|
+
/**
|
|
3124
|
+
* Watch OperatorChanged events
|
|
3125
|
+
* @param callback Function to call when event is emitted
|
|
3126
|
+
* @param filter Optional filter for indexed parameters
|
|
3127
|
+
* @returns Unwatch function to stop listening
|
|
3128
|
+
*/
|
|
3129
|
+
OperatorChanged: (callback) => {
|
|
3130
|
+
return this.publicClient.watchContractEvent({
|
|
3131
|
+
address: this.contractAddress,
|
|
3132
|
+
abi: exports.LidoARM_jsonAbi,
|
|
3133
|
+
eventName: 'OperatorChanged',
|
|
3134
|
+
onLogs: (logs) => {
|
|
3135
|
+
logs.forEach((log) => {
|
|
3136
|
+
callback(log.args);
|
|
3137
|
+
});
|
|
3138
|
+
},
|
|
3139
|
+
});
|
|
3140
|
+
},
|
|
3141
|
+
/**
|
|
3142
|
+
* Watch Paused events
|
|
3143
|
+
* @param callback Function to call when event is emitted
|
|
3144
|
+
* @param filter Optional filter for indexed parameters
|
|
3145
|
+
* @returns Unwatch function to stop listening
|
|
3146
|
+
*/
|
|
3147
|
+
Paused: (callback, filter) => {
|
|
3148
|
+
return this.publicClient.watchContractEvent({
|
|
3149
|
+
address: this.contractAddress,
|
|
3150
|
+
abi: exports.LidoARM_jsonAbi,
|
|
3151
|
+
eventName: 'Paused',
|
|
3152
|
+
args: filter,
|
|
3153
|
+
onLogs: (logs) => {
|
|
3154
|
+
logs.forEach((log) => {
|
|
3155
|
+
callback(log.args);
|
|
3156
|
+
});
|
|
3157
|
+
},
|
|
3158
|
+
});
|
|
3159
|
+
},
|
|
3160
|
+
/**
|
|
3161
|
+
* Watch RedeemClaimed events
|
|
3162
|
+
* @param callback Function to call when event is emitted
|
|
3163
|
+
* @param filter Optional filter for indexed parameters
|
|
3164
|
+
* @returns Unwatch function to stop listening
|
|
3165
|
+
*/
|
|
3166
|
+
RedeemClaimed: (callback, filter) => {
|
|
3167
|
+
return this.publicClient.watchContractEvent({
|
|
3168
|
+
address: this.contractAddress,
|
|
3169
|
+
abi: exports.LidoARM_jsonAbi,
|
|
3170
|
+
eventName: 'RedeemClaimed',
|
|
3171
|
+
args: filter,
|
|
3172
|
+
onLogs: (logs) => {
|
|
3173
|
+
logs.forEach((log) => {
|
|
3174
|
+
callback(log.args);
|
|
3175
|
+
});
|
|
3176
|
+
},
|
|
3177
|
+
});
|
|
3178
|
+
},
|
|
3179
|
+
/**
|
|
3180
|
+
* Watch RedeemRequested events
|
|
3181
|
+
* @param callback Function to call when event is emitted
|
|
3182
|
+
* @param filter Optional filter for indexed parameters
|
|
3183
|
+
* @returns Unwatch function to stop listening
|
|
3184
|
+
*/
|
|
3185
|
+
RedeemRequested: (callback, filter) => {
|
|
3186
|
+
return this.publicClient.watchContractEvent({
|
|
3187
|
+
address: this.contractAddress,
|
|
3188
|
+
abi: exports.LidoARM_jsonAbi,
|
|
3189
|
+
eventName: 'RedeemRequested',
|
|
3190
|
+
args: filter,
|
|
3191
|
+
onLogs: (logs) => {
|
|
3192
|
+
logs.forEach((log) => {
|
|
3193
|
+
callback(log.args);
|
|
3194
|
+
});
|
|
3195
|
+
},
|
|
3196
|
+
});
|
|
3197
|
+
},
|
|
3198
|
+
/**
|
|
3199
|
+
* Watch RegisterLidoWithdrawalRequests events
|
|
3200
|
+
* @param callback Function to call when event is emitted
|
|
3201
|
+
* @param filter Optional filter for indexed parameters
|
|
3202
|
+
* @returns Unwatch function to stop listening
|
|
3203
|
+
*/
|
|
3204
|
+
RegisterLidoWithdrawalRequests: (callback) => {
|
|
3205
|
+
return this.publicClient.watchContractEvent({
|
|
3206
|
+
address: this.contractAddress,
|
|
3207
|
+
abi: exports.LidoARM_jsonAbi,
|
|
3208
|
+
eventName: 'RegisterLidoWithdrawalRequests',
|
|
3209
|
+
onLogs: (logs) => {
|
|
3210
|
+
logs.forEach((log) => {
|
|
3211
|
+
callback(log.args);
|
|
3212
|
+
});
|
|
3213
|
+
},
|
|
3214
|
+
});
|
|
3215
|
+
},
|
|
3216
|
+
/**
|
|
3217
|
+
* Watch RequestLidoWithdrawals events
|
|
3218
|
+
* @param callback Function to call when event is emitted
|
|
3219
|
+
* @param filter Optional filter for indexed parameters
|
|
3220
|
+
* @returns Unwatch function to stop listening
|
|
3221
|
+
*/
|
|
3222
|
+
RequestLidoWithdrawals: (callback) => {
|
|
3223
|
+
return this.publicClient.watchContractEvent({
|
|
3224
|
+
address: this.contractAddress,
|
|
3225
|
+
abi: exports.LidoARM_jsonAbi,
|
|
3226
|
+
eventName: 'RequestLidoWithdrawals',
|
|
3227
|
+
onLogs: (logs) => {
|
|
3228
|
+
logs.forEach((log) => {
|
|
3229
|
+
callback(log.args);
|
|
3230
|
+
});
|
|
3231
|
+
},
|
|
3232
|
+
});
|
|
3233
|
+
},
|
|
3234
|
+
/**
|
|
3235
|
+
* Watch TraderateChanged events
|
|
3236
|
+
* @param callback Function to call when event is emitted
|
|
3237
|
+
* @param filter Optional filter for indexed parameters
|
|
3238
|
+
* @returns Unwatch function to stop listening
|
|
3239
|
+
*/
|
|
3240
|
+
TraderateChanged: (callback) => {
|
|
3241
|
+
return this.publicClient.watchContractEvent({
|
|
3242
|
+
address: this.contractAddress,
|
|
3243
|
+
abi: exports.LidoARM_jsonAbi,
|
|
3244
|
+
eventName: 'TraderateChanged',
|
|
3245
|
+
onLogs: (logs) => {
|
|
3246
|
+
logs.forEach((log) => {
|
|
3247
|
+
callback(log.args);
|
|
3248
|
+
});
|
|
3249
|
+
},
|
|
3250
|
+
});
|
|
3251
|
+
},
|
|
3252
|
+
/**
|
|
3253
|
+
* Watch Transfer events
|
|
3254
|
+
* @param callback Function to call when event is emitted
|
|
3255
|
+
* @param filter Optional filter for indexed parameters
|
|
3256
|
+
* @returns Unwatch function to stop listening
|
|
3257
|
+
*/
|
|
3258
|
+
Transfer: (callback, filter) => {
|
|
3259
|
+
return this.publicClient.watchContractEvent({
|
|
3260
|
+
address: this.contractAddress,
|
|
3261
|
+
abi: exports.LidoARM_jsonAbi,
|
|
3262
|
+
eventName: 'Transfer',
|
|
3263
|
+
args: filter,
|
|
3264
|
+
onLogs: (logs) => {
|
|
3265
|
+
logs.forEach((log) => {
|
|
3266
|
+
callback(log.args);
|
|
3267
|
+
});
|
|
3268
|
+
},
|
|
3269
|
+
});
|
|
3270
|
+
},
|
|
3271
|
+
/**
|
|
3272
|
+
* Watch Unpaused events
|
|
3273
|
+
* @param callback Function to call when event is emitted
|
|
3274
|
+
* @param filter Optional filter for indexed parameters
|
|
3275
|
+
* @returns Unwatch function to stop listening
|
|
3276
|
+
*/
|
|
3277
|
+
Unpaused: (callback, filter) => {
|
|
3278
|
+
return this.publicClient.watchContractEvent({
|
|
3279
|
+
address: this.contractAddress,
|
|
3280
|
+
abi: exports.LidoARM_jsonAbi,
|
|
3281
|
+
eventName: 'Unpaused',
|
|
3282
|
+
args: filter,
|
|
3283
|
+
onLogs: (logs) => {
|
|
3284
|
+
logs.forEach((log) => {
|
|
3285
|
+
callback(log.args);
|
|
3286
|
+
});
|
|
3287
|
+
},
|
|
3288
|
+
});
|
|
3289
|
+
}
|
|
3290
|
+
};
|
|
3291
|
+
}
|
|
3292
|
+
}
|
|
3293
|
+
exports.LidoARM_json = LidoARM_json;
|