@gitmyabi/vault 1.0.7 → 1.0.8

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.
@@ -9,53 +9,121 @@ const viem_1 = require("viem");
9
9
  */
10
10
  exports.Vault_jsonAbi = [
11
11
  {
12
- "inputs": [],
12
+ "inputs": [
13
+ {
14
+ "internalType": "contract IERC721",
15
+ "name": "_nftContract",
16
+ "type": "address"
17
+ },
18
+ {
19
+ "internalType": "uint256",
20
+ "name": "_emergencyPenalty",
21
+ "type": "uint256"
22
+ },
23
+ {
24
+ "internalType": "address",
25
+ "name": "_emergencyPenaltyReceiver",
26
+ "type": "address"
27
+ },
28
+ {
29
+ "internalType": "uint256",
30
+ "name": "_successFee",
31
+ "type": "uint256"
32
+ },
33
+ {
34
+ "internalType": "address",
35
+ "name": "_successFeeReceiver",
36
+ "type": "address"
37
+ }
38
+ ],
13
39
  "stateMutability": "nonpayable",
14
40
  "type": "constructor"
15
41
  },
16
42
  {
17
- "anonymous": false,
18
43
  "inputs": [
19
44
  {
20
- "indexed": false,
21
45
  "internalType": "address",
22
- "name": "previousAdmin",
46
+ "name": "owner",
23
47
  "type": "address"
24
- },
48
+ }
49
+ ],
50
+ "name": "OwnableInvalidOwner",
51
+ "type": "error"
52
+ },
53
+ {
54
+ "inputs": [
25
55
  {
26
- "indexed": false,
27
56
  "internalType": "address",
28
- "name": "newAdmin",
57
+ "name": "account",
29
58
  "type": "address"
30
59
  }
31
60
  ],
32
- "name": "AdminChanged",
33
- "type": "event"
61
+ "name": "OwnableUnauthorizedAccount",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [],
66
+ "name": "ReentrancyGuardReentrantCall",
67
+ "type": "error"
34
68
  },
35
69
  {
36
- "anonymous": false,
37
70
  "inputs": [
38
71
  {
39
- "indexed": true,
40
72
  "internalType": "address",
41
- "name": "beacon",
73
+ "name": "token",
42
74
  "type": "address"
43
75
  }
44
76
  ],
45
- "name": "BeaconUpgraded",
46
- "type": "event"
77
+ "name": "SafeERC20FailedOperation",
78
+ "type": "error"
47
79
  },
48
80
  {
49
81
  "anonymous": false,
50
82
  "inputs": [
51
83
  {
52
84
  "indexed": false,
53
- "internalType": "uint8",
54
- "name": "version",
55
- "type": "uint8"
85
+ "internalType": "uint256",
86
+ "name": "uid",
87
+ "type": "uint256"
88
+ },
89
+ {
90
+ "indexed": false,
91
+ "internalType": "uint256",
92
+ "name": "startTimestamp",
93
+ "type": "uint256"
94
+ },
95
+ {
96
+ "indexed": false,
97
+ "internalType": "uint256",
98
+ "name": "endTimestamp",
99
+ "type": "uint256"
100
+ },
101
+ {
102
+ "indexed": false,
103
+ "internalType": "address[]",
104
+ "name": "tokens",
105
+ "type": "address[]"
106
+ },
107
+ {
108
+ "indexed": false,
109
+ "internalType": "uint256[]",
110
+ "name": "amounts",
111
+ "type": "uint256[]"
112
+ },
113
+ {
114
+ "indexed": false,
115
+ "internalType": "uint256[]",
116
+ "name": "prices",
117
+ "type": "uint256[]"
118
+ },
119
+ {
120
+ "indexed": false,
121
+ "internalType": "address",
122
+ "name": "receiver",
123
+ "type": "address"
56
124
  }
57
125
  ],
58
- "name": "Initialized",
126
+ "name": "NewDeposit",
59
127
  "type": "event"
60
128
  },
61
129
  {
@@ -81,75 +149,114 @@ exports.Vault_jsonAbi = [
81
149
  "anonymous": false,
82
150
  "inputs": [
83
151
  {
84
- "indexed": true,
85
- "internalType": "bytes32",
86
- "name": "role",
87
- "type": "bytes32"
88
- },
89
- {
90
- "indexed": true,
91
- "internalType": "bytes32",
92
- "name": "previousAdminRole",
93
- "type": "bytes32"
94
- },
152
+ "indexed": false,
153
+ "internalType": "uint256",
154
+ "name": "emergencyPenalty",
155
+ "type": "uint256"
156
+ }
157
+ ],
158
+ "name": "SetEmergencyPenalty",
159
+ "type": "event"
160
+ },
161
+ {
162
+ "anonymous": false,
163
+ "inputs": [
95
164
  {
96
- "indexed": true,
97
- "internalType": "bytes32",
98
- "name": "newAdminRole",
99
- "type": "bytes32"
165
+ "indexed": false,
166
+ "internalType": "address",
167
+ "name": "emergencyPenaltyReceiver",
168
+ "type": "address"
100
169
  }
101
170
  ],
102
- "name": "RoleAdminChanged",
171
+ "name": "SetEmergencyPenaltyReceiver",
103
172
  "type": "event"
104
173
  },
105
174
  {
106
175
  "anonymous": false,
107
176
  "inputs": [
108
177
  {
109
- "indexed": true,
110
- "internalType": "bytes32",
111
- "name": "role",
112
- "type": "bytes32"
113
- },
178
+ "indexed": false,
179
+ "internalType": "uint256",
180
+ "name": "successFee",
181
+ "type": "uint256"
182
+ }
183
+ ],
184
+ "name": "SetSuccessFee",
185
+ "type": "event"
186
+ },
187
+ {
188
+ "anonymous": false,
189
+ "inputs": [
114
190
  {
115
- "indexed": true,
191
+ "indexed": false,
116
192
  "internalType": "address",
117
- "name": "account",
193
+ "name": "successFeeReceiver",
118
194
  "type": "address"
195
+ }
196
+ ],
197
+ "name": "SetSuccessFeeReceiver",
198
+ "type": "event"
199
+ },
200
+ {
201
+ "anonymous": false,
202
+ "inputs": [
203
+ {
204
+ "indexed": false,
205
+ "internalType": "uint256",
206
+ "name": "uid",
207
+ "type": "uint256"
119
208
  },
120
209
  {
121
- "indexed": true,
210
+ "indexed": false,
122
211
  "internalType": "address",
123
- "name": "sender",
212
+ "name": "token",
124
213
  "type": "address"
214
+ },
215
+ {
216
+ "indexed": false,
217
+ "internalType": "uint256",
218
+ "name": "amount",
219
+ "type": "uint256"
125
220
  }
126
221
  ],
127
- "name": "RoleGranted",
222
+ "name": "SuccessFeeCharged",
128
223
  "type": "event"
129
224
  },
