@gitmyabi/vault 1.0.8 → 1.0.9

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