@gitmyabi/vault 1.0.8 → 1.0.10

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