@gitmyabi/vault 1.0.2 → 1.0.4

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.
@@ -3,48 +3,26 @@ import { getContract } from 'viem';
3
3
 
4
4
 
5
5
  /**
6
- * IShared.SigData struct type
6
+ * IVault.DepositRequest struct type
7
7
  */
8
- export type IShared_SigData = {
9
- sig: bigint;
10
- nonce: bigint;
11
- kTimesGAddress: `0x${string}`;
8
+ export type IVault_DepositRequest = {
9
+ owner: `0x${string}`;
10
+ assets: bigint;
11
+ status: bigint;
12
12
  };
13
13
 
14
14
  /**
15
- * IShared.DeployFetchParams struct type
15
+ * IVault.WithdrawRequest struct type
16
16
  */
17
- export type IShared_DeployFetchParams = {
18
- swapID: `0x${string}`;
19
- token: `0x${string}`;
20
- };
21
-
22
- /**
23
- * IShared.FetchParams struct type
24
- */
25
- export type IShared_FetchParams = {
26
- fetchContract: `0x${string}`;
27
- token: `0x${string}`;
28
- };
29
-
30
- /**
31
- * IShared.TransferParams struct type
32
- */
33
- export type IShared_TransferParams = {
34
- token: `0x${string}`;
35
- recipient: `0x${string}`;
36
- amount: bigint;
37
- };
38
-
39
- /**
40
- * IMulticall.Call struct type
41
- */
42
- export type IMulticall_Call = {
43
- callType: bigint;
44
- target: `0x${string}`;
45
- value: bigint;
46
- callData: `0x${string}`;
47
- payload: `0x${string}`;
17
+ export type IVault_WithdrawRequest = {
18
+ owner: `0x${string}`;
19
+ shares: bigint;
20
+ costBasisValueSnapshot: bigint;
21
+ requestedAt: bigint;
22
+ claimableAt: bigint;
23
+ status: bigint;
24
+ assetsOut: bigint;
25
+ fee: bigint;
48
26
  };
49
27
  /**
50
28
  * Vault_json ABI
@@ -55,274 +33,368 @@ export const Vault_jsonAbi = [
55
33
  {
56
34
  "inputs": [
57
35
  {
58
- "internalType": "contract IKeyManager",
59
- "name": "keyManager",
36
+ "internalType": "contract IERC20",
37
+ "name": "_asset",
38
+ "type": "address"
39
+ },
40
+ {
41
+ "internalType": "contract IOracle",
42
+ "name": "_oracle",
43
+ "type": "address"
44
+ },
45
+ {
46
+ "internalType": "address",
47
+ "name": "admin",
48
+ "type": "address"
49
+ },
50
+ {
51
+ "internalType": "address",
52
+ "name": "manager",
53
+ "type": "address"
54
+ },
55
+ {
56
+ "internalType": "address",
57
+ "name": "bot",
58
+ "type": "address"
59
+ },
60
+ {
61
+ "internalType": "address",
62
+ "name": "guardian",
63
+ "type": "address"
64
+ },
65
+ {
66
+ "internalType": "address",
67
+ "name": "_feeRecipient",
60
68
  "type": "address"
69
+ },
70
+ {
71
+ "internalType": "uint256",
72
+ "name": "_performanceFee",
73
+ "type": "uint256"
74
+ },
75
+ {
76
+ "internalType": "uint256",
77
+ "name": "_minDepositAssets",
78
+ "type": "uint256"
79
+ },
80
+ {
81
+ "internalType": "uint256",
82
+ "name": "_maxSettlementBatchSize",
83
+ "type": "uint256"
61
84
  }
62
85
  ],
63
86
  "stateMutability": "nonpayable",
64
87
  "type": "constructor"
65
88
  },
66
89
  {
67
- "anonymous": false,
90
+ "inputs": [],
91
+ "name": "AccessControlBadConfirmation",
92
+ "type": "error"
93
+ },
94
+ {
68
95
  "inputs": [
69
96
  {
70
- "indexed": false,
97
+ "internalType": "address",
98
+ "name": "account",
99
+ "type": "address"
100
+ },
101
+ {
71
102
  "internalType": "bytes32",
72
- "name": "swapID",
103
+ "name": "neededRole",
73
104
  "type": "bytes32"
74
- },
105
+ }
106
+ ],
107
+ "name": "AccessControlUnauthorizedAccount",
108
+ "type": "error"
109
+ },
110
+ {
111
+ "inputs": [
75
112
  {
76
- "indexed": false,
77
- "internalType": "uint256",
78
- "name": "amount",
79
- "type": "uint256"
113
+ "internalType": "address",
114
+ "name": "target",
115
+ "type": "address"
80
116
  }
81
117
  ],
82
- "name": "AddGasNative",
83
- "type": "event"
118
+ "name": "AddressEmptyCode",
119
+ "type": "error"
120
+ },
121
+ {
122
+ "inputs": [],
123
+ "name": "AlreadyTracked",
124
+ "type": "error"
125
+ },
126
+ {
127
+ "inputs": [],
128
+ "name": "DepositTooSmall",
129
+ "type": "error"
130
+ },
131
+ {
132
+ "inputs": [],
133
+ "name": "EnforcedPause",
134
+ "type": "error"
135
+ },
136
+ {
137
+ "inputs": [],
138
+ "name": "ExpectedPause",
139
+ "type": "error"
140
+ },
141
+ {
142
+ "inputs": [],
143
+ "name": "FailedCall",
144
+ "type": "error"
84
145
  },
85
146
  {
86
- "anonymous": false,
87
147
  "inputs": [
88
148
  {
89
- "indexed": false,
90
- "internalType": "bytes32",
91
- "name": "swapID",
92
- "type": "bytes32"
149
+ "internalType": "uint256",
150
+ "name": "balance",
151
+ "type": "uint256"
93
152
  },
94
153
  {
95
- "indexed": false,
96
154
  "internalType": "uint256",
97
- "name": "amount",
155
+ "name": "needed",
98
156
  "type": "uint256"
99
- },
157
+ }
158
+ ],
159
+ "name": "InsufficientBalance",
160
+ "type": "error"
161
+ },
162
+ {
163
+ "inputs": [],
164
+ "name": "InsufficientLiquidity",
165
+ "type": "error"
166
+ },
167
+ {
168
+ "inputs": [],
169
+ "name": "InsufficientShares",
170
+ "type": "error"
171
+ },
172
+ {
173
+ "inputs": [],
174
+ "name": "InvalidBatchSize",
175
+ "type": "error"
176
+ },
177
+ {
178
+ "inputs": [],
179
+ "name": "InvalidFee",
180
+ "type": "error"
181
+ },
182
+ {
183
+ "inputs": [],
184
+ "name": "NotRequestOwner",
185
+ "type": "error"
186
+ },
187
+ {
188
+ "inputs": [],
189
+ "name": "NotTracked",
190
+ "type": "error"
191
+ },
192
+ {
193
+ "inputs": [],
194
+ "name": "OnlyHPT",
195
+ "type": "error"
196
+ },
197
+ {
198
+ "inputs": [],
199
+ "name": "ReentrancyGuardReentrantCall",
200
+ "type": "error"
201
+ },
202
+ {
203
+ "inputs": [],
204
+ "name": "RequestNotOpen",
205
+ "type": "error"
206
+ },
207
+ {
208
+ "inputs": [
100
209
  {
101
- "indexed": false,
102
210
  "internalType": "address",
103
211
  "name": "token",
104
212
  "type": "address"
105
213
  }
106
214
  ],
107
- "name": "AddGasToken",
108
- "type": "event"
215
+ "name": "SafeERC20FailedOperation",
216
+ "type": "error"
109
217
  },
110
218
  {
111
- "anonymous": false,
112
219
  "inputs": [
113
220
  {
114
- "indexed": false,
115
- "internalType": "bool",
116
- "name": "communityGuardDisabled",
117
- "type": "bool"
221
+ "internalType": "address",
222
+ "name": "target",
223
+ "type": "address"
118
224
  }
119
225
  ],
120
- "name": "CommunityGuardDisabled",
121
- "type": "event"
226
+ "name": "TargetNotAllowed",
227
+ "type": "error"
122
228
  },
123
229
  {
124
- "anonymous": false,
125
230
  "inputs": [
126
231
  {
127
- "indexed": true,
128
- "internalType": "address payable",
129
- "name": "multicallAddress",
130
- "type": "address"
131
- },
132
- {
133
- "indexed": false,
134
- "internalType": "uint256",
135
- "name": "amount",
136
- "type": "uint256"
137
- },
138
- {
139
- "indexed": true,
140
232
  "internalType": "address",
141
233
  "name": "token",
142
234
  "type": "address"
143
235
  },
144
236
  {
145
- "indexed": false,
146
- "internalType": "bytes",
147
- "name": "reason",
148
- "type": "bytes"
237
+ "internalType": "uint256",
238
+ "name": "balance",
239
+ "type": "uint256"
149
240
  }
150
241
  ],
151
- "name": "ExecuteActionsFailed",
152
- "type": "event"
242
+ "name": "TrackedTokenHasBalance",
243
+ "type": "error"
244
+ },
245
+ {
246
+ "inputs": [],
247
+ "name": "WithdrawNotReady",
248
+ "type": "error"
249
+ },
250
+ {
251
+ "inputs": [],
252
+ "name": "ZeroAmount",
253
+ "type": "error"
153
254
  },
154
255
  {
155
256
  "anonymous": false,
156
257
  "inputs": [
258
+ {
259
+ "indexed": true,
260
+ "internalType": "uint256",
261
+ "name": "depositId",
262
+ "type": "uint256"
263
+ },
157
264
  {
158
265
  "indexed": true,
159
266
  "internalType": "address",
160
- "name": "sender",
267
+ "name": "owner",
161
268
  "type": "address"
162
269
  },
163
270
  {
164
271
  "indexed": false,
165
272
  "internalType": "uint256",
166
- "name": "amount",
273
+ "name": "assets",
167
274
  "type": "uint256"
168
275
  }
169
276
  ],
170
- "name": "FetchedNative",
277
+ "name": "DepositAutoRefunded",
171
278
  "type": "event"
172
279
  },
173
280
  {
174
281
  "anonymous": false,
175
282
  "inputs": [
283
+ {
284
+ "indexed": true,
285
+ "internalType": "uint256",
286
+ "name": "depositId",
287
+ "type": "uint256"
288
+ },
289
+ {
290
+ "indexed": true,
291
+ "internalType": "address",
292
+ "name": "owner",
293
+ "type": "address"
294
+ },
176
295
  {
177
296
  "indexed": false,
178
- "internalType": "bool",
179
- "name": "suspended",
180
- "type": "bool"
297
+ "internalType": "uint256",
298
+ "name": "assets",
299
+ "type": "uint256"
181
300
  }
182
301
  ],
183
- "name": "Suspended",
302
+ "name": "DepositCancelled",
184
303
  "type": "event"
185
304
  },
186
305
  {
187
306
  "anonymous": false,
188
307
  "inputs": [
189
308
  {
190
- "indexed": false,
191
- "internalType": "uint32",
192
- "name": "dstChain",
193
- "type": "uint32"
194
- },
195
- {
196
- "indexed": false,
197
- "internalType": "bytes",
198
- "name": "dstAddress",
199
- "type": "bytes"
200
- },
201
- {
202
- "indexed": false,
203
- "internalType": "uint32",
204
- "name": "dstToken",
205
- "type": "uint32"
206
- },
207
- {
208
- "indexed": false,
309
+ "indexed": true,
209
310
  "internalType": "uint256",
210
- "name": "amount",
311
+ "name": "depositId",
211
312
  "type": "uint256"
212
313
  },
213
314
  {
214
315
  "indexed": true,
215
316
  "internalType": "address",
216
- "name": "sender",
317
+ "name": "owner",
217
318
  "type": "address"
218
319
  },
219
320
  {
220
321
  "indexed": false,
221
- "internalType": "bytes",
222
- "name": "cfParameters",
223
- "type": "bytes"
322
+ "internalType": "uint256",
323
+ "name": "assets",
324
+ "type": "uint256"
224
325
  }
225
326
  ],
226
- "name": "SwapNative",
327
+ "name": "DepositRequested",
227
328
  "type": "event"
228
329
  },
229
330
  {
230
331
  "anonymous": false,
231
332
  "inputs": [
232
333
  {
233
- "indexed": false,
234
- "internalType": "uint32",
235
- "name": "dstChain",
236
- "type": "uint32"
237
- },
238
- {
239
- "indexed": false,
240
- "internalType": "bytes",
241
- "name": "dstAddress",
242
- "type": "bytes"
243
- },
244
- {
245
- "indexed": false,
246
- "internalType": "uint32",
247
- "name": "dstToken",
248
- "type": "uint32"
334
+ "indexed": true,
335
+ "internalType": "uint256",
336
+ "name": "depositId",
337
+ "type": "uint256"
249
338
  },
250
339
  {
251
- "indexed": false,
340
+ "indexed": true,
252
341
  "internalType": "address",
253
- "name": "srcToken",
342
+ "name": "owner",
254
343
  "type": "address"
255
344
  },
256
345
  {
257
346
  "indexed": false,
258
347
  "internalType": "uint256",
259
- "name": "amount",
348
+ "name": "netAssets",
260
349
  "type": "uint256"
261
350
  },
262
- {
263
- "indexed": true,
264
- "internalType": "address",
265
- "name": "sender",
266
- "type": "address"
267
- },
268
351
  {
269
352
  "indexed": false,
270
- "internalType": "bytes",
271
- "name": "cfParameters",
272
- "type": "bytes"
353
+ "internalType": "uint256",
354
+ "name": "shares",
355
+ "type": "uint256"
273
356
  }
274
357
  ],
275
- "name": "SwapToken",
358
+ "name": "DepositSettled",
276
359
  "type": "event"
277
360
  },
278
361
  {
279
362
  "anonymous": false,
280
363
  "inputs": [
281
- {
282
- "indexed": true,
283
- "internalType": "address payable",
284
- "name": "recipient",
285
- "type": "address"
286
- },
287
364
  {
288
365
  "indexed": false,
289
366
  "internalType": "uint256",
290
- "name": "amount",
367
+ "name": "size",
291
368
  "type": "uint256"
292
369
  }
293
370
  ],
294
- "name": "TransferNativeFailed",
371
+ "name": "MaxSettlementBatchSizeSet",
295
372
  "type": "event"
296
373
  },
297
374
  {
298
375
  "anonymous": false,
299
376
  "inputs": [
300
- {
301
- "indexed": true,
302
- "internalType": "address payable",
303
- "name": "recipient",
304
- "type": "address"
305
- },
306
377
  {
307
378
  "indexed": false,
308
379
  "internalType": "uint256",
309
380
  "name": "amount",
310
381
  "type": "uint256"
311
- },
382
+ }
383
+ ],
384
+ "name": "MinDepositAssetsSet",
385
+ "type": "event"
386
+ },
387
+ {
388
+ "anonymous": false,
389
+ "inputs": [
312
390
  {
313
391
  "indexed": true,
314
392
  "internalType": "address",
315
- "name": "token",
393
+ "name": "oracle",
316
394
  "type": "address"
317
- },
318
- {
319
- "indexed": false,
320
- "internalType": "bytes",
321
- "name": "reason",
322
- "type": "bytes"
323
395
  }
324
396
  ],
325
- "name": "TransferTokenFailed",
397
+ "name": "OracleSet",
326
398
  "type": "event"
327
399
  },
328
400
  {
@@ -331,11 +403,11 @@ export const Vault_jsonAbi = [
331
403
  {
332
404
  "indexed": false,
333
405
  "internalType": "address",
334
- "name": "keyManager",
406
+ "name": "account",
335
407
  "type": "address"
336
408
  }
337
409
  ],
338
- "name": "UpdatedKeyManager",
410
+ "name": "Paused",
339
411
  "type": "event"
340
412
  },
341
413
  {
@@ -343,630 +415,380 @@ export const Vault_jsonAbi = [
343
415
  "inputs": [
344
416
  {
345
417
  "indexed": false,
346
- "internalType": "uint32",
347
- "name": "dstChain",
348
- "type": "uint32"
349
- },
418
+ "internalType": "uint256",
419
+ "name": "feeBps",
420
+ "type": "uint256"
421
+ }
422
+ ],
423
+ "name": "PerformanceFeeSet",
424
+ "type": "event"
425
+ },
426
+ {
427
+ "anonymous": false,
428
+ "inputs": [
350
429
  {
351
430
  "indexed": false,
352
- "internalType": "bytes",
353
- "name": "dstAddress",
354
- "type": "bytes"
431
+ "internalType": "uint256",
432
+ "name": "callCount",
433
+ "type": "uint256"
355
434
  },
356
435
  {
357
436
  "indexed": false,
358
- "internalType": "uint32",
359
- "name": "dstToken",
360
- "type": "uint32"
437
+ "internalType": "uint256",
438
+ "name": "navBefore",
439
+ "type": "uint256"
361
440
  },
362
441
  {
363
442
  "indexed": false,
364
443
  "internalType": "uint256",
365
- "name": "amount",
444
+ "name": "navAfter",
366
445
  "type": "uint256"
367
- },
368
- {
369
- "indexed": true,
370
- "internalType": "address",
371
- "name": "sender",
372
- "type": "address"
373
- },
446
+ }
447
+ ],
448
+ "name": "Rebalanced",
449
+ "type": "event"
450
+ },
451
+ {
452
+ "anonymous": false,
453
+ "inputs": [
374
454
  {
375
- "indexed": false,
376
- "internalType": "bytes",
377
- "name": "message",
378
- "type": "bytes"
455
+ "indexed": true,
456
+ "internalType": "bytes32",
457
+ "name": "role",
458
+ "type": "bytes32"
379
459
  },
380
460
  {
381
- "indexed": false,
382
- "internalType": "uint256",
383
- "name": "gasAmount",
384
- "type": "uint256"
461
+ "indexed": true,
462
+ "internalType": "bytes32",
463
+ "name": "previousAdminRole",
464
+ "type": "bytes32"
385
465
  },
386
466
  {
387
- "indexed": false,
388
- "internalType": "bytes",
389
- "name": "cfParameters",
390
- "type": "bytes"
467
+ "indexed": true,
468
+ "internalType": "bytes32",
469
+ "name": "newAdminRole",
470
+ "type": "bytes32"
391
471
  }
392
472
  ],
393
- "name": "XCallNative",
473
+ "name": "RoleAdminChanged",
394
474
  "type": "event"
395
475
  },
396
476
  {
397
477
  "anonymous": false,
398
478
  "inputs": [
399
479
  {
400
- "indexed": false,
401
- "internalType": "uint32",
402
- "name": "dstChain",
403
- "type": "uint32"
404
- },
405
- {
406
- "indexed": false,
407
- "internalType": "bytes",
408
- "name": "dstAddress",
409
- "type": "bytes"
480
+ "indexed": true,
481
+ "internalType": "bytes32",
482
+ "name": "role",
483
+ "type": "bytes32"
410
484
  },
411
485
  {
412
- "indexed": false,
413
- "internalType": "uint32",
414
- "name": "dstToken",
415
- "type": "uint32"
486
+ "indexed": true,
487
+ "internalType": "address",
488
+ "name": "account",
489
+ "type": "address"
416
490
  },
417
491
  {
418
- "indexed": false,
492
+ "indexed": true,
419
493
  "internalType": "address",
420
- "name": "srcToken",
494
+ "name": "sender",
421
495
  "type": "address"
496
+ }
497
+ ],
498
+ "name": "RoleGranted",
499
+ "type": "event"
500
+ },
501
+ {
502
+ "anonymous": false,
503
+ "inputs": [
504
+ {
505
+ "indexed": true,
506
+ "internalType": "bytes32",
507
+ "name": "role",
508
+ "type": "bytes32"
422
509
  },
423
510
  {
424
- "indexed": false,
425
- "internalType": "uint256",
426
- "name": "amount",
427
- "type": "uint256"
511
+ "indexed": true,
512
+ "internalType": "address",
513
+ "name": "account",
514
+ "type": "address"
428
515
  },
429
516
  {
430
517
  "indexed": true,
431
518
  "internalType": "address",
432
519
  "name": "sender",
433
520
  "type": "address"
521
+ }
522
+ ],
523
+ "name": "RoleRevoked",
524
+ "type": "event"
525
+ },
526
+ {
527
+ "anonymous": false,
528
+ "inputs": [
529
+ {
530
+ "indexed": false,
531
+ "internalType": "uint256",
532
+ "name": "oraclePriceCount",
533
+ "type": "uint256"
434
534
  },
435
535
  {
436
536
  "indexed": false,
437
- "internalType": "bytes",
438
- "name": "message",
439
- "type": "bytes"
537
+ "internalType": "uint256",
538
+ "name": "depositsSettled",
539
+ "type": "uint256"
440
540
  },
441
541
  {
442
542
  "indexed": false,
443
543
  "internalType": "uint256",
444
- "name": "gasAmount",
544
+ "name": "depositsRefunded",
445
545
  "type": "uint256"
446
546
  },
447
547
  {
448
548
  "indexed": false,
449
- "internalType": "bytes",
450
- "name": "cfParameters",
451
- "type": "bytes"
549
+ "internalType": "uint256",
550
+ "name": "withdrawalsProcessed",
551
+ "type": "uint256"
452
552
  }
453
553
  ],
454
- "name": "XCallToken",
554
+ "name": "Settled",
455
555
  "type": "event"
456
556
  },
457
557
  {
558
+ "anonymous": false,
458
559
  "inputs": [
459
560
  {
460
- "internalType": "bytes32",
461
- "name": "swapID",
462
- "type": "bytes32"
561
+ "indexed": false,
562
+ "internalType": "uint256",
563
+ "name": "fee",
564
+ "type": "uint256"
463
565
  }
464
566
  ],
465
- "name": "addGasNative",
466
- "outputs": [],
467
- "stateMutability": "payable",
468
- "type": "function"
567
+ "name": "SettlementFeeSet",
568
+ "type": "event"
469
569
  },
470
570
  {
571
+ "anonymous": false,
471
572
  "inputs": [
472
573
  {
473
- "internalType": "bytes32",
474
- "name": "swapID",
475
- "type": "bytes32"
574
+ "indexed": true,
575
+ "internalType": "address",
576
+ "name": "target",
577
+ "type": "address"
476
578
  },
477
579
  {
478
- "internalType": "uint256",
479
- "name": "amount",
480
- "type": "uint256"
481
- },
580
+ "indexed": false,
581
+ "internalType": "bool",
582
+ "name": "allowed",
583
+ "type": "bool"
584
+ }
585
+ ],
586
+ "name": "TargetAllowed",
587
+ "type": "event"
588
+ },
589
+ {
590
+ "anonymous": false,
591
+ "inputs": [
482
592
  {
483
- "internalType": "contract IERC20",
593
+ "indexed": true,
594
+ "internalType": "address",
484
595
  "name": "token",
485
596
  "type": "address"
486
597
  }
487
598
  ],
488
- "name": "addGasToken",
489
- "outputs": [],
490
- "stateMutability": "nonpayable",
491
- "type": "function"
599
+ "name": "TrackedTokenAdded",
600
+ "type": "event"
492
601
  },
493
602
  {
603
+ "anonymous": false,
494
604
  "inputs": [
495
605
  {
496
- "components": [
497
- {
498
- "internalType": "uint256",
499
- "name": "sig",
500
- "type": "uint256"
501
- },
502
- {
503
- "internalType": "uint256",
504
- "name": "nonce",
505
- "type": "uint256"
506
- },
507
- {
508
- "internalType": "address",
509
- "name": "kTimesGAddress",
510
- "type": "address"
511
- }
512
- ],
513
- "internalType": "struct IShared.SigData",
514
- "name": "sigData",
515
- "type": "tuple"
516
- },
606
+ "indexed": true,
607
+ "internalType": "address",
608
+ "name": "token",
609
+ "type": "address"
610
+ }
611
+ ],
612
+ "name": "TrackedTokenRemoved",
613
+ "type": "event"
614
+ },
615
+ {
616
+ "anonymous": false,
617
+ "inputs": [
517
618
  {
518
- "components": [
519
- {
520
- "internalType": "bytes32",
521
- "name": "swapID",
522
- "type": "bytes32"
523
- },
524
- {
525
- "internalType": "address",
526
- "name": "token",
527
- "type": "address"
528
- }
529
- ],
530
- "internalType": "struct IShared.DeployFetchParams[]",
531
- "name": "deployFetchParamsArray",
532
- "type": "tuple[]"
619
+ "indexed": false,
620
+ "internalType": "address",
621
+ "name": "account",
622
+ "type": "address"
623
+ }
624
+ ],
625
+ "name": "Unpaused",
626
+ "type": "event"
627
+ },
628
+ {
629
+ "anonymous": false,
630
+ "inputs": [
631
+ {
632
+ "indexed": true,
633
+ "internalType": "uint256",
634
+ "name": "requestId",
635
+ "type": "uint256"
533
636
  },
534
637
  {
535
- "components": [
536
- {
537
- "internalType": "address payable",
538
- "name": "fetchContract",
539
- "type": "address"
540
- },
541
- {
542
- "internalType": "address",
543
- "name": "token",
544
- "type": "address"
545
- }
546
- ],
547
- "internalType": "struct IShared.FetchParams[]",
548
- "name": "fetchParamsArray",
549
- "type": "tuple[]"
638
+ "indexed": true,
639
+ "internalType": "address",
640
+ "name": "owner",
641
+ "type": "address"
550
642
  },
551
643
  {
552
- "components": [
553
- {
554
- "internalType": "address",
555
- "name": "token",
556
- "type": "address"
557
- },
558
- {
559
- "internalType": "address payable",
560
- "name": "recipient",
561
- "type": "address"
562
- },
563
- {
564
- "internalType": "uint256",
565
- "name": "amount",
566
- "type": "uint256"
567
- }
568
- ],
569
- "internalType": "struct IShared.TransferParams[]",
570
- "name": "transferParamsArray",
571
- "type": "tuple[]"
644
+ "indexed": false,
645
+ "internalType": "uint256",
646
+ "name": "shares",
647
+ "type": "uint256"
572
648
  }
573
649
  ],
574
- "name": "allBatch",
575
- "outputs": [],
576
- "stateMutability": "nonpayable",
577
- "type": "function"
650
+ "name": "WithdrawCancelled",
651
+ "type": "event"
578
652
  },
579
653
  {
654
+ "anonymous": false,
580
655
  "inputs": [
581
656
  {
582
- "components": [
583
- {
584
- "internalType": "uint256",
585
- "name": "sig",
586
- "type": "uint256"
587
- },
588
- {
589
- "internalType": "uint256",
590
- "name": "nonce",
591
- "type": "uint256"
592
- },
593
- {
594
- "internalType": "address",
595
- "name": "kTimesGAddress",
596
- "type": "address"
597
- }
598
- ],
599
- "internalType": "struct IShared.SigData",
600
- "name": "sigData",
601
- "type": "tuple"
657
+ "indexed": true,
658
+ "internalType": "uint256",
659
+ "name": "requestId",
660
+ "type": "uint256"
602
661
  },
603
662
  {
604
- "components": [
605
- {
606
- "internalType": "address payable",
607
- "name": "fetchContract",
608
- "type": "address"
609
- },
610
- {
611
- "internalType": "address",
612
- "name": "token",
613
- "type": "address"
614
- }
615
- ],
616
- "internalType": "struct IShared.FetchParams[]",
617
- "name": "fetchParamsArray",
618
- "type": "tuple[]"
663
+ "indexed": true,
664
+ "internalType": "address",
665
+ "name": "owner",
666
+ "type": "address"
619
667
  },
620
668
  {
621
- "components": [
622
- {
623
- "internalType": "address",
624
- "name": "token",
625
- "type": "address"
626
- },
627
- {
628
- "internalType": "address payable",
629
- "name": "recipient",
630
- "type": "address"
631
- },
632
- {
633
- "internalType": "uint256",
634
- "name": "amount",
635
- "type": "uint256"
636
- }
637
- ],
638
- "internalType": "struct IShared.TransferParams[]",
639
- "name": "transferParamsArray",
640
- "type": "tuple[]"
669
+ "indexed": false,
670
+ "internalType": "uint256",
671
+ "name": "shares",
672
+ "type": "uint256"
673
+ },
674
+ {
675
+ "indexed": false,
676
+ "internalType": "uint256",
677
+ "name": "assetsPaid",
678
+ "type": "uint256"
679
+ },
680
+ {
681
+ "indexed": false,
682
+ "internalType": "uint256",
683
+ "name": "fee",
684
+ "type": "uint256"
641
685
  }
642
686
  ],
643
- "name": "allBatchV2",
644
- "outputs": [],
645
- "stateMutability": "nonpayable",
646
- "type": "function"
687
+ "name": "WithdrawClaimed",
688
+ "type": "event"
647
689
  },
648
690
  {
691
+ "anonymous": false,
649
692
  "inputs": [
650
693
  {
651
- "components": [
652
- {
653
- "internalType": "uint256",
654
- "name": "sig",
655
- "type": "uint256"
656
- },
657
- {
658
- "internalType": "uint256",
659
- "name": "nonce",
660
- "type": "uint256"
661
- },
662
- {
663
- "internalType": "address",
664
- "name": "kTimesGAddress",
665
- "type": "address"
666
- }
667
- ],
668
- "internalType": "struct IShared.SigData",
669
- "name": "sigData",
670
- "type": "tuple"
671
- },
672
- {
673
- "components": [
674
- {
675
- "internalType": "bytes32",
676
- "name": "swapID",
677
- "type": "bytes32"
678
- },
679
- {
680
- "internalType": "address",
681
- "name": "token",
682
- "type": "address"
683
- }
684
- ],
685
- "internalType": "struct IShared.DeployFetchParams[]",
686
- "name": "deployFetchParamsArray",
687
- "type": "tuple[]"
688
- }
689
- ],
690
- "name": "deployAndFetchBatch",
691
- "outputs": [],
692
- "stateMutability": "nonpayable",
693
- "type": "function"
694
- },
695
- {
696
- "inputs": [],
697
- "name": "disableCommunityGuard",
698
- "outputs": [],
699
- "stateMutability": "nonpayable",
700
- "type": "function"
701
- },
702
- {
703
- "inputs": [],
704
- "name": "enableCommunityGuard",
705
- "outputs": [],
706
- "stateMutability": "nonpayable",
707
- "type": "function"
708
- },
709
- {
710
- "inputs": [
711
- {
712
- "components": [
713
- {
714
- "internalType": "uint256",
715
- "name": "sig",
716
- "type": "uint256"
717
- },
718
- {
719
- "internalType": "uint256",
720
- "name": "nonce",
721
- "type": "uint256"
722
- },
723
- {
724
- "internalType": "address",
725
- "name": "kTimesGAddress",
726
- "type": "address"
727
- }
728
- ],
729
- "internalType": "struct IShared.SigData",
730
- "name": "sigData",
731
- "type": "tuple"
732
- },
733
- {
734
- "components": [
735
- {
736
- "internalType": "address",
737
- "name": "token",
738
- "type": "address"
739
- },
740
- {
741
- "internalType": "address payable",
742
- "name": "recipient",
743
- "type": "address"
744
- },
745
- {
746
- "internalType": "uint256",
747
- "name": "amount",
748
- "type": "uint256"
749
- }
750
- ],
751
- "internalType": "struct IShared.TransferParams",
752
- "name": "transferParams",
753
- "type": "tuple"
694
+ "indexed": true,
695
+ "internalType": "uint256",
696
+ "name": "requestId",
697
+ "type": "uint256"
754
698
  },
755
699
  {
756
- "components": [
757
- {
758
- "internalType": "enum IMulticall.CallType",
759
- "name": "callType",
760
- "type": "uint8"
761
- },
762
- {
763
- "internalType": "address",
764
- "name": "target",
765
- "type": "address"
766
- },
767
- {
768
- "internalType": "uint256",
769
- "name": "value",
770
- "type": "uint256"
771
- },
772
- {
773
- "internalType": "bytes",
774
- "name": "callData",
775
- "type": "bytes"
776
- },
777
- {
778
- "internalType": "bytes",
779
- "name": "payload",
780
- "type": "bytes"
781
- }
782
- ],
783
- "internalType": "struct IMulticall.Call[]",
784
- "name": "calls",
785
- "type": "tuple[]"
700
+ "indexed": true,
701
+ "internalType": "address",
702
+ "name": "owner",
703
+ "type": "address"
786
704
  },
787
705
  {
706
+ "indexed": false,
788
707
  "internalType": "uint256",
789
- "name": "gasMulticall",
708
+ "name": "shares",
790
709
  "type": "uint256"
710
+ },
711
+ {
712
+ "indexed": false,
713
+ "internalType": "uint64",
714
+ "name": "claimableAt",
715
+ "type": "uint64"
791
716
  }
792
717
  ],
793
- "name": "executeActions",
794
- "outputs": [],
795
- "stateMutability": "nonpayable",
796
- "type": "function"
718
+ "name": "WithdrawRequested",
719
+ "type": "event"
797
720
  },
798
721
  {
722
+ "anonymous": false,
799
723
  "inputs": [
800
724
  {
801
- "components": [
802
- {
803
- "internalType": "uint256",
804
- "name": "sig",
805
- "type": "uint256"
806
- },
807
- {
808
- "internalType": "uint256",
809
- "name": "nonce",
810
- "type": "uint256"
811
- },
812
- {
813
- "internalType": "address",
814
- "name": "kTimesGAddress",
815
- "type": "address"
816
- }
817
- ],
818
- "internalType": "struct IShared.SigData",
819
- "name": "sigData",
820
- "type": "tuple"
725
+ "indexed": true,
726
+ "internalType": "uint256",
727
+ "name": "requestId",
728
+ "type": "uint256"
821
729
  },
822
730
  {
731
+ "indexed": true,
823
732
  "internalType": "address",
824
- "name": "recipient",
733
+ "name": "owner",
825
734
  "type": "address"
826
735
  },
827
736
  {
828
- "internalType": "uint32",
829
- "name": "srcChain",
830
- "type": "uint32"
737
+ "indexed": false,
738
+ "internalType": "uint256",
739
+ "name": "shares",
740
+ "type": "uint256"
831
741
  },
832
742
  {
833
- "internalType": "bytes",
834
- "name": "srcAddress",
835
- "type": "bytes"
743
+ "indexed": false,
744
+ "internalType": "uint256",
745
+ "name": "assetsOut",
746
+ "type": "uint256"
836
747
  },
837
748
  {
838
- "internalType": "bytes",
839
- "name": "message",
840
- "type": "bytes"
749
+ "indexed": false,
750
+ "internalType": "uint256",
751
+ "name": "fee",
752
+ "type": "uint256"
841
753
  }
842
754
  ],
843
- "name": "executexCall",
844
- "outputs": [],
845
- "stateMutability": "nonpayable",
846
- "type": "function"
755
+ "name": "WithdrawalSettled",
756
+ "type": "event"
847
757
  },
848
758
  {
849
- "inputs": [
850
- {
851
- "components": [
852
- {
853
- "internalType": "uint256",
854
- "name": "sig",
855
- "type": "uint256"
856
- },
857
- {
858
- "internalType": "uint256",
859
- "name": "nonce",
860
- "type": "uint256"
861
- },
862
- {
863
- "internalType": "address",
864
- "name": "kTimesGAddress",
865
- "type": "address"
866
- }
867
- ],
868
- "internalType": "struct IShared.SigData",
869
- "name": "sigData",
870
- "type": "tuple"
871
- },
872
- {
873
- "components": [
874
- {
875
- "internalType": "address",
876
- "name": "token",
877
- "type": "address"
878
- },
879
- {
880
- "internalType": "address payable",
881
- "name": "recipient",
882
- "type": "address"
883
- },
884
- {
885
- "internalType": "uint256",
886
- "name": "amount",
887
- "type": "uint256"
888
- }
889
- ],
890
- "internalType": "struct IShared.TransferParams",
891
- "name": "transferParams",
892
- "type": "tuple"
893
- },
894
- {
895
- "internalType": "uint32",
896
- "name": "srcChain",
897
- "type": "uint32"
898
- },
899
- {
900
- "internalType": "bytes",
901
- "name": "srcAddress",
902
- "type": "bytes"
903
- },
759
+ "inputs": [],
760
+ "name": "BOT_ROLE",
761
+ "outputs": [
904
762
  {
905
- "internalType": "bytes",
906
- "name": "message",
907
- "type": "bytes"
763
+ "internalType": "bytes32",
764
+ "name": "",
765
+ "type": "bytes32"
908
766
  }
909
767
  ],
910
- "name": "executexSwapAndCall",
911
- "outputs": [],
912
- "stateMutability": "nonpayable",
768
+ "stateMutability": "view",
913
769
  "type": "function"
914
770
  },
915
771
  {
916
- "inputs": [
917
- {
918
- "components": [
919
- {
920
- "internalType": "uint256",
921
- "name": "sig",
922
- "type": "uint256"
923
- },
924
- {
925
- "internalType": "uint256",
926
- "name": "nonce",
927
- "type": "uint256"
928
- },
929
- {
930
- "internalType": "address",
931
- "name": "kTimesGAddress",
932
- "type": "address"
933
- }
934
- ],
935
- "internalType": "struct IShared.SigData",
936
- "name": "sigData",
937
- "type": "tuple"
938
- },
772
+ "inputs": [],
773
+ "name": "BPS",
774
+ "outputs": [
939
775
  {
940
- "components": [
941
- {
942
- "internalType": "address payable",
943
- "name": "fetchContract",
944
- "type": "address"
945
- },
946
- {
947
- "internalType": "address",
948
- "name": "token",
949
- "type": "address"
950
- }
951
- ],
952
- "internalType": "struct IShared.FetchParams[]",
953
- "name": "fetchParamsArray",
954
- "type": "tuple[]"
776
+ "internalType": "uint256",
777
+ "name": "",
778
+ "type": "uint256"
955
779
  }
956
780
  ],
957
- "name": "fetchBatch",
958
- "outputs": [],
959
- "stateMutability": "nonpayable",
781
+ "stateMutability": "view",
960
782
  "type": "function"
961
783
  },
962
784
  {
963
785
  "inputs": [],
964
- "name": "getCommunityGuardDisabled",
786
+ "name": "DEFAULT_ADMIN_ROLE",
965
787
  "outputs": [
966
788
  {
967
- "internalType": "bool",
789
+ "internalType": "bytes32",
968
790
  "name": "",
969
- "type": "bool"
791
+ "type": "bytes32"
970
792
  }
971
793
  ],
972
794
  "stateMutability": "view",
@@ -974,12 +796,12 @@ export const Vault_jsonAbi = [
974
796
  },
975
797
  {
976
798
  "inputs": [],
977
- "name": "getCommunityKey",
799
+ "name": "GUARDIAN_ROLE",
978
800
  "outputs": [
979
801
  {
980
- "internalType": "address",
802
+ "internalType": "bytes32",
981
803
  "name": "",
982
- "type": "address"
804
+ "type": "bytes32"
983
805
  }
984
806
  ],
985
807
  "stateMutability": "view",
@@ -987,12 +809,12 @@ export const Vault_jsonAbi = [
987
809
  },
988
810
  {
989
811
  "inputs": [],
990
- "name": "getGovernor",
812
+ "name": "MANAGER_ROLE",
991
813
  "outputs": [
992
814
  {
993
- "internalType": "address",
815
+ "internalType": "bytes32",
994
816
  "name": "",
995
- "type": "address"
817
+ "type": "bytes32"
996
818
  }
997
819
  ],
998
820
  "stateMutability": "view",
@@ -1000,12 +822,12 @@ export const Vault_jsonAbi = [
1000
822
  },
1001
823
  {
1002
824
  "inputs": [],
1003
- "name": "getKeyManager",
825
+ "name": "MAX_FEE_BPS",
1004
826
  "outputs": [
1005
827
  {
1006
- "internalType": "contract IKeyManager",
828
+ "internalType": "uint256",
1007
829
  "name": "",
1008
- "type": "address"
830
+ "type": "uint256"
1009
831
  }
1010
832
  ],
1011
833
  "stateMutability": "view",
@@ -1013,12 +835,12 @@ export const Vault_jsonAbi = [
1013
835
  },
1014
836
  {
1015
837
  "inputs": [],
1016
- "name": "getSuspendedState",
838
+ "name": "SHARE_SCALE",
1017
839
  "outputs": [
1018
840
  {
1019
- "internalType": "bool",
841
+ "internalType": "uint256",
1020
842
  "name": "",
1021
- "type": "bool"
843
+ "type": "uint256"
1022
844
  }
1023
845
  ],
1024
846
  "stateMutability": "view",
@@ -1027,26 +849,12 @@ export const Vault_jsonAbi = [
1027
849
  {
1028
850
  "inputs": [
1029
851
  {
1030
- "internalType": "address[]",
1031
- "name": "tokens",
1032
- "type": "address[]"
852
+ "internalType": "address",
853
+ "name": "token",
854
+ "type": "address"
1033
855
  }
1034
856
  ],
1035
- "name": "govWithdraw",
1036
- "outputs": [],
1037
- "stateMutability": "nonpayable",
1038
- "type": "function"
1039
- },
1040
- {
1041
- "inputs": [],
1042
- "name": "resume",
1043
- "outputs": [],
1044
- "stateMutability": "nonpayable",
1045
- "type": "function"
1046
- },
1047
- {
1048
- "inputs": [],
1049
- "name": "suspend",
857
+ "name": "addTrackedToken",
1050
858
  "outputs": [],
1051
859
  "stateMutability": "nonpayable",
1052
860
  "type": "function"
@@ -1054,51 +862,22 @@ export const Vault_jsonAbi = [
1054
862
  {
1055
863
  "inputs": [
1056
864
  {
1057
- "components": [
1058
- {
1059
- "internalType": "uint256",
1060
- "name": "sig",
1061
- "type": "uint256"
1062
- },
1063
- {
1064
- "internalType": "uint256",
1065
- "name": "nonce",
1066
- "type": "uint256"
1067
- },
1068
- {
1069
- "internalType": "address",
1070
- "name": "kTimesGAddress",
1071
- "type": "address"
1072
- }
1073
- ],
1074
- "internalType": "struct IShared.SigData",
1075
- "name": "sigData",
1076
- "type": "tuple"
865
+ "internalType": "contract IERC20",
866
+ "name": "token",
867
+ "type": "address"
1077
868
  },
1078
869
  {
1079
- "components": [
1080
- {
1081
- "internalType": "address",
1082
- "name": "token",
1083
- "type": "address"
1084
- },
1085
- {
1086
- "internalType": "address payable",
1087
- "name": "recipient",
1088
- "type": "address"
1089
- },
1090
- {
1091
- "internalType": "uint256",
1092
- "name": "amount",
1093
- "type": "uint256"
1094
- }
1095
- ],
1096
- "internalType": "struct IShared.TransferParams",
1097
- "name": "transferParams",
1098
- "type": "tuple"
870
+ "internalType": "address",
871
+ "name": "spender",
872
+ "type": "address"
873
+ },
874
+ {
875
+ "internalType": "uint256",
876
+ "name": "amount",
877
+ "type": "uint256"
1099
878
  }
1100
879
  ],
1101
- "name": "transfer",
880
+ "name": "approveERC20",
1102
881
  "outputs": [],
1103
882
  "stateMutability": "nonpayable",
1104
883
  "type": "function"
@@ -1106,143 +885,84 @@ export const Vault_jsonAbi = [
1106
885
  {
1107
886
  "inputs": [
1108
887
  {
1109
- "components": [
1110
- {
1111
- "internalType": "uint256",
1112
- "name": "sig",
1113
- "type": "uint256"
1114
- },
1115
- {
1116
- "internalType": "uint256",
1117
- "name": "nonce",
1118
- "type": "uint256"
1119
- },
1120
- {
1121
- "internalType": "address",
1122
- "name": "kTimesGAddress",
1123
- "type": "address"
1124
- }
1125
- ],
1126
- "internalType": "struct IShared.SigData",
1127
- "name": "sigData",
1128
- "type": "tuple"
888
+ "internalType": "address",
889
+ "name": "permit2",
890
+ "type": "address"
1129
891
  },
1130
892
  {
1131
- "components": [
1132
- {
1133
- "internalType": "address",
1134
- "name": "token",
1135
- "type": "address"
1136
- },
1137
- {
1138
- "internalType": "address payable",
1139
- "name": "recipient",
1140
- "type": "address"
1141
- },
1142
- {
1143
- "internalType": "uint256",
1144
- "name": "amount",
1145
- "type": "uint256"
1146
- }
1147
- ],
1148
- "internalType": "struct IShared.TransferParams[]",
1149
- "name": "transferParamsArray",
1150
- "type": "tuple[]"
893
+ "internalType": "address",
894
+ "name": "token",
895
+ "type": "address"
896
+ },
897
+ {
898
+ "internalType": "address",
899
+ "name": "spender",
900
+ "type": "address"
901
+ },
902
+ {
903
+ "internalType": "uint160",
904
+ "name": "amount",
905
+ "type": "uint160"
906
+ },
907
+ {
908
+ "internalType": "uint48",
909
+ "name": "expiration",
910
+ "type": "uint48"
1151
911
  }
1152
912
  ],
1153
- "name": "transferBatch",
913
+ "name": "approvePermit2",
1154
914
  "outputs": [],
1155
915
  "stateMutability": "nonpayable",
1156
916
  "type": "function"
1157
917
  },
1158
918
  {
1159
- "inputs": [
1160
- {
1161
- "components": [
1162
- {
1163
- "internalType": "uint256",
1164
- "name": "sig",
1165
- "type": "uint256"
1166
- },
1167
- {
1168
- "internalType": "uint256",
1169
- "name": "nonce",
1170
- "type": "uint256"
1171
- },
1172
- {
1173
- "internalType": "address",
1174
- "name": "kTimesGAddress",
1175
- "type": "address"
1176
- }
1177
- ],
1178
- "internalType": "struct IShared.SigData",
1179
- "name": "sigData",
1180
- "type": "tuple"
1181
- },
919
+ "inputs": [],
920
+ "name": "asset",
921
+ "outputs": [
1182
922
  {
1183
- "components": [
1184
- {
1185
- "internalType": "address",
1186
- "name": "token",
1187
- "type": "address"
1188
- },
1189
- {
1190
- "internalType": "address payable",
1191
- "name": "recipient",
1192
- "type": "address"
1193
- },
1194
- {
1195
- "internalType": "uint256",
1196
- "name": "amount",
1197
- "type": "uint256"
1198
- }
1199
- ],
1200
- "internalType": "struct IShared.TransferParams",
1201
- "name": "transferParams",
1202
- "type": "tuple"
923
+ "internalType": "address",
924
+ "name": "",
925
+ "type": "address"
1203
926
  }
1204
927
  ],
1205
- "name": "transferFallback",
1206
- "outputs": [],
1207
- "stateMutability": "nonpayable",
928
+ "stateMutability": "view",
1208
929
  "type": "function"
1209
930
  },
1210
931
  {
1211
- "inputs": [
932
+ "inputs": [],
933
+ "name": "assetDecimals",
934
+ "outputs": [
1212
935
  {
1213
- "components": [
1214
- {
1215
- "internalType": "uint256",
1216
- "name": "sig",
1217
- "type": "uint256"
1218
- },
1219
- {
1220
- "internalType": "uint256",
1221
- "name": "nonce",
1222
- "type": "uint256"
1223
- },
1224
- {
1225
- "internalType": "address",
1226
- "name": "kTimesGAddress",
1227
- "type": "address"
1228
- }
1229
- ],
1230
- "internalType": "struct IShared.SigData",
1231
- "name": "sigData",
1232
- "type": "tuple"
1233
- },
936
+ "internalType": "uint8",
937
+ "name": "",
938
+ "type": "uint8"
939
+ }
940
+ ],
941
+ "stateMutability": "view",
942
+ "type": "function"
943
+ },
944
+ {
945
+ "inputs": [],
946
+ "name": "assetToken",
947
+ "outputs": [
1234
948
  {
1235
- "internalType": "contract IKeyManager",
1236
- "name": "keyManager",
949
+ "internalType": "contract IERC20",
950
+ "name": "",
1237
951
  "type": "address"
1238
- },
952
+ }
953
+ ],
954
+ "stateMutability": "view",
955
+ "type": "function"
956
+ },
957
+ {
958
+ "inputs": [
1239
959
  {
1240
- "internalType": "bool",
1241
- "name": "omitChecks",
1242
- "type": "bool"
960
+ "internalType": "uint256",
961
+ "name": "depositId",
962
+ "type": "uint256"
1243
963
  }
1244
964
  ],
1245
- "name": "updateKeyManager",
965
+ "name": "cancelDepositRequest",
1246
966
  "outputs": [],
1247
967
  "stateMutability": "nonpayable",
1248
968
  "type": "function"
@@ -1250,85 +970,68 @@ export const Vault_jsonAbi = [
1250
970
  {
1251
971
  "inputs": [
1252
972
  {
1253
- "internalType": "uint32",
1254
- "name": "dstChain",
1255
- "type": "uint32"
1256
- },
1257
- {
1258
- "internalType": "bytes",
1259
- "name": "dstAddress",
1260
- "type": "bytes"
1261
- },
1262
- {
1263
- "internalType": "uint32",
1264
- "name": "dstToken",
1265
- "type": "uint32"
1266
- },
1267
- {
1268
- "internalType": "bytes",
1269
- "name": "message",
1270
- "type": "bytes"
1271
- },
973
+ "internalType": "uint256",
974
+ "name": "maxCount",
975
+ "type": "uint256"
976
+ }
977
+ ],
978
+ "name": "cancelPendingDeposits",
979
+ "outputs": [
1272
980
  {
1273
981
  "internalType": "uint256",
1274
- "name": "gasAmount",
982
+ "name": "cancelled",
1275
983
  "type": "uint256"
1276
- },
984
+ }
985
+ ],
986
+ "stateMutability": "nonpayable",
987
+ "type": "function"
988
+ },
989
+ {
990
+ "inputs": [
1277
991
  {
1278
- "internalType": "bytes",
1279
- "name": "cfParameters",
1280
- "type": "bytes"
992
+ "internalType": "uint256",
993
+ "name": "requestId",
994
+ "type": "uint256"
1281
995
  }
1282
996
  ],
1283
- "name": "xCallNative",
997
+ "name": "cancelWithdraw",
1284
998
  "outputs": [],
1285
- "stateMutability": "payable",
999
+ "stateMutability": "nonpayable",
1286
1000
  "type": "function"
1287
1001
  },
1288
1002
  {
1289
1003
  "inputs": [
1290
- {
1291
- "internalType": "uint32",
1292
- "name": "dstChain",
1293
- "type": "uint32"
1294
- },
1295
- {
1296
- "internalType": "bytes",
1297
- "name": "dstAddress",
1298
- "type": "bytes"
1299
- },
1300
- {
1301
- "internalType": "uint32",
1302
- "name": "dstToken",
1303
- "type": "uint32"
1304
- },
1305
- {
1306
- "internalType": "bytes",
1307
- "name": "message",
1308
- "type": "bytes"
1309
- },
1310
1004
  {
1311
1005
  "internalType": "uint256",
1312
- "name": "gasAmount",
1006
+ "name": "requestId",
1313
1007
  "type": "uint256"
1314
1008
  },
1315
1009
  {
1316
- "internalType": "contract IERC20",
1317
- "name": "srcToken",
1010
+ "internalType": "contract IVault",
1011
+ "name": "newVault",
1318
1012
  "type": "address"
1319
- },
1013
+ }
1014
+ ],
1015
+ "name": "claimAndDeposit",
1016
+ "outputs": [
1320
1017
  {
1321
1018
  "internalType": "uint256",
1322
- "name": "amount",
1019
+ "name": "depositId",
1323
1020
  "type": "uint256"
1324
- },
1021
+ }
1022
+ ],
1023
+ "stateMutability": "nonpayable",
1024
+ "type": "function"
1025
+ },
1026
+ {
1027
+ "inputs": [
1325
1028
  {
1326
- "internalType": "bytes",
1327
- "name": "cfParameters",
1328
- "type": "bytes"
1029
+ "internalType": "uint256",
1030
+ "name": "requestId",
1031
+ "type": "uint256"
1329
1032
  }
1330
1033
  ],
1331
- "name": "xCallToken",
1034
+ "name": "claimWithdraw",
1332
1035
  "outputs": [],
1333
1036
  "stateMutability": "nonpayable",
1334
1037
  "type": "function"
@@ -1336,203 +1039,1499 @@ export const Vault_jsonAbi = [
1336
1039
  {
1337
1040
  "inputs": [
1338
1041
  {
1339
- "internalType": "uint32",
1340
- "name": "dstChain",
1341
- "type": "uint32"
1342
- },
1343
- {
1344
- "internalType": "bytes",
1345
- "name": "dstAddress",
1346
- "type": "bytes"
1347
- },
1348
- {
1349
- "internalType": "uint32",
1350
- "name": "dstToken",
1351
- "type": "uint32"
1042
+ "internalType": "uint256",
1043
+ "name": "requestId",
1044
+ "type": "uint256"
1352
1045
  },
1353
1046
  {
1354
- "internalType": "bytes",
1355
- "name": "cfParameters",
1356
- "type": "bytes"
1047
+ "internalType": "address",
1048
+ "name": "recipient",
1049
+ "type": "address"
1357
1050
  }
1358
1051
  ],
1359
- "name": "xSwapNative",
1052
+ "name": "claimWithdrawTo",
1360
1053
  "outputs": [],
1361
- "stateMutability": "payable",
1054
+ "stateMutability": "nonpayable",
1362
1055
  "type": "function"
1363
1056
  },
1364
1057
  {
1365
1058
  "inputs": [
1366
1059
  {
1367
- "internalType": "uint32",
1368
- "name": "dstChain",
1369
- "type": "uint32"
1370
- },
1371
- {
1372
- "internalType": "bytes",
1373
- "name": "dstAddress",
1374
- "type": "bytes"
1375
- },
1060
+ "internalType": "address",
1061
+ "name": "user",
1062
+ "type": "address"
1063
+ }
1064
+ ],
1065
+ "name": "costBasisPerShare",
1066
+ "outputs": [
1376
1067
  {
1377
- "internalType": "uint32",
1378
- "name": "dstToken",
1379
- "type": "uint32"
1380
- },
1068
+ "internalType": "uint256",
1069
+ "name": "",
1070
+ "type": "uint256"
1071
+ }
1072
+ ],
1073
+ "stateMutability": "view",
1074
+ "type": "function"
1075
+ },
1076
+ {
1077
+ "inputs": [
1381
1078
  {
1382
- "internalType": "contract IERC20",
1383
- "name": "srcToken",
1079
+ "internalType": "address",
1080
+ "name": "",
1384
1081
  "type": "address"
1385
- },
1082
+ }
1083
+ ],
1084
+ "name": "costBasisValue",
1085
+ "outputs": [
1386
1086
  {
1387
1087
  "internalType": "uint256",
1388
- "name": "amount",
1088
+ "name": "",
1389
1089
  "type": "uint256"
1390
- },
1391
- {
1392
- "internalType": "bytes",
1393
- "name": "cfParameters",
1394
- "type": "bytes"
1395
1090
  }
1396
1091
  ],
1397
- "name": "xSwapToken",
1398
- "outputs": [],
1399
- "stateMutability": "nonpayable",
1092
+ "stateMutability": "view",
1400
1093
  "type": "function"
1401
1094
  },
1402
1095
  {
1403
- "stateMutability": "payable",
1404
- "type": "receive"
1405
- }
1406
- ] as const satisfies Abi;
1407
-
1408
- /**
1096
+ "inputs": [],
1097
+ "name": "depositQueueLength",
1098
+ "outputs": [
1099
+ {
1100
+ "internalType": "uint256",
1101
+ "name": "",
1102
+ "type": "uint256"
1103
+ }
1104
+ ],
1105
+ "stateMutability": "view",
1106
+ "type": "function"
1107
+ },
1108
+ {
1109
+ "inputs": [],
1110
+ "name": "feeRecipient",
1111
+ "outputs": [
1112
+ {
1113
+ "internalType": "address",
1114
+ "name": "",
1115
+ "type": "address"
1116
+ }
1117
+ ],
1118
+ "stateMutability": "view",
1119
+ "type": "function"
1120
+ },
1121
+ {
1122
+ "inputs": [
1123
+ {
1124
+ "internalType": "uint256",
1125
+ "name": "depositId",
1126
+ "type": "uint256"
1127
+ }
1128
+ ],
1129
+ "name": "getDepositRequest",
1130
+ "outputs": [
1131
+ {
1132
+ "components": [
1133
+ {
1134
+ "internalType": "address",
1135
+ "name": "owner",
1136
+ "type": "address"
1137
+ },
1138
+ {
1139
+ "internalType": "uint256",
1140
+ "name": "assets",
1141
+ "type": "uint256"
1142
+ },
1143
+ {
1144
+ "internalType": "enum IVault.DepositStatus",
1145
+ "name": "status",
1146
+ "type": "uint8"
1147
+ }
1148
+ ],
1149
+ "internalType": "struct IVault.DepositRequest",
1150
+ "name": "",
1151
+ "type": "tuple"
1152
+ }
1153
+ ],
1154
+ "stateMutability": "view",
1155
+ "type": "function"
1156
+ },
1157
+ {
1158
+ "inputs": [
1159
+ {
1160
+ "internalType": "uint256",
1161
+ "name": "requestId",
1162
+ "type": "uint256"
1163
+ }
1164
+ ],
1165
+ "name": "getRequest",
1166
+ "outputs": [
1167
+ {
1168
+ "components": [
1169
+ {
1170
+ "internalType": "address",
1171
+ "name": "owner",
1172
+ "type": "address"
1173
+ },
1174
+ {
1175
+ "internalType": "uint256",
1176
+ "name": "shares",
1177
+ "type": "uint256"
1178
+ },
1179
+ {
1180
+ "internalType": "uint256",
1181
+ "name": "costBasisValueSnapshot",
1182
+ "type": "uint256"
1183
+ },
1184
+ {
1185
+ "internalType": "uint64",
1186
+ "name": "requestedAt",
1187
+ "type": "uint64"
1188
+ },
1189
+ {
1190
+ "internalType": "uint64",
1191
+ "name": "claimableAt",
1192
+ "type": "uint64"
1193
+ },
1194
+ {
1195
+ "internalType": "enum IVault.WithdrawStatus",
1196
+ "name": "status",
1197
+ "type": "uint8"
1198
+ },
1199
+ {
1200
+ "internalType": "uint256",
1201
+ "name": "assetsOut",
1202
+ "type": "uint256"
1203
+ },
1204
+ {
1205
+ "internalType": "uint256",
1206
+ "name": "fee",
1207
+ "type": "uint256"
1208
+ }
1209
+ ],
1210
+ "internalType": "struct IVault.WithdrawRequest",
1211
+ "name": "",
1212
+ "type": "tuple"
1213
+ }
1214
+ ],
1215
+ "stateMutability": "view",
1216
+ "type": "function"
1217
+ },
1218
+ {
1219
+ "inputs": [
1220
+ {
1221
+ "internalType": "bytes32",
1222
+ "name": "role",
1223
+ "type": "bytes32"
1224
+ }
1225
+ ],
1226
+ "name": "getRoleAdmin",
1227
+ "outputs": [
1228
+ {
1229
+ "internalType": "bytes32",
1230
+ "name": "",
1231
+ "type": "bytes32"
1232
+ }
1233
+ ],
1234
+ "stateMutability": "view",
1235
+ "type": "function"
1236
+ },
1237
+ {
1238
+ "inputs": [
1239
+ {
1240
+ "internalType": "bytes32",
1241
+ "name": "role",
1242
+ "type": "bytes32"
1243
+ },
1244
+ {
1245
+ "internalType": "address",
1246
+ "name": "account",
1247
+ "type": "address"
1248
+ }
1249
+ ],
1250
+ "name": "grantRole",
1251
+ "outputs": [],
1252
+ "stateMutability": "nonpayable",
1253
+ "type": "function"
1254
+ },
1255
+ {
1256
+ "inputs": [
1257
+ {
1258
+ "internalType": "bytes32",
1259
+ "name": "role",
1260
+ "type": "bytes32"
1261
+ },
1262
+ {
1263
+ "internalType": "address",
1264
+ "name": "account",
1265
+ "type": "address"
1266
+ }
1267
+ ],
1268
+ "name": "hasRole",
1269
+ "outputs": [
1270
+ {
1271
+ "internalType": "bool",
1272
+ "name": "",
1273
+ "type": "bool"
1274
+ }
1275
+ ],
1276
+ "stateMutability": "view",
1277
+ "type": "function"
1278
+ },
1279
+ {
1280
+ "inputs": [],
1281
+ "name": "hasSettleReadyWork",
1282
+ "outputs": [
1283
+ {
1284
+ "internalType": "bool",
1285
+ "name": "",
1286
+ "type": "bool"
1287
+ }
1288
+ ],
1289
+ "stateMutability": "view",
1290
+ "type": "function"
1291
+ },
1292
+ {
1293
+ "inputs": [
1294
+ {
1295
+ "internalType": "address",
1296
+ "name": "",
1297
+ "type": "address"
1298
+ }
1299
+ ],
1300
+ "name": "isTracked",
1301
+ "outputs": [
1302
+ {
1303
+ "internalType": "bool",
1304
+ "name": "",
1305
+ "type": "bool"
1306
+ }
1307
+ ],
1308
+ "stateMutability": "view",
1309
+ "type": "function"
1310
+ },
1311
+ {
1312
+ "inputs": [],
1313
+ "name": "maxSettlementBatchSize",
1314
+ "outputs": [
1315
+ {
1316
+ "internalType": "uint256",
1317
+ "name": "",
1318
+ "type": "uint256"
1319
+ }
1320
+ ],
1321
+ "stateMutability": "view",
1322
+ "type": "function"
1323
+ },
1324
+ {
1325
+ "inputs": [],
1326
+ "name": "minDepositAssets",
1327
+ "outputs": [
1328
+ {
1329
+ "internalType": "uint256",
1330
+ "name": "",
1331
+ "type": "uint256"
1332
+ }
1333
+ ],
1334
+ "stateMutability": "view",
1335
+ "type": "function"
1336
+ },
1337
+ {
1338
+ "inputs": [
1339
+ {
1340
+ "internalType": "address",
1341
+ "name": "from",
1342
+ "type": "address"
1343
+ },
1344
+ {
1345
+ "internalType": "address",
1346
+ "name": "to",
1347
+ "type": "address"
1348
+ },
1349
+ {
1350
+ "internalType": "uint256",
1351
+ "name": "value",
1352
+ "type": "uint256"
1353
+ }
1354
+ ],
1355
+ "name": "onShareTransfer",
1356
+ "outputs": [],
1357
+ "stateMutability": "nonpayable",
1358
+ "type": "function"
1359
+ },
1360
+ {
1361
+ "inputs": [],
1362
+ "name": "oracle",
1363
+ "outputs": [
1364
+ {
1365
+ "internalType": "address",
1366
+ "name": "",
1367
+ "type": "address"
1368
+ }
1369
+ ],
1370
+ "stateMutability": "view",
1371
+ "type": "function"
1372
+ },
1373
+ {
1374
+ "inputs": [],
1375
+ "name": "oracleContract",
1376
+ "outputs": [
1377
+ {
1378
+ "internalType": "contract IOracle",
1379
+ "name": "",
1380
+ "type": "address"
1381
+ }
1382
+ ],
1383
+ "stateMutability": "view",
1384
+ "type": "function"
1385
+ },
1386
+ {
1387
+ "inputs": [],
1388
+ "name": "pause",
1389
+ "outputs": [],
1390
+ "stateMutability": "nonpayable",
1391
+ "type": "function"
1392
+ },
1393
+ {
1394
+ "inputs": [],
1395
+ "name": "paused",
1396
+ "outputs": [
1397
+ {
1398
+ "internalType": "bool",
1399
+ "name": "",
1400
+ "type": "bool"
1401
+ }
1402
+ ],
1403
+ "stateMutability": "view",
1404
+ "type": "function"
1405
+ },
1406
+ {
1407
+ "inputs": [],
1408
+ "name": "pendingDepositTotal",
1409
+ "outputs": [
1410
+ {
1411
+ "internalType": "uint256",
1412
+ "name": "",
1413
+ "type": "uint256"
1414
+ }
1415
+ ],
1416
+ "stateMutability": "view",
1417
+ "type": "function"
1418
+ },
1419
+ {
1420
+ "inputs": [],
1421
+ "name": "pendingSettlementWithdrawShares",
1422
+ "outputs": [
1423
+ {
1424
+ "internalType": "uint256",
1425
+ "name": "",
1426
+ "type": "uint256"
1427
+ }
1428
+ ],
1429
+ "stateMutability": "view",
1430
+ "type": "function"
1431
+ },
1432
+ {
1433
+ "inputs": [],
1434
+ "name": "pendingWithdrawShares",
1435
+ "outputs": [
1436
+ {
1437
+ "internalType": "uint256",
1438
+ "name": "",
1439
+ "type": "uint256"
1440
+ }
1441
+ ],
1442
+ "stateMutability": "view",
1443
+ "type": "function"
1444
+ },
1445
+ {
1446
+ "inputs": [],
1447
+ "name": "performanceFee",
1448
+ "outputs": [
1449
+ {
1450
+ "internalType": "uint256",
1451
+ "name": "",
1452
+ "type": "uint256"
1453
+ }
1454
+ ],
1455
+ "stateMutability": "view",
1456
+ "type": "function"
1457
+ },
1458
+ {
1459
+ "inputs": [
1460
+ {
1461
+ "internalType": "uint256",
1462
+ "name": "assets",
1463
+ "type": "uint256"
1464
+ }
1465
+ ],
1466
+ "name": "previewDeposit",
1467
+ "outputs": [
1468
+ {
1469
+ "internalType": "uint256",
1470
+ "name": "",
1471
+ "type": "uint256"
1472
+ }
1473
+ ],
1474
+ "stateMutability": "view",
1475
+ "type": "function"
1476
+ },
1477
+ {
1478
+ "inputs": [
1479
+ {
1480
+ "internalType": "uint256",
1481
+ "name": "sharesIn",
1482
+ "type": "uint256"
1483
+ },
1484
+ {
1485
+ "internalType": "address",
1486
+ "name": "owner",
1487
+ "type": "address"
1488
+ }
1489
+ ],
1490
+ "name": "previewWithdraw",
1491
+ "outputs": [
1492
+ {
1493
+ "internalType": "uint256",
1494
+ "name": "estimatedAssets",
1495
+ "type": "uint256"
1496
+ },
1497
+ {
1498
+ "internalType": "uint256",
1499
+ "name": "estimatedFee",
1500
+ "type": "uint256"
1501
+ }
1502
+ ],
1503
+ "stateMutability": "view",
1504
+ "type": "function"
1505
+ },
1506
+ {
1507
+ "inputs": [],
1508
+ "name": "pricePerShare",
1509
+ "outputs": [
1510
+ {
1511
+ "internalType": "uint256",
1512
+ "name": "",
1513
+ "type": "uint256"
1514
+ }
1515
+ ],
1516
+ "stateMutability": "view",
1517
+ "type": "function"
1518
+ },
1519
+ {
1520
+ "inputs": [],
1521
+ "name": "queueLength",
1522
+ "outputs": [
1523
+ {
1524
+ "internalType": "uint256",
1525
+ "name": "",
1526
+ "type": "uint256"
1527
+ }
1528
+ ],
1529
+ "stateMutability": "view",
1530
+ "type": "function"
1531
+ },
1532
+ {
1533
+ "inputs": [
1534
+ {
1535
+ "internalType": "address[]",
1536
+ "name": "targets",
1537
+ "type": "address[]"
1538
+ },
1539
+ {
1540
+ "internalType": "bytes[]",
1541
+ "name": "calldatas",
1542
+ "type": "bytes[]"
1543
+ }
1544
+ ],
1545
+ "name": "rebalance",
1546
+ "outputs": [],
1547
+ "stateMutability": "nonpayable",
1548
+ "type": "function"
1549
+ },
1550
+ {
1551
+ "inputs": [
1552
+ {
1553
+ "internalType": "address",
1554
+ "name": "token",
1555
+ "type": "address"
1556
+ }
1557
+ ],
1558
+ "name": "removeTrackedToken",
1559
+ "outputs": [],
1560
+ "stateMutability": "nonpayable",
1561
+ "type": "function"
1562
+ },
1563
+ {
1564
+ "inputs": [
1565
+ {
1566
+ "internalType": "bytes32",
1567
+ "name": "role",
1568
+ "type": "bytes32"
1569
+ },
1570
+ {
1571
+ "internalType": "address",
1572
+ "name": "callerConfirmation",
1573
+ "type": "address"
1574
+ }
1575
+ ],
1576
+ "name": "renounceRole",
1577
+ "outputs": [],
1578
+ "stateMutability": "nonpayable",
1579
+ "type": "function"
1580
+ },
1581
+ {
1582
+ "inputs": [
1583
+ {
1584
+ "internalType": "uint256",
1585
+ "name": "assets",
1586
+ "type": "uint256"
1587
+ }
1588
+ ],
1589
+ "name": "requestDeposit",
1590
+ "outputs": [
1591
+ {
1592
+ "internalType": "uint256",
1593
+ "name": "depositId",
1594
+ "type": "uint256"
1595
+ }
1596
+ ],
1597
+ "stateMutability": "nonpayable",
1598
+ "type": "function"
1599
+ },
1600
+ {
1601
+ "inputs": [
1602
+ {
1603
+ "internalType": "uint256",
1604
+ "name": "assets",
1605
+ "type": "uint256"
1606
+ },
1607
+ {
1608
+ "internalType": "address",
1609
+ "name": "recipient",
1610
+ "type": "address"
1611
+ }
1612
+ ],
1613
+ "name": "requestDepositFor",
1614
+ "outputs": [
1615
+ {
1616
+ "internalType": "uint256",
1617
+ "name": "depositId",
1618
+ "type": "uint256"
1619
+ }
1620
+ ],
1621
+ "stateMutability": "nonpayable",
1622
+ "type": "function"
1623
+ },
1624
+ {
1625
+ "inputs": [
1626
+ {
1627
+ "internalType": "uint256",
1628
+ "name": "sharesIn",
1629
+ "type": "uint256"
1630
+ }
1631
+ ],
1632
+ "name": "requestWithdraw",
1633
+ "outputs": [
1634
+ {
1635
+ "internalType": "uint256",
1636
+ "name": "requestId",
1637
+ "type": "uint256"
1638
+ }
1639
+ ],
1640
+ "stateMutability": "nonpayable",
1641
+ "type": "function"
1642
+ },
1643
+ {
1644
+ "inputs": [
1645
+ {
1646
+ "internalType": "bytes32",
1647
+ "name": "role",
1648
+ "type": "bytes32"
1649
+ },
1650
+ {
1651
+ "internalType": "address",
1652
+ "name": "account",
1653
+ "type": "address"
1654
+ }
1655
+ ],
1656
+ "name": "revokeRole",
1657
+ "outputs": [],
1658
+ "stateMutability": "nonpayable",
1659
+ "type": "function"
1660
+ },
1661
+ {
1662
+ "inputs": [
1663
+ {
1664
+ "internalType": "address",
1665
+ "name": "recipient",
1666
+ "type": "address"
1667
+ }
1668
+ ],
1669
+ "name": "setFeeRecipient",
1670
+ "outputs": [],
1671
+ "stateMutability": "nonpayable",
1672
+ "type": "function"
1673
+ },
1674
+ {
1675
+ "inputs": [
1676
+ {
1677
+ "internalType": "uint256",
1678
+ "name": "size",
1679
+ "type": "uint256"
1680
+ }
1681
+ ],
1682
+ "name": "setMaxSettlementBatchSize",
1683
+ "outputs": [],
1684
+ "stateMutability": "nonpayable",
1685
+ "type": "function"
1686
+ },
1687
+ {
1688
+ "inputs": [
1689
+ {
1690
+ "internalType": "uint256",
1691
+ "name": "amount",
1692
+ "type": "uint256"
1693
+ }
1694
+ ],
1695
+ "name": "setMinDepositAssets",
1696
+ "outputs": [],
1697
+ "stateMutability": "nonpayable",
1698
+ "type": "function"
1699
+ },
1700
+ {
1701
+ "inputs": [
1702
+ {
1703
+ "internalType": "contract IOracle",
1704
+ "name": "_oracle",
1705
+ "type": "address"
1706
+ }
1707
+ ],
1708
+ "name": "setOracle",
1709
+ "outputs": [],
1710
+ "stateMutability": "nonpayable",
1711
+ "type": "function"
1712
+ },
1713
+ {
1714
+ "inputs": [
1715
+ {
1716
+ "internalType": "uint256",
1717
+ "name": "feeBps",
1718
+ "type": "uint256"
1719
+ }
1720
+ ],
1721
+ "name": "setPerformanceFee",
1722
+ "outputs": [],
1723
+ "stateMutability": "nonpayable",
1724
+ "type": "function"
1725
+ },
1726
+ {
1727
+ "inputs": [
1728
+ {
1729
+ "internalType": "uint256",
1730
+ "name": "fee",
1731
+ "type": "uint256"
1732
+ }
1733
+ ],
1734
+ "name": "setSettlementFee",
1735
+ "outputs": [],
1736
+ "stateMutability": "nonpayable",
1737
+ "type": "function"
1738
+ },
1739
+ {
1740
+ "inputs": [
1741
+ {
1742
+ "internalType": "address",
1743
+ "name": "target",
1744
+ "type": "address"
1745
+ },
1746
+ {
1747
+ "internalType": "bool",
1748
+ "name": "allowed",
1749
+ "type": "bool"
1750
+ }
1751
+ ],
1752
+ "name": "setTargetAllowed",
1753
+ "outputs": [],
1754
+ "stateMutability": "nonpayable",
1755
+ "type": "function"
1756
+ },
1757
+ {
1758
+ "inputs": [
1759
+ {
1760
+ "internalType": "address[]",
1761
+ "name": "tokens",
1762
+ "type": "address[]"
1763
+ },
1764
+ {
1765
+ "internalType": "uint128[]",
1766
+ "name": "prices",
1767
+ "type": "uint128[]"
1768
+ }
1769
+ ],
1770
+ "name": "settle",
1771
+ "outputs": [],
1772
+ "stateMutability": "nonpayable",
1773
+ "type": "function"
1774
+ },
1775
+ {
1776
+ "inputs": [],
1777
+ "name": "settledWithdrawalLiabilityTotal",
1778
+ "outputs": [
1779
+ {
1780
+ "internalType": "uint256",
1781
+ "name": "",
1782
+ "type": "uint256"
1783
+ }
1784
+ ],
1785
+ "stateMutability": "view",
1786
+ "type": "function"
1787
+ },
1788
+ {
1789
+ "inputs": [],
1790
+ "name": "settlementFeeAssets",
1791
+ "outputs": [
1792
+ {
1793
+ "internalType": "uint256",
1794
+ "name": "",
1795
+ "type": "uint256"
1796
+ }
1797
+ ],
1798
+ "stateMutability": "view",
1799
+ "type": "function"
1800
+ },
1801
+ {
1802
+ "inputs": [],
1803
+ "name": "shareToken",
1804
+ "outputs": [
1805
+ {
1806
+ "internalType": "contract HPT",
1807
+ "name": "",
1808
+ "type": "address"
1809
+ }
1810
+ ],
1811
+ "stateMutability": "view",
1812
+ "type": "function"
1813
+ },
1814
+ {
1815
+ "inputs": [],
1816
+ "name": "shares",
1817
+ "outputs": [
1818
+ {
1819
+ "internalType": "address",
1820
+ "name": "",
1821
+ "type": "address"
1822
+ }
1823
+ ],
1824
+ "stateMutability": "view",
1825
+ "type": "function"
1826
+ },
1827
+ {
1828
+ "inputs": [
1829
+ {
1830
+ "internalType": "bytes4",
1831
+ "name": "interfaceId",
1832
+ "type": "bytes4"
1833
+ }
1834
+ ],
1835
+ "name": "supportsInterface",
1836
+ "outputs": [
1837
+ {
1838
+ "internalType": "bool",
1839
+ "name": "",
1840
+ "type": "bool"
1841
+ }
1842
+ ],
1843
+ "stateMutability": "view",
1844
+ "type": "function"
1845
+ },
1846
+ {
1847
+ "inputs": [
1848
+ {
1849
+ "internalType": "address",
1850
+ "name": "",
1851
+ "type": "address"
1852
+ }
1853
+ ],
1854
+ "name": "targetAllowed",
1855
+ "outputs": [
1856
+ {
1857
+ "internalType": "bool",
1858
+ "name": "",
1859
+ "type": "bool"
1860
+ }
1861
+ ],
1862
+ "stateMutability": "view",
1863
+ "type": "function"
1864
+ },
1865
+ {
1866
+ "inputs": [
1867
+ {
1868
+ "internalType": "address",
1869
+ "name": "",
1870
+ "type": "address"
1871
+ }
1872
+ ],
1873
+ "name": "tokenDecimals",
1874
+ "outputs": [
1875
+ {
1876
+ "internalType": "uint8",
1877
+ "name": "",
1878
+ "type": "uint8"
1879
+ }
1880
+ ],
1881
+ "stateMutability": "view",
1882
+ "type": "function"
1883
+ },
1884
+ {
1885
+ "inputs": [],
1886
+ "name": "totalAssets",
1887
+ "outputs": [
1888
+ {
1889
+ "internalType": "uint256",
1890
+ "name": "",
1891
+ "type": "uint256"
1892
+ }
1893
+ ],
1894
+ "stateMutability": "view",
1895
+ "type": "function"
1896
+ },
1897
+ {
1898
+ "inputs": [],
1899
+ "name": "trackedTokens",
1900
+ "outputs": [
1901
+ {
1902
+ "internalType": "address[]",
1903
+ "name": "",
1904
+ "type": "address[]"
1905
+ }
1906
+ ],
1907
+ "stateMutability": "view",
1908
+ "type": "function"
1909
+ },
1910
+ {
1911
+ "inputs": [],
1912
+ "name": "unpause",
1913
+ "outputs": [],
1914
+ "stateMutability": "nonpayable",
1915
+ "type": "function"
1916
+ },
1917
+ {
1918
+ "inputs": [
1919
+ {
1920
+ "internalType": "address",
1921
+ "name": "user",
1922
+ "type": "address"
1923
+ }
1924
+ ],
1925
+ "name": "userDepositIds",
1926
+ "outputs": [
1927
+ {
1928
+ "internalType": "uint256[]",
1929
+ "name": "",
1930
+ "type": "uint256[]"
1931
+ }
1932
+ ],
1933
+ "stateMutability": "view",
1934
+ "type": "function"
1935
+ },
1936
+ {
1937
+ "inputs": [
1938
+ {
1939
+ "internalType": "address",
1940
+ "name": "user",
1941
+ "type": "address"
1942
+ }
1943
+ ],
1944
+ "name": "userRequestIds",
1945
+ "outputs": [
1946
+ {
1947
+ "internalType": "uint256[]",
1948
+ "name": "",
1949
+ "type": "uint256[]"
1950
+ }
1951
+ ],
1952
+ "stateMutability": "view",
1953
+ "type": "function"
1954
+ }
1955
+ ] as const satisfies Abi;
1956
+
1957
+ /**
1409
1958
  * Type-safe ABI for Vault_json
1410
1959
  */
1411
1960
  export type Vault_jsonAbi = typeof Vault_jsonAbi;
1412
1961
 
1413
- /**
1414
- * Contract instance type for Vault_json
1415
- */
1416
- // Use any for contract type to avoid complex viem type issues
1417
- // The runtime behavior is type-safe through viem's ABI typing
1418
- export type Vault_jsonContract = any;
1962
+ /**
1963
+ * Contract instance type for Vault_json
1964
+ */
1965
+ // Use any for contract type to avoid complex viem type issues
1966
+ // The runtime behavior is type-safe through viem's ABI typing
1967
+ export type Vault_jsonContract = any;
1968
+
1969
+ /**
1970
+ * Vault_json Contract Class
1971
+ *
1972
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
1973
+ *
1974
+ * @example
1975
+ * ```typescript
1976
+ * import { createPublicClient, createWalletClient, http } from 'viem';
1977
+ * import { mainnet } from 'viem/chains';
1978
+ * import { Vault_json } from 'Vault_json';
1979
+ *
1980
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1981
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1982
+ *
1983
+ * const contract = new Vault_json('0x...', { publicClient, walletClient });
1984
+ *
1985
+ * // Read functions
1986
+ * const result = await contract.balanceOf('0x...');
1987
+ *
1988
+ * // Write functions
1989
+ * const hash = await contract.transfer('0x...', 1000n);
1990
+ *
1991
+ * // Simulate transactions (dry-run)
1992
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
1993
+ * console.log('Gas estimate:', simulation.request.gas);
1994
+ *
1995
+ * // Watch events
1996
+ * const unwatch = contract.watch.Transfer((event) => {
1997
+ * console.log('Transfer event:', event);
1998
+ * });
1999
+ * ```
2000
+ */
2001
+ export class Vault_json {
2002
+ private contract: Vault_jsonContract;
2003
+ private contractAddress: Address;
2004
+ private publicClient: PublicClient;
2005
+
2006
+ constructor(
2007
+ address: Address,
2008
+ clients: {
2009
+ publicClient: PublicClient;
2010
+ walletClient?: WalletClient;
2011
+ }
2012
+ ) {
2013
+ this.contractAddress = address;
2014
+ this.publicClient = clients.publicClient;
2015
+ this.contract = getContract({
2016
+ address,
2017
+ abi: Vault_jsonAbi,
2018
+ client: {
2019
+ public: clients.publicClient,
2020
+ wallet: clients.walletClient,
2021
+ },
2022
+ });
2023
+ }
2024
+
2025
+ /**
2026
+ * Get the contract address
2027
+ */
2028
+ get address(): Address {
2029
+ return this.contractAddress;
2030
+ }
2031
+
2032
+ /**
2033
+ * Get the underlying viem contract instance
2034
+ */
2035
+ getContract(): Vault_jsonContract {
2036
+ return this.contract;
2037
+ }
2038
+
2039
+ /**
2040
+ * BOT_ROLE
2041
+ * view
2042
+ */
2043
+ async BOT_ROLE(): Promise<`0x${string}`> {
2044
+ return this.contract.read.BOT_ROLE() as Promise<`0x${string}`>;
2045
+ }
2046
+
2047
+ /**
2048
+ * BPS
2049
+ * view
2050
+ */
2051
+ async BPS(): Promise<bigint> {
2052
+ return this.contract.read.BPS() as Promise<bigint>;
2053
+ }
2054
+
2055
+ /**
2056
+ * DEFAULT_ADMIN_ROLE
2057
+ * view
2058
+ */
2059
+ async DEFAULT_ADMIN_ROLE(): Promise<`0x${string}`> {
2060
+ return this.contract.read.DEFAULT_ADMIN_ROLE() as Promise<`0x${string}`>;
2061
+ }
2062
+
2063
+ /**
2064
+ * GUARDIAN_ROLE
2065
+ * view
2066
+ */
2067
+ async GUARDIAN_ROLE(): Promise<`0x${string}`> {
2068
+ return this.contract.read.GUARDIAN_ROLE() as Promise<`0x${string}`>;
2069
+ }
2070
+
2071
+ /**
2072
+ * MANAGER_ROLE
2073
+ * view
2074
+ */
2075
+ async MANAGER_ROLE(): Promise<`0x${string}`> {
2076
+ return this.contract.read.MANAGER_ROLE() as Promise<`0x${string}`>;
2077
+ }
2078
+
2079
+ /**
2080
+ * MAX_FEE_BPS
2081
+ * view
2082
+ */
2083
+ async MAX_FEE_BPS(): Promise<bigint> {
2084
+ return this.contract.read.MAX_FEE_BPS() as Promise<bigint>;
2085
+ }
2086
+
2087
+ /**
2088
+ * SHARE_SCALE
2089
+ * view
2090
+ */
2091
+ async SHARE_SCALE(): Promise<bigint> {
2092
+ return this.contract.read.SHARE_SCALE() as Promise<bigint>;
2093
+ }
2094
+
2095
+ /**
2096
+ * asset
2097
+ * view
2098
+ */
2099
+ async asset(): Promise<`0x${string}`> {
2100
+ return this.contract.read.asset() as Promise<`0x${string}`>;
2101
+ }
2102
+
2103
+ /**
2104
+ * assetDecimals
2105
+ * view
2106
+ */
2107
+ async assetDecimals(): Promise<bigint> {
2108
+ return this.contract.read.assetDecimals() as Promise<bigint>;
2109
+ }
2110
+
2111
+ /**
2112
+ * assetToken
2113
+ * view
2114
+ */
2115
+ async assetToken(): Promise<`0x${string}`> {
2116
+ return this.contract.read.assetToken() as Promise<`0x${string}`>;
2117
+ }
2118
+
2119
+ /**
2120
+ * costBasisPerShare
2121
+ * view
2122
+ */
2123
+ async costBasisPerShare(user: `0x${string}`): Promise<bigint> {
2124
+ return this.contract.read.costBasisPerShare([user] as const) as Promise<bigint>;
2125
+ }
2126
+
2127
+ /**
2128
+ * costBasisValue
2129
+ * view
2130
+ */
2131
+ async costBasisValue(arg0: `0x${string}`): Promise<bigint> {
2132
+ return this.contract.read.costBasisValue([arg0] as const) as Promise<bigint>;
2133
+ }
2134
+
2135
+ /**
2136
+ * depositQueueLength
2137
+ * view
2138
+ */
2139
+ async depositQueueLength(): Promise<bigint> {
2140
+ return this.contract.read.depositQueueLength() as Promise<bigint>;
2141
+ }
2142
+
2143
+ /**
2144
+ * feeRecipient
2145
+ * view
2146
+ */
2147
+ async feeRecipient(): Promise<`0x${string}`> {
2148
+ return this.contract.read.feeRecipient() as Promise<`0x${string}`>;
2149
+ }
2150
+
2151
+ /**
2152
+ * getDepositRequest
2153
+ * view
2154
+ */
2155
+ async getDepositRequest(depositId: bigint): Promise<IVault_DepositRequest> {
2156
+ return this.contract.read.getDepositRequest([depositId] as const) as Promise<IVault_DepositRequest>;
2157
+ }
2158
+
2159
+ /**
2160
+ * getRequest
2161
+ * view
2162
+ */
2163
+ async getRequest(requestId: bigint): Promise<IVault_WithdrawRequest> {
2164
+ return this.contract.read.getRequest([requestId] as const) as Promise<IVault_WithdrawRequest>;
2165
+ }
2166
+
2167
+ /**
2168
+ * getRoleAdmin
2169
+ * view
2170
+ */
2171
+ async getRoleAdmin(role: `0x${string}`): Promise<`0x${string}`> {
2172
+ return this.contract.read.getRoleAdmin([role] as const) as Promise<`0x${string}`>;
2173
+ }
2174
+
2175
+ /**
2176
+ * hasRole
2177
+ * view
2178
+ */
2179
+ async hasRole(role: `0x${string}`, account: `0x${string}`): Promise<boolean> {
2180
+ return this.contract.read.hasRole([role, account] as const) as Promise<boolean>;
2181
+ }
2182
+
2183
+ /**
2184
+ * hasSettleReadyWork
2185
+ * view
2186
+ */
2187
+ async hasSettleReadyWork(): Promise<boolean> {
2188
+ return this.contract.read.hasSettleReadyWork() as Promise<boolean>;
2189
+ }
2190
+
2191
+ /**
2192
+ * isTracked
2193
+ * view
2194
+ */
2195
+ async isTracked(arg0: `0x${string}`): Promise<boolean> {
2196
+ return this.contract.read.isTracked([arg0] as const) as Promise<boolean>;
2197
+ }
2198
+
2199
+ /**
2200
+ * maxSettlementBatchSize
2201
+ * view
2202
+ */
2203
+ async maxSettlementBatchSize(): Promise<bigint> {
2204
+ return this.contract.read.maxSettlementBatchSize() as Promise<bigint>;
2205
+ }
2206
+
2207
+ /**
2208
+ * minDepositAssets
2209
+ * view
2210
+ */
2211
+ async minDepositAssets(): Promise<bigint> {
2212
+ return this.contract.read.minDepositAssets() as Promise<bigint>;
2213
+ }
2214
+
2215
+ /**
2216
+ * oracle
2217
+ * view
2218
+ */
2219
+ async oracle(): Promise<`0x${string}`> {
2220
+ return this.contract.read.oracle() as Promise<`0x${string}`>;
2221
+ }
2222
+
2223
+ /**
2224
+ * oracleContract
2225
+ * view
2226
+ */
2227
+ async oracleContract(): Promise<`0x${string}`> {
2228
+ return this.contract.read.oracleContract() as Promise<`0x${string}`>;
2229
+ }
1419
2230
 
1420
- /**
1421
- * Vault_json Contract Class
1422
- *
1423
- * Provides a class-based API similar to TypeChain for interacting with the contract.
1424
- *
1425
- * @example
1426
- * ```typescript
1427
- * import { createPublicClient, createWalletClient, http } from 'viem';
1428
- * import { mainnet } from 'viem/chains';
1429
- * import { Vault_json } from 'Vault_json';
1430
- *
1431
- * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1432
- * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1433
- *
1434
- * const contract = new Vault_json('0x...', { publicClient, walletClient });
1435
- *
1436
- * // Read functions
1437
- * const result = await contract.balanceOf('0x...');
1438
- *
1439
- * // Write functions
1440
- * const hash = await contract.transfer('0x...', 1000n);
1441
- *
1442
- * // Simulate transactions (dry-run)
1443
- * const simulation = await contract.simulate.transfer('0x...', 1000n);
1444
- * console.log('Gas estimate:', simulation.request.gas);
1445
- *
1446
- * // Watch events
1447
- * const unwatch = contract.watch.Transfer((event) => {
1448
- * console.log('Transfer event:', event);
1449
- * });
1450
- * ```
1451
- */
1452
- export class Vault_json {
1453
- private contract: Vault_jsonContract;
1454
- private contractAddress: Address;
1455
- private publicClient: PublicClient;
2231
+ /**
2232
+ * paused
2233
+ * view
2234
+ */
2235
+ async paused(): Promise<boolean> {
2236
+ return this.contract.read.paused() as Promise<boolean>;
2237
+ }
1456
2238
 
1457
- constructor(
1458
- address: Address,
1459
- clients: {
1460
- publicClient: PublicClient;
1461
- walletClient?: WalletClient;
1462
- }
1463
- ) {
1464
- this.contractAddress = address;
1465
- this.publicClient = clients.publicClient;
1466
- this.contract = getContract({
1467
- address,
1468
- abi: Vault_jsonAbi,
1469
- client: {
1470
- public: clients.publicClient,
1471
- wallet: clients.walletClient,
1472
- },
1473
- });
2239
+ /**
2240
+ * pendingDepositTotal
2241
+ * view
2242
+ */
2243
+ async pendingDepositTotal(): Promise<bigint> {
2244
+ return this.contract.read.pendingDepositTotal() as Promise<bigint>;
1474
2245
  }
1475
2246
 
1476
2247
  /**
1477
- * Get the contract address
2248
+ * pendingSettlementWithdrawShares
2249
+ * view
1478
2250
  */
1479
- get address(): Address {
1480
- return this.contractAddress;
2251
+ async pendingSettlementWithdrawShares(): Promise<bigint> {
2252
+ return this.contract.read.pendingSettlementWithdrawShares() as Promise<bigint>;
1481
2253
  }
1482
2254
 
1483
2255
  /**
1484
- * Get the underlying viem contract instance
2256
+ * pendingWithdrawShares
2257
+ * view
1485
2258
  */
1486
- getContract(): Vault_jsonContract {
1487
- return this.contract;
2259
+ async pendingWithdrawShares(): Promise<bigint> {
2260
+ return this.contract.read.pendingWithdrawShares() as Promise<bigint>;
2261
+ }
2262
+
2263
+ /**
2264
+ * performanceFee
2265
+ * view
2266
+ */
2267
+ async performanceFee(): Promise<bigint> {
2268
+ return this.contract.read.performanceFee() as Promise<bigint>;
2269
+ }
2270
+
2271
+ /**
2272
+ * previewDeposit
2273
+ * view
2274
+ */
2275
+ async previewDeposit(assets: bigint): Promise<bigint> {
2276
+ return this.contract.read.previewDeposit([assets] as const) as Promise<bigint>;
2277
+ }
2278
+
2279
+ /**
2280
+ * previewWithdraw
2281
+ * view
2282
+ */
2283
+ async previewWithdraw(sharesIn: bigint, owner: `0x${string}`): Promise<[bigint, bigint]> {
2284
+ return this.contract.read.previewWithdraw([sharesIn, owner] as const) as Promise<[bigint, bigint]>;
2285
+ }
2286
+
2287
+ /**
2288
+ * pricePerShare
2289
+ * view
2290
+ */
2291
+ async pricePerShare(): Promise<bigint> {
2292
+ return this.contract.read.pricePerShare() as Promise<bigint>;
2293
+ }
2294
+
2295
+ /**
2296
+ * queueLength
2297
+ * view
2298
+ */
2299
+ async queueLength(): Promise<bigint> {
2300
+ return this.contract.read.queueLength() as Promise<bigint>;
2301
+ }
2302
+
2303
+ /**
2304
+ * settledWithdrawalLiabilityTotal
2305
+ * view
2306
+ */
2307
+ async settledWithdrawalLiabilityTotal(): Promise<bigint> {
2308
+ return this.contract.read.settledWithdrawalLiabilityTotal() as Promise<bigint>;
2309
+ }
2310
+
2311
+ /**
2312
+ * settlementFeeAssets
2313
+ * view
2314
+ */
2315
+ async settlementFeeAssets(): Promise<bigint> {
2316
+ return this.contract.read.settlementFeeAssets() as Promise<bigint>;
2317
+ }
2318
+
2319
+ /**
2320
+ * shareToken
2321
+ * view
2322
+ */
2323
+ async shareToken(): Promise<`0x${string}`> {
2324
+ return this.contract.read.shareToken() as Promise<`0x${string}`>;
2325
+ }
2326
+
2327
+ /**
2328
+ * shares
2329
+ * view
2330
+ */
2331
+ async shares(): Promise<`0x${string}`> {
2332
+ return this.contract.read.shares() as Promise<`0x${string}`>;
2333
+ }
2334
+
2335
+ /**
2336
+ * supportsInterface
2337
+ * view
2338
+ */
2339
+ async supportsInterface(interfaceId: `0x${string}`): Promise<boolean> {
2340
+ return this.contract.read.supportsInterface([interfaceId] as const) as Promise<boolean>;
2341
+ }
2342
+
2343
+ /**
2344
+ * targetAllowed
2345
+ * view
2346
+ */
2347
+ async targetAllowed(arg0: `0x${string}`): Promise<boolean> {
2348
+ return this.contract.read.targetAllowed([arg0] as const) as Promise<boolean>;
1488
2349
  }
1489
2350
 
1490
2351
  /**
1491
- * getCommunityGuardDisabled
2352
+ * tokenDecimals
1492
2353
  * view
1493
2354
  */
1494
- async getCommunityGuardDisabled(): Promise<boolean> {
1495
- return this.contract.read.getCommunityGuardDisabled() as Promise<boolean>;
2355
+ async tokenDecimals(arg0: `0x${string}`): Promise<bigint> {
2356
+ return this.contract.read.tokenDecimals([arg0] as const) as Promise<bigint>;
1496
2357
  }
1497
2358
 
1498
2359
  /**
1499
- * getCommunityKey
2360
+ * totalAssets
1500
2361
  * view
1501
2362
  */
1502
- async getCommunityKey(): Promise<`0x${string}`> {
1503
- return this.contract.read.getCommunityKey() as Promise<`0x${string}`>;
2363
+ async totalAssets(): Promise<bigint> {
2364
+ return this.contract.read.totalAssets() as Promise<bigint>;
1504
2365
  }
1505
2366
 
1506
2367
  /**
1507
- * getGovernor
2368
+ * trackedTokens
1508
2369
  * view
1509
2370
  */
1510
- async getGovernor(): Promise<`0x${string}`> {
1511
- return this.contract.read.getGovernor() as Promise<`0x${string}`>;
2371
+ async trackedTokens(): Promise<`0x${string}`[]> {
2372
+ return this.contract.read.trackedTokens() as Promise<`0x${string}`[]>;
1512
2373
  }
1513
2374
 
1514
2375
  /**
1515
- * getKeyManager
2376
+ * userDepositIds
1516
2377
  * view
1517
2378
  */
1518
- async getKeyManager(): Promise<`0x${string}`> {
1519
- return this.contract.read.getKeyManager() as Promise<`0x${string}`>;
2379
+ async userDepositIds(user: `0x${string}`): Promise<bigint[]> {
2380
+ return this.contract.read.userDepositIds([user] as const) as Promise<bigint[]>;
1520
2381
  }
1521
2382
 
1522
2383
  /**
1523
- * getSuspendedState
2384
+ * userRequestIds
1524
2385
  * view
1525
2386
  */
1526
- async getSuspendedState(): Promise<boolean> {
1527
- return this.contract.read.getSuspendedState() as Promise<boolean>;
2387
+ async userRequestIds(user: `0x${string}`): Promise<bigint[]> {
2388
+ return this.contract.read.userRequestIds([user] as const) as Promise<bigint[]>;
2389
+ }
2390
+
2391
+ /**
2392
+ * addTrackedToken
2393
+ * nonpayable
2394
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2395
+ */
2396
+ async addTrackedToken(token: `0x${string}`, options?: {
2397
+ accessList?: import('viem').AccessList;
2398
+ authorizationList?: import('viem').AuthorizationList;
2399
+ chain?: import('viem').Chain | null;
2400
+ dataSuffix?: `0x${string}`;
2401
+ gas?: bigint;
2402
+ gasPrice?: bigint;
2403
+ maxFeePerGas?: bigint;
2404
+ maxPriorityFeePerGas?: bigint;
2405
+ nonce?: number;
2406
+ value?: bigint;
2407
+ }): Promise<`0x${string}`> {
2408
+ if (!this.contract.write) {
2409
+ throw new Error('Wallet client is required for write operations');
2410
+ }
2411
+ return this.contract.write.addTrackedToken([token] as const, options) as Promise<`0x${string}`>;
2412
+ }
2413
+
2414
+ /**
2415
+ * approveERC20
2416
+ * nonpayable
2417
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2418
+ */
2419
+ async approveERC20(token: `0x${string}`, spender: `0x${string}`, amount: bigint, options?: {
2420
+ accessList?: import('viem').AccessList;
2421
+ authorizationList?: import('viem').AuthorizationList;
2422
+ chain?: import('viem').Chain | null;
2423
+ dataSuffix?: `0x${string}`;
2424
+ gas?: bigint;
2425
+ gasPrice?: bigint;
2426
+ maxFeePerGas?: bigint;
2427
+ maxPriorityFeePerGas?: bigint;
2428
+ nonce?: number;
2429
+ value?: bigint;
2430
+ }): Promise<`0x${string}`> {
2431
+ if (!this.contract.write) {
2432
+ throw new Error('Wallet client is required for write operations');
2433
+ }
2434
+ return this.contract.write.approveERC20([token, spender, amount] as const, options) as Promise<`0x${string}`>;
2435
+ }
2436
+
2437
+ /**
2438
+ * approvePermit2
2439
+ * nonpayable
2440
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2441
+ */
2442
+ async approvePermit2(permit2: `0x${string}`, token: `0x${string}`, spender: `0x${string}`, amount: bigint, expiration: bigint, options?: {
2443
+ accessList?: import('viem').AccessList;
2444
+ authorizationList?: import('viem').AuthorizationList;
2445
+ chain?: import('viem').Chain | null;
2446
+ dataSuffix?: `0x${string}`;
2447
+ gas?: bigint;
2448
+ gasPrice?: bigint;
2449
+ maxFeePerGas?: bigint;
2450
+ maxPriorityFeePerGas?: bigint;
2451
+ nonce?: number;
2452
+ value?: bigint;
2453
+ }): Promise<`0x${string}`> {
2454
+ if (!this.contract.write) {
2455
+ throw new Error('Wallet client is required for write operations');
2456
+ }
2457
+ return this.contract.write.approvePermit2([permit2, token, spender, amount, expiration] as const, options) as Promise<`0x${string}`>;
2458
+ }
2459
+
2460
+ /**
2461
+ * cancelDepositRequest
2462
+ * nonpayable
2463
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2464
+ */
2465
+ async cancelDepositRequest(depositId: bigint, options?: {
2466
+ accessList?: import('viem').AccessList;
2467
+ authorizationList?: import('viem').AuthorizationList;
2468
+ chain?: import('viem').Chain | null;
2469
+ dataSuffix?: `0x${string}`;
2470
+ gas?: bigint;
2471
+ gasPrice?: bigint;
2472
+ maxFeePerGas?: bigint;
2473
+ maxPriorityFeePerGas?: bigint;
2474
+ nonce?: number;
2475
+ value?: bigint;
2476
+ }): Promise<`0x${string}`> {
2477
+ if (!this.contract.write) {
2478
+ throw new Error('Wallet client is required for write operations');
2479
+ }
2480
+ return this.contract.write.cancelDepositRequest([depositId] as const, options) as Promise<`0x${string}`>;
2481
+ }
2482
+
2483
+ /**
2484
+ * cancelPendingDeposits
2485
+ * nonpayable
2486
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2487
+ */
2488
+ async cancelPendingDeposits(maxCount: bigint, options?: {
2489
+ accessList?: import('viem').AccessList;
2490
+ authorizationList?: import('viem').AuthorizationList;
2491
+ chain?: import('viem').Chain | null;
2492
+ dataSuffix?: `0x${string}`;
2493
+ gas?: bigint;
2494
+ gasPrice?: bigint;
2495
+ maxFeePerGas?: bigint;
2496
+ maxPriorityFeePerGas?: bigint;
2497
+ nonce?: number;
2498
+ value?: bigint;
2499
+ }): Promise<`0x${string}`> {
2500
+ if (!this.contract.write) {
2501
+ throw new Error('Wallet client is required for write operations');
2502
+ }
2503
+ return this.contract.write.cancelPendingDeposits([maxCount] as const, options) as Promise<`0x${string}`>;
2504
+ }
2505
+
2506
+ /**
2507
+ * cancelWithdraw
2508
+ * nonpayable
2509
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2510
+ */
2511
+ async cancelWithdraw(requestId: bigint, options?: {
2512
+ accessList?: import('viem').AccessList;
2513
+ authorizationList?: import('viem').AuthorizationList;
2514
+ chain?: import('viem').Chain | null;
2515
+ dataSuffix?: `0x${string}`;
2516
+ gas?: bigint;
2517
+ gasPrice?: bigint;
2518
+ maxFeePerGas?: bigint;
2519
+ maxPriorityFeePerGas?: bigint;
2520
+ nonce?: number;
2521
+ value?: bigint;
2522
+ }): Promise<`0x${string}`> {
2523
+ if (!this.contract.write) {
2524
+ throw new Error('Wallet client is required for write operations');
2525
+ }
2526
+ return this.contract.write.cancelWithdraw([requestId] as const, options) as Promise<`0x${string}`>;
1528
2527
  }
1529
2528
 
1530
2529
  /**
1531
- * addGasNative
1532
- * payable
2530
+ * claimAndDeposit
2531
+ * nonpayable
1533
2532
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1534
2533
  */
1535
- async addGasNative(swapID: `0x${string}`, options?: {
2534
+ async claimAndDeposit(requestId: bigint, newVault: `0x${string}`, options?: {
1536
2535
  accessList?: import('viem').AccessList;
1537
2536
  authorizationList?: import('viem').AuthorizationList;
1538
2537
  chain?: import('viem').Chain | null;
@@ -1547,15 +2546,15 @@ export class Vault_json {
1547
2546
  if (!this.contract.write) {
1548
2547
  throw new Error('Wallet client is required for write operations');
1549
2548
  }
1550
- return this.contract.write.addGasNative([swapID] as const, options) as Promise<`0x${string}`>;
2549
+ return this.contract.write.claimAndDeposit([requestId, newVault] as const, options) as Promise<`0x${string}`>;
1551
2550
  }
1552
2551
 
1553
2552
  /**
1554
- * addGasToken
2553
+ * claimWithdraw
1555
2554
  * nonpayable
1556
2555
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1557
2556
  */
1558
- async addGasToken(swapID: `0x${string}`, amount: bigint, token: `0x${string}`, options?: {
2557
+ async claimWithdraw(requestId: bigint, options?: {
1559
2558
  accessList?: import('viem').AccessList;
1560
2559
  authorizationList?: import('viem').AuthorizationList;
1561
2560
  chain?: import('viem').Chain | null;
@@ -1570,15 +2569,15 @@ export class Vault_json {
1570
2569
  if (!this.contract.write) {
1571
2570
  throw new Error('Wallet client is required for write operations');
1572
2571
  }
1573
- return this.contract.write.addGasToken([swapID, amount, token] as const, options) as Promise<`0x${string}`>;
2572
+ return this.contract.write.claimWithdraw([requestId] as const, options) as Promise<`0x${string}`>;
1574
2573
  }
1575
2574
 
1576
2575
  /**
1577
- * allBatch
2576
+ * claimWithdrawTo
1578
2577
  * nonpayable
1579
2578
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1580
2579
  */
1581
- async allBatch(sigData: IShared_SigData, deployFetchParamsArray: IShared_DeployFetchParams[], fetchParamsArray: IShared_FetchParams[], transferParamsArray: IShared_TransferParams[], options?: {
2580
+ async claimWithdrawTo(requestId: bigint, recipient: `0x${string}`, options?: {
1582
2581
  accessList?: import('viem').AccessList;
1583
2582
  authorizationList?: import('viem').AuthorizationList;
1584
2583
  chain?: import('viem').Chain | null;
@@ -1593,15 +2592,15 @@ export class Vault_json {
1593
2592
  if (!this.contract.write) {
1594
2593
  throw new Error('Wallet client is required for write operations');
1595
2594
  }
1596
- return this.contract.write.allBatch([sigData, deployFetchParamsArray, fetchParamsArray, transferParamsArray] as const, options) as Promise<`0x${string}`>;
2595
+ return this.contract.write.claimWithdrawTo([requestId, recipient] as const, options) as Promise<`0x${string}`>;
1597
2596
  }
1598
2597
 
1599
2598
  /**
1600
- * allBatchV2
2599
+ * grantRole
1601
2600
  * nonpayable
1602
2601
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1603
2602
  */
1604
- async allBatchV2(sigData: IShared_SigData, fetchParamsArray: IShared_FetchParams[], transferParamsArray: IShared_TransferParams[], options?: {
2603
+ async grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
1605
2604
  accessList?: import('viem').AccessList;
1606
2605
  authorizationList?: import('viem').AuthorizationList;
1607
2606
  chain?: import('viem').Chain | null;
@@ -1616,15 +2615,15 @@ export class Vault_json {
1616
2615
  if (!this.contract.write) {
1617
2616
  throw new Error('Wallet client is required for write operations');
1618
2617
  }
1619
- return this.contract.write.allBatchV2([sigData, fetchParamsArray, transferParamsArray] as const, options) as Promise<`0x${string}`>;
2618
+ return this.contract.write.grantRole([role, account] as const, options) as Promise<`0x${string}`>;
1620
2619
  }
1621
2620
 
1622
2621
  /**
1623
- * deployAndFetchBatch
2622
+ * onShareTransfer
1624
2623
  * nonpayable
1625
2624
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1626
2625
  */
1627
- async deployAndFetchBatch(sigData: IShared_SigData, deployFetchParamsArray: IShared_DeployFetchParams[], options?: {
2626
+ async onShareTransfer(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
1628
2627
  accessList?: import('viem').AccessList;
1629
2628
  authorizationList?: import('viem').AuthorizationList;
1630
2629
  chain?: import('viem').Chain | null;
@@ -1639,15 +2638,15 @@ export class Vault_json {
1639
2638
  if (!this.contract.write) {
1640
2639
  throw new Error('Wallet client is required for write operations');
1641
2640
  }
1642
- return this.contract.write.deployAndFetchBatch([sigData, deployFetchParamsArray] as const, options) as Promise<`0x${string}`>;
2641
+ return this.contract.write.onShareTransfer([from, to, value] as const, options) as Promise<`0x${string}`>;
1643
2642
  }
1644
2643
 
1645
2644
  /**
1646
- * disableCommunityGuard
2645
+ * pause
1647
2646
  * nonpayable
1648
2647
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1649
2648
  */
1650
- async disableCommunityGuard(options?: {
2649
+ async pause(options?: {
1651
2650
  accessList?: import('viem').AccessList;
1652
2651
  authorizationList?: import('viem').AuthorizationList;
1653
2652
  chain?: import('viem').Chain | null;
@@ -1662,15 +2661,15 @@ export class Vault_json {
1662
2661
  if (!this.contract.write) {
1663
2662
  throw new Error('Wallet client is required for write operations');
1664
2663
  }
1665
- return this.contract.write.disableCommunityGuard(options) as Promise<`0x${string}`>;
2664
+ return this.contract.write.pause(options) as Promise<`0x${string}`>;
1666
2665
  }
1667
2666
 
1668
2667
  /**
1669
- * enableCommunityGuard
2668
+ * rebalance
1670
2669
  * nonpayable
1671
2670
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1672
2671
  */
1673
- async enableCommunityGuard(options?: {
2672
+ async rebalance(targets: `0x${string}`[], calldatas: `0x${string}`[], options?: {
1674
2673
  accessList?: import('viem').AccessList;
1675
2674
  authorizationList?: import('viem').AuthorizationList;
1676
2675
  chain?: import('viem').Chain | null;
@@ -1685,15 +2684,15 @@ export class Vault_json {
1685
2684
  if (!this.contract.write) {
1686
2685
  throw new Error('Wallet client is required for write operations');
1687
2686
  }
1688
- return this.contract.write.enableCommunityGuard(options) as Promise<`0x${string}`>;
2687
+ return this.contract.write.rebalance([targets, calldatas] as const, options) as Promise<`0x${string}`>;
1689
2688
  }
1690
2689
 
1691
2690
  /**
1692
- * executeActions
2691
+ * removeTrackedToken
1693
2692
  * nonpayable
1694
2693
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1695
2694
  */
1696
- async executeActions(sigData: IShared_SigData, transferParams: IShared_TransferParams, calls: IMulticall_Call[], gasMulticall: bigint, options?: {
2695
+ async removeTrackedToken(token: `0x${string}`, options?: {
1697
2696
  accessList?: import('viem').AccessList;
1698
2697
  authorizationList?: import('viem').AuthorizationList;
1699
2698
  chain?: import('viem').Chain | null;
@@ -1708,15 +2707,15 @@ export class Vault_json {
1708
2707
  if (!this.contract.write) {
1709
2708
  throw new Error('Wallet client is required for write operations');
1710
2709
  }
1711
- return this.contract.write.executeActions([sigData, transferParams, calls, gasMulticall] as const, options) as Promise<`0x${string}`>;
2710
+ return this.contract.write.removeTrackedToken([token] as const, options) as Promise<`0x${string}`>;
1712
2711
  }
1713
2712
 
1714
2713
  /**
1715
- * executexCall
2714
+ * renounceRole
1716
2715
  * nonpayable
1717
2716
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1718
2717
  */
1719
- async executexCall(sigData: IShared_SigData, recipient: `0x${string}`, srcChain: bigint, srcAddress: `0x${string}`, message: `0x${string}`, options?: {
2718
+ async renounceRole(role: `0x${string}`, callerConfirmation: `0x${string}`, options?: {
1720
2719
  accessList?: import('viem').AccessList;
1721
2720
  authorizationList?: import('viem').AuthorizationList;
1722
2721
  chain?: import('viem').Chain | null;
@@ -1731,15 +2730,15 @@ export class Vault_json {
1731
2730
  if (!this.contract.write) {
1732
2731
  throw new Error('Wallet client is required for write operations');
1733
2732
  }
1734
- return this.contract.write.executexCall([sigData, recipient, srcChain, srcAddress, message] as const, options) as Promise<`0x${string}`>;
2733
+ return this.contract.write.renounceRole([role, callerConfirmation] as const, options) as Promise<`0x${string}`>;
1735
2734
  }
1736
2735
 
1737
2736
  /**
1738
- * executexSwapAndCall
2737
+ * requestDeposit
1739
2738
  * nonpayable
1740
2739
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1741
2740
  */
1742
- async executexSwapAndCall(sigData: IShared_SigData, transferParams: IShared_TransferParams, srcChain: bigint, srcAddress: `0x${string}`, message: `0x${string}`, options?: {
2741
+ async requestDeposit(assets: bigint, options?: {
1743
2742
  accessList?: import('viem').AccessList;
1744
2743
  authorizationList?: import('viem').AuthorizationList;
1745
2744
  chain?: import('viem').Chain | null;
@@ -1754,15 +2753,15 @@ export class Vault_json {
1754
2753
  if (!this.contract.write) {
1755
2754
  throw new Error('Wallet client is required for write operations');
1756
2755
  }
1757
- return this.contract.write.executexSwapAndCall([sigData, transferParams, srcChain, srcAddress, message] as const, options) as Promise<`0x${string}`>;
2756
+ return this.contract.write.requestDeposit([assets] as const, options) as Promise<`0x${string}`>;
1758
2757
  }
1759
2758
 
1760
2759
  /**
1761
- * fetchBatch
2760
+ * requestDepositFor
1762
2761
  * nonpayable
1763
2762
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1764
2763
  */
1765
- async fetchBatch(sigData: IShared_SigData, fetchParamsArray: IShared_FetchParams[], options?: {
2764
+ async requestDepositFor(assets: bigint, recipient: `0x${string}`, options?: {
1766
2765
  accessList?: import('viem').AccessList;
1767
2766
  authorizationList?: import('viem').AuthorizationList;
1768
2767
  chain?: import('viem').Chain | null;
@@ -1777,15 +2776,15 @@ export class Vault_json {
1777
2776
  if (!this.contract.write) {
1778
2777
  throw new Error('Wallet client is required for write operations');
1779
2778
  }
1780
- return this.contract.write.fetchBatch([sigData, fetchParamsArray] as const, options) as Promise<`0x${string}`>;
2779
+ return this.contract.write.requestDepositFor([assets, recipient] as const, options) as Promise<`0x${string}`>;
1781
2780
  }
1782
2781
 
1783
2782
  /**
1784
- * govWithdraw
2783
+ * requestWithdraw
1785
2784
  * nonpayable
1786
2785
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1787
2786
  */
1788
- async govWithdraw(tokens: `0x${string}`[], options?: {
2787
+ async requestWithdraw(sharesIn: bigint, options?: {
1789
2788
  accessList?: import('viem').AccessList;
1790
2789
  authorizationList?: import('viem').AuthorizationList;
1791
2790
  chain?: import('viem').Chain | null;
@@ -1800,15 +2799,15 @@ export class Vault_json {
1800
2799
  if (!this.contract.write) {
1801
2800
  throw new Error('Wallet client is required for write operations');
1802
2801
  }
1803
- return this.contract.write.govWithdraw([tokens] as const, options) as Promise<`0x${string}`>;
2802
+ return this.contract.write.requestWithdraw([sharesIn] as const, options) as Promise<`0x${string}`>;
1804
2803
  }
1805
2804
 
1806
2805
  /**
1807
- * resume
2806
+ * revokeRole
1808
2807
  * nonpayable
1809
2808
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1810
2809
  */
1811
- async resume(options?: {
2810
+ async revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
1812
2811
  accessList?: import('viem').AccessList;
1813
2812
  authorizationList?: import('viem').AuthorizationList;
1814
2813
  chain?: import('viem').Chain | null;
@@ -1823,15 +2822,15 @@ export class Vault_json {
1823
2822
  if (!this.contract.write) {
1824
2823
  throw new Error('Wallet client is required for write operations');
1825
2824
  }
1826
- return this.contract.write.resume(options) as Promise<`0x${string}`>;
2825
+ return this.contract.write.revokeRole([role, account] as const, options) as Promise<`0x${string}`>;
1827
2826
  }
1828
2827
 
1829
2828
  /**
1830
- * suspend
2829
+ * setFeeRecipient
1831
2830
  * nonpayable
1832
2831
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1833
2832
  */
1834
- async suspend(options?: {
2833
+ async setFeeRecipient(recipient: `0x${string}`, options?: {
1835
2834
  accessList?: import('viem').AccessList;
1836
2835
  authorizationList?: import('viem').AuthorizationList;
1837
2836
  chain?: import('viem').Chain | null;
@@ -1846,15 +2845,15 @@ export class Vault_json {
1846
2845
  if (!this.contract.write) {
1847
2846
  throw new Error('Wallet client is required for write operations');
1848
2847
  }
1849
- return this.contract.write.suspend(options) as Promise<`0x${string}`>;
2848
+ return this.contract.write.setFeeRecipient([recipient] as const, options) as Promise<`0x${string}`>;
1850
2849
  }
1851
2850
 
1852
2851
  /**
1853
- * transfer
2852
+ * setMaxSettlementBatchSize
1854
2853
  * nonpayable
1855
2854
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1856
2855
  */
1857
- async transfer(sigData: IShared_SigData, transferParams: IShared_TransferParams, options?: {
2856
+ async setMaxSettlementBatchSize(size: bigint, options?: {
1858
2857
  accessList?: import('viem').AccessList;
1859
2858
  authorizationList?: import('viem').AuthorizationList;
1860
2859
  chain?: import('viem').Chain | null;
@@ -1869,15 +2868,15 @@ export class Vault_json {
1869
2868
  if (!this.contract.write) {
1870
2869
  throw new Error('Wallet client is required for write operations');
1871
2870
  }
1872
- return this.contract.write.transfer([sigData, transferParams] as const, options) as Promise<`0x${string}`>;
2871
+ return this.contract.write.setMaxSettlementBatchSize([size] as const, options) as Promise<`0x${string}`>;
1873
2872
  }
1874
2873
 
1875
2874
  /**
1876
- * transferBatch
2875
+ * setMinDepositAssets
1877
2876
  * nonpayable
1878
2877
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1879
2878
  */
1880
- async transferBatch(sigData: IShared_SigData, transferParamsArray: IShared_TransferParams[], options?: {
2879
+ async setMinDepositAssets(amount: bigint, options?: {
1881
2880
  accessList?: import('viem').AccessList;
1882
2881
  authorizationList?: import('viem').AuthorizationList;
1883
2882
  chain?: import('viem').Chain | null;
@@ -1892,15 +2891,15 @@ export class Vault_json {
1892
2891
  if (!this.contract.write) {
1893
2892
  throw new Error('Wallet client is required for write operations');
1894
2893
  }
1895
- return this.contract.write.transferBatch([sigData, transferParamsArray] as const, options) as Promise<`0x${string}`>;
2894
+ return this.contract.write.setMinDepositAssets([amount] as const, options) as Promise<`0x${string}`>;
1896
2895
  }
1897
2896
 
1898
2897
  /**
1899
- * transferFallback
2898
+ * setOracle
1900
2899
  * nonpayable
1901
2900
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1902
2901
  */
1903
- async transferFallback(sigData: IShared_SigData, transferParams: IShared_TransferParams, options?: {
2902
+ async setOracle(_oracle: `0x${string}`, options?: {
1904
2903
  accessList?: import('viem').AccessList;
1905
2904
  authorizationList?: import('viem').AuthorizationList;
1906
2905
  chain?: import('viem').Chain | null;
@@ -1915,15 +2914,15 @@ export class Vault_json {
1915
2914
  if (!this.contract.write) {
1916
2915
  throw new Error('Wallet client is required for write operations');
1917
2916
  }
1918
- return this.contract.write.transferFallback([sigData, transferParams] as const, options) as Promise<`0x${string}`>;
2917
+ return this.contract.write.setOracle([_oracle] as const, options) as Promise<`0x${string}`>;
1919
2918
  }
1920
2919
 
1921
2920
  /**
1922
- * updateKeyManager
2921
+ * setPerformanceFee
1923
2922
  * nonpayable
1924
2923
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1925
2924
  */
1926
- async updateKeyManager(sigData: IShared_SigData, keyManager: `0x${string}`, omitChecks: boolean, options?: {
2925
+ async setPerformanceFee(feeBps: bigint, options?: {
1927
2926
  accessList?: import('viem').AccessList;
1928
2927
  authorizationList?: import('viem').AuthorizationList;
1929
2928
  chain?: import('viem').Chain | null;
@@ -1938,15 +2937,15 @@ export class Vault_json {
1938
2937
  if (!this.contract.write) {
1939
2938
  throw new Error('Wallet client is required for write operations');
1940
2939
  }
1941
- return this.contract.write.updateKeyManager([sigData, keyManager, omitChecks] as const, options) as Promise<`0x${string}`>;
2940
+ return this.contract.write.setPerformanceFee([feeBps] as const, options) as Promise<`0x${string}`>;
1942
2941
  }
1943
2942
 
1944
2943
  /**
1945
- * xCallNative
1946
- * payable
2944
+ * setSettlementFee
2945
+ * nonpayable
1947
2946
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1948
2947
  */
1949
- async xCallNative(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, message: `0x${string}`, gasAmount: bigint, cfParameters: `0x${string}`, options?: {
2948
+ async setSettlementFee(fee: bigint, options?: {
1950
2949
  accessList?: import('viem').AccessList;
1951
2950
  authorizationList?: import('viem').AuthorizationList;
1952
2951
  chain?: import('viem').Chain | null;
@@ -1961,15 +2960,15 @@ export class Vault_json {
1961
2960
  if (!this.contract.write) {
1962
2961
  throw new Error('Wallet client is required for write operations');
1963
2962
  }
1964
- return this.contract.write.xCallNative([dstChain, dstAddress, dstToken, message, gasAmount, cfParameters] as const, options) as Promise<`0x${string}`>;
2963
+ return this.contract.write.setSettlementFee([fee] as const, options) as Promise<`0x${string}`>;
1965
2964
  }
1966
2965
 
1967
2966
  /**
1968
- * xCallToken
2967
+ * setTargetAllowed
1969
2968
  * nonpayable
1970
2969
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1971
2970
  */
1972
- async xCallToken(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, message: `0x${string}`, gasAmount: bigint, srcToken: `0x${string}`, amount: bigint, cfParameters: `0x${string}`, options?: {
2971
+ async setTargetAllowed(target: `0x${string}`, allowed: boolean, options?: {
1973
2972
  accessList?: import('viem').AccessList;
1974
2973
  authorizationList?: import('viem').AuthorizationList;
1975
2974
  chain?: import('viem').Chain | null;
@@ -1984,15 +2983,15 @@ export class Vault_json {
1984
2983
  if (!this.contract.write) {
1985
2984
  throw new Error('Wallet client is required for write operations');
1986
2985
  }
1987
- return this.contract.write.xCallToken([dstChain, dstAddress, dstToken, message, gasAmount, srcToken, amount, cfParameters] as const, options) as Promise<`0x${string}`>;
2986
+ return this.contract.write.setTargetAllowed([target, allowed] as const, options) as Promise<`0x${string}`>;
1988
2987
  }
1989
2988
 
1990
2989
  /**
1991
- * xSwapNative
1992
- * payable
2990
+ * settle
2991
+ * nonpayable
1993
2992
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1994
2993
  */
1995
- async xSwapNative(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, cfParameters: `0x${string}`, options?: {
2994
+ async settle(tokens: `0x${string}`[], prices: bigint[], options?: {
1996
2995
  accessList?: import('viem').AccessList;
1997
2996
  authorizationList?: import('viem').AuthorizationList;
1998
2997
  chain?: import('viem').Chain | null;
@@ -2007,15 +3006,15 @@ export class Vault_json {
2007
3006
  if (!this.contract.write) {
2008
3007
  throw new Error('Wallet client is required for write operations');
2009
3008
  }
2010
- return this.contract.write.xSwapNative([dstChain, dstAddress, dstToken, cfParameters] as const, options) as Promise<`0x${string}`>;
3009
+ return this.contract.write.settle([tokens, prices] as const, options) as Promise<`0x${string}`>;
2011
3010
  }
2012
3011
 
2013
3012
  /**
2014
- * xSwapToken
3013
+ * unpause
2015
3014
  * nonpayable
2016
3015
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2017
3016
  */
2018
- async xSwapToken(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, srcToken: `0x${string}`, amount: bigint, cfParameters: `0x${string}`, options?: {
3017
+ async unpause(options?: {
2019
3018
  accessList?: import('viem').AccessList;
2020
3019
  authorizationList?: import('viem').AuthorizationList;
2021
3020
  chain?: import('viem').Chain | null;
@@ -2030,7 +3029,7 @@ export class Vault_json {
2030
3029
  if (!this.contract.write) {
2031
3030
  throw new Error('Wallet client is required for write operations');
2032
3031
  }
2033
- return this.contract.write.xSwapToken([dstChain, dstAddress, dstToken, srcToken, amount, cfParameters] as const, options) as Promise<`0x${string}`>;
3032
+ return this.contract.write.unpause(options) as Promise<`0x${string}`>;
2034
3033
  }
2035
3034
 
2036
3035
 
@@ -2050,11 +3049,30 @@ export class Vault_json {
2050
3049
  }
2051
3050
  return {
2052
3051
  /**
2053
- * Simulate addGasNative
3052
+ * Simulate addTrackedToken
3053
+ * Returns gas estimate and result without sending transaction
3054
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3055
+ */
3056
+ async addTrackedToken(token: `0x${string}`, options?: {
3057
+ accessList?: import('viem').AccessList;
3058
+ authorizationList?: import('viem').AuthorizationList;
3059
+ chain?: import('viem').Chain | null;
3060
+ dataSuffix?: `0x${string}`;
3061
+ gas?: bigint;
3062
+ gasPrice?: bigint;
3063
+ maxFeePerGas?: bigint;
3064
+ maxPriorityFeePerGas?: bigint;
3065
+ nonce?: number;
3066
+ value?: bigint;
3067
+ }): Promise<void> {
3068
+ return contract.simulate.addTrackedToken([token] as const, options) as Promise<void>;
3069
+ },
3070
+ /**
3071
+ * Simulate approveERC20
2054
3072
  * Returns gas estimate and result without sending transaction
2055
3073
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2056
3074
  */
2057
- async addGasNative(swapID: `0x${string}`, options?: {
3075
+ async approveERC20(token: `0x${string}`, spender: `0x${string}`, amount: bigint, options?: {
2058
3076
  accessList?: import('viem').AccessList;
2059
3077
  authorizationList?: import('viem').AuthorizationList;
2060
3078
  chain?: import('viem').Chain | null;
@@ -2066,14 +3084,14 @@ export class Vault_json {
2066
3084
  nonce?: number;
2067
3085
  value?: bigint;
2068
3086
  }): Promise<void> {
2069
- return contract.simulate.addGasNative([swapID] as const, options) as Promise<void>;
3087
+ return contract.simulate.approveERC20([token, spender, amount] as const, options) as Promise<void>;
2070
3088
  },
2071
3089
  /**
2072
- * Simulate addGasToken
3090
+ * Simulate approvePermit2
2073
3091
  * Returns gas estimate and result without sending transaction
2074
3092
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2075
3093
  */
2076
- async addGasToken(swapID: `0x${string}`, amount: bigint, token: `0x${string}`, options?: {
3094
+ async approvePermit2(permit2: `0x${string}`, token: `0x${string}`, spender: `0x${string}`, amount: bigint, expiration: bigint, options?: {
2077
3095
  accessList?: import('viem').AccessList;
2078
3096
  authorizationList?: import('viem').AuthorizationList;
2079
3097
  chain?: import('viem').Chain | null;
@@ -2085,14 +3103,14 @@ export class Vault_json {
2085
3103
  nonce?: number;
2086
3104
  value?: bigint;
2087
3105
  }): Promise<void> {
2088
- return contract.simulate.addGasToken([swapID, amount, token] as const, options) as Promise<void>;
3106
+ return contract.simulate.approvePermit2([permit2, token, spender, amount, expiration] as const, options) as Promise<void>;
2089
3107
  },
2090
3108
  /**
2091
- * Simulate allBatch
3109
+ * Simulate cancelDepositRequest
2092
3110
  * Returns gas estimate and result without sending transaction
2093
3111
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2094
3112
  */
2095
- async allBatch(sigData: IShared_SigData, deployFetchParamsArray: IShared_DeployFetchParams[], fetchParamsArray: IShared_FetchParams[], transferParamsArray: IShared_TransferParams[], options?: {
3113
+ async cancelDepositRequest(depositId: bigint, options?: {
2096
3114
  accessList?: import('viem').AccessList;
2097
3115
  authorizationList?: import('viem').AuthorizationList;
2098
3116
  chain?: import('viem').Chain | null;
@@ -2104,14 +3122,33 @@ export class Vault_json {
2104
3122
  nonce?: number;
2105
3123
  value?: bigint;
2106
3124
  }): Promise<void> {
2107
- return contract.simulate.allBatch([sigData, deployFetchParamsArray, fetchParamsArray, transferParamsArray] as const, options) as Promise<void>;
3125
+ return contract.simulate.cancelDepositRequest([depositId] as const, options) as Promise<void>;
3126
+ },
3127
+ /**
3128
+ * Simulate cancelPendingDeposits
3129
+ * Returns gas estimate and result without sending transaction
3130
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3131
+ */
3132
+ async cancelPendingDeposits(maxCount: bigint, options?: {
3133
+ accessList?: import('viem').AccessList;
3134
+ authorizationList?: import('viem').AuthorizationList;
3135
+ chain?: import('viem').Chain | null;
3136
+ dataSuffix?: `0x${string}`;
3137
+ gas?: bigint;
3138
+ gasPrice?: bigint;
3139
+ maxFeePerGas?: bigint;
3140
+ maxPriorityFeePerGas?: bigint;
3141
+ nonce?: number;
3142
+ value?: bigint;
3143
+ }): Promise<bigint> {
3144
+ return contract.simulate.cancelPendingDeposits([maxCount] as const, options) as Promise<bigint>;
2108
3145
  },
2109
3146
  /**
2110
- * Simulate allBatchV2
3147
+ * Simulate cancelWithdraw
2111
3148
  * Returns gas estimate and result without sending transaction
2112
3149
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2113
3150
  */
2114
- async allBatchV2(sigData: IShared_SigData, fetchParamsArray: IShared_FetchParams[], transferParamsArray: IShared_TransferParams[], options?: {
3151
+ async cancelWithdraw(requestId: bigint, options?: {
2115
3152
  accessList?: import('viem').AccessList;
2116
3153
  authorizationList?: import('viem').AuthorizationList;
2117
3154
  chain?: import('viem').Chain | null;
@@ -2123,14 +3160,33 @@ export class Vault_json {
2123
3160
  nonce?: number;
2124
3161
  value?: bigint;
2125
3162
  }): Promise<void> {
2126
- return contract.simulate.allBatchV2([sigData, fetchParamsArray, transferParamsArray] as const, options) as Promise<void>;
3163
+ return contract.simulate.cancelWithdraw([requestId] as const, options) as Promise<void>;
3164
+ },
3165
+ /**
3166
+ * Simulate claimAndDeposit
3167
+ * Returns gas estimate and result without sending transaction
3168
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3169
+ */
3170
+ async claimAndDeposit(requestId: bigint, newVault: `0x${string}`, options?: {
3171
+ accessList?: import('viem').AccessList;
3172
+ authorizationList?: import('viem').AuthorizationList;
3173
+ chain?: import('viem').Chain | null;
3174
+ dataSuffix?: `0x${string}`;
3175
+ gas?: bigint;
3176
+ gasPrice?: bigint;
3177
+ maxFeePerGas?: bigint;
3178
+ maxPriorityFeePerGas?: bigint;
3179
+ nonce?: number;
3180
+ value?: bigint;
3181
+ }): Promise<bigint> {
3182
+ return contract.simulate.claimAndDeposit([requestId, newVault] as const, options) as Promise<bigint>;
2127
3183
  },
2128
3184
  /**
2129
- * Simulate deployAndFetchBatch
3185
+ * Simulate claimWithdraw
2130
3186
  * Returns gas estimate and result without sending transaction
2131
3187
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2132
3188
  */
2133
- async deployAndFetchBatch(sigData: IShared_SigData, deployFetchParamsArray: IShared_DeployFetchParams[], options?: {
3189
+ async claimWithdraw(requestId: bigint, options?: {
2134
3190
  accessList?: import('viem').AccessList;
2135
3191
  authorizationList?: import('viem').AuthorizationList;
2136
3192
  chain?: import('viem').Chain | null;
@@ -2142,14 +3198,14 @@ export class Vault_json {
2142
3198
  nonce?: number;
2143
3199
  value?: bigint;
2144
3200
  }): Promise<void> {
2145
- return contract.simulate.deployAndFetchBatch([sigData, deployFetchParamsArray] as const, options) as Promise<void>;
3201
+ return contract.simulate.claimWithdraw([requestId] as const, options) as Promise<void>;
2146
3202
  },
2147
3203
  /**
2148
- * Simulate disableCommunityGuard
3204
+ * Simulate claimWithdrawTo
2149
3205
  * Returns gas estimate and result without sending transaction
2150
3206
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2151
3207
  */
2152
- async disableCommunityGuard(options?: {
3208
+ async claimWithdrawTo(requestId: bigint, recipient: `0x${string}`, options?: {
2153
3209
  accessList?: import('viem').AccessList;
2154
3210
  authorizationList?: import('viem').AuthorizationList;
2155
3211
  chain?: import('viem').Chain | null;
@@ -2161,14 +3217,14 @@ export class Vault_json {
2161
3217
  nonce?: number;
2162
3218
  value?: bigint;
2163
3219
  }): Promise<void> {
2164
- return contract.simulate.disableCommunityGuard(options) as Promise<void>;
3220
+ return contract.simulate.claimWithdrawTo([requestId, recipient] as const, options) as Promise<void>;
2165
3221
  },
2166
3222
  /**
2167
- * Simulate enableCommunityGuard
3223
+ * Simulate grantRole
2168
3224
  * Returns gas estimate and result without sending transaction
2169
3225
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2170
3226
  */
2171
- async enableCommunityGuard(options?: {
3227
+ async grantRole(role: `0x${string}`, account: `0x${string}`, options?: {
2172
3228
  accessList?: import('viem').AccessList;
2173
3229
  authorizationList?: import('viem').AuthorizationList;
2174
3230
  chain?: import('viem').Chain | null;
@@ -2180,14 +3236,14 @@ export class Vault_json {
2180
3236
  nonce?: number;
2181
3237
  value?: bigint;
2182
3238
  }): Promise<void> {
2183
- return contract.simulate.enableCommunityGuard(options) as Promise<void>;
3239
+ return contract.simulate.grantRole([role, account] as const, options) as Promise<void>;
2184
3240
  },
2185
3241
  /**
2186
- * Simulate executeActions
3242
+ * Simulate onShareTransfer
2187
3243
  * Returns gas estimate and result without sending transaction
2188
3244
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2189
3245
  */
2190
- async executeActions(sigData: IShared_SigData, transferParams: IShared_TransferParams, calls: IMulticall_Call[], gasMulticall: bigint, options?: {
3246
+ async onShareTransfer(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
2191
3247
  accessList?: import('viem').AccessList;
2192
3248
  authorizationList?: import('viem').AuthorizationList;
2193
3249
  chain?: import('viem').Chain | null;
@@ -2199,14 +3255,14 @@ export class Vault_json {
2199
3255
  nonce?: number;
2200
3256
  value?: bigint;
2201
3257
  }): Promise<void> {
2202
- return contract.simulate.executeActions([sigData, transferParams, calls, gasMulticall] as const, options) as Promise<void>;
3258
+ return contract.simulate.onShareTransfer([from, to, value] as const, options) as Promise<void>;
2203
3259
  },
2204
3260
  /**
2205
- * Simulate executexCall
3261
+ * Simulate pause
2206
3262
  * Returns gas estimate and result without sending transaction
2207
3263
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2208
3264
  */
2209
- async executexCall(sigData: IShared_SigData, recipient: `0x${string}`, srcChain: bigint, srcAddress: `0x${string}`, message: `0x${string}`, options?: {
3265
+ async pause(options?: {
2210
3266
  accessList?: import('viem').AccessList;
2211
3267
  authorizationList?: import('viem').AuthorizationList;
2212
3268
  chain?: import('viem').Chain | null;
@@ -2218,14 +3274,14 @@ export class Vault_json {
2218
3274
  nonce?: number;
2219
3275
  value?: bigint;
2220
3276
  }): Promise<void> {
2221
- return contract.simulate.executexCall([sigData, recipient, srcChain, srcAddress, message] as const, options) as Promise<void>;
3277
+ return contract.simulate.pause(options) as Promise<void>;
2222
3278
  },
2223
3279
  /**
2224
- * Simulate executexSwapAndCall
3280
+ * Simulate rebalance
2225
3281
  * Returns gas estimate and result without sending transaction
2226
3282
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2227
3283
  */
2228
- async executexSwapAndCall(sigData: IShared_SigData, transferParams: IShared_TransferParams, srcChain: bigint, srcAddress: `0x${string}`, message: `0x${string}`, options?: {
3284
+ async rebalance(targets: `0x${string}`[], calldatas: `0x${string}`[], options?: {
2229
3285
  accessList?: import('viem').AccessList;
2230
3286
  authorizationList?: import('viem').AuthorizationList;
2231
3287
  chain?: import('viem').Chain | null;
@@ -2237,14 +3293,14 @@ export class Vault_json {
2237
3293
  nonce?: number;
2238
3294
  value?: bigint;
2239
3295
  }): Promise<void> {
2240
- return contract.simulate.executexSwapAndCall([sigData, transferParams, srcChain, srcAddress, message] as const, options) as Promise<void>;
3296
+ return contract.simulate.rebalance([targets, calldatas] as const, options) as Promise<void>;
2241
3297
  },
2242
3298
  /**
2243
- * Simulate fetchBatch
3299
+ * Simulate removeTrackedToken
2244
3300
  * Returns gas estimate and result without sending transaction
2245
3301
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2246
3302
  */
2247
- async fetchBatch(sigData: IShared_SigData, fetchParamsArray: IShared_FetchParams[], options?: {
3303
+ async removeTrackedToken(token: `0x${string}`, options?: {
2248
3304
  accessList?: import('viem').AccessList;
2249
3305
  authorizationList?: import('viem').AuthorizationList;
2250
3306
  chain?: import('viem').Chain | null;
@@ -2256,14 +3312,14 @@ export class Vault_json {
2256
3312
  nonce?: number;
2257
3313
  value?: bigint;
2258
3314
  }): Promise<void> {
2259
- return contract.simulate.fetchBatch([sigData, fetchParamsArray] as const, options) as Promise<void>;
3315
+ return contract.simulate.removeTrackedToken([token] as const, options) as Promise<void>;
2260
3316
  },
2261
3317
  /**
2262
- * Simulate govWithdraw
3318
+ * Simulate renounceRole
2263
3319
  * Returns gas estimate and result without sending transaction
2264
3320
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2265
3321
  */
2266
- async govWithdraw(tokens: `0x${string}`[], options?: {
3322
+ async renounceRole(role: `0x${string}`, callerConfirmation: `0x${string}`, options?: {
2267
3323
  accessList?: import('viem').AccessList;
2268
3324
  authorizationList?: import('viem').AuthorizationList;
2269
3325
  chain?: import('viem').Chain | null;
@@ -2275,14 +3331,71 @@ export class Vault_json {
2275
3331
  nonce?: number;
2276
3332
  value?: bigint;
2277
3333
  }): Promise<void> {
2278
- return contract.simulate.govWithdraw([tokens] as const, options) as Promise<void>;
3334
+ return contract.simulate.renounceRole([role, callerConfirmation] as const, options) as Promise<void>;
3335
+ },
3336
+ /**
3337
+ * Simulate requestDeposit
3338
+ * Returns gas estimate and result without sending transaction
3339
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3340
+ */
3341
+ async requestDeposit(assets: bigint, options?: {
3342
+ accessList?: import('viem').AccessList;
3343
+ authorizationList?: import('viem').AuthorizationList;
3344
+ chain?: import('viem').Chain | null;
3345
+ dataSuffix?: `0x${string}`;
3346
+ gas?: bigint;
3347
+ gasPrice?: bigint;
3348
+ maxFeePerGas?: bigint;
3349
+ maxPriorityFeePerGas?: bigint;
3350
+ nonce?: number;
3351
+ value?: bigint;
3352
+ }): Promise<bigint> {
3353
+ return contract.simulate.requestDeposit([assets] as const, options) as Promise<bigint>;
2279
3354
  },
2280
3355
  /**
2281
- * Simulate resume
3356
+ * Simulate requestDepositFor
2282
3357
  * Returns gas estimate and result without sending transaction
2283
3358
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2284
3359
  */
2285
- async resume(options?: {
3360
+ async requestDepositFor(assets: bigint, recipient: `0x${string}`, options?: {
3361
+ accessList?: import('viem').AccessList;
3362
+ authorizationList?: import('viem').AuthorizationList;
3363
+ chain?: import('viem').Chain | null;
3364
+ dataSuffix?: `0x${string}`;
3365
+ gas?: bigint;
3366
+ gasPrice?: bigint;
3367
+ maxFeePerGas?: bigint;
3368
+ maxPriorityFeePerGas?: bigint;
3369
+ nonce?: number;
3370
+ value?: bigint;
3371
+ }): Promise<bigint> {
3372
+ return contract.simulate.requestDepositFor([assets, recipient] as const, options) as Promise<bigint>;
3373
+ },
3374
+ /**
3375
+ * Simulate requestWithdraw
3376
+ * Returns gas estimate and result without sending transaction
3377
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3378
+ */
3379
+ async requestWithdraw(sharesIn: bigint, options?: {
3380
+ accessList?: import('viem').AccessList;
3381
+ authorizationList?: import('viem').AuthorizationList;
3382
+ chain?: import('viem').Chain | null;
3383
+ dataSuffix?: `0x${string}`;
3384
+ gas?: bigint;
3385
+ gasPrice?: bigint;
3386
+ maxFeePerGas?: bigint;
3387
+ maxPriorityFeePerGas?: bigint;
3388
+ nonce?: number;
3389
+ value?: bigint;
3390
+ }): Promise<bigint> {
3391
+ return contract.simulate.requestWithdraw([sharesIn] as const, options) as Promise<bigint>;
3392
+ },
3393
+ /**
3394
+ * Simulate revokeRole
3395
+ * Returns gas estimate and result without sending transaction
3396
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3397
+ */
3398
+ async revokeRole(role: `0x${string}`, account: `0x${string}`, options?: {
2286
3399
  accessList?: import('viem').AccessList;
2287
3400
  authorizationList?: import('viem').AuthorizationList;
2288
3401
  chain?: import('viem').Chain | null;
@@ -2294,14 +3407,14 @@ export class Vault_json {
2294
3407
  nonce?: number;
2295
3408
  value?: bigint;
2296
3409
  }): Promise<void> {
2297
- return contract.simulate.resume(options) as Promise<void>;
3410
+ return contract.simulate.revokeRole([role, account] as const, options) as Promise<void>;
2298
3411
  },
2299
3412
  /**
2300
- * Simulate suspend
3413
+ * Simulate setFeeRecipient
2301
3414
  * Returns gas estimate and result without sending transaction
2302
3415
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2303
3416
  */
2304
- async suspend(options?: {
3417
+ async setFeeRecipient(recipient: `0x${string}`, options?: {
2305
3418
  accessList?: import('viem').AccessList;
2306
3419
  authorizationList?: import('viem').AuthorizationList;
2307
3420
  chain?: import('viem').Chain | null;
@@ -2313,14 +3426,14 @@ export class Vault_json {
2313
3426
  nonce?: number;
2314
3427
  value?: bigint;
2315
3428
  }): Promise<void> {
2316
- return contract.simulate.suspend(options) as Promise<void>;
3429
+ return contract.simulate.setFeeRecipient([recipient] as const, options) as Promise<void>;
2317
3430
  },
2318
3431
  /**
2319
- * Simulate transfer
3432
+ * Simulate setMaxSettlementBatchSize
2320
3433
  * Returns gas estimate and result without sending transaction
2321
3434
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2322
3435
  */
2323
- async transfer(sigData: IShared_SigData, transferParams: IShared_TransferParams, options?: {
3436
+ async setMaxSettlementBatchSize(size: bigint, options?: {
2324
3437
  accessList?: import('viem').AccessList;
2325
3438
  authorizationList?: import('viem').AuthorizationList;
2326
3439
  chain?: import('viem').Chain | null;
@@ -2332,14 +3445,14 @@ export class Vault_json {
2332
3445
  nonce?: number;
2333
3446
  value?: bigint;
2334
3447
  }): Promise<void> {
2335
- return contract.simulate.transfer([sigData, transferParams] as const, options) as Promise<void>;
3448
+ return contract.simulate.setMaxSettlementBatchSize([size] as const, options) as Promise<void>;
2336
3449
  },
2337
3450
  /**
2338
- * Simulate transferBatch
3451
+ * Simulate setMinDepositAssets
2339
3452
  * Returns gas estimate and result without sending transaction
2340
3453
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2341
3454
  */
2342
- async transferBatch(sigData: IShared_SigData, transferParamsArray: IShared_TransferParams[], options?: {
3455
+ async setMinDepositAssets(amount: bigint, options?: {
2343
3456
  accessList?: import('viem').AccessList;
2344
3457
  authorizationList?: import('viem').AuthorizationList;
2345
3458
  chain?: import('viem').Chain | null;
@@ -2351,14 +3464,14 @@ export class Vault_json {
2351
3464
  nonce?: number;
2352
3465
  value?: bigint;
2353
3466
  }): Promise<void> {
2354
- return contract.simulate.transferBatch([sigData, transferParamsArray] as const, options) as Promise<void>;
3467
+ return contract.simulate.setMinDepositAssets([amount] as const, options) as Promise<void>;
2355
3468
  },
2356
3469
  /**
2357
- * Simulate transferFallback
3470
+ * Simulate setOracle
2358
3471
  * Returns gas estimate and result without sending transaction
2359
3472
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2360
3473
  */
2361
- async transferFallback(sigData: IShared_SigData, transferParams: IShared_TransferParams, options?: {
3474
+ async setOracle(_oracle: `0x${string}`, options?: {
2362
3475
  accessList?: import('viem').AccessList;
2363
3476
  authorizationList?: import('viem').AuthorizationList;
2364
3477
  chain?: import('viem').Chain | null;
@@ -2370,14 +3483,14 @@ export class Vault_json {
2370
3483
  nonce?: number;
2371
3484
  value?: bigint;
2372
3485
  }): Promise<void> {
2373
- return contract.simulate.transferFallback([sigData, transferParams] as const, options) as Promise<void>;
3486
+ return contract.simulate.setOracle([_oracle] as const, options) as Promise<void>;
2374
3487
  },
2375
3488
  /**
2376
- * Simulate updateKeyManager
3489
+ * Simulate setPerformanceFee
2377
3490
  * Returns gas estimate and result without sending transaction
2378
3491
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2379
3492
  */
2380
- async updateKeyManager(sigData: IShared_SigData, keyManager: `0x${string}`, omitChecks: boolean, options?: {
3493
+ async setPerformanceFee(feeBps: bigint, options?: {
2381
3494
  accessList?: import('viem').AccessList;
2382
3495
  authorizationList?: import('viem').AuthorizationList;
2383
3496
  chain?: import('viem').Chain | null;
@@ -2389,14 +3502,14 @@ export class Vault_json {
2389
3502
  nonce?: number;
2390
3503
  value?: bigint;
2391
3504
  }): Promise<void> {
2392
- return contract.simulate.updateKeyManager([sigData, keyManager, omitChecks] as const, options) as Promise<void>;
3505
+ return contract.simulate.setPerformanceFee([feeBps] as const, options) as Promise<void>;
2393
3506
  },
2394
3507
  /**
2395
- * Simulate xCallNative
3508
+ * Simulate setSettlementFee
2396
3509
  * Returns gas estimate and result without sending transaction
2397
3510
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2398
3511
  */
2399
- async xCallNative(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, message: `0x${string}`, gasAmount: bigint, cfParameters: `0x${string}`, options?: {
3512
+ async setSettlementFee(fee: bigint, options?: {
2400
3513
  accessList?: import('viem').AccessList;
2401
3514
  authorizationList?: import('viem').AuthorizationList;
2402
3515
  chain?: import('viem').Chain | null;
@@ -2408,14 +3521,14 @@ export class Vault_json {
2408
3521
  nonce?: number;
2409
3522
  value?: bigint;
2410
3523
  }): Promise<void> {
2411
- return contract.simulate.xCallNative([dstChain, dstAddress, dstToken, message, gasAmount, cfParameters] as const, options) as Promise<void>;
3524
+ return contract.simulate.setSettlementFee([fee] as const, options) as Promise<void>;
2412
3525
  },
2413
3526
  /**
2414
- * Simulate xCallToken
3527
+ * Simulate setTargetAllowed
2415
3528
  * Returns gas estimate and result without sending transaction
2416
3529
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2417
3530
  */
2418
- async xCallToken(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, message: `0x${string}`, gasAmount: bigint, srcToken: `0x${string}`, amount: bigint, cfParameters: `0x${string}`, options?: {
3531
+ async setTargetAllowed(target: `0x${string}`, allowed: boolean, options?: {
2419
3532
  accessList?: import('viem').AccessList;
2420
3533
  authorizationList?: import('viem').AuthorizationList;
2421
3534
  chain?: import('viem').Chain | null;
@@ -2427,14 +3540,14 @@ export class Vault_json {
2427
3540
  nonce?: number;
2428
3541
  value?: bigint;
2429
3542
  }): Promise<void> {
2430
- return contract.simulate.xCallToken([dstChain, dstAddress, dstToken, message, gasAmount, srcToken, amount, cfParameters] as const, options) as Promise<void>;
3543
+ return contract.simulate.setTargetAllowed([target, allowed] as const, options) as Promise<void>;
2431
3544
  },
2432
3545
  /**
2433
- * Simulate xSwapNative
3546
+ * Simulate settle
2434
3547
  * Returns gas estimate and result without sending transaction
2435
3548
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2436
3549
  */
2437
- async xSwapNative(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, cfParameters: `0x${string}`, options?: {
3550
+ async settle(tokens: `0x${string}`[], prices: bigint[], options?: {
2438
3551
  accessList?: import('viem').AccessList;
2439
3552
  authorizationList?: import('viem').AuthorizationList;
2440
3553
  chain?: import('viem').Chain | null;
@@ -2446,14 +3559,14 @@ export class Vault_json {
2446
3559
  nonce?: number;
2447
3560
  value?: bigint;
2448
3561
  }): Promise<void> {
2449
- return contract.simulate.xSwapNative([dstChain, dstAddress, dstToken, cfParameters] as const, options) as Promise<void>;
3562
+ return contract.simulate.settle([tokens, prices] as const, options) as Promise<void>;
2450
3563
  },
2451
3564
  /**
2452
- * Simulate xSwapToken
3565
+ * Simulate unpause
2453
3566
  * Returns gas estimate and result without sending transaction
2454
3567
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2455
3568
  */
2456
- async xSwapToken(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, srcToken: `0x${string}`, amount: bigint, cfParameters: `0x${string}`, options?: {
3569
+ async unpause(options?: {
2457
3570
  accessList?: import('viem').AccessList;
2458
3571
  authorizationList?: import('viem').AuthorizationList;
2459
3572
  chain?: import('viem').Chain | null;
@@ -2465,7 +3578,7 @@ export class Vault_json {
2465
3578
  nonce?: number;
2466
3579
  value?: bigint;
2467
3580
  }): Promise<void> {
2468
- return contract.simulate.xSwapToken([dstChain, dstAddress, dstToken, srcToken, amount, cfParameters] as const, options) as Promise<void>;
3581
+ return contract.simulate.unpause(options) as Promise<void>;
2469
3582
  }
2470
3583
  };
2471
3584
  }
@@ -2485,16 +3598,149 @@ export class Vault_json {
2485
3598
  get watch() {
2486
3599
  return {
2487
3600
  /**
2488
- * Watch AddGasNative events
3601
+ * Watch DepositAutoRefunded events
3602
+ * @param callback Function to call when event is emitted
3603
+ * @param filter Optional filter for indexed parameters
3604
+ * @returns Unwatch function to stop listening
3605
+ */
3606
+ DepositAutoRefunded: (callback: (event: { depositId: bigint; owner: `0x${string}`; assets: bigint }) => void, filter?: { depositId: bigint; owner: `0x${string}` }) => {
3607
+ return this.publicClient.watchContractEvent({
3608
+ address: this.contractAddress,
3609
+ abi: Vault_jsonAbi,
3610
+ eventName: 'DepositAutoRefunded',
3611
+ args: filter,
3612
+ onLogs: (logs: any[]) => {
3613
+ logs.forEach((log: any) => {
3614
+ callback(log.args as any);
3615
+ });
3616
+ },
3617
+ }) as () => void;
3618
+ },
3619
+ /**
3620
+ * Watch DepositCancelled events
3621
+ * @param callback Function to call when event is emitted
3622
+ * @param filter Optional filter for indexed parameters
3623
+ * @returns Unwatch function to stop listening
3624
+ */
3625
+ DepositCancelled: (callback: (event: { depositId: bigint; owner: `0x${string}`; assets: bigint }) => void, filter?: { depositId: bigint; owner: `0x${string}` }) => {
3626
+ return this.publicClient.watchContractEvent({
3627
+ address: this.contractAddress,
3628
+ abi: Vault_jsonAbi,
3629
+ eventName: 'DepositCancelled',
3630
+ args: filter,
3631
+ onLogs: (logs: any[]) => {
3632
+ logs.forEach((log: any) => {
3633
+ callback(log.args as any);
3634
+ });
3635
+ },
3636
+ }) as () => void;
3637
+ },
3638
+ /**
3639
+ * Watch DepositRequested events
3640
+ * @param callback Function to call when event is emitted
3641
+ * @param filter Optional filter for indexed parameters
3642
+ * @returns Unwatch function to stop listening
3643
+ */
3644
+ DepositRequested: (callback: (event: { depositId: bigint; owner: `0x${string}`; assets: bigint }) => void, filter?: { depositId: bigint; owner: `0x${string}` }) => {
3645
+ return this.publicClient.watchContractEvent({
3646
+ address: this.contractAddress,
3647
+ abi: Vault_jsonAbi,
3648
+ eventName: 'DepositRequested',
3649
+ args: filter,
3650
+ onLogs: (logs: any[]) => {
3651
+ logs.forEach((log: any) => {
3652
+ callback(log.args as any);
3653
+ });
3654
+ },
3655
+ }) as () => void;
3656
+ },
3657
+ /**
3658
+ * Watch DepositSettled events
3659
+ * @param callback Function to call when event is emitted
3660
+ * @param filter Optional filter for indexed parameters
3661
+ * @returns Unwatch function to stop listening
3662
+ */
3663
+ DepositSettled: (callback: (event: { depositId: bigint; owner: `0x${string}`; netAssets: bigint; shares: bigint }) => void, filter?: { depositId: bigint; owner: `0x${string}` }) => {
3664
+ return this.publicClient.watchContractEvent({
3665
+ address: this.contractAddress,
3666
+ abi: Vault_jsonAbi,
3667
+ eventName: 'DepositSettled',
3668
+ args: filter,
3669
+ onLogs: (logs: any[]) => {
3670
+ logs.forEach((log: any) => {
3671
+ callback(log.args as any);
3672
+ });
3673
+ },
3674
+ }) as () => void;
3675
+ },
3676
+ /**
3677
+ * Watch MaxSettlementBatchSizeSet events
3678
+ * @param callback Function to call when event is emitted
3679
+ * @param filter Optional filter for indexed parameters
3680
+ * @returns Unwatch function to stop listening
3681
+ */
3682
+ MaxSettlementBatchSizeSet: (callback: (event: { size: bigint }) => void) => {
3683
+ return this.publicClient.watchContractEvent({
3684
+ address: this.contractAddress,
3685
+ abi: Vault_jsonAbi,
3686
+ eventName: 'MaxSettlementBatchSizeSet',
3687
+
3688
+ onLogs: (logs: any[]) => {
3689
+ logs.forEach((log: any) => {
3690
+ callback(log.args as any);
3691
+ });
3692
+ },
3693
+ }) as () => void;
3694
+ },
3695
+ /**
3696
+ * Watch MinDepositAssetsSet events
3697
+ * @param callback Function to call when event is emitted
3698
+ * @param filter Optional filter for indexed parameters
3699
+ * @returns Unwatch function to stop listening
3700
+ */
3701
+ MinDepositAssetsSet: (callback: (event: { amount: bigint }) => void) => {
3702
+ return this.publicClient.watchContractEvent({
3703
+ address: this.contractAddress,
3704
+ abi: Vault_jsonAbi,
3705
+ eventName: 'MinDepositAssetsSet',
3706
+
3707
+ onLogs: (logs: any[]) => {
3708
+ logs.forEach((log: any) => {
3709
+ callback(log.args as any);
3710
+ });
3711
+ },
3712
+ }) as () => void;
3713
+ },
3714
+ /**
3715
+ * Watch OracleSet events
3716
+ * @param callback Function to call when event is emitted
3717
+ * @param filter Optional filter for indexed parameters
3718
+ * @returns Unwatch function to stop listening
3719
+ */
3720
+ OracleSet: (callback: (event: { oracle: `0x${string}` }) => void, filter?: { oracle: `0x${string}` }) => {
3721
+ return this.publicClient.watchContractEvent({
3722
+ address: this.contractAddress,
3723
+ abi: Vault_jsonAbi,
3724
+ eventName: 'OracleSet',
3725
+ args: filter,
3726
+ onLogs: (logs: any[]) => {
3727
+ logs.forEach((log: any) => {
3728
+ callback(log.args as any);
3729
+ });
3730
+ },
3731
+ }) as () => void;
3732
+ },
3733
+ /**
3734
+ * Watch Paused events
2489
3735
  * @param callback Function to call when event is emitted
2490
3736
  * @param filter Optional filter for indexed parameters
2491
3737
  * @returns Unwatch function to stop listening
2492
3738
  */
2493
- AddGasNative: (callback: (event: { swapID: `0x${string}`; amount: bigint }) => void) => {
3739
+ Paused: (callback: (event: { account: `0x${string}` }) => void) => {
2494
3740
  return this.publicClient.watchContractEvent({
2495
3741
  address: this.contractAddress,
2496
3742
  abi: Vault_jsonAbi,
2497
- eventName: 'AddGasNative',
3743
+ eventName: 'Paused',
2498
3744
 
2499
3745
  onLogs: (logs: any[]) => {
2500
3746
  logs.forEach((log: any) => {
@@ -2504,16 +3750,16 @@ export class Vault_json {
2504
3750
  }) as () => void;
2505
3751
  },
2506
3752
  /**
2507
- * Watch AddGasToken events
3753
+ * Watch PerformanceFeeSet events
2508
3754
  * @param callback Function to call when event is emitted
2509
3755
  * @param filter Optional filter for indexed parameters
2510
3756
  * @returns Unwatch function to stop listening
2511
3757
  */
2512
- AddGasToken: (callback: (event: { swapID: `0x${string}`; amount: bigint; token: `0x${string}` }) => void) => {
3758
+ PerformanceFeeSet: (callback: (event: { feeBps: bigint }) => void) => {
2513
3759
  return this.publicClient.watchContractEvent({
2514
3760
  address: this.contractAddress,
2515
3761
  abi: Vault_jsonAbi,
2516
- eventName: 'AddGasToken',
3762
+ eventName: 'PerformanceFeeSet',
2517
3763
 
2518
3764
  onLogs: (logs: any[]) => {
2519
3765
  logs.forEach((log: any) => {
@@ -2523,16 +3769,16 @@ export class Vault_json {
2523
3769
  }) as () => void;
2524
3770
  },
2525
3771
  /**
2526
- * Watch CommunityGuardDisabled events
3772
+ * Watch Rebalanced events
2527
3773
  * @param callback Function to call when event is emitted
2528
3774
  * @param filter Optional filter for indexed parameters
2529
3775
  * @returns Unwatch function to stop listening
2530
3776
  */
2531
- CommunityGuardDisabled: (callback: (event: { communityGuardDisabled: boolean }) => void) => {
3777
+ Rebalanced: (callback: (event: { callCount: bigint; navBefore: bigint; navAfter: bigint }) => void) => {
2532
3778
  return this.publicClient.watchContractEvent({
2533
3779
  address: this.contractAddress,
2534
3780
  abi: Vault_jsonAbi,
2535
- eventName: 'CommunityGuardDisabled',
3781
+ eventName: 'Rebalanced',
2536
3782
 
2537
3783
  onLogs: (logs: any[]) => {
2538
3784
  logs.forEach((log: any) => {
@@ -2542,16 +3788,35 @@ export class Vault_json {
2542
3788
  }) as () => void;
2543
3789
  },
2544
3790
  /**
2545
- * Watch ExecuteActionsFailed events
3791
+ * Watch RoleAdminChanged events
3792
+ * @param callback Function to call when event is emitted
3793
+ * @param filter Optional filter for indexed parameters
3794
+ * @returns Unwatch function to stop listening
3795
+ */
3796
+ RoleAdminChanged: (callback: (event: { role: `0x${string}`; previousAdminRole: `0x${string}`; newAdminRole: `0x${string}` }) => void, filter?: { role: `0x${string}`; previousAdminRole: `0x${string}`; newAdminRole: `0x${string}` }) => {
3797
+ return this.publicClient.watchContractEvent({
3798
+ address: this.contractAddress,
3799
+ abi: Vault_jsonAbi,
3800
+ eventName: 'RoleAdminChanged',
3801
+ args: filter,
3802
+ onLogs: (logs: any[]) => {
3803
+ logs.forEach((log: any) => {
3804
+ callback(log.args as any);
3805
+ });
3806
+ },
3807
+ }) as () => void;
3808
+ },
3809
+ /**
3810
+ * Watch RoleGranted events
2546
3811
  * @param callback Function to call when event is emitted
2547
3812
  * @param filter Optional filter for indexed parameters
2548
3813
  * @returns Unwatch function to stop listening
2549
3814
  */
2550
- ExecuteActionsFailed: (callback: (event: { multicallAddress: `0x${string}`; token: `0x${string}`; amount: bigint; reason: `0x${string}` }) => void, filter?: { multicallAddress: `0x${string}`; token: `0x${string}` }) => {
3815
+ RoleGranted: (callback: (event: { role: `0x${string}`; account: `0x${string}`; sender: `0x${string}` }) => void, filter?: { role: `0x${string}`; account: `0x${string}`; sender: `0x${string}` }) => {
2551
3816
  return this.publicClient.watchContractEvent({
2552
3817
  address: this.contractAddress,
2553
3818
  abi: Vault_jsonAbi,
2554
- eventName: 'ExecuteActionsFailed',
3819
+ eventName: 'RoleGranted',
2555
3820
  args: filter,
2556
3821
  onLogs: (logs: any[]) => {
2557
3822
  logs.forEach((log: any) => {
@@ -2561,16 +3826,16 @@ export class Vault_json {
2561
3826
  }) as () => void;
2562
3827
  },
2563
3828
  /**
2564
- * Watch FetchedNative events
3829
+ * Watch RoleRevoked events
2565
3830
  * @param callback Function to call when event is emitted
2566
3831
  * @param filter Optional filter for indexed parameters
2567
3832
  * @returns Unwatch function to stop listening
2568
3833
  */
2569
- FetchedNative: (callback: (event: { sender: `0x${string}`; amount: bigint }) => void, filter?: { sender: `0x${string}` }) => {
3834
+ RoleRevoked: (callback: (event: { role: `0x${string}`; account: `0x${string}`; sender: `0x${string}` }) => void, filter?: { role: `0x${string}`; account: `0x${string}`; sender: `0x${string}` }) => {
2570
3835
  return this.publicClient.watchContractEvent({
2571
3836
  address: this.contractAddress,
2572
3837
  abi: Vault_jsonAbi,
2573
- eventName: 'FetchedNative',
3838
+ eventName: 'RoleRevoked',
2574
3839
  args: filter,
2575
3840
  onLogs: (logs: any[]) => {
2576
3841
  logs.forEach((log: any) => {
@@ -2580,16 +3845,16 @@ export class Vault_json {
2580
3845
  }) as () => void;
2581
3846
  },
2582
3847
  /**
2583
- * Watch Suspended events
3848
+ * Watch Settled events
2584
3849
  * @param callback Function to call when event is emitted
2585
3850
  * @param filter Optional filter for indexed parameters
2586
3851
  * @returns Unwatch function to stop listening
2587
3852
  */
2588
- Suspended: (callback: (event: { suspended: boolean }) => void) => {
3853
+ Settled: (callback: (event: { oraclePriceCount: bigint; depositsSettled: bigint; depositsRefunded: bigint; withdrawalsProcessed: bigint }) => void) => {
2589
3854
  return this.publicClient.watchContractEvent({
2590
3855
  address: this.contractAddress,
2591
3856
  abi: Vault_jsonAbi,
2592
- eventName: 'Suspended',
3857
+ eventName: 'Settled',
2593
3858
 
2594
3859
  onLogs: (logs: any[]) => {
2595
3860
  logs.forEach((log: any) => {
@@ -2599,17 +3864,17 @@ export class Vault_json {
2599
3864
  }) as () => void;
2600
3865
  },
2601
3866
  /**
2602
- * Watch SwapNative events
3867
+ * Watch SettlementFeeSet events
2603
3868
  * @param callback Function to call when event is emitted
2604
3869
  * @param filter Optional filter for indexed parameters
2605
3870
  * @returns Unwatch function to stop listening
2606
3871
  */
2607
- SwapNative: (callback: (event: { sender: `0x${string}`; dstChain: bigint; dstAddress: `0x${string}`; dstToken: bigint; amount: bigint; cfParameters: `0x${string}` }) => void, filter?: { sender: `0x${string}` }) => {
3872
+ SettlementFeeSet: (callback: (event: { fee: bigint }) => void) => {
2608
3873
  return this.publicClient.watchContractEvent({
2609
3874
  address: this.contractAddress,
2610
3875
  abi: Vault_jsonAbi,
2611
- eventName: 'SwapNative',
2612
- args: filter,
3876
+ eventName: 'SettlementFeeSet',
3877
+
2613
3878
  onLogs: (logs: any[]) => {
2614
3879
  logs.forEach((log: any) => {
2615
3880
  callback(log.args as any);
@@ -2618,16 +3883,16 @@ export class Vault_json {
2618
3883
  }) as () => void;
2619
3884
  },
2620
3885
  /**
2621
- * Watch SwapToken events
3886
+ * Watch TargetAllowed events
2622
3887
  * @param callback Function to call when event is emitted
2623
3888
  * @param filter Optional filter for indexed parameters
2624
3889
  * @returns Unwatch function to stop listening
2625
3890
  */
2626
- SwapToken: (callback: (event: { sender: `0x${string}`; dstChain: bigint; dstAddress: `0x${string}`; dstToken: bigint; srcToken: `0x${string}`; amount: bigint; cfParameters: `0x${string}` }) => void, filter?: { sender: `0x${string}` }) => {
3891
+ TargetAllowed: (callback: (event: { target: `0x${string}`; allowed: boolean }) => void, filter?: { target: `0x${string}` }) => {
2627
3892
  return this.publicClient.watchContractEvent({
2628
3893
  address: this.contractAddress,
2629
3894
  abi: Vault_jsonAbi,
2630
- eventName: 'SwapToken',
3895
+ eventName: 'TargetAllowed',
2631
3896
  args: filter,
2632
3897
  onLogs: (logs: any[]) => {
2633
3898
  logs.forEach((log: any) => {
@@ -2637,16 +3902,16 @@ export class Vault_json {
2637
3902
  }) as () => void;
2638
3903
  },
2639
3904
  /**
2640
- * Watch TransferNativeFailed events
3905
+ * Watch TrackedTokenAdded events
2641
3906
  * @param callback Function to call when event is emitted
2642
3907
  * @param filter Optional filter for indexed parameters
2643
3908
  * @returns Unwatch function to stop listening
2644
3909
  */
2645
- TransferNativeFailed: (callback: (event: { recipient: `0x${string}`; amount: bigint }) => void, filter?: { recipient: `0x${string}` }) => {
3910
+ TrackedTokenAdded: (callback: (event: { token: `0x${string}` }) => void, filter?: { token: `0x${string}` }) => {
2646
3911
  return this.publicClient.watchContractEvent({
2647
3912
  address: this.contractAddress,
2648
3913
  abi: Vault_jsonAbi,
2649
- eventName: 'TransferNativeFailed',
3914
+ eventName: 'TrackedTokenAdded',
2650
3915
  args: filter,
2651
3916
  onLogs: (logs: any[]) => {
2652
3917
  logs.forEach((log: any) => {
@@ -2656,16 +3921,16 @@ export class Vault_json {
2656
3921
  }) as () => void;
2657
3922
  },
2658
3923
  /**
2659
- * Watch TransferTokenFailed events
3924
+ * Watch TrackedTokenRemoved events
2660
3925
  * @param callback Function to call when event is emitted
2661
3926
  * @param filter Optional filter for indexed parameters
2662
3927
  * @returns Unwatch function to stop listening
2663
3928
  */
2664
- TransferTokenFailed: (callback: (event: { recipient: `0x${string}`; token: `0x${string}`; amount: bigint; reason: `0x${string}` }) => void, filter?: { recipient: `0x${string}`; token: `0x${string}` }) => {
3929
+ TrackedTokenRemoved: (callback: (event: { token: `0x${string}` }) => void, filter?: { token: `0x${string}` }) => {
2665
3930
  return this.publicClient.watchContractEvent({
2666
3931
  address: this.contractAddress,
2667
3932
  abi: Vault_jsonAbi,
2668
- eventName: 'TransferTokenFailed',
3933
+ eventName: 'TrackedTokenRemoved',
2669
3934
  args: filter,
2670
3935
  onLogs: (logs: any[]) => {
2671
3936
  logs.forEach((log: any) => {
@@ -2675,16 +3940,16 @@ export class Vault_json {
2675
3940
  }) as () => void;
2676
3941
  },
2677
3942
  /**
2678
- * Watch UpdatedKeyManager events
3943
+ * Watch Unpaused events
2679
3944
  * @param callback Function to call when event is emitted
2680
3945
  * @param filter Optional filter for indexed parameters
2681
3946
  * @returns Unwatch function to stop listening
2682
3947
  */
2683
- UpdatedKeyManager: (callback: (event: { keyManager: `0x${string}` }) => void) => {
3948
+ Unpaused: (callback: (event: { account: `0x${string}` }) => void) => {
2684
3949
  return this.publicClient.watchContractEvent({
2685
3950
  address: this.contractAddress,
2686
3951
  abi: Vault_jsonAbi,
2687
- eventName: 'UpdatedKeyManager',
3952
+ eventName: 'Unpaused',
2688
3953
 
2689
3954
  onLogs: (logs: any[]) => {
2690
3955
  logs.forEach((log: any) => {
@@ -2694,16 +3959,54 @@ export class Vault_json {
2694
3959
  }) as () => void;
2695
3960
  },
2696
3961
  /**
2697
- * Watch XCallNative events
3962
+ * Watch WithdrawCancelled events
3963
+ * @param callback Function to call when event is emitted
3964
+ * @param filter Optional filter for indexed parameters
3965
+ * @returns Unwatch function to stop listening
3966
+ */
3967
+ WithdrawCancelled: (callback: (event: { requestId: bigint; owner: `0x${string}`; shares: bigint }) => void, filter?: { requestId: bigint; owner: `0x${string}` }) => {
3968
+ return this.publicClient.watchContractEvent({
3969
+ address: this.contractAddress,
3970
+ abi: Vault_jsonAbi,
3971
+ eventName: 'WithdrawCancelled',
3972
+ args: filter,
3973
+ onLogs: (logs: any[]) => {
3974
+ logs.forEach((log: any) => {
3975
+ callback(log.args as any);
3976
+ });
3977
+ },
3978
+ }) as () => void;
3979
+ },
3980
+ /**
3981
+ * Watch WithdrawClaimed events
3982
+ * @param callback Function to call when event is emitted
3983
+ * @param filter Optional filter for indexed parameters
3984
+ * @returns Unwatch function to stop listening
3985
+ */
3986
+ WithdrawClaimed: (callback: (event: { requestId: bigint; owner: `0x${string}`; shares: bigint; assetsPaid: bigint; fee: bigint }) => void, filter?: { requestId: bigint; owner: `0x${string}` }) => {
3987
+ return this.publicClient.watchContractEvent({
3988
+ address: this.contractAddress,
3989
+ abi: Vault_jsonAbi,
3990
+ eventName: 'WithdrawClaimed',
3991
+ args: filter,
3992
+ onLogs: (logs: any[]) => {
3993
+ logs.forEach((log: any) => {
3994
+ callback(log.args as any);
3995
+ });
3996
+ },
3997
+ }) as () => void;
3998
+ },
3999
+ /**
4000
+ * Watch WithdrawRequested events
2698
4001
  * @param callback Function to call when event is emitted
2699
4002
  * @param filter Optional filter for indexed parameters
2700
4003
  * @returns Unwatch function to stop listening
2701
4004
  */
2702
- XCallNative: (callback: (event: { sender: `0x${string}`; dstChain: bigint; dstAddress: `0x${string}`; dstToken: bigint; amount: bigint; message: `0x${string}`; gasAmount: bigint; cfParameters: `0x${string}` }) => void, filter?: { sender: `0x${string}` }) => {
4005
+ WithdrawRequested: (callback: (event: { requestId: bigint; owner: `0x${string}`; shares: bigint; claimableAt: bigint }) => void, filter?: { requestId: bigint; owner: `0x${string}` }) => {
2703
4006
  return this.publicClient.watchContractEvent({
2704
4007
  address: this.contractAddress,
2705
4008
  abi: Vault_jsonAbi,
2706
- eventName: 'XCallNative',
4009
+ eventName: 'WithdrawRequested',
2707
4010
  args: filter,
2708
4011
  onLogs: (logs: any[]) => {
2709
4012
  logs.forEach((log: any) => {
@@ -2713,16 +4016,16 @@ export class Vault_json {
2713
4016
  }) as () => void;
2714
4017
  },
2715
4018
  /**
2716
- * Watch XCallToken events
4019
+ * Watch WithdrawalSettled events
2717
4020
  * @param callback Function to call when event is emitted
2718
4021
  * @param filter Optional filter for indexed parameters
2719
4022
  * @returns Unwatch function to stop listening
2720
4023
  */
2721
- XCallToken: (callback: (event: { sender: `0x${string}`; dstChain: bigint; dstAddress: `0x${string}`; dstToken: bigint; srcToken: `0x${string}`; amount: bigint; message: `0x${string}`; gasAmount: bigint; cfParameters: `0x${string}` }) => void, filter?: { sender: `0x${string}` }) => {
4024
+ WithdrawalSettled: (callback: (event: { requestId: bigint; owner: `0x${string}`; shares: bigint; assetsOut: bigint; fee: bigint }) => void, filter?: { requestId: bigint; owner: `0x${string}` }) => {
2722
4025
  return this.publicClient.watchContractEvent({
2723
4026
  address: this.contractAddress,
2724
4027
  abi: Vault_jsonAbi,
2725
- eventName: 'XCallToken',
4028
+ eventName: 'WithdrawalSettled',
2726
4029
  args: filter,
2727
4030
  onLogs: (logs: any[]) => {
2728
4031
  logs.forEach((log: any) => {