@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.
@@ -8,23 +8,213 @@ const viem_1 = require("viem");
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
10
  exports.Treasury_jsonAbi = [
11
+ {
12
+ "inputs": [
13
+ {
14
+ "internalType": "address",
15
+ "name": "_manager",
16
+ "type": "address"
17
+ }
18
+ ],
19
+ "stateMutability": "payable",
20
+ "type": "constructor"
21
+ },
22
+ {
23
+ "inputs": [],
24
+ "name": "ADDRESS_ZERO",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [],
29
+ "name": "ALREADY_INITIALIZED",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "inputs": [],
34
+ "name": "DELEGATE_CALL_FAILED",
35
+ "type": "error"
36
+ },
37
+ {
38
+ "inputs": [],
39
+ "name": "EXECUTION_EXPIRED",
40
+ "type": "error"
41
+ },
42
+ {
43
+ "inputs": [
44
+ {
45
+ "internalType": "uint256",
46
+ "name": "txIndex",
47
+ "type": "uint256"
48
+ }
49
+ ],
50
+ "name": "EXECUTION_FAILED",
51
+ "type": "error"
52
+ },
53
+ {
54
+ "inputs": [
55
+ {
56
+ "internalType": "bytes32",
57
+ "name": "proposalId",
58
+ "type": "bytes32"
59
+ }
60
+ ],
61
+ "name": "EXECUTION_NOT_READY",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [],
66
+ "name": "INITIALIZING",
67
+ "type": "error"
68
+ },
69
+ {
70
+ "inputs": [],
71
+ "name": "INVALID_TARGET",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [
76
+ {
77
+ "internalType": "address",
78
+ "name": "impl",
79
+ "type": "address"
80
+ }
81
+ ],
82
+ "name": "INVALID_UPGRADE",
83
+ "type": "error"
84
+ },
85
+ {
86
+ "inputs": [],
87
+ "name": "NOT_INITIALIZING",
88
+ "type": "error"
89
+ },
90
+ {
91
+ "inputs": [],
92
+ "name": "ONLY_CALL",
93
+ "type": "error"
94
+ },
95
+ {
96
+ "inputs": [],
97
+ "name": "ONLY_DELEGATECALL",
98
+ "type": "error"
99
+ },
100
+ {
101
+ "inputs": [],
102
+ "name": "ONLY_MANAGER",
103
+ "type": "error"
104
+ },
105
+ {
106
+ "inputs": [],
107
+ "name": "ONLY_OWNER",
108
+ "type": "error"
109
+ },
110
+ {
111
+ "inputs": [],
112
+ "name": "ONLY_PENDING_OWNER",
113
+ "type": "error"
114
+ },
115
+ {
116
+ "inputs": [],
117
+ "name": "ONLY_PROXY",
118
+ "type": "error"
119
+ },
120
+ {
121
+ "inputs": [],
122
+ "name": "ONLY_TREASURY",
123
+ "type": "error"
124
+ },
125
+ {
126
+ "inputs": [],
127
+ "name": "ONLY_UUPS",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [],
132
+ "name": "PROPOSAL_ALREADY_QUEUED",
133
+ "type": "error"
134
+ },
135
+ {
136
+ "inputs": [],
137
+ "name": "PROPOSAL_NOT_QUEUED",
138
+ "type": "error"
139
+ },
140
+ {
141
+ "inputs": [],
142
+ "name": "UNSAFE_CAST",
143
+ "type": "error"
144
+ },
145
+ {
146
+ "inputs": [],
147
+ "name": "UNSUPPORTED_UUID",
148
+ "type": "error"
149
+ },
11
150
  {
12
151
  "anonymous": false,
13
152
  "inputs": [
14
153
  {
15
154
  "indexed": false,
155
+ "internalType": "uint256",
156
+ "name": "prevDelay",
157
+ "type": "uint256"
158
+ },
159
+ {
160
+ "indexed": false,
161
+ "internalType": "uint256",
162
+ "name": "newDelay",
163
+ "type": "uint256"
164
+ }
165
+ ],
166
+ "name": "DelayUpdated",
167
+ "type": "event"
168
+ },
169
+ {
170
+ "anonymous": false,
171
+ "inputs": [
172
+ {
173
+ "indexed": false,
174
+ "internalType": "uint256",
175
+ "name": "prevGracePeriod",
176
+ "type": "uint256"
177
+ },
178
+ {
179
+ "indexed": false,
180
+ "internalType": "uint256",
181
+ "name": "newGracePeriod",
182
+ "type": "uint256"
183
+ }
184
+ ],
185
+ "name": "GracePeriodUpdated",
186
+ "type": "event"
187
+ },
188
+ {
189
+ "anonymous": false,
190
+ "inputs": [
191
+ {
192
+ "indexed": false,
193
+ "internalType": "uint256",
194
+ "name": "version",
195
+ "type": "uint256"
196
+ }
197
+ ],
198
+ "name": "Initialized",
199
+ "type": "event"
200
+ },
201
+ {
202
+ "anonymous": false,
203
+ "inputs": [
204
+ {
205
+ "indexed": true,
16
206
  "internalType": "address",
17
- "name": "previousAdmin",
207
+ "name": "owner",
18
208
  "type": "address"
19
209
  },
20
210
  {
21
- "indexed": false,
211
+ "indexed": true,
22
212
  "internalType": "address",
23
- "name": "newAdmin",
213
+ "name": "canceledOwner",
24
214
  "type": "address"
25
215
  }
26
216
  ],
27
- "name": "AdminChanged",
217
+ "name": "OwnerCanceled",
28
218
  "type": "event"
29
219
  },
30
220
  {
@@ -33,11 +223,17 @@ exports.Treasury_jsonAbi = [
33
223
  {
34
224
  "indexed": true,
35
225
  "internalType": "address",
36
- "name": "beacon",
226
+ "name": "owner",
227
+ "type": "address"
228
+ },
229
+ {
230
+ "indexed": true,
231
+ "internalType": "address",
232
+ "name": "pendingOwner",
37
233
  "type": "address"
38
234
  }
39
235
  ],
40
- "name": "BeaconUpgraded",
236
+ "name": "OwnerPending",
41
237
  "type": "event"
42
238
  },
43
239
  {
@@ -46,7 +242,7 @@ exports.Treasury_jsonAbi = [
46
242
  {
47
243
  "indexed": true,
48
244
  "internalType": "address",
49
- "name": "previousOwner",
245
+ "name": "prevOwner",
50
246
  "type": "address"
51
247
  },
52
248
  {
@@ -56,7 +252,7 @@ exports.Treasury_jsonAbi = [
56
252
  "type": "address"
57
253
  }
58
254
  ],
59
- "name": "OwnershipTransferred",
255
+ "name": "OwnerUpdated",
60
256
  "type": "event"
61
257
  },
62
258
  {
@@ -64,12 +260,12 @@ exports.Treasury_jsonAbi = [
64
260
  "inputs": [
65
261
  {
66
262
  "indexed": false,
67
- "internalType": "address",
68
- "name": "account",
69
- "type": "address"
263
+ "internalType": "bytes32",
264
+ "name": "proposalId",
265
+ "type": "bytes32"
70
266
  }
71
267
  ],
72
- "name": "Paused",
268
+ "name": "TransactionCanceled",
73
269
  "type": "event"
74
270
  },
75
271
  {
@@ -77,21 +273,58 @@ exports.Treasury_jsonAbi = [
77
273
  "inputs": [
78
274
  {
79
275
  "indexed": false,
80
- "internalType": "address",
81
- "name": "account",
82
- "type": "address"
276
+ "internalType": "bytes32",
277
+ "name": "proposalId",
278
+ "type": "bytes32"
279
+ },
280
+ {
281
+ "indexed": false,
282
+ "internalType": "address[]",
283
+ "name": "targets",
284
+ "type": "address[]"
285
+ },
286
+ {
287
+ "indexed": false,
288
+ "internalType": "uint256[]",
289
+ "name": "values",
290
+ "type": "uint256[]"
291
+ },
292
+ {
293
+ "indexed": false,
294
+ "internalType": "bytes[]",
295
+ "name": "payloads",
296
+ "type": "bytes[]"
83
297
  }
84
298
  ],
85
- "name": "Unpaused",
299
+ "name": "TransactionExecuted",
86
300
  "type": "event"
87
301
  },
88
302
  {
89
303
  "anonymous": false,
90
304
  "inputs": [
91
305
  {
92
- "indexed": true,
306
+ "indexed": false,
307
+ "internalType": "bytes32",
308
+ "name": "proposalId",
309
+ "type": "bytes32"
310
+ },
311
+ {
312
+ "indexed": false,
313
+ "internalType": "uint256",
314
+ "name": "timestamp",
315
+ "type": "uint256"
316
+ }
317
+ ],
318
+ "name": "TransactionScheduled",
319
+ "type": "event"
320
+ },
321
+ {
322
+ "anonymous": false,
323
+ "inputs": [
324
+ {
325
+ "indexed": false,
93
326
  "internalType": "address",
94
- "name": "implementation",
327
+ "name": "impl",
95
328
  "type": "address"
96
329
  }
97
330
  ],
@@ -100,74 +333,332 @@ exports.Treasury_jsonAbi = [
100
333
  },
101
334
  {
102
335
  "inputs": [],
103
- "name": "DEAD_ADDRESS",
336
+ "name": "acceptOwnership",
337
+ "outputs": [],
338
+ "stateMutability": "nonpayable",
339
+ "type": "function"
340
+ },
341
+ {
342
+ "inputs": [
343
+ {
344
+ "internalType": "bytes32",
345
+ "name": "_proposalId",
346
+ "type": "bytes32"
347
+ }
348
+ ],
349
+ "name": "cancel",
350
+ "outputs": [],
351
+ "stateMutability": "nonpayable",
352
+ "type": "function"
353
+ },
354
+ {
355
+ "inputs": [],
356
+ "name": "cancelOwnershipTransfer",
357
+ "outputs": [],
358
+ "stateMutability": "nonpayable",
359
+ "type": "function"
360
+ },
361
+ {
362
+ "inputs": [],
363
+ "name": "contractVersion",
364
+ "outputs": [
365
+ {
366
+ "internalType": "string",
367
+ "name": "",
368
+ "type": "string"
369
+ }
370
+ ],
371
+ "stateMutability": "pure",
372
+ "type": "function"
373
+ },
374
+ {
375
+ "inputs": [],
376
+ "name": "delay",
377
+ "outputs": [
378
+ {
379
+ "internalType": "uint256",
380
+ "name": "",
381
+ "type": "uint256"
382
+ }
383
+ ],
384
+ "stateMutability": "view",
385
+ "type": "function"
386
+ },
387
+ {
388
+ "inputs": [
389
+ {
390
+ "internalType": "address[]",
391
+ "name": "_targets",
392
+ "type": "address[]"
393
+ },
394
+ {
395
+ "internalType": "uint256[]",
396
+ "name": "_values",
397
+ "type": "uint256[]"
398
+ },
399
+ {
400
+ "internalType": "bytes[]",
401
+ "name": "_calldatas",
402
+ "type": "bytes[]"
403
+ },
404
+ {
405
+ "internalType": "bytes32",
406
+ "name": "_descriptionHash",
407
+ "type": "bytes32"
408
+ },
409
+ {
410
+ "internalType": "address",
411
+ "name": "_proposer",
412
+ "type": "address"
413
+ }
414
+ ],
415
+ "name": "execute",
416
+ "outputs": [],
417
+ "stateMutability": "payable",
418
+ "type": "function"
419
+ },
420
+ {
421
+ "inputs": [],
422
+ "name": "gracePeriod",
104
423
  "outputs": [
424
+ {
425
+ "internalType": "uint256",
426
+ "name": "",
427
+ "type": "uint256"
428
+ }
429
+ ],
430
+ "stateMutability": "view",
431
+ "type": "function"
432
+ },
433
+ {
434
+ "inputs": [
435
+ {
436
+ "internalType": "address[]",
437
+ "name": "_targets",
438
+ "type": "address[]"
439
+ },
440
+ {
441
+ "internalType": "uint256[]",
442
+ "name": "_values",
443
+ "type": "uint256[]"
444
+ },
445
+ {
446
+ "internalType": "bytes[]",
447
+ "name": "_calldatas",
448
+ "type": "bytes[]"
449
+ },
450
+ {
451
+ "internalType": "bytes32",
452
+ "name": "_descriptionHash",
453
+ "type": "bytes32"
454
+ },
105
455
  {
106
456
  "internalType": "address",
457
+ "name": "_proposer",
458
+ "type": "address"
459
+ }
460
+ ],
461
+ "name": "hashProposal",
462
+ "outputs": [
463
+ {
464
+ "internalType": "bytes32",
107
465
  "name": "",
466
+ "type": "bytes32"
467
+ }
468
+ ],
469
+ "stateMutability": "pure",
470
+ "type": "function"
471
+ },
472
+ {
473
+ "inputs": [
474
+ {
475
+ "internalType": "address",
476
+ "name": "_governor",
108
477
  "type": "address"
478
+ },
479
+ {
480
+ "internalType": "uint256",
481
+ "name": "_delay",
482
+ "type": "uint256"
483
+ }
484
+ ],
485
+ "name": "initialize",
486
+ "outputs": [],
487
+ "stateMutability": "nonpayable",
488
+ "type": "function"
489
+ },
490
+ {
491
+ "inputs": [
492
+ {
493
+ "internalType": "bytes32",
494
+ "name": "_proposalId",
495
+ "type": "bytes32"
496
+ }
497
+ ],
498
+ "name": "isExpired",
499
+ "outputs": [
500
+ {
501
+ "internalType": "bool",
502
+ "name": "",
503
+ "type": "bool"
109
504
  }
110
505
  ],
111
506
  "stateMutability": "view",
112
507
  "type": "function"
113
508
  },
114
509
  {
115
- "inputs": [],
116
- "name": "USDC",
510
+ "inputs": [
511
+ {
512
+ "internalType": "bytes32",
513
+ "name": "_proposalId",
514
+ "type": "bytes32"
515
+ }
516
+ ],
517
+ "name": "isQueued",
117
518
  "outputs": [
519
+ {
520
+ "internalType": "bool",
521
+ "name": "",
522
+ "type": "bool"
523
+ }
524
+ ],
525
+ "stateMutability": "view",
526
+ "type": "function"
527
+ },
528
+ {
529
+ "inputs": [
530
+ {
531
+ "internalType": "bytes32",
532
+ "name": "_proposalId",
533
+ "type": "bytes32"
534
+ }
535
+ ],
536
+ "name": "isReady",
537
+ "outputs": [
538
+ {
539
+ "internalType": "bool",
540
+ "name": "",
541
+ "type": "bool"
542
+ }
543
+ ],
544
+ "stateMutability": "view",
545
+ "type": "function"
546
+ },
547
+ {
548
+ "inputs": [
549
+ {
550
+ "internalType": "address",
551
+ "name": "",
552
+ "type": "address"
553
+ },
554
+ {
555
+ "internalType": "address",
556
+ "name": "",
557
+ "type": "address"
558
+ },
559
+ {
560
+ "internalType": "uint256[]",
561
+ "name": "",
562
+ "type": "uint256[]"
563
+ },
564
+ {
565
+ "internalType": "uint256[]",
566
+ "name": "",
567
+ "type": "uint256[]"
568
+ },
569
+ {
570
+ "internalType": "bytes",
571
+ "name": "",
572
+ "type": "bytes"
573
+ }
574
+ ],
575
+ "name": "onERC1155BatchReceived",
576
+ "outputs": [
577
+ {
578
+ "internalType": "bytes4",
579
+ "name": "",
580
+ "type": "bytes4"
581
+ }
582
+ ],
583
+ "stateMutability": "pure",
584
+ "type": "function"
585
+ },
586
+ {
587
+ "inputs": [
588
+ {
589
+ "internalType": "address",
590
+ "name": "",
591
+ "type": "address"
592
+ },
118
593
  {
119
594
  "internalType": "address",
120
595
  "name": "",
121
596
  "type": "address"
597
+ },
598
+ {
599
+ "internalType": "uint256",
600
+ "name": "",
601
+ "type": "uint256"
602
+ },
603
+ {
604
+ "internalType": "uint256",
605
+ "name": "",
606
+ "type": "uint256"
607
+ },
608
+ {
609
+ "internalType": "bytes",
610
+ "name": "",
611
+ "type": "bytes"
122
612
  }
123
613
  ],
124
- "stateMutability": "view",
125
- "type": "function"
126
- },
127
- {
128
- "inputs": [],
129
- "name": "dao",
614
+ "name": "onERC1155Received",
130
615
  "outputs": [
131
616
  {
132
- "internalType": "address",
617
+ "internalType": "bytes4",
133
618
  "name": "",
134
- "type": "address"
619
+ "type": "bytes4"
135
620
  }
136
621
  ],
137
- "stateMutability": "view",
622
+ "stateMutability": "pure",
138
623
  "type": "function"
139
624
  },
140
625
  {
141
626
  "inputs": [
142
627
  {
143
628
  "internalType": "address",
144
- "name": "_rvlt",
629
+ "name": "",
145
630
  "type": "address"
146
631
  },
147
632
  {
148
633
  "internalType": "address",
149
- "name": "_router",
634
+ "name": "",
150
635
  "type": "address"
151
636
  },
152
637
  {
153
- "internalType": "address",
154
- "name": "_usdc",
155
- "type": "address"
638
+ "internalType": "uint256",
639
+ "name": "",
640
+ "type": "uint256"
156
641
  },
157
642
  {
158
- "internalType": "address",
159
- "name": "_weth",
160
- "type": "address"
643
+ "internalType": "bytes",
644
+ "name": "",
645
+ "type": "bytes"
161
646
  }
162
647
  ],
163
- "name": "initialize",
164
- "outputs": [],
165
- "stateMutability": "nonpayable",
648
+ "name": "onERC721Received",
649
+ "outputs": [
650
+ {
651
+ "internalType": "bytes4",
652
+ "name": "",
653
+ "type": "bytes4"
654
+ }
655
+ ],
656
+ "stateMutability": "pure",
166
657
  "type": "function"
167
658
  },
168
659
  {
169
660
  "inputs": [],
170
- "name": "multSignWallet",
661
+ "name": "owner",
171
662
  "outputs": [
172
663
  {
173
664
  "internalType": "address",
@@ -180,7 +671,7 @@ exports.Treasury_jsonAbi = [
180
671
  },
181
672
  {
182
673
  "inputs": [],
183
- "name": "owner",
674
+ "name": "pendingOwner",
184
675
  "outputs": [
185
676
  {
186
677
  "internalType": "address",
@@ -193,45 +684,63 @@ exports.Treasury_jsonAbi = [
193
684
  },
194
685
  {
195
686
  "inputs": [],
196
- "name": "paused",
687
+ "name": "proxiableUUID",
197
688
  "outputs": [
198
689
  {
199
- "internalType": "bool",
690
+ "internalType": "bytes32",
200
691
  "name": "",
201
- "type": "bool"
692
+ "type": "bytes32"
202
693
  }
203
694
  ],
204
695
  "stateMutability": "view",
205
696
  "type": "function"
206
697
  },
207
698
  {
208
- "inputs": [],
209
- "name": "renounceOwnership",
210
- "outputs": [],
699
+ "inputs": [
700
+ {
701
+ "internalType": "bytes32",
702
+ "name": "_proposalId",
703
+ "type": "bytes32"
704
+ }
705
+ ],
706
+ "name": "queue",
707
+ "outputs": [
708
+ {
709
+ "internalType": "uint256",
710
+ "name": "eta",
711
+ "type": "uint256"
712
+ }
713
+ ],
211
714
  "stateMutability": "nonpayable",
212
715
  "type": "function"
213
716
  },
214
717
  {
215
- "inputs": [],
216
- "name": "router",
217
- "outputs": [
718
+ "inputs": [
218
719
  {
219
720
  "internalType": "address",
220
- "name": "",
721
+ "name": "_newOwner",
221
722
  "type": "address"
222
723
  }
223
724
  ],
224
- "stateMutability": "view",
725
+ "name": "safeTransferOwnership",
726
+ "outputs": [],
727
+ "stateMutability": "nonpayable",
225
728
  "type": "function"
226
729
  },
227
730
  {
228
- "inputs": [],
229
- "name": "rvlt",
731
+ "inputs": [
732
+ {
733
+ "internalType": "bytes32",
734
+ "name": "_proposalId",
735
+ "type": "bytes32"
736
+ }
737
+ ],
738
+ "name": "timestamp",
230
739
  "outputs": [
231
740
  {
232
- "internalType": "address",
741
+ "internalType": "uint256",
233
742
  "name": "",
234
- "type": "address"
743
+ "type": "uint256"
235
744
  }
236
745
  ],
237
746
  "stateMutability": "view",
@@ -241,7 +750,7 @@ exports.Treasury_jsonAbi = [
241
750
  "inputs": [
242
751
  {
243
752
  "internalType": "address",
244
- "name": "newOwner",
753
+ "name": "_newOwner",
245
754
  "type": "address"
246
755
  }
247
756
  ],
@@ -251,27 +760,27 @@ exports.Treasury_jsonAbi = [
251
760
  "type": "function"
252
761
  },
253
762
  {
254
- "inputs": [],
255
- "name": "uRvlt",
256
- "outputs": [
763
+ "inputs": [
257
764
  {
258
- "internalType": "address",
259
- "name": "",
260
- "type": "address"
765
+ "internalType": "uint256",
766
+ "name": "_newDelay",
767
+ "type": "uint256"
261
768
  }
262
769
  ],
263
- "stateMutability": "view",
770
+ "name": "updateDelay",
771
+ "outputs": [],
772
+ "stateMutability": "nonpayable",
264
773
  "type": "function"
265
774
  },
266
775
  {
267
776
  "inputs": [
268
777
  {
269
- "internalType": "address",
270
- "name": "newImplementation",
271
- "type": "address"
778
+ "internalType": "uint256",
779
+ "name": "_newGracePeriod",
780
+ "type": "uint256"
272
781
  }
273
782
  ],
274
- "name": "upgradeTo",
783
+ "name": "updateGracePeriod",
275
784
  "outputs": [],
276
785
  "stateMutability": "nonpayable",
277
786
  "type": "function"
@@ -280,39 +789,36 @@ exports.Treasury_jsonAbi = [
280
789
  "inputs": [
281
790
  {
282
791
  "internalType": "address",
283
- "name": "newImplementation",
792
+ "name": "_newImpl",
284
793
  "type": "address"
285
- },
286
- {
287
- "internalType": "bytes",
288
- "name": "data",
289
- "type": "bytes"
290
794
  }
291
795
  ],
292
- "name": "upgradeToAndCall",
796
+ "name": "upgradeTo",
293
797
  "outputs": [],
294
- "stateMutability": "payable",
798
+ "stateMutability": "nonpayable",
295
799
  "type": "function"
296
800
  },
297
801
  {
298
802
  "inputs": [
299
803
  {
300
804
  "internalType": "address",
301
- "name": "token",
805
+ "name": "_newImpl",
302
806
  "type": "address"
807
+ },
808
+ {
809
+ "internalType": "bytes",
810
+ "name": "_data",
811
+ "type": "bytes"
303
812
  }
304
813
  ],
305
- "name": "withdrawAdmin",
814
+ "name": "upgradeToAndCall",
306
815
  "outputs": [],
307
- "stateMutability": "nonpayable",
816
+ "stateMutability": "payable",
308
817
  "type": "function"
309
818
  },
310
819
  {
311
- "inputs": [],
312
- "name": "withdrawETHAdmin",
313
- "outputs": [],
314
- "stateMutability": "nonpayable",
315
- "type": "function"
820
+ "stateMutability": "payable",
821
+ "type": "receive"
316
822
  }
317
823
  ];
318
824
  /**
@@ -373,32 +879,74 @@ class Treasury_json {
373
879
  return this.contract;
374
880
  }
375
881
  /**
376
- * DEAD_ADDRESS
882
+ * contractVersion
883
+ * pure
884
+ */
885
+ async contractVersion() {
886
+ return this.contract.read.contractVersion();
887
+ }
888
+ /**
889
+ * delay
890
+ * view
891
+ */
892
+ async delay() {
893
+ return this.contract.read.delay();
894
+ }
895
+ /**
896
+ * gracePeriod
377
897
  * view
378
898
  */
379
- async DEAD_ADDRESS() {
380
- return this.contract.read.DEAD_ADDRESS();
899
+ async gracePeriod() {
900
+ return this.contract.read.gracePeriod();
901
+ }
902
+ /**
903
+ * hashProposal
904
+ * pure
905
+ */
906
+ async hashProposal(_targets, _values, _calldatas, _descriptionHash, _proposer) {
907
+ return this.contract.read.hashProposal([_targets, _values, _calldatas, _descriptionHash, _proposer]);
381
908
  }
382
909
  /**
383
- * USDC
910
+ * isExpired
384
911
  * view
385
912
  */
386
- async USDC() {
387
- return this.contract.read.USDC();
913
+ async isExpired(_proposalId) {
914
+ return this.contract.read.isExpired([_proposalId]);
388
915
  }
389
916
  /**
390
- * dao
917
+ * isQueued
391
918
  * view
392
919
  */
393
- async dao() {
394
- return this.contract.read.dao();
920
+ async isQueued(_proposalId) {
921
+ return this.contract.read.isQueued([_proposalId]);
395
922
  }
396
923
  /**
397
- * multSignWallet
924
+ * isReady
398
925
  * view
399
926
  */
400
- async multSignWallet() {
401
- return this.contract.read.multSignWallet();
927
+ async isReady(_proposalId) {
928
+ return this.contract.read.isReady([_proposalId]);
929
+ }
930
+ /**
931
+ * onERC1155BatchReceived
932
+ * pure
933
+ */
934
+ async onERC1155BatchReceived(arg0, arg1, arg2, arg3, arg4) {
935
+ return this.contract.read.onERC1155BatchReceived([arg0, arg1, arg2, arg3, arg4]);
936
+ }
937
+ /**
938
+ * onERC1155Received
939
+ * pure
940
+ */
941
+ async onERC1155Received(arg0, arg1, arg2, arg3, arg4) {
942
+ return this.contract.read.onERC1155Received([arg0, arg1, arg2, arg3, arg4]);
943
+ }
944
+ /**
945
+ * onERC721Received
946
+ * pure
947
+ */
948
+ async onERC721Received(arg0, arg1, arg2, arg3) {
949
+ return this.contract.read.onERC721Received([arg0, arg1, arg2, arg3]);
402
950
  }
403
951
  /**
404
952
  * owner
@@ -408,109 +956,157 @@ class Treasury_json {
408
956
  return this.contract.read.owner();
409
957
  }
410
958
  /**
411
- * paused
959
+ * pendingOwner
412
960
  * view
413
961
  */
414
- async paused() {
415
- return this.contract.read.paused();
962
+ async pendingOwner() {
963
+ return this.contract.read.pendingOwner();
416
964
  }
417
965
  /**
418
- * router
966
+ * proxiableUUID
419
967
  * view
420
968
  */
421
- async router() {
422
- return this.contract.read.router();
969
+ async proxiableUUID() {
970
+ return this.contract.read.proxiableUUID();
423
971
  }
424
972
  /**
425
- * rvlt
973
+ * timestamp
426
974
  * view
427
975
  */
428
- async rvlt() {
429
- return this.contract.read.rvlt();
976
+ async timestamp(_proposalId) {
977
+ return this.contract.read.timestamp([_proposalId]);
430
978
  }
431
979
  /**
432
- * uRvlt
433
- * view
980
+ * acceptOwnership
981
+ * nonpayable
982
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
983
+ */
984
+ async acceptOwnership(options) {
985
+ if (!this.contract.write) {
986
+ throw new Error('Wallet client is required for write operations');
987
+ }
988
+ return this.contract.write.acceptOwnership(options);
989
+ }
990
+ /**
991
+ * cancel
992
+ * nonpayable
993
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
994
+ */
995
+ async cancel(_proposalId, options) {
996
+ if (!this.contract.write) {
997
+ throw new Error('Wallet client is required for write operations');
998
+ }
999
+ return this.contract.write.cancel([_proposalId], options);
1000
+ }
1001
+ /**
1002
+ * cancelOwnershipTransfer
1003
+ * nonpayable
1004
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1005
+ */
1006
+ async cancelOwnershipTransfer(options) {
1007
+ if (!this.contract.write) {
1008
+ throw new Error('Wallet client is required for write operations');
1009
+ }
1010
+ return this.contract.write.cancelOwnershipTransfer(options);
1011
+ }
1012
+ /**
1013
+ * execute
1014
+ * payable
1015
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
434
1016
  */
435
- async uRvlt() {
436
- return this.contract.read.uRvlt();
1017
+ async execute(_targets, _values, _calldatas, _descriptionHash, _proposer, options) {
1018
+ if (!this.contract.write) {
1019
+ throw new Error('Wallet client is required for write operations');
1020
+ }
1021
+ return this.contract.write.execute([_targets, _values, _calldatas, _descriptionHash, _proposer], options);
437
1022
  }
438
1023
  /**
439
1024
  * initialize
440
1025
  * nonpayable
441
1026
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
442
1027
  */
443
- async initialize(_rvlt, _router, _usdc, _weth, options) {
1028
+ async initialize(_governor, _delay, options) {
444
1029
  if (!this.contract.write) {
445
1030
  throw new Error('Wallet client is required for write operations');
446
1031
  }
447
- return this.contract.write.initialize([_rvlt, _router, _usdc, _weth], options);
1032
+ return this.contract.write.initialize([_governor, _delay], options);
448
1033
  }
449
1034
  /**
450
- * renounceOwnership
1035
+ * queue
451
1036
  * nonpayable
452
1037
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
453
1038
  */
454
- async renounceOwnership(options) {
1039
+ async queue(_proposalId, options) {
455
1040
  if (!this.contract.write) {
456
1041
  throw new Error('Wallet client is required for write operations');
457
1042
  }
458
- return this.contract.write.renounceOwnership(options);
1043
+ return this.contract.write.queue([_proposalId], options);
459
1044
  }
460
1045
  /**
461
- * transferOwnership
1046
+ * safeTransferOwnership
462
1047
  * nonpayable
463
1048
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
464
1049
  */
465
- async transferOwnership(newOwner, options) {
1050
+ async safeTransferOwnership(_newOwner, options) {
466
1051
  if (!this.contract.write) {
467
1052
  throw new Error('Wallet client is required for write operations');
468
1053
  }
469
- return this.contract.write.transferOwnership([newOwner], options);
1054
+ return this.contract.write.safeTransferOwnership([_newOwner], options);
470
1055
  }
471
1056
  /**
472
- * upgradeTo
1057
+ * transferOwnership
473
1058
  * nonpayable
474
1059
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
475
1060
  */
476
- async upgradeTo(newImplementation, options) {
1061
+ async transferOwnership(_newOwner, options) {
477
1062
  if (!this.contract.write) {
478
1063
  throw new Error('Wallet client is required for write operations');
479
1064
  }
480
- return this.contract.write.upgradeTo([newImplementation], options);
1065
+ return this.contract.write.transferOwnership([_newOwner], options);
481
1066
  }
482
1067
  /**
483
- * upgradeToAndCall
484
- * payable
1068
+ * updateDelay
1069
+ * nonpayable
485
1070
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
486
1071
  */
487
- async upgradeToAndCall(newImplementation, data, options) {
1072
+ async updateDelay(_newDelay, options) {
488
1073
  if (!this.contract.write) {
489
1074
  throw new Error('Wallet client is required for write operations');
490
1075
  }
491
- return this.contract.write.upgradeToAndCall([newImplementation, data], options);
1076
+ return this.contract.write.updateDelay([_newDelay], options);
492
1077
  }
493
1078
  /**
494
- * withdrawAdmin
1079
+ * updateGracePeriod
495
1080
  * nonpayable
496
1081
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
497
1082
  */
498
- async withdrawAdmin(token, options) {
1083
+ async updateGracePeriod(_newGracePeriod, options) {
499
1084
  if (!this.contract.write) {
500
1085
  throw new Error('Wallet client is required for write operations');
501
1086
  }
502
- return this.contract.write.withdrawAdmin([token], options);
1087
+ return this.contract.write.updateGracePeriod([_newGracePeriod], options);
503
1088
  }
504
1089
  /**
505
- * withdrawETHAdmin
1090
+ * upgradeTo
506
1091
  * nonpayable
507
1092
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
508
1093
  */
509
- async withdrawETHAdmin(options) {
1094
+ async upgradeTo(_newImpl, options) {
1095
+ if (!this.contract.write) {
1096
+ throw new Error('Wallet client is required for write operations');
1097
+ }
1098
+ return this.contract.write.upgradeTo([_newImpl], options);
1099
+ }
1100
+ /**
1101
+ * upgradeToAndCall
1102
+ * payable
1103
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1104
+ */
1105
+ async upgradeToAndCall(_newImpl, _data, options) {
510
1106
  if (!this.contract.write) {
511
1107
  throw new Error('Wallet client is required for write operations');
512
1108
  }
513
- return this.contract.write.withdrawETHAdmin(options);
1109
+ return this.contract.write.upgradeToAndCall([_newImpl, _data], options);
514
1110
  }
515
1111
  /**
516
1112
  * Simulate contract write operations (dry-run without sending transaction)
@@ -526,61 +1122,101 @@ class Treasury_json {
526
1122
  throw new Error('Public client is required for simulation');
527
1123
  }
528
1124
  return {
1125
+ /**
1126
+ * Simulate acceptOwnership
1127
+ * Returns gas estimate and result without sending transaction
1128
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1129
+ */
1130
+ async acceptOwnership(options) {
1131
+ return contract.simulate.acceptOwnership(options);
1132
+ },
1133
+ /**
1134
+ * Simulate cancel
1135
+ * Returns gas estimate and result without sending transaction
1136
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1137
+ */
1138
+ async cancel(_proposalId, options) {
1139
+ return contract.simulate.cancel([_proposalId], options);
1140
+ },
1141
+ /**
1142
+ * Simulate cancelOwnershipTransfer
1143
+ * Returns gas estimate and result without sending transaction
1144
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1145
+ */
1146
+ async cancelOwnershipTransfer(options) {
1147
+ return contract.simulate.cancelOwnershipTransfer(options);
1148
+ },
1149
+ /**
1150
+ * Simulate execute
1151
+ * Returns gas estimate and result without sending transaction
1152
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1153
+ */
1154
+ async execute(_targets, _values, _calldatas, _descriptionHash, _proposer, options) {
1155
+ return contract.simulate.execute([_targets, _values, _calldatas, _descriptionHash, _proposer], options);
1156
+ },
529
1157
  /**
530
1158
  * Simulate initialize
531
1159
  * Returns gas estimate and result without sending transaction
532
1160
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
533
1161
  */
534
- async initialize(_rvlt, _router, _usdc, _weth, options) {
535
- return contract.simulate.initialize([_rvlt, _router, _usdc, _weth], options);
1162
+ async initialize(_governor, _delay, options) {
1163
+ return contract.simulate.initialize([_governor, _delay], options);
1164
+ },
1165
+ /**
1166
+ * Simulate queue
1167
+ * Returns gas estimate and result without sending transaction
1168
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1169
+ */
1170
+ async queue(_proposalId, options) {
1171
+ return contract.simulate.queue([_proposalId], options);
536
1172
  },
537
1173
  /**
538
- * Simulate renounceOwnership
1174
+ * Simulate safeTransferOwnership
539
1175
  * Returns gas estimate and result without sending transaction
540
1176
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
541
1177
  */
542
- async renounceOwnership(options) {
543
- return contract.simulate.renounceOwnership(options);
1178
+ async safeTransferOwnership(_newOwner, options) {
1179
+ return contract.simulate.safeTransferOwnership([_newOwner], options);
544
1180
  },
545
1181
  /**
546
1182
  * Simulate transferOwnership
547
1183
  * Returns gas estimate and result without sending transaction
548
1184
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
549
1185
  */
550
- async transferOwnership(newOwner, options) {
551
- return contract.simulate.transferOwnership([newOwner], options);
1186
+ async transferOwnership(_newOwner, options) {
1187
+ return contract.simulate.transferOwnership([_newOwner], options);
552
1188
  },
553
1189
  /**
554
- * Simulate upgradeTo
1190
+ * Simulate updateDelay
555
1191
  * Returns gas estimate and result without sending transaction
556
1192
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
557
1193
  */
558
- async upgradeTo(newImplementation, options) {
559
- return contract.simulate.upgradeTo([newImplementation], options);
1194
+ async updateDelay(_newDelay, options) {
1195
+ return contract.simulate.updateDelay([_newDelay], options);
560
1196
  },
561
1197
  /**
562
- * Simulate upgradeToAndCall
1198
+ * Simulate updateGracePeriod
563
1199
  * Returns gas estimate and result without sending transaction
564
1200
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
565
1201
  */
566
- async upgradeToAndCall(newImplementation, data, options) {
567
- return contract.simulate.upgradeToAndCall([newImplementation, data], options);
1202
+ async updateGracePeriod(_newGracePeriod, options) {
1203
+ return contract.simulate.updateGracePeriod([_newGracePeriod], options);
568
1204
  },
569
1205
  /**
570
- * Simulate withdrawAdmin
1206
+ * Simulate upgradeTo
571
1207
  * Returns gas estimate and result without sending transaction
572
1208
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
573
1209
  */
574
- async withdrawAdmin(token, options) {
575
- return contract.simulate.withdrawAdmin([token], options);
1210
+ async upgradeTo(_newImpl, options) {
1211
+ return contract.simulate.upgradeTo([_newImpl], options);
576
1212
  },
577
1213
  /**
578
- * Simulate withdrawETHAdmin
1214
+ * Simulate upgradeToAndCall
579
1215
  * Returns gas estimate and result without sending transaction
580
1216
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
581
1217
  */
582
- async withdrawETHAdmin(options) {
583
- return contract.simulate.withdrawETHAdmin(options);
1218
+ async upgradeToAndCall(_newImpl, _data, options) {
1219
+ return contract.simulate.upgradeToAndCall([_newImpl, _data], options);
584
1220
  }
585
1221
  };
586
1222
  }
@@ -599,16 +1235,52 @@ class Treasury_json {
599
1235
  get watch() {
600
1236
  return {
601
1237
  /**
602
- * Watch AdminChanged events
1238
+ * Watch DelayUpdated events
1239
+ * @param callback Function to call when event is emitted
1240
+ * @param filter Optional filter for indexed parameters
1241
+ * @returns Unwatch function to stop listening
1242
+ */
1243
+ DelayUpdated: (callback) => {
1244
+ return this.publicClient.watchContractEvent({
1245
+ address: this.contractAddress,
1246
+ abi: exports.Treasury_jsonAbi,
1247
+ eventName: 'DelayUpdated',
1248
+ onLogs: (logs) => {
1249
+ logs.forEach((log) => {
1250
+ callback(log.args);
1251
+ });
1252
+ },
1253
+ });
1254
+ },
1255
+ /**
1256
+ * Watch GracePeriodUpdated events
1257
+ * @param callback Function to call when event is emitted
1258
+ * @param filter Optional filter for indexed parameters
1259
+ * @returns Unwatch function to stop listening
1260
+ */
1261
+ GracePeriodUpdated: (callback) => {
1262
+ return this.publicClient.watchContractEvent({
1263
+ address: this.contractAddress,
1264
+ abi: exports.Treasury_jsonAbi,
1265
+ eventName: 'GracePeriodUpdated',
1266
+ onLogs: (logs) => {
1267
+ logs.forEach((log) => {
1268
+ callback(log.args);
1269
+ });
1270
+ },
1271
+ });
1272
+ },
1273
+ /**
1274
+ * Watch Initialized events
603
1275
  * @param callback Function to call when event is emitted
604
1276
  * @param filter Optional filter for indexed parameters
605
1277
  * @returns Unwatch function to stop listening
606
1278
  */
607
- AdminChanged: (callback) => {
1279
+ Initialized: (callback) => {
608
1280
  return this.publicClient.watchContractEvent({
609
1281
  address: this.contractAddress,
610
1282
  abi: exports.Treasury_jsonAbi,
611
- eventName: 'AdminChanged',
1283
+ eventName: 'Initialized',
612
1284
  onLogs: (logs) => {
613
1285
  logs.forEach((log) => {
614
1286
  callback(log.args);
@@ -617,16 +1289,16 @@ class Treasury_json {
617
1289
  });
618
1290
  },
619
1291
  /**
620
- * Watch BeaconUpgraded events
1292
+ * Watch OwnerCanceled events
621
1293
  * @param callback Function to call when event is emitted
622
1294
  * @param filter Optional filter for indexed parameters
623
1295
  * @returns Unwatch function to stop listening
624
1296
  */
625
- BeaconUpgraded: (callback, filter) => {
1297
+ OwnerCanceled: (callback, filter) => {
626
1298
  return this.publicClient.watchContractEvent({
627
1299
  address: this.contractAddress,
628
1300
  abi: exports.Treasury_jsonAbi,
629
- eventName: 'BeaconUpgraded',
1301
+ eventName: 'OwnerCanceled',
630
1302
  args: filter,
631
1303
  onLogs: (logs) => {
632
1304
  logs.forEach((log) => {
@@ -636,16 +1308,16 @@ class Treasury_json {
636
1308
  });
637
1309
  },
638
1310
  /**
639
- * Watch OwnershipTransferred events
1311
+ * Watch OwnerPending events
640
1312
  * @param callback Function to call when event is emitted
641
1313
  * @param filter Optional filter for indexed parameters
642
1314
  * @returns Unwatch function to stop listening
643
1315
  */
644
- OwnershipTransferred: (callback, filter) => {
1316
+ OwnerPending: (callback, filter) => {
645
1317
  return this.publicClient.watchContractEvent({
646
1318
  address: this.contractAddress,
647
1319
  abi: exports.Treasury_jsonAbi,
648
- eventName: 'OwnershipTransferred',
1320
+ eventName: 'OwnerPending',
649
1321
  args: filter,
650
1322
  onLogs: (logs) => {
651
1323
  logs.forEach((log) => {
@@ -655,16 +1327,35 @@ class Treasury_json {
655
1327
  });
656
1328
  },
657
1329
  /**
658
- * Watch Paused events
1330
+ * Watch OwnerUpdated events
659
1331
  * @param callback Function to call when event is emitted
660
1332
  * @param filter Optional filter for indexed parameters
661
1333
  * @returns Unwatch function to stop listening
662
1334
  */
663
- Paused: (callback) => {
1335
+ OwnerUpdated: (callback, filter) => {
664
1336
  return this.publicClient.watchContractEvent({
665
1337
  address: this.contractAddress,
666
1338
  abi: exports.Treasury_jsonAbi,
667
- eventName: 'Paused',
1339
+ eventName: 'OwnerUpdated',
1340
+ args: filter,
1341
+ onLogs: (logs) => {
1342
+ logs.forEach((log) => {
1343
+ callback(log.args);
1344
+ });
1345
+ },
1346
+ });
1347
+ },
1348
+ /**
1349
+ * Watch TransactionCanceled events
1350
+ * @param callback Function to call when event is emitted
1351
+ * @param filter Optional filter for indexed parameters
1352
+ * @returns Unwatch function to stop listening
1353
+ */
1354
+ TransactionCanceled: (callback) => {
1355
+ return this.publicClient.watchContractEvent({
1356
+ address: this.contractAddress,
1357
+ abi: exports.Treasury_jsonAbi,
1358
+ eventName: 'TransactionCanceled',
668
1359
  onLogs: (logs) => {
669
1360
  logs.forEach((log) => {
670
1361
  callback(log.args);
@@ -673,16 +1364,34 @@ class Treasury_json {
673
1364
  });
674
1365
  },
675
1366
  /**
676
- * Watch Unpaused events
1367
+ * Watch TransactionExecuted events
677
1368
  * @param callback Function to call when event is emitted
678
1369
  * @param filter Optional filter for indexed parameters
679
1370
  * @returns Unwatch function to stop listening
680
1371
  */
681
- Unpaused: (callback) => {
1372
+ TransactionExecuted: (callback) => {
682
1373
  return this.publicClient.watchContractEvent({
683
1374
  address: this.contractAddress,
684
1375
  abi: exports.Treasury_jsonAbi,
685
- eventName: 'Unpaused',
1376
+ eventName: 'TransactionExecuted',
1377
+ onLogs: (logs) => {
1378
+ logs.forEach((log) => {
1379
+ callback(log.args);
1380
+ });
1381
+ },
1382
+ });
1383
+ },
1384
+ /**
1385
+ * Watch TransactionScheduled events
1386
+ * @param callback Function to call when event is emitted
1387
+ * @param filter Optional filter for indexed parameters
1388
+ * @returns Unwatch function to stop listening
1389
+ */
1390
+ TransactionScheduled: (callback) => {
1391
+ return this.publicClient.watchContractEvent({
1392
+ address: this.contractAddress,
1393
+ abi: exports.Treasury_jsonAbi,
1394
+ eventName: 'TransactionScheduled',
686
1395
  onLogs: (logs) => {
687
1396
  logs.forEach((log) => {
688
1397
  callback(log.args);
@@ -696,12 +1405,11 @@ class Treasury_json {
696
1405
  * @param filter Optional filter for indexed parameters
697
1406
  * @returns Unwatch function to stop listening
698
1407
  */
699
- Upgraded: (callback, filter) => {
1408
+ Upgraded: (callback) => {
700
1409
  return this.publicClient.watchContractEvent({
701
1410
  address: this.contractAddress,
702
1411
  abi: exports.Treasury_jsonAbi,
703
1412
  eventName: 'Upgraded',
704
- args: filter,
705
1413
  onLogs: (logs) => {
706
1414
  logs.forEach((log) => {
707
1415
  callback(log.args);