130
225
  {
131
226
  "anonymous": false,
132
227
  "inputs": [
133
228
  {
134
- "indexed": true,
135
- "internalType": "bytes32",
136
- "name": "role",
137
- "type": "bytes32"
138
- },
139
- {
140
- "indexed": true,
229
+ "indexed": false,
141
230
  "internalType": "address",
142
- "name": "account",
231
+ "name": "token",
143
232
  "type": "address"
144
233
  },
145
234
  {
146
- "indexed": true,
235
+ "indexed": false,
147
236
  "internalType": "address",
148
- "name": "sender",
237
+ "name": "stateView",
149
238
  "type": "address"
239
+ },
240
+ {
241
+ "indexed": false,
242
+ "internalType": "bytes32",
243
+ "name": "poolId",
244
+ "type": "bytes32"
245
+ },
246
+ {
247
+ "indexed": false,
248
+ "internalType": "bool",
249
+ "name": "isToken0",
250
+ "type": "bool"
251
+ },
252
+ {
253
+ "indexed": false,
254
+ "internalType": "bool",
255
+ "name": "status",
256
+ "type": "bool"
150
257
  }
151
258
  ],
152
- "name": "RoleRevoked",
259
+ "name": "TokenUpdated",
153
260
  "type": "event"
154
261
  },
155
262
  {
@@ -158,21 +265,33 @@ exports.Vault_jsonAbi = [
158
265
  {
159
266
  "indexed": true,
160
267
  "internalType": "address",
161
- "name": "implementation",
268
+ "name": "user",
162
269
  "type": "address"
270
+ },
271
+ {
272
+ "indexed": false,
273
+ "internalType": "uint256",
274
+ "name": "uid",
275
+ "type": "uint256"
276
+ },
277
+ {
278
+ "indexed": false,
279
+ "internalType": "bool",
280
+ "name": "isEmergency",
281
+ "type": "bool"
163
282
  }
164
283
  ],
165
- "name": "Upgraded",
284
+ "name": "Withdraw",
166
285
  "type": "event"
167
286
  },
