@gitmyabi/vault 1.0.1 → 1.0.2

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.
@@ -1,6 +1,51 @@
1
1
  import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
2
2
  import { getContract } from 'viem';
3
3
 
4
+
5
+ /**
6
+ * IShared.SigData struct type
7
+ */
8
+ export type IShared_SigData = {
9
+ sig: bigint;
10
+ nonce: bigint;
11
+ kTimesGAddress: `0x${string}`;
12
+ };
13
+
14
+ /**
15
+ * IShared.DeployFetchParams struct type
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}`;
48
+ };
4
49
  /**
5
50
  * Vault_json ABI
6
51
  *
@@ -10,18 +55,8 @@ export const Vault_jsonAbi = [
10
55
  {
11
56
  "inputs": [
12
57
  {
13
- "internalType": "address",
14
- "name": "_creator",
15
- "type": "address"
16
- },
17
- {
18
- "internalType": "contract IRateProviderRegistry",
19
- "name": "_rpr",
20
- "type": "address"
21
- },
22
- {
23
- "internalType": "address",
24
- "name": "_tasset",
58
+ "internalType": "contract IKeyManager",
59
+ "name": "keyManager",
25
60
  "type": "address"
26
61
  }
27
62
  ],
@@ -29,106 +64,123 @@ export const Vault_jsonAbi = [
29
64
  "type": "constructor"
30
65
  },
31
66
  {
67
+ "anonymous": false,
32
68
  "inputs": [
33
69
  {
34
- "internalType": "address",
35
- "name": "target",
36
- "type": "address"
70
+ "indexed": false,
71
+ "internalType": "bytes32",
72
+ "name": "swapID",
73
+ "type": "bytes32"
74
+ },
75
+ {
76
+ "indexed": false,
77
+ "internalType": "uint256",
78
+ "name": "amount",
79
+ "type": "uint256"
37
80
  }
38
81
  ],
39
- "name": "AddressEmptyCode",
40
- "type": "error"
82
+ "name": "AddGasNative",
83
+ "type": "event"
41
84
  },
42
85
  {
86
+ "anonymous": false,
43
87
  "inputs": [
44
88
  {
89
+ "indexed": false,
90
+ "internalType": "bytes32",
91
+ "name": "swapID",
92
+ "type": "bytes32"
93
+ },
94
+ {
95
+ "indexed": false,
96
+ "internalType": "uint256",
97
+ "name": "amount",
98
+ "type": "uint256"
99
+ },
100
+ {
101
+ "indexed": false,
45
102
  "internalType": "address",
46
- "name": "account",
103
+ "name": "token",
47
104
  "type": "address"
48
105
  }
49
106
  ],
50
- "name": "AddressInsufficientBalance",
51
- "type": "error"
52
- },
53
- {
54
- "inputs": [],
55
- "name": "Failed",
56
- "type": "error"
57
- },
58
- {
59
- "inputs": [],
60
- "name": "FailedInnerCall",
61
- "type": "error"
62
- },
63
- {
64
- "inputs": [],
65
- "name": "InvalidAddress",
66
- "type": "error"
67
- },
68
- {
69
- "inputs": [],
70
- "name": "InvalidStrategy",
71
- "type": "error"
72
- },
73
- {
74
- "inputs": [],
75
- "name": "NotRescuer",
76
- "type": "error"
107
+ "name": "AddGasToken",
108
+ "type": "event"
77
109
  },
78
110
  {
111
+ "anonymous": false,
79
112
  "inputs": [
80
113
  {
81
- "internalType": "address",
82
- "name": "owner",
83
- "type": "address"
114
+ "indexed": false,
115
+ "internalType": "bool",
116
+ "name": "communityGuardDisabled",
117
+ "type": "bool"
84
118
  }
85
119
  ],
86
- "name": "OwnableInvalidOwner",
87
- "type": "error"
120
+ "name": "CommunityGuardDisabled",
121
+ "type": "event"
88
122
  },
89
123
  {
124
+ "anonymous": false,
90
125
  "inputs": [
91
126
  {
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,
92
140
  "internalType": "address",
93
- "name": "account",
141
+ "name": "token",
94
142
  "type": "address"
143
+ },
144
+ {
145
+ "indexed": false,
146
+ "internalType": "bytes",
147
+ "name": "reason",
148
+ "type": "bytes"
95
149
  }
96
150
  ],
97
- "name": "OwnableUnauthorizedAccount",
98
- "type": "error"
99
- },
100
- {
101
- "inputs": [],
102
- "name": "RescueFailed",
103
- "type": "error"
151
+ "name": "ExecuteActionsFailed",
152
+ "type": "event"
104
153
  },
105
154
  {
155
+ "anonymous": false,
106
156
  "inputs": [
107
157
  {
158
+ "indexed": true,
108
159
  "internalType": "address",
109
- "name": "token",
160
+ "name": "sender",
110
161
  "type": "address"
162
+ },
163
+ {
164
+ "indexed": false,
165
+ "internalType": "uint256",
166
+ "name": "amount",
167
+ "type": "uint256"
111
168
  }
112
169
  ],
113
- "name": "SafeERC20FailedOperation",
114
- "type": "error"
115
- },
116
- {
117
- "inputs": [],
118
- "name": "UnsupportedDecimals",
119
- "type": "error"
170
+ "name": "FetchedNative",
171
+ "type": "event"
120
172
  },
121
173
  {
122
174
  "anonymous": false,
123
175
  "inputs": [
124
176
  {
125
177
  "indexed": false,
126
- "internalType": "address",
127
- "name": "_asset",
128
- "type": "address"
178
+ "internalType": "bool",
179
+ "name": "suspended",
180
+ "type": "bool"
129
181
  }
130
182
  ],
131
- "name": "AllowableAssetAdded",
183
+ "name": "Suspended",
132
184
  "type": "event"
133
185
  },
134
186
  {
@@ -136,31 +188,91 @@ export const Vault_jsonAbi = [
136
188
  "inputs": [
137
189
  {
138
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,
209
+ "internalType": "uint256",
210
+ "name": "amount",
211
+ "type": "uint256"
212
+ },
213
+ {
214
+ "indexed": true,
139
215
  "internalType": "address",
140
- "name": "_asset",
216
+ "name": "sender",
141
217
  "type": "address"
218
+ },
219
+ {
220
+ "indexed": false,
221
+ "internalType": "bytes",
222
+ "name": "cfParameters",
223
+ "type": "bytes"
142
224
  }
143
225
  ],
144
- "name": "AllowableAssetRemoved",
226
+ "name": "SwapNative",
145
227
  "type": "event"
146
228
  },
147
229
  {
148
230
  "anonymous": false,
149
231
  "inputs": [
150
232
  {
151
- "indexed": true,
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"
249
+ },
250
+ {
251
+ "indexed": false,
152
252
  "internalType": "address",
153
- "name": "previousOwner",
253
+ "name": "srcToken",
154
254
  "type": "address"
155
255
  },
256
+ {
257
+ "indexed": false,
258
+ "internalType": "uint256",
259
+ "name": "amount",
260
+ "type": "uint256"
261
+ },
156
262
  {
157
263
  "indexed": true,
158
264
  "internalType": "address",
159
- "name": "newOwner",
265
+ "name": "sender",
160
266
  "type": "address"
267
+ },
268
+ {
269
+ "indexed": false,
270
+ "internalType": "bytes",
271
+ "name": "cfParameters",
272
+ "type": "bytes"
161
273
  }
162
274
  ],
163
- "name": "OwnershipTransferStarted",
275
+ "name": "SwapToken",
164
276
  "type": "event"
165
277
  },
166
278
  {
@@ -168,87 +280,298 @@ export const Vault_jsonAbi = [
168
280
  "inputs": [
169
281
  {
170
282
  "indexed": true,
171
- "internalType": "address",
172
- "name": "previousOwner",
283
+ "internalType": "address payable",
284
+ "name": "recipient",
173
285
  "type": "address"
174
286
  },
175
287
  {
176
- "indexed": true,
177
- "internalType": "address",
178
- "name": "newOwner",
179
- "type": "address"
288
+ "indexed": false,
289
+ "internalType": "uint256",
290
+ "name": "amount",
291
+ "type": "uint256"
180
292
  }
181
293
  ],
182
- "name": "OwnershipTransferred",
294
+ "name": "TransferNativeFailed",
183
295
  "type": "event"
184
296
  },
185
297
  {
186
298
  "anonymous": false,
187
299
  "inputs": [
300
+ {
301
+ "indexed": true,
302
+ "internalType": "address payable",
303
+ "name": "recipient",
304
+ "type": "address"
305
+ },
306
+ {
307
+ "indexed": false,
308
+ "internalType": "uint256",
309
+ "name": "amount",
310
+ "type": "uint256"
311
+ },
188
312
  {
189
313
  "indexed": true,
190
314
  "internalType": "address",
191
- "name": "_new",
315
+ "name": "token",
192
316
  "type": "address"
193
317
  },
318
+ {
319
+ "indexed": false,
320
+ "internalType": "bytes",
321
+ "name": "reason",
322
+ "type": "bytes"
323
+ }
324
+ ],
325
+ "name": "TransferTokenFailed",
326
+ "type": "event"
327
+ },
328
+ {
329
+ "anonymous": false,
330
+ "inputs": [
194
331
  {
195
332
  "indexed": false,
196
333
  "internalType": "address",
197
- "name": "_old",
334
+ "name": "keyManager",
198
335
  "type": "address"
199
336
  }
200
337
  ],
201
- "name": "RedemptionUpdated",
338
+ "name": "UpdatedKeyManager",
202
339
  "type": "event"
203
340
  },
204
341
  {
205
342
  "anonymous": false,
206
343
  "inputs": [
344
+ {
345
+ "indexed": false,
346
+ "internalType": "uint32",
347
+ "name": "dstChain",
348
+ "type": "uint32"
349
+ },
350
+ {
351
+ "indexed": false,
352
+ "internalType": "bytes",
353
+ "name": "dstAddress",
354
+ "type": "bytes"
355
+ },
356
+ {
357
+ "indexed": false,
358
+ "internalType": "uint32",
359
+ "name": "dstToken",
360
+ "type": "uint32"
361
+ },
362
+ {
363
+ "indexed": false,
364
+ "internalType": "uint256",
365
+ "name": "amount",
366
+ "type": "uint256"
367
+ },
207
368
  {
208
369
  "indexed": true,
209
370
  "internalType": "address",
210
- "name": "newRescuer",
371
+ "name": "sender",
211
372
  "type": "address"
373
+ },
374
+ {
375
+ "indexed": false,
376
+ "internalType": "bytes",
377
+ "name": "message",
378
+ "type": "bytes"
379
+ },
380
+ {
381
+ "indexed": false,
382
+ "internalType": "uint256",
383
+ "name": "gasAmount",
384
+ "type": "uint256"
385
+ },
386
+ {
387
+ "indexed": false,
388
+ "internalType": "bytes",
389
+ "name": "cfParameters",
390
+ "type": "bytes"
212
391
  }
213
392
  ],
214
- "name": "RescuerChanged",
393
+ "name": "XCallNative",
215
394
  "type": "event"
216
395
  },
217
396
  {
218
397
  "anonymous": false,
219
398
  "inputs": [
220
399
  {
221
- "indexed": true,
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"
410
+ },
411
+ {
412
+ "indexed": false,
413
+ "internalType": "uint32",
414
+ "name": "dstToken",
415
+ "type": "uint32"
416
+ },
417
+ {
418
+ "indexed": false,
222
419
  "internalType": "address",
223
- "name": "_new",
420
+ "name": "srcToken",
224
421
  "type": "address"
225
422
  },
226
423
  {
227
424
  "indexed": false,
425
+ "internalType": "uint256",
426
+ "name": "amount",
427
+ "type": "uint256"
428
+ },
429
+ {
430
+ "indexed": true,
228
431
  "internalType": "address",
229
- "name": "_old",
432
+ "name": "sender",
230
433
  "type": "address"
434
+ },
435
+ {
436
+ "indexed": false,
437
+ "internalType": "bytes",
438
+ "name": "message",
439
+ "type": "bytes"
440
+ },
441
+ {
442
+ "indexed": false,
443
+ "internalType": "uint256",
444
+ "name": "gasAmount",
445
+ "type": "uint256"
446
+ },
447
+ {
448
+ "indexed": false,
449
+ "internalType": "bytes",
450
+ "name": "cfParameters",
451
+ "type": "bytes"
231
452
  }
232
453
  ],
233
- "name": "StrategyStorageUpdated",
454
+ "name": "XCallToken",
234
455
  "type": "event"
235
456
  },
236
457
  {
237
- "inputs": [],
238
- "name": "RATE_PROVIDER_REGISTRY",
239
- "outputs": [
458
+ "inputs": [
240
459
  {
241
- "internalType": "contract IRateProviderRegistry",
242
- "name": "",
460
+ "internalType": "bytes32",
461
+ "name": "swapID",
462
+ "type": "bytes32"
463
+ }
464
+ ],
465
+ "name": "addGasNative",
466
+ "outputs": [],
467
+ "stateMutability": "payable",
468
+ "type": "function"
469
+ },
470
+ {
471
+ "inputs": [
472
+ {
473
+ "internalType": "bytes32",
474
+ "name": "swapID",
475
+ "type": "bytes32"
476
+ },
477
+ {
478
+ "internalType": "uint256",
479
+ "name": "amount",
480
+ "type": "uint256"
481
+ },
482
+ {
483
+ "internalType": "contract IERC20",
484
+ "name": "token",
243
485
  "type": "address"
244
486
  }
245
487
  ],
246
- "stateMutability": "view",
488
+ "name": "addGasToken",
489
+ "outputs": [],
490
+ "stateMutability": "nonpayable",
247
491
  "type": "function"
248
492
  },
249
493
  {
250
- "inputs": [],
251
- "name": "acceptOwnership",
494
+ "inputs": [
495
+ {
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
+ },
517
+ {
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[]"
533
+ },
534
+ {
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[]"
550
+ },
551
+ {
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[]"
572
+ }
573
+ ],
574
+ "name": "allBatch",
252
575
  "outputs": [],
253
576
  "stateMutability": "nonpayable",
254
577
  "type": "function"
@@ -256,77 +579,389 @@ export const Vault_jsonAbi = [
256
579
  {
257
580
  "inputs": [
258
581
  {
259
- "internalType": "address",
260
- "name": "_asset",
261
- "type": "address"
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"
602
+ },
603
+ {
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[]"
619
+ },
620
+ {
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[]"
262
641
  }
263
642
  ],
264
- "name": "addAllowableAsset",
643
+ "name": "allBatchV2",
265
644
  "outputs": [],
266
645
  "stateMutability": "nonpayable",
267
646
  "type": "function"
268
647
  },
269
648
  {
270
- "inputs": [],
271
- "name": "getAllowableAssetCount",
272
- "outputs": [
649
+ "inputs": [
273
650
  {
274
- "internalType": "uint256",
275
- "name": "",
276
- "type": "uint256"
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[]"
277
688
  }
278
689
  ],
279
- "stateMutability": "view",
690
+ "name": "deployAndFetchBatch",
691
+ "outputs": [],
692
+ "stateMutability": "nonpayable",
280
693
  "type": "function"
281
694
  },
282
695
  {
283
696
  "inputs": [],
284
- "name": "getAllowableAssets",
285
- "outputs": [
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": [
286
711
  {
287
- "internalType": "address[]",
288
- "name": "",
289
- "type": "address[]"
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"
754
+ },
755
+ {
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[]"
786
+ },
787
+ {
788
+ "internalType": "uint256",
789
+ "name": "gasMulticall",
790
+ "type": "uint256"
290
791
  }
291
792
  ],
292
- "stateMutability": "view",
793
+ "name": "executeActions",
794
+ "outputs": [],
795
+ "stateMutability": "nonpayable",
293
796
  "type": "function"
294
797
  },
295
798
  {
296
- "inputs": [],
297
- "name": "getTAsset",
298
- "outputs": [
799
+ "inputs": [
800
+ {
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"
821
+ },
299
822
  {
300
823
  "internalType": "address",
301
- "name": "",
824
+ "name": "recipient",
302
825
  "type": "address"
826
+ },
827
+ {
828
+ "internalType": "uint32",
829
+ "name": "srcChain",
830
+ "type": "uint32"
831
+ },
832
+ {
833
+ "internalType": "bytes",
834
+ "name": "srcAddress",
835
+ "type": "bytes"
836
+ },
837
+ {
838
+ "internalType": "bytes",
839
+ "name": "message",
840
+ "type": "bytes"
303
841
  }
304
842
  ],
305
- "stateMutability": "view",
843
+ "name": "executexCall",
844
+ "outputs": [],
845
+ "stateMutability": "nonpayable",
306
846
  "type": "function"
307
847
  },
308
848
  {
309
- "inputs": [],
310
- "name": "getUnderlying",
311
- "outputs": [
849
+ "inputs": [
312
850
  {
313
- "internalType": "address",
314
- "name": "",
315
- "type": "address"
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
+ },
904
+ {
905
+ "internalType": "bytes",
906
+ "name": "message",
907
+ "type": "bytes"
316
908
  }
317
909
  ],
318
- "stateMutability": "view",
910
+ "name": "executexSwapAndCall",
911
+ "outputs": [],
912
+ "stateMutability": "nonpayable",
319
913
  "type": "function"
320
914
  },
321
915
  {
322
916
  "inputs": [
323
917
  {
324
- "internalType": "address",
325
- "name": "_asset",
326
- "type": "address"
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
+ },
939
+ {
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[]"
327
955
  }
328
956
  ],
329
- "name": "isAllowableAsset",
957
+ "name": "fetchBatch",
958
+ "outputs": [],
959
+ "stateMutability": "nonpayable",
960
+ "type": "function"
961
+ },
962
+ {
963
+ "inputs": [],
964
+ "name": "getCommunityGuardDisabled",
330
965
  "outputs": [
331
966
  {
332
967
  "internalType": "bool",
@@ -339,7 +974,7 @@ export const Vault_jsonAbi = [
339
974
  },
340
975
  {
341
976
  "inputs": [],
342
- "name": "owner",
977
+ "name": "getCommunityKey",
343
978
  "outputs": [
344
979
  {
345
980
  "internalType": "address",
@@ -352,7 +987,7 @@ export const Vault_jsonAbi = [
352
987
  },
353
988
  {
354
989
  "inputs": [],
355
- "name": "pendingOwner",
990
+ "name": "getGovernor",
356
991
  "outputs": [
357
992
  {
358
993
  "internalType": "address",
@@ -365,10 +1000,10 @@ export const Vault_jsonAbi = [
365
1000
  },
366
1001
  {
367
1002
  "inputs": [],
368
- "name": "redemption",
1003
+ "name": "getKeyManager",
369
1004
  "outputs": [
370
1005
  {
371
- "internalType": "address",
1006
+ "internalType": "contract IKeyManager",
372
1007
  "name": "",
373
1008
  "type": "address"
374
1009
  }
@@ -376,22 +1011,42 @@ export const Vault_jsonAbi = [
376
1011
  "stateMutability": "view",
377
1012
  "type": "function"
378
1013
  },
1014
+ {
1015
+ "inputs": [],
1016
+ "name": "getSuspendedState",
1017
+ "outputs": [
1018
+ {
1019
+ "internalType": "bool",
1020
+ "name": "",
1021
+ "type": "bool"
1022
+ }
1023
+ ],
1024
+ "stateMutability": "view",
1025
+ "type": "function"
1026
+ },
379
1027
  {
380
1028
  "inputs": [
381
1029
  {
382
- "internalType": "address",
383
- "name": "_asset",
384
- "type": "address"
1030
+ "internalType": "address[]",
1031
+ "name": "tokens",
1032
+ "type": "address[]"
385
1033
  }
386
1034
  ],
387
- "name": "removeAllowableAsset",
1035
+ "name": "govWithdraw",
388
1036
  "outputs": [],
389
1037
  "stateMutability": "nonpayable",
390
1038
  "type": "function"
391
1039
  },
392
1040
  {
393
1041
  "inputs": [],
394
- "name": "renounceOwnership",
1042
+ "name": "resume",
1043
+ "outputs": [],
1044
+ "stateMutability": "nonpayable",
1045
+ "type": "function"
1046
+ },
1047
+ {
1048
+ "inputs": [],
1049
+ "name": "suspend",
395
1050
  "outputs": [],
396
1051
  "stateMutability": "nonpayable",
397
1052
  "type": "function"
@@ -399,22 +1054,51 @@ export const Vault_jsonAbi = [
399
1054
  {
400
1055
  "inputs": [
401
1056
  {
402
- "internalType": "contract IERC20",
403
- "name": "tokenContract",
404
- "type": "address"
405
- },
406
- {
407
- "internalType": "address",
408
- "name": "to",
409
- "type": "address"
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"
410
1077
  },
411
1078
  {
412
- "internalType": "uint256",
413
- "name": "amount",
414
- "type": "uint256"
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"
415
1099
  }
416
1100
  ],
417
- "name": "rescueERC20",
1101
+ "name": "transfer",
418
1102
  "outputs": [],
419
1103
  "stateMutability": "nonpayable",
420
1104
  "type": "function"
@@ -422,38 +1106,143 @@ export const Vault_jsonAbi = [
422
1106
  {
423
1107
  "inputs": [
424
1108
  {
425
- "internalType": "address",
426
- "name": "to",
427
- "type": "address"
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"
1129
+ },
1130
+ {
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[]"
428
1151
  }
429
1152
  ],
430
- "name": "rescueETH",
1153
+ "name": "transferBatch",
431
1154
  "outputs": [],
432
1155
  "stateMutability": "nonpayable",
433
1156
  "type": "function"
434
1157
  },
435
1158
  {
436
- "inputs": [],
437
- "name": "rescuer",
438
- "outputs": [
1159
+ "inputs": [
439
1160
  {
440
- "internalType": "address",
441
- "name": "",
442
- "type": "address"
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
+ },
1182
+ {
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"
443
1203
  }
444
1204
  ],
445
- "stateMutability": "view",
1205
+ "name": "transferFallback",
1206
+ "outputs": [],
1207
+ "stateMutability": "nonpayable",
446
1208
  "type": "function"
447
1209
  },
448
1210
  {
449
1211
  "inputs": [
450
1212
  {
451
- "internalType": "address",
452
- "name": "_newRedemption",
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
+ },
1234
+ {
1235
+ "internalType": "contract IKeyManager",
1236
+ "name": "keyManager",
453
1237
  "type": "address"
1238
+ },
1239
+ {
1240
+ "internalType": "bool",
1241
+ "name": "omitChecks",
1242
+ "type": "bool"
454
1243
  }
455
1244
  ],
456
- "name": "setRedemption",
1245
+ "name": "updateKeyManager",
457
1246
  "outputs": [],
458
1247
  "stateMutability": "nonpayable",
459
1248
  "type": "function"
@@ -461,38 +1250,85 @@ export const Vault_jsonAbi = [
461
1250
  {
462
1251
  "inputs": [
463
1252
  {
464
- "internalType": "contract IStrategyStorage",
465
- "name": "_newStrategyStorage",
466
- "type": "address"
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
+ },
1272
+ {
1273
+ "internalType": "uint256",
1274
+ "name": "gasAmount",
1275
+ "type": "uint256"
1276
+ },
1277
+ {
1278
+ "internalType": "bytes",
1279
+ "name": "cfParameters",
1280
+ "type": "bytes"
467
1281
  }
468
1282
  ],
469
- "name": "setStrategyStorage",
1283
+ "name": "xCallNative",
470
1284
  "outputs": [],
471
- "stateMutability": "nonpayable",
1285
+ "stateMutability": "payable",
472
1286
  "type": "function"
473
1287
  },
474
1288
  {
475
- "inputs": [],
476
- "name": "strategyStorage",
477
- "outputs": [
1289
+ "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
+ {
1311
+ "internalType": "uint256",
1312
+ "name": "gasAmount",
1313
+ "type": "uint256"
1314
+ },
478
1315
  {
479
- "internalType": "contract IStrategyStorage",
480
- "name": "",
1316
+ "internalType": "contract IERC20",
1317
+ "name": "srcToken",
481
1318
  "type": "address"
482
- }
483
- ],
484
- "stateMutability": "view",
485
- "type": "function"
486
- },
487
- {
488
- "inputs": [
1319
+ },
489
1320
  {
490
- "internalType": "address",
491
- "name": "newOwner",
492
- "type": "address"
1321
+ "internalType": "uint256",
1322
+ "name": "amount",
1323
+ "type": "uint256"
1324
+ },
1325
+ {
1326
+ "internalType": "bytes",
1327
+ "name": "cfParameters",
1328
+ "type": "bytes"
493
1329
  }
494
1330
  ],
495
- "name": "transferOwnership",
1331
+ "name": "xCallToken",
496
1332
  "outputs": [],
497
1333
  "stateMutability": "nonpayable",
498
1334
  "type": "function"
@@ -500,33 +1336,72 @@ export const Vault_jsonAbi = [
500
1336
  {
501
1337
  "inputs": [
502
1338
  {
503
- "internalType": "address",
504
- "name": "newRescuer",
505
- "type": "address"
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"
1352
+ },
1353
+ {
1354
+ "internalType": "bytes",
1355
+ "name": "cfParameters",
1356
+ "type": "bytes"
506
1357
  }
507
1358
  ],
508
- "name": "updateRescuer",
1359
+ "name": "xSwapNative",
509
1360
  "outputs": [],
510
- "stateMutability": "nonpayable",
1361
+ "stateMutability": "payable",
511
1362
  "type": "function"
512
1363
  },
513
1364
  {
514
1365
  "inputs": [
515
1366
  {
516
- "internalType": "address",
517
- "name": "_asset",
1367
+ "internalType": "uint32",
1368
+ "name": "dstChain",
1369
+ "type": "uint32"
1370
+ },
1371
+ {
1372
+ "internalType": "bytes",
1373
+ "name": "dstAddress",
1374
+ "type": "bytes"
1375
+ },
1376
+ {
1377
+ "internalType": "uint32",
1378
+ "name": "dstToken",
1379
+ "type": "uint32"
1380
+ },
1381
+ {
1382
+ "internalType": "contract IERC20",
1383
+ "name": "srcToken",
518
1384
  "type": "address"
519
1385
  },
520
1386
  {
521
1387
  "internalType": "uint256",
522
- "name": "_amount",
1388
+ "name": "amount",
523
1389
  "type": "uint256"
1390
+ },
1391
+ {
1392
+ "internalType": "bytes",
1393
+ "name": "cfParameters",
1394
+ "type": "bytes"
524
1395
  }
525
1396
  ],
526
- "name": "withdraw",
1397
+ "name": "xSwapToken",
527
1398
  "outputs": [],
528
1399
  "stateMutability": "nonpayable",
529
1400
  "type": "function"
1401
+ },
1402
+ {
1403
+ "stateMutability": "payable",
1404
+ "type": "receive"
530
1405
  }
531
1406
  ] as const satisfies Abi;
532
1407
 
@@ -613,99 +1488,258 @@ export class Vault_json {
613
1488
  }
614
1489
 
615
1490
  /**
616
- * RATE_PROVIDER_REGISTRY
1491
+ * getCommunityGuardDisabled
617
1492
  * view
618
1493
  */
