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