@gitmyabi/treasury 1.0.1 → 1.0.3

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.
@@ -7,23 +7,213 @@ import { getContract } from 'viem';
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
9
  export const Treasury_jsonAbi = [
10
+ {
11
+ "inputs": [
12
+ {
13
+ "internalType": "address",
14
+ "name": "_manager",
15
+ "type": "address"
16
+ }
17
+ ],
18
+ "stateMutability": "payable",
19
+ "type": "constructor"
20
+ },
21
+ {
22
+ "inputs": [],
23
+ "name": "ADDRESS_ZERO",
24
+ "type": "error"
25
+ },
26
+ {
27
+ "inputs": [],
28
+ "name": "ALREADY_INITIALIZED",
29
+ "type": "error"
30
+ },
31
+ {
32
+ "inputs": [],
33
+ "name": "DELEGATE_CALL_FAILED",
34
+ "type": "error"
35
+ },
36
+ {
37
+ "inputs": [],
38
+ "name": "EXECUTION_EXPIRED",
39
+ "type": "error"
40
+ },
41
+ {
42
+ "inputs": [
43
+ {
44
+ "internalType": "uint256",
45
+ "name": "txIndex",
46
+ "type": "uint256"
47
+ }
48
+ ],
49
+ "name": "EXECUTION_FAILED",
50
+ "type": "error"
51
+ },
52
+ {
53
+ "inputs": [
54
+ {
55
+ "internalType": "bytes32",
56
+ "name": "proposalId",
57
+ "type": "bytes32"
58
+ }
59
+ ],
60
+ "name": "EXECUTION_NOT_READY",
61
+ "type": "error"
62
+ },
63
+ {
64
+ "inputs": [],
65
+ "name": "INITIALIZING",
66
+ "type": "error"
67
+ },
68
+ {
69
+ "inputs": [],
70
+ "name": "INVALID_TARGET",
71
+ "type": "error"
72
+ },
73
+ {
74
+ "inputs": [
75
+ {
76
+ "internalType": "address",
77
+ "name": "impl",
78
+ "type": "address"
79
+ }
80
+ ],
81
+ "name": "INVALID_UPGRADE",
82
+ "type": "error"
83
+ },
84
+ {
85
+ "inputs": [],
86
+ "name": "NOT_INITIALIZING",
87
+ "type": "error"
88
+ },
89
+ {
90
+ "inputs": [],
91
+ "name": "ONLY_CALL",
92
+ "type": "error"
93
+ },
94
+ {
95
+ "inputs": [],
96
+ "name": "ONLY_DELEGATECALL",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [],
101
+ "name": "ONLY_MANAGER",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "inputs": [],
106
+ "name": "ONLY_OWNER",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "ONLY_PENDING_OWNER",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [],
116
+ "name": "ONLY_PROXY",
117
+ "type": "error"
118
+ },
119
+ {
120
+ "inputs": [],
121
+ "name": "ONLY_TREASURY",
122
+ "type": "error"
123
+ },
124
+ {
125
+ "inputs": [],
126
+ "name": "ONLY_UUPS",
127
+ "type": "error"
128
+ },
129
+ {
130
+ "inputs": [],
131
+ "name": "PROPOSAL_ALREADY_QUEUED",
132
+ "type": "error"
133
+ },
134
+ {
135
+ "inputs": [],
136
+ "name": "PROPOSAL_NOT_QUEUED",
137
+ "type": "error"
138
+ },
139
+ {
140
+ "inputs": [],
141
+ "name": "UNSAFE_CAST",
142
+ "type": "error"
143
+ },
144
+ {
145
+ "inputs": [],
146
+ "name": "UNSUPPORTED_UUID",
147
+ "type": "error"
148
+ },
10
149
  {
11
150
  "anonymous": false,
12
151
  "inputs": [
13
152
  {
14
153
  "indexed": false,
154
+ "internalType": "uint256",
155
+ "name": "prevDelay",
156
+ "type": "uint256"
157
+ },
158
+ {
159
+ "indexed": false,
160
+ "internalType": "uint256",
161
+ "name": "newDelay",
162
+ "type": "uint256"
163
+ }
164
+ ],
165
+ "name": "DelayUpdated",
166
+ "type": "event"
167
+ },
168
+ {
169
+ "anonymous": false,
170
+ "inputs": [
171
+ {
172
+ "indexed": false,
173
+ "internalType": "uint256",
174
+ "name": "prevGracePeriod",
175
+ "type": "uint256"
176
+ },
177
+ {
178
+ "indexed": false,
179
+ "internalType": "uint256",
180
+ "name": "newGracePeriod",
181
+ "type": "uint256"
182
+ }
183
+ ],
184
+ "name": "GracePeriodUpdated",
185
+ "type": "event"
186
+ },
187
+ {
188
+ "anonymous": false,
189
+ "inputs": [
190
+ {
191
+ "indexed": false,
192
+ "internalType": "uint256",
193
+ "name": "version",
194
+ "type": "uint256"
195
+ }
196
+ ],
197
+ "name": "Initialized",
198
+ "type": "event"
199
+ },
200
+ {
201
+ "anonymous": false,
202
+ "inputs": [
203
+ {
204
+ "indexed": true,
15
205
  "internalType": "address",
16
- "name": "previousAdmin",
206
+ "name": "owner",
17
207
  "type": "address"
18
208
  },
19
209
  {
20
- "indexed": false,
210
+ "indexed": true,
21
211
  "internalType": "address",
22
- "name": "newAdmin",
212
+ "name": "canceledOwner",
23
213
  "type": "address"
24
214
  }
25
215
  ],
26
- "name": "AdminChanged",
216
+ "name": "OwnerCanceled",
27
217
  "type": "event"
28
218
  },
29
219
  {
@@ -32,11 +222,17 @@ export const Treasury_jsonAbi = [
32
222
  {
33
223
  "indexed": true,
34
224
  "internalType": "address",
35
- "name": "beacon",
225
+ "name": "owner",
226
+ "type": "address"
227
+ },
228
+ {
229
+ "indexed": true,
230
+ "internalType": "address",
231
+ "name": "pendingOwner",
36
232
  "type": "address"
37
233
  }
38
234
  ],
39
- "name": "BeaconUpgraded",
235
+ "name": "OwnerPending",
40
236
  "type": "event"
41
237
  },
42
238
  {
@@ -45,7 +241,7 @@ export const Treasury_jsonAbi = [
45
241
  {
46
242
  "indexed": true,
47
243
  "internalType": "address",
48
- "name": "previousOwner",
244
+ "name": "prevOwner",
49
245
  "type": "address"
50
246
  },
51
247
  {
@@ -55,7 +251,7 @@ export const Treasury_jsonAbi = [
55
251
  "type": "address"
56
252
  }
57
253
  ],
58
- "name": "OwnershipTransferred",
254
+ "name": "OwnerUpdated",
59
255
  "type": "event"
60
256
  },
61
257
  {
@@ -63,12 +259,12 @@ export const Treasury_jsonAbi = [
63
259
  "inputs": [
64
260
  {
65
261
  "indexed": false,
66
- "internalType": "address",
67
- "name": "account",
68
- "type": "address"
262
+ "internalType": "bytes32",
263
+ "name": "proposalId",
264
+ "type": "bytes32"
69
265
  }
70
266
  ],
71
- "name": "Paused",
267
+ "name": "TransactionCanceled",
72
268
  "type": "event"
73
269
  },
74
270
  {
@@ -76,21 +272,58 @@ export const Treasury_jsonAbi = [
76
272
  "inputs": [
77
273
  {
78
274
  "indexed": false,
79
- "internalType": "address",
80
- "name": "account",
81
- "type": "address"
275
+ "internalType": "bytes32",
276
+ "name": "proposalId",
277
+ "type": "bytes32"
278
+ },
279
+ {
280
+ "indexed": false,
281
+ "internalType": "address[]",
282
+ "name": "targets",
283
+ "type": "address[]"
284
+ },
285
+ {
286
+ "indexed": false,
287
+ "internalType": "uint256[]",
288
+ "name": "values",
289
+ "type": "uint256[]"
290
+ },
291
+ {
292
+ "indexed": false,
293
+ "internalType": "bytes[]",
294
+ "name": "payloads",
295
+ "type": "bytes[]"
82
296
  }
83
297
  ],
84
- "name": "Unpaused",
298
+ "name": "TransactionExecuted",
85
299
  "type": "event"
86
300
  },
87
301
  {
88
302
  "anonymous": false,
89
303
  "inputs": [
90
304
  {
91
- "indexed": true,
305
+ "indexed": false,
306
+ "internalType": "bytes32",
307
+ "name": "proposalId",
308
+ "type": "bytes32"
309
+ },
310
+ {
311
+ "indexed": false,
312
+ "internalType": "uint256",
313
+ "name": "timestamp",
314
+ "type": "uint256"
315
+ }
316
+ ],
317
+ "name": "TransactionScheduled",
318
+ "type": "event"
319
+ },
320
+ {
321
+ "anonymous": false,
322
+ "inputs": [
323
+ {
324
+ "indexed": false,
92
325
  "internalType": "address",
93
- "name": "implementation",
326
+ "name": "impl",
94
327
  "type": "address"
95
328
  }
96
329
  ],
@@ -99,38 +332,98 @@ export const Treasury_jsonAbi = [
99
332
  },
100
333
  {
101
334
  "inputs": [],
102
- "name": "DEAD_ADDRESS",
335
+ "name": "acceptOwnership",
336
+ "outputs": [],
337
+ "stateMutability": "nonpayable",
338
+ "type": "function"
339
+ },
340
+ {
341
+ "inputs": [
342
+ {
343
+ "internalType": "bytes32",
344
+ "name": "_proposalId",
345
+ "type": "bytes32"
346
+ }
347
+ ],
348
+ "name": "cancel",
349
+ "outputs": [],
350
+ "stateMutability": "nonpayable",
351
+ "type": "function"
352
+ },
353
+ {
354
+ "inputs": [],
355
+ "name": "cancelOwnershipTransfer",
356
+ "outputs": [],
357
+ "stateMutability": "nonpayable",
358
+ "type": "function"
359
+ },
360
+ {
361
+ "inputs": [],
362
+ "name": "contractVersion",
103
363
  "outputs": [
104
364
  {
105
- "internalType": "address",
365
+ "internalType": "string",
106
366
  "name": "",
107
- "type": "address"
367
+ "type": "string"
108
368
  }
109
369
  ],
110
- "stateMutability": "view",
370
+ "stateMutability": "pure",
111
371
  "type": "function"
112
372
  },
113
373
  {
114
374
  "inputs": [],
115
- "name": "USDC",
375
+ "name": "delay",
116
376
  "outputs": [
117
377
  {
118
- "internalType": "address",
378
+ "internalType": "uint256",
119
379
  "name": "",
120
- "type": "address"
380
+ "type": "uint256"
121
381
  }
122
382
  ],
123
383
  "stateMutability": "view",
124
384
  "type": "function"
125
385
  },
386
+ {
387
+ "inputs": [
388
+ {
389
+ "internalType": "address[]",
390
+ "name": "_targets",
391
+ "type": "address[]"
392
+ },
393
+ {
394
+ "internalType": "uint256[]",
395
+ "name": "_values",
396
+ "type": "uint256[]"
397
+ },
398
+ {
399
+ "internalType": "bytes[]",
400
+ "name": "_calldatas",
401
+ "type": "bytes[]"
402
+ },
403
+ {
404
+ "internalType": "bytes32",
405
+ "name": "_descriptionHash",
406
+ "type": "bytes32"
407
+ },
408
+ {
409
+ "internalType": "address",
410
+ "name": "_proposer",
411
+ "type": "address"
412
+ }
413
+ ],
414
+ "name": "execute",
415
+ "outputs": [],
416
+ "stateMutability": "payable",
417
+ "type": "function"
418
+ },
126
419
  {
127
420
  "inputs": [],
128
- "name": "dao",
421
+ "name": "gracePeriod",
129
422
  "outputs": [
130
423
  {
131
- "internalType": "address",
424
+ "internalType": "uint256",
132
425
  "name": "",
133
- "type": "address"
426
+ "type": "uint256"
134
427
  }
135
428
  ],
136
429
  "stateMutability": "view",
@@ -139,24 +432,53 @@ export const Treasury_jsonAbi = [
139
432
  {
140
433
  "inputs": [
141
434
  {
142
- "internalType": "address",
143
- "name": "_rvlt",
144
- "type": "address"
435
+ "internalType": "address[]",
436
+ "name": "_targets",
437
+ "type": "address[]"
145
438
  },
146
439
  {
147
- "internalType": "address",
148
- "name": "_router",
149
- "type": "address"
440
+ "internalType": "uint256[]",
441
+ "name": "_values",
442
+ "type": "uint256[]"
443
+ },
444
+ {
445
+ "internalType": "bytes[]",
446
+ "name": "_calldatas",
447
+ "type": "bytes[]"
448
+ },
449
+ {
450
+ "internalType": "bytes32",
451
+ "name": "_descriptionHash",
452
+ "type": "bytes32"
150
453
  },
151
454
  {
152
455
  "internalType": "address",
153
- "name": "_usdc",
456
+ "name": "_proposer",
154
457
  "type": "address"
155
- },
458
+ }
459
+ ],
460
+ "name": "hashProposal",
461
+ "outputs": [
462
+ {
463
+ "internalType": "bytes32",
464
+ "name": "",
465
+ "type": "bytes32"
466
+ }
467
+ ],
468
+ "stateMutability": "pure",
469
+ "type": "function"
470
+ },
471
+ {
472
+ "inputs": [
156
473
  {
157
474
  "internalType": "address",
158
- "name": "_weth",
475
+ "name": "_governor",
159
476
  "type": "address"
477
+ },
478
+ {
479
+ "internalType": "uint256",
480
+ "name": "_delay",
481
+ "type": "uint256"
160
482
  }
161
483
  ],
162
484
  "name": "initialize",
@@ -165,34 +487,52 @@ export const Treasury_jsonAbi = [
165
487
  "type": "function"
166
488
  },
167
489
  {
168
- "inputs": [],
169
- "name": "multSignWallet",
490
+ "inputs": [
491
+ {
492
+ "internalType": "bytes32",
493
+ "name": "_proposalId",
494
+ "type": "bytes32"
495
+ }
496
+ ],
497
+ "name": "isExpired",
170
498
  "outputs": [
171
499
  {
172
- "internalType": "address",
500
+ "internalType": "bool",
173
501
  "name": "",
174
- "type": "address"
502
+ "type": "bool"
175
503
  }
176
504
  ],
177
505
  "stateMutability": "view",
178
506
  "type": "function"
179
507
  },
180
508
  {
181
- "inputs": [],
182
- "name": "owner",
509
+ "inputs": [
510
+ {
511
+ "internalType": "bytes32",
512
+ "name": "_proposalId",
513
+ "type": "bytes32"
514
+ }
515
+ ],
516
+ "name": "isQueued",
183
517
  "outputs": [
184
518
  {
185
- "internalType": "address",
519
+ "internalType": "bool",
186
520
  "name": "",
187
- "type": "address"
521
+ "type": "bool"
188
522
  }
189
523
  ],
190
524
  "stateMutability": "view",
191
525
  "type": "function"
192
526
  },
193
527
  {
194
- "inputs": [],
195
- "name": "paused",
528
+ "inputs": [
529
+ {
530
+ "internalType": "bytes32",
531
+ "name": "_proposalId",
532
+ "type": "bytes32"
533
+ }
534
+ ],
535
+ "name": "isReady",
196
536
  "outputs": [
197
537
  {
198
538
  "internalType": "bool",
@@ -204,15 +544,120 @@ export const Treasury_jsonAbi = [
204
544
  "type": "function"
205
545
  },
206
546
  {
207
- "inputs": [],
208
- "name": "renounceOwnership",
209
- "outputs": [],
210
- "stateMutability": "nonpayable",
547
+ "inputs": [
548
+ {
549
+ "internalType": "address",
550
+ "name": "",
551
+ "type": "address"
552
+ },
553
+ {
554
+ "internalType": "address",
555
+ "name": "",
556
+ "type": "address"
557
+ },
558
+ {
559
+ "internalType": "uint256[]",
560
+ "name": "",
561
+ "type": "uint256[]"
562
+ },
563
+ {
564
+ "internalType": "uint256[]",
565
+ "name": "",
566
+ "type": "uint256[]"
567
+ },
568
+ {
569
+ "internalType": "bytes",
570
+ "name": "",
571
+ "type": "bytes"
572
+ }
573
+ ],
574
+ "name": "onERC1155BatchReceived",
575
+ "outputs": [
576
+ {
577
+ "internalType": "bytes4",
578
+ "name": "",
579
+ "type": "bytes4"
580
+ }
581
+ ],
582
+ "stateMutability": "pure",
583
+ "type": "function"
584
+ },
585
+ {
586
+ "inputs": [
587
+ {
588
+ "internalType": "address",
589
+ "name": "",
590
+ "type": "address"
591
+ },
592
+ {
593
+ "internalType": "address",
594
+ "name": "",
595
+ "type": "address"
596
+ },
597
+ {
598
+ "internalType": "uint256",
599
+ "name": "",
600
+ "type": "uint256"
601
+ },
602
+ {
603
+ "internalType": "uint256",
604
+ "name": "",
605
+ "type": "uint256"
606
+ },
607
+ {
608
+ "internalType": "bytes",
609
+ "name": "",
610
+ "type": "bytes"
611
+ }
612
+ ],
613
+ "name": "onERC1155Received",
614
+ "outputs": [
615
+ {
616
+ "internalType": "bytes4",
617
+ "name": "",
618
+ "type": "bytes4"
619
+ }
620
+ ],
621
+ "stateMutability": "pure",
622
+ "type": "function"
623
+ },
624
+ {
625
+ "inputs": [
626
+ {
627
+ "internalType": "address",
628
+ "name": "",
629
+ "type": "address"
630
+ },
631
+ {
632
+ "internalType": "address",
633
+ "name": "",
634
+ "type": "address"
635
+ },
636
+ {
637
+ "internalType": "uint256",
638
+ "name": "",
639
+ "type": "uint256"
640
+ },
641
+ {
642
+ "internalType": "bytes",
643
+ "name": "",
644
+ "type": "bytes"
645
+ }
646
+ ],
647
+ "name": "onERC721Received",
648
+ "outputs": [
649
+ {
650
+ "internalType": "bytes4",
651
+ "name": "",
652
+ "type": "bytes4"
653
+ }
654
+ ],
655
+ "stateMutability": "pure",
211
656
  "type": "function"
212
657
  },
213
658
  {
214
659
  "inputs": [],
215
- "name": "router",
660
+ "name": "owner",
216
661
  "outputs": [
217
662
  {
218
663
  "internalType": "address",
@@ -225,7 +670,7 @@ export const Treasury_jsonAbi = [
225
670
  },
226
671
  {
227
672
  "inputs": [],
228
- "name": "rvlt",
673
+ "name": "pendingOwner",
229
674
  "outputs": [
230
675
  {
231
676
  "internalType": "address",
@@ -236,27 +681,65 @@ export const Treasury_jsonAbi = [
236
681
  "stateMutability": "view",
237
682
  "type": "function"
238
683
  },
684
+ {
685
+ "inputs": [],
686
+ "name": "proxiableUUID",
687
+ "outputs": [
688
+ {
689
+ "internalType": "bytes32",
690
+ "name": "",
691
+ "type": "bytes32"
692
+ }
693
+ ],
694
+ "stateMutability": "view",
695
+ "type": "function"
696
+ },
697
+ {
698
+ "inputs": [
699
+ {
700
+ "internalType": "bytes32",
701
+ "name": "_proposalId",
702
+ "type": "bytes32"
703
+ }
704
+ ],
705
+ "name": "queue",
706
+ "outputs": [
707
+ {
708
+ "internalType": "uint256",
709
+ "name": "eta",
710
+ "type": "uint256"
711
+ }
712
+ ],
713
+ "stateMutability": "nonpayable",
714
+ "type": "function"
715
+ },
239
716
  {
240
717
  "inputs": [
241
718
  {
242
719
  "internalType": "address",
243
- "name": "newOwner",
720
+ "name": "_newOwner",
244
721
  "type": "address"
245
722
  }
246
723
  ],
247
- "name": "transferOwnership",
724
+ "name": "safeTransferOwnership",
248
725
  "outputs": [],
249
726
  "stateMutability": "nonpayable",
250
727
  "type": "function"
251
728
  },
252
729
  {
253
- "inputs": [],
254
- "name": "uRvlt",
730
+ "inputs": [
731
+ {
732
+ "internalType": "bytes32",
733
+ "name": "_proposalId",
734
+ "type": "bytes32"
735
+ }
736
+ ],
737
+ "name": "timestamp",
255
738
  "outputs": [
256
739
  {
257
- "internalType": "address",
740
+ "internalType": "uint256",
258
741
  "name": "",
259
- "type": "address"
742
+ "type": "uint256"
260
743
  }
261
744
  ],
262
745
  "stateMutability": "view",
@@ -266,11 +749,11 @@ export const Treasury_jsonAbi = [
266
749
  "inputs": [
267
750
  {
268
751
  "internalType": "address",
269
- "name": "newImplementation",
752
+ "name": "_newOwner",
270
753
  "type": "address"
271
754
  }
272
755
  ],
273
- "name": "upgradeTo",
756
+ "name": "transferOwnership",
274
757
  "outputs": [],
275
758
  "stateMutability": "nonpayable",
276
759
  "type": "function"
@@ -278,40 +761,63 @@ export const Treasury_jsonAbi = [
278
761
  {
279
762
  "inputs": [
280
763
  {
281
- "internalType": "address",
282
- "name": "newImplementation",
283
- "type": "address"
284
- },
764
+ "internalType": "uint256",
765
+ "name": "_newDelay",
766
+ "type": "uint256"
767
+ }
768
+ ],
769
+ "name": "updateDelay",
770
+ "outputs": [],
771
+ "stateMutability": "nonpayable",
772
+ "type": "function"
773
+ },
774
+ {
775
+ "inputs": [
285
776
  {
286
- "internalType": "bytes",
287
- "name": "data",
288
- "type": "bytes"
777
+ "internalType": "uint256",
778
+ "name": "_newGracePeriod",
779
+ "type": "uint256"
289
780
  }
290
781
  ],
291
- "name": "upgradeToAndCall",
782
+ "name": "updateGracePeriod",
292
783
  "outputs": [],
293
- "stateMutability": "payable",
784
+ "stateMutability": "nonpayable",
294
785
  "type": "function"
295
786
  },
296
787
  {
297
788
  "inputs": [
298
789
  {
299
790
  "internalType": "address",
300
- "name": "token",
791
+ "name": "_newImpl",
301
792
  "type": "address"
302
793
  }
303
794
  ],
304
- "name": "withdrawAdmin",
795
+ "name": "upgradeTo",
305
796
  "outputs": [],
306
797
  "stateMutability": "nonpayable",
307
798
  "type": "function"
308
799
  },
309
800
  {
310
- "inputs": [],
311
- "name": "withdrawETHAdmin",
801
+ "inputs": [
802
+ {
803
+ "internalType": "address",
804
+ "name": "_newImpl",
805
+ "type": "address"
806
+ },
807
+ {
808
+ "internalType": "bytes",
809
+ "name": "_data",
810
+ "type": "bytes"
811
+ }
812
+ ],
813
+ "name": "upgradeToAndCall",
312
814
  "outputs": [],
313
- "stateMutability": "nonpayable",
815
+ "stateMutability": "payable",
314
816
  "type": "function"
817
+ },
818
+ {
819
+ "stateMutability": "payable",
820
+ "type": "receive"
315
821
  }
316
822
  ] as const satisfies Abi;
317
823
 
@@ -384,97 +890,252 @@ export class Treasury_json {
384
890
  }
385
891
 
386
892
  /**
387
- * Get the contract address
893
+ * Get the contract address
894
+ */
895
+ get address(): Address {
896
+ return this.contractAddress;
897
+ }
898
+
899
+ /**
900
+ * Get the underlying viem contract instance
901
+ */
902
+ getContract(): Treasury_jsonContract {
903
+ return this.contract;
904
+ }
905
+
906
+ /**
907
+ * contractVersion
908
+ * pure
909
+ */
910
+ async contractVersion(): Promise<string> {
911
+ return this.contract.read.contractVersion() as Promise<string>;
912
+ }
913
+
914
+ /**
915
+ * delay
916
+ * view
917
+ */
918
+ async delay(): Promise<bigint> {
919
+ return this.contract.read.delay() as Promise<bigint>;
920
+ }
921
+
922
+ /**
923
+ * gracePeriod
924
+ * view
925
+ */
926
+ async gracePeriod(): Promise<bigint> {
927
+ return this.contract.read.gracePeriod() as Promise<bigint>;
928
+ }
929
+
930
+ /**
931
+ * hashProposal
932
+ * pure
933
+ */
934
+ async hashProposal(_targets: `0x${string}`[], _values: bigint[], _calldatas: `0x${string}`[], _descriptionHash: `0x${string}`, _proposer: `0x${string}`): Promise<`0x${string}`> {
935
+ return this.contract.read.hashProposal([_targets, _values, _calldatas, _descriptionHash, _proposer] as const) as Promise<`0x${string}`>;
936
+ }
937
+
938
+ /**
939
+ * isExpired
940
+ * view
941
+ */
942
+ async isExpired(_proposalId: `0x${string}`): Promise<boolean> {
943
+ return this.contract.read.isExpired([_proposalId] as const) as Promise<boolean>;
944
+ }
945
+
946
+ /**
947
+ * isQueued
948
+ * view
949
+ */
950
+ async isQueued(_proposalId: `0x${string}`): Promise<boolean> {
951
+ return this.contract.read.isQueued([_proposalId] as const) as Promise<boolean>;
952
+ }
953
+
954
+ /**
955
+ * isReady
956
+ * view
957
+ */
958
+ async isReady(_proposalId: `0x${string}`): Promise<boolean> {
959
+ return this.contract.read.isReady([_proposalId] as const) as Promise<boolean>;
960
+ }
961
+
962
+ /**
963
+ * onERC1155BatchReceived
964
+ * pure
965
+ */
966
+ async onERC1155BatchReceived(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint[], arg3: bigint[], arg4: `0x${string}`): Promise<`0x${string}`> {
967
+ return this.contract.read.onERC1155BatchReceived([arg0, arg1, arg2, arg3, arg4] as const) as Promise<`0x${string}`>;
968
+ }
969
+
970
+ /**
971
+ * onERC1155Received
972
+ * pure
388
973
  */
389
- get address(): Address {
390
- return this.contractAddress;
974
+ async onERC1155Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: bigint, arg4: `0x${string}`): Promise<`0x${string}`> {
975
+ return this.contract.read.onERC1155Received([arg0, arg1, arg2, arg3, arg4] as const) as Promise<`0x${string}`>;
391
976
  }
392
977
 
393
978
  /**
394
- * Get the underlying viem contract instance
979
+ * onERC721Received
980
+ * pure
395
981
  */
396
- getContract(): Treasury_jsonContract {
397
- return this.contract;
982
+ async onERC721Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: `0x${string}`): Promise<`0x${string}`> {
983
+ return this.contract.read.onERC721Received([arg0, arg1, arg2, arg3] as const) as Promise<`0x${string}`>;
398
984
  }
399
985
 
400
986
  /**
401
- * DEAD_ADDRESS
987
+ * owner
402
988
  * view
403
989
  */
404
- async DEAD_ADDRESS(): Promise<`0x${string}`> {
405
- return this.contract.read.DEAD_ADDRESS() as Promise<`0x${string}`>;
990
+ async owner(): Promise<`0x${string}`> {
991
+ return this.contract.read.owner() as Promise<`0x${string}`>;
406
992
  }
407
993
 
408
994
  /**
409
- * USDC
995
+ * pendingOwner
410
996
  * view
411
997
  */
412
- async USDC(): Promise<`0x${string}`> {
413
- return this.contract.read.USDC() as Promise<`0x${string}`>;
998
+ async pendingOwner(): Promise<`0x${string}`> {
999
+ return this.contract.read.pendingOwner() as Promise<`0x${string}`>;
414
1000
  }
415
1001
 
416
1002
  /**
417
- * dao
1003
+ * proxiableUUID
418
1004
  * view
419
1005
  */
420
- async dao(): Promise<`0x${string}`> {
421
- return this.contract.read.dao() as Promise<`0x${string}`>;
1006
+ async proxiableUUID(): Promise<`0x${string}`> {
1007
+ return this.contract.read.proxiableUUID() as Promise<`0x${string}`>;
422
1008
  }
423
1009
 
424
1010
  /**
425
- * multSignWallet
1011
+ * timestamp
426
1012
  * view
427
1013
  */
428
- async multSignWallet(): Promise<`0x${string}`> {
429
- return this.contract.read.multSignWallet() as Promise<`0x${string}`>;
1014
+ async timestamp(_proposalId: `0x${string}`): Promise<bigint> {
1015
+ return this.contract.read.timestamp([_proposalId] as const) as Promise<bigint>;
430
1016
  }
431
1017
 
432
1018
  /**
433
- * owner
434
- * view
1019
+ * acceptOwnership
1020
+ * nonpayable
1021
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
435
1022
  */
436
- async owner(): Promise<`0x${string}`> {
437
- return this.contract.read.owner() as Promise<`0x${string}`>;
1023
+ async acceptOwnership(options?: {
1024
+ accessList?: import('viem').AccessList;
1025
+ authorizationList?: import('viem').AuthorizationList;
1026
+ chain?: import('viem').Chain | null;
1027
+ dataSuffix?: `0x${string}`;
1028
+ gas?: bigint;
1029
+ gasPrice?: bigint;
1030
+ maxFeePerGas?: bigint;
1031
+ maxPriorityFeePerGas?: bigint;
1032
+ nonce?: number;
1033
+ value?: bigint;
1034
+ }): Promise<`0x${string}`> {
1035
+ if (!this.contract.write) {
1036
+ throw new Error('Wallet client is required for write operations');
1037
+ }
1038
+ return this.contract.write.acceptOwnership(options) as Promise<`0x${string}`>;
438
1039
  }
439
1040
 
440
1041
  /**
441
- * paused
442
- * view
1042
+ * cancel
1043
+ * nonpayable
1044
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
443
1045
  */
444
- async paused(): Promise<boolean> {
445
- return this.contract.read.paused() as Promise<boolean>;
1046
+ async cancel(_proposalId: `0x${string}`, options?: {
1047
+ accessList?: import('viem').AccessList;
1048
+ authorizationList?: import('viem').AuthorizationList;
1049
+ chain?: import('viem').Chain | null;
1050
+ dataSuffix?: `0x${string}`;
1051
+ gas?: bigint;
1052
+ gasPrice?: bigint;
1053
+ maxFeePerGas?: bigint;
1054
+ maxPriorityFeePerGas?: bigint;
1055
+ nonce?: number;
1056
+ value?: bigint;
1057
+ }): Promise<`0x${string}`> {
1058
+ if (!this.contract.write) {
1059
+ throw new Error('Wallet client is required for write operations');
1060
+ }
1061
+ return this.contract.write.cancel([_proposalId] as const, options) as Promise<`0x${string}`>;
446
1062
  }
447
1063
 
448
1064
  /**
449
- * router
450
- * view
1065
+ * cancelOwnershipTransfer
1066
+ * nonpayable
1067
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
451
1068
  */
452
- async router(): Promise<`0x${string}`> {
453
- return this.contract.read.router() as Promise<`0x${string}`>;
1069
+ async cancelOwnershipTransfer(options?: {
1070
+ accessList?: import('viem').AccessList;
1071
+ authorizationList?: import('viem').AuthorizationList;
1072
+ chain?: import('viem').Chain | null;
1073
+ dataSuffix?: `0x${string}`;
1074
+ gas?: bigint;
1075
+ gasPrice?: bigint;
1076
+ maxFeePerGas?: bigint;
1077
+ maxPriorityFeePerGas?: bigint;
1078
+ nonce?: number;
1079
+ value?: bigint;
1080
+ }): Promise<`0x${string}`> {
1081
+ if (!this.contract.write) {
1082
+ throw new Error('Wallet client is required for write operations');
1083
+ }
1084
+ return this.contract.write.cancelOwnershipTransfer(options) as Promise<`0x${string}`>;
454
1085
  }
455
1086
 
456
1087
  /**
457
- * rvlt
458
- * view
1088
+ * execute
1089
+ * payable
1090
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
459
1091
  */
460
- async rvlt(): Promise<`0x${string}`> {
461
- return this.contract.read.rvlt() as Promise<`0x${string}`>;
1092
+ async execute(_targets: `0x${string}`[], _values: bigint[], _calldatas: `0x${string}`[], _descriptionHash: `0x${string}`, _proposer: `0x${string}`, options?: {
1093
+ accessList?: import('viem').AccessList;
1094
+ authorizationList?: import('viem').AuthorizationList;
1095
+ chain?: import('viem').Chain | null;
1096
+ dataSuffix?: `0x${string}`;
1097
+ gas?: bigint;
1098
+ gasPrice?: bigint;
1099
+ maxFeePerGas?: bigint;
1100
+ maxPriorityFeePerGas?: bigint;
1101
+ nonce?: number;
1102
+ value?: bigint;
1103
+ }): Promise<`0x${string}`> {
1104
+ if (!this.contract.write) {
1105
+ throw new Error('Wallet client is required for write operations');
1106
+ }
1107
+ return this.contract.write.execute([_targets, _values, _calldatas, _descriptionHash, _proposer] as const, options) as Promise<`0x${string}`>;
462
1108
  }
463
1109
 
464
1110
  /**
465
- * uRvlt
466
- * view
1111
+ * initialize
1112
+ * nonpayable
1113
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
467
1114
  */
468
- async uRvlt(): Promise<`0x${string}`> {
469
- return this.contract.read.uRvlt() as Promise<`0x${string}`>;
1115
+ async initialize(_governor: `0x${string}`, _delay: bigint, options?: {
1116
+ accessList?: import('viem').AccessList;
1117
+ authorizationList?: import('viem').AuthorizationList;
1118
+ chain?: import('viem').Chain | null;
1119
+ dataSuffix?: `0x${string}`;
1120
+ gas?: bigint;
1121
+ gasPrice?: bigint;
1122
+ maxFeePerGas?: bigint;
1123
+ maxPriorityFeePerGas?: bigint;
1124
+ nonce?: number;
1125
+ value?: bigint;
1126
+ }): Promise<`0x${string}`> {
1127
+ if (!this.contract.write) {
1128
+ throw new Error('Wallet client is required for write operations');
1129
+ }
1130
+ return this.contract.write.initialize([_governor, _delay] as const, options) as Promise<`0x${string}`>;
470
1131
  }
471
1132
 
472
1133
  /**
473
- * initialize
1134
+ * queue
474
1135
  * nonpayable
475
1136
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
476
1137
  */
477
- async initialize(_rvlt: `0x${string}`, _router: `0x${string}`, _usdc: `0x${string}`, _weth: `0x${string}`, options?: {
1138
+ async queue(_proposalId: `0x${string}`, options?: {
478
1139
  accessList?: import('viem').AccessList;
479
1140
  authorizationList?: import('viem').AuthorizationList;
480
1141
  chain?: import('viem').Chain | null;
@@ -489,15 +1150,15 @@ export class Treasury_json {
489
1150
  if (!this.contract.write) {
490
1151
  throw new Error('Wallet client is required for write operations');
491
1152
  }
492
- return this.contract.write.initialize([_rvlt, _router, _usdc, _weth] as const, options) as Promise<`0x${string}`>;
1153
+ return this.contract.write.queue([_proposalId] as const, options) as Promise<`0x${string}`>;
493
1154
  }
494
1155
 
495
1156
  /**
496
- * renounceOwnership
1157
+ * safeTransferOwnership
497
1158
  * nonpayable
498
1159
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
499
1160
  */
500
- async renounceOwnership(options?: {
1161
+ async safeTransferOwnership(_newOwner: `0x${string}`, options?: {
501
1162
  accessList?: import('viem').AccessList;
502
1163
  authorizationList?: import('viem').AuthorizationList;
503
1164
  chain?: import('viem').Chain | null;
@@ -512,7 +1173,7 @@ export class Treasury_json {
512
1173
  if (!this.contract.write) {
513
1174
  throw new Error('Wallet client is required for write operations');
514
1175
  }
515
- return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
1176
+ return this.contract.write.safeTransferOwnership([_newOwner] as const, options) as Promise<`0x${string}`>;
516
1177
  }
517
1178
 
518
1179
  /**
@@ -520,7 +1181,7 @@ export class Treasury_json {
520
1181
  * nonpayable
521
1182
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
522
1183
  */
523
- async transferOwnership(newOwner: `0x${string}`, options?: {
1184
+ async transferOwnership(_newOwner: `0x${string}`, options?: {
524
1185
  accessList?: import('viem').AccessList;
525
1186
  authorizationList?: import('viem').AuthorizationList;
526
1187
  chain?: import('viem').Chain | null;
@@ -535,15 +1196,15 @@ export class Treasury_json {
535
1196
  if (!this.contract.write) {
536
1197
  throw new Error('Wallet client is required for write operations');
537
1198
  }
538
- return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
1199
+ return this.contract.write.transferOwnership([_newOwner] as const, options) as Promise<`0x${string}`>;
539
1200
  }
540
1201
 
541
1202
  /**
542
- * upgradeTo
1203
+ * updateDelay
543
1204
  * nonpayable
544
1205
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
545
1206
  */
546
- async upgradeTo(newImplementation: `0x${string}`, options?: {
1207
+ async updateDelay(_newDelay: bigint, options?: {
547
1208
  accessList?: import('viem').AccessList;
548
1209
  authorizationList?: import('viem').AuthorizationList;
549
1210
  chain?: import('viem').Chain | null;
@@ -558,15 +1219,15 @@ export class Treasury_json {
558
1219
  if (!this.contract.write) {
559
1220
  throw new Error('Wallet client is required for write operations');
560
1221
  }
561
- return this.contract.write.upgradeTo([newImplementation] as const, options) as Promise<`0x${string}`>;
1222
+ return this.contract.write.updateDelay([_newDelay] as const, options) as Promise<`0x${string}`>;
562
1223
  }
563
1224
 
564
1225
  /**
565
- * upgradeToAndCall
566
- * payable
1226
+ * updateGracePeriod
1227
+ * nonpayable
567
1228
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
568
1229
  */
569
- async upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
1230
+ async updateGracePeriod(_newGracePeriod: bigint, options?: {
570
1231
  accessList?: import('viem').AccessList;
571
1232
  authorizationList?: import('viem').AuthorizationList;
572
1233
  chain?: import('viem').Chain | null;
@@ -581,15 +1242,15 @@ export class Treasury_json {
581
1242
  if (!this.contract.write) {
582
1243
  throw new Error('Wallet client is required for write operations');
583
1244
  }
584
- return this.contract.write.upgradeToAndCall([newImplementation, data] as const, options) as Promise<`0x${string}`>;
1245
+ return this.contract.write.updateGracePeriod([_newGracePeriod] as const, options) as Promise<`0x${string}`>;
585
1246
  }
586
1247
 
587
1248
  /**
588
- * withdrawAdmin
1249
+ * upgradeTo
589
1250
  * nonpayable
590
1251
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
591
1252
  */
592
- async withdrawAdmin(token: `0x${string}`, options?: {
1253
+ async upgradeTo(_newImpl: `0x${string}`, options?: {
593
1254
  accessList?: import('viem').AccessList;
594
1255
  authorizationList?: import('viem').AuthorizationList;
595
1256
  chain?: import('viem').Chain | null;
@@ -604,15 +1265,15 @@ export class Treasury_json {
604
1265
  if (!this.contract.write) {
605
1266
  throw new Error('Wallet client is required for write operations');
606
1267
  }
607
- return this.contract.write.withdrawAdmin([token] as const, options) as Promise<`0x${string}`>;
1268
+ return this.contract.write.upgradeTo([_newImpl] as const, options) as Promise<`0x${string}`>;
608
1269
  }
609
1270
 
610
1271
  /**
611
- * withdrawETHAdmin
612
- * nonpayable
1272
+ * upgradeToAndCall
1273
+ * payable
613
1274
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
614
1275
  */
615
- async withdrawETHAdmin(options?: {
1276
+ async upgradeToAndCall(_newImpl: `0x${string}`, _data: `0x${string}`, options?: {
616
1277
  accessList?: import('viem').AccessList;
617
1278
  authorizationList?: import('viem').AuthorizationList;
618
1279
  chain?: import('viem').Chain | null;
@@ -627,7 +1288,7 @@ export class Treasury_json {
627
1288
  if (!this.contract.write) {
628
1289
  throw new Error('Wallet client is required for write operations');
629
1290
  }
630
- return this.contract.write.withdrawETHAdmin(options) as Promise<`0x${string}`>;
1291
+ return this.contract.write.upgradeToAndCall([_newImpl, _data] as const, options) as Promise<`0x${string}`>;
631
1292
  }
632
1293
 
633
1294
 
@@ -646,12 +1307,88 @@ export class Treasury_json {
646
1307
  throw new Error('Public client is required for simulation');
647
1308
  }
648
1309
  return {
1310
+ /**
1311
+ * Simulate acceptOwnership
1312
+ * Returns gas estimate and result without sending transaction
1313
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1314
+ */
1315
+ async acceptOwnership(options?: {
1316
+ accessList?: import('viem').AccessList;
1317
+ authorizationList?: import('viem').AuthorizationList;
1318
+ chain?: import('viem').Chain | null;
1319
+ dataSuffix?: `0x${string}`;
1320
+ gas?: bigint;
1321
+ gasPrice?: bigint;
1322
+ maxFeePerGas?: bigint;
1323
+ maxPriorityFeePerGas?: bigint;
1324
+ nonce?: number;
1325
+ value?: bigint;
1326
+ }): Promise<void> {
1327
+ return contract.simulate.acceptOwnership(options) as Promise<void>;
1328
+ },
1329
+ /**
1330
+ * Simulate cancel
1331
+ * Returns gas estimate and result without sending transaction
1332
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1333
+ */
1334
+ async cancel(_proposalId: `0x${string}`, options?: {
1335
+ accessList?: import('viem').AccessList;
1336
+ authorizationList?: import('viem').AuthorizationList;
1337
+ chain?: import('viem').Chain | null;
1338
+ dataSuffix?: `0x${string}`;
1339
+ gas?: bigint;
1340
+ gasPrice?: bigint;
1341
+ maxFeePerGas?: bigint;
1342
+ maxPriorityFeePerGas?: bigint;
1343
+ nonce?: number;
1344
+ value?: bigint;
1345
+ }): Promise<void> {
1346
+ return contract.simulate.cancel([_proposalId] as const, options) as Promise<void>;
1347
+ },
1348
+ /**
1349
+ * Simulate cancelOwnershipTransfer
1350
+ * Returns gas estimate and result without sending transaction
1351
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1352
+ */
1353
+ async cancelOwnershipTransfer(options?: {
1354
+ accessList?: import('viem').AccessList;
1355
+ authorizationList?: import('viem').AuthorizationList;
1356
+ chain?: import('viem').Chain | null;
1357
+ dataSuffix?: `0x${string}`;
1358
+ gas?: bigint;
1359
+ gasPrice?: bigint;
1360
+ maxFeePerGas?: bigint;
1361
+ maxPriorityFeePerGas?: bigint;
1362
+ nonce?: number;
1363
+ value?: bigint;
1364
+ }): Promise<void> {
1365
+ return contract.simulate.cancelOwnershipTransfer(options) as Promise<void>;
1366
+ },
1367
+ /**
1368
+ * Simulate execute
1369
+ * Returns gas estimate and result without sending transaction
1370
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1371
+ */
1372
+ async execute(_targets: `0x${string}`[], _values: bigint[], _calldatas: `0x${string}`[], _descriptionHash: `0x${string}`, _proposer: `0x${string}`, options?: {
1373
+ accessList?: import('viem').AccessList;
1374
+ authorizationList?: import('viem').AuthorizationList;
1375
+ chain?: import('viem').Chain | null;
1376
+ dataSuffix?: `0x${string}`;
1377
+ gas?: bigint;
1378
+ gasPrice?: bigint;
1379
+ maxFeePerGas?: bigint;
1380
+ maxPriorityFeePerGas?: bigint;
1381
+ nonce?: number;
1382
+ value?: bigint;
1383
+ }): Promise<void> {
1384
+ return contract.simulate.execute([_targets, _values, _calldatas, _descriptionHash, _proposer] as const, options) as Promise<void>;
1385
+ },
649
1386
  /**
650
1387
  * Simulate initialize
651
1388
  * Returns gas estimate and result without sending transaction
652
1389
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
653
1390
  */
654
- async initialize(_rvlt: `0x${string}`, _router: `0x${string}`, _usdc: `0x${string}`, _weth: `0x${string}`, options?: {
1391
+ async initialize(_governor: `0x${string}`, _delay: bigint, options?: {
655
1392
  accessList?: import('viem').AccessList;
656
1393
  authorizationList?: import('viem').AuthorizationList;
657
1394
  chain?: import('viem').Chain | null;
@@ -663,14 +1400,33 @@ export class Treasury_json {
663
1400
  nonce?: number;
664
1401
  value?: bigint;
665
1402
  }): Promise<void> {
666
- return contract.simulate.initialize([_rvlt, _router, _usdc, _weth] as const, options) as Promise<void>;
1403
+ return contract.simulate.initialize([_governor, _delay] as const, options) as Promise<void>;
1404
+ },
1405
+ /**
1406
+ * Simulate queue
1407
+ * Returns gas estimate and result without sending transaction
1408
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1409
+ */
1410
+ async queue(_proposalId: `0x${string}`, options?: {
1411
+ accessList?: import('viem').AccessList;
1412
+ authorizationList?: import('viem').AuthorizationList;
1413
+ chain?: import('viem').Chain | null;
1414
+ dataSuffix?: `0x${string}`;
1415
+ gas?: bigint;
1416
+ gasPrice?: bigint;
1417
+ maxFeePerGas?: bigint;
1418
+ maxPriorityFeePerGas?: bigint;
1419
+ nonce?: number;
1420
+ value?: bigint;
1421
+ }): Promise<bigint> {
1422
+ return contract.simulate.queue([_proposalId] as const, options) as Promise<bigint>;
667
1423
  },
668
1424
  /**
669
- * Simulate renounceOwnership
1425
+ * Simulate safeTransferOwnership
670
1426
  * Returns gas estimate and result without sending transaction
671
1427
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
672
1428
  */
673
- async renounceOwnership(options?: {
1429
+ async safeTransferOwnership(_newOwner: `0x${string}`, options?: {
674
1430
  accessList?: import('viem').AccessList;
675
1431
  authorizationList?: import('viem').AuthorizationList;
676
1432
  chain?: import('viem').Chain | null;
@@ -682,14 +1438,14 @@ export class Treasury_json {
682
1438
  nonce?: number;
683
1439
  value?: bigint;
684
1440
  }): Promise<void> {
685
- return contract.simulate.renounceOwnership(options) as Promise<void>;
1441
+ return contract.simulate.safeTransferOwnership([_newOwner] as const, options) as Promise<void>;
686
1442
  },
687
1443
  /**
688
1444
  * Simulate transferOwnership
689
1445
  * Returns gas estimate and result without sending transaction
690
1446
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
691
1447
  */
692
- async transferOwnership(newOwner: `0x${string}`, options?: {
1448
+ async transferOwnership(_newOwner: `0x${string}`, options?: {
693
1449
  accessList?: import('viem').AccessList;
694
1450
  authorizationList?: import('viem').AuthorizationList;
695
1451
  chain?: import('viem').Chain | null;
@@ -701,14 +1457,14 @@ export class Treasury_json {
701
1457
  nonce?: number;
702
1458
  value?: bigint;
703
1459
  }): Promise<void> {
704
- return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
1460
+ return contract.simulate.transferOwnership([_newOwner] as const, options) as Promise<void>;
705
1461
  },
706
1462
  /**
707
- * Simulate upgradeTo
1463
+ * Simulate updateDelay
708
1464
  * Returns gas estimate and result without sending transaction
709
1465
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
710
1466
  */
711
- async upgradeTo(newImplementation: `0x${string}`, options?: {
1467
+ async updateDelay(_newDelay: bigint, options?: {
712
1468
  accessList?: import('viem').AccessList;
713
1469
  authorizationList?: import('viem').AuthorizationList;
714
1470
  chain?: import('viem').Chain | null;
@@ -720,14 +1476,14 @@ export class Treasury_json {
720
1476
  nonce?: number;
721
1477
  value?: bigint;
722
1478
  }): Promise<void> {
723
- return contract.simulate.upgradeTo([newImplementation] as const, options) as Promise<void>;
1479
+ return contract.simulate.updateDelay([_newDelay] as const, options) as Promise<void>;
724
1480
  },
725
1481
  /**
726
- * Simulate upgradeToAndCall
1482
+ * Simulate updateGracePeriod
727
1483
  * Returns gas estimate and result without sending transaction
728
1484
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
729
1485
  */
730
- async upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
1486
+ async updateGracePeriod(_newGracePeriod: bigint, options?: {
731
1487
  accessList?: import('viem').AccessList;
732
1488
  authorizationList?: import('viem').AuthorizationList;
733
1489
  chain?: import('viem').Chain | null;
@@ -739,14 +1495,14 @@ export class Treasury_json {
739
1495
  nonce?: number;
740
1496
  value?: bigint;
741
1497
  }): Promise<void> {
742
- return contract.simulate.upgradeToAndCall([newImplementation, data] as const, options) as Promise<void>;
1498
+ return contract.simulate.updateGracePeriod([_newGracePeriod] as const, options) as Promise<void>;
743
1499
  },
744
1500
  /**
745
- * Simulate withdrawAdmin
1501
+ * Simulate upgradeTo
746
1502
  * Returns gas estimate and result without sending transaction
747
1503
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
748
1504
  */
749
- async withdrawAdmin(token: `0x${string}`, options?: {
1505
+ async upgradeTo(_newImpl: `0x${string}`, options?: {
750
1506
  accessList?: import('viem').AccessList;
751
1507
  authorizationList?: import('viem').AuthorizationList;
752
1508
  chain?: import('viem').Chain | null;
@@ -758,14 +1514,14 @@ export class Treasury_json {
758
1514
  nonce?: number;
759
1515
  value?: bigint;
760
1516
  }): Promise<void> {
761
- return contract.simulate.withdrawAdmin([token] as const, options) as Promise<void>;
1517
+ return contract.simulate.upgradeTo([_newImpl] as const, options) as Promise<void>;
762
1518
  },
763
1519
  /**
764
- * Simulate withdrawETHAdmin
1520
+ * Simulate upgradeToAndCall
765
1521
  * Returns gas estimate and result without sending transaction
766
1522
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
767
1523
  */
768
- async withdrawETHAdmin(options?: {
1524
+ async upgradeToAndCall(_newImpl: `0x${string}`, _data: `0x${string}`, options?: {
769
1525
  accessList?: import('viem').AccessList;
770
1526
  authorizationList?: import('viem').AuthorizationList;
771
1527
  chain?: import('viem').Chain | null;
@@ -777,7 +1533,7 @@ export class Treasury_json {
777
1533
  nonce?: number;
778
1534
  value?: bigint;
779
1535
  }): Promise<void> {
780
- return contract.simulate.withdrawETHAdmin(options) as Promise<void>;
1536
+ return contract.simulate.upgradeToAndCall([_newImpl, _data] as const, options) as Promise<void>;
781
1537
  }
782
1538
  };
783
1539
  }
@@ -797,16 +1553,54 @@ export class Treasury_json {
797
1553
  get watch() {
798
1554
  return {
799
1555
  /**
800
- * Watch AdminChanged events
1556
+ * Watch DelayUpdated events
1557
+ * @param callback Function to call when event is emitted
1558
+ * @param filter Optional filter for indexed parameters
1559
+ * @returns Unwatch function to stop listening
1560
+ */
1561
+ DelayUpdated: (callback: (event: { prevDelay: bigint; newDelay: bigint }) => void) => {
1562
+ return this.publicClient.watchContractEvent({
1563
+ address: this.contractAddress,
1564
+ abi: Treasury_jsonAbi,
1565
+ eventName: 'DelayUpdated',
1566
+
1567
+ onLogs: (logs: any[]) => {
1568
+ logs.forEach((log: any) => {
1569
+ callback(log.args as any);
1570
+ });
1571
+ },
1572
+ }) as () => void;
1573
+ },
1574
+ /**
1575
+ * Watch GracePeriodUpdated events
1576
+ * @param callback Function to call when event is emitted
1577
+ * @param filter Optional filter for indexed parameters
1578
+ * @returns Unwatch function to stop listening
1579
+ */
1580
+ GracePeriodUpdated: (callback: (event: { prevGracePeriod: bigint; newGracePeriod: bigint }) => void) => {
1581
+ return this.publicClient.watchContractEvent({
1582
+ address: this.contractAddress,
1583
+ abi: Treasury_jsonAbi,
1584
+ eventName: 'GracePeriodUpdated',
1585
+
1586
+ onLogs: (logs: any[]) => {
1587
+ logs.forEach((log: any) => {
1588
+ callback(log.args as any);
1589
+ });
1590
+ },
1591
+ }) as () => void;
1592
+ },
1593
+ /**
1594
+ * Watch Initialized events
801
1595
  * @param callback Function to call when event is emitted
802
1596
  * @param filter Optional filter for indexed parameters
803
1597
  * @returns Unwatch function to stop listening
804
1598
  */
805
- AdminChanged: (callback: (event: { previousAdmin: `0x${string}`; newAdmin: `0x${string}` }) => void) => {
1599
+ Initialized: (callback: (event: { version: bigint }) => void) => {
806
1600
  return this.publicClient.watchContractEvent({
807
1601
  address: this.contractAddress,
808
1602
  abi: Treasury_jsonAbi,
809
- eventName: 'AdminChanged',
1603
+ eventName: 'Initialized',
810
1604
 
811
1605
  onLogs: (logs: any[]) => {
812
1606
  logs.forEach((log: any) => {
@@ -816,16 +1610,35 @@ export class Treasury_json {
816
1610
  }) as () => void;
817
1611
  },
818
1612
  /**
819
- * Watch BeaconUpgraded events
1613
+ * Watch OwnerCanceled events
1614
+ * @param callback Function to call when event is emitted
1615
+ * @param filter Optional filter for indexed parameters
1616
+ * @returns Unwatch function to stop listening
1617
+ */
1618
+ OwnerCanceled: (callback: (event: { owner: `0x${string}`; canceledOwner: `0x${string}` }) => void, filter?: { owner: `0x${string}`; canceledOwner: `0x${string}` }) => {
1619
+ return this.publicClient.watchContractEvent({
1620
+ address: this.contractAddress,
1621
+ abi: Treasury_jsonAbi,
1622
+ eventName: 'OwnerCanceled',
1623
+ args: filter,
1624
+ onLogs: (logs: any[]) => {
1625
+ logs.forEach((log: any) => {
1626
+ callback(log.args as any);
1627
+ });
1628
+ },
1629
+ }) as () => void;
1630
+ },
1631
+ /**
1632
+ * Watch OwnerPending events
820
1633
  * @param callback Function to call when event is emitted
821
1634
  * @param filter Optional filter for indexed parameters
822
1635
  * @returns Unwatch function to stop listening
823
1636
  */
824
- BeaconUpgraded: (callback: (event: { beacon: `0x${string}` }) => void, filter?: { beacon: `0x${string}` }) => {
1637
+ OwnerPending: (callback: (event: { owner: `0x${string}`; pendingOwner: `0x${string}` }) => void, filter?: { owner: `0x${string}`; pendingOwner: `0x${string}` }) => {
825
1638
  return this.publicClient.watchContractEvent({
826
1639
  address: this.contractAddress,
827
1640
  abi: Treasury_jsonAbi,
828
- eventName: 'BeaconUpgraded',
1641
+ eventName: 'OwnerPending',
829
1642
  args: filter,
830
1643
  onLogs: (logs: any[]) => {
831
1644
  logs.forEach((log: any) => {
@@ -835,16 +1648,16 @@ export class Treasury_json {
835
1648
  }) as () => void;
836
1649
  },
837
1650
  /**
838
- * Watch OwnershipTransferred events
1651
+ * Watch OwnerUpdated events
839
1652
  * @param callback Function to call when event is emitted
840
1653
  * @param filter Optional filter for indexed parameters
841
1654
  * @returns Unwatch function to stop listening
842
1655
  */
843
- OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
1656
+ OwnerUpdated: (callback: (event: { prevOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { prevOwner: `0x${string}`; newOwner: `0x${string}` }) => {
844
1657
  return this.publicClient.watchContractEvent({
845
1658
  address: this.contractAddress,
846
1659
  abi: Treasury_jsonAbi,
847
- eventName: 'OwnershipTransferred',
1660
+ eventName: 'OwnerUpdated',
848
1661
  args: filter,
849
1662
  onLogs: (logs: any[]) => {
850
1663
  logs.forEach((log: any) => {
@@ -854,16 +1667,35 @@ export class Treasury_json {
854
1667
  }) as () => void;
855
1668
  },
856
1669
  /**
857
- * Watch Paused events
1670
+ * Watch TransactionCanceled events
1671
+ * @param callback Function to call when event is emitted
1672
+ * @param filter Optional filter for indexed parameters
1673
+ * @returns Unwatch function to stop listening
1674
+ */
1675
+ TransactionCanceled: (callback: (event: { proposalId: `0x${string}` }) => void) => {
1676
+ return this.publicClient.watchContractEvent({
1677
+ address: this.contractAddress,
1678
+ abi: Treasury_jsonAbi,
1679
+ eventName: 'TransactionCanceled',
1680
+
1681
+ onLogs: (logs: any[]) => {
1682
+ logs.forEach((log: any) => {
1683
+ callback(log.args as any);
1684
+ });
1685
+ },
1686
+ }) as () => void;
1687
+ },
1688
+ /**
1689
+ * Watch TransactionExecuted events
858
1690
  * @param callback Function to call when event is emitted
859
1691
  * @param filter Optional filter for indexed parameters
860
1692
  * @returns Unwatch function to stop listening
861
1693
  */
862
- Paused: (callback: (event: { account: `0x${string}` }) => void) => {
1694
+ TransactionExecuted: (callback: (event: { proposalId: `0x${string}`; targets: `0x${string}`[]; values: bigint[]; payloads: `0x${string}`[] }) => void) => {
863
1695
  return this.publicClient.watchContractEvent({
864
1696
  address: this.contractAddress,
865
1697
  abi: Treasury_jsonAbi,
866
- eventName: 'Paused',
1698
+ eventName: 'TransactionExecuted',
867
1699
 
868
1700
  onLogs: (logs: any[]) => {
869
1701
  logs.forEach((log: any) => {
@@ -873,16 +1705,16 @@ export class Treasury_json {
873
1705
  }) as () => void;
874
1706
  },
875
1707
  /**
876
- * Watch Unpaused events
1708
+ * Watch TransactionScheduled events
877
1709
  * @param callback Function to call when event is emitted
878
1710
  * @param filter Optional filter for indexed parameters
879
1711
  * @returns Unwatch function to stop listening
880
1712
  */
881
- Unpaused: (callback: (event: { account: `0x${string}` }) => void) => {
1713
+ TransactionScheduled: (callback: (event: { proposalId: `0x${string}`; timestamp: bigint }) => void) => {
882
1714
  return this.publicClient.watchContractEvent({
883
1715
  address: this.contractAddress,
884
1716
  abi: Treasury_jsonAbi,
885
- eventName: 'Unpaused',
1717
+ eventName: 'TransactionScheduled',
886
1718
 
887
1719
  onLogs: (logs: any[]) => {
888
1720
  logs.forEach((log: any) => {
@@ -897,12 +1729,12 @@ export class Treasury_json {
897
1729
  * @param filter Optional filter for indexed parameters
898
1730
  * @returns Unwatch function to stop listening
899
1731
  */
900
- Upgraded: (callback: (event: { implementation: `0x${string}` }) => void, filter?: { implementation: `0x${string}` }) => {
1732
+ Upgraded: (callback: (event: { impl: `0x${string}` }) => void) => {
901
1733
  return this.publicClient.watchContractEvent({
902
1734
  address: this.contractAddress,
903
1735
  abi: Treasury_jsonAbi,
904
1736
  eventName: 'Upgraded',
905
- args: filter,
1737
+
906
1738
  onLogs: (logs: any[]) => {
907
1739
  logs.forEach((log: any) => {
908
1740
  callback(log.args as any);