@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.
@@ -14,49 +14,67 @@ exports.Treasury_jsonAbi = [
14
14
  {
15
15
  "indexed": false,
16
16
  "internalType": "address",
17
- "name": "previousAdmin",
17
+ "name": "factory",
18
18
  "type": "address"
19
19
  },
20
20
  {
21
21
  "indexed": false,
22
22
  "internalType": "address",
23
- "name": "newAdmin",
23
+ "name": "ruleList",
24
+ "type": "address"
25
+ },
26
+ {
27
+ "indexed": false,
28
+ "internalType": "address",
29
+ "name": "escrowedDeposit",
24
30
  "type": "address"
25
31
  }
26
32
  ],
27
- "name": "AdminChanged",
33
+ "name": "connectedContracts",
28
34
  "type": "event"
29
35
  },
30
36
  {
31
37
  "anonymous": false,
32
38
  "inputs": [
33
39
  {
34
- "indexed": true,
35
- "internalType": "address",
36
- "name": "beacon",
37
- "type": "address"
40
+ "indexed": false,
41
+ "internalType": "uint256",
42
+ "name": "speedBumpIndex",
43
+ "type": "uint256"
44
+ },
45
+ {
46
+ "indexed": false,
47
+ "internalType": "uint256",
48
+ "name": "timeCreated",
49
+ "type": "uint256"
50
+ },
51
+ {
52
+ "indexed": false,
53
+ "internalType": "uint256",
54
+ "name": "speedBumpHours",
55
+ "type": "uint256"
38
56
  }
39
57
  ],
40
- "name": "BeaconUpgraded",
58
+ "name": "updatedSpeedBump",
41
59
  "type": "event"
42
60
  },
43
61
  {
44
62
  "anonymous": false,
45
63
  "inputs": [
46
64
  {
47
- "indexed": true,
48
- "internalType": "address",
49
- "name": "previousOwner",
50
- "type": "address"
65
+ "indexed": false,
66
+ "internalType": "string",
67
+ "name": "verificationDetails",
68
+ "type": "string"
51
69
  },
52
70
  {
53
- "indexed": true,
54
- "internalType": "address",
55
- "name": "newOwner",
56
- "type": "address"
71
+ "indexed": false,
72
+ "internalType": "string",
73
+ "name": "locationOfDetails",
74
+ "type": "string"
57
75
  }
58
76
  ],
59
- "name": "OwnershipTransferred",
77
+ "name": "updatedTreasuryFunctionVerification",
60
78
  "type": "event"
61
79
  },
62
80
  {
@@ -65,11 +83,23 @@ exports.Treasury_jsonAbi = [
65
83
  {
66
84
  "indexed": false,
67
85
  "internalType": "address",
68
- "name": "account",
86
+ "name": "newWithdrawalAddress",
69
87
  "type": "address"
88
+ },
89
+ {
90
+ "indexed": false,
91
+ "internalType": "address",
92
+ "name": "newOperator",
93
+ "type": "address"
94
+ },
95
+ {
96
+ "indexed": false,
97
+ "internalType": "bool",
98
+ "name": "circuitBreaker",
99
+ "type": "bool"
70
100
  }
71
101
  ],
72
- "name": "Paused",
102
+ "name": "updatedTreasuryMainVariables",
73
103
  "type": "event"
74
104
  },
