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