@gitmyabi/treasury 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,49 +13,67 @@ export const Treasury_jsonAbi = [
13
13
  {
14
14
  "indexed": false,
15
15
  "internalType": "address",
16
- "name": "previousAdmin",
16
+ "name": "factory",
17
17
  "type": "address"
18
18
  },
19
19
  {
20
20
  "indexed": false,
21
21
  "internalType": "address",
22
- "name": "newAdmin",
22
+ "name": "ruleList",
23
+ "type": "address"
24
+ },
25
+ {
26
+ "indexed": false,
27
+ "internalType": "address",
28
+ "name": "escrowedDeposit",
23
29
  "type": "address"
24
30
  }
25
31
  ],
26
- "name": "AdminChanged",
32
+ "name": "connectedContracts",
27
33
  "type": "event"
28
34
  },
29
35
  {
30
36
  "anonymous": false,
31
37
  "inputs": [
32
38
  {
33
- "indexed": true,
34
- "internalType": "address",
35
- "name": "beacon",
36
- "type": "address"
39
+ "indexed": false,
40
+ "internalType": "uint256",
41
+ "name": "speedBumpIndex",
42
+ "type": "uint256"
43
+ },
44
+ {
45
+ "indexed": false,
46
+ "internalType": "uint256",
47
+ "name": "timeCreated",
48
+ "type": "uint256"
49
+ },
50
+ {
51
+ "indexed": false,
52
+ "internalType": "uint256",
53
+ "name": "speedBumpHours",
54
+ "type": "uint256"
37
55
  }
38
56
  ],
39
- "name": "BeaconUpgraded",
57
+ "name": "updatedSpeedBump",
40
58
  "type": "event"
41
59
  },
42
60
  {
43
61
  "anonymous": false,
44
62
  "inputs": [
45
63
  {
46
- "indexed": true,
47
- "internalType": "address",
48
- "name": "previousOwner",
49
- "type": "address"
64
+ "indexed": false,
65
+ "internalType": "string",
66
+ "name": "verificationDetails",
67
+ "type": "string"
50
68
  },
51
69
  {
52
- "indexed": true,
53
- "internalType": "address",
54
- "name": "newOwner",
55
- "type": "address"
70
+ "indexed": false,
71
+ "internalType": "string",
72
+ "name": "locationOfDetails",
73
+ "type": "string"
56
74
  }
57
75
  ],
58
- "name": "OwnershipTransferred",
76
+ "name": "updatedTreasuryFunctionVerification",
59
77
  "type": "event"
60
78
  },
61
79
  {
@@ -64,11 +82,23 @@ export const Treasury_jsonAbi = [
64
82
  {
65
83
  "indexed": false,
66
84
  "internalType": "address",
67
- "name": "account",
85
+ "name": "newWithdrawalAddress",
86
+ "type": "address"
87
+ },
88
+ {
89
+ "indexed": false,
90
+ "internalType": "address",
91
+ "name": "newOperator",
68
92
  "type": "address"
93
+ },
94
+ {
95
+ "indexed": false,
96
+ "internalType": "bool",
97
+ "name": "circuitBreaker",
98
+ "type": "bool"
69
99
  }
70
100
  ],
71
- "name": "Paused",
101
+ "name": "updatedTreasuryMainVariables",
72
102
  "type": "event"
73
103
  },