168
287
  {
169
288
  "inputs": [],
170
- "name": "DEFAULT_ADMIN_ROLE",
289
+ "name": "FEES_DECIMALS",
171
290
  "outputs": [
172
291
  {
173
- "internalType": "bytes32",
292
+ "internalType": "uint256",
174
293
  "name": "",
175
- "type": "bytes32"
294
+ "type": "uint256"
176
295
  }
177
296
  ],
178
297
  "stateMutability": "view",
@@ -180,12 +299,12 @@ exports.Vault_jsonAbi = [
180
299
  },
181
300
  {
182
301
  "inputs": [],
183
- "name": "PAYEE_ROLE",
302
+ "name": "MAX_TERM",
184
303
  "outputs": [
185
304
  {
186
- "internalType": "bytes32",
305
+ "internalType": "uint256",
187
306
  "name": "",
188
- "type": "bytes32"
307
+ "type": "uint256"
189
308
  }
190
309
  ],
191
310
  "stateMutability": "view",
@@ -193,12 +312,12 @@ exports.Vault_jsonAbi = [
193
312
  },
194
313
  {
195
314
  "inputs": [],
196
- "name": "PAYER_ROLE",
315
+ "name": "MAX_TOKENS_IN_DEPOSIT",
197
316
  "outputs": [
198
317
  {
199
- "internalType": "bytes32",
318
+ "internalType": "uint256",
200
319
  "name": "",
201
- "type": "bytes32"
320
+ "type": "uint256"
202
321
  }
203
322
  ],
204
323
  "stateMutability": "view",
@@ -207,45 +326,51 @@ exports.Vault_jsonAbi = [
207
326
  {
208
327
  "inputs": [
209
328
  {
210
- "internalType": "contract IERC20Upgradeable[]",
211
- "name": "tokens",
212
- "type": "address[]"
329
+ "internalType": "address",
330
+ "name": "",
331
+ "type": "address"
332
+ }
333
+ ],
334
+ "name": "allowedTokens",
335
+ "outputs": [
336
+ {
337
+ "internalType": "address",
338
+ "name": "token",
339
+ "type": "address"
213
340
  },
214
341
  {
215
- "internalType": "address[]",
216
- "name": "payees",
217
- "type": "address[]"
342
+ "internalType": "address",
343
+ "name": "stateView",
344
+ "type": "address"
218
345
  },
219
346
  {
220
- "internalType": "uint256[]",
221
- "name": "amounts",
222
- "type": "uint256[]"
347
+ "internalType": "bytes32",
348
+ "name": "poolId",
349
+ "type": "bytes32"
350
+ },
351
+ {
352
+ "internalType": "bool",
353
+ "name": "isToken0",
354
+ "type": "bool"
355
+ },
356
+ {
357
+ "internalType": "bool",
358
+ "name": "status",
359
+ "type": "bool"
223
360
  }
224
361
  ],
225
- "name": "batchTransferErc20",
226
- "outputs": [],
227
- "stateMutability": "nonpayable",
362
+ "stateMutability": "view",
228
363
  "type": "function"
229
364
  },
230
365
  {
231
366
  "inputs": [
232
367
  {
233
- "internalType": "contract IERC721Upgradeable[]",
234
- "name": "tokens",
235
- "type": "address[]"
236
- },
237
- {
238
- "internalType": "address[]",
239
- "name": "payees",
240
- "type": "address[]"
241
- },
242
- {
243
- "internalType": "uint256[]",
244
- "name": "tokenIds",
245
- "type": "uint256[]"
368
+ "internalType": "uint256",
369
+ "name": "_newEmergencyPenalty",
370
+ "type": "uint256"
246
371
  }
247
372
  ],
248
- "name": "batchTransferErc721",
373
+ "name": "changeEmergencyPenalty",
249
374
  "outputs": [],
250
375
  "stateMutability": "nonpayable",
251
376
  "type": "function"
@@ -253,17 +378,12 @@ exports.Vault_jsonAbi = [
253
378
  {
254
379
  "inputs": [
255
380
  {
256
- "internalType": "address[]",
257
- "name": "payees",
258
- "type": "address[]"
259
- },
260
- {
261
- "internalType": "uint256[]",
262
- "name": "amounts",
263
- "type": "uint256[]"
381
+ "internalType": "address",
382
+ "name": "_newEmergencyPenaltyReveiver",
383
+ "type": "address"
264
384
  }
265
385
  ],
266
- "name": "batchTransferEther",
386
+ "name": "changeEmergencyPenaltyReceiver",
267
387
  "outputs": [],
268
388
  "stateMutability": "nonpayable",
269
389
  "type": "function"
@@ -271,154 +391,156 @@ exports.Vault_jsonAbi = [
271
391
  {
272
392
  "inputs": [
273
393
  {
274
- "internalType": "bytes32",
275
- "name": "role",
276
- "type": "bytes32"
394
+ "internalType": "uint256",
395
+ "name": "_newSuccessFee",
396
+ "type": "uint256"
277
397
  }
278
398
  ],
279
- "name": "getRoleAdmin",
280
- "outputs": [
399
+ "name": "changeSuccessFee",
400
+ "outputs": [],
401
+ "stateMutability": "nonpayable",
402
+ "type": "function"
403
+ },
404
+ {
405
+ "inputs": [
281
406
  {
282
- "internalType": "bytes32",
283
- "name": "",
284
- "type": "bytes32"
407
+ "internalType": "address",
408
+ "name": "_successFeeReceiver",
409
+ "type": "address"
285
410
  }
286
411
  ],
287
- "stateMutability": "view",
412
+ "name": "changeSuccessFeeReceiver",
413
+ "outputs": [],
414
+ "stateMutability": "nonpayable",
288
415
  "type": "function"
289
416
  },
290
417
  {
291
418
  "inputs": [
292
419
  {
293
- "internalType": "bytes32",
294
- "name": "role",
295
- "type": "bytes32"
420
+ "internalType": "address[]",
421
+ "name": "_tokens",
422
+ "type": "address[]"
423
+ },
424
+ {
425
+ "internalType": "uint256[]",
426
+ "name": "_amounts",
427
+ "type": "uint256[]"
296
428
  },
297
429
  {
298
430
  "internalType": "uint256",
299
- "name": "index",
431
+ "name": "_term",
300
432
  "type": "uint256"
433
+ },
434
+ {
435
+ "internalType": "address",
436
+ "name": "receiver",
437
+ "type": "address"
301
438
  }
302
439
  ],
303
- "name": "getRoleMember",
440
+ "name": "createDeposit",
304
441
  "outputs": [
305
442
  {
306
- "internalType": "address",
443
+ "internalType": "uint256",
307
444
  "name": "",
308
- "type": "address"
445
+ "type": "uint256"
309
446
  }
310
447
  ],
311
- "stateMutability": "view",
448
+ "stateMutability": "nonpayable",
312
449
  "type": "function"
313
450
  },
314
451
  {
315
452
  "inputs": [
316
453
  {
317
- "internalType": "bytes32",
318
- "name": "role",
319
- "type": "bytes32"
454
+ "internalType": "uint256",
455
+ "name": "",
456
+ "type": "uint256"
320
457
  }
321
458
  ],
322
- "name": "getRoleMemberCount",
459
+ "name": "deposits",
323
460
  "outputs": [
324
461
  {
325
462
  "internalType": "uint256",
326
- "name": "",
463
+ "name": "startTimestamp",
327
464
  "type": "uint256"
328
- }
329
- ],
330
- "stateMutability": "view",
331
- "type": "function"
332
- },
333
- {
334
- "inputs": [
465
+ },
335
466
  {
336
- "internalType": "bytes32",
337
- "name": "role",
338
- "type": "bytes32"
467
+ "internalType": "uint256",
468
+ "name": "endTimestamp",
469
+ "type": "uint256"
339
470
  },
340
471
  {
341
- "internalType": "address",
342
- "name": "account",
343
- "type": "address"
472
+ "internalType": "bool",
473
+ "name": "active",
474
+ "type": "bool"
344
475
  }
345
476
  ],
346
- "name": "grantRole",
347
- "outputs": [],
348
- "stateMutability": "nonpayable",
477
+ "stateMutability": "view",
349
478
  "type": "function"
350
479
  },
351
480
  {
352
- "inputs": [
353
- {
354
- "internalType": "bytes32",
355
- "name": "role",
356
- "type": "bytes32"
357
- },
481
+ "inputs": [],
482
+ "name": "emergencyPenalty",
483
+ "outputs": [
358
484
  {
359
- "internalType": "address",
360
- "name": "account",
361
- "type": "address"
485
+ "internalType": "uint256",
486
+ "name": "",
487
+ "type": "uint256"
362
488
  }
363
489
  ],
364
- "name": "hasRole",
490
+ "stateMutability": "view",
491
+ "type": "function"
492
+ },
493
+ {
494
+ "inputs": [],
495
+ "name": "emergencyPenaltyReceiver",
365
496
  "outputs": [
366
497
  {
367
- "internalType": "bool",
498
+ "internalType": "address",
368
499
  "name": "",
369
- "type": "bool"
500
+ "type": "address"
370
501
  }
371
502
  ],
372
503
  "stateMutability": "view",
373
504
  "type": "function"
374
505
  },
375
506
  {
376
- "inputs": [],
377
- "name": "initialize",
507
+ "inputs": [
508
+ {
509
+ "internalType": "uint256",
510
+ "name": "_uid",
511
+ "type": "uint256"
512
+ }
513
+ ],
514
+ "name": "emergencyWithdraw",
378
515
  "outputs": [],
379
516
  "stateMutability": "nonpayable",
380
517
  "type": "function"
381
518
  },
382
519
  {
383
520
  "inputs": [
384
- {
385
- "internalType": "address",
386
- "name": "",
387
- "type": "address"
388
- },
389
- {
390
- "internalType": "address",
391
- "name": "",
392
- "type": "address"
393
- },
394
521
  {
395
522
  "internalType": "uint256",
396
- "name": "",
523
+ "name": "_uid",
397
524
  "type": "uint256"
398
- },
399
- {
400
- "internalType": "bytes",
401
- "name": "",
402
- "type": "bytes"
403
525
  }
404
526
  ],
405
- "name": "onERC721Received",
527
+ "name": "getDepositProfit",
406
528
  "outputs": [
407
529
  {
408
- "internalType": "bytes4",
530
+ "internalType": "uint256",
409
531
  "name": "",
410
- "type": "bytes4"
532
+ "type": "uint256"
411
533
  }
412
534
  ],
413
- "stateMutability": "nonpayable",
535
+ "stateMutability": "view",
414
536
  "type": "function"
415
537
  },
416
538
  {
417
539
  "inputs": [],
418
- "name": "owner",
540
+ "name": "nftContract",
419
541
  "outputs": [
420
542
  {
421
- "internalType": "address",
543
+ "internalType": "contract IERC721",
422
544
  "name": "",
423
545
  "type": "address"
424
546
  }
@@ -428,12 +550,12 @@ exports.Vault_jsonAbi = [
428
550
  },
429
551
  {
430
552
  "inputs": [],
431
- "name": "proxiableUUID",
553
+ "name": "owner",
432
554
  "outputs": [
433
555
  {
434
- "internalType": "bytes32",
556
+ "internalType": "address",
435
557
  "name": "",
436
- "type": "bytes32"
558
+ "type": "address"
437
559
  }
438
560
  ],
439
561
  "stateMutability": "view",
@@ -449,169 +571,144 @@ exports.Vault_jsonAbi = [
449
571
  {
450
572
  "inputs": [
451
573
  {
452
- "internalType": "bytes32",
453
- "name": "role",
454
- "type": "bytes32"
574
+ "internalType": "address",
575
+ "name": "_token",
576
+ "type": "address"
455
577
  },
456
578
  {
457
579
  "internalType": "address",
458
- "name": "account",
580
+ "name": "_stateView",
459
581
  "type": "address"
460
- }
461
- ],
462
- "name": "renounceRole",
463
- "outputs": [],
464
- "stateMutability": "nonpayable",
465
- "type": "function"
466
- },
467
- {
468
- "inputs": [
582
+ },
469
583
  {
470
584
  "internalType": "bytes32",
471
- "name": "role",
585
+ "name": "_poolId",
472
586
  "type": "bytes32"
473
587
  },
474
588
  {
475
- "internalType": "address",
476
- "name": "account",
477
- "type": "address"
589
+ "internalType": "bool",
590
+ "name": "_isToken0",
591
+ "type": "bool"
592
+ },
593
+ {
594
+ "internalType": "bool",
595
+ "name": "_status",
596
+ "type": "bool"
478
597
  }
479
598
  ],
480
- "name": "revokeRole",
599
+ "name": "setAllowedToken",
481
600
  "outputs": [],
482
601
  "stateMutability": "nonpayable",
483
602
  "type": "function"
484
603
  },
485
604
  {
486
- "inputs": [
487
- {
488
- "internalType": "bytes4",
489
- "name": "interfaceId",
490
- "type": "bytes4"
491
- }
492
- ],
493
- "name": "supportsInterface",
605
+ "inputs": [],
606
+ "name": "successFee",
494
607
  "outputs": [
495
608
  {
496
- "internalType": "bool",
609
+ "internalType": "uint256",
497
610
  "name": "",
498
- "type": "bool"
611
+ "type": "uint256"
499
612
  }
500
613
  ],
501
614
  "stateMutability": "view",
502
615
  "type": "function"
503
616
  },
504
617
  {
505
- "inputs": [
506
- {
507
- "internalType": "contract IERC20Upgradeable",
508
- "name": "token",
509
- "type": "address"
510
- },
618
+ "inputs": [],
619
+ "name": "successFeeReceiver",
620
+ "outputs": [
511
621
  {
512
622
  "internalType": "address",
513
- "name": "payee",
623
+ "name": "",
514
624
  "type": "address"
515
- },
516
- {
517
- "internalType": "uint256",
518
- "name": "amount",
519
- "type": "uint256"
520
625
  }
521
626
  ],
522
- "name": "transferErc20",
523
- "outputs": [],
524
- "stateMutability": "nonpayable",
627
+ "stateMutability": "view",
525
628
  "type": "function"
526
629
  },
527
630
  {
528
631
  "inputs": [
529
- {
530
- "internalType": "contract IERC721Upgradeable",
531
- "name": "token",
532
- "type": "address"
533
- },
534
632
  {
535
633
  "internalType": "address",
536
- "name": "payee",
634
+ "name": "newOwner",
537
635
  "type": "address"
538
- },
539
- {
540
- "internalType": "uint256",
541
- "name": "tokenId",
542
- "type": "uint256"
543
636
  }
544
637
  ],
545
- "name": "transferErc721",
638
+ "name": "transferOwnership",
546
639
  "outputs": [],
547
640
  "stateMutability": "nonpayable",
548
641
  "type": "function"
549
642
  },
550
643
  {
551
644
  "inputs": [
552
- {
553
- "internalType": "address",
554
- "name": "payee",
555
- "type": "address"
556
- },
557
645
  {
558
646
  "internalType": "uint256",
559
- "name": "amount",
647
+ "name": "_uid",
560
648
  "type": "uint256"
561
649
  }
562
650
  ],
563
- "name": "transferEther",
564
- "outputs": [],
565
- "stateMutability": "nonpayable",
651
+ "name": "viewAmountListById",
652
+ "outputs": [
653
+ {
654
+ "internalType": "uint256[]",
655
+ "name": "",
656
+ "type": "uint256[]"
657
+ }
658
+ ],
659
+ "stateMutability": "view",
566
660
  "type": "function"
567
661
  },
568
662
  {
569
663
  "inputs": [
570
664
  {
571
- "internalType": "address",
572
- "name": "newOwner",
573
- "type": "address"
665
+ "internalType": "uint256",
666
+ "name": "_uid",
667
+ "type": "uint256"
574
668
  }
575
669
  ],
576
- "name": "transferOwnership",
577
- "outputs": [],
578
- "stateMutability": "nonpayable",
670
+ "name": "viewStartPriceX96ListById",
671
+ "outputs": [
672
+ {
673
+ "internalType": "uint256[]",
674
+ "name": "",
675
+ "type": "uint256[]"
676
+ }
677
+ ],
678
+ "stateMutability": "view",
579
679
  "type": "function"
580
680
  },
581
681
  {
582
682
  "inputs": [
583
683
  {
584
- "internalType": "address",
585
- "name": "newImplementation",
586
- "type": "address"
684
+ "internalType": "uint256",
685
+ "name": "_uid",
686
+ "type": "uint256"
587
687
  }
588
688
  ],
589
- "name": "upgradeTo",
590
- "outputs": [],
591
- "stateMutability": "nonpayable",
689
+ "name": "viewTokenListById",
690
+ "outputs": [
691
+ {
692
+ "internalType": "address[]",
693
+ "name": "",
694
+ "type": "address[]"
695
+ }
696
+ ],
697
+ "stateMutability": "view",
592
698
  "type": "function"
593
699
  },
594
700
  {
595
701
  "inputs": [
596
702
  {
597
- "internalType": "address",
598
- "name": "newImplementation",
599
- "type": "address"
600
- },
601
- {
602
- "internalType": "bytes",
603
- "name": "data",
604
- "type": "bytes"
703
+ "internalType": "uint256",
704
+ "name": "_uid",
705
+ "type": "uint256"
605
706
  }
606
707
  ],
607
- "name": "upgradeToAndCall",
708
+ "name": "withdraw",
608
709
  "outputs": [],
609
- "stateMutability": "payable",
710
+ "stateMutability": "nonpayable",
610
711
  "type": "function"
611
- },
612
- {
613
- "stateMutability": "payable",
614
- "type": "receive"
615
712
  }
616
713
  ];
617
714
  /**
@@ -672,206 +769,197 @@ class Vault_json {
672
769
  return this.contract;
673
770
  }
674
771
  /**
675
- * DEFAULT_ADMIN_ROLE
772
+ * FEES_DECIMALS
676
773
  * view
677
774
  */
678
- async DEFAULT_ADMIN_ROLE() {
679
- return this.contract.read.DEFAULT_ADMIN_ROLE();
775
+ async FEES_DECIMALS() {
776
+ return this.contract.read.FEES_DECIMALS();
680
777
  }
681
778
  /**
682
- * PAYEE_ROLE
779
+ * MAX_TERM
683
780
  * view
684
781
  */
685
- async PAYEE_ROLE() {
686
- return this.contract.read.PAYEE_ROLE();
782
+ async MAX_TERM() {
783
+ return this.contract.read.MAX_TERM();
687
784
  }
688
785
  /**
689
- * PAYER_ROLE
786
+ * MAX_TOKENS_IN_DEPOSIT
690
787
  * view
691
788
  */
692
- async PAYER_ROLE() {
693
- return this.contract.read.PAYER_ROLE();
789
+ async MAX_TOKENS_IN_DEPOSIT() {
790
+ return this.contract.read.MAX_TOKENS_IN_DEPOSIT();
694
791
  }
695
792
  /**
696
- * getRoleAdmin
793
+ * allowedTokens
697
794
  * view
698
795
  */
699
- async getRoleAdmin(role) {
700
- return this.contract.read.getRoleAdmin([role]);
796
+ async allowedTokens(arg0) {
797
+ return this.contract.read.allowedTokens([arg0]);
701
798
  }
702
799
  /**
703
- * getRoleMember
800
+ * deposits
704
801
  * view
705
802
  */
706
- async getRoleMember(role, index) {
707
- return this.contract.read.getRoleMember([role, index]);
803
+ async deposits(arg0) {
804
+ return this.contract.read.deposits([arg0]);
708
805
  }
709
806
  /**
710
- * getRoleMemberCount
807
+ * emergencyPenalty
711
808
  * view
712
809
  */
713
- async getRoleMemberCount(role) {
714
- return this.contract.read.getRoleMemberCount([role]);
810
+ async emergencyPenalty() {
811
+ return this.contract.read.emergencyPenalty();
715
812
  }
716
813
  /**
717
- * hasRole
814
+ * emergencyPenaltyReceiver
718
815
  * view
719
816
  */
720
- async hasRole(role, account) {
721
- return this.contract.read.hasRole([role, account]);
817
+ async emergencyPenaltyReceiver() {
818
+ return this.contract.read.emergencyPenaltyReceiver();
722
819
  }
723
820
  /**
724
- * owner
821
+ * getDepositProfit
725
822
  * view
726
823
  */
727
- async owner() {
728
- return this.contract.read.owner();
824
+ async getDepositProfit(_uid) {
825
+ return this.contract.read.getDepositProfit([_uid]);
729
826
  }
730
827
  /**
731
- * proxiableUUID
828
+ * nftContract
732
829
  * view
733
830
  */
734
- async proxiableUUID() {
735
- return this.contract.read.proxiableUUID();
831
+ async nftContract() {
832
+ return this.contract.read.nftContract();
736
833
  }
737
834
  /**
738
- * supportsInterface
835
+ * owner
739
836
  * view
740
837
  */
741
- async supportsInterface(interfaceId) {
742
- return this.contract.read.supportsInterface([interfaceId]);
838
+ async owner() {
839
+ return this.contract.read.owner();
743
840
  }
744
841
  /**
745
- * batchTransferErc20
746
- * nonpayable
747
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
842
+ * successFee
843
+ * view
748
844
  */
749
- async batchTransferErc20(tokens, payees, amounts, options) {
750
- if (!this.contract.write) {
751
- throw new Error('Wallet client is required for write operations');
752
- }
753
- return this.contract.write.batchTransferErc20([tokens, payees, amounts], options);
845
+ async successFee() {
846
+ return this.contract.read.successFee();
754
847
  }
755
848
  /**
756
- * batchTransferErc721
757
- * nonpayable
758
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
849
+ * successFeeReceiver
850
+ * view
759
851
  */
760
- async batchTransferErc721(tokens, payees, tokenIds, options) {
761
- if (!this.contract.write) {
762
- throw new Error('Wallet client is required for write operations');
763
- }
764
- return this.contract.write.batchTransferErc721([tokens, payees, tokenIds], options);
852
+ async successFeeReceiver() {
853
+ return this.contract.read.successFeeReceiver();
765
854
  }
766
855
  /**
767
- * batchTransferEther
768
- * nonpayable
769
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
856
+ * viewAmountListById
857
+ * view
770
858
  */
771
- async batchTransferEther(payees, amounts, options) {
772
- if (!this.contract.write) {
773
- throw new Error('Wallet client is required for write operations');
774
- }
775
- return this.contract.write.batchTransferEther([payees, amounts], options);
859
+ async viewAmountListById(_uid) {
860
+ return this.contract.read.viewAmountListById([_uid]);
776
861
  }
777
862
  /**
778
- * grantRole
779
- * nonpayable
780
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
863
+ * viewStartPriceX96ListById
864
+ * view
781
865
  */
782
- async grantRole(role, account, options) {
783
- if (!this.contract.write) {
784
- throw new Error('Wallet client is required for write operations');
785
- }
786
- return this.contract.write.grantRole([role, account], options);
866
+ async viewStartPriceX96ListById(_uid) {
867
+ return this.contract.read.viewStartPriceX96ListById([_uid]);
868
+ }
869
+ /**
870
+ * viewTokenListById
871
+ * view
872
+ */
873
+ async viewTokenListById(_uid) {
874
+ return this.contract.read.viewTokenListById([_uid]);
787
875
  }
788
876
  /**
789
- * initialize
877
+ * changeEmergencyPenalty
790
878
  * nonpayable
791
879
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
792
880
  */
793
- async initialize(options) {
881
+ async changeEmergencyPenalty(_newEmergencyPenalty, options) {
794
882
  if (!this.contract.write) {
795
883
  throw new Error('Wallet client is required for write operations');
796
884
  }
797
- return this.contract.write.initialize(options);
885
+ return this.contract.write.changeEmergencyPenalty([_newEmergencyPenalty], options);
798
886
  }
799
887
  /**
800
- * onERC721Received
888
+ * changeEmergencyPenaltyReceiver
801
889
  * nonpayable
802
890
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
803
891
  */
804
- async onERC721Received(arg0, arg1, arg2, arg3, options) {
892
+ async changeEmergencyPenaltyReceiver(_newEmergencyPenaltyReveiver, options) {
805
893
  if (!this.contract.write) {
806
894
  throw new Error('Wallet client is required for write operations');
807
895
  }
808
- return this.contract.write.onERC721Received([arg0, arg1, arg2, arg3], options);
896
+ return this.contract.write.changeEmergencyPenaltyReceiver([_newEmergencyPenaltyReveiver], options);
809
897
  }
810
898
  /**
811
- * renounceOwnership
899
+ * changeSuccessFee
812
900
  * nonpayable
813
901
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
814
902
  */
815
- async renounceOwnership(options) {
903
+ async changeSuccessFee(_newSuccessFee, options) {
816
904
  if (!this.contract.write) {
817
905
  throw new Error('Wallet client is required for write operations');
818
906
  }
819
- return this.contract.write.renounceOwnership(options);
907
+ return this.contract.write.changeSuccessFee([_newSuccessFee], options);
820
908
  }
821
909
  /**
822
- * renounceRole
910
+ * changeSuccessFeeReceiver
823
911
  * nonpayable
824
912
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
825
913
  */
826
- async renounceRole(role, account, options) {
914
+ async changeSuccessFeeReceiver(_successFeeReceiver, options) {
827
915
  if (!this.contract.write) {
828
916
  throw new Error('Wallet client is required for write operations');
829
917
  }
830
- return this.contract.write.renounceRole([role, account], options);
918
+ return this.contract.write.changeSuccessFeeReceiver([_successFeeReceiver], options);
831
919
  }
832
920
  /**
833
- * revokeRole
921
+ * createDeposit
834
922
  * nonpayable
835
923
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
836
924
  */
837
- async revokeRole(role, account, options) {
925
+ async createDeposit(_tokens, _amounts, _term, receiver, options) {
838
926
  if (!this.contract.write) {
839
927
  throw new Error('Wallet client is required for write operations');
840
928
  }
841
- return this.contract.write.revokeRole([role, account], options);
929
+ return this.contract.write.createDeposit([_tokens, _amounts, _term, receiver], options);
842
930
  }
843
931
  /**
844
- * transferErc20
932
+ * emergencyWithdraw
845
933
  * nonpayable
846
934
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
847
935
  */
848
- async transferErc20(token, payee, amount, options) {
936
+ async emergencyWithdraw(_uid, options) {
849
937
  if (!this.contract.write) {
850
938
  throw new Error('Wallet client is required for write operations');
851
939
  }
852
- return this.contract.write.transferErc20([token, payee, amount], options);
940
+ return this.contract.write.emergencyWithdraw([_uid], options);
853
941
  }
854
942
  /**
855
- * transferErc721
943
+ * renounceOwnership
856
944
  * nonpayable
857
945
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
858
946
  */
859
- async transferErc721(token, payee, tokenId, options) {
947
+ async renounceOwnership(options) {
860
948
  if (!this.contract.write) {
861
949
  throw new Error('Wallet client is required for write operations');
862
950
  }
863
- return this.contract.write.transferErc721([token, payee, tokenId], options);
951
+ return this.contract.write.renounceOwnership(options);
864
952
  }
865
953
  /**
866
- * transferEther
954
+ * setAllowedToken
867
955
  * nonpayable
868
956
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
869
957
  */
870
- async transferEther(payee, amount, options) {
958
+ async setAllowedToken(_token, _stateView, _poolId, _isToken0, _status, options) {
871
959
  if (!this.contract.write) {
872
960
  throw new Error('Wallet client is required for write operations');
873
961
  }
874
- return this.contract.write.transferEther([payee, amount], options);
962
+ return this.contract.write.setAllowedToken([_token, _stateView, _poolId, _isToken0, _status], options);
875
963
  }
876
964
  /**
877
965
  * transferOwnership
@@ -885,26 +973,15 @@ class Vault_json {
885
973
  return this.contract.write.transferOwnership([newOwner], options);
886
974
  }
887
975
  /**
888
- * upgradeTo
976
+ * withdraw
889
977
  * nonpayable
890
978
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
891
979
  */
892
- async upgradeTo(newImplementation, options) {
893
- if (!this.contract.write) {
894
- throw new Error('Wallet client is required for write operations');
895
- }
896
- return this.contract.write.upgradeTo([newImplementation], options);
897
- }
898
- /**
899
- * upgradeToAndCall
900
- * payable
901
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
902
- */
903
- async upgradeToAndCall(newImplementation, data, options) {
980
+ async withdraw(_uid, options) {
904
981
  if (!this.contract.write) {
905
982
  throw new Error('Wallet client is required for write operations');
906
983
  }
907
- return this.contract.write.upgradeToAndCall([newImplementation, data], options);
984
+ return this.contract.write.withdraw([_uid], options);
908
985
  }
909
986
  /**
910
987
  * Simulate contract write operations (dry-run without sending transaction)
@@ -921,52 +998,52 @@ class Vault_json {
921
998
  }
922
999
  return {
923
1000
  /**
924
- * Simulate batchTransferErc20
1001
+ * Simulate changeEmergencyPenalty
925
1002
  * Returns gas estimate and result without sending transaction
926
1003
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
927
1004
  */
928
- async batchTransferErc20(tokens, payees, amounts, options) {
929
- return contract.simulate.batchTransferErc20([tokens, payees, amounts], options);
1005
+ async changeEmergencyPenalty(_newEmergencyPenalty, options) {
1006
+ return contract.simulate.changeEmergencyPenalty([_newEmergencyPenalty], options);
930
1007
  },
931
1008
  /**
932
- * Simulate batchTransferErc721
1009
+ * Simulate changeEmergencyPenaltyReceiver
933
1010
  * Returns gas estimate and result without sending transaction
934
1011
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
935
1012
  */
936
- async batchTransferErc721(tokens, payees, tokenIds, options) {
937
- return contract.simulate.batchTransferErc721([tokens, payees, tokenIds], options);
1013
+ async changeEmergencyPenaltyReceiver(_newEmergencyPenaltyReveiver, options) {
1014
+ return contract.simulate.changeEmergencyPenaltyReceiver([_newEmergencyPenaltyReveiver], options);
938
1015
  },
939
1016
  /**
940
- * Simulate batchTransferEther
1017
+ * Simulate changeSuccessFee
941
1018
  * Returns gas estimate and result without sending transaction
942
1019
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
943
1020
  */
944
- async batchTransferEther(payees, amounts, options) {
945
- return contract.simulate.batchTransferEther([payees, amounts], options);
1021
+ async changeSuccessFee(_newSuccessFee, options) {
1022
+ return contract.simulate.changeSuccessFee([_newSuccessFee], options);
946
1023
  },
947
1024
  /**
948
- * Simulate grantRole
1025
+ * Simulate changeSuccessFeeReceiver
949
1026
  * Returns gas estimate and result without sending transaction
950
1027
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
951
1028
  */
952
- async grantRole(role, account, options) {
953
- return contract.simulate.grantRole([role, account], options);
1029
+ async changeSuccessFeeReceiver(_successFeeReceiver, options) {
1030
+ return contract.simulate.changeSuccessFeeReceiver([_successFeeReceiver], options);
954
1031
  },
955
1032
  /**
956
- * Simulate initialize
1033
+ * Simulate createDeposit
957
1034
  * Returns gas estimate and result without sending transaction
958
1035
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
959
1036
  */
960
- async initialize(options) {
961
- return contract.simulate.initialize(options);
1037
+ async createDeposit(_tokens, _amounts, _term, receiver, options) {
1038
+ return contract.simulate.createDeposit([_tokens, _amounts, _term, receiver], options);
962
1039
  },
963
1040
  /**
964
- * Simulate onERC721Received
1041
+ * Simulate emergencyWithdraw
965
1042
  * Returns gas estimate and result without sending transaction
966
1043
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
967
1044
  */
968
- async onERC721Received(arg0, arg1, arg2, arg3, options) {
969
- return contract.simulate.onERC721Received([arg0, arg1, arg2, arg3], options);
1045
+ async emergencyWithdraw(_uid, options) {
1046
+ return contract.simulate.emergencyWithdraw([_uid], options);
970
1047
  },
971
1048
  /**
972
1049
  * Simulate renounceOwnership
@@ -977,44 +1054,12 @@ class Vault_json {
977
1054
  return contract.simulate.renounceOwnership(options);
978
1055
  },
979
1056
  /**
980
- * Simulate renounceRole
981
- * Returns gas estimate and result without sending transaction
982
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
983
- */
984
- async renounceRole(role, account, options) {
985
- return contract.simulate.renounceRole([role, account], options);
986
- },
987
- /**
988
- * Simulate revokeRole
989
- * Returns gas estimate and result without sending transaction
990
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
991
- */
992
- async revokeRole(role, account, options) {
993
- return contract.simulate.revokeRole([role, account], options);
994
- },
995
- /**
996
- * Simulate transferErc20
997
- * Returns gas estimate and result without sending transaction
998
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
999
- */
1000
- async transferErc20(token, payee, amount, options) {
1001
- return contract.simulate.transferErc20([token, payee, amount], options);
1002
- },
1003
- /**
1004
- * Simulate transferErc721
1005
- * Returns gas estimate and result without sending transaction
1006
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1007
- */
1008
- async transferErc721(token, payee, tokenId, options) {
1009
- return contract.simulate.transferErc721([token, payee, tokenId], options);
1010
- },
1011
- /**
1012
- * Simulate transferEther
1057
+ * Simulate setAllowedToken
1013
1058
  * Returns gas estimate and result without sending transaction
1014
1059
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1015
1060
  */
1016
- async transferEther(payee, amount, options) {
1017
- return contract.simulate.transferEther([payee, amount], options);
1061
+ async setAllowedToken(_token, _stateView, _poolId, _isToken0, _status, options) {
1062
+ return contract.simulate.setAllowedToken([_token, _stateView, _poolId, _isToken0, _status], options);
1018
1063
  },
1019
1064
  /**
1020
1065
  * Simulate transferOwnership
@@ -1025,20 +1070,12 @@ class Vault_json {
1025
1070
  return contract.simulate.transferOwnership([newOwner], options);
1026
1071
  },
1027
1072
  /**
1028
- * Simulate upgradeTo
1029
- * Returns gas estimate and result without sending transaction
1030
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1031
- */
1032
- async upgradeTo(newImplementation, options) {
1033
- return contract.simulate.upgradeTo([newImplementation], options);
1034
- },
1035
- /**
1036
- * Simulate upgradeToAndCall
1073
+ * Simulate withdraw
1037
1074
  * Returns gas estimate and result without sending transaction
1038
1075
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1039
1076
  */
1040
- async upgradeToAndCall(newImplementation, data, options) {
1041
- return contract.simulate.upgradeToAndCall([newImplementation, data], options);
1077
+ async withdraw(_uid, options) {
1078
+ return contract.simulate.withdraw([_uid], options);
1042
1079
  }
1043
1080
  };
1044
1081
  }
@@ -1057,16 +1094,16 @@ class Vault_json {
1057
1094
  get watch() {
1058
1095
  return {
1059
1096
  /**
1060
- * Watch AdminChanged events
1097
+ * Watch NewDeposit events
1061
1098
  * @param callback Function to call when event is emitted
1062
1099
  * @param filter Optional filter for indexed parameters
1063
1100
  * @returns Unwatch function to stop listening
1064
1101
  */
1065
- AdminChanged: (callback) => {
1102
+ NewDeposit: (callback) => {
1066
1103
  return this.publicClient.watchContractEvent({
1067
1104
  address: this.contractAddress,
1068
1105
  abi: exports.Vault_jsonAbi,
1069
- eventName: 'AdminChanged',
1106
+ eventName: 'NewDeposit',
1070
1107
  onLogs: (logs) => {
1071
1108
  logs.forEach((log) => {
1072
1109
  callback(log.args);
@@ -1075,16 +1112,16 @@ class Vault_json {
1075
1112
  });
1076
1113
  },
1077
1114
  /**
1078
- * Watch BeaconUpgraded events
1115
+ * Watch OwnershipTransferred events
1079
1116
  * @param callback Function to call when event is emitted
1080
1117
  * @param filter Optional filter for indexed parameters
1081
1118
  * @returns Unwatch function to stop listening
1082
1119
  */
1083
- BeaconUpgraded: (callback, filter) => {
1120
+ OwnershipTransferred: (callback, filter) => {
1084
1121
  return this.publicClient.watchContractEvent({
1085
1122
  address: this.contractAddress,
1086
1123
  abi: exports.Vault_jsonAbi,
1087
- eventName: 'BeaconUpgraded',
1124
+ eventName: 'OwnershipTransferred',
1088
1125
  args: filter,
1089
1126
  onLogs: (logs) => {
1090
1127
  logs.forEach((log) => {
@@ -1094,16 +1131,16 @@ class Vault_json {
1094
1131
  });
1095
1132
  },
1096
1133
  /**
1097
- * Watch Initialized events
1134
+ * Watch SetEmergencyPenalty events
1098
1135
  * @param callback Function to call when event is emitted
1099
1136
  * @param filter Optional filter for indexed parameters
1100
1137
  * @returns Unwatch function to stop listening
1101
1138
  */
1102
- Initialized: (callback) => {
1139
+ SetEmergencyPenalty: (callback) => {
1103
1140
  return this.publicClient.watchContractEvent({
1104
1141
  address: this.contractAddress,
1105
1142
  abi: exports.Vault_jsonAbi,
1106
- eventName: 'Initialized',
1143
+ eventName: 'SetEmergencyPenalty',
1107
1144
  onLogs: (logs) => {
1108
1145
  logs.forEach((log) => {
1109
1146
  callback(log.args);
@@ -1112,17 +1149,16 @@ class Vault_json {
1112
1149
  });
1113
1150
  },
1114
1151
  /**
1115
- * Watch OwnershipTransferred events
1152
+ * Watch SetEmergencyPenaltyReceiver events
1116
1153
  * @param callback Function to call when event is emitted
1117
1154
  * @param filter Optional filter for indexed parameters
1118
1155
  * @returns Unwatch function to stop listening
1119
1156
  */
1120
- OwnershipTransferred: (callback, filter) => {
1157
+ SetEmergencyPenaltyReceiver: (callback) => {
1121
1158
  return this.publicClient.watchContractEvent({
1122
1159
  address: this.contractAddress,
1123
1160
  abi: exports.Vault_jsonAbi,
1124
- eventName: 'OwnershipTransferred',
1125
- args: filter,
1161
+ eventName: 'SetEmergencyPenaltyReceiver',
1126
1162
  onLogs: (logs) => {
1127
1163
  logs.forEach((log) => {
1128
1164
  callback(log.args);
@@ -1131,17 +1167,16 @@ class Vault_json {
1131
1167
  });
1132
1168
  },
1133
1169
  /**
1134
- * Watch RoleAdminChanged events
1170
+ * Watch SetSuccessFee events
1135
1171
  * @param callback Function to call when event is emitted
1136
1172
  * @param filter Optional filter for indexed parameters
1137
1173
  * @returns Unwatch function to stop listening
1138
1174
  */
1139
- RoleAdminChanged: (callback, filter) => {
1175
+ SetSuccessFee: (callback) => {
1140
1176
  return this.publicClient.watchContractEvent({
1141
1177
  address: this.contractAddress,
1142
1178
  abi: exports.Vault_jsonAbi,
1143
- eventName: 'RoleAdminChanged',
1144
- args: filter,
1179
+ eventName: 'SetSuccessFee',
1145
1180
  onLogs: (logs) => {
1146
1181
  logs.forEach((log) => {
1147
1182
  callback(log.args);
@@ -1150,17 +1185,16 @@ class Vault_json {
1150
1185
  });
1151
1186
  },
1152
1187
  /**
1153
- * Watch RoleGranted events
1188
+ * Watch SetSuccessFeeReceiver events
1154
1189
  * @param callback Function to call when event is emitted
1155
1190
  * @param filter Optional filter for indexed parameters
1156
1191
  * @returns Unwatch function to stop listening
1157
1192
  */
1158
- RoleGranted: (callback, filter) => {
1193
+ SetSuccessFeeReceiver: (callback) => {
1159
1194
  return this.publicClient.watchContractEvent({
1160
1195
  address: this.contractAddress,
1161
1196
  abi: exports.Vault_jsonAbi,
1162
- eventName: 'RoleGranted',
1163
- args: filter,
1197
+ eventName: 'SetSuccessFeeReceiver',
1164
1198
  onLogs: (logs) => {
1165
1199
  logs.forEach((log) => {
1166
1200
  callback(log.args);
@@ -1169,17 +1203,34 @@ class Vault_json {
1169
1203
  });
1170
1204
  },
1171
1205
  /**
1172
- * Watch RoleRevoked events
1206
+ * Watch SuccessFeeCharged events
1173
1207
  * @param callback Function to call when event is emitted
1174
1208
  * @param filter Optional filter for indexed parameters
1175
1209
  * @returns Unwatch function to stop listening
1176
1210
  */
1177
- RoleRevoked: (callback, filter) => {
1211
+ SuccessFeeCharged: (callback) => {
1178
1212
  return this.publicClient.watchContractEvent({
1179
1213
  address: this.contractAddress,
1180
1214
  abi: exports.Vault_jsonAbi,
1181
- eventName: 'RoleRevoked',
1182
- args: filter,
1215
+ eventName: 'SuccessFeeCharged',
1216
+ onLogs: (logs) => {
1217
+ logs.forEach((log) => {
1218
+ callback(log.args);
1219
+ });
1220
+ },
1221
+ });
1222
+ },
1223
+ /**
1224
+ * Watch TokenUpdated events
1225
+ * @param callback Function to call when event is emitted
1226
+ * @param filter Optional filter for indexed parameters
1227
+ * @returns Unwatch function to stop listening
1228
+ */
1229
+ TokenUpdated: (callback) => {
1230
+ return this.publicClient.watchContractEvent({
1231
+ address: this.contractAddress,
1232
+ abi: exports.Vault_jsonAbi,
1233
+ eventName: 'TokenUpdated',
1183
1234
  onLogs: (logs) => {
1184
1235
  logs.forEach((log) => {
1185
1236
  callback(log.args);
@@ -1188,16 +1239,16 @@ class Vault_json {
1188
1239
  });
1189
1240
  },
1190
1241
  /**
1191
- * Watch Upgraded events
1242
+ * Watch Withdraw events
1192
1243
  * @param callback Function to call when event is emitted
1193
1244
  * @param filter Optional filter for indexed parameters
1194
1245
  * @returns Unwatch function to stop listening
1195
1246
  */
1196
- Upgraded: (callback, filter) => {
1247
+ Withdraw: (callback, filter) => {
1197
1248
  return this.publicClient.watchContractEvent({
1198
1249
  address: this.contractAddress,
1199
1250
  abi: exports.Vault_jsonAbi,
1200
- eventName: 'Upgraded',
1251
+ eventName: 'Withdraw',
1201
1252
  args: filter,
1202
1253
  onLogs: (logs) => {
1203
1254
  logs.forEach((log) => {