75
105
  {
@@ -77,30 +107,51 @@ exports.Treasury_jsonAbi = [
77
107
  "inputs": [
78
108
  {
79
109
  "indexed": false,
80
- "internalType": "address",
81
- "name": "account",
82
- "type": "address"
110
+ "internalType": "uint16",
111
+ "name": "mappDisputeFeeMultipler",
112
+ "type": "uint16"
113
+ },
114
+ {
115
+ "indexed": false,
116
+ "internalType": "uint16",
117
+ "name": "commissionDivider",
118
+ "type": "uint16"
119
+ },
120
+ {
121
+ "indexed": false,
122
+ "internalType": "uint16",
123
+ "name": "gatewayPenaltyMultipler",
124
+ "type": "uint16"
125
+ },
126
+ {
127
+ "indexed": false,
128
+ "internalType": "uint16",
129
+ "name": "treasuryPenaltyMultipler",
130
+ "type": "uint16"
83
131
  }
84
132
  ],
85
- "name": "Unpaused",
133
+ "name": "updatedTreasuryVariables",
86
134
  "type": "event"
87
135
  },
88
136
  {
89
- "anonymous": false,
90
- "inputs": [
137
+ "constant": true,
138
+ "inputs": [],
139
+ "name": "QNTAddress",
140
+ "outputs": [
91
141
  {
92
- "indexed": true,
93
142
  "internalType": "address",
94
- "name": "implementation",
143
+ "name": "",
95
144
  "type": "address"
96
145
  }
97
146
  ],
98
- "name": "Upgraded",
99
- "type": "event"
147
+ "payable": false,
148
+ "stateMutability": "view",
149
+ "type": "function"
100
150
  },
101
151
  {
152
+ "constant": true,
102
153
  "inputs": [],
103
- "name": "DEAD_ADDRESS",
154
+ "name": "admin",
104
155
  "outputs": [
105
156
  {
106
157
  "internalType": "address",
@@ -108,25 +159,79 @@ exports.Treasury_jsonAbi = [
108
159
  "type": "address"
109
160
  }
110
161
  ],
162
+ "payable": false,
111
163
  "stateMutability": "view",
112
164
  "type": "function"
113
165
  },
114
166
  {
167
+ "constant": false,
168
+ "inputs": [
169
+ {
170
+ "internalType": "address",
171
+ "name": "nextAdmin",
172
+ "type": "address"
173
+ },
174
+ {
175
+ "internalType": "address",
176
+ "name": "nextImplementation",
177
+ "type": "address"
178
+ }
179
+ ],
180
+ "name": "changeProxyVariables",
181
+ "outputs": [],
182
+ "payable": false,
183
+ "stateMutability": "nonpayable",
184
+ "type": "function"
185
+ },
186
+ {
187
+ "constant": true,
115
188
  "inputs": [],
116
- "name": "USDC",
189
+ "name": "circuitBreakerOn",
117
190
  "outputs": [
118
191
  {
119
- "internalType": "address",
192
+ "internalType": "bool",
120
193
  "name": "",
121
- "type": "address"
194
+ "type": "bool"
122
195
  }
123
196
  ],
197
+ "payable": false,
124
198
  "stateMutability": "view",
125
199
  "type": "function"
126
200
  },
127
201
  {
202
+ "constant": true,
128
203
  "inputs": [],
129
- "name": "dao",
204
+ "name": "commissionDivider",
205
+ "outputs": [
206
+ {
207
+ "internalType": "uint16",
208
+ "name": "",
209
+ "type": "uint16"
210
+ }
211
+ ],
212
+ "payable": false,
213
+ "stateMutability": "view",
214
+ "type": "function"
215
+ },
216
+ {
217
+ "constant": true,
218
+ "inputs": [],
219
+ "name": "gatewayPenaltyMultipler",
220
+ "outputs": [
221
+ {
222
+ "internalType": "uint16",
223
+ "name": "",
224
+ "type": "uint16"
225
+ }
226
+ ],
227
+ "payable": false,
228
+ "stateMutability": "view",
229
+ "type": "function"
230
+ },
231
+ {
232
+ "constant": true,
233
+ "inputs": [],
234
+ "name": "implementation",
130
235
  "outputs": [
131
236
  {
132
237
  "internalType": "address",
@@ -134,86 +239,154 @@ exports.Treasury_jsonAbi = [
134
239
  "type": "address"
135
240
  }
136
241
  ],
242
+ "payable": false,
137
243
  "stateMutability": "view",
138
244
  "type": "function"
139
245
  },
140
246
  {
247
+ "constant": false,
141
248
  "inputs": [
142
249
  {
143
250
  "internalType": "address",
144
- "name": "_rvlt",
251
+ "name": "thisQNTAddress",
145
252
  "type": "address"
146
253
  },
147
254
  {
148
255
  "internalType": "address",
149
- "name": "_router",
256
+ "name": "thisOperatorAddress",
150
257
  "type": "address"
151
258
  },
152
259
  {
153
- "internalType": "address",
154
- "name": "_usdc",
155
- "type": "address"
260
+ "internalType": "uint16",
261
+ "name": "mappDisputeFee",
262
+ "type": "uint16"
156
263
  },
157
264
  {
158
- "internalType": "address",
159
- "name": "_weth",
160
- "type": "address"
265
+ "internalType": "uint16",
266
+ "name": "commission",
267
+ "type": "uint16"
268
+ },
269
+ {
270
+ "internalType": "uint16",
271
+ "name": "treasuryPenalty",
272
+ "type": "uint16"
273
+ },
274
+ {
275
+ "internalType": "uint16",
276
+ "name": "gatewayPenalty",
277
+ "type": "uint16"
278
+ },
279
+ {
280
+ "internalType": "uint16",
281
+ "name": "speedBumpTime",
282
+ "type": "uint16"
161
283
  }
162
284
  ],
163
285
  "name": "initialize",
164
286
  "outputs": [],
287
+ "payable": false,
165
288
  "stateMutability": "nonpayable",
166
289
  "type": "function"
167
290
  },
168
291
  {
292
+ "constant": true,
169
293
  "inputs": [],
170
- "name": "multSignWallet",
294
+ "name": "initialized",
171
295
  "outputs": [
172
296
  {
173
- "internalType": "address",
297
+ "internalType": "bool",
174
298
  "name": "",
175
- "type": "address"
299
+ "type": "bool"
176
300
  }
177
301
  ],
302
+ "payable": false,
178
303
  "stateMutability": "view",
179
304
  "type": "function"
180
305
  },
181
306
  {
307
+ "constant": true,
182
308
  "inputs": [],
183
- "name": "owner",
309
+ "name": "mappDisputeFeeMultipler",
184
310
  "outputs": [
185
311
  {
186
- "internalType": "address",
312
+ "internalType": "uint16",
187
313
  "name": "",
188
- "type": "address"
314
+ "type": "uint16"
189
315
  }
190
316
  ],
317
+ "payable": false,
191
318
  "stateMutability": "view",
192
319
  "type": "function"
193
320
  },
194
321
  {
322
+ "constant": true,
195
323
  "inputs": [],
196
- "name": "paused",
324
+ "name": "operatorAddress",
197
325
  "outputs": [
198
326
  {
199
- "internalType": "bool",
327
+ "internalType": "address",
200
328
  "name": "",
329
+ "type": "address"
330
+ }
331
+ ],
332
+ "payable": false,
333
+ "stateMutability": "view",
334
+ "type": "function"
335
+ },
336
+ {
337
+ "constant": true,
338
+ "inputs": [
339
+ {
340
+ "internalType": "bool",
341
+ "name": "gateway",
201
342
  "type": "bool"
202
343
  }
203
344
  ],
345
+ "name": "readFunctionPenaltyMultipler",
346
+ "outputs": [
347
+ {
348
+ "internalType": "uint256",
349
+ "name": "",
350
+ "type": "uint256"
351
+ }
352
+ ],
353
+ "payable": false,
204
354
  "stateMutability": "view",
205
355
  "type": "function"
206
356
  },
207
357
  {
358
+ "constant": false,
208
359
  "inputs": [],
209
- "name": "renounceOwnership",
360
+ "name": "setAdmin",
210
361
  "outputs": [],
362
+ "payable": false,
211
363
  "stateMutability": "nonpayable",
212
364
  "type": "function"
213
365
  },
214
366
  {
367
+ "constant": false,
215
368
  "inputs": [],
216
- "name": "router",
369
+ "name": "setImplementation",
370
+ "outputs": [],
371
+ "payable": false,
372
+ "stateMutability": "nonpayable",
373
+ "type": "function"
374
+ },
375
+ {
376
+ "constant": true,
377
+ "inputs": [
378
+ {
379
+ "internalType": "uint8",
380
+ "name": "index",
381
+ "type": "uint8"
382
+ },
383
+ {
384
+ "internalType": "uint8",
385
+ "name": "addressIndex",
386
+ "type": "uint8"
387
+ }
388
+ ],
389
+ "name": "speedBumpAddresses",
217
390
  "outputs": [
218
391
  {
219
392
  "internalType": "address",
@@ -221,96 +394,274 @@ exports.Treasury_jsonAbi = [
221
394
  "type": "address"
222
395
  }
223
396
  ],
397
+ "payable": false,
224
398
  "stateMutability": "view",
225
399
  "type": "function"
226
400
  },
227
401
  {
228
- "inputs": [],
229
- "name": "rvlt",
402
+ "constant": true,
403
+ "inputs": [
404
+ {
405
+ "internalType": "uint8",
406
+ "name": "index",
407
+ "type": "uint8"
408
+ }
409
+ ],
410
+ "name": "speedBumpCircuitBreaker",
230
411
  "outputs": [
231
412
  {
232
- "internalType": "address",
413
+ "internalType": "bool",
233
414
  "name": "",
234
- "type": "address"
415
+ "type": "bool"
235
416
  }
236
417
  ],
418
+ "payable": false,
237
419
  "stateMutability": "view",
238
420
  "type": "function"
239
421
  },
240
422
  {
423
+ "constant": false,
241
424
  "inputs": [
242
425
  {
243
- "internalType": "address",
244
- "name": "newOwner",
245
- "type": "address"
426
+ "internalType": "address[]",
427
+ "name": "addresses",
428
+ "type": "address[]"
246
429
  }
247
430
  ],
248
- "name": "transferOwnership",
431
+ "name": "speedBumpContract",
249
432
  "outputs": [],
433
+ "payable": false,
250
434
  "stateMutability": "nonpayable",
251
435
  "type": "function"
252
436
  },
253
437
  {
254
- "inputs": [],
255
- "name": "uRvlt",
438
+ "constant": true,
439
+ "inputs": [
440
+ {
441
+ "internalType": "uint8",
442
+ "name": "index",
443
+ "type": "uint8"
444
+ }
445
+ ],
446
+ "name": "speedBumpCurrentSBHours",
256
447
  "outputs": [
257
448
  {
258
- "internalType": "address",
449
+ "internalType": "uint16",
259
450
  "name": "",
260
- "type": "address"
451
+ "type": "uint16"
261
452
  }
262
453
  ],
454
+ "payable": false,
263
455
  "stateMutability": "view",
264
456
  "type": "function"
265
457
  },
266
458
  {
459
+ "constant": false,
267
460
  "inputs": [
268
461
  {
269
- "internalType": "address",
270
- "name": "newImplementation",
271
- "type": "address"
462
+ "internalType": "uint16[]",
463
+ "name": "uint16s",
464
+ "type": "uint16[]"
272
465
  }
273
466
  ],
274
- "name": "upgradeTo",
467
+ "name": "speedBumpFee",
275
468
  "outputs": [],
469
+ "payable": false,
276
470
  "stateMutability": "nonpayable",
277
471
  "type": "function"
278
472
  },
279
473
  {
474
+ "constant": true,
475
+ "inputs": [],
476
+ "name": "speedBumpHours",
477
+ "outputs": [
478
+ {
479
+ "internalType": "uint16",
480
+ "name": "",
481
+ "type": "uint16"
482
+ }
483
+ ],
484
+ "payable": false,
485
+ "stateMutability": "view",
486
+ "type": "function"
487
+ },
488
+ {
489
+ "constant": false,
280
490
  "inputs": [
281
491
  {
282
- "internalType": "address",
283
- "name": "newImplementation",
284
- "type": "address"
492
+ "internalType": "address[]",
493
+ "name": "addresses",
494
+ "type": "address[]"
285
495
  },
286
496
  {
287
- "internalType": "bytes",
288
- "name": "data",
289
- "type": "bytes"
497
+ "internalType": "uint16",
498
+ "name": "newSpeedBumpHours",
499
+ "type": "uint16"
500
+ },
501
+ {
502
+ "internalType": "bool",
503
+ "name": "circuitBreaker",
504
+ "type": "bool"
290
505
  }
291
506
  ],
292
- "name": "upgradeToAndCall",
507
+ "name": "speedBumpMain",
293
508
  "outputs": [],
294
- "stateMutability": "payable",
509
+ "payable": false,
510
+ "stateMutability": "nonpayable",
511
+ "type": "function"
512
+ },
513
+ {
514
+ "constant": true,
515
+ "inputs": [
516
+ {
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"
528
+ }
529
+ ],
530
+ "payable": false,
531
+ "stateMutability": "view",
295
532
  "type": "function"
296
533
  },
297
534
  {
535
+ "constant": true,
298
536
  "inputs": [
537
+ {
538
+ "internalType": "uint8",
539
+ "name": "index",
540
+ "type": "uint8"
541
+ }
542
+ ],
543
+ "name": "speedBumpTimeCreated",
544
+ "outputs": [
545
+ {
546
+ "internalType": "uint256",
547
+ "name": "",
548
+ "type": "uint256"
549
+ }
550
+ ],
551
+ "payable": false,
552
+ "stateMutability": "view",
553
+ "type": "function"
554
+ },
555
+ {
556
+ "constant": true,
557
+ "inputs": [
558
+ {
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"
575
+ }
576
+ ],
577
+ "payable": false,
578
+ "stateMutability": "view",
579
+ "type": "function"
580
+ },
581
+ {
582
+ "constant": true,
583
+ "inputs": [],
584
+ "name": "treasuryPenaltyMultipler",
585
+ "outputs": [
586
+ {
587
+ "internalType": "uint16",
588
+ "name": "",
589
+ "type": "uint16"
590
+ }
591
+ ],
592
+ "payable": false,
593
+ "stateMutability": "view",
594
+ "type": "function"
595
+ },
596
+ {
597
+ "constant": true,
598
+ "inputs": [],
599
+ "name": "treasurysDeposit",
600
+ "outputs": [
601
+ {
602
+ "internalType": "address",
603
+ "name": "",
604
+ "type": "address"
605
+ }
606
+ ],
607
+ "payable": false,
608
+ "stateMutability": "view",
609
+ "type": "function"
610
+ },
611
+ {
612
+ "constant": true,
613
+ "inputs": [],
614
+ "name": "treasurysFactory",
615
+ "outputs": [
299
616
  {
300
617
  "internalType": "address",
301
- "name": "token",
618
+ "name": "",
302
619
  "type": "address"
303
620
  }
304
621
  ],
305
- "name": "withdrawAdmin",
622
+ "payable": false,
623
+ "stateMutability": "view",
624
+ "type": "function"
625
+ },
626
+ {
627
+ "constant": true,
628
+ "inputs": [],
629
+ "name": "treasurysRuleList",
630
+ "outputs": [
631
+ {
632
+ "internalType": "address",
633
+ "name": "",
634
+ "type": "address"
635
+ }
636
+ ],
637
+ "payable": false,
638
+ "stateMutability": "view",
639
+ "type": "function"
640
+ },
641
+ {
642
+ "constant": false,
643
+ "inputs": [],
644
+ "name": "updateTreasuryContracts",
306
645
  "outputs": [],
646
+ "payable": false,
307
647
  "stateMutability": "nonpayable",
308
648
  "type": "function"
309
649
  },
310
650
  {
651
+ "constant": false,
311
652
  "inputs": [],
312
- "name": "withdrawETHAdmin",
653
+ "name": "updateTreasuryFeeVariables",
313
654
  "outputs": [],
655
+ "payable": false,
656
+ "stateMutability": "nonpayable",
657
+ "type": "function"
658
+ },
659
+ {
660
+ "constant": false,
661
+ "inputs": [],
662
+ "name": "updateTreasuryMainVariables",
663
+ "outputs": [],
664
+ "payable": false,
314
665
  "stateMutability": "nonpayable",
315
666
  "type": "function"
316
667
  }
@@ -373,144 +724,261 @@ class Treasury_json {
373
724
  return this.contract;
374
725
  }
375
726
  /**
376
- * DEAD_ADDRESS
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
764
+ */
765
+ async implementation() {
766
+ return this.contract.read.implementation();
767
+ }
768
+ /**
769
+ * initialized
770
+ * view
771
+ */
772
+ async initialized() {
773
+ return this.contract.read.initialized();
774
+ }
775
+ /**
776
+ * mappDisputeFeeMultipler
777
+ * view
778
+ */
779
+ async mappDisputeFeeMultipler() {
780
+ return this.contract.read.mappDisputeFeeMultipler();
781
+ }
782
+ /**
783
+ * operatorAddress
784
+ * view
785
+ */
786
+ async operatorAddress() {
787
+ return this.contract.read.operatorAddress();
788
+ }
789
+ /**
790
+ * readFunctionPenaltyMultipler
377
791
  * view
378
792
  */
379
- async DEAD_ADDRESS() {
380
- return this.contract.read.DEAD_ADDRESS();
793
+ async readFunctionPenaltyMultipler(gateway) {
794
+ return this.contract.read.readFunctionPenaltyMultipler([gateway]);
381
795
  }
382
796
  /**
383
- * USDC
797
+ * speedBumpAddresses
384
798
  * view
385
799
  */
386
- async USDC() {
387
- return this.contract.read.USDC();
800
+ async speedBumpAddresses(index, addressIndex) {
801
+ return this.contract.read.speedBumpAddresses([index, addressIndex]);
388
802
  }
389
803
  /**
390
- * dao
804
+ * speedBumpCircuitBreaker
391
805
  * view
392
806
  */
393
- async dao() {
394
- return this.contract.read.dao();
807
+ async speedBumpCircuitBreaker(index) {
808
+ return this.contract.read.speedBumpCircuitBreaker([index]);
395
809
  }
396
810
  /**
397
- * multSignWallet
811
+ * speedBumpCurrentSBHours
398
812
  * view
399
813
  */
400
- async multSignWallet() {
401
- return this.contract.read.multSignWallet();
814
+ async speedBumpCurrentSBHours(index) {
815
+ return this.contract.read.speedBumpCurrentSBHours([index]);
402
816
  }
403
817
  /**
404
- * owner
818
+ * speedBumpHours
405
819
  * view
406
820
  */
407
- async owner() {
408
- return this.contract.read.owner();
821
+ async speedBumpHours() {
822
+ return this.contract.read.speedBumpHours();
409
823
  }
410
824
  /**
411
- * paused
825
+ * speedBumpNextSBHours
412
826
  * view
413
827
  */
414
- async paused() {
415
- return this.contract.read.paused();
828
+ async speedBumpNextSBHours(index) {
829
+ return this.contract.read.speedBumpNextSBHours([index]);
416
830
  }
417
831
  /**
418
- * router
832
+ * speedBumpTimeCreated
419
833
  * view
420
834
  */
421
- async router() {
422
- return this.contract.read.router();
835
+ async speedBumpTimeCreated(index) {
836
+ return this.contract.read.speedBumpTimeCreated([index]);
423
837
  }
424
838
  /**
425
- * rvlt
839
+ * speedBumpUint16s
426
840
  * view
427
841
  */
428
- async rvlt() {
429
- return this.contract.read.rvlt();
842
+ async speedBumpUint16s(index, uint16Index) {
843
+ return this.contract.read.speedBumpUint16s([index, uint16Index]);
430
844
  }
431
845
  /**
432
- * uRvlt
846
+ * treasuryPenaltyMultipler
433
847
  * view
434
848
  */
435
- async uRvlt() {
436
- return this.contract.read.uRvlt();
849
+ async treasuryPenaltyMultipler() {
850
+ return this.contract.read.treasuryPenaltyMultipler();
851
+ }
852
+ /**
853
+ * treasurysDeposit
854
+ * view
855
+ */
856
+ async treasurysDeposit() {
857
+ return this.contract.read.treasurysDeposit();
858
+ }
859
+ /**
860
+ * treasurysFactory
861
+ * view
862
+ */
863
+ async treasurysFactory() {
864
+ return this.contract.read.treasurysFactory();
865
+ }
866
+ /**
867
+ * treasurysRuleList
868
+ * view
869
+ */
870
+ async treasurysRuleList() {
871
+ return this.contract.read.treasurysRuleList();
872
+ }
873
+ /**
874
+ * changeProxyVariables
875
+ * nonpayable
876
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
877
+ */
878
+ async changeProxyVariables(nextAdmin, nextImplementation, options) {
879
+ if (!this.contract.write) {
880
+ throw new Error('Wallet client is required for write operations');
881
+ }
882
+ return this.contract.write.changeProxyVariables([nextAdmin, nextImplementation], options);
437
883
  }
438
884
  /**
439
885
  * initialize
440
886
  * nonpayable
441
887
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
442
888
  */
443
- async initialize(_rvlt, _router, _usdc, _weth, options) {
889
+ async initialize(thisQNTAddress, thisOperatorAddress, mappDisputeFee, commission, treasuryPenalty, gatewayPenalty, speedBumpTime, options) {
890
+ if (!this.contract.write) {
891
+ throw new Error('Wallet client is required for write operations');
892
+ }
893
+ return this.contract.write.initialize([thisQNTAddress, thisOperatorAddress, mappDisputeFee, commission, treasuryPenalty, gatewayPenalty, speedBumpTime], options);
894
+ }
895
+ /**
896
+ * setAdmin
897
+ * nonpayable
898
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
899
+ */
900
+ async setAdmin(options) {
444
901
  if (!this.contract.write) {
445
902
  throw new Error('Wallet client is required for write operations');
446
903
  }
447
- return this.contract.write.initialize([_rvlt, _router, _usdc, _weth], options);
904
+ return this.contract.write.setAdmin(options);
448
905
  }
449
906
  /**
450
- * renounceOwnership
907
+ * setImplementation
451
908
  * nonpayable
452
909
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
453
910
  */
454
- async renounceOwnership(options) {
911
+ async setImplementation(options) {
455
912
  if (!this.contract.write) {
456
913
  throw new Error('Wallet client is required for write operations');
457
914
  }
458
- return this.contract.write.renounceOwnership(options);
915
+ return this.contract.write.setImplementation(options);
459
916
  }
460
917
  /**
461
- * transferOwnership
918
+ * speedBumpContract
462
919
  * nonpayable
463
920
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
464
921
  */
465
- async transferOwnership(newOwner, options) {
922
+ async speedBumpContract(addresses, options) {
466
923
  if (!this.contract.write) {
467
924
  throw new Error('Wallet client is required for write operations');
468
925
  }
469
- return this.contract.write.transferOwnership([newOwner], options);
926
+ return this.contract.write.speedBumpContract([addresses], options);
470
927
  }
471
928
  /**
472
- * upgradeTo
929
+ * speedBumpFee
473
930
  * nonpayable
474
931
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
475
932
  */
476
- async upgradeTo(newImplementation, options) {
933
+ async speedBumpFee(uint16s, options) {
477
934
  if (!this.contract.write) {
478
935
  throw new Error('Wallet client is required for write operations');
479
936
  }
480
- return this.contract.write.upgradeTo([newImplementation], options);
937
+ return this.contract.write.speedBumpFee([uint16s], options);
481
938
  }
482
939
  /**
483
- * upgradeToAndCall
484
- * payable
940
+ * speedBumpMain
941
+ * nonpayable
485
942
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
486
943
  */
487
- async upgradeToAndCall(newImplementation, data, options) {
944
+ async speedBumpMain(addresses, newSpeedBumpHours, circuitBreaker, options) {
488
945
  if (!this.contract.write) {
489
946
  throw new Error('Wallet client is required for write operations');
490
947
  }
491
- return this.contract.write.upgradeToAndCall([newImplementation, data], options);
948
+ return this.contract.write.speedBumpMain([addresses, newSpeedBumpHours, circuitBreaker], options);
492
949
  }
493
950
  /**
494
- * withdrawAdmin
951
+ * updateTreasuryContracts
495
952
  * nonpayable
496
953
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
497
954
  */
498
- async withdrawAdmin(token, options) {
955
+ async updateTreasuryContracts(options) {
499
956
  if (!this.contract.write) {
500
957
  throw new Error('Wallet client is required for write operations');
501
958
  }
502
- return this.contract.write.withdrawAdmin([token], options);
959
+ return this.contract.write.updateTreasuryContracts(options);
503
960
  }
504
961
  /**
505
- * withdrawETHAdmin
962
+ * updateTreasuryFeeVariables
506
963
  * nonpayable
507
964
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
508
965
  */
509
- async withdrawETHAdmin(options) {
966
+ async updateTreasuryFeeVariables(options) {
510
967
  if (!this.contract.write) {
511
968
  throw new Error('Wallet client is required for write operations');
512
969
  }
513
- return this.contract.write.withdrawETHAdmin(options);
970
+ return this.contract.write.updateTreasuryFeeVariables(options);
971
+ }
972
+ /**
973
+ * updateTreasuryMainVariables
974
+ * nonpayable
975
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
976
+ */
977
+ async updateTreasuryMainVariables(options) {
978
+ if (!this.contract.write) {
979
+ throw new Error('Wallet client is required for write operations');
980
+ }
981
+ return this.contract.write.updateTreasuryMainVariables(options);
514
982
  }
515
983
  /**
516
984
  * Simulate contract write operations (dry-run without sending transaction)
@@ -526,61 +994,85 @@ class Treasury_json {
526
994
  throw new Error('Public client is required for simulation');
527
995
  }
528
996
  return {
997
+ /**
998
+ * Simulate changeProxyVariables
999
+ * Returns gas estimate and result without sending transaction
1000
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1001
+ */
1002
+ async changeProxyVariables(nextAdmin, nextImplementation, options) {
1003
+ return contract.simulate.changeProxyVariables([nextAdmin, nextImplementation], options);
1004
+ },
529
1005
  /**
530
1006
  * Simulate initialize
531
1007
  * Returns gas estimate and result without sending transaction
532
1008
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
533
1009
  */
534
- async initialize(_rvlt, _router, _usdc, _weth, options) {
535
- return contract.simulate.initialize([_rvlt, _router, _usdc, _weth], options);
1010
+ async initialize(thisQNTAddress, thisOperatorAddress, mappDisputeFee, commission, treasuryPenalty, gatewayPenalty, speedBumpTime, options) {
1011
+ return contract.simulate.initialize([thisQNTAddress, thisOperatorAddress, mappDisputeFee, commission, treasuryPenalty, gatewayPenalty, speedBumpTime], options);
536
1012
  },
537
1013
  /**
538
- * Simulate renounceOwnership
1014
+ * Simulate setAdmin
539
1015
  * Returns gas estimate and result without sending transaction
540
1016
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
541
1017
  */
542
- async renounceOwnership(options) {
543
- return contract.simulate.renounceOwnership(options);
1018
+ async setAdmin(options) {
1019
+ return contract.simulate.setAdmin(options);
544
1020
  },
545
1021
  /**
546
- * Simulate transferOwnership
1022
+ * Simulate setImplementation
547
1023
  * Returns gas estimate and result without sending transaction
548
1024
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
549
1025
  */
550
- async transferOwnership(newOwner, options) {
551
- return contract.simulate.transferOwnership([newOwner], options);
1026
+ async setImplementation(options) {
1027
+ return contract.simulate.setImplementation(options);
552
1028
  },
553
1029
  /**
554
- * Simulate upgradeTo
1030
+ * Simulate speedBumpContract
555
1031
  * Returns gas estimate and result without sending transaction
556
1032
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
557
1033
  */
558
- async upgradeTo(newImplementation, options) {
559
- return contract.simulate.upgradeTo([newImplementation], options);
1034
+ async speedBumpContract(addresses, options) {
1035
+ return contract.simulate.speedBumpContract([addresses], options);
560
1036
  },
561
1037
  /**
562
- * Simulate upgradeToAndCall
1038
+ * Simulate speedBumpFee
563
1039
  * Returns gas estimate and result without sending transaction
564
1040
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
565
1041
  */
566
- async upgradeToAndCall(newImplementation, data, options) {
567
- return contract.simulate.upgradeToAndCall([newImplementation, data], options);
1042
+ async speedBumpFee(uint16s, options) {
1043
+ return contract.simulate.speedBumpFee([uint16s], options);
568
1044
  },
569
1045
  /**
570
- * Simulate withdrawAdmin
1046
+ * Simulate speedBumpMain
571
1047
  * Returns gas estimate and result without sending transaction
572
1048
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
573
1049
  */
574
- async withdrawAdmin(token, options) {
575
- return contract.simulate.withdrawAdmin([token], options);
1050
+ async speedBumpMain(addresses, newSpeedBumpHours, circuitBreaker, options) {
1051
+ return contract.simulate.speedBumpMain([addresses, newSpeedBumpHours, circuitBreaker], options);
576
1052
  },
577
1053
  /**
578
- * Simulate withdrawETHAdmin
1054
+ * Simulate updateTreasuryContracts
579
1055
  * Returns gas estimate and result without sending transaction
580
1056
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
581
1057
  */
582
- async withdrawETHAdmin(options) {
583
- return contract.simulate.withdrawETHAdmin(options);
1058
+ async updateTreasuryContracts(options) {
1059
+ return contract.simulate.updateTreasuryContracts(options);
1060
+ },
1061
+ /**
1062
+ * Simulate updateTreasuryFeeVariables
1063
+ * Returns gas estimate and result without sending transaction
1064
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1065
+ */
1066
+ async updateTreasuryFeeVariables(options) {
1067
+ return contract.simulate.updateTreasuryFeeVariables(options);
1068
+ },
1069
+ /**
1070
+ * Simulate updateTreasuryMainVariables
1071
+ * Returns gas estimate and result without sending transaction
1072
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1073
+ */
1074
+ async updateTreasuryMainVariables(options) {
1075
+ return contract.simulate.updateTreasuryMainVariables(options);
584
1076
  }
585
1077
  };
586
1078
  }
@@ -599,35 +1091,16 @@ class Treasury_json {
599
1091
  get watch() {
600
1092
  return {
601
1093
  /**
602
- * Watch AdminChanged events
603
- * @param callback Function to call when event is emitted
604
- * @param filter Optional filter for indexed parameters
605
- * @returns Unwatch function to stop listening
606
- */
607
- AdminChanged: (callback) => {
608
- return this.publicClient.watchContractEvent({
609
- address: this.contractAddress,
610
- abi: exports.Treasury_jsonAbi,
611
- eventName: 'AdminChanged',
612
- onLogs: (logs) => {
613
- logs.forEach((log) => {
614
- callback(log.args);
615
- });
616
- },
617
- });
618
- },
619
- /**
620
- * Watch BeaconUpgraded events
1094
+ * Watch connectedContracts events
621
1095
  * @param callback Function to call when event is emitted
622
1096
  * @param filter Optional filter for indexed parameters
623
1097
  * @returns Unwatch function to stop listening
624
1098
  */
625
- BeaconUpgraded: (callback, filter) => {
1099
+ connectedContracts: (callback) => {
626
1100
  return this.publicClient.watchContractEvent({
627
1101
  address: this.contractAddress,
628
1102
  abi: exports.Treasury_jsonAbi,
629
- eventName: 'BeaconUpgraded',
630
- args: filter,
1103
+ eventName: 'connectedContracts',
631
1104
  onLogs: (logs) => {
632
1105
  logs.forEach((log) => {
633
1106
  callback(log.args);
@@ -636,17 +1109,16 @@ class Treasury_json {
636
1109
  });
637
1110
  },
638
1111
  /**
639
- * Watch OwnershipTransferred events
1112
+ * Watch updatedSpeedBump events
640
1113
  * @param callback Function to call when event is emitted
641
1114
  * @param filter Optional filter for indexed parameters
642
1115
  * @returns Unwatch function to stop listening
643
1116
  */
644
- OwnershipTransferred: (callback, filter) => {
1117
+ updatedSpeedBump: (callback) => {
645
1118
  return this.publicClient.watchContractEvent({
646
1119
  address: this.contractAddress,
647
1120
  abi: exports.Treasury_jsonAbi,
648
- eventName: 'OwnershipTransferred',
649
- args: filter,
1121
+ eventName: 'updatedSpeedBump',
650
1122
  onLogs: (logs) => {
651
1123
  logs.forEach((log) => {
652
1124
  callback(log.args);
@@ -655,16 +1127,16 @@ class Treasury_json {
655
1127
  });
656
1128
  },
657
1129
  /**
658
- * Watch Paused events
1130
+ * Watch updatedTreasuryFunctionVerification events
659
1131
  * @param callback Function to call when event is emitted
660
1132
  * @param filter Optional filter for indexed parameters
661
1133
  * @returns Unwatch function to stop listening
662
1134
  */
663
- Paused: (callback) => {
1135
+ updatedTreasuryFunctionVerification: (callback) => {
664
1136
  return this.publicClient.watchContractEvent({
665
1137
  address: this.contractAddress,
666
1138
  abi: exports.Treasury_jsonAbi,
667
- eventName: 'Paused',
1139
+ eventName: 'updatedTreasuryFunctionVerification',
668
1140
  onLogs: (logs) => {
669
1141
  logs.forEach((log) => {
670
1142
  callback(log.args);
@@ -673,16 +1145,16 @@ class Treasury_json {
673
1145
  });
674
1146
  },
675
1147
  /**
676
- * Watch Unpaused events
1148
+ * Watch updatedTreasuryMainVariables events
677
1149
  * @param callback Function to call when event is emitted
678
1150
  * @param filter Optional filter for indexed parameters
679
1151
  * @returns Unwatch function to stop listening
680
1152
  */
681
- Unpaused: (callback) => {
1153
+ updatedTreasuryMainVariables: (callback) => {
682
1154
  return this.publicClient.watchContractEvent({
683
1155
  address: this.contractAddress,
684
1156
  abi: exports.Treasury_jsonAbi,
685
- eventName: 'Unpaused',
1157
+ eventName: 'updatedTreasuryMainVariables',
686
1158
  onLogs: (logs) => {
687
1159
  logs.forEach((log) => {
688
1160
  callback(log.args);
@@ -691,17 +1163,16 @@ class Treasury_json {
691
1163
  });
692
1164
  },
693
1165
  /**
694
- * Watch Upgraded events
1166
+ * Watch updatedTreasuryVariables events
695
1167
  * @param callback Function to call when event is emitted
696
1168
  * @param filter Optional filter for indexed parameters
697
1169
  * @returns Unwatch function to stop listening
698
1170
  */
699
- Upgraded: (callback, filter) => {
1171
+ updatedTreasuryVariables: (callback) => {
700
1172
  return this.publicClient.watchContractEvent({
701
1173
  address: this.contractAddress,
702
1174
  abi: exports.Treasury_jsonAbi,
703
- eventName: 'Upgraded',
704
- args: filter,
1175
+ eventName: 'updatedTreasuryVariables',
705
1176
  onLogs: (logs) => {
706
1177
  logs.forEach((log) => {
707
1178
  callback(log.args);