74
104
  {
@@ -76,30 +106,51 @@ export const Treasury_jsonAbi = [
76
106
  "inputs": [
77
107
  {
78
108
  "indexed": false,
79
- "internalType": "address",
80
- "name": "account",
81
- "type": "address"
109
+ "internalType": "uint16",
110
+ "name": "mappDisputeFeeMultipler",
111
+ "type": "uint16"
112
+ },
113
+ {
114
+ "indexed": false,
115
+ "internalType": "uint16",
116
+ "name": "commissionDivider",
117
+ "type": "uint16"
118
+ },
119
+ {
120
+ "indexed": false,
121
+ "internalType": "uint16",
122
+ "name": "gatewayPenaltyMultipler",
123
+ "type": "uint16"
124
+ },
125
+ {
126
+ "indexed": false,
127
+ "internalType": "uint16",
128
+ "name": "treasuryPenaltyMultipler",
129
+ "type": "uint16"
82
130
  }
83
131
  ],
84
- "name": "Unpaused",
132
+ "name": "updatedTreasuryVariables",
85
133
  "type": "event"
86
134
  },
87
135
  {
88
- "anonymous": false,
89
- "inputs": [
136
+ "constant": true,
137
+ "inputs": [],
138
+ "name": "QNTAddress",
139
+ "outputs": [
90
140
  {
91
- "indexed": true,
92
141
  "internalType": "address",
93
- "name": "implementation",
142
+ "name": "",
94
143
  "type": "address"
95
144
  }
96
145
  ],
97
- "name": "Upgraded",
98
- "type": "event"
146
+ "payable": false,
147
+ "stateMutability": "view",
148
+ "type": "function"
99
149
  },
100
150
  {
151
+ "constant": true,
101
152
  "inputs": [],
102
- "name": "DEAD_ADDRESS",
153
+ "name": "admin",
103
154
  "outputs": [
104
155
  {
105
156
  "internalType": "address",
@@ -107,25 +158,79 @@ export const Treasury_jsonAbi = [
107
158
  "type": "address"
108
159
  }
109
160
  ],
161
+ "payable": false,
110
162
  "stateMutability": "view",
111
163
  "type": "function"
112
164
  },
113
165
  {
166
+ "constant": false,
167
+ "inputs": [
168
+ {
169
+ "internalType": "address",
170
+ "name": "nextAdmin",
171
+ "type": "address"
172
+ },
173
+ {
174
+ "internalType": "address",
175
+ "name": "nextImplementation",
176
+ "type": "address"
177
+ }
178
+ ],
179
+ "name": "changeProxyVariables",
180
+ "outputs": [],
181
+ "payable": false,
182
+ "stateMutability": "nonpayable",
183
+ "type": "function"
184
+ },
185
+ {
186
+ "constant": true,
114
187
  "inputs": [],
115
- "name": "USDC",
188
+ "name": "circuitBreakerOn",
116
189
  "outputs": [
117
190
  {
118
- "internalType": "address",
191
+ "internalType": "bool",
119
192
  "name": "",
120
- "type": "address"
193
+ "type": "bool"
194
+ }
195
+ ],
196
+ "payable": false,
197
+ "stateMutability": "view",
198
+ "type": "function"
199
+ },
200
+ {
201
+ "constant": true,
202
+ "inputs": [],
203
+ "name": "commissionDivider",
204
+ "outputs": [
205
+ {
206
+ "internalType": "uint16",
207
+ "name": "",
208
+ "type": "uint16"
121
209
  }
122
210
  ],
211
+ "payable": false,
123
212
  "stateMutability": "view",
124
213
  "type": "function"
125
214
  },
126
215
  {
216
+ "constant": true,
127
217
  "inputs": [],
128
- "name": "dao",
218
+ "name": "gatewayPenaltyMultipler",
219
+ "outputs": [
220
+ {
221
+ "internalType": "uint16",
222
+ "name": "",
223
+ "type": "uint16"
224
+ }
225
+ ],
226
+ "payable": false,
227
+ "stateMutability": "view",
228
+ "type": "function"
229
+ },
230
+ {
231
+ "constant": true,
232
+ "inputs": [],
233
+ "name": "implementation",
129
234
  "outputs": [
130
235
  {
131
236
  "internalType": "address",
@@ -133,86 +238,154 @@ export const Treasury_jsonAbi = [
133
238
  "type": "address"
134
239
  }
135
240
  ],
241
+ "payable": false,
136
242
  "stateMutability": "view",
137
243
  "type": "function"
138
244
  },
139
245
  {
246
+ "constant": false,
140
247
  "inputs": [
141
248
  {
142
249
  "internalType": "address",
143
- "name": "_rvlt",
250
+ "name": "thisQNTAddress",
144
251
  "type": "address"
145
252
  },
146
253
  {
147
254
  "internalType": "address",
148
- "name": "_router",
255
+ "name": "thisOperatorAddress",
149
256
  "type": "address"
150
257
  },
151
258
  {
152
- "internalType": "address",
153
- "name": "_usdc",
154
- "type": "address"
259
+ "internalType": "uint16",
260
+ "name": "mappDisputeFee",
261
+ "type": "uint16"
155
262
  },
156
263
  {
157
- "internalType": "address",
158
- "name": "_weth",
159
- "type": "address"
264
+ "internalType": "uint16",
265
+ "name": "commission",
266
+ "type": "uint16"
267
+ },
268
+ {
269
+ "internalType": "uint16",
270
+ "name": "treasuryPenalty",
271
+ "type": "uint16"
272
+ },
273
+ {
274
+ "internalType": "uint16",
275
+ "name": "gatewayPenalty",
276
+ "type": "uint16"
277
+ },
278
+ {
279
+ "internalType": "uint16",
280
+ "name": "speedBumpTime",
281
+ "type": "uint16"
160
282
  }
161
283
  ],
162
284
  "name": "initialize",
163
285
  "outputs": [],
286
+ "payable": false,
164
287
  "stateMutability": "nonpayable",
165
288
  "type": "function"
166
289
  },
167
290
  {
291
+ "constant": true,
168
292
  "inputs": [],
169
- "name": "multSignWallet",
293
+ "name": "initialized",
170
294
  "outputs": [
171
295
  {
172
- "internalType": "address",
296
+ "internalType": "bool",
173
297
  "name": "",
174
- "type": "address"
298
+ "type": "bool"
175
299
  }
176
300
  ],
301
+ "payable": false,
177
302
  "stateMutability": "view",
178
303
  "type": "function"
179
304
  },
180
305
  {
306
+ "constant": true,
181
307
  "inputs": [],
182
- "name": "owner",
308
+ "name": "mappDisputeFeeMultipler",
183
309
  "outputs": [
184
310
  {
185
- "internalType": "address",
311
+ "internalType": "uint16",
186
312
  "name": "",
187
- "type": "address"
313
+ "type": "uint16"
188
314
  }
189
315
  ],
316
+ "payable": false,
190
317
  "stateMutability": "view",
191
318
  "type": "function"
192
319
  },
193
320
  {
321
+ "constant": true,
194
322
  "inputs": [],
195
- "name": "paused",
323
+ "name": "operatorAddress",
196
324
  "outputs": [
197
325
  {
198
- "internalType": "bool",
326
+ "internalType": "address",
199
327
  "name": "",
328
+ "type": "address"
329
+ }
330
+ ],
331
+ "payable": false,
332
+ "stateMutability": "view",
333
+ "type": "function"
334
+ },
335
+ {
336
+ "constant": true,
337
+ "inputs": [
338
+ {
339
+ "internalType": "bool",
340
+ "name": "gateway",
200
341
  "type": "bool"
201
342
  }
202
343
  ],
344
+ "name": "readFunctionPenaltyMultipler",
345
+ "outputs": [
346
+ {
347
+ "internalType": "uint256",
348
+ "name": "",
349
+ "type": "uint256"
350
+ }
351
+ ],
352
+ "payable": false,
203
353
  "stateMutability": "view",
204
354
  "type": "function"
205
355
  },
206
356
  {
357
+ "constant": false,
207
358
  "inputs": [],
208
- "name": "renounceOwnership",
359
+ "name": "setAdmin",
209
360
  "outputs": [],
361
+ "payable": false,
210
362
  "stateMutability": "nonpayable",
211
363
  "type": "function"
212
364
  },
213
365
  {
366
+ "constant": false,
214
367
  "inputs": [],
215
- "name": "router",
368
+ "name": "setImplementation",
369
+ "outputs": [],
370
+ "payable": false,
371
+ "stateMutability": "nonpayable",
372
+ "type": "function"
373
+ },
374
+ {
375
+ "constant": true,
376
+ "inputs": [
377
+ {
378
+ "internalType": "uint8",
379
+ "name": "index",
380
+ "type": "uint8"
381
+ },
382
+ {
383
+ "internalType": "uint8",
384
+ "name": "addressIndex",
385
+ "type": "uint8"
386
+ }
387
+ ],
388
+ "name": "speedBumpAddresses",
216
389
  "outputs": [
217
390
  {
218
391
  "internalType": "address",
@@ -220,96 +393,274 @@ export const Treasury_jsonAbi = [
220
393
  "type": "address"
221
394
  }
222
395
  ],
396
+ "payable": false,
223
397
  "stateMutability": "view",
224
398
  "type": "function"
225
399
  },
226
400
  {
227
- "inputs": [],
228
- "name": "rvlt",
401
+ "constant": true,
402
+ "inputs": [
403
+ {
404
+ "internalType": "uint8",
405
+ "name": "index",
406
+ "type": "uint8"
407
+ }
408
+ ],
409
+ "name": "speedBumpCircuitBreaker",
229
410
  "outputs": [
230
411
  {
231
- "internalType": "address",
412
+ "internalType": "bool",
232
413
  "name": "",
233
- "type": "address"
414
+ "type": "bool"
234
415
  }
235
416
  ],
417
+ "payable": false,
236
418
  "stateMutability": "view",
237
419
  "type": "function"
238
420
  },
239
421
  {
422
+ "constant": false,
240
423
  "inputs": [
241
424
  {
242
- "internalType": "address",
243
- "name": "newOwner",
244
- "type": "address"
425
+ "internalType": "address[]",
426
+ "name": "addresses",
427
+ "type": "address[]"
245
428
  }
246
429
  ],
247
- "name": "transferOwnership",
430
+ "name": "speedBumpContract",
248
431
  "outputs": [],
432
+ "payable": false,
249
433
  "stateMutability": "nonpayable",
250
434
  "type": "function"
251
435
  },
252
436
  {
253
- "inputs": [],
254
- "name": "uRvlt",
437
+ "constant": true,
438
+ "inputs": [
439
+ {
440
+ "internalType": "uint8",
441
+ "name": "index",
442
+ "type": "uint8"
443
+ }
444
+ ],
445
+ "name": "speedBumpCurrentSBHours",
255
446
  "outputs": [
256
447
  {
257
- "internalType": "address",
448
+ "internalType": "uint16",
258
449
  "name": "",
259
- "type": "address"
450
+ "type": "uint16"
260
451
  }
261
452
  ],
453
+ "payable": false,
262
454
  "stateMutability": "view",
263
455
  "type": "function"
264
456
  },
265
457
  {
458
+ "constant": false,
266
459
  "inputs": [
267
460
  {
268
- "internalType": "address",
269
- "name": "newImplementation",
270
- "type": "address"
461
+ "internalType": "uint16[]",
462
+ "name": "uint16s",
463
+ "type": "uint16[]"
271
464
  }
272
465
  ],
273
- "name": "upgradeTo",
466
+ "name": "speedBumpFee",
274
467
  "outputs": [],
468
+ "payable": false,
275
469
  "stateMutability": "nonpayable",
276
470
  "type": "function"
277
471
  },
278
472
  {
473
+ "constant": true,
474
+ "inputs": [],
475
+ "name": "speedBumpHours",
476
+ "outputs": [
477
+ {
478
+ "internalType": "uint16",
479
+ "name": "",
480
+ "type": "uint16"
481
+ }
482
+ ],
483
+ "payable": false,
484
+ "stateMutability": "view",
485
+ "type": "function"
486
+ },
487
+ {
488
+ "constant": false,
279
489
  "inputs": [
280
490
  {
281
- "internalType": "address",
282
- "name": "newImplementation",
283
- "type": "address"
491
+ "internalType": "address[]",
492
+ "name": "addresses",
493
+ "type": "address[]"
284
494
  },
285
495
  {
286
- "internalType": "bytes",
287
- "name": "data",
288
- "type": "bytes"
496
+ "internalType": "uint16",
497
+ "name": "newSpeedBumpHours",
498
+ "type": "uint16"
499
+ },
500
+ {
501
+ "internalType": "bool",
502
+ "name": "circuitBreaker",
503
+ "type": "bool"
289
504
  }
290
505
  ],
291
- "name": "upgradeToAndCall",
506
+ "name": "speedBumpMain",
292
507
  "outputs": [],
293
- "stateMutability": "payable",
508
+ "payable": false,
509
+ "stateMutability": "nonpayable",
510
+ "type": "function"
511
+ },
512
+ {
513
+ "constant": true,
514
+ "inputs": [
515
+ {
516
+ "internalType": "uint8",
517
+ "name": "index",
518
+ "type": "uint8"
519
+ }
520
+ ],
521
+ "name": "speedBumpNextSBHours",
522
+ "outputs": [
523
+ {
524
+ "internalType": "uint16",
525
+ "name": "",
526
+ "type": "uint16"
527
+ }
528
+ ],
529
+ "payable": false,
530
+ "stateMutability": "view",
531
+ "type": "function"
532
+ },
533
+ {
534
+ "constant": true,
535
+ "inputs": [
536
+ {
537
+ "internalType": "uint8",
538
+ "name": "index",
539
+ "type": "uint8"
540
+ }
541
+ ],
542
+ "name": "speedBumpTimeCreated",
543
+ "outputs": [
544
+ {
545
+ "internalType": "uint256",
546
+ "name": "",
547
+ "type": "uint256"
548
+ }
549
+ ],
550
+ "payable": false,
551
+ "stateMutability": "view",
294
552
  "type": "function"
295
553
  },
296
554
  {
555
+ "constant": true,
297
556
  "inputs": [
557
+ {
558
+ "internalType": "uint8",
559
+ "name": "index",
560
+ "type": "uint8"
561
+ },
562
+ {
563
+ "internalType": "uint8",
564
+ "name": "uint16Index",
565
+ "type": "uint8"
566
+ }
567
+ ],
568
+ "name": "speedBumpUint16s",
569
+ "outputs": [
570
+ {
571
+ "internalType": "uint16",
572
+ "name": "",
573
+ "type": "uint16"
574
+ }
575
+ ],
576
+ "payable": false,
577
+ "stateMutability": "view",
578
+ "type": "function"
579
+ },
580
+ {
581
+ "constant": true,
582
+ "inputs": [],
583
+ "name": "treasuryPenaltyMultipler",
584
+ "outputs": [
585
+ {
586
+ "internalType": "uint16",
587
+ "name": "",
588
+ "type": "uint16"
589
+ }
590
+ ],
591
+ "payable": false,
592
+ "stateMutability": "view",
593
+ "type": "function"
594
+ },
595
+ {
596
+ "constant": true,
597
+ "inputs": [],
598
+ "name": "treasurysDeposit",
599
+ "outputs": [
298
600
  {
299
601
  "internalType": "address",
300
- "name": "token",
602
+ "name": "",
301
603
  "type": "address"
302
604
  }
303
605
  ],
304
- "name": "withdrawAdmin",
606
+ "payable": false,
607
+ "stateMutability": "view",
608
+ "type": "function"
609
+ },
610
+ {
611
+ "constant": true,
612
+ "inputs": [],
613
+ "name": "treasurysFactory",
614
+ "outputs": [
615
+ {
616
+ "internalType": "address",
617
+ "name": "",
618
+ "type": "address"
619
+ }
620
+ ],
621
+ "payable": false,
622
+ "stateMutability": "view",
623
+ "type": "function"
624
+ },
625
+ {
626
+ "constant": true,
627
+ "inputs": [],
628
+ "name": "treasurysRuleList",
629
+ "outputs": [
630
+ {
631
+ "internalType": "address",
632
+ "name": "",
633
+ "type": "address"
634
+ }
635
+ ],
636
+ "payable": false,
637
+ "stateMutability": "view",
638
+ "type": "function"
639
+ },
640
+ {
641
+ "constant": false,
642
+ "inputs": [],
643
+ "name": "updateTreasuryContracts",
644
+ "outputs": [],
645
+ "payable": false,
646
+ "stateMutability": "nonpayable",
647
+ "type": "function"
648
+ },
649
+ {
650
+ "constant": false,
651
+ "inputs": [],
652
+ "name": "updateTreasuryFeeVariables",
305
653
  "outputs": [],
654
+ "payable": false,
306
655
  "stateMutability": "nonpayable",
307
656
  "type": "function"
308
657
  },
309
658
  {
659
+ "constant": false,
310
660
  "inputs": [],
311
- "name": "withdrawETHAdmin",
661
+ "name": "updateTreasuryMainVariables",
312
662
  "outputs": [],
663
+ "payable": false,
313
664
  "stateMutability": "nonpayable",
314
665
  "type": "function"
315
666
  }
@@ -398,75 +749,194 @@ export class Treasury_json {
398
749
  }
399
750
 
400
751
  /**
401
- * DEAD_ADDRESS
752
+ * QNTAddress
753
+ * view
754
+ */
755
+ async QNTAddress(): Promise<`0x${string}`> {
756
+ return this.contract.read.QNTAddress() as Promise<`0x${string}`>;
757
+ }
758
+
759
+ /**
760
+ * admin
761
+ * view
762
+ */
763
+ async admin(): Promise<`0x${string}`> {
764
+ return this.contract.read.admin() as Promise<`0x${string}`>;
765
+ }
766
+
767
+ /**
768
+ * circuitBreakerOn
769
+ * view
770
+ */
771
+ async circuitBreakerOn(): Promise<boolean> {
772
+ return this.contract.read.circuitBreakerOn() as Promise<boolean>;
773
+ }
774
+
775
+ /**
776
+ * commissionDivider
402
777
  * view
403
778
  */
404
- async DEAD_ADDRESS(): Promise<`0x${string}`> {
405
- return this.contract.read.DEAD_ADDRESS() as Promise<`0x${string}`>;
779
+ async commissionDivider(): Promise<bigint> {
780
+ return this.contract.read.commissionDivider() as Promise<bigint>;
406
781
  }
407
782
 
408
783
  /**
409
- * USDC
784
+ * gatewayPenaltyMultipler
410
785
  * view
411
786
  */
412
- async USDC(): Promise<`0x${string}`> {
413
- return this.contract.read.USDC() as Promise<`0x${string}`>;
787
+ async gatewayPenaltyMultipler(): Promise<bigint> {
788
+ return this.contract.read.gatewayPenaltyMultipler() as Promise<bigint>;
414
789
  }
415
790
 
416
791
  /**
417
- * dao
792
+ * implementation
418
793
  * view
419
794
  */
420
- async dao(): Promise<`0x${string}`> {
421
- return this.contract.read.dao() as Promise<`0x${string}`>;
795
+ async implementation(): Promise<`0x${string}`> {
796
+ return this.contract.read.implementation() as Promise<`0x${string}`>;
422
797
  }
423
798
 
424
799
  /**
425
- * multSignWallet
800
+ * initialized
426
801
  * view
427
802
  */
428
- async multSignWallet(): Promise<`0x${string}`> {
429
- return this.contract.read.multSignWallet() as Promise<`0x${string}`>;
803
+ async initialized(): Promise<boolean> {
804
+ return this.contract.read.initialized() as Promise<boolean>;
430
805
  }
431
806
 
432
807
  /**
433
- * owner
808
+ * mappDisputeFeeMultipler
434
809
  * view
435
810
  */
436
- async owner(): Promise<`0x${string}`> {
437
- return this.contract.read.owner() as Promise<`0x${string}`>;
811
+ async mappDisputeFeeMultipler(): Promise<bigint> {
812
+ return this.contract.read.mappDisputeFeeMultipler() as Promise<bigint>;
438
813
  }
439
814
 
440
815
  /**
441
- * paused
816
+ * operatorAddress
442
817
  * view
443
818
  */
444
- async paused(): Promise<boolean> {
445
- return this.contract.read.paused() as Promise<boolean>;
819
+ async operatorAddress(): Promise<`0x${string}`> {
820
+ return this.contract.read.operatorAddress() as Promise<`0x${string}`>;
446
821
  }
447
822
 
448
823
  /**
449
- * router
824
+ * readFunctionPenaltyMultipler
450
825
  * view
451
826
  */
452
- async router(): Promise<`0x${string}`> {
453
- return this.contract.read.router() as Promise<`0x${string}`>;
827
+ async readFunctionPenaltyMultipler(gateway: boolean): Promise<bigint> {
828
+ return this.contract.read.readFunctionPenaltyMultipler([gateway] as const) as Promise<bigint>;
454
829
  }
455
830
 
456
831
  /**
457
- * rvlt
832
+ * speedBumpAddresses
458
833
  * view
459
834
  */
460
- async rvlt(): Promise<`0x${string}`> {
461
- return this.contract.read.rvlt() as Promise<`0x${string}`>;
835
+ async speedBumpAddresses(index: bigint, addressIndex: bigint): Promise<`0x${string}`> {
836
+ return this.contract.read.speedBumpAddresses([index, addressIndex] as const) as Promise<`0x${string}`>;
462
837
  }
463
838
 
464
839
  /**
465
- * uRvlt
840
+ * speedBumpCircuitBreaker
466
841
  * view
467
842
  */
468
- async uRvlt(): Promise<`0x${string}`> {
469
- return this.contract.read.uRvlt() as Promise<`0x${string}`>;
843
+ async speedBumpCircuitBreaker(index: bigint): Promise<boolean> {
844
+ return this.contract.read.speedBumpCircuitBreaker([index] as const) as Promise<boolean>;
845
+ }
846
+
847
+ /**
848
+ * speedBumpCurrentSBHours
849
+ * view
850
+ */
851
+ async speedBumpCurrentSBHours(index: bigint): Promise<bigint> {
852
+ return this.contract.read.speedBumpCurrentSBHours([index] as const) as Promise<bigint>;
853
+ }
854
+
855
+ /**
856
+ * speedBumpHours
857
+ * view
858
+ */
859
+ async speedBumpHours(): Promise<bigint> {
860
+ return this.contract.read.speedBumpHours() as Promise<bigint>;
861
+ }
862
+
863
+ /**
864
+ * speedBumpNextSBHours
865
+ * view
866
+ */
867
+ async speedBumpNextSBHours(index: bigint): Promise<bigint> {
868
+ return this.contract.read.speedBumpNextSBHours([index] as const) as Promise<bigint>;
869
+ }
870
+
871
+ /**
872
+ * speedBumpTimeCreated
873
+ * view
874
+ */
875
+ async speedBumpTimeCreated(index: bigint): Promise<bigint> {
876
+ return this.contract.read.speedBumpTimeCreated([index] as const) as Promise<bigint>;
877
+ }
878
+
879
+ /**
880
+ * speedBumpUint16s
881
+ * view
882
+ */
883
+ async speedBumpUint16s(index: bigint, uint16Index: bigint): Promise<bigint> {
884
+ return this.contract.read.speedBumpUint16s([index, uint16Index] as const) as Promise<bigint>;
885
+ }
886
+
887
+ /**
888
+ * treasuryPenaltyMultipler
889
+ * view
890
+ */
891
+ async treasuryPenaltyMultipler(): Promise<bigint> {
892
+ return this.contract.read.treasuryPenaltyMultipler() as Promise<bigint>;
893
+ }
894
+
895
+ /**
896
+ * treasurysDeposit
897
+ * view
898
+ */
899
+ async treasurysDeposit(): Promise<`0x${string}`> {
900
+ return this.contract.read.treasurysDeposit() as Promise<`0x${string}`>;
901
+ }
902
+
903
+ /**
904
+ * treasurysFactory
905
+ * view
906
+ */
907
+ async treasurysFactory(): Promise<`0x${string}`> {
908
+ return this.contract.read.treasurysFactory() as Promise<`0x${string}`>;
909
+ }
910
+
911
+ /**
912
+ * treasurysRuleList
913
+ * view
914
+ */
915
+ async treasurysRuleList(): Promise<`0x${string}`> {
916
+ return this.contract.read.treasurysRuleList() as Promise<`0x${string}`>;
917
+ }
918
+
919
+ /**
920
+ * changeProxyVariables
921
+ * nonpayable
922
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
923
+ */
924
+ async changeProxyVariables(nextAdmin: `0x${string}`, nextImplementation: `0x${string}`, options?: {
925
+ accessList?: import('viem').AccessList;
926
+ authorizationList?: import('viem').AuthorizationList;
927
+ chain?: import('viem').Chain | null;
928
+ dataSuffix?: `0x${string}`;
929
+ gas?: bigint;
930
+ gasPrice?: bigint;
931
+ maxFeePerGas?: bigint;
932
+ maxPriorityFeePerGas?: bigint;
933
+ nonce?: number;
934
+ value?: bigint;
935
+ }): Promise<`0x${string}`> {
936
+ if (!this.contract.write) {
937
+ throw new Error('Wallet client is required for write operations');
938
+ }
939
+ return this.contract.write.changeProxyVariables([nextAdmin, nextImplementation] as const, options) as Promise<`0x${string}`>;
470
940
  }
471
941
 
472
942
  /**
@@ -474,7 +944,7 @@ export class Treasury_json {
474
944
  * nonpayable
475
945
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
476
946
  */
477
- async initialize(_rvlt: `0x${string}`, _router: `0x${string}`, _usdc: `0x${string}`, _weth: `0x${string}`, options?: {
947
+ async initialize(thisQNTAddress: `0x${string}`, thisOperatorAddress: `0x${string}`, mappDisputeFee: bigint, commission: bigint, treasuryPenalty: bigint, gatewayPenalty: bigint, speedBumpTime: bigint, options?: {
478
948
  accessList?: import('viem').AccessList;
479
949
  authorizationList?: import('viem').AuthorizationList;
480
950
  chain?: import('viem').Chain | null;
@@ -489,15 +959,15 @@ export class Treasury_json {
489
959
  if (!this.contract.write) {
490
960
  throw new Error('Wallet client is required for write operations');
491
961
  }
492
- return this.contract.write.initialize([_rvlt, _router, _usdc, _weth] as const, options) as Promise<`0x${string}`>;
962
+ return this.contract.write.initialize([thisQNTAddress, thisOperatorAddress, mappDisputeFee, commission, treasuryPenalty, gatewayPenalty, speedBumpTime] as const, options) as Promise<`0x${string}`>;
493
963
  }
494
964
 
495
965
  /**
496
- * renounceOwnership
966
+ * setAdmin
497
967
  * nonpayable
498
968
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
499
969
  */
500
- async renounceOwnership(options?: {
970
+ async setAdmin(options?: {
501
971
  accessList?: import('viem').AccessList;
502
972
  authorizationList?: import('viem').AuthorizationList;
503
973
  chain?: import('viem').Chain | null;
@@ -512,15 +982,15 @@ export class Treasury_json {
512
982
  if (!this.contract.write) {
513
983
  throw new Error('Wallet client is required for write operations');
514
984
  }
515
- return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
985
+ return this.contract.write.setAdmin(options) as Promise<`0x${string}`>;
516
986
  }
517
987
 
518
988
  /**
519
- * transferOwnership
989
+ * setImplementation
520
990
  * nonpayable
521
991
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
522
992
  */
523
- async transferOwnership(newOwner: `0x${string}`, options?: {
993
+ async setImplementation(options?: {
524
994
  accessList?: import('viem').AccessList;
525
995
  authorizationList?: import('viem').AuthorizationList;
526
996
  chain?: import('viem').Chain | null;
@@ -535,15 +1005,15 @@ export class Treasury_json {
535
1005
  if (!this.contract.write) {
536
1006
  throw new Error('Wallet client is required for write operations');
537
1007
  }
538
- return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
1008
+ return this.contract.write.setImplementation(options) as Promise<`0x${string}`>;
539
1009
  }
540
1010
 
541
1011
  /**
542
- * upgradeTo
1012
+ * speedBumpContract
543
1013
  * nonpayable
544
1014
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
545
1015
  */
546
- async upgradeTo(newImplementation: `0x${string}`, options?: {
1016
+ async speedBumpContract(addresses: `0x${string}`[], options?: {
547
1017
  accessList?: import('viem').AccessList;
548
1018
  authorizationList?: import('viem').AuthorizationList;
549
1019
  chain?: import('viem').Chain | null;
@@ -558,15 +1028,15 @@ export class Treasury_json {
558
1028
  if (!this.contract.write) {
559
1029
  throw new Error('Wallet client is required for write operations');
560
1030
  }
561
- return this.contract.write.upgradeTo([newImplementation] as const, options) as Promise<`0x${string}`>;
1031
+ return this.contract.write.speedBumpContract([addresses] as const, options) as Promise<`0x${string}`>;
562
1032
  }
563
1033
 
564
1034
  /**
565
- * upgradeToAndCall
566
- * payable
1035
+ * speedBumpFee
1036
+ * nonpayable
567
1037
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
568
1038
  */
569
- async upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
1039
+ async speedBumpFee(uint16s: bigint[], options?: {
570
1040
  accessList?: import('viem').AccessList;
571
1041
  authorizationList?: import('viem').AuthorizationList;
572
1042
  chain?: import('viem').Chain | null;
@@ -581,15 +1051,15 @@ export class Treasury_json {
581
1051
  if (!this.contract.write) {
582
1052
  throw new Error('Wallet client is required for write operations');
583
1053
  }
584
- return this.contract.write.upgradeToAndCall([newImplementation, data] as const, options) as Promise<`0x${string}`>;
1054
+ return this.contract.write.speedBumpFee([uint16s] as const, options) as Promise<`0x${string}`>;
585
1055
  }
586
1056
 
587
1057
  /**
588
- * withdrawAdmin
1058
+ * speedBumpMain
589
1059
  * nonpayable
590
1060
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
591
1061
  */
592
- async withdrawAdmin(token: `0x${string}`, options?: {
1062
+ async speedBumpMain(addresses: `0x${string}`[], newSpeedBumpHours: bigint, circuitBreaker: boolean, options?: {
593
1063
  accessList?: import('viem').AccessList;
594
1064
  authorizationList?: import('viem').AuthorizationList;
595
1065
  chain?: import('viem').Chain | null;
@@ -604,15 +1074,15 @@ export class Treasury_json {
604
1074
  if (!this.contract.write) {
605
1075
  throw new Error('Wallet client is required for write operations');
606
1076
  }
607
- return this.contract.write.withdrawAdmin([token] as const, options) as Promise<`0x${string}`>;
1077
+ return this.contract.write.speedBumpMain([addresses, newSpeedBumpHours, circuitBreaker] as const, options) as Promise<`0x${string}`>;
608
1078
  }
609
1079
 
610
1080
  /**
611
- * withdrawETHAdmin
1081
+ * updateTreasuryContracts
612
1082
  * nonpayable
613
1083
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
614
1084
  */
615
- async withdrawETHAdmin(options?: {
1085
+ async updateTreasuryContracts(options?: {
616
1086
  accessList?: import('viem').AccessList;
617
1087
  authorizationList?: import('viem').AuthorizationList;
618
1088
  chain?: import('viem').Chain | null;
@@ -627,7 +1097,53 @@ export class Treasury_json {
627
1097
  if (!this.contract.write) {
628
1098
  throw new Error('Wallet client is required for write operations');
629
1099
  }
630
- return this.contract.write.withdrawETHAdmin(options) as Promise<`0x${string}`>;
1100
+ return this.contract.write.updateTreasuryContracts(options) as Promise<`0x${string}`>;
1101
+ }
1102
+
1103
+ /**
1104
+ * updateTreasuryFeeVariables
1105
+ * nonpayable
1106
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1107
+ */
1108
+ async updateTreasuryFeeVariables(options?: {
1109
+ accessList?: import('viem').AccessList;
1110
+ authorizationList?: import('viem').AuthorizationList;
1111
+ chain?: import('viem').Chain | null;
1112
+ dataSuffix?: `0x${string}`;
1113
+ gas?: bigint;
1114
+ gasPrice?: bigint;
1115
+ maxFeePerGas?: bigint;
1116
+ maxPriorityFeePerGas?: bigint;
1117
+ nonce?: number;
1118
+ value?: bigint;
1119
+ }): Promise<`0x${string}`> {
1120
+ if (!this.contract.write) {
1121
+ throw new Error('Wallet client is required for write operations');
1122
+ }
1123
+ return this.contract.write.updateTreasuryFeeVariables(options) as Promise<`0x${string}`>;
1124
+ }
1125
+
1126
+ /**
1127
+ * updateTreasuryMainVariables
1128
+ * nonpayable
1129
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1130
+ */
1131
+ async updateTreasuryMainVariables(options?: {
1132
+ accessList?: import('viem').AccessList;
1133
+ authorizationList?: import('viem').AuthorizationList;
1134
+ chain?: import('viem').Chain | null;
1135
+ dataSuffix?: `0x${string}`;
1136
+ gas?: bigint;
1137
+ gasPrice?: bigint;
1138
+ maxFeePerGas?: bigint;
1139
+ maxPriorityFeePerGas?: bigint;
1140
+ nonce?: number;
1141
+ value?: bigint;
1142
+ }): Promise<`0x${string}`> {
1143
+ if (!this.contract.write) {
1144
+ throw new Error('Wallet client is required for write operations');
1145
+ }
1146
+ return this.contract.write.updateTreasuryMainVariables(options) as Promise<`0x${string}`>;
631
1147
  }
632
1148
 
633
1149
 
@@ -646,12 +1162,50 @@ export class Treasury_json {
646
1162
  throw new Error('Public client is required for simulation');
647
1163
  }
648
1164
  return {
1165
+ /**
1166
+ * Simulate changeProxyVariables
1167
+ * Returns gas estimate and result without sending transaction
1168
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1169
+ */
1170
+ async changeProxyVariables(nextAdmin: `0x${string}`, nextImplementation: `0x${string}`, options?: {
1171
+ accessList?: import('viem').AccessList;
1172
+ authorizationList?: import('viem').AuthorizationList;
1173
+ chain?: import('viem').Chain | null;
1174
+ dataSuffix?: `0x${string}`;
1175
+ gas?: bigint;
1176
+ gasPrice?: bigint;
1177
+ maxFeePerGas?: bigint;
1178
+ maxPriorityFeePerGas?: bigint;
1179
+ nonce?: number;
1180
+ value?: bigint;
1181
+ }): Promise<void> {
1182
+ return contract.simulate.changeProxyVariables([nextAdmin, nextImplementation] as const, options) as Promise<void>;
1183
+ },
649
1184
  /**
650
1185
  * Simulate initialize
651
1186
  * Returns gas estimate and result without sending transaction
652
1187
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
653
1188
  */
654
- async initialize(_rvlt: `0x${string}`, _router: `0x${string}`, _usdc: `0x${string}`, _weth: `0x${string}`, options?: {
1189
+ async initialize(thisQNTAddress: `0x${string}`, thisOperatorAddress: `0x${string}`, mappDisputeFee: bigint, commission: bigint, treasuryPenalty: bigint, gatewayPenalty: bigint, speedBumpTime: bigint, options?: {
1190
+ accessList?: import('viem').AccessList;
1191
+ authorizationList?: import('viem').AuthorizationList;
1192
+ chain?: import('viem').Chain | null;
1193
+ dataSuffix?: `0x${string}`;
1194
+ gas?: bigint;
1195
+ gasPrice?: bigint;
1196
+ maxFeePerGas?: bigint;
1197
+ maxPriorityFeePerGas?: bigint;
1198
+ nonce?: number;
1199
+ value?: bigint;
1200
+ }): Promise<void> {
1201
+ return contract.simulate.initialize([thisQNTAddress, thisOperatorAddress, mappDisputeFee, commission, treasuryPenalty, gatewayPenalty, speedBumpTime] as const, options) as Promise<void>;
1202
+ },
1203
+ /**
1204
+ * Simulate setAdmin
1205
+ * Returns gas estimate and result without sending transaction
1206
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1207
+ */
1208
+ async setAdmin(options?: {
655
1209
  accessList?: import('viem').AccessList;
656
1210
  authorizationList?: import('viem').AuthorizationList;
657
1211
  chain?: import('viem').Chain | null;
@@ -663,14 +1217,14 @@ export class Treasury_json {
663
1217
  nonce?: number;
664
1218
  value?: bigint;
665
1219
  }): Promise<void> {
666
- return contract.simulate.initialize([_rvlt, _router, _usdc, _weth] as const, options) as Promise<void>;
1220
+ return contract.simulate.setAdmin(options) as Promise<void>;
667
1221
  },
668
1222
  /**
669
- * Simulate renounceOwnership
1223
+ * Simulate setImplementation
670
1224
  * Returns gas estimate and result without sending transaction
671
1225
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
672
1226
  */
673
- async renounceOwnership(options?: {
1227
+ async setImplementation(options?: {
674
1228
  accessList?: import('viem').AccessList;
675
1229
  authorizationList?: import('viem').AuthorizationList;
676
1230
  chain?: import('viem').Chain | null;
@@ -682,14 +1236,14 @@ export class Treasury_json {
682
1236
  nonce?: number;
683
1237
  value?: bigint;
684
1238
  }): Promise<void> {
685
- return contract.simulate.renounceOwnership(options) as Promise<void>;
1239
+ return contract.simulate.setImplementation(options) as Promise<void>;
686
1240
  },
687
1241
  /**
688
- * Simulate transferOwnership
1242
+ * Simulate speedBumpContract
689
1243
  * Returns gas estimate and result without sending transaction
690
1244
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
691
1245
  */
692
- async transferOwnership(newOwner: `0x${string}`, options?: {
1246
+ async speedBumpContract(addresses: `0x${string}`[], options?: {
693
1247
  accessList?: import('viem').AccessList;
694
1248
  authorizationList?: import('viem').AuthorizationList;
695
1249
  chain?: import('viem').Chain | null;
@@ -701,14 +1255,14 @@ export class Treasury_json {
701
1255
  nonce?: number;
702
1256
  value?: bigint;
703
1257
  }): Promise<void> {
704
- return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
1258
+ return contract.simulate.speedBumpContract([addresses] as const, options) as Promise<void>;
705
1259
  },
706
1260
  /**
707
- * Simulate upgradeTo
1261
+ * Simulate speedBumpFee
708
1262
  * Returns gas estimate and result without sending transaction
709
1263
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
710
1264
  */
711
- async upgradeTo(newImplementation: `0x${string}`, options?: {
1265
+ async speedBumpFee(uint16s: bigint[], options?: {
712
1266
  accessList?: import('viem').AccessList;
713
1267
  authorizationList?: import('viem').AuthorizationList;
714
1268
  chain?: import('viem').Chain | null;
@@ -720,14 +1274,14 @@ export class Treasury_json {
720
1274
  nonce?: number;
721
1275
  value?: bigint;
722
1276
  }): Promise<void> {
723
- return contract.simulate.upgradeTo([newImplementation] as const, options) as Promise<void>;
1277
+ return contract.simulate.speedBumpFee([uint16s] as const, options) as Promise<void>;
724
1278
  },
725
1279
  /**
726
- * Simulate upgradeToAndCall
1280
+ * Simulate speedBumpMain
727
1281
  * Returns gas estimate and result without sending transaction
728
1282
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
729
1283
  */
730
- async upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
1284
+ async speedBumpMain(addresses: `0x${string}`[], newSpeedBumpHours: bigint, circuitBreaker: boolean, options?: {
731
1285
  accessList?: import('viem').AccessList;
732
1286
  authorizationList?: import('viem').AuthorizationList;
733
1287
  chain?: import('viem').Chain | null;
@@ -739,14 +1293,14 @@ export class Treasury_json {
739
1293
  nonce?: number;
740
1294
  value?: bigint;
741
1295
  }): Promise<void> {
742
- return contract.simulate.upgradeToAndCall([newImplementation, data] as const, options) as Promise<void>;
1296
+ return contract.simulate.speedBumpMain([addresses, newSpeedBumpHours, circuitBreaker] as const, options) as Promise<void>;
743
1297
  },
744
1298
  /**
745
- * Simulate withdrawAdmin
1299
+ * Simulate updateTreasuryContracts
746
1300
  * Returns gas estimate and result without sending transaction
747
1301
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
748
1302
  */
749
- async withdrawAdmin(token: `0x${string}`, options?: {
1303
+ async updateTreasuryContracts(options?: {
750
1304
  accessList?: import('viem').AccessList;
751
1305
  authorizationList?: import('viem').AuthorizationList;
752
1306
  chain?: import('viem').Chain | null;
@@ -758,14 +1312,14 @@ export class Treasury_json {
758
1312
  nonce?: number;
759
1313
  value?: bigint;
760
1314
  }): Promise<void> {
761
- return contract.simulate.withdrawAdmin([token] as const, options) as Promise<void>;
1315
+ return contract.simulate.updateTreasuryContracts(options) as Promise<void>;
762
1316
  },
763
1317
  /**
764
- * Simulate withdrawETHAdmin
1318
+ * Simulate updateTreasuryFeeVariables
765
1319
  * Returns gas estimate and result without sending transaction
766
1320
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
767
1321
  */
768
- async withdrawETHAdmin(options?: {
1322
+ async updateTreasuryFeeVariables(options?: {
769
1323
  accessList?: import('viem').AccessList;
770
1324
  authorizationList?: import('viem').AuthorizationList;
771
1325
  chain?: import('viem').Chain | null;
@@ -777,7 +1331,26 @@ export class Treasury_json {
777
1331
  nonce?: number;
778
1332
  value?: bigint;
779
1333
  }): Promise<void> {
780
- return contract.simulate.withdrawETHAdmin(options) as Promise<void>;
1334
+ return contract.simulate.updateTreasuryFeeVariables(options) as Promise<void>;
1335
+ },
1336
+ /**
1337
+ * Simulate updateTreasuryMainVariables
1338
+ * Returns gas estimate and result without sending transaction
1339
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1340
+ */
1341
+ async updateTreasuryMainVariables(options?: {
1342
+ accessList?: import('viem').AccessList;
1343
+ authorizationList?: import('viem').AuthorizationList;
1344
+ chain?: import('viem').Chain | null;
1345
+ dataSuffix?: `0x${string}`;
1346
+ gas?: bigint;
1347
+ gasPrice?: bigint;
1348
+ maxFeePerGas?: bigint;
1349
+ maxPriorityFeePerGas?: bigint;
1350
+ nonce?: number;
1351
+ value?: bigint;
1352
+ }): Promise<void> {
1353
+ return contract.simulate.updateTreasuryMainVariables(options) as Promise<void>;
781
1354
  }
782
1355
  };
783
1356
  }
@@ -797,16 +1370,16 @@ export class Treasury_json {
797
1370
  get watch() {
798
1371
  return {
799
1372
  /**
800
- * Watch AdminChanged events
1373
+ * Watch connectedContracts events
801
1374
  * @param callback Function to call when event is emitted
802
1375
  * @param filter Optional filter for indexed parameters
803
1376
  * @returns Unwatch function to stop listening
804
1377
  */
805
- AdminChanged: (callback: (event: { previousAdmin: `0x${string}`; newAdmin: `0x${string}` }) => void) => {
1378
+ connectedContracts: (callback: (event: { factory: `0x${string}`; ruleList: `0x${string}`; escrowedDeposit: `0x${string}` }) => void) => {
806
1379
  return this.publicClient.watchContractEvent({
807
1380
  address: this.contractAddress,
808
1381
  abi: Treasury_jsonAbi,
809
- eventName: 'AdminChanged',
1382
+ eventName: 'connectedContracts',
810
1383
 
811
1384
  onLogs: (logs: any[]) => {
812
1385
  logs.forEach((log: any) => {
@@ -816,36 +1389,17 @@ export class Treasury_json {
816
1389
  }) as () => void;
817
1390
  },
818
1391
  /**
819
- * Watch BeaconUpgraded events
1392
+ * Watch updatedSpeedBump events
820
1393
  * @param callback Function to call when event is emitted
821
1394
  * @param filter Optional filter for indexed parameters
822
1395
  * @returns Unwatch function to stop listening
823
1396
  */
824
- BeaconUpgraded: (callback: (event: { beacon: `0x${string}` }) => void, filter?: { beacon: `0x${string}` }) => {
1397
+ updatedSpeedBump: (callback: (event: { speedBumpIndex: bigint; timeCreated: bigint; speedBumpHours: bigint }) => void) => {
825
1398
  return this.publicClient.watchContractEvent({
826
1399
  address: this.contractAddress,
827
1400
  abi: Treasury_jsonAbi,
828
- eventName: 'BeaconUpgraded',
829
- args: filter,
830
- onLogs: (logs: any[]) => {
831
- logs.forEach((log: any) => {
832
- callback(log.args as any);
833
- });
834
- },
835
- }) as () => void;
836
- },
837
- /**
838
- * Watch OwnershipTransferred events
839
- * @param callback Function to call when event is emitted
840
- * @param filter Optional filter for indexed parameters
841
- * @returns Unwatch function to stop listening
842
- */
843
- OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
844
- return this.publicClient.watchContractEvent({
845
- address: this.contractAddress,
846
- abi: Treasury_jsonAbi,
847
- eventName: 'OwnershipTransferred',
848
- args: filter,
1401
+ eventName: 'updatedSpeedBump',
1402
+
849
1403
  onLogs: (logs: any[]) => {
850
1404
  logs.forEach((log: any) => {
851
1405
  callback(log.args as any);
@@ -854,16 +1408,16 @@ export class Treasury_json {
854
1408
  }) as () => void;
855
1409
  },
856
1410
  /**
857
- * Watch Paused events
1411
+ * Watch updatedTreasuryFunctionVerification events
858
1412
  * @param callback Function to call when event is emitted
859
1413
  * @param filter Optional filter for indexed parameters
860
1414
  * @returns Unwatch function to stop listening
861
1415
  */
862
- Paused: (callback: (event: { account: `0x${string}` }) => void) => {
1416
+ updatedTreasuryFunctionVerification: (callback: (event: { verificationDetails: string; locationOfDetails: string }) => void) => {
863
1417
  return this.publicClient.watchContractEvent({
864
1418
  address: this.contractAddress,
865
1419
  abi: Treasury_jsonAbi,
866
- eventName: 'Paused',
1420
+ eventName: 'updatedTreasuryFunctionVerification',
867
1421
 
868
1422
  onLogs: (logs: any[]) => {
869
1423
  logs.forEach((log: any) => {
@@ -873,16 +1427,16 @@ export class Treasury_json {
873
1427
  }) as () => void;
874
1428
  },
875
1429
  /**
876
- * Watch Unpaused events
1430
+ * Watch updatedTreasuryMainVariables events
877
1431
  * @param callback Function to call when event is emitted
878
1432
  * @param filter Optional filter for indexed parameters
879
1433
  * @returns Unwatch function to stop listening
880
1434
  */
881
- Unpaused: (callback: (event: { account: `0x${string}` }) => void) => {
1435
+ updatedTreasuryMainVariables: (callback: (event: { newWithdrawalAddress: `0x${string}`; newOperator: `0x${string}`; circuitBreaker: boolean }) => void) => {
882
1436
  return this.publicClient.watchContractEvent({
883
1437
  address: this.contractAddress,
884
1438
  abi: Treasury_jsonAbi,
885
- eventName: 'Unpaused',
1439
+ eventName: 'updatedTreasuryMainVariables',
886
1440
 
887
1441
  onLogs: (logs: any[]) => {
888
1442
  logs.forEach((log: any) => {
@@ -892,17 +1446,17 @@ export class Treasury_json {
892
1446
  }) as () => void;
893
1447
  },
894
1448
  /**
895
- * Watch Upgraded events
1449
+ * Watch updatedTreasuryVariables events
896
1450
  * @param callback Function to call when event is emitted
897
1451
  * @param filter Optional filter for indexed parameters
898
1452
  * @returns Unwatch function to stop listening
899
1453
  */
900
- Upgraded: (callback: (event: { implementation: `0x${string}` }) => void, filter?: { implementation: `0x${string}` }) => {
1454
+ updatedTreasuryVariables: (callback: (event: { mappDisputeFeeMultipler: bigint; commissionDivider: bigint; gatewayPenaltyMultipler: bigint; treasuryPenaltyMultipler: bigint }) => void) => {
901
1455
  return this.publicClient.watchContractEvent({
902
1456
  address: this.contractAddress,
903
1457
  abi: Treasury_jsonAbi,
904
- eventName: 'Upgraded',
905
- args: filter,
1458
+ eventName: 'updatedTreasuryVariables',
1459
+
906
1460
  onLogs: (logs: any[]) => {
907
1461
  logs.forEach((log: any) => {
908
1462
  callback(log.args as any);