619
- async RATE_PROVIDER_REGISTRY(): Promise<`0x${string}`> {
620
- return this.contract.read.RATE_PROVIDER_REGISTRY() as Promise<`0x${string}`>;
1494
+ async getCommunityGuardDisabled(): Promise<boolean> {
1495
+ return this.contract.read.getCommunityGuardDisabled() as Promise<boolean>;
621
1496
  }
622
1497
 
623
1498
  /**
624
- * getAllowableAssetCount
1499
+ * getCommunityKey
625
1500
  * view
626
1501
  */
627
- async getAllowableAssetCount(): Promise<bigint> {
628
- return this.contract.read.getAllowableAssetCount() as Promise<bigint>;
1502
+ async getCommunityKey(): Promise<`0x${string}`> {
1503
+ return this.contract.read.getCommunityKey() as Promise<`0x${string}`>;
629
1504
  }
630
1505
 
631
1506
  /**
632
- * getAllowableAssets
1507
+ * getGovernor
633
1508
  * view
634
1509
  */
635
- async getAllowableAssets(): Promise<`0x${string}`[]> {
636
- return this.contract.read.getAllowableAssets() as Promise<`0x${string}`[]>;
1510
+ async getGovernor(): Promise<`0x${string}`> {
1511
+ return this.contract.read.getGovernor() as Promise<`0x${string}`>;
637
1512
  }
638
1513
 
639
1514
  /**
640
- * getTAsset
1515
+ * getKeyManager
641
1516
  * view
642
1517
  */
643
- async getTAsset(): Promise<`0x${string}`> {
644
- return this.contract.read.getTAsset() as Promise<`0x${string}`>;
1518
+ async getKeyManager(): Promise<`0x${string}`> {
1519
+ return this.contract.read.getKeyManager() as Promise<`0x${string}`>;
645
1520
  }
646
1521
 
647
1522
  /**
648
- * getUnderlying
1523
+ * getSuspendedState
649
1524
  * view
650
1525
  */
651
- async getUnderlying(): Promise<`0x${string}`> {
652
- return this.contract.read.getUnderlying() as Promise<`0x${string}`>;
1526
+ async getSuspendedState(): Promise<boolean> {
1527
+ return this.contract.read.getSuspendedState() as Promise<boolean>;
653
1528
  }
654
1529
 
655
1530
  /**
656
- * isAllowableAsset
657
- * view
1531
+ * addGasNative
1532
+ * payable
1533
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
658
1534
  */
659
- async isAllowableAsset(_asset: `0x${string}`): Promise<boolean> {
660
- return this.contract.read.isAllowableAsset([_asset] as const) as Promise<boolean>;
1535
+ async addGasNative(swapID: `0x${string}`, options?: {
1536
+ accessList?: import('viem').AccessList;
1537
+ authorizationList?: import('viem').AuthorizationList;
1538
+ chain?: import('viem').Chain | null;
1539
+ dataSuffix?: `0x${string}`;
1540
+ gas?: bigint;
1541
+ gasPrice?: bigint;
1542
+ maxFeePerGas?: bigint;
1543
+ maxPriorityFeePerGas?: bigint;
1544
+ nonce?: number;
1545
+ value?: bigint;
1546
+ }): Promise<`0x${string}`> {
1547
+ if (!this.contract.write) {
1548
+ throw new Error('Wallet client is required for write operations');
1549
+ }
1550
+ return this.contract.write.addGasNative([swapID] as const, options) as Promise<`0x${string}`>;
661
1551
  }
662
1552
 
663
1553
  /**
664
- * owner
665
- * view
1554
+ * addGasToken
1555
+ * nonpayable
1556
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
666
1557
  */
667
- async owner(): Promise<`0x${string}`> {
668
- return this.contract.read.owner() as Promise<`0x${string}`>;
1558
+ async addGasToken(swapID: `0x${string}`, amount: bigint, token: `0x${string}`, options?: {
1559
+ accessList?: import('viem').AccessList;
1560
+ authorizationList?: import('viem').AuthorizationList;
1561
+ chain?: import('viem').Chain | null;
1562
+ dataSuffix?: `0x${string}`;
1563
+ gas?: bigint;
1564
+ gasPrice?: bigint;
1565
+ maxFeePerGas?: bigint;
1566
+ maxPriorityFeePerGas?: bigint;
1567
+ nonce?: number;
1568
+ value?: bigint;
1569
+ }): Promise<`0x${string}`> {
1570
+ if (!this.contract.write) {
1571
+ throw new Error('Wallet client is required for write operations');
1572
+ }
1573
+ return this.contract.write.addGasToken([swapID, amount, token] as const, options) as Promise<`0x${string}`>;
669
1574
  }
670
1575
 
671
1576
  /**
672
- * pendingOwner
673
- * view
1577
+ * allBatch
1578
+ * nonpayable
1579
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
674
1580
  */
675
- async pendingOwner(): Promise<`0x${string}`> {
676
- return this.contract.read.pendingOwner() as Promise<`0x${string}`>;
1581
+ async allBatch(sigData: IShared_SigData, deployFetchParamsArray: IShared_DeployFetchParams[], fetchParamsArray: IShared_FetchParams[], transferParamsArray: IShared_TransferParams[], options?: {
1582
+ accessList?: import('viem').AccessList;
1583
+ authorizationList?: import('viem').AuthorizationList;
1584
+ chain?: import('viem').Chain | null;
1585
+ dataSuffix?: `0x${string}`;
1586
+ gas?: bigint;
1587
+ gasPrice?: bigint;
1588
+ maxFeePerGas?: bigint;
1589
+ maxPriorityFeePerGas?: bigint;
1590
+ nonce?: number;
1591
+ value?: bigint;
1592
+ }): Promise<`0x${string}`> {
1593
+ if (!this.contract.write) {
1594
+ throw new Error('Wallet client is required for write operations');
1595
+ }
1596
+ return this.contract.write.allBatch([sigData, deployFetchParamsArray, fetchParamsArray, transferParamsArray] as const, options) as Promise<`0x${string}`>;
677
1597
  }
678
1598
 
679
1599
  /**
680
- * redemption
681
- * view
1600
+ * allBatchV2
1601
+ * nonpayable
1602
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
682
1603
  */
683
- async redemption(): Promise<`0x${string}`> {
684
- return this.contract.read.redemption() as Promise<`0x${string}`>;
1604
+ async allBatchV2(sigData: IShared_SigData, fetchParamsArray: IShared_FetchParams[], transferParamsArray: IShared_TransferParams[], options?: {
1605
+ accessList?: import('viem').AccessList;
1606
+ authorizationList?: import('viem').AuthorizationList;
1607
+ chain?: import('viem').Chain | null;
1608
+ dataSuffix?: `0x${string}`;
1609
+ gas?: bigint;
1610
+ gasPrice?: bigint;
1611
+ maxFeePerGas?: bigint;
1612
+ maxPriorityFeePerGas?: bigint;
1613
+ nonce?: number;
1614
+ value?: bigint;
1615
+ }): Promise<`0x${string}`> {
1616
+ if (!this.contract.write) {
1617
+ throw new Error('Wallet client is required for write operations');
1618
+ }
1619
+ return this.contract.write.allBatchV2([sigData, fetchParamsArray, transferParamsArray] as const, options) as Promise<`0x${string}`>;
685
1620
  }
686
1621
 
687
1622
  /**
688
- * rescuer
689
- * view
1623
+ * deployAndFetchBatch
1624
+ * nonpayable
1625
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
690
1626
  */
691
- async rescuer(): Promise<`0x${string}`> {
692
- return this.contract.read.rescuer() as Promise<`0x${string}`>;
1627
+ async deployAndFetchBatch(sigData: IShared_SigData, deployFetchParamsArray: IShared_DeployFetchParams[], options?: {
1628
+ accessList?: import('viem').AccessList;
1629
+ authorizationList?: import('viem').AuthorizationList;
1630
+ chain?: import('viem').Chain | null;
1631
+ dataSuffix?: `0x${string}`;
1632
+ gas?: bigint;
1633
+ gasPrice?: bigint;
1634
+ maxFeePerGas?: bigint;
1635
+ maxPriorityFeePerGas?: bigint;
1636
+ nonce?: number;
1637
+ value?: bigint;
1638
+ }): Promise<`0x${string}`> {
1639
+ if (!this.contract.write) {
1640
+ throw new Error('Wallet client is required for write operations');
1641
+ }
1642
+ return this.contract.write.deployAndFetchBatch([sigData, deployFetchParamsArray] as const, options) as Promise<`0x${string}`>;
693
1643
  }
694
1644
 
695
1645
  /**
696
- * strategyStorage
697
- * view
1646
+ * disableCommunityGuard
1647
+ * nonpayable
1648
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
698
1649
  */
699
- async strategyStorage(): Promise<`0x${string}`> {
700
- return this.contract.read.strategyStorage() as Promise<`0x${string}`>;
1650
+ async disableCommunityGuard(options?: {
1651
+ accessList?: import('viem').AccessList;
1652
+ authorizationList?: import('viem').AuthorizationList;
1653
+ chain?: import('viem').Chain | null;
1654
+ dataSuffix?: `0x${string}`;
1655
+ gas?: bigint;
1656
+ gasPrice?: bigint;
1657
+ maxFeePerGas?: bigint;
1658
+ maxPriorityFeePerGas?: bigint;
1659
+ nonce?: number;
1660
+ value?: bigint;
1661
+ }): Promise<`0x${string}`> {
1662
+ if (!this.contract.write) {
1663
+ throw new Error('Wallet client is required for write operations');
1664
+ }
1665
+ return this.contract.write.disableCommunityGuard(options) as Promise<`0x${string}`>;
1666
+ }
1667
+
1668
+ /**
1669
+ * enableCommunityGuard
1670
+ * nonpayable
1671
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1672
+ */
1673
+ async enableCommunityGuard(options?: {
1674
+ accessList?: import('viem').AccessList;
1675
+ authorizationList?: import('viem').AuthorizationList;
1676
+ chain?: import('viem').Chain | null;
1677
+ dataSuffix?: `0x${string}`;
1678
+ gas?: bigint;
1679
+ gasPrice?: bigint;
1680
+ maxFeePerGas?: bigint;
1681
+ maxPriorityFeePerGas?: bigint;
1682
+ nonce?: number;
1683
+ value?: bigint;
1684
+ }): Promise<`0x${string}`> {
1685
+ if (!this.contract.write) {
1686
+ throw new Error('Wallet client is required for write operations');
1687
+ }
1688
+ return this.contract.write.enableCommunityGuard(options) as Promise<`0x${string}`>;
1689
+ }
1690
+
1691
+ /**
1692
+ * executeActions
1693
+ * nonpayable
1694
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1695
+ */
1696
+ async executeActions(sigData: IShared_SigData, transferParams: IShared_TransferParams, calls: IMulticall_Call[], gasMulticall: bigint, options?: {
1697
+ accessList?: import('viem').AccessList;
1698
+ authorizationList?: import('viem').AuthorizationList;
1699
+ chain?: import('viem').Chain | null;
1700
+ dataSuffix?: `0x${string}`;
1701
+ gas?: bigint;
1702
+ gasPrice?: bigint;
1703
+ maxFeePerGas?: bigint;
1704
+ maxPriorityFeePerGas?: bigint;
1705
+ nonce?: number;
1706
+ value?: bigint;
1707
+ }): Promise<`0x${string}`> {
1708
+ if (!this.contract.write) {
1709
+ throw new Error('Wallet client is required for write operations');
1710
+ }
1711
+ return this.contract.write.executeActions([sigData, transferParams, calls, gasMulticall] as const, options) as Promise<`0x${string}`>;
1712
+ }
1713
+
1714
+ /**
1715
+ * executexCall
1716
+ * nonpayable
1717
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1718
+ */
1719
+ async executexCall(sigData: IShared_SigData, recipient: `0x${string}`, srcChain: bigint, srcAddress: `0x${string}`, message: `0x${string}`, options?: {
1720
+ accessList?: import('viem').AccessList;
1721
+ authorizationList?: import('viem').AuthorizationList;
1722
+ chain?: import('viem').Chain | null;
1723
+ dataSuffix?: `0x${string}`;
1724
+ gas?: bigint;
1725
+ gasPrice?: bigint;
1726
+ maxFeePerGas?: bigint;
1727
+ maxPriorityFeePerGas?: bigint;
1728
+ nonce?: number;
1729
+ value?: bigint;
1730
+ }): Promise<`0x${string}`> {
1731
+ if (!this.contract.write) {
1732
+ throw new Error('Wallet client is required for write operations');
1733
+ }
1734
+ return this.contract.write.executexCall([sigData, recipient, srcChain, srcAddress, message] as const, options) as Promise<`0x${string}`>;
701
1735
  }
702
1736
 
703
1737
  /**
704
- * acceptOwnership
1738
+ * executexSwapAndCall
705
1739
  * nonpayable
706
1740
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
707
1741
  */
708
- async acceptOwnership(options?: {
1742
+ async executexSwapAndCall(sigData: IShared_SigData, transferParams: IShared_TransferParams, srcChain: bigint, srcAddress: `0x${string}`, message: `0x${string}`, options?: {
709
1743
  accessList?: import('viem').AccessList;
710
1744
  authorizationList?: import('viem').AuthorizationList;
711
1745
  chain?: import('viem').Chain | null;
@@ -720,15 +1754,15 @@ export class Vault_json {
720
1754
  if (!this.contract.write) {
721
1755
  throw new Error('Wallet client is required for write operations');
722
1756
  }
723
- return this.contract.write.acceptOwnership(options) as Promise<`0x${string}`>;
1757
+ return this.contract.write.executexSwapAndCall([sigData, transferParams, srcChain, srcAddress, message] as const, options) as Promise<`0x${string}`>;
724
1758
  }
725
1759
 
726
1760
  /**
727
- * addAllowableAsset
1761
+ * fetchBatch
728
1762
  * nonpayable
729
1763
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
730
1764
  */
731
- async addAllowableAsset(_asset: `0x${string}`, options?: {
1765
+ async fetchBatch(sigData: IShared_SigData, fetchParamsArray: IShared_FetchParams[], options?: {
732
1766
  accessList?: import('viem').AccessList;
733
1767
  authorizationList?: import('viem').AuthorizationList;
734
1768
  chain?: import('viem').Chain | null;
@@ -743,15 +1777,15 @@ export class Vault_json {
743
1777
  if (!this.contract.write) {
744
1778
  throw new Error('Wallet client is required for write operations');
745
1779
  }
746
- return this.contract.write.addAllowableAsset([_asset] as const, options) as Promise<`0x${string}`>;
1780
+ return this.contract.write.fetchBatch([sigData, fetchParamsArray] as const, options) as Promise<`0x${string}`>;
747
1781
  }
748
1782
 
749
1783
  /**
750
- * removeAllowableAsset
1784
+ * govWithdraw
751
1785
  * nonpayable
752
1786
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
753
1787
  */
754
- async removeAllowableAsset(_asset: `0x${string}`, options?: {
1788
+ async govWithdraw(tokens: `0x${string}`[], options?: {
755
1789
  accessList?: import('viem').AccessList;
756
1790
  authorizationList?: import('viem').AuthorizationList;
757
1791
  chain?: import('viem').Chain | null;
@@ -766,15 +1800,15 @@ export class Vault_json {
766
1800
  if (!this.contract.write) {
767
1801
  throw new Error('Wallet client is required for write operations');
768
1802
  }
769
- return this.contract.write.removeAllowableAsset([_asset] as const, options) as Promise<`0x${string}`>;
1803
+ return this.contract.write.govWithdraw([tokens] as const, options) as Promise<`0x${string}`>;
770
1804
  }
771
1805
 
772
1806
  /**
773
- * renounceOwnership
1807
+ * resume
774
1808
  * nonpayable
775
1809
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
776
1810
  */
777
- async renounceOwnership(options?: {
1811
+ async resume(options?: {
778
1812
  accessList?: import('viem').AccessList;
779
1813
  authorizationList?: import('viem').AuthorizationList;
780
1814
  chain?: import('viem').Chain | null;
@@ -789,15 +1823,15 @@ export class Vault_json {
789
1823
  if (!this.contract.write) {
790
1824
  throw new Error('Wallet client is required for write operations');
791
1825
  }
792
- return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
1826
+ return this.contract.write.resume(options) as Promise<`0x${string}`>;
793
1827
  }
794
1828
 
795
1829
  /**
796
- * rescueERC20
1830
+ * suspend
797
1831
  * nonpayable
798
1832
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
799
1833
  */
800
- async rescueERC20(tokenContract: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
1834
+ async suspend(options?: {
801
1835
  accessList?: import('viem').AccessList;
802
1836
  authorizationList?: import('viem').AuthorizationList;
803
1837
  chain?: import('viem').Chain | null;
@@ -812,15 +1846,15 @@ export class Vault_json {
812
1846
  if (!this.contract.write) {
813
1847
  throw new Error('Wallet client is required for write operations');
814
1848
  }
815
- return this.contract.write.rescueERC20([tokenContract, to, amount] as const, options) as Promise<`0x${string}`>;
1849
+ return this.contract.write.suspend(options) as Promise<`0x${string}`>;
816
1850
  }
817
1851
 
818
1852
  /**
819
- * rescueETH
1853
+ * transfer
820
1854
  * nonpayable
821
1855
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
822
1856
  */
823
- async rescueETH(to: `0x${string}`, options?: {
1857
+ async transfer(sigData: IShared_SigData, transferParams: IShared_TransferParams, options?: {
824
1858
  accessList?: import('viem').AccessList;
825
1859
  authorizationList?: import('viem').AuthorizationList;
826
1860
  chain?: import('viem').Chain | null;
@@ -835,15 +1869,15 @@ export class Vault_json {
835
1869
  if (!this.contract.write) {
836
1870
  throw new Error('Wallet client is required for write operations');
837
1871
  }
838
- return this.contract.write.rescueETH([to] as const, options) as Promise<`0x${string}`>;
1872
+ return this.contract.write.transfer([sigData, transferParams] as const, options) as Promise<`0x${string}`>;
839
1873
  }
840
1874
 
841
1875
  /**
842
- * setRedemption
1876
+ * transferBatch
843
1877
  * nonpayable
844
1878
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
845
1879
  */
846
- async setRedemption(_newRedemption: `0x${string}`, options?: {
1880
+ async transferBatch(sigData: IShared_SigData, transferParamsArray: IShared_TransferParams[], options?: {
847
1881
  accessList?: import('viem').AccessList;
848
1882
  authorizationList?: import('viem').AuthorizationList;
849
1883
  chain?: import('viem').Chain | null;
@@ -858,15 +1892,15 @@ export class Vault_json {
858
1892
  if (!this.contract.write) {
859
1893
  throw new Error('Wallet client is required for write operations');
860
1894
  }
861
- return this.contract.write.setRedemption([_newRedemption] as const, options) as Promise<`0x${string}`>;
1895
+ return this.contract.write.transferBatch([sigData, transferParamsArray] as const, options) as Promise<`0x${string}`>;
862
1896
  }
863
1897
 
864
1898
  /**
865
- * setStrategyStorage
1899
+ * transferFallback
866
1900
  * nonpayable
867
1901
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
868
1902
  */
869
- async setStrategyStorage(_newStrategyStorage: `0x${string}`, options?: {
1903
+ async transferFallback(sigData: IShared_SigData, transferParams: IShared_TransferParams, options?: {
870
1904
  accessList?: import('viem').AccessList;
871
1905
  authorizationList?: import('viem').AuthorizationList;
872
1906
  chain?: import('viem').Chain | null;
@@ -881,15 +1915,38 @@ export class Vault_json {
881
1915
  if (!this.contract.write) {
882
1916
  throw new Error('Wallet client is required for write operations');
883
1917
  }
884
- return this.contract.write.setStrategyStorage([_newStrategyStorage] as const, options) as Promise<`0x${string}`>;
1918
+ return this.contract.write.transferFallback([sigData, transferParams] as const, options) as Promise<`0x${string}`>;
885
1919
  }
886
1920
 
887
1921
  /**
888
- * transferOwnership
1922
+ * updateKeyManager
889
1923
  * nonpayable
890
1924
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
891
1925
  */
892
- async transferOwnership(newOwner: `0x${string}`, options?: {
1926
+ async updateKeyManager(sigData: IShared_SigData, keyManager: `0x${string}`, omitChecks: boolean, options?: {
1927
+ accessList?: import('viem').AccessList;
1928
+ authorizationList?: import('viem').AuthorizationList;
1929
+ chain?: import('viem').Chain | null;
1930
+ dataSuffix?: `0x${string}`;
1931
+ gas?: bigint;
1932
+ gasPrice?: bigint;
1933
+ maxFeePerGas?: bigint;
1934
+ maxPriorityFeePerGas?: bigint;
1935
+ nonce?: number;
1936
+ value?: bigint;
1937
+ }): Promise<`0x${string}`> {
1938
+ if (!this.contract.write) {
1939
+ throw new Error('Wallet client is required for write operations');
1940
+ }
1941
+ return this.contract.write.updateKeyManager([sigData, keyManager, omitChecks] as const, options) as Promise<`0x${string}`>;
1942
+ }
1943
+
1944
+ /**
1945
+ * xCallNative
1946
+ * payable
1947
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1948
+ */
1949
+ async xCallNative(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, message: `0x${string}`, gasAmount: bigint, cfParameters: `0x${string}`, options?: {
893
1950
  accessList?: import('viem').AccessList;
894
1951
  authorizationList?: import('viem').AuthorizationList;
895
1952
  chain?: import('viem').Chain | null;
@@ -904,15 +1961,38 @@ export class Vault_json {
904
1961
  if (!this.contract.write) {
905
1962
  throw new Error('Wallet client is required for write operations');
906
1963
  }
907
- return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
1964
+ return this.contract.write.xCallNative([dstChain, dstAddress, dstToken, message, gasAmount, cfParameters] as const, options) as Promise<`0x${string}`>;
908
1965
  }
909
1966
 
910
1967
  /**
911
- * updateRescuer
1968
+ * xCallToken
912
1969
  * nonpayable
913
1970
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
914
1971
  */
915
- async updateRescuer(newRescuer: `0x${string}`, options?: {
1972
+ async xCallToken(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, message: `0x${string}`, gasAmount: bigint, srcToken: `0x${string}`, amount: bigint, cfParameters: `0x${string}`, options?: {
1973
+ accessList?: import('viem').AccessList;
1974
+ authorizationList?: import('viem').AuthorizationList;
1975
+ chain?: import('viem').Chain | null;
1976
+ dataSuffix?: `0x${string}`;
1977
+ gas?: bigint;
1978
+ gasPrice?: bigint;
1979
+ maxFeePerGas?: bigint;
1980
+ maxPriorityFeePerGas?: bigint;
1981
+ nonce?: number;
1982
+ value?: bigint;
1983
+ }): Promise<`0x${string}`> {
1984
+ if (!this.contract.write) {
1985
+ throw new Error('Wallet client is required for write operations');
1986
+ }
1987
+ return this.contract.write.xCallToken([dstChain, dstAddress, dstToken, message, gasAmount, srcToken, amount, cfParameters] as const, options) as Promise<`0x${string}`>;
1988
+ }
1989
+
1990
+ /**
1991
+ * xSwapNative
1992
+ * payable
1993
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1994
+ */
1995
+ async xSwapNative(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, cfParameters: `0x${string}`, options?: {
916
1996
  accessList?: import('viem').AccessList;
917
1997
  authorizationList?: import('viem').AuthorizationList;
918
1998
  chain?: import('viem').Chain | null;
@@ -927,15 +2007,15 @@ export class Vault_json {
927
2007
  if (!this.contract.write) {
928
2008
  throw new Error('Wallet client is required for write operations');
929
2009
  }
930
- return this.contract.write.updateRescuer([newRescuer] as const, options) as Promise<`0x${string}`>;
2010
+ return this.contract.write.xSwapNative([dstChain, dstAddress, dstToken, cfParameters] as const, options) as Promise<`0x${string}`>;
931
2011
  }
932
2012
 
933
2013
  /**
934
- * withdraw
2014
+ * xSwapToken
935
2015
  * nonpayable
936
2016
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
937
2017
  */
938
- async withdraw(_asset: `0x${string}`, _amount: bigint, options?: {
2018
+ async xSwapToken(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, srcToken: `0x${string}`, amount: bigint, cfParameters: `0x${string}`, options?: {
939
2019
  accessList?: import('viem').AccessList;
940
2020
  authorizationList?: import('viem').AuthorizationList;
941
2021
  chain?: import('viem').Chain | null;
@@ -950,7 +2030,7 @@ export class Vault_json {
950
2030
  if (!this.contract.write) {
951
2031
  throw new Error('Wallet client is required for write operations');
952
2032
  }
953
- return this.contract.write.withdraw([_asset, _amount] as const, options) as Promise<`0x${string}`>;
2033
+ return this.contract.write.xSwapToken([dstChain, dstAddress, dstToken, srcToken, amount, cfParameters] as const, options) as Promise<`0x${string}`>;
954
2034
  }
955
2035
 
956
2036
 
@@ -970,11 +2050,30 @@ export class Vault_json {
970
2050
  }
971
2051
  return {
972
2052
  /**
973
- * Simulate acceptOwnership
2053
+ * Simulate addGasNative
2054
+ * Returns gas estimate and result without sending transaction
2055
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2056
+ */
2057
+ async addGasNative(swapID: `0x${string}`, options?: {
2058
+ accessList?: import('viem').AccessList;
2059
+ authorizationList?: import('viem').AuthorizationList;
2060
+ chain?: import('viem').Chain | null;
2061
+ dataSuffix?: `0x${string}`;
2062
+ gas?: bigint;
2063
+ gasPrice?: bigint;
2064
+ maxFeePerGas?: bigint;
2065
+ maxPriorityFeePerGas?: bigint;
2066
+ nonce?: number;
2067
+ value?: bigint;
2068
+ }): Promise<void> {
2069
+ return contract.simulate.addGasNative([swapID] as const, options) as Promise<void>;
2070
+ },
2071
+ /**
2072
+ * Simulate addGasToken
974
2073
  * Returns gas estimate and result without sending transaction
975
2074
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
976
2075
  */
977
- async acceptOwnership(options?: {
2076
+ async addGasToken(swapID: `0x${string}`, amount: bigint, token: `0x${string}`, options?: {
978
2077
  accessList?: import('viem').AccessList;
979
2078
  authorizationList?: import('viem').AuthorizationList;
980
2079
  chain?: import('viem').Chain | null;
@@ -986,14 +2085,14 @@ export class Vault_json {
986
2085
  nonce?: number;
987
2086
  value?: bigint;
988
2087
  }): Promise<void> {
989
- return contract.simulate.acceptOwnership(options) as Promise<void>;
2088
+ return contract.simulate.addGasToken([swapID, amount, token] as const, options) as Promise<void>;
990
2089
  },
991
2090
  /**
992
- * Simulate addAllowableAsset
2091
+ * Simulate allBatch
993
2092
  * Returns gas estimate and result without sending transaction
994
2093
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
995
2094
  */
996
- async addAllowableAsset(_asset: `0x${string}`, options?: {
2095
+ async allBatch(sigData: IShared_SigData, deployFetchParamsArray: IShared_DeployFetchParams[], fetchParamsArray: IShared_FetchParams[], transferParamsArray: IShared_TransferParams[], options?: {
997
2096
  accessList?: import('viem').AccessList;
998
2097
  authorizationList?: import('viem').AuthorizationList;
999
2098
  chain?: import('viem').Chain | null;
@@ -1005,14 +2104,14 @@ export class Vault_json {
1005
2104
  nonce?: number;
1006
2105
  value?: bigint;
1007
2106
  }): Promise<void> {
1008
- return contract.simulate.addAllowableAsset([_asset] as const, options) as Promise<void>;
2107
+ return contract.simulate.allBatch([sigData, deployFetchParamsArray, fetchParamsArray, transferParamsArray] as const, options) as Promise<void>;
1009
2108
  },
1010
2109
  /**
1011
- * Simulate removeAllowableAsset
2110
+ * Simulate allBatchV2
1012
2111
  * Returns gas estimate and result without sending transaction
1013
2112
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1014
2113
  */
1015
- async removeAllowableAsset(_asset: `0x${string}`, options?: {
2114
+ async allBatchV2(sigData: IShared_SigData, fetchParamsArray: IShared_FetchParams[], transferParamsArray: IShared_TransferParams[], options?: {
1016
2115
  accessList?: import('viem').AccessList;
1017
2116
  authorizationList?: import('viem').AuthorizationList;
1018
2117
  chain?: import('viem').Chain | null;
@@ -1024,14 +2123,14 @@ export class Vault_json {
1024
2123
  nonce?: number;
1025
2124
  value?: bigint;
1026
2125
  }): Promise<void> {
1027
- return contract.simulate.removeAllowableAsset([_asset] as const, options) as Promise<void>;
2126
+ return contract.simulate.allBatchV2([sigData, fetchParamsArray, transferParamsArray] as const, options) as Promise<void>;
1028
2127
  },
1029
2128
  /**
1030
- * Simulate renounceOwnership
2129
+ * Simulate deployAndFetchBatch
1031
2130
  * Returns gas estimate and result without sending transaction
1032
2131
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1033
2132
  */
1034
- async renounceOwnership(options?: {
2133
+ async deployAndFetchBatch(sigData: IShared_SigData, deployFetchParamsArray: IShared_DeployFetchParams[], options?: {
1035
2134
  accessList?: import('viem').AccessList;
1036
2135
  authorizationList?: import('viem').AuthorizationList;
1037
2136
  chain?: import('viem').Chain | null;
@@ -1043,14 +2142,14 @@ export class Vault_json {
1043
2142
  nonce?: number;
1044
2143
  value?: bigint;
1045
2144
  }): Promise<void> {
1046
- return contract.simulate.renounceOwnership(options) as Promise<void>;
2145
+ return contract.simulate.deployAndFetchBatch([sigData, deployFetchParamsArray] as const, options) as Promise<void>;
1047
2146
  },
1048
2147
  /**
1049
- * Simulate rescueERC20
2148
+ * Simulate disableCommunityGuard
1050
2149
  * Returns gas estimate and result without sending transaction
1051
2150
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1052
2151
  */
1053
- async rescueERC20(tokenContract: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
2152
+ async disableCommunityGuard(options?: {
1054
2153
  accessList?: import('viem').AccessList;
1055
2154
  authorizationList?: import('viem').AuthorizationList;
1056
2155
  chain?: import('viem').Chain | null;
@@ -1062,14 +2161,14 @@ export class Vault_json {
1062
2161
  nonce?: number;
1063
2162
  value?: bigint;
1064
2163
  }): Promise<void> {
1065
- return contract.simulate.rescueERC20([tokenContract, to, amount] as const, options) as Promise<void>;
2164
+ return contract.simulate.disableCommunityGuard(options) as Promise<void>;
1066
2165
  },
1067
2166
  /**
1068
- * Simulate rescueETH
2167
+ * Simulate enableCommunityGuard
1069
2168
  * Returns gas estimate and result without sending transaction
1070
2169
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1071
2170
  */
1072
- async rescueETH(to: `0x${string}`, options?: {
2171
+ async enableCommunityGuard(options?: {
1073
2172
  accessList?: import('viem').AccessList;
1074
2173
  authorizationList?: import('viem').AuthorizationList;
1075
2174
  chain?: import('viem').Chain | null;
@@ -1081,14 +2180,14 @@ export class Vault_json {
1081
2180
  nonce?: number;
1082
2181
  value?: bigint;
1083
2182
  }): Promise<void> {
1084
- return contract.simulate.rescueETH([to] as const, options) as Promise<void>;
2183
+ return contract.simulate.enableCommunityGuard(options) as Promise<void>;
1085
2184
  },
1086
2185
  /**
1087
- * Simulate setRedemption
2186
+ * Simulate executeActions
1088
2187
  * Returns gas estimate and result without sending transaction
1089
2188
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1090
2189
  */
1091
- async setRedemption(_newRedemption: `0x${string}`, options?: {
2190
+ async executeActions(sigData: IShared_SigData, transferParams: IShared_TransferParams, calls: IMulticall_Call[], gasMulticall: bigint, options?: {
1092
2191
  accessList?: import('viem').AccessList;
1093
2192
  authorizationList?: import('viem').AuthorizationList;
1094
2193
  chain?: import('viem').Chain | null;
@@ -1100,14 +2199,14 @@ export class Vault_json {
1100
2199
  nonce?: number;
1101
2200
  value?: bigint;
1102
2201
  }): Promise<void> {
1103
- return contract.simulate.setRedemption([_newRedemption] as const, options) as Promise<void>;
2202
+ return contract.simulate.executeActions([sigData, transferParams, calls, gasMulticall] as const, options) as Promise<void>;
1104
2203
  },
1105
2204
  /**
1106
- * Simulate setStrategyStorage
2205
+ * Simulate executexCall
1107
2206
  * Returns gas estimate and result without sending transaction
1108
2207
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1109
2208
  */
1110
- async setStrategyStorage(_newStrategyStorage: `0x${string}`, options?: {
2209
+ async executexCall(sigData: IShared_SigData, recipient: `0x${string}`, srcChain: bigint, srcAddress: `0x${string}`, message: `0x${string}`, options?: {
1111
2210
  accessList?: import('viem').AccessList;
1112
2211
  authorizationList?: import('viem').AuthorizationList;
1113
2212
  chain?: import('viem').Chain | null;
@@ -1119,14 +2218,14 @@ export class Vault_json {
1119
2218
  nonce?: number;
1120
2219
  value?: bigint;
1121
2220
  }): Promise<void> {
1122
- return contract.simulate.setStrategyStorage([_newStrategyStorage] as const, options) as Promise<void>;
2221
+ return contract.simulate.executexCall([sigData, recipient, srcChain, srcAddress, message] as const, options) as Promise<void>;
1123
2222
  },
1124
2223
  /**
1125
- * Simulate transferOwnership
2224
+ * Simulate executexSwapAndCall
1126
2225
  * Returns gas estimate and result without sending transaction
1127
2226
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1128
2227
  */
1129
- async transferOwnership(newOwner: `0x${string}`, options?: {
2228
+ async executexSwapAndCall(sigData: IShared_SigData, transferParams: IShared_TransferParams, srcChain: bigint, srcAddress: `0x${string}`, message: `0x${string}`, options?: {
1130
2229
  accessList?: import('viem').AccessList;
1131
2230
  authorizationList?: import('viem').AuthorizationList;
1132
2231
  chain?: import('viem').Chain | null;
@@ -1138,14 +2237,14 @@ export class Vault_json {
1138
2237
  nonce?: number;
1139
2238
  value?: bigint;
1140
2239
  }): Promise<void> {
1141
- return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
2240
+ return contract.simulate.executexSwapAndCall([sigData, transferParams, srcChain, srcAddress, message] as const, options) as Promise<void>;
1142
2241
  },
1143
2242
  /**
1144
- * Simulate updateRescuer
2243
+ * Simulate fetchBatch
1145
2244
  * Returns gas estimate and result without sending transaction
1146
2245
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1147
2246
  */
1148
- async updateRescuer(newRescuer: `0x${string}`, options?: {
2247
+ async fetchBatch(sigData: IShared_SigData, fetchParamsArray: IShared_FetchParams[], options?: {
1149
2248
  accessList?: import('viem').AccessList;
1150
2249
  authorizationList?: import('viem').AuthorizationList;
1151
2250
  chain?: import('viem').Chain | null;
@@ -1157,14 +2256,14 @@ export class Vault_json {
1157
2256
  nonce?: number;
1158
2257
  value?: bigint;
1159
2258
  }): Promise<void> {
1160
- return contract.simulate.updateRescuer([newRescuer] as const, options) as Promise<void>;
2259
+ return contract.simulate.fetchBatch([sigData, fetchParamsArray] as const, options) as Promise<void>;
1161
2260
  },
1162
2261
  /**
1163
- * Simulate withdraw
2262
+ * Simulate govWithdraw
1164
2263
  * Returns gas estimate and result without sending transaction
1165
2264
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1166
2265
  */
1167
- async withdraw(_asset: `0x${string}`, _amount: bigint, options?: {
2266
+ async govWithdraw(tokens: `0x${string}`[], options?: {
1168
2267
  accessList?: import('viem').AccessList;
1169
2268
  authorizationList?: import('viem').AuthorizationList;
1170
2269
  chain?: import('viem').Chain | null;
@@ -1176,7 +2275,197 @@ export class Vault_json {
1176
2275
  nonce?: number;
1177
2276
  value?: bigint;
1178
2277
  }): Promise<void> {
1179
- return contract.simulate.withdraw([_asset, _amount] as const, options) as Promise<void>;
2278
+ return contract.simulate.govWithdraw([tokens] as const, options) as Promise<void>;
2279
+ },
2280
+ /**
2281
+ * Simulate resume
2282
+ * Returns gas estimate and result without sending transaction
2283
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2284
+ */
2285
+ async resume(options?: {
2286
+ accessList?: import('viem').AccessList;
2287
+ authorizationList?: import('viem').AuthorizationList;
2288
+ chain?: import('viem').Chain | null;
2289
+ dataSuffix?: `0x${string}`;
2290
+ gas?: bigint;
2291
+ gasPrice?: bigint;
2292
+ maxFeePerGas?: bigint;
2293
+ maxPriorityFeePerGas?: bigint;
2294
+ nonce?: number;
2295
+ value?: bigint;
2296
+ }): Promise<void> {
2297
+ return contract.simulate.resume(options) as Promise<void>;
2298
+ },
2299
+ /**
2300
+ * Simulate suspend
2301
+ * Returns gas estimate and result without sending transaction
2302
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2303
+ */
2304
+ async suspend(options?: {
2305
+ accessList?: import('viem').AccessList;
2306
+ authorizationList?: import('viem').AuthorizationList;
2307
+ chain?: import('viem').Chain | null;
2308
+ dataSuffix?: `0x${string}`;
2309
+ gas?: bigint;
2310
+ gasPrice?: bigint;
2311
+ maxFeePerGas?: bigint;
2312
+ maxPriorityFeePerGas?: bigint;
2313
+ nonce?: number;
2314
+ value?: bigint;
2315
+ }): Promise<void> {
2316
+ return contract.simulate.suspend(options) as Promise<void>;
2317
+ },
2318
+ /**
2319
+ * Simulate transfer
2320
+ * Returns gas estimate and result without sending transaction
2321
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2322
+ */
2323
+ async transfer(sigData: IShared_SigData, transferParams: IShared_TransferParams, options?: {
2324
+ accessList?: import('viem').AccessList;
2325
+ authorizationList?: import('viem').AuthorizationList;
2326
+ chain?: import('viem').Chain | null;
2327
+ dataSuffix?: `0x${string}`;
2328
+ gas?: bigint;
2329
+ gasPrice?: bigint;
2330
+ maxFeePerGas?: bigint;
2331
+ maxPriorityFeePerGas?: bigint;
2332
+ nonce?: number;
2333
+ value?: bigint;
2334
+ }): Promise<void> {
2335
+ return contract.simulate.transfer([sigData, transferParams] as const, options) as Promise<void>;
2336
+ },
2337
+ /**
2338
+ * Simulate transferBatch
2339
+ * Returns gas estimate and result without sending transaction
2340
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2341
+ */
2342
+ async transferBatch(sigData: IShared_SigData, transferParamsArray: IShared_TransferParams[], options?: {
2343
+ accessList?: import('viem').AccessList;
2344
+ authorizationList?: import('viem').AuthorizationList;
2345
+ chain?: import('viem').Chain | null;
2346
+ dataSuffix?: `0x${string}`;
2347
+ gas?: bigint;
2348
+ gasPrice?: bigint;
2349
+ maxFeePerGas?: bigint;
2350
+ maxPriorityFeePerGas?: bigint;
2351
+ nonce?: number;
2352
+ value?: bigint;
2353
+ }): Promise<void> {
2354
+ return contract.simulate.transferBatch([sigData, transferParamsArray] as const, options) as Promise<void>;
2355
+ },
2356
+ /**
2357
+ * Simulate transferFallback
2358
+ * Returns gas estimate and result without sending transaction
2359
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2360
+ */
2361
+ async transferFallback(sigData: IShared_SigData, transferParams: IShared_TransferParams, options?: {
2362
+ accessList?: import('viem').AccessList;
2363
+ authorizationList?: import('viem').AuthorizationList;
2364
+ chain?: import('viem').Chain | null;
2365
+ dataSuffix?: `0x${string}`;
2366
+ gas?: bigint;
2367
+ gasPrice?: bigint;
2368
+ maxFeePerGas?: bigint;
2369
+ maxPriorityFeePerGas?: bigint;
2370
+ nonce?: number;
2371
+ value?: bigint;
2372
+ }): Promise<void> {
2373
+ return contract.simulate.transferFallback([sigData, transferParams] as const, options) as Promise<void>;
2374
+ },
2375
+ /**
2376
+ * Simulate updateKeyManager
2377
+ * Returns gas estimate and result without sending transaction
2378
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2379
+ */
2380
+ async updateKeyManager(sigData: IShared_SigData, keyManager: `0x${string}`, omitChecks: boolean, options?: {
2381
+ accessList?: import('viem').AccessList;
2382
+ authorizationList?: import('viem').AuthorizationList;
2383
+ chain?: import('viem').Chain | null;
2384
+ dataSuffix?: `0x${string}`;
2385
+ gas?: bigint;
2386
+ gasPrice?: bigint;
2387
+ maxFeePerGas?: bigint;
2388
+ maxPriorityFeePerGas?: bigint;
2389
+ nonce?: number;
2390
+ value?: bigint;
2391
+ }): Promise<void> {
2392
+ return contract.simulate.updateKeyManager([sigData, keyManager, omitChecks] as const, options) as Promise<void>;
2393
+ },
2394
+ /**
2395
+ * Simulate xCallNative
2396
+ * Returns gas estimate and result without sending transaction
2397
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2398
+ */
2399
+ async xCallNative(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, message: `0x${string}`, gasAmount: bigint, cfParameters: `0x${string}`, options?: {
2400
+ accessList?: import('viem').AccessList;
2401
+ authorizationList?: import('viem').AuthorizationList;
2402
+ chain?: import('viem').Chain | null;
2403
+ dataSuffix?: `0x${string}`;
2404
+ gas?: bigint;
2405
+ gasPrice?: bigint;
2406
+ maxFeePerGas?: bigint;
2407
+ maxPriorityFeePerGas?: bigint;
2408
+ nonce?: number;
2409
+ value?: bigint;
2410
+ }): Promise<void> {
2411
+ return contract.simulate.xCallNative([dstChain, dstAddress, dstToken, message, gasAmount, cfParameters] as const, options) as Promise<void>;
2412
+ },
2413
+ /**
2414
+ * Simulate xCallToken
2415
+ * Returns gas estimate and result without sending transaction
2416
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2417
+ */
2418
+ async xCallToken(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, message: `0x${string}`, gasAmount: bigint, srcToken: `0x${string}`, amount: bigint, cfParameters: `0x${string}`, options?: {
2419
+ accessList?: import('viem').AccessList;
2420
+ authorizationList?: import('viem').AuthorizationList;
2421
+ chain?: import('viem').Chain | null;
2422
+ dataSuffix?: `0x${string}`;
2423
+ gas?: bigint;
2424
+ gasPrice?: bigint;
2425
+ maxFeePerGas?: bigint;
2426
+ maxPriorityFeePerGas?: bigint;
2427
+ nonce?: number;
2428
+ value?: bigint;
2429
+ }): Promise<void> {
2430
+ return contract.simulate.xCallToken([dstChain, dstAddress, dstToken, message, gasAmount, srcToken, amount, cfParameters] as const, options) as Promise<void>;
2431
+ },
2432
+ /**
2433
+ * Simulate xSwapNative
2434
+ * Returns gas estimate and result without sending transaction
2435
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2436
+ */
2437
+ async xSwapNative(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, cfParameters: `0x${string}`, options?: {
2438
+ accessList?: import('viem').AccessList;
2439
+ authorizationList?: import('viem').AuthorizationList;
2440
+ chain?: import('viem').Chain | null;
2441
+ dataSuffix?: `0x${string}`;
2442
+ gas?: bigint;
2443
+ gasPrice?: bigint;
2444
+ maxFeePerGas?: bigint;
2445
+ maxPriorityFeePerGas?: bigint;
2446
+ nonce?: number;
2447
+ value?: bigint;
2448
+ }): Promise<void> {
2449
+ return contract.simulate.xSwapNative([dstChain, dstAddress, dstToken, cfParameters] as const, options) as Promise<void>;
2450
+ },
2451
+ /**
2452
+ * Simulate xSwapToken
2453
+ * Returns gas estimate and result without sending transaction
2454
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2455
+ */
2456
+ async xSwapToken(dstChain: bigint, dstAddress: `0x${string}`, dstToken: bigint, srcToken: `0x${string}`, amount: bigint, cfParameters: `0x${string}`, options?: {
2457
+ accessList?: import('viem').AccessList;
2458
+ authorizationList?: import('viem').AuthorizationList;
2459
+ chain?: import('viem').Chain | null;
2460
+ dataSuffix?: `0x${string}`;
2461
+ gas?: bigint;
2462
+ gasPrice?: bigint;
2463
+ maxFeePerGas?: bigint;
2464
+ maxPriorityFeePerGas?: bigint;
2465
+ nonce?: number;
2466
+ value?: bigint;
2467
+ }): Promise<void> {
2468
+ return contract.simulate.xSwapToken([dstChain, dstAddress, dstToken, srcToken, amount, cfParameters] as const, options) as Promise<void>;
1180
2469
  }
1181
2470
  };
1182
2471
  }
@@ -1196,16 +2485,54 @@ export class Vault_json {
1196
2485
  get watch() {
1197
2486
  return {
1198
2487
  /**
1199
- * Watch AllowableAssetAdded events
2488
+ * Watch AddGasNative events
2489
+ * @param callback Function to call when event is emitted
2490
+ * @param filter Optional filter for indexed parameters
2491
+ * @returns Unwatch function to stop listening
2492
+ */
2493
+ AddGasNative: (callback: (event: { swapID: `0x${string}`; amount: bigint }) => void) => {
2494
+ return this.publicClient.watchContractEvent({
2495
+ address: this.contractAddress,
2496
+ abi: Vault_jsonAbi,
2497
+ eventName: 'AddGasNative',
2498
+
2499
+ onLogs: (logs: any[]) => {
2500
+ logs.forEach((log: any) => {
2501
+ callback(log.args as any);
2502
+ });
2503
+ },
2504
+ }) as () => void;
2505
+ },
2506
+ /**
2507
+ * Watch AddGasToken events
2508
+ * @param callback Function to call when event is emitted
2509
+ * @param filter Optional filter for indexed parameters
2510
+ * @returns Unwatch function to stop listening
2511
+ */
2512
+ AddGasToken: (callback: (event: { swapID: `0x${string}`; amount: bigint; token: `0x${string}` }) => void) => {
2513
+ return this.publicClient.watchContractEvent({
2514
+ address: this.contractAddress,
2515
+ abi: Vault_jsonAbi,
2516
+ eventName: 'AddGasToken',
2517
+
2518
+ onLogs: (logs: any[]) => {
2519
+ logs.forEach((log: any) => {
2520
+ callback(log.args as any);
2521
+ });
2522
+ },
2523
+ }) as () => void;
2524
+ },
2525
+ /**
2526
+ * Watch CommunityGuardDisabled events
1200
2527
  * @param callback Function to call when event is emitted
1201
2528
  * @param filter Optional filter for indexed parameters
1202
2529
  * @returns Unwatch function to stop listening
1203
2530
  */
1204
- AllowableAssetAdded: (callback: (event: { _asset: `0x${string}` }) => void) => {
2531
+ CommunityGuardDisabled: (callback: (event: { communityGuardDisabled: boolean }) => void) => {
1205
2532
  return this.publicClient.watchContractEvent({
1206
2533
  address: this.contractAddress,
1207
2534
  abi: Vault_jsonAbi,
1208
- eventName: 'AllowableAssetAdded',
2535
+ eventName: 'CommunityGuardDisabled',
1209
2536
 
1210
2537
  onLogs: (logs: any[]) => {
1211
2538
  logs.forEach((log: any) => {
@@ -1215,16 +2542,54 @@ export class Vault_json {
1215
2542
  }) as () => void;
1216
2543
  },
1217
2544
  /**
1218
- * Watch AllowableAssetRemoved events
2545
+ * Watch ExecuteActionsFailed events
1219
2546
  * @param callback Function to call when event is emitted
1220
2547
  * @param filter Optional filter for indexed parameters
1221
2548
  * @returns Unwatch function to stop listening
1222
2549
  */
1223
- AllowableAssetRemoved: (callback: (event: { _asset: `0x${string}` }) => void) => {
2550
+ ExecuteActionsFailed: (callback: (event: { multicallAddress: `0x${string}`; token: `0x${string}`; amount: bigint; reason: `0x${string}` }) => void, filter?: { multicallAddress: `0x${string}`; token: `0x${string}` }) => {
1224
2551
  return this.publicClient.watchContractEvent({
1225
2552
  address: this.contractAddress,
1226
2553
  abi: Vault_jsonAbi,
1227
- eventName: 'AllowableAssetRemoved',
2554
+ eventName: 'ExecuteActionsFailed',
2555
+ args: filter,
2556
+ onLogs: (logs: any[]) => {
2557
+ logs.forEach((log: any) => {
2558
+ callback(log.args as any);
2559
+ });
2560
+ },
2561
+ }) as () => void;
2562
+ },
2563
+ /**
2564
+ * Watch FetchedNative events
2565
+ * @param callback Function to call when event is emitted
2566
+ * @param filter Optional filter for indexed parameters
2567
+ * @returns Unwatch function to stop listening
2568
+ */
2569
+ FetchedNative: (callback: (event: { sender: `0x${string}`; amount: bigint }) => void, filter?: { sender: `0x${string}` }) => {
2570
+ return this.publicClient.watchContractEvent({
2571
+ address: this.contractAddress,
2572
+ abi: Vault_jsonAbi,
2573
+ eventName: 'FetchedNative',
2574
+ args: filter,
2575
+ onLogs: (logs: any[]) => {
2576
+ logs.forEach((log: any) => {
2577
+ callback(log.args as any);
2578
+ });
2579
+ },
2580
+ }) as () => void;
2581
+ },
2582
+ /**
2583
+ * Watch Suspended events
2584
+ * @param callback Function to call when event is emitted
2585
+ * @param filter Optional filter for indexed parameters
2586
+ * @returns Unwatch function to stop listening
2587
+ */
2588
+ Suspended: (callback: (event: { suspended: boolean }) => void) => {
2589
+ return this.publicClient.watchContractEvent({
2590
+ address: this.contractAddress,
2591
+ abi: Vault_jsonAbi,
2592
+ eventName: 'Suspended',
1228
2593
 
1229
2594
  onLogs: (logs: any[]) => {
1230
2595
  logs.forEach((log: any) => {
@@ -1234,16 +2599,16 @@ export class Vault_json {
1234
2599
  }) as () => void;
1235
2600
  },
1236
2601
  /**
1237
- * Watch OwnershipTransferStarted events
2602
+ * Watch SwapNative events
1238
2603
  * @param callback Function to call when event is emitted
1239
2604
  * @param filter Optional filter for indexed parameters
1240
2605
  * @returns Unwatch function to stop listening
1241
2606
  */
1242
- OwnershipTransferStarted: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
2607
+ SwapNative: (callback: (event: { sender: `0x${string}`; dstChain: bigint; dstAddress: `0x${string}`; dstToken: bigint; amount: bigint; cfParameters: `0x${string}` }) => void, filter?: { sender: `0x${string}` }) => {
1243
2608
  return this.publicClient.watchContractEvent({
1244
2609
  address: this.contractAddress,
1245
2610
  abi: Vault_jsonAbi,
1246
- eventName: 'OwnershipTransferStarted',
2611
+ eventName: 'SwapNative',
1247
2612
  args: filter,
1248
2613
  onLogs: (logs: any[]) => {
1249
2614
  logs.forEach((log: any) => {
@@ -1253,16 +2618,16 @@ export class Vault_json {
1253
2618
  }) as () => void;
1254
2619
  },
1255
2620
  /**
1256
- * Watch OwnershipTransferred events
2621
+ * Watch SwapToken events
1257
2622
  * @param callback Function to call when event is emitted
1258
2623
  * @param filter Optional filter for indexed parameters
1259
2624
  * @returns Unwatch function to stop listening
1260
2625
  */
1261
- OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
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}` }) => {
1262
2627
  return this.publicClient.watchContractEvent({
1263
2628
  address: this.contractAddress,
1264
2629
  abi: Vault_jsonAbi,
1265
- eventName: 'OwnershipTransferred',
2630
+ eventName: 'SwapToken',
1266
2631
  args: filter,
1267
2632
  onLogs: (logs: any[]) => {
1268
2633
  logs.forEach((log: any) => {
@@ -1272,16 +2637,16 @@ export class Vault_json {
1272
2637
  }) as () => void;
1273
2638
  },
1274
2639
  /**
1275
- * Watch RedemptionUpdated events
2640
+ * Watch TransferNativeFailed events
1276
2641
  * @param callback Function to call when event is emitted
1277
2642
  * @param filter Optional filter for indexed parameters
1278
2643
  * @returns Unwatch function to stop listening
1279
2644
  */
1280
- RedemptionUpdated: (callback: (event: { _new: `0x${string}`; _old: `0x${string}` }) => void, filter?: { _new: `0x${string}` }) => {
2645
+ TransferNativeFailed: (callback: (event: { recipient: `0x${string}`; amount: bigint }) => void, filter?: { recipient: `0x${string}` }) => {
1281
2646
  return this.publicClient.watchContractEvent({
1282
2647
  address: this.contractAddress,
1283
2648
  abi: Vault_jsonAbi,
1284
- eventName: 'RedemptionUpdated',
2649
+ eventName: 'TransferNativeFailed',
1285
2650
  args: filter,
1286
2651
  onLogs: (logs: any[]) => {
1287
2652
  logs.forEach((log: any) => {
@@ -1291,16 +2656,54 @@ export class Vault_json {
1291
2656
  }) as () => void;
1292
2657
  },
1293
2658
  /**
1294
- * Watch RescuerChanged events
2659
+ * Watch TransferTokenFailed events
2660
+ * @param callback Function to call when event is emitted
2661
+ * @param filter Optional filter for indexed parameters
2662
+ * @returns Unwatch function to stop listening
2663
+ */
2664
+ TransferTokenFailed: (callback: (event: { recipient: `0x${string}`; token: `0x${string}`; amount: bigint; reason: `0x${string}` }) => void, filter?: { recipient: `0x${string}`; token: `0x${string}` }) => {
2665
+ return this.publicClient.watchContractEvent({
2666
+ address: this.contractAddress,
2667
+ abi: Vault_jsonAbi,
2668
+ eventName: 'TransferTokenFailed',
2669
+ args: filter,
2670
+ onLogs: (logs: any[]) => {
2671
+ logs.forEach((log: any) => {
2672
+ callback(log.args as any);
2673
+ });
2674
+ },
2675
+ }) as () => void;
2676
+ },
2677
+ /**
2678
+ * Watch UpdatedKeyManager events
2679
+ * @param callback Function to call when event is emitted
2680
+ * @param filter Optional filter for indexed parameters
2681
+ * @returns Unwatch function to stop listening
2682
+ */
2683
+ UpdatedKeyManager: (callback: (event: { keyManager: `0x${string}` }) => void) => {
2684
+ return this.publicClient.watchContractEvent({
2685
+ address: this.contractAddress,
2686
+ abi: Vault_jsonAbi,
2687
+ eventName: 'UpdatedKeyManager',
2688
+
2689
+ onLogs: (logs: any[]) => {
2690
+ logs.forEach((log: any) => {
2691
+ callback(log.args as any);
2692
+ });
2693
+ },
2694
+ }) as () => void;
2695
+ },
2696
+ /**
2697
+ * Watch XCallNative events
1295
2698
  * @param callback Function to call when event is emitted
1296
2699
  * @param filter Optional filter for indexed parameters
1297
2700
  * @returns Unwatch function to stop listening
1298
2701
  */
1299
- RescuerChanged: (callback: (event: { newRescuer: `0x${string}` }) => void, filter?: { newRescuer: `0x${string}` }) => {
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}` }) => {
1300
2703
  return this.publicClient.watchContractEvent({
1301
2704
  address: this.contractAddress,
1302
2705
  abi: Vault_jsonAbi,
1303
- eventName: 'RescuerChanged',
2706
+ eventName: 'XCallNative',
1304
2707
  args: filter,
1305
2708
  onLogs: (logs: any[]) => {
1306
2709
  logs.forEach((log: any) => {
@@ -1310,16 +2713,16 @@ export class Vault_json {
1310
2713
  }) as () => void;
1311
2714
  },
1312
2715
  /**
1313
- * Watch StrategyStorageUpdated events
2716
+ * Watch XCallToken events
1314
2717
  * @param callback Function to call when event is emitted
1315
2718
  * @param filter Optional filter for indexed parameters
1316
2719
  * @returns Unwatch function to stop listening
1317
2720
  */
1318
- StrategyStorageUpdated: (callback: (event: { _new: `0x${string}`; _old: `0x${string}` }) => void, filter?: { _new: `0x${string}` }) => {
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}` }) => {
1319
2722
  return this.publicClient.watchContractEvent({
1320
2723
  address: this.contractAddress,
1321
2724
  abi: Vault_jsonAbi,
1322
- eventName: 'StrategyStorageUpdated',
2725
+ eventName: 'XCallToken',
1323
2726
  args: filter,
1324
2727
  onLogs: (logs: any[]) => {
1325
2728
  logs.forEach((log: any) => {