@gitmyabi/treasury 1.0.0 → 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.
@@ -8,224 +8,53 @@ import { getContract } from 'viem';
8
8
  */
9
9
  export const Treasury_jsonAbi = [
10
10
  {
11
+ "anonymous": false,
11
12
  "inputs": [
12
13
  {
13
- "internalType": "contract IFWA",
14
- "name": "_fwa",
15
- "type": "address"
16
- },
17
- {
14
+ "indexed": false,
18
15
  "internalType": "address",
19
- "name": "_owner",
20
- "type": "address"
21
- },
22
- {
23
- "internalType": "contract IPoolManager",
24
- "name": "_poolManager",
16
+ "name": "factory",
25
17
  "type": "address"
26
18
  },
27
19
  {
20
+ "indexed": false,
28
21
  "internalType": "address",
29
- "name": "_token",
30
- "type": "address"
31
- },
32
- {
33
- "internalType": "contract IHooks",
34
- "name": "_hook",
22
+ "name": "ruleList",
35
23
  "type": "address"
36
24
  },
37
25
  {
26
+ "indexed": false,
38
27
  "internalType": "address",
39
- "name": "_seaport",
40
- "type": "address"
41
- }
42
- ],
43
- "stateMutability": "nonpayable",
44
- "type": "constructor"
45
- },
46
- {
47
- "inputs": [
48
- {
49
- "internalType": "address",
50
- "name": "target",
51
- "type": "address"
52
- }
53
- ],
54
- "name": "AddressEmptyCode",
55
- "type": "error"
56
- },
57
- {
58
- "inputs": [
59
- {
60
- "internalType": "address",
61
- "name": "account",
62
- "type": "address"
63
- }
64
- ],
65
- "name": "AddressInsufficientBalance",
66
- "type": "error"
67
- },
68
- {
69
- "inputs": [],
70
- "name": "BackingTooHigh",
71
- "type": "error"
72
- },
73
- {
74
- "inputs": [],
75
- "name": "CapExceeded",
76
- "type": "error"
77
- },
78
- {
79
- "inputs": [],
80
- "name": "EnforcedPause",
81
- "type": "error"
82
- },
83
- {
84
- "inputs": [],
85
- "name": "ExpectedPause",
86
- "type": "error"
87
- },
88
- {
89
- "inputs": [],
90
- "name": "FailedInnerCall",
91
- "type": "error"
92
- },
93
- {
94
- "inputs": [],
95
- "name": "InsufficientBalance",
96
- "type": "error"
97
- },
98
- {
99
- "inputs": [],
100
- "name": "NftNotReceived",
101
- "type": "error"
102
- },
103
- {
104
- "inputs": [],
105
- "name": "NftPriceTooHigh",
106
- "type": "error"
107
- },
108
- {
109
- "inputs": [],
110
- "name": "NotOperatorOrOwner",
111
- "type": "error"
112
- },
113
- {
114
- "inputs": [],
115
- "name": "NotPoolManager",
116
- "type": "error"
117
- },
118
- {
119
- "inputs": [
120
- {
121
- "internalType": "address",
122
- "name": "owner",
123
- "type": "address"
124
- }
125
- ],
126
- "name": "OwnableInvalidOwner",
127
- "type": "error"
128
- },
129
- {
130
- "inputs": [
131
- {
132
- "internalType": "address",
133
- "name": "account",
134
- "type": "address"
135
- }
136
- ],
137
- "name": "OwnableUnauthorizedAccount",
138
- "type": "error"
139
- },
140
- {
141
- "inputs": [],
142
- "name": "ReentrancyGuardReentrantCall",
143
- "type": "error"
144
- },
145
- {
146
- "inputs": [
147
- {
148
- "internalType": "address",
149
- "name": "token",
28
+ "name": "escrowedDeposit",
150
29
  "type": "address"
151
30
  }
152
31
  ],
153
- "name": "SafeERC20FailedOperation",
154
- "type": "error"
155
- },
156
- {
157
- "inputs": [],
158
- "name": "SeaportBuyFailed",
159
- "type": "error"
160
- },
161
- {
162
- "inputs": [],
163
- "name": "SlippageBuyback",
164
- "type": "error"
165
- },
166
- {
167
- "inputs": [],
168
- "name": "SlippageTooHigh",
169
- "type": "error"
170
- },
171
- {
172
- "inputs": [],
173
- "name": "TransferFailed",
174
- "type": "error"
175
- },
176
- {
177
- "inputs": [],
178
- "name": "ZeroAddress",
179
- "type": "error"
180
- },
181
- {
182
- "anonymous": false,
183
- "inputs": [
184
- {
185
- "indexed": true,
186
- "internalType": "uint256",
187
- "name": "listingId",
188
- "type": "uint256"
189
- },
190
- {
191
- "indexed": false,
192
- "internalType": "uint256",
193
- "name": "newBacking",
194
- "type": "uint256"
195
- }
196
- ],
197
- "name": "BackingUpdated",
32
+ "name": "connectedContracts",
198
33
  "type": "event"
199
34
  },
200
35
  {
201
36
  "anonymous": false,
202
37
  "inputs": [
203
38
  {
204
- "indexed": true,
39
+ "indexed": false,
205
40
  "internalType": "uint256",
206
- "name": "listingId",
41
+ "name": "speedBumpIndex",
207
42
  "type": "uint256"
208
43
  },
209
- {
210
- "indexed": true,
211
- "internalType": "address",
212
- "name": "collection",
213
- "type": "address"
214
- },
215
44
  {
216
45
  "indexed": false,
217
46
  "internalType": "uint256",
218
- "name": "tokenId",
47
+ "name": "timeCreated",
219
48
  "type": "uint256"
220
49
  },
221
50
  {
222
51
  "indexed": false,
223
52
  "internalType": "uint256",
224
- "name": "priceWei",
53
+ "name": "speedBumpHours",
225
54
  "type": "uint256"
226
55
  }
227
56
  ],
228
- "name": "BoughtAndListed",
57
+ "name": "updatedSpeedBump",
229
58
  "type": "event"
230
59
  },
231
60
  {
@@ -233,18 +62,18 @@ export const Treasury_jsonAbi = [
233
62
  "inputs": [
234
63
  {
235
64
  "indexed": false,
236
- "internalType": "uint256",
237
- "name": "ethIn",
238
- "type": "uint256"
65
+ "internalType": "string",
66
+ "name": "verificationDetails",
67
+ "type": "string"
239
68
  },
240
69
  {
241
70
  "indexed": false,
242
- "internalType": "uint256",
243
- "name": "tokensBurned",
244
- "type": "uint256"
71
+ "internalType": "string",
72
+ "name": "locationOfDetails",
73
+ "type": "string"
245
74
  }
246
75
  ],
247
- "name": "BuybackBurned",
76
+ "name": "updatedTreasuryFunctionVerification",
248
77
  "type": "event"
249
78
  },
250
79
  {
@@ -252,302 +81,267 @@ export const Treasury_jsonAbi = [
252
81
  "inputs": [
253
82
  {
254
83
  "indexed": false,
255
- "internalType": "uint256",
256
- "name": "bps",
257
- "type": "uint256"
84
+ "internalType": "address",
85
+ "name": "newWithdrawalAddress",
86
+ "type": "address"
87
+ },
88
+ {
89
+ "indexed": false,
90
+ "internalType": "address",
91
+ "name": "newOperator",
92
+ "type": "address"
93
+ },
94
+ {
95
+ "indexed": false,
96
+ "internalType": "bool",
97
+ "name": "circuitBreaker",
98
+ "type": "bool"
258
99
  }
259
100
  ],
260
- "name": "BuybackSlippageSet",
101
+ "name": "updatedTreasuryMainVariables",
261
102
  "type": "event"
262
103
  },
263
104
  {
264
105
  "anonymous": false,
265
106
  "inputs": [
266
107
  {
267
- "indexed": true,
268
- "internalType": "address",
269
- "name": "token",
270
- "type": "address"
108
+ "indexed": false,
109
+ "internalType": "uint16",
110
+ "name": "mappDisputeFeeMultipler",
111
+ "type": "uint16"
271
112
  },
272
113
  {
273
- "indexed": true,
274
- "internalType": "address",
275
- "name": "to",
276
- "type": "address"
114
+ "indexed": false,
115
+ "internalType": "uint16",
116
+ "name": "commissionDivider",
117
+ "type": "uint16"
277
118
  },
278
119
  {
279
120
  "indexed": false,
280
- "internalType": "uint256",
281
- "name": "amount",
282
- "type": "uint256"
121
+ "internalType": "uint16",
122
+ "name": "gatewayPenaltyMultipler",
123
+ "type": "uint16"
124
+ },
125
+ {
126
+ "indexed": false,
127
+ "internalType": "uint16",
128
+ "name": "treasuryPenaltyMultipler",
129
+ "type": "uint16"
283
130
  }
284
131
  ],
285
- "name": "EmergencyWithdrawERC20",
132
+ "name": "updatedTreasuryVariables",
286
133
  "type": "event"
287
134
  },
288
135
  {
289
- "anonymous": false,
290
- "inputs": [
136
+ "constant": true,
137
+ "inputs": [],
138
+ "name": "QNTAddress",
139
+ "outputs": [
291
140
  {
292
- "indexed": true,
293
141
  "internalType": "address",
294
- "name": "collection",
142
+ "name": "",
295
143
  "type": "address"
296
- },
144
+ }
145
+ ],
146
+ "payable": false,
147
+ "stateMutability": "view",
148
+ "type": "function"
149
+ },
150
+ {
151
+ "constant": true,
152
+ "inputs": [],
153
+ "name": "admin",
154
+ "outputs": [
297
155
  {
298
- "indexed": true,
299
156
  "internalType": "address",
300
- "name": "to",
157
+ "name": "",
301
158
  "type": "address"
302
- },
303
- {
304
- "indexed": false,
305
- "internalType": "uint256",
306
- "name": "tokenId",
307
- "type": "uint256"
308
159
  }
309
160
  ],
310
- "name": "EmergencyWithdrawERC721",
311
- "type": "event"
161
+ "payable": false,
162
+ "stateMutability": "view",
163
+ "type": "function"
312
164
  },
313
165
  {
314
- "anonymous": false,
166
+ "constant": false,
315
167
  "inputs": [
316
168
  {
317
- "indexed": true,
318
169
  "internalType": "address",
319
- "name": "to",
170
+ "name": "nextAdmin",
320
171
  "type": "address"
321
172
  },
322
173
  {
323
- "indexed": false,
324
- "internalType": "uint256",
325
- "name": "amount",
326
- "type": "uint256"
174
+ "internalType": "address",
175
+ "name": "nextImplementation",
176
+ "type": "address"
327
177
  }
328
178
  ],
329
- "name": "EmergencyWithdrawETH",
330
- "type": "event"
179
+ "name": "changeProxyVariables",
180
+ "outputs": [],
181
+ "payable": false,
182
+ "stateMutability": "nonpayable",
183
+ "type": "function"
331
184
  },
332
185
  {
333
- "anonymous": false,
334
- "inputs": [
186
+ "constant": true,
187
+ "inputs": [],
188
+ "name": "circuitBreakerOn",
189
+ "outputs": [
335
190
  {
336
- "indexed": false,
337
- "internalType": "uint256",
338
- "name": "total",
339
- "type": "uint256"
191
+ "internalType": "bool",
192
+ "name": "",
193
+ "type": "bool"
340
194
  }
341
195
  ],
342
- "name": "FeesClaimed",
343
- "type": "event"
196
+ "payable": false,
197
+ "stateMutability": "view",
198
+ "type": "function"
344
199
  },
345
200
  {
346
- "anonymous": false,
347
- "inputs": [
201
+ "constant": true,
202
+ "inputs": [],
203
+ "name": "commissionDivider",
204
+ "outputs": [
348
205
  {
349
- "indexed": false,
350
- "internalType": "uint256",
351
- "name": "amount",
352
- "type": "uint256"
206
+ "internalType": "uint16",
207
+ "name": "",
208
+ "type": "uint16"
353
209
  }
354
210
  ],
355
- "name": "FundsReturned",
356
- "type": "event"
211
+ "payable": false,
212
+ "stateMutability": "view",
213
+ "type": "function"
357
214
  },
358
215
  {
359
- "anonymous": false,
360
- "inputs": [
216
+ "constant": true,
217
+ "inputs": [],
218
+ "name": "gatewayPenaltyMultipler",
219
+ "outputs": [
361
220
  {
362
- "indexed": false,
363
- "internalType": "string",
364
- "name": "action",
365
- "type": "string"
366
- },
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",
234
+ "outputs": [
367
235
  {
368
- "indexed": true,
369
- "internalType": "uint256",
370
- "name": "listingId",
371
- "type": "uint256"
236
+ "internalType": "address",
237
+ "name": "",
238
+ "type": "address"
372
239
  }
373
240
  ],
374
- "name": "FwaRecovery",
375
- "type": "event"
241
+ "payable": false,
242
+ "stateMutability": "view",
243
+ "type": "function"
376
244
  },
377
245
  {
378
- "anonymous": false,
246
+ "constant": false,
379
247
  "inputs": [
380
248
  {
381
- "indexed": false,
382
- "internalType": "uint256",
383
- "name": "maxBackingWei",
384
- "type": "uint256"
249
+ "internalType": "address",
250
+ "name": "thisQNTAddress",
251
+ "type": "address"
385
252
  },
386
253
  {
387
- "indexed": false,
388
- "internalType": "uint256",
389
- "name": "maxNftPriceWei",
390
- "type": "uint256"
254
+ "internalType": "address",
255
+ "name": "thisOperatorAddress",
256
+ "type": "address"
391
257
  },
392
258
  {
393
- "indexed": false,
394
- "internalType": "uint256",
395
- "name": "maxPerTx",
396
- "type": "uint256"
259
+ "internalType": "uint16",
260
+ "name": "mappDisputeFee",
261
+ "type": "uint16"
397
262
  },
398
263
  {
399
- "indexed": false,
400
- "internalType": "uint256",
401
- "name": "maxPerDay",
402
- "type": "uint256"
403
- }
404
- ],
405
- "name": "LimitsSet",
406
- "type": "event"
407
- },
408
- {
409
- "anonymous": false,
410
- "inputs": [
411
- {
412
- "indexed": true,
413
- "internalType": "uint256",
414
- "name": "listingId",
415
- "type": "uint256"
416
- },
417
- {
418
- "indexed": true,
419
- "internalType": "address",
420
- "name": "collection",
421
- "type": "address"
264
+ "internalType": "uint16",
265
+ "name": "commission",
266
+ "type": "uint16"
422
267
  },
423
268
  {
424
- "indexed": false,
425
- "internalType": "uint256",
426
- "name": "tokenId",
427
- "type": "uint256"
269
+ "internalType": "uint16",
270
+ "name": "treasuryPenalty",
271
+ "type": "uint16"
428
272
  },
429
273
  {
430
- "indexed": false,
431
- "internalType": "uint256",
432
- "name": "backingWei",
433
- "type": "uint256"
434
- }
435
- ],
436
- "name": "ListedOnFwa",
437
- "type": "event"
438
- },
439
- {
440
- "anonymous": false,
441
- "inputs": [
442
- {
443
- "indexed": true,
444
- "internalType": "address",
445
- "name": "operator",
446
- "type": "address"
274
+ "internalType": "uint16",
275
+ "name": "gatewayPenalty",
276
+ "type": "uint16"
447
277
  },
448
278
  {
449
- "indexed": false,
450
- "internalType": "uint256",
451
- "name": "amount",
452
- "type": "uint256"
453
- }
454
- ],
455
- "name": "OperatorFunded",
456
- "type": "event"
457
- },
458
- {
459
- "anonymous": false,
460
- "inputs": [
461
- {
462
- "indexed": true,
463
- "internalType": "address",
464
- "name": "operator",
465
- "type": "address"
279
+ "internalType": "uint16",
280
+ "name": "speedBumpTime",
281
+ "type": "uint16"
466
282
  }
467
283
  ],
468
- "name": "OperatorSet",
469
- "type": "event"
284
+ "name": "initialize",
285
+ "outputs": [],
286
+ "payable": false,
287
+ "stateMutability": "nonpayable",
288
+ "type": "function"
470
289
  },
471
290
  {
472
- "anonymous": false,
473
- "inputs": [
474
- {
475
- "indexed": true,
476
- "internalType": "address",
477
- "name": "previousOwner",
478
- "type": "address"
479
- },
291
+ "constant": true,
292
+ "inputs": [],
293
+ "name": "initialized",
294
+ "outputs": [
480
295
  {
481
- "indexed": true,
482
- "internalType": "address",
483
- "name": "newOwner",
484
- "type": "address"
296
+ "internalType": "bool",
297
+ "name": "",
298
+ "type": "bool"
485
299
  }
486
300
  ],
487
- "name": "OwnershipTransferStarted",
488
- "type": "event"
301
+ "payable": false,
302
+ "stateMutability": "view",
303
+ "type": "function"
489
304
  },
490
305
  {
491
- "anonymous": false,
492
- "inputs": [
493
- {
494
- "indexed": true,
495
- "internalType": "address",
496
- "name": "previousOwner",
497
- "type": "address"
498
- },
306
+ "constant": true,
307
+ "inputs": [],
308
+ "name": "mappDisputeFeeMultipler",
309
+ "outputs": [
499
310
  {
500
- "indexed": true,
501
- "internalType": "address",
502
- "name": "newOwner",
503
- "type": "address"
311
+ "internalType": "uint16",
312
+ "name": "",
313
+ "type": "uint16"
504
314
  }
505
315
  ],
506
- "name": "OwnershipTransferred",
507
- "type": "event"
316
+ "payable": false,
317
+ "stateMutability": "view",
318
+ "type": "function"
508
319
  },
509
320
  {
510
- "anonymous": false,
511
- "inputs": [
321
+ "constant": true,
322
+ "inputs": [],
323
+ "name": "operatorAddress",
324
+ "outputs": [
512
325
  {
513
- "indexed": false,
514
326
  "internalType": "address",
515
- "name": "account",
327
+ "name": "",
516
328
  "type": "address"
517
329
  }
518
330
  ],
519
- "name": "Paused",
520
- "type": "event"
521
- },
522
- {
523
- "anonymous": false,
524
- "inputs": [
525
- {
526
- "indexed": false,
527
- "internalType": "uint256",
528
- "name": "total",
529
- "type": "uint256"
530
- }
531
- ],
532
- "name": "RewardsClaimed",
533
- "type": "event"
331
+ "payable": false,
332
+ "stateMutability": "view",
333
+ "type": "function"
534
334
  },
535
335
  {
536
- "anonymous": false,
336
+ "constant": true,
537
337
  "inputs": [
538
338
  {
539
- "indexed": false,
540
- "internalType": "address",
541
- "name": "account",
542
- "type": "address"
339
+ "internalType": "bool",
340
+ "name": "gateway",
341
+ "type": "bool"
543
342
  }
544
343
  ],
545
- "name": "Unpaused",
546
- "type": "event"
547
- },
548
- {
549
- "inputs": [],
550
- "name": "MAX_BUYBACK_SLIPPAGE_BPS",
344
+ "name": "readFunctionPenaltyMultipler",
551
345
  "outputs": [
552
346
  {
553
347
  "internalType": "uint256",
@@ -555,757 +349,320 @@ export const Treasury_jsonAbi = [
555
349
  "type": "uint256"
556
350
  }
557
351
  ],
352
+ "payable": false,
558
353
  "stateMutability": "view",
559
354
  "type": "function"
560
355
  },
561
356
  {
357
+ "constant": false,
562
358
  "inputs": [],
563
- "name": "acceptOwnership",
359
+ "name": "setAdmin",
564
360
  "outputs": [],
361
+ "payable": false,
565
362
  "stateMutability": "nonpayable",
566
363
  "type": "function"
567
364
  },
568
365
  {
569
- "inputs": [
570
- {
571
- "internalType": "uint256",
572
- "name": "maxCount",
573
- "type": "uint256"
574
- }
575
- ],
576
- "name": "activateFwaListings",
366
+ "constant": false,
367
+ "inputs": [],
368
+ "name": "setImplementation",
577
369
  "outputs": [],
370
+ "payable": false,
578
371
  "stateMutability": "nonpayable",
579
372
  "type": "function"
580
373
  },
581
374
  {
375
+ "constant": true,
582
376
  "inputs": [
583
377
  {
584
- "internalType": "bytes",
585
- "name": "seaportCalldata",
586
- "type": "bytes"
587
- },
588
- {
589
- "internalType": "uint256",
590
- "name": "priceWei",
591
- "type": "uint256"
592
- },
593
- {
594
- "internalType": "address",
595
- "name": "collection",
596
- "type": "address"
597
- },
598
- {
599
- "internalType": "uint256",
600
- "name": "tokenId",
601
- "type": "uint256"
378
+ "internalType": "uint8",
379
+ "name": "index",
380
+ "type": "uint8"
602
381
  },
603
382
  {
604
- "internalType": "uint256",
605
- "name": "backingWei",
606
- "type": "uint256"
383
+ "internalType": "uint8",
384
+ "name": "addressIndex",
385
+ "type": "uint8"
607
386
  }
608
387
  ],
609
- "name": "buyAndList",
388
+ "name": "speedBumpAddresses",
610
389
  "outputs": [
611
390
  {
612
- "internalType": "uint256",
613
- "name": "listingId",
614
- "type": "uint256"
391
+ "internalType": "address",
392
+ "name": "",
393
+ "type": "address"
615
394
  }
616
395
  ],
617
- "stateMutability": "nonpayable",
396
+ "payable": false,
397
+ "stateMutability": "view",
618
398
  "type": "function"
619
399
  },
620
400
  {
401
+ "constant": true,
621
402
  "inputs": [
622
403
  {
623
- "internalType": "uint256",
624
- "name": "ethAmount",
625
- "type": "uint256"
626
- },
627
- {
628
- "internalType": "uint256",
629
- "name": "minTokensOut",
630
- "type": "uint256"
631
- }
632
- ],
633
- "name": "buybackAndBurn",
634
- "outputs": [
635
- {
636
- "internalType": "uint256",
637
- "name": "tokensBurned",
638
- "type": "uint256"
404
+ "internalType": "uint8",
405
+ "name": "index",
406
+ "type": "uint8"
639
407
  }
640
408
  ],
641
- "stateMutability": "nonpayable",
642
- "type": "function"
643
- },
644
- {
645
- "inputs": [],
646
- "name": "buybackSlippageBps",
409
+ "name": "speedBumpCircuitBreaker",
647
410
  "outputs": [
648
411
  {
649
- "internalType": "uint256",
412
+ "internalType": "bool",
650
413
  "name": "",
651
- "type": "uint256"
414
+ "type": "bool"
652
415
  }
653
416
  ],
417
+ "payable": false,
654
418
  "stateMutability": "view",
655
419
  "type": "function"
656
420
  },
657
421
  {
422
+ "constant": false,
658
423
  "inputs": [
659
424
  {
660
- "internalType": "uint256[]",
661
- "name": "ids",
662
- "type": "uint256[]"
663
- }
664
- ],
665
- "name": "claimFees",
666
- "outputs": [
667
- {
668
- "internalType": "uint256",
669
- "name": "total",
670
- "type": "uint256"
425
+ "internalType": "address[]",
426
+ "name": "addresses",
427
+ "type": "address[]"
671
428
  }
672
429
  ],
430
+ "name": "speedBumpContract",
431
+ "outputs": [],
432
+ "payable": false,
673
433
  "stateMutability": "nonpayable",
674
434
  "type": "function"
675
435
  },
676
436
  {
437
+ "constant": true,
677
438
  "inputs": [
678
439
  {
679
- "internalType": "uint256[]",
680
- "name": "ids",
681
- "type": "uint256[]"
440
+ "internalType": "uint8",
441
+ "name": "index",
442
+ "type": "uint8"
682
443
  }
683
444
  ],
684
- "name": "claimRewards",
445
+ "name": "speedBumpCurrentSBHours",
685
446
  "outputs": [
686
447
  {
687
- "internalType": "uint256",
688
- "name": "total",
689
- "type": "uint256"
448
+ "internalType": "uint16",
449
+ "name": "",
450
+ "type": "uint16"
690
451
  }
691
452
  ],
692
- "stateMutability": "nonpayable",
453
+ "payable": false,
454
+ "stateMutability": "view",
693
455
  "type": "function"
694
456
  },
695
457
  {
458
+ "constant": false,
696
459
  "inputs": [
697
460
  {
698
- "internalType": "uint256",
699
- "name": "listingId",
700
- "type": "uint256"
461
+ "internalType": "uint16[]",
462
+ "name": "uint16s",
463
+ "type": "uint16[]"
701
464
  }
702
465
  ],
703
- "name": "claimTopSpot",
466
+ "name": "speedBumpFee",
704
467
  "outputs": [],
468
+ "payable": false,
705
469
  "stateMutability": "nonpayable",
706
470
  "type": "function"
707
471
  },
708
472
  {
473
+ "constant": true,
709
474
  "inputs": [],
710
- "name": "currentDay",
475
+ "name": "speedBumpHours",
711
476
  "outputs": [
712
477
  {
713
- "internalType": "uint256",
478
+ "internalType": "uint16",
714
479
  "name": "",
715
- "type": "uint256"
480
+ "type": "uint16"
716
481
  }
717
482
  ],
483
+ "payable": false,
718
484
  "stateMutability": "view",
719
485
  "type": "function"
720
486
  },
721
487
  {
488
+ "constant": false,
722
489
  "inputs": [
723
490
  {
724
- "internalType": "uint256",
725
- "name": "listingId",
726
- "type": "uint256"
491
+ "internalType": "address[]",
492
+ "name": "addresses",
493
+ "type": "address[]"
494
+ },
495
+ {
496
+ "internalType": "uint16",
497
+ "name": "newSpeedBumpHours",
498
+ "type": "uint16"
499
+ },
500
+ {
501
+ "internalType": "bool",
502
+ "name": "circuitBreaker",
503
+ "type": "bool"
727
504
  }
728
505
  ],
729
- "name": "depositorReclaimBacking",
506
+ "name": "speedBumpMain",
730
507
  "outputs": [],
508
+ "payable": false,
731
509
  "stateMutability": "nonpayable",
732
510
  "type": "function"
733
511
  },
734
512
  {
513
+ "constant": true,
735
514
  "inputs": [
736
515
  {
737
- "internalType": "uint256",
738
- "name": "listingId",
739
- "type": "uint256"
516
+ "internalType": "uint8",
517
+ "name": "index",
518
+ "type": "uint8"
740
519
  }
741
520
  ],
742
- "name": "depositorReclaimNFT",
743
- "outputs": [],
744
- "stateMutability": "nonpayable",
521
+ "name": "speedBumpNextSBHours",
522
+ "outputs": [
523
+ {
524
+ "internalType": "uint16",
525
+ "name": "",
526
+ "type": "uint16"
527
+ }
528
+ ],
529
+ "payable": false,
530
+ "stateMutability": "view",
745
531
  "type": "function"
746
532
  },
747
533
  {
534
+ "constant": true,
748
535
  "inputs": [
749
536
  {
750
- "internalType": "address",
751
- "name": "token_",
752
- "type": "address"
753
- },
754
- {
755
- "internalType": "address",
756
- "name": "to",
757
- "type": "address"
758
- },
537
+ "internalType": "uint8",
538
+ "name": "index",
539
+ "type": "uint8"
540
+ }
541
+ ],
542
+ "name": "speedBumpTimeCreated",
543
+ "outputs": [
759
544
  {
760
545
  "internalType": "uint256",
761
- "name": "amount",
546
+ "name": "",
762
547
  "type": "uint256"
763
548
  }
764
549
  ],
765
- "name": "emergencyWithdrawERC20",
766
- "outputs": [],
767
- "stateMutability": "nonpayable",
550
+ "payable": false,
551
+ "stateMutability": "view",
768
552
  "type": "function"
769
553
  },
770
554
  {
555
+ "constant": true,
771
556
  "inputs": [
772
557
  {
773
- "internalType": "address",
774
- "name": "collection",
775
- "type": "address"
558
+ "internalType": "uint8",
559
+ "name": "index",
560
+ "type": "uint8"
776
561
  },
777
562
  {
778
- "internalType": "address",
779
- "name": "to",
780
- "type": "address"
781
- },
563
+ "internalType": "uint8",
564
+ "name": "uint16Index",
565
+ "type": "uint8"
566
+ }
567
+ ],
568
+ "name": "speedBumpUint16s",
569
+ "outputs": [
782
570
  {
783
- "internalType": "uint256",
784
- "name": "tokenId",
785
- "type": "uint256"
571
+ "internalType": "uint16",
572
+ "name": "",
573
+ "type": "uint16"
786
574
  }
787
575
  ],
788
- "name": "emergencyWithdrawERC721",
789
- "outputs": [],
790
- "stateMutability": "nonpayable",
576
+ "payable": false,
577
+ "stateMutability": "view",
791
578
  "type": "function"
792
579
  },
793
580
  {
794
- "inputs": [
795
- {
796
- "internalType": "address",
797
- "name": "to",
798
- "type": "address"
799
- },
581
+ "constant": true,
582
+ "inputs": [],
583
+ "name": "treasuryPenaltyMultipler",
584
+ "outputs": [
800
585
  {
801
- "internalType": "uint256",
802
- "name": "amount",
803
- "type": "uint256"
586
+ "internalType": "uint16",
587
+ "name": "",
588
+ "type": "uint16"
804
589
  }
805
590
  ],
806
- "name": "emergencyWithdrawETH",
807
- "outputs": [],
808
- "stateMutability": "nonpayable",
591
+ "payable": false,
592
+ "stateMutability": "view",
809
593
  "type": "function"
810
594
  },
811
595
  {
812
- "inputs": [
596
+ "constant": true,
597
+ "inputs": [],
598
+ "name": "treasurysDeposit",
599
+ "outputs": [
813
600
  {
814
- "internalType": "uint256",
815
- "name": "listingId",
816
- "type": "uint256"
601
+ "internalType": "address",
602
+ "name": "",
603
+ "type": "address"
817
604
  }
818
605
  ],
819
- "name": "finalizeUnsettled",
820
- "outputs": [],
821
- "stateMutability": "nonpayable",
606
+ "payable": false,
607
+ "stateMutability": "view",
822
608
  "type": "function"
823
609
  },
824
610
  {
825
- "inputs": [
611
+ "constant": true,
612
+ "inputs": [],
613
+ "name": "treasurysFactory",
614
+ "outputs": [
826
615
  {
827
- "internalType": "uint256",
828
- "name": "amount",
829
- "type": "uint256"
616
+ "internalType": "address",
617
+ "name": "",
618
+ "type": "address"
830
619
  }
831
620
  ],
832
- "name": "fundOperator",
833
- "outputs": [],
834
- "stateMutability": "nonpayable",
621
+ "payable": false,
622
+ "stateMutability": "view",
835
623
  "type": "function"
836
624
  },
837
625
  {
626
+ "constant": true,
838
627
  "inputs": [],
839
- "name": "fwa",
628
+ "name": "treasurysRuleList",
840
629
  "outputs": [
841
630
  {
842
- "internalType": "contract IFWA",
843
- "name": "",
844
- "type": "address"
845
- }
846
- ],
847
- "stateMutability": "view",
848
- "type": "function"
849
- },
850
- {
851
- "inputs": [
852
- {
853
- "internalType": "uint256[]",
854
- "name": "ids",
855
- "type": "uint256[]"
856
- },
857
- {
858
- "internalType": "uint256",
859
- "name": "minTokensOut",
860
- "type": "uint256"
861
- }
862
- ],
863
- "name": "harvestFeesAndBurn",
864
- "outputs": [
865
- {
866
- "internalType": "uint256",
867
- "name": "harvested",
868
- "type": "uint256"
869
- },
870
- {
871
- "internalType": "uint256",
872
- "name": "tokensBurned",
873
- "type": "uint256"
874
- }
875
- ],
876
- "stateMutability": "nonpayable",
877
- "type": "function"
878
- },
879
- {
880
- "inputs": [],
881
- "name": "hook",
882
- "outputs": [
883
- {
884
- "internalType": "contract IHooks",
885
- "name": "",
886
- "type": "address"
887
- }
888
- ],
889
- "stateMutability": "view",
890
- "type": "function"
891
- },
892
- {
893
- "inputs": [
894
- {
895
- "internalType": "address",
896
- "name": "collection",
897
- "type": "address"
898
- },
899
- {
900
- "internalType": "uint256",
901
- "name": "tokenId",
902
- "type": "uint256"
903
- },
904
- {
905
- "internalType": "uint256",
906
- "name": "backingWei",
907
- "type": "uint256"
908
- }
909
- ],
910
- "name": "listOnFwa",
911
- "outputs": [
912
- {
913
- "internalType": "uint256",
914
- "name": "listingId",
915
- "type": "uint256"
916
- }
917
- ],
918
- "stateMutability": "nonpayable",
919
- "type": "function"
920
- },
921
- {
922
- "inputs": [],
923
- "name": "listingCount",
924
- "outputs": [
925
- {
926
- "internalType": "uint256",
927
- "name": "",
928
- "type": "uint256"
929
- }
930
- ],
931
- "stateMutability": "view",
932
- "type": "function"
933
- },
934
- {
935
- "inputs": [
936
- {
937
- "internalType": "uint256",
938
- "name": "",
939
- "type": "uint256"
940
- }
941
- ],
942
- "name": "listingIds",
943
- "outputs": [
944
- {
945
- "internalType": "uint256",
946
- "name": "",
947
- "type": "uint256"
948
- }
949
- ],
950
- "stateMutability": "view",
951
- "type": "function"
952
- },
953
- {
954
- "inputs": [],
955
- "name": "maxBackingWei",
956
- "outputs": [
957
- {
958
- "internalType": "uint256",
959
- "name": "",
960
- "type": "uint256"
961
- }
962
- ],
963
- "stateMutability": "view",
964
- "type": "function"
965
- },
966
- {
967
- "inputs": [],
968
- "name": "maxNftPriceWei",
969
- "outputs": [
970
- {
971
- "internalType": "uint256",
972
- "name": "",
973
- "type": "uint256"
974
- }
975
- ],
976
- "stateMutability": "view",
977
- "type": "function"
978
- },
979
- {
980
- "inputs": [],
981
- "name": "maxOperatorFundPerDay",
982
- "outputs": [
983
- {
984
- "internalType": "uint256",
985
- "name": "",
986
- "type": "uint256"
987
- }
988
- ],
989
- "stateMutability": "view",
990
- "type": "function"
991
- },
992
- {
993
- "inputs": [],
994
- "name": "maxOperatorFundPerTx",
995
- "outputs": [
996
- {
997
- "internalType": "uint256",
998
- "name": "",
999
- "type": "uint256"
1000
- }
1001
- ],
1002
- "stateMutability": "view",
1003
- "type": "function"
1004
- },
1005
- {
1006
- "inputs": [
1007
- {
1008
- "internalType": "address",
1009
- "name": "",
1010
- "type": "address"
1011
- },
1012
- {
1013
- "internalType": "address",
1014
- "name": "",
1015
- "type": "address"
1016
- },
1017
- {
1018
- "internalType": "uint256",
1019
- "name": "",
1020
- "type": "uint256"
1021
- },
1022
- {
1023
- "internalType": "bytes",
1024
- "name": "",
1025
- "type": "bytes"
1026
- }
1027
- ],
1028
- "name": "onERC721Received",
1029
- "outputs": [
1030
- {
1031
- "internalType": "bytes4",
1032
- "name": "",
1033
- "type": "bytes4"
1034
- }
1035
- ],
1036
- "stateMutability": "nonpayable",
1037
- "type": "function"
1038
- },
1039
- {
1040
- "inputs": [],
1041
- "name": "operator",
1042
- "outputs": [
1043
- {
1044
- "internalType": "address",
1045
- "name": "",
1046
- "type": "address"
1047
- }
1048
- ],
1049
- "stateMutability": "view",
1050
- "type": "function"
1051
- },
1052
- {
1053
- "inputs": [],
1054
- "name": "operatorFundedToday",
1055
- "outputs": [
1056
- {
1057
- "internalType": "uint256",
1058
- "name": "",
1059
- "type": "uint256"
1060
- }
1061
- ],
1062
- "stateMutability": "view",
1063
- "type": "function"
1064
- },
1065
- {
1066
- "inputs": [],
1067
- "name": "owner",
1068
- "outputs": [
1069
- {
1070
- "internalType": "address",
631
+ "internalType": "address",
1071
632
  "name": "",
1072
633
  "type": "address"
1073
634
  }
1074
635
  ],
636
+ "payable": false,
1075
637
  "stateMutability": "view",
1076
638
  "type": "function"
1077
639
  },
1078
640
  {
641
+ "constant": false,
1079
642
  "inputs": [],
1080
- "name": "pause",
643
+ "name": "updateTreasuryContracts",
1081
644
  "outputs": [],
645
+ "payable": false,
1082
646
  "stateMutability": "nonpayable",
1083
647
  "type": "function"
1084
648
  },
1085
649
  {
650
+ "constant": false,
1086
651
  "inputs": [],
1087
- "name": "paused",
1088
- "outputs": [
1089
- {
1090
- "internalType": "bool",
1091
- "name": "",
1092
- "type": "bool"
1093
- }
1094
- ],
1095
- "stateMutability": "view",
1096
- "type": "function"
1097
- },
1098
- {
1099
- "inputs": [],
1100
- "name": "pendingOwner",
1101
- "outputs": [
1102
- {
1103
- "internalType": "address",
1104
- "name": "",
1105
- "type": "address"
1106
- }
1107
- ],
1108
- "stateMutability": "view",
1109
- "type": "function"
1110
- },
1111
- {
1112
- "inputs": [],
1113
- "name": "poolManager",
1114
- "outputs": [
1115
- {
1116
- "internalType": "contract IPoolManager",
1117
- "name": "",
1118
- "type": "address"
1119
- }
1120
- ],
1121
- "stateMutability": "view",
1122
- "type": "function"
1123
- },
1124
- {
1125
- "inputs": [
1126
- {
1127
- "internalType": "uint256",
1128
- "name": "listingId",
1129
- "type": "uint256"
1130
- }
1131
- ],
1132
- "name": "recoverStuckNFT",
652
+ "name": "updateTreasuryFeeVariables",
1133
653
  "outputs": [],
654
+ "payable": false,
1134
655
  "stateMutability": "nonpayable",
1135
656
  "type": "function"
1136
657
  },
1137
658
  {
659
+ "constant": false,
1138
660
  "inputs": [],
1139
- "name": "renounceOwnership",
661
+ "name": "updateTreasuryMainVariables",
1140
662
  "outputs": [],
663
+ "payable": false,
1141
664
  "stateMutability": "nonpayable",
1142
665
  "type": "function"
1143
- },
1144
- {
1145
- "inputs": [],
1146
- "name": "returnFunds",
1147
- "outputs": [],
1148
- "stateMutability": "payable",
1149
- "type": "function"
1150
- },
1151
- {
1152
- "inputs": [],
1153
- "name": "seaport",
1154
- "outputs": [
1155
- {
1156
- "internalType": "address",
1157
- "name": "",
1158
- "type": "address"
1159
- }
1160
- ],
1161
- "stateMutability": "view",
1162
- "type": "function"
1163
- },
1164
- {
1165
- "inputs": [
1166
- {
1167
- "internalType": "uint256",
1168
- "name": "bps",
1169
- "type": "uint256"
1170
- }
1171
- ],
1172
- "name": "setBuybackSlippageBps",
1173
- "outputs": [],
1174
- "stateMutability": "nonpayable",
1175
- "type": "function"
1176
- },
1177
- {
1178
- "inputs": [
1179
- {
1180
- "internalType": "uint256",
1181
- "name": "_maxBackingWei",
1182
- "type": "uint256"
1183
- },
1184
- {
1185
- "internalType": "uint256",
1186
- "name": "_maxNftPriceWei",
1187
- "type": "uint256"
1188
- },
1189
- {
1190
- "internalType": "uint256",
1191
- "name": "_maxPerTx",
1192
- "type": "uint256"
1193
- },
1194
- {
1195
- "internalType": "uint256",
1196
- "name": "_maxPerDay",
1197
- "type": "uint256"
1198
- }
1199
- ],
1200
- "name": "setLimits",
1201
- "outputs": [],
1202
- "stateMutability": "nonpayable",
1203
- "type": "function"
1204
- },
1205
- {
1206
- "inputs": [
1207
- {
1208
- "internalType": "address",
1209
- "name": "_operator",
1210
- "type": "address"
1211
- }
1212
- ],
1213
- "name": "setOperator",
1214
- "outputs": [],
1215
- "stateMutability": "nonpayable",
1216
- "type": "function"
1217
- },
1218
- {
1219
- "inputs": [],
1220
- "name": "token",
1221
- "outputs": [
1222
- {
1223
- "internalType": "address",
1224
- "name": "",
1225
- "type": "address"
1226
- }
1227
- ],
1228
- "stateMutability": "view",
1229
- "type": "function"
1230
- },
1231
- {
1232
- "inputs": [
1233
- {
1234
- "internalType": "address",
1235
- "name": "newOwner",
1236
- "type": "address"
1237
- }
1238
- ],
1239
- "name": "transferOwnership",
1240
- "outputs": [],
1241
- "stateMutability": "nonpayable",
1242
- "type": "function"
1243
- },
1244
- {
1245
- "inputs": [
1246
- {
1247
- "internalType": "bytes",
1248
- "name": "data",
1249
- "type": "bytes"
1250
- }
1251
- ],
1252
- "name": "unlockCallback",
1253
- "outputs": [
1254
- {
1255
- "internalType": "bytes",
1256
- "name": "",
1257
- "type": "bytes"
1258
- }
1259
- ],
1260
- "stateMutability": "nonpayable",
1261
- "type": "function"
1262
- },
1263
- {
1264
- "inputs": [],
1265
- "name": "unpause",
1266
- "outputs": [],
1267
- "stateMutability": "nonpayable",
1268
- "type": "function"
1269
- },
1270
- {
1271
- "inputs": [
1272
- {
1273
- "internalType": "uint256",
1274
- "name": "listingId",
1275
- "type": "uint256"
1276
- },
1277
- {
1278
- "internalType": "uint256",
1279
- "name": "newBacking",
1280
- "type": "uint256"
1281
- },
1282
- {
1283
- "internalType": "uint256",
1284
- "name": "extraWei",
1285
- "type": "uint256"
1286
- }
1287
- ],
1288
- "name": "updateBacking",
1289
- "outputs": [],
1290
- "stateMutability": "nonpayable",
1291
- "type": "function"
1292
- },
1293
- {
1294
- "inputs": [
1295
- {
1296
- "internalType": "uint256",
1297
- "name": "listingId",
1298
- "type": "uint256"
1299
- }
1300
- ],
1301
- "name": "withdrawListing",
1302
- "outputs": [],
1303
- "stateMutability": "nonpayable",
1304
- "type": "function"
1305
- },
1306
- {
1307
- "stateMutability": "payable",
1308
- "type": "receive"
1309
666
  }
1310
667
  ] as const satisfies Abi;
1311
668
 
@@ -1392,324 +749,179 @@ export class Treasury_json {
1392
749
  }
1393
750
 
1394
751
  /**
1395
- * MAX_BUYBACK_SLIPPAGE_BPS
752
+ * QNTAddress
1396
753
  * view
1397
754
  */
1398
- async MAX_BUYBACK_SLIPPAGE_BPS(): Promise<bigint> {
1399
- return this.contract.read.MAX_BUYBACK_SLIPPAGE_BPS() as Promise<bigint>;
755
+ async QNTAddress(): Promise<`0x${string}`> {
756
+ return this.contract.read.QNTAddress() as Promise<`0x${string}`>;
1400
757
  }
1401
758
 
1402
759
  /**
1403
- * buybackSlippageBps
760
+ * admin
1404
761
  * view
1405
762
  */
1406
- async buybackSlippageBps(): Promise<bigint> {
1407
- return this.contract.read.buybackSlippageBps() as Promise<bigint>;
763
+ async admin(): Promise<`0x${string}`> {
764
+ return this.contract.read.admin() as Promise<`0x${string}`>;
1408
765
  }
1409
766
 
1410
767
  /**
1411
- * currentDay
768
+ * circuitBreakerOn
1412
769
  * view
1413
770
  */
1414
- async currentDay(): Promise<bigint> {
1415
- return this.contract.read.currentDay() as Promise<bigint>;
771
+ async circuitBreakerOn(): Promise<boolean> {
772
+ return this.contract.read.circuitBreakerOn() as Promise<boolean>;
1416
773
  }
1417
774
 
1418
775
  /**
1419
- * fwa
776
+ * commissionDivider
1420
777
  * view
1421
778
  */
1422
- async fwa(): Promise<`0x${string}`> {
1423
- return this.contract.read.fwa() as Promise<`0x${string}`>;
779
+ async commissionDivider(): Promise<bigint> {
780
+ return this.contract.read.commissionDivider() as Promise<bigint>;
1424
781
  }
1425
782
 
1426
783
  /**
1427
- * hook
784
+ * gatewayPenaltyMultipler
1428
785
  * view
1429
786
  */
1430
- async hook(): Promise<`0x${string}`> {
1431
- return this.contract.read.hook() as Promise<`0x${string}`>;
787
+ async gatewayPenaltyMultipler(): Promise<bigint> {
788
+ return this.contract.read.gatewayPenaltyMultipler() as Promise<bigint>;
1432
789
  }
1433
790
 
1434
791
  /**
1435
- * listingCount
792
+ * implementation
1436
793
  * view
1437
794
  */
1438
- async listingCount(): Promise<bigint> {
1439
- return this.contract.read.listingCount() as Promise<bigint>;
795
+ async implementation(): Promise<`0x${string}`> {
796
+ return this.contract.read.implementation() as Promise<`0x${string}`>;
1440
797
  }
1441
798
 
1442
799
  /**
1443
- * listingIds
800
+ * initialized
1444
801
  * view
1445
802
  */
1446
- async listingIds(arg0: bigint): Promise<bigint> {
1447
- return this.contract.read.listingIds([arg0] as const) as Promise<bigint>;
803
+ async initialized(): Promise<boolean> {
804
+ return this.contract.read.initialized() as Promise<boolean>;
1448
805
  }
1449
806
 
1450
807
  /**
1451
- * maxBackingWei
808
+ * mappDisputeFeeMultipler
1452
809
  * view
1453
810
  */
1454
- async maxBackingWei(): Promise<bigint> {
1455
- return this.contract.read.maxBackingWei() as Promise<bigint>;
811
+ async mappDisputeFeeMultipler(): Promise<bigint> {
812
+ return this.contract.read.mappDisputeFeeMultipler() as Promise<bigint>;
1456
813
  }
1457
814
 
1458
815
  /**
1459
- * maxNftPriceWei
816
+ * operatorAddress
1460
817
  * view
1461
818
  */
1462
- async maxNftPriceWei(): Promise<bigint> {
1463
- return this.contract.read.maxNftPriceWei() as Promise<bigint>;
819
+ async operatorAddress(): Promise<`0x${string}`> {
820
+ return this.contract.read.operatorAddress() as Promise<`0x${string}`>;
1464
821
  }
1465
822
 
1466
823
  /**
1467
- * maxOperatorFundPerDay
824
+ * readFunctionPenaltyMultipler
1468
825
  * view
1469
826
  */
1470
- async maxOperatorFundPerDay(): Promise<bigint> {
1471
- return this.contract.read.maxOperatorFundPerDay() as Promise<bigint>;
827
+ async readFunctionPenaltyMultipler(gateway: boolean): Promise<bigint> {
828
+ return this.contract.read.readFunctionPenaltyMultipler([gateway] as const) as Promise<bigint>;
1472
829
  }
1473
830
 
1474
831
  /**
1475
- * maxOperatorFundPerTx
832
+ * speedBumpAddresses
1476
833
  * view
1477
834
  */
1478
- async maxOperatorFundPerTx(): Promise<bigint> {
1479
- return this.contract.read.maxOperatorFundPerTx() as Promise<bigint>;
835
+ async speedBumpAddresses(index: bigint, addressIndex: bigint): Promise<`0x${string}`> {
836
+ return this.contract.read.speedBumpAddresses([index, addressIndex] as const) as Promise<`0x${string}`>;
1480
837
  }
1481
838
 
1482
839
  /**
1483
- * operator
840
+ * speedBumpCircuitBreaker
1484
841
  * view
1485
842
  */
1486
- async operator(): Promise<`0x${string}`> {
1487
- return this.contract.read.operator() as Promise<`0x${string}`>;
843
+ async speedBumpCircuitBreaker(index: bigint): Promise<boolean> {
844
+ return this.contract.read.speedBumpCircuitBreaker([index] as const) as Promise<boolean>;
1488
845
  }
1489
846
 
1490
847
  /**
1491
- * operatorFundedToday
848
+ * speedBumpCurrentSBHours
1492
849
  * view
1493
850
  */
1494
- async operatorFundedToday(): Promise<bigint> {
1495
- return this.contract.read.operatorFundedToday() as Promise<bigint>;
851
+ async speedBumpCurrentSBHours(index: bigint): Promise<bigint> {
852
+ return this.contract.read.speedBumpCurrentSBHours([index] as const) as Promise<bigint>;
1496
853
  }
1497
854
 
1498
855
  /**
1499
- * owner
856
+ * speedBumpHours
1500
857
  * view
1501
858
  */
1502
- async owner(): Promise<`0x${string}`> {
1503
- return this.contract.read.owner() as Promise<`0x${string}`>;
859
+ async speedBumpHours(): Promise<bigint> {
860
+ return this.contract.read.speedBumpHours() as Promise<bigint>;
1504
861
  }
1505
862
 
1506
863
  /**
1507
- * paused
864
+ * speedBumpNextSBHours
1508
865
  * view
1509
866
  */
1510
- async paused(): Promise<boolean> {
1511
- return this.contract.read.paused() as Promise<boolean>;
867
+ async speedBumpNextSBHours(index: bigint): Promise<bigint> {
868
+ return this.contract.read.speedBumpNextSBHours([index] as const) as Promise<bigint>;
1512
869
  }
1513
870
 
1514
871
  /**
1515
- * pendingOwner
872
+ * speedBumpTimeCreated
1516
873
  * view
1517
874
  */
1518
- async pendingOwner(): Promise<`0x${string}`> {
1519
- return this.contract.read.pendingOwner() as Promise<`0x${string}`>;
875
+ async speedBumpTimeCreated(index: bigint): Promise<bigint> {
876
+ return this.contract.read.speedBumpTimeCreated([index] as const) as Promise<bigint>;
1520
877
  }
1521
878
 
1522
879
  /**
1523
- * poolManager
880
+ * speedBumpUint16s
1524
881
  * view
1525
882
  */
1526
- async poolManager(): Promise<`0x${string}`> {
1527
- return this.contract.read.poolManager() as Promise<`0x${string}`>;
883
+ async speedBumpUint16s(index: bigint, uint16Index: bigint): Promise<bigint> {
884
+ return this.contract.read.speedBumpUint16s([index, uint16Index] as const) as Promise<bigint>;
1528
885
  }
1529
886
 
1530
887
  /**
1531
- * seaport
888
+ * treasuryPenaltyMultipler
1532
889
  * view
1533
890
  */
1534
- async seaport(): Promise<`0x${string}`> {
1535
- return this.contract.read.seaport() as Promise<`0x${string}`>;
891
+ async treasuryPenaltyMultipler(): Promise<bigint> {
892
+ return this.contract.read.treasuryPenaltyMultipler() as Promise<bigint>;
1536
893
  }
1537
894
 
1538
895
  /**
1539
- * token
896
+ * treasurysDeposit
1540
897
  * view
1541
898
  */
1542
- async token(): Promise<`0x${string}`> {
1543
- return this.contract.read.token() as Promise<`0x${string}`>;
1544
- }
1545
-
1546
- /**
1547
- * acceptOwnership
1548
- * nonpayable
1549
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1550
- */
1551
- async acceptOwnership(options?: {
1552
- accessList?: import('viem').AccessList;
1553
- authorizationList?: import('viem').AuthorizationList;
1554
- chain?: import('viem').Chain | null;
1555
- dataSuffix?: `0x${string}`;
1556
- gas?: bigint;
1557
- gasPrice?: bigint;
1558
- maxFeePerGas?: bigint;
1559
- maxPriorityFeePerGas?: bigint;
1560
- nonce?: number;
1561
- value?: bigint;
1562
- }): Promise<`0x${string}`> {
1563
- if (!this.contract.write) {
1564
- throw new Error('Wallet client is required for write operations');
1565
- }
1566
- return this.contract.write.acceptOwnership(options) as Promise<`0x${string}`>;
1567
- }
1568
-
1569
- /**
1570
- * activateFwaListings
1571
- * nonpayable
1572
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1573
- */
1574
- async activateFwaListings(maxCount: bigint, options?: {
1575
- accessList?: import('viem').AccessList;
1576
- authorizationList?: import('viem').AuthorizationList;
1577
- chain?: import('viem').Chain | null;
1578
- dataSuffix?: `0x${string}`;
1579
- gas?: bigint;
1580
- gasPrice?: bigint;
1581
- maxFeePerGas?: bigint;
1582
- maxPriorityFeePerGas?: bigint;
1583
- nonce?: number;
1584
- value?: bigint;
1585
- }): Promise<`0x${string}`> {
1586
- if (!this.contract.write) {
1587
- throw new Error('Wallet client is required for write operations');
1588
- }
1589
- return this.contract.write.activateFwaListings([maxCount] as const, options) as Promise<`0x${string}`>;
1590
- }
1591
-
1592
- /**
1593
- * buyAndList
1594
- * nonpayable
1595
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1596
- */
1597
- async buyAndList(seaportCalldata: `0x${string}`, priceWei: bigint, collection: `0x${string}`, tokenId: bigint, backingWei: bigint, options?: {
1598
- accessList?: import('viem').AccessList;
1599
- authorizationList?: import('viem').AuthorizationList;
1600
- chain?: import('viem').Chain | null;
1601
- dataSuffix?: `0x${string}`;
1602
- gas?: bigint;
1603
- gasPrice?: bigint;
1604
- maxFeePerGas?: bigint;
1605
- maxPriorityFeePerGas?: bigint;
1606
- nonce?: number;
1607
- value?: bigint;
1608
- }): Promise<`0x${string}`> {
1609
- if (!this.contract.write) {
1610
- throw new Error('Wallet client is required for write operations');
1611
- }
1612
- return this.contract.write.buyAndList([seaportCalldata, priceWei, collection, tokenId, backingWei] as const, options) as Promise<`0x${string}`>;
1613
- }
1614
-
1615
- /**
1616
- * buybackAndBurn
1617
- * nonpayable
1618
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1619
- */
1620
- async buybackAndBurn(ethAmount: bigint, minTokensOut: bigint, options?: {
1621
- accessList?: import('viem').AccessList;
1622
- authorizationList?: import('viem').AuthorizationList;
1623
- chain?: import('viem').Chain | null;
1624
- dataSuffix?: `0x${string}`;
1625
- gas?: bigint;
1626
- gasPrice?: bigint;
1627
- maxFeePerGas?: bigint;
1628
- maxPriorityFeePerGas?: bigint;
1629
- nonce?: number;
1630
- value?: bigint;
1631
- }): Promise<`0x${string}`> {
1632
- if (!this.contract.write) {
1633
- throw new Error('Wallet client is required for write operations');
1634
- }
1635
- return this.contract.write.buybackAndBurn([ethAmount, minTokensOut] as const, options) as Promise<`0x${string}`>;
1636
- }
1637
-
1638
- /**
1639
- * claimFees
1640
- * nonpayable
1641
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1642
- */
1643
- async claimFees(ids: bigint[], options?: {
1644
- accessList?: import('viem').AccessList;
1645
- authorizationList?: import('viem').AuthorizationList;
1646
- chain?: import('viem').Chain | null;
1647
- dataSuffix?: `0x${string}`;
1648
- gas?: bigint;
1649
- gasPrice?: bigint;
1650
- maxFeePerGas?: bigint;
1651
- maxPriorityFeePerGas?: bigint;
1652
- nonce?: number;
1653
- value?: bigint;
1654
- }): Promise<`0x${string}`> {
1655
- if (!this.contract.write) {
1656
- throw new Error('Wallet client is required for write operations');
1657
- }
1658
- return this.contract.write.claimFees([ids] as const, options) as Promise<`0x${string}`>;
899
+ async treasurysDeposit(): Promise<`0x${string}`> {
900
+ return this.contract.read.treasurysDeposit() as Promise<`0x${string}`>;
1659
901
  }
1660
902
 
1661
903
  /**
1662
- * claimRewards
1663
- * nonpayable
1664
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
904
+ * treasurysFactory
905
+ * view
1665
906
  */
1666
- async claimRewards(ids: bigint[], options?: {
1667
- accessList?: import('viem').AccessList;
1668
- authorizationList?: import('viem').AuthorizationList;
1669
- chain?: import('viem').Chain | null;
1670
- dataSuffix?: `0x${string}`;
1671
- gas?: bigint;
1672
- gasPrice?: bigint;
1673
- maxFeePerGas?: bigint;
1674
- maxPriorityFeePerGas?: bigint;
1675
- nonce?: number;
1676
- value?: bigint;
1677
- }): Promise<`0x${string}`> {
1678
- if (!this.contract.write) {
1679
- throw new Error('Wallet client is required for write operations');
1680
- }
1681
- return this.contract.write.claimRewards([ids] as const, options) as Promise<`0x${string}`>;
907
+ async treasurysFactory(): Promise<`0x${string}`> {
908
+ return this.contract.read.treasurysFactory() as Promise<`0x${string}`>;
1682
909
  }
1683
910
 
1684
911
  /**
1685
- * claimTopSpot
1686
- * nonpayable
1687
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
912
+ * treasurysRuleList
913
+ * view
1688
914
  */
1689
- async claimTopSpot(listingId: bigint, options?: {
1690
- accessList?: import('viem').AccessList;
1691
- authorizationList?: import('viem').AuthorizationList;
1692
- chain?: import('viem').Chain | null;
1693
- dataSuffix?: `0x${string}`;
1694
- gas?: bigint;
1695
- gasPrice?: bigint;
1696
- maxFeePerGas?: bigint;
1697
- maxPriorityFeePerGas?: bigint;
1698
- nonce?: number;
1699
- value?: bigint;
1700
- }): Promise<`0x${string}`> {
1701
- if (!this.contract.write) {
1702
- throw new Error('Wallet client is required for write operations');
1703
- }
1704
- return this.contract.write.claimTopSpot([listingId] as const, options) as Promise<`0x${string}`>;
915
+ async treasurysRuleList(): Promise<`0x${string}`> {
916
+ return this.contract.read.treasurysRuleList() as Promise<`0x${string}`>;
1705
917
  }
1706
918
 
1707
919
  /**
1708
- * depositorReclaimBacking
920
+ * changeProxyVariables
1709
921
  * nonpayable
1710
922
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1711
923
  */
1712
- async depositorReclaimBacking(listingId: bigint, options?: {
924
+ async changeProxyVariables(nextAdmin: `0x${string}`, nextImplementation: `0x${string}`, options?: {
1713
925
  accessList?: import('viem').AccessList;
1714
926
  authorizationList?: import('viem').AuthorizationList;
1715
927
  chain?: import('viem').Chain | null;
@@ -1724,15 +936,15 @@ export class Treasury_json {
1724
936
  if (!this.contract.write) {
1725
937
  throw new Error('Wallet client is required for write operations');
1726
938
  }
1727
- return this.contract.write.depositorReclaimBacking([listingId] as const, options) as Promise<`0x${string}`>;
939
+ return this.contract.write.changeProxyVariables([nextAdmin, nextImplementation] as const, options) as Promise<`0x${string}`>;
1728
940
  }
1729
941
 
1730
942
  /**
1731
- * depositorReclaimNFT
943
+ * initialize
1732
944
  * nonpayable
1733
945
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1734
946
  */
1735
- async depositorReclaimNFT(listingId: bigint, options?: {
947
+ async initialize(thisQNTAddress: `0x${string}`, thisOperatorAddress: `0x${string}`, mappDisputeFee: bigint, commission: bigint, treasuryPenalty: bigint, gatewayPenalty: bigint, speedBumpTime: bigint, options?: {
1736
948
  accessList?: import('viem').AccessList;
1737
949
  authorizationList?: import('viem').AuthorizationList;
1738
950
  chain?: import('viem').Chain | null;
@@ -1747,15 +959,15 @@ export class Treasury_json {
1747
959
  if (!this.contract.write) {
1748
960
  throw new Error('Wallet client is required for write operations');
1749
961
  }
1750
- return this.contract.write.depositorReclaimNFT([listingId] 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}`>;
1751
963
  }
1752
964
 
1753
965
  /**
1754
- * emergencyWithdrawERC20
966
+ * setAdmin
1755
967
  * nonpayable
1756
968
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1757
969
  */
1758
- async emergencyWithdrawERC20(token_: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
970
+ async setAdmin(options?: {
1759
971
  accessList?: import('viem').AccessList;
1760
972
  authorizationList?: import('viem').AuthorizationList;
1761
973
  chain?: import('viem').Chain | null;
@@ -1770,15 +982,15 @@ export class Treasury_json {
1770
982
  if (!this.contract.write) {
1771
983
  throw new Error('Wallet client is required for write operations');
1772
984
  }
1773
- return this.contract.write.emergencyWithdrawERC20([token_, to, amount] as const, options) as Promise<`0x${string}`>;
985
+ return this.contract.write.setAdmin(options) as Promise<`0x${string}`>;
1774
986
  }
1775
987
 
1776
988
  /**
1777
- * emergencyWithdrawERC721
989
+ * setImplementation
1778
990
  * nonpayable
1779
991
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1780
992
  */
1781
- async emergencyWithdrawERC721(collection: `0x${string}`, to: `0x${string}`, tokenId: bigint, options?: {
993
+ async setImplementation(options?: {
1782
994
  accessList?: import('viem').AccessList;
1783
995
  authorizationList?: import('viem').AuthorizationList;
1784
996
  chain?: import('viem').Chain | null;
@@ -1793,15 +1005,15 @@ export class Treasury_json {
1793
1005
  if (!this.contract.write) {
1794
1006
  throw new Error('Wallet client is required for write operations');
1795
1007
  }
1796
- return this.contract.write.emergencyWithdrawERC721([collection, to, tokenId] as const, options) as Promise<`0x${string}`>;
1008
+ return this.contract.write.setImplementation(options) as Promise<`0x${string}`>;
1797
1009
  }
1798
1010
 
1799
1011
  /**
1800
- * emergencyWithdrawETH
1012
+ * speedBumpContract
1801
1013
  * nonpayable
1802
1014
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1803
1015
  */
1804
- async emergencyWithdrawETH(to: `0x${string}`, amount: bigint, options?: {
1016
+ async speedBumpContract(addresses: `0x${string}`[], options?: {
1805
1017
  accessList?: import('viem').AccessList;
1806
1018
  authorizationList?: import('viem').AuthorizationList;
1807
1019
  chain?: import('viem').Chain | null;
@@ -1816,15 +1028,15 @@ export class Treasury_json {
1816
1028
  if (!this.contract.write) {
1817
1029
  throw new Error('Wallet client is required for write operations');
1818
1030
  }
1819
- return this.contract.write.emergencyWithdrawETH([to, amount] as const, options) as Promise<`0x${string}`>;
1031
+ return this.contract.write.speedBumpContract([addresses] as const, options) as Promise<`0x${string}`>;
1820
1032
  }
1821
1033
 
1822
1034
  /**
1823
- * finalizeUnsettled
1035
+ * speedBumpFee
1824
1036
  * nonpayable
1825
1037
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1826
1038
  */
1827
- async finalizeUnsettled(listingId: bigint, options?: {
1039
+ async speedBumpFee(uint16s: bigint[], options?: {
1828
1040
  accessList?: import('viem').AccessList;
1829
1041
  authorizationList?: import('viem').AuthorizationList;
1830
1042
  chain?: import('viem').Chain | null;
@@ -1839,15 +1051,15 @@ export class Treasury_json {
1839
1051
  if (!this.contract.write) {
1840
1052
  throw new Error('Wallet client is required for write operations');
1841
1053
  }
1842
- return this.contract.write.finalizeUnsettled([listingId] as const, options) as Promise<`0x${string}`>;
1054
+ return this.contract.write.speedBumpFee([uint16s] as const, options) as Promise<`0x${string}`>;
1843
1055
  }
1844
1056
 
1845
1057
  /**
1846
- * fundOperator
1058
+ * speedBumpMain
1847
1059
  * nonpayable
1848
1060
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1849
1061
  */
1850
- async fundOperator(amount: bigint, options?: {
1062
+ async speedBumpMain(addresses: `0x${string}`[], newSpeedBumpHours: bigint, circuitBreaker: boolean, options?: {
1851
1063
  accessList?: import('viem').AccessList;
1852
1064
  authorizationList?: import('viem').AuthorizationList;
1853
1065
  chain?: import('viem').Chain | null;
@@ -1862,15 +1074,15 @@ export class Treasury_json {
1862
1074
  if (!this.contract.write) {
1863
1075
  throw new Error('Wallet client is required for write operations');
1864
1076
  }
1865
- return this.contract.write.fundOperator([amount] as const, options) as Promise<`0x${string}`>;
1077
+ return this.contract.write.speedBumpMain([addresses, newSpeedBumpHours, circuitBreaker] as const, options) as Promise<`0x${string}`>;
1866
1078
  }
1867
1079
 
1868
1080
  /**
1869
- * harvestFeesAndBurn
1081
+ * updateTreasuryContracts
1870
1082
  * nonpayable
1871
1083
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1872
1084
  */
1873
- async harvestFeesAndBurn(ids: bigint[], minTokensOut: bigint, options?: {
1085
+ async updateTreasuryContracts(options?: {
1874
1086
  accessList?: import('viem').AccessList;
1875
1087
  authorizationList?: import('viem').AuthorizationList;
1876
1088
  chain?: import('viem').Chain | null;
@@ -1885,15 +1097,15 @@ export class Treasury_json {
1885
1097
  if (!this.contract.write) {
1886
1098
  throw new Error('Wallet client is required for write operations');
1887
1099
  }
1888
- return this.contract.write.harvestFeesAndBurn([ids, minTokensOut] as const, options) as Promise<`0x${string}`>;
1100
+ return this.contract.write.updateTreasuryContracts(options) as Promise<`0x${string}`>;
1889
1101
  }
1890
1102
 
1891
1103
  /**
1892
- * listOnFwa
1104
+ * updateTreasuryFeeVariables
1893
1105
  * nonpayable
1894
1106
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1895
1107
  */
1896
- async listOnFwa(collection: `0x${string}`, tokenId: bigint, backingWei: bigint, options?: {
1108
+ async updateTreasuryFeeVariables(options?: {
1897
1109
  accessList?: import('viem').AccessList;
1898
1110
  authorizationList?: import('viem').AuthorizationList;
1899
1111
  chain?: import('viem').Chain | null;
@@ -1908,672 +1120,54 @@ export class Treasury_json {
1908
1120
  if (!this.contract.write) {
1909
1121
  throw new Error('Wallet client is required for write operations');
1910
1122
  }
1911
- return this.contract.write.listOnFwa([collection, tokenId, backingWei] as const, options) as Promise<`0x${string}`>;
1123
+ return this.contract.write.updateTreasuryFeeVariables(options) as Promise<`0x${string}`>;
1912
1124
  }
1913
1125
 
1914
1126
  /**
1915
- * onERC721Received
1127
+ * updateTreasuryMainVariables
1916
1128
  * nonpayable
1917
1129
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1918
1130
  */
1919
- async onERC721Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: `0x${string}`, options?: {
1131
+ async updateTreasuryMainVariables(options?: {
1920
1132
  accessList?: import('viem').AccessList;
1921
1133
  authorizationList?: import('viem').AuthorizationList;
1922
1134
  chain?: import('viem').Chain | null;
1923
1135
  dataSuffix?: `0x${string}`;
1924
- gas?: bigint;
1925
- gasPrice?: bigint;
1926
- maxFeePerGas?: bigint;
1927
- maxPriorityFeePerGas?: bigint;
1928
- nonce?: number;
1929
- value?: bigint;
1930
- }): Promise<`0x${string}`> {
1931
- if (!this.contract.write) {
1932
- throw new Error('Wallet client is required for write operations');
1933
- }
1934
- return this.contract.write.onERC721Received([arg0, arg1, arg2, arg3] as const, options) as Promise<`0x${string}`>;
1935
- }
1936
-
1937
- /**
1938
- * pause
1939
- * nonpayable
1940
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1941
- */
1942
- async pause(options?: {
1943
- accessList?: import('viem').AccessList;
1944
- authorizationList?: import('viem').AuthorizationList;
1945
- chain?: import('viem').Chain | null;
1946
- dataSuffix?: `0x${string}`;
1947
- gas?: bigint;
1948
- gasPrice?: bigint;
1949
- maxFeePerGas?: bigint;
1950
- maxPriorityFeePerGas?: bigint;
1951
- nonce?: number;
1952
- value?: bigint;
1953
- }): Promise<`0x${string}`> {
1954
- if (!this.contract.write) {
1955
- throw new Error('Wallet client is required for write operations');
1956
- }
1957
- return this.contract.write.pause(options) as Promise<`0x${string}`>;
1958
- }
1959
-
1960
- /**
1961
- * recoverStuckNFT
1962
- * nonpayable
1963
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1964
- */
1965
- async recoverStuckNFT(listingId: bigint, options?: {
1966
- accessList?: import('viem').AccessList;
1967
- authorizationList?: import('viem').AuthorizationList;
1968
- chain?: import('viem').Chain | null;
1969
- dataSuffix?: `0x${string}`;
1970
- gas?: bigint;
1971
- gasPrice?: bigint;
1972
- maxFeePerGas?: bigint;
1973
- maxPriorityFeePerGas?: bigint;
1974
- nonce?: number;
1975
- value?: bigint;
1976
- }): Promise<`0x${string}`> {
1977
- if (!this.contract.write) {
1978
- throw new Error('Wallet client is required for write operations');
1979
- }
1980
- return this.contract.write.recoverStuckNFT([listingId] as const, options) as Promise<`0x${string}`>;
1981
- }
1982
-
1983
- /**
1984
- * renounceOwnership
1985
- * nonpayable
1986
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1987
- */
1988
- async renounceOwnership(options?: {
1989
- accessList?: import('viem').AccessList;
1990
- authorizationList?: import('viem').AuthorizationList;
1991
- chain?: import('viem').Chain | null;
1992
- dataSuffix?: `0x${string}`;
1993
- gas?: bigint;
1994
- gasPrice?: bigint;
1995
- maxFeePerGas?: bigint;
1996
- maxPriorityFeePerGas?: bigint;
1997
- nonce?: number;
1998
- value?: bigint;
1999
- }): Promise<`0x${string}`> {
2000
- if (!this.contract.write) {
2001
- throw new Error('Wallet client is required for write operations');
2002
- }
2003
- return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
2004
- }
2005
-
2006
- /**
2007
- * returnFunds
2008
- * payable
2009
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2010
- */
2011
- async returnFunds(options?: {
2012
- accessList?: import('viem').AccessList;
2013
- authorizationList?: import('viem').AuthorizationList;
2014
- chain?: import('viem').Chain | null;
2015
- dataSuffix?: `0x${string}`;
2016
- gas?: bigint;
2017
- gasPrice?: bigint;
2018
- maxFeePerGas?: bigint;
2019
- maxPriorityFeePerGas?: bigint;
2020
- nonce?: number;
2021
- value?: bigint;
2022
- }): Promise<`0x${string}`> {
2023
- if (!this.contract.write) {
2024
- throw new Error('Wallet client is required for write operations');
2025
- }
2026
- return this.contract.write.returnFunds(options) as Promise<`0x${string}`>;
2027
- }
2028
-
2029
- /**
2030
- * setBuybackSlippageBps
2031
- * nonpayable
2032
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2033
- */
2034
- async setBuybackSlippageBps(bps: bigint, options?: {
2035
- accessList?: import('viem').AccessList;
2036
- authorizationList?: import('viem').AuthorizationList;
2037
- chain?: import('viem').Chain | null;
2038
- dataSuffix?: `0x${string}`;
2039
- gas?: bigint;
2040
- gasPrice?: bigint;
2041
- maxFeePerGas?: bigint;
2042
- maxPriorityFeePerGas?: bigint;
2043
- nonce?: number;
2044
- value?: bigint;
2045
- }): Promise<`0x${string}`> {
2046
- if (!this.contract.write) {
2047
- throw new Error('Wallet client is required for write operations');
2048
- }
2049
- return this.contract.write.setBuybackSlippageBps([bps] as const, options) as Promise<`0x${string}`>;
2050
- }
2051
-
2052
- /**
2053
- * setLimits
2054
- * nonpayable
2055
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2056
- */
2057
- async setLimits(_maxBackingWei: bigint, _maxNftPriceWei: bigint, _maxPerTx: bigint, _maxPerDay: bigint, options?: {
2058
- accessList?: import('viem').AccessList;
2059
- authorizationList?: import('viem').AuthorizationList;
2060
- chain?: import('viem').Chain | null;
2061
- dataSuffix?: `0x${string}`;
2062
- gas?: bigint;
2063
- gasPrice?: bigint;
2064
- maxFeePerGas?: bigint;
2065
- maxPriorityFeePerGas?: bigint;
2066
- nonce?: number;
2067
- value?: bigint;
2068
- }): Promise<`0x${string}`> {
2069
- if (!this.contract.write) {
2070
- throw new Error('Wallet client is required for write operations');
2071
- }
2072
- return this.contract.write.setLimits([_maxBackingWei, _maxNftPriceWei, _maxPerTx, _maxPerDay] as const, options) as Promise<`0x${string}`>;
2073
- }
2074
-
2075
- /**
2076
- * setOperator
2077
- * nonpayable
2078
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2079
- */
2080
- async setOperator(_operator: `0x${string}`, options?: {
2081
- accessList?: import('viem').AccessList;
2082
- authorizationList?: import('viem').AuthorizationList;
2083
- chain?: import('viem').Chain | null;
2084
- dataSuffix?: `0x${string}`;
2085
- gas?: bigint;
2086
- gasPrice?: bigint;
2087
- maxFeePerGas?: bigint;
2088
- maxPriorityFeePerGas?: bigint;
2089
- nonce?: number;
2090
- value?: bigint;
2091
- }): Promise<`0x${string}`> {
2092
- if (!this.contract.write) {
2093
- throw new Error('Wallet client is required for write operations');
2094
- }
2095
- return this.contract.write.setOperator([_operator] as const, options) as Promise<`0x${string}`>;
2096
- }
2097
-
2098
- /**
2099
- * transferOwnership
2100
- * nonpayable
2101
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2102
- */
2103
- async transferOwnership(newOwner: `0x${string}`, options?: {
2104
- accessList?: import('viem').AccessList;
2105
- authorizationList?: import('viem').AuthorizationList;
2106
- chain?: import('viem').Chain | null;
2107
- dataSuffix?: `0x${string}`;
2108
- gas?: bigint;
2109
- gasPrice?: bigint;
2110
- maxFeePerGas?: bigint;
2111
- maxPriorityFeePerGas?: bigint;
2112
- nonce?: number;
2113
- value?: bigint;
2114
- }): Promise<`0x${string}`> {
2115
- if (!this.contract.write) {
2116
- throw new Error('Wallet client is required for write operations');
2117
- }
2118
- return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
2119
- }
2120
-
2121
- /**
2122
- * unlockCallback
2123
- * nonpayable
2124
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2125
- */
2126
- async unlockCallback(data: `0x${string}`, options?: {
2127
- accessList?: import('viem').AccessList;
2128
- authorizationList?: import('viem').AuthorizationList;
2129
- chain?: import('viem').Chain | null;
2130
- dataSuffix?: `0x${string}`;
2131
- gas?: bigint;
2132
- gasPrice?: bigint;
2133
- maxFeePerGas?: bigint;
2134
- maxPriorityFeePerGas?: bigint;
2135
- nonce?: number;
2136
- value?: bigint;
2137
- }): Promise<`0x${string}`> {
2138
- if (!this.contract.write) {
2139
- throw new Error('Wallet client is required for write operations');
2140
- }
2141
- return this.contract.write.unlockCallback([data] as const, options) as Promise<`0x${string}`>;
2142
- }
2143
-
2144
- /**
2145
- * unpause
2146
- * nonpayable
2147
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2148
- */
2149
- async unpause(options?: {
2150
- accessList?: import('viem').AccessList;
2151
- authorizationList?: import('viem').AuthorizationList;
2152
- chain?: import('viem').Chain | null;
2153
- dataSuffix?: `0x${string}`;
2154
- gas?: bigint;
2155
- gasPrice?: bigint;
2156
- maxFeePerGas?: bigint;
2157
- maxPriorityFeePerGas?: bigint;
2158
- nonce?: number;
2159
- value?: bigint;
2160
- }): Promise<`0x${string}`> {
2161
- if (!this.contract.write) {
2162
- throw new Error('Wallet client is required for write operations');
2163
- }
2164
- return this.contract.write.unpause(options) as Promise<`0x${string}`>;
2165
- }
2166
-
2167
- /**
2168
- * updateBacking
2169
- * nonpayable
2170
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2171
- */
2172
- async updateBacking(listingId: bigint, newBacking: bigint, extraWei: bigint, options?: {
2173
- accessList?: import('viem').AccessList;
2174
- authorizationList?: import('viem').AuthorizationList;
2175
- chain?: import('viem').Chain | null;
2176
- dataSuffix?: `0x${string}`;
2177
- gas?: bigint;
2178
- gasPrice?: bigint;
2179
- maxFeePerGas?: bigint;
2180
- maxPriorityFeePerGas?: bigint;
2181
- nonce?: number;
2182
- value?: bigint;
2183
- }): Promise<`0x${string}`> {
2184
- if (!this.contract.write) {
2185
- throw new Error('Wallet client is required for write operations');
2186
- }
2187
- return this.contract.write.updateBacking([listingId, newBacking, extraWei] as const, options) as Promise<`0x${string}`>;
2188
- }
2189
-
2190
- /**
2191
- * withdrawListing
2192
- * nonpayable
2193
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2194
- */
2195
- async withdrawListing(listingId: bigint, options?: {
2196
- accessList?: import('viem').AccessList;
2197
- authorizationList?: import('viem').AuthorizationList;
2198
- chain?: import('viem').Chain | null;
2199
- dataSuffix?: `0x${string}`;
2200
- gas?: bigint;
2201
- gasPrice?: bigint;
2202
- maxFeePerGas?: bigint;
2203
- maxPriorityFeePerGas?: bigint;
2204
- nonce?: number;
2205
- value?: bigint;
2206
- }): Promise<`0x${string}`> {
2207
- if (!this.contract.write) {
2208
- throw new Error('Wallet client is required for write operations');
2209
- }
2210
- return this.contract.write.withdrawListing([listingId] as const, options) as Promise<`0x${string}`>;
2211
- }
2212
-
2213
-
2214
-
2215
- /**
2216
- * Simulate contract write operations (dry-run without sending transaction)
2217
- *
2218
- * @example
2219
- * const result = await contract.simulate.transfer('0x...', 1000n);
2220
- * console.log('Gas estimate:', result.request.gas);
2221
- * console.log('Would succeed:', result.result);
2222
- */
2223
- get simulate() {
2224
- const contract = this.contract;
2225
- if (!contract.simulate) {
2226
- throw new Error('Public client is required for simulation');
2227
- }
2228
- return {
2229
- /**
2230
- * Simulate acceptOwnership
2231
- * Returns gas estimate and result without sending transaction
2232
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2233
- */
2234
- async acceptOwnership(options?: {
2235
- accessList?: import('viem').AccessList;
2236
- authorizationList?: import('viem').AuthorizationList;
2237
- chain?: import('viem').Chain | null;
2238
- dataSuffix?: `0x${string}`;
2239
- gas?: bigint;
2240
- gasPrice?: bigint;
2241
- maxFeePerGas?: bigint;
2242
- maxPriorityFeePerGas?: bigint;
2243
- nonce?: number;
2244
- value?: bigint;
2245
- }): Promise<void> {
2246
- return contract.simulate.acceptOwnership(options) as Promise<void>;
2247
- },
2248
- /**
2249
- * Simulate activateFwaListings
2250
- * Returns gas estimate and result without sending transaction
2251
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2252
- */
2253
- async activateFwaListings(maxCount: bigint, options?: {
2254
- accessList?: import('viem').AccessList;
2255
- authorizationList?: import('viem').AuthorizationList;
2256
- chain?: import('viem').Chain | null;
2257
- dataSuffix?: `0x${string}`;
2258
- gas?: bigint;
2259
- gasPrice?: bigint;
2260
- maxFeePerGas?: bigint;
2261
- maxPriorityFeePerGas?: bigint;
2262
- nonce?: number;
2263
- value?: bigint;
2264
- }): Promise<void> {
2265
- return contract.simulate.activateFwaListings([maxCount] as const, options) as Promise<void>;
2266
- },
2267
- /**
2268
- * Simulate buyAndList
2269
- * Returns gas estimate and result without sending transaction
2270
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2271
- */
2272
- async buyAndList(seaportCalldata: `0x${string}`, priceWei: bigint, collection: `0x${string}`, tokenId: bigint, backingWei: bigint, options?: {
2273
- accessList?: import('viem').AccessList;
2274
- authorizationList?: import('viem').AuthorizationList;
2275
- chain?: import('viem').Chain | null;
2276
- dataSuffix?: `0x${string}`;
2277
- gas?: bigint;
2278
- gasPrice?: bigint;
2279
- maxFeePerGas?: bigint;
2280
- maxPriorityFeePerGas?: bigint;
2281
- nonce?: number;
2282
- value?: bigint;
2283
- }): Promise<bigint> {
2284
- return contract.simulate.buyAndList([seaportCalldata, priceWei, collection, tokenId, backingWei] as const, options) as Promise<bigint>;
2285
- },
2286
- /**
2287
- * Simulate buybackAndBurn
2288
- * Returns gas estimate and result without sending transaction
2289
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2290
- */
2291
- async buybackAndBurn(ethAmount: bigint, minTokensOut: bigint, options?: {
2292
- accessList?: import('viem').AccessList;
2293
- authorizationList?: import('viem').AuthorizationList;
2294
- chain?: import('viem').Chain | null;
2295
- dataSuffix?: `0x${string}`;
2296
- gas?: bigint;
2297
- gasPrice?: bigint;
2298
- maxFeePerGas?: bigint;
2299
- maxPriorityFeePerGas?: bigint;
2300
- nonce?: number;
2301
- value?: bigint;
2302
- }): Promise<bigint> {
2303
- return contract.simulate.buybackAndBurn([ethAmount, minTokensOut] as const, options) as Promise<bigint>;
2304
- },
2305
- /**
2306
- * Simulate claimFees
2307
- * Returns gas estimate and result without sending transaction
2308
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2309
- */
2310
- async claimFees(ids: bigint[], options?: {
2311
- accessList?: import('viem').AccessList;
2312
- authorizationList?: import('viem').AuthorizationList;
2313
- chain?: import('viem').Chain | null;
2314
- dataSuffix?: `0x${string}`;
2315
- gas?: bigint;
2316
- gasPrice?: bigint;
2317
- maxFeePerGas?: bigint;
2318
- maxPriorityFeePerGas?: bigint;
2319
- nonce?: number;
2320
- value?: bigint;
2321
- }): Promise<bigint> {
2322
- return contract.simulate.claimFees([ids] as const, options) as Promise<bigint>;
2323
- },
2324
- /**
2325
- * Simulate claimRewards
2326
- * Returns gas estimate and result without sending transaction
2327
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2328
- */
2329
- async claimRewards(ids: bigint[], options?: {
2330
- accessList?: import('viem').AccessList;
2331
- authorizationList?: import('viem').AuthorizationList;
2332
- chain?: import('viem').Chain | null;
2333
- dataSuffix?: `0x${string}`;
2334
- gas?: bigint;
2335
- gasPrice?: bigint;
2336
- maxFeePerGas?: bigint;
2337
- maxPriorityFeePerGas?: bigint;
2338
- nonce?: number;
2339
- value?: bigint;
2340
- }): Promise<bigint> {
2341
- return contract.simulate.claimRewards([ids] as const, options) as Promise<bigint>;
2342
- },
2343
- /**
2344
- * Simulate claimTopSpot
2345
- * Returns gas estimate and result without sending transaction
2346
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2347
- */
2348
- async claimTopSpot(listingId: bigint, options?: {
2349
- accessList?: import('viem').AccessList;
2350
- authorizationList?: import('viem').AuthorizationList;
2351
- chain?: import('viem').Chain | null;
2352
- dataSuffix?: `0x${string}`;
2353
- gas?: bigint;
2354
- gasPrice?: bigint;
2355
- maxFeePerGas?: bigint;
2356
- maxPriorityFeePerGas?: bigint;
2357
- nonce?: number;
2358
- value?: bigint;
2359
- }): Promise<void> {
2360
- return contract.simulate.claimTopSpot([listingId] as const, options) as Promise<void>;
2361
- },
2362
- /**
2363
- * Simulate depositorReclaimBacking
2364
- * Returns gas estimate and result without sending transaction
2365
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2366
- */
2367
- async depositorReclaimBacking(listingId: bigint, options?: {
2368
- accessList?: import('viem').AccessList;
2369
- authorizationList?: import('viem').AuthorizationList;
2370
- chain?: import('viem').Chain | null;
2371
- dataSuffix?: `0x${string}`;
2372
- gas?: bigint;
2373
- gasPrice?: bigint;
2374
- maxFeePerGas?: bigint;
2375
- maxPriorityFeePerGas?: bigint;
2376
- nonce?: number;
2377
- value?: bigint;
2378
- }): Promise<void> {
2379
- return contract.simulate.depositorReclaimBacking([listingId] as const, options) as Promise<void>;
2380
- },
2381
- /**
2382
- * Simulate depositorReclaimNFT
2383
- * Returns gas estimate and result without sending transaction
2384
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2385
- */
2386
- async depositorReclaimNFT(listingId: bigint, options?: {
2387
- accessList?: import('viem').AccessList;
2388
- authorizationList?: import('viem').AuthorizationList;
2389
- chain?: import('viem').Chain | null;
2390
- dataSuffix?: `0x${string}`;
2391
- gas?: bigint;
2392
- gasPrice?: bigint;
2393
- maxFeePerGas?: bigint;
2394
- maxPriorityFeePerGas?: bigint;
2395
- nonce?: number;
2396
- value?: bigint;
2397
- }): Promise<void> {
2398
- return contract.simulate.depositorReclaimNFT([listingId] as const, options) as Promise<void>;
2399
- },
2400
- /**
2401
- * Simulate emergencyWithdrawERC20
2402
- * Returns gas estimate and result without sending transaction
2403
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2404
- */
2405
- async emergencyWithdrawERC20(token_: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
2406
- accessList?: import('viem').AccessList;
2407
- authorizationList?: import('viem').AuthorizationList;
2408
- chain?: import('viem').Chain | null;
2409
- dataSuffix?: `0x${string}`;
2410
- gas?: bigint;
2411
- gasPrice?: bigint;
2412
- maxFeePerGas?: bigint;
2413
- maxPriorityFeePerGas?: bigint;
2414
- nonce?: number;
2415
- value?: bigint;
2416
- }): Promise<void> {
2417
- return contract.simulate.emergencyWithdrawERC20([token_, to, amount] as const, options) as Promise<void>;
2418
- },
2419
- /**
2420
- * Simulate emergencyWithdrawERC721
2421
- * Returns gas estimate and result without sending transaction
2422
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2423
- */
2424
- async emergencyWithdrawERC721(collection: `0x${string}`, to: `0x${string}`, tokenId: bigint, options?: {
2425
- accessList?: import('viem').AccessList;
2426
- authorizationList?: import('viem').AuthorizationList;
2427
- chain?: import('viem').Chain | null;
2428
- dataSuffix?: `0x${string}`;
2429
- gas?: bigint;
2430
- gasPrice?: bigint;
2431
- maxFeePerGas?: bigint;
2432
- maxPriorityFeePerGas?: bigint;
2433
- nonce?: number;
2434
- value?: bigint;
2435
- }): Promise<void> {
2436
- return contract.simulate.emergencyWithdrawERC721([collection, to, tokenId] as const, options) as Promise<void>;
2437
- },
2438
- /**
2439
- * Simulate emergencyWithdrawETH
2440
- * Returns gas estimate and result without sending transaction
2441
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2442
- */
2443
- async emergencyWithdrawETH(to: `0x${string}`, amount: bigint, options?: {
2444
- accessList?: import('viem').AccessList;
2445
- authorizationList?: import('viem').AuthorizationList;
2446
- chain?: import('viem').Chain | null;
2447
- dataSuffix?: `0x${string}`;
2448
- gas?: bigint;
2449
- gasPrice?: bigint;
2450
- maxFeePerGas?: bigint;
2451
- maxPriorityFeePerGas?: bigint;
2452
- nonce?: number;
2453
- value?: bigint;
2454
- }): Promise<void> {
2455
- return contract.simulate.emergencyWithdrawETH([to, amount] as const, options) as Promise<void>;
2456
- },
2457
- /**
2458
- * Simulate finalizeUnsettled
2459
- * Returns gas estimate and result without sending transaction
2460
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2461
- */
2462
- async finalizeUnsettled(listingId: bigint, options?: {
2463
- accessList?: import('viem').AccessList;
2464
- authorizationList?: import('viem').AuthorizationList;
2465
- chain?: import('viem').Chain | null;
2466
- dataSuffix?: `0x${string}`;
2467
- gas?: bigint;
2468
- gasPrice?: bigint;
2469
- maxFeePerGas?: bigint;
2470
- maxPriorityFeePerGas?: bigint;
2471
- nonce?: number;
2472
- value?: bigint;
2473
- }): Promise<void> {
2474
- return contract.simulate.finalizeUnsettled([listingId] as const, options) as Promise<void>;
2475
- },
2476
- /**
2477
- * Simulate fundOperator
2478
- * Returns gas estimate and result without sending transaction
2479
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2480
- */
2481
- async fundOperator(amount: bigint, options?: {
2482
- accessList?: import('viem').AccessList;
2483
- authorizationList?: import('viem').AuthorizationList;
2484
- chain?: import('viem').Chain | null;
2485
- dataSuffix?: `0x${string}`;
2486
- gas?: bigint;
2487
- gasPrice?: bigint;
2488
- maxFeePerGas?: bigint;
2489
- maxPriorityFeePerGas?: bigint;
2490
- nonce?: number;
2491
- value?: bigint;
2492
- }): Promise<void> {
2493
- return contract.simulate.fundOperator([amount] as const, options) as Promise<void>;
2494
- },
2495
- /**
2496
- * Simulate harvestFeesAndBurn
2497
- * Returns gas estimate and result without sending transaction
2498
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2499
- */
2500
- async harvestFeesAndBurn(ids: bigint[], minTokensOut: bigint, options?: {
2501
- accessList?: import('viem').AccessList;
2502
- authorizationList?: import('viem').AuthorizationList;
2503
- chain?: import('viem').Chain | null;
2504
- dataSuffix?: `0x${string}`;
2505
- gas?: bigint;
2506
- gasPrice?: bigint;
2507
- maxFeePerGas?: bigint;
2508
- maxPriorityFeePerGas?: bigint;
2509
- nonce?: number;
2510
- value?: bigint;
2511
- }): Promise<[bigint, bigint]> {
2512
- return contract.simulate.harvestFeesAndBurn([ids, minTokensOut] as const, options) as Promise<[bigint, bigint]>;
2513
- },
2514
- /**
2515
- * Simulate listOnFwa
2516
- * Returns gas estimate and result without sending transaction
2517
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2518
- */
2519
- async listOnFwa(collection: `0x${string}`, tokenId: bigint, backingWei: bigint, options?: {
2520
- accessList?: import('viem').AccessList;
2521
- authorizationList?: import('viem').AuthorizationList;
2522
- chain?: import('viem').Chain | null;
2523
- dataSuffix?: `0x${string}`;
2524
- gas?: bigint;
2525
- gasPrice?: bigint;
2526
- maxFeePerGas?: bigint;
2527
- maxPriorityFeePerGas?: bigint;
2528
- nonce?: number;
2529
- value?: bigint;
2530
- }): Promise<bigint> {
2531
- return contract.simulate.listOnFwa([collection, tokenId, backingWei] as const, options) as Promise<bigint>;
2532
- },
2533
- /**
2534
- * Simulate onERC721Received
2535
- * Returns gas estimate and result without sending transaction
2536
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2537
- */
2538
- async onERC721Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: `0x${string}`, options?: {
2539
- accessList?: import('viem').AccessList;
2540
- authorizationList?: import('viem').AuthorizationList;
2541
- chain?: import('viem').Chain | null;
2542
- dataSuffix?: `0x${string}`;
2543
- gas?: bigint;
2544
- gasPrice?: bigint;
2545
- maxFeePerGas?: bigint;
2546
- maxPriorityFeePerGas?: bigint;
2547
- nonce?: number;
2548
- value?: bigint;
2549
- }): Promise<`0x${string}`> {
2550
- return contract.simulate.onERC721Received([arg0, arg1, arg2, arg3] as const, options) as Promise<`0x${string}`>;
2551
- },
2552
- /**
2553
- * Simulate pause
2554
- * Returns gas estimate and result without sending transaction
2555
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2556
- */
2557
- async pause(options?: {
2558
- accessList?: import('viem').AccessList;
2559
- authorizationList?: import('viem').AuthorizationList;
2560
- chain?: import('viem').Chain | null;
2561
- dataSuffix?: `0x${string}`;
2562
- gas?: bigint;
2563
- gasPrice?: bigint;
2564
- maxFeePerGas?: bigint;
2565
- maxPriorityFeePerGas?: bigint;
2566
- nonce?: number;
2567
- value?: bigint;
2568
- }): Promise<void> {
2569
- return contract.simulate.pause(options) as Promise<void>;
2570
- },
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}`>;
1147
+ }
1148
+
1149
+
1150
+
1151
+ /**
1152
+ * Simulate contract write operations (dry-run without sending transaction)
1153
+ *
1154
+ * @example
1155
+ * const result = await contract.simulate.transfer('0x...', 1000n);
1156
+ * console.log('Gas estimate:', result.request.gas);
1157
+ * console.log('Would succeed:', result.result);
1158
+ */
1159
+ get simulate() {
1160
+ const contract = this.contract;
1161
+ if (!contract.simulate) {
1162
+ throw new Error('Public client is required for simulation');
1163
+ }
1164
+ return {
2571
1165
  /**
2572
- * Simulate recoverStuckNFT
1166
+ * Simulate changeProxyVariables
2573
1167
  * Returns gas estimate and result without sending transaction
2574
1168
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2575
1169
  */
2576
- async recoverStuckNFT(listingId: bigint, options?: {
1170
+ async changeProxyVariables(nextAdmin: `0x${string}`, nextImplementation: `0x${string}`, options?: {
2577
1171
  accessList?: import('viem').AccessList;
2578
1172
  authorizationList?: import('viem').AuthorizationList;
2579
1173
  chain?: import('viem').Chain | null;
@@ -2585,14 +1179,14 @@ export class Treasury_json {
2585
1179
  nonce?: number;
2586
1180
  value?: bigint;
2587
1181
  }): Promise<void> {
2588
- return contract.simulate.recoverStuckNFT([listingId] as const, options) as Promise<void>;
1182
+ return contract.simulate.changeProxyVariables([nextAdmin, nextImplementation] as const, options) as Promise<void>;
2589
1183
  },
2590
1184
  /**
2591
- * Simulate renounceOwnership
1185
+ * Simulate initialize
2592
1186
  * Returns gas estimate and result without sending transaction
2593
1187
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2594
1188
  */
2595
- async renounceOwnership(options?: {
1189
+ async initialize(thisQNTAddress: `0x${string}`, thisOperatorAddress: `0x${string}`, mappDisputeFee: bigint, commission: bigint, treasuryPenalty: bigint, gatewayPenalty: bigint, speedBumpTime: bigint, options?: {
2596
1190
  accessList?: import('viem').AccessList;
2597
1191
  authorizationList?: import('viem').AuthorizationList;
2598
1192
  chain?: import('viem').Chain | null;
@@ -2604,14 +1198,14 @@ export class Treasury_json {
2604
1198
  nonce?: number;
2605
1199
  value?: bigint;
2606
1200
  }): Promise<void> {
2607
- return contract.simulate.renounceOwnership(options) as Promise<void>;
1201
+ return contract.simulate.initialize([thisQNTAddress, thisOperatorAddress, mappDisputeFee, commission, treasuryPenalty, gatewayPenalty, speedBumpTime] as const, options) as Promise<void>;
2608
1202
  },
2609
1203
  /**
2610
- * Simulate returnFunds
1204
+ * Simulate setAdmin
2611
1205
  * Returns gas estimate and result without sending transaction
2612
1206
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2613
1207
  */
2614
- async returnFunds(options?: {
1208
+ async setAdmin(options?: {
2615
1209
  accessList?: import('viem').AccessList;
2616
1210
  authorizationList?: import('viem').AuthorizationList;
2617
1211
  chain?: import('viem').Chain | null;
@@ -2623,14 +1217,14 @@ export class Treasury_json {
2623
1217
  nonce?: number;
2624
1218
  value?: bigint;
2625
1219
  }): Promise<void> {
2626
- return contract.simulate.returnFunds(options) as Promise<void>;
1220
+ return contract.simulate.setAdmin(options) as Promise<void>;
2627
1221
  },
2628
1222
  /**
2629
- * Simulate setBuybackSlippageBps
1223
+ * Simulate setImplementation
2630
1224
  * Returns gas estimate and result without sending transaction
2631
1225
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2632
1226
  */
2633
- async setBuybackSlippageBps(bps: bigint, options?: {
1227
+ async setImplementation(options?: {
2634
1228
  accessList?: import('viem').AccessList;
2635
1229
  authorizationList?: import('viem').AuthorizationList;
2636
1230
  chain?: import('viem').Chain | null;
@@ -2642,14 +1236,14 @@ export class Treasury_json {
2642
1236
  nonce?: number;
2643
1237
  value?: bigint;
2644
1238
  }): Promise<void> {
2645
- return contract.simulate.setBuybackSlippageBps([bps] as const, options) as Promise<void>;
1239
+ return contract.simulate.setImplementation(options) as Promise<void>;
2646
1240
  },
2647
1241
  /**
2648
- * Simulate setLimits
1242
+ * Simulate speedBumpContract
2649
1243
  * Returns gas estimate and result without sending transaction
2650
1244
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2651
1245
  */
2652
- async setLimits(_maxBackingWei: bigint, _maxNftPriceWei: bigint, _maxPerTx: bigint, _maxPerDay: bigint, options?: {
1246
+ async speedBumpContract(addresses: `0x${string}`[], options?: {
2653
1247
  accessList?: import('viem').AccessList;
2654
1248
  authorizationList?: import('viem').AuthorizationList;
2655
1249
  chain?: import('viem').Chain | null;
@@ -2661,14 +1255,14 @@ export class Treasury_json {
2661
1255
  nonce?: number;
2662
1256
  value?: bigint;
2663
1257
  }): Promise<void> {
2664
- return contract.simulate.setLimits([_maxBackingWei, _maxNftPriceWei, _maxPerTx, _maxPerDay] as const, options) as Promise<void>;
1258
+ return contract.simulate.speedBumpContract([addresses] as const, options) as Promise<void>;
2665
1259
  },
2666
1260
  /**
2667
- * Simulate setOperator
1261
+ * Simulate speedBumpFee
2668
1262
  * Returns gas estimate and result without sending transaction
2669
1263
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2670
1264
  */
2671
- async setOperator(_operator: `0x${string}`, options?: {
1265
+ async speedBumpFee(uint16s: bigint[], options?: {
2672
1266
  accessList?: import('viem').AccessList;
2673
1267
  authorizationList?: import('viem').AuthorizationList;
2674
1268
  chain?: import('viem').Chain | null;
@@ -2680,14 +1274,14 @@ export class Treasury_json {
2680
1274
  nonce?: number;
2681
1275
  value?: bigint;
2682
1276
  }): Promise<void> {
2683
- return contract.simulate.setOperator([_operator] as const, options) as Promise<void>;
1277
+ return contract.simulate.speedBumpFee([uint16s] as const, options) as Promise<void>;
2684
1278
  },
2685
1279
  /**
2686
- * Simulate transferOwnership
1280
+ * Simulate speedBumpMain
2687
1281
  * Returns gas estimate and result without sending transaction
2688
1282
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2689
1283
  */
2690
- async transferOwnership(newOwner: `0x${string}`, options?: {
1284
+ async speedBumpMain(addresses: `0x${string}`[], newSpeedBumpHours: bigint, circuitBreaker: boolean, options?: {
2691
1285
  accessList?: import('viem').AccessList;
2692
1286
  authorizationList?: import('viem').AuthorizationList;
2693
1287
  chain?: import('viem').Chain | null;
@@ -2699,33 +1293,14 @@ export class Treasury_json {
2699
1293
  nonce?: number;
2700
1294
  value?: bigint;
2701
1295
  }): Promise<void> {
2702
- return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
2703
- },
2704
- /**
2705
- * Simulate unlockCallback
2706
- * Returns gas estimate and result without sending transaction
2707
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2708
- */
2709
- async unlockCallback(data: `0x${string}`, options?: {
2710
- accessList?: import('viem').AccessList;
2711
- authorizationList?: import('viem').AuthorizationList;
2712
- chain?: import('viem').Chain | null;
2713
- dataSuffix?: `0x${string}`;
2714
- gas?: bigint;
2715
- gasPrice?: bigint;
2716
- maxFeePerGas?: bigint;
2717
- maxPriorityFeePerGas?: bigint;
2718
- nonce?: number;
2719
- value?: bigint;
2720
- }): Promise<`0x${string}`> {
2721
- return contract.simulate.unlockCallback([data] as const, options) as Promise<`0x${string}`>;
1296
+ return contract.simulate.speedBumpMain([addresses, newSpeedBumpHours, circuitBreaker] as const, options) as Promise<void>;
2722
1297
  },
2723
1298
  /**
2724
- * Simulate unpause
1299
+ * Simulate updateTreasuryContracts
2725
1300
  * Returns gas estimate and result without sending transaction
2726
1301
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2727
1302
  */
2728
- async unpause(options?: {
1303
+ async updateTreasuryContracts(options?: {
2729
1304
  accessList?: import('viem').AccessList;
2730
1305
  authorizationList?: import('viem').AuthorizationList;
2731
1306
  chain?: import('viem').Chain | null;
@@ -2737,14 +1312,14 @@ export class Treasury_json {
2737
1312
  nonce?: number;
2738
1313
  value?: bigint;
2739
1314
  }): Promise<void> {
2740
- return contract.simulate.unpause(options) as Promise<void>;
1315
+ return contract.simulate.updateTreasuryContracts(options) as Promise<void>;
2741
1316
  },
2742
1317
  /**
2743
- * Simulate updateBacking
1318
+ * Simulate updateTreasuryFeeVariables
2744
1319
  * Returns gas estimate and result without sending transaction
2745
1320
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2746
1321
  */
2747
- async updateBacking(listingId: bigint, newBacking: bigint, extraWei: bigint, options?: {
1322
+ async updateTreasuryFeeVariables(options?: {
2748
1323
  accessList?: import('viem').AccessList;
2749
1324
  authorizationList?: import('viem').AuthorizationList;
2750
1325
  chain?: import('viem').Chain | null;
@@ -2756,14 +1331,14 @@ export class Treasury_json {
2756
1331
  nonce?: number;
2757
1332
  value?: bigint;
2758
1333
  }): Promise<void> {
2759
- return contract.simulate.updateBacking([listingId, newBacking, extraWei] as const, options) as Promise<void>;
1334
+ return contract.simulate.updateTreasuryFeeVariables(options) as Promise<void>;
2760
1335
  },
2761
1336
  /**
2762
- * Simulate withdrawListing
1337
+ * Simulate updateTreasuryMainVariables
2763
1338
  * Returns gas estimate and result without sending transaction
2764
1339
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2765
1340
  */
2766
- async withdrawListing(listingId: bigint, options?: {
1341
+ async updateTreasuryMainVariables(options?: {
2767
1342
  accessList?: import('viem').AccessList;
2768
1343
  authorizationList?: import('viem').AuthorizationList;
2769
1344
  chain?: import('viem').Chain | null;
@@ -2775,7 +1350,7 @@ export class Treasury_json {
2775
1350
  nonce?: number;
2776
1351
  value?: bigint;
2777
1352
  }): Promise<void> {
2778
- return contract.simulate.withdrawListing([listingId] as const, options) as Promise<void>;
1353
+ return contract.simulate.updateTreasuryMainVariables(options) as Promise<void>;
2779
1354
  }
2780
1355
  };
2781
1356
  }
@@ -2795,168 +1370,16 @@ export class Treasury_json {
2795
1370
  get watch() {
2796
1371
  return {
2797
1372
  /**
2798
- * Watch BackingUpdated events
2799
- * @param callback Function to call when event is emitted
2800
- * @param filter Optional filter for indexed parameters
2801
- * @returns Unwatch function to stop listening
2802
- */
2803
- BackingUpdated: (callback: (event: { listingId: bigint; newBacking: bigint }) => void, filter?: { listingId: bigint }) => {
2804
- return this.publicClient.watchContractEvent({
2805
- address: this.contractAddress,
2806
- abi: Treasury_jsonAbi,
2807
- eventName: 'BackingUpdated',
2808
- args: filter,
2809
- onLogs: (logs: any[]) => {
2810
- logs.forEach((log: any) => {
2811
- callback(log.args as any);
2812
- });
2813
- },
2814
- }) as () => void;
2815
- },
2816
- /**
2817
- * Watch BoughtAndListed events
2818
- * @param callback Function to call when event is emitted
2819
- * @param filter Optional filter for indexed parameters
2820
- * @returns Unwatch function to stop listening
2821
- */
2822
- BoughtAndListed: (callback: (event: { listingId: bigint; collection: `0x${string}`; tokenId: bigint; priceWei: bigint }) => void, filter?: { listingId: bigint; collection: `0x${string}` }) => {
2823
- return this.publicClient.watchContractEvent({
2824
- address: this.contractAddress,
2825
- abi: Treasury_jsonAbi,
2826
- eventName: 'BoughtAndListed',
2827
- args: filter,
2828
- onLogs: (logs: any[]) => {
2829
- logs.forEach((log: any) => {
2830
- callback(log.args as any);
2831
- });
2832
- },
2833
- }) as () => void;
2834
- },
2835
- /**
2836
- * Watch BuybackBurned events
2837
- * @param callback Function to call when event is emitted
2838
- * @param filter Optional filter for indexed parameters
2839
- * @returns Unwatch function to stop listening
2840
- */
2841
- BuybackBurned: (callback: (event: { ethIn: bigint; tokensBurned: bigint }) => void) => {
2842
- return this.publicClient.watchContractEvent({
2843
- address: this.contractAddress,
2844
- abi: Treasury_jsonAbi,
2845
- eventName: 'BuybackBurned',
2846
-
2847
- onLogs: (logs: any[]) => {
2848
- logs.forEach((log: any) => {
2849
- callback(log.args as any);
2850
- });
2851
- },
2852
- }) as () => void;
2853
- },
2854
- /**
2855
- * Watch BuybackSlippageSet events
2856
- * @param callback Function to call when event is emitted
2857
- * @param filter Optional filter for indexed parameters
2858
- * @returns Unwatch function to stop listening
2859
- */
2860
- BuybackSlippageSet: (callback: (event: { bps: bigint }) => void) => {
2861
- return this.publicClient.watchContractEvent({
2862
- address: this.contractAddress,
2863
- abi: Treasury_jsonAbi,
2864
- eventName: 'BuybackSlippageSet',
2865
-
2866
- onLogs: (logs: any[]) => {
2867
- logs.forEach((log: any) => {
2868
- callback(log.args as any);
2869
- });
2870
- },
2871
- }) as () => void;
2872
- },
2873
- /**
2874
- * Watch EmergencyWithdrawERC20 events
2875
- * @param callback Function to call when event is emitted
2876
- * @param filter Optional filter for indexed parameters
2877
- * @returns Unwatch function to stop listening
2878
- */
2879
- EmergencyWithdrawERC20: (callback: (event: { token: `0x${string}`; to: `0x${string}`; amount: bigint }) => void, filter?: { token: `0x${string}`; to: `0x${string}` }) => {
2880
- return this.publicClient.watchContractEvent({
2881
- address: this.contractAddress,
2882
- abi: Treasury_jsonAbi,
2883
- eventName: 'EmergencyWithdrawERC20',
2884
- args: filter,
2885
- onLogs: (logs: any[]) => {
2886
- logs.forEach((log: any) => {
2887
- callback(log.args as any);
2888
- });
2889
- },
2890
- }) as () => void;
2891
- },
2892
- /**
2893
- * Watch EmergencyWithdrawERC721 events
2894
- * @param callback Function to call when event is emitted
2895
- * @param filter Optional filter for indexed parameters
2896
- * @returns Unwatch function to stop listening
2897
- */
2898
- EmergencyWithdrawERC721: (callback: (event: { collection: `0x${string}`; to: `0x${string}`; tokenId: bigint }) => void, filter?: { collection: `0x${string}`; to: `0x${string}` }) => {
2899
- return this.publicClient.watchContractEvent({
2900
- address: this.contractAddress,
2901
- abi: Treasury_jsonAbi,
2902
- eventName: 'EmergencyWithdrawERC721',
2903
- args: filter,
2904
- onLogs: (logs: any[]) => {
2905
- logs.forEach((log: any) => {
2906
- callback(log.args as any);
2907
- });
2908
- },
2909
- }) as () => void;
2910
- },
2911
- /**
2912
- * Watch EmergencyWithdrawETH events
2913
- * @param callback Function to call when event is emitted
2914
- * @param filter Optional filter for indexed parameters
2915
- * @returns Unwatch function to stop listening
2916
- */
2917
- EmergencyWithdrawETH: (callback: (event: { to: `0x${string}`; amount: bigint }) => void, filter?: { to: `0x${string}` }) => {
2918
- return this.publicClient.watchContractEvent({
2919
- address: this.contractAddress,
2920
- abi: Treasury_jsonAbi,
2921
- eventName: 'EmergencyWithdrawETH',
2922
- args: filter,
2923
- onLogs: (logs: any[]) => {
2924
- logs.forEach((log: any) => {
2925
- callback(log.args as any);
2926
- });
2927
- },
2928
- }) as () => void;
2929
- },
2930
- /**
2931
- * Watch FeesClaimed events
2932
- * @param callback Function to call when event is emitted
2933
- * @param filter Optional filter for indexed parameters
2934
- * @returns Unwatch function to stop listening
2935
- */
2936
- FeesClaimed: (callback: (event: { total: bigint }) => void) => {
2937
- return this.publicClient.watchContractEvent({
2938
- address: this.contractAddress,
2939
- abi: Treasury_jsonAbi,
2940
- eventName: 'FeesClaimed',
2941
-
2942
- onLogs: (logs: any[]) => {
2943
- logs.forEach((log: any) => {
2944
- callback(log.args as any);
2945
- });
2946
- },
2947
- }) as () => void;
2948
- },
2949
- /**
2950
- * Watch FundsReturned events
1373
+ * Watch connectedContracts events
2951
1374
  * @param callback Function to call when event is emitted
2952
1375
  * @param filter Optional filter for indexed parameters
2953
1376
  * @returns Unwatch function to stop listening
2954
1377
  */
2955
- FundsReturned: (callback: (event: { amount: bigint }) => void) => {
1378
+ connectedContracts: (callback: (event: { factory: `0x${string}`; ruleList: `0x${string}`; escrowedDeposit: `0x${string}` }) => void) => {
2956
1379
  return this.publicClient.watchContractEvent({
2957
1380
  address: this.contractAddress,
2958
1381
  abi: Treasury_jsonAbi,
2959
- eventName: 'FundsReturned',
1382
+ eventName: 'connectedContracts',
2960
1383
 
2961
1384
  onLogs: (logs: any[]) => {
2962
1385
  logs.forEach((log: any) => {
@@ -2966,35 +1389,16 @@ export class Treasury_json {
2966
1389
  }) as () => void;
2967
1390
  },
2968
1391
  /**
2969
- * Watch FwaRecovery events
2970
- * @param callback Function to call when event is emitted
2971
- * @param filter Optional filter for indexed parameters
2972
- * @returns Unwatch function to stop listening
2973
- */
2974
- FwaRecovery: (callback: (event: { listingId: bigint; action: string }) => void, filter?: { listingId: bigint }) => {
2975
- return this.publicClient.watchContractEvent({
2976
- address: this.contractAddress,
2977
- abi: Treasury_jsonAbi,
2978
- eventName: 'FwaRecovery',
2979
- args: filter,
2980
- onLogs: (logs: any[]) => {
2981
- logs.forEach((log: any) => {
2982
- callback(log.args as any);
2983
- });
2984
- },
2985
- }) as () => void;
2986
- },
2987
- /**
2988
- * Watch LimitsSet events
1392
+ * Watch updatedSpeedBump events
2989
1393
  * @param callback Function to call when event is emitted
2990
1394
  * @param filter Optional filter for indexed parameters
2991
1395
  * @returns Unwatch function to stop listening
2992
1396
  */
2993
- LimitsSet: (callback: (event: { maxBackingWei: bigint; maxNftPriceWei: bigint; maxPerTx: bigint; maxPerDay: bigint }) => void) => {
1397
+ updatedSpeedBump: (callback: (event: { speedBumpIndex: bigint; timeCreated: bigint; speedBumpHours: bigint }) => void) => {
2994
1398
  return this.publicClient.watchContractEvent({
2995
1399
  address: this.contractAddress,
2996
1400
  abi: Treasury_jsonAbi,
2997
- eventName: 'LimitsSet',
1401
+ eventName: 'updatedSpeedBump',
2998
1402
 
2999
1403
  onLogs: (logs: any[]) => {
3000
1404
  logs.forEach((log: any) => {
@@ -3004,111 +1408,16 @@ export class Treasury_json {
3004
1408
  }) as () => void;
3005
1409
  },
3006
1410
  /**
3007
- * Watch ListedOnFwa events
3008
- * @param callback Function to call when event is emitted
3009
- * @param filter Optional filter for indexed parameters
3010
- * @returns Unwatch function to stop listening
3011
- */
3012
- ListedOnFwa: (callback: (event: { listingId: bigint; collection: `0x${string}`; tokenId: bigint; backingWei: bigint }) => void, filter?: { listingId: bigint; collection: `0x${string}` }) => {
3013
- return this.publicClient.watchContractEvent({
3014
- address: this.contractAddress,
3015
- abi: Treasury_jsonAbi,
3016
- eventName: 'ListedOnFwa',
3017
- args: filter,
3018
- onLogs: (logs: any[]) => {
3019
- logs.forEach((log: any) => {
3020
- callback(log.args as any);
3021
- });
3022
- },
3023
- }) as () => void;
3024
- },
3025
- /**
3026
- * Watch OperatorFunded events
3027
- * @param callback Function to call when event is emitted
3028
- * @param filter Optional filter for indexed parameters
3029
- * @returns Unwatch function to stop listening
3030
- */
3031
- OperatorFunded: (callback: (event: { operator: `0x${string}`; amount: bigint }) => void, filter?: { operator: `0x${string}` }) => {
3032
- return this.publicClient.watchContractEvent({
3033
- address: this.contractAddress,
3034
- abi: Treasury_jsonAbi,
3035
- eventName: 'OperatorFunded',
3036
- args: filter,
3037
- onLogs: (logs: any[]) => {
3038
- logs.forEach((log: any) => {
3039
- callback(log.args as any);
3040
- });
3041
- },
3042
- }) as () => void;
3043
- },
3044
- /**
3045
- * Watch OperatorSet events
3046
- * @param callback Function to call when event is emitted
3047
- * @param filter Optional filter for indexed parameters
3048
- * @returns Unwatch function to stop listening
3049
- */
3050
- OperatorSet: (callback: (event: { operator: `0x${string}` }) => void, filter?: { operator: `0x${string}` }) => {
3051
- return this.publicClient.watchContractEvent({
3052
- address: this.contractAddress,
3053
- abi: Treasury_jsonAbi,
3054
- eventName: 'OperatorSet',
3055
- args: filter,
3056
- onLogs: (logs: any[]) => {
3057
- logs.forEach((log: any) => {
3058
- callback(log.args as any);
3059
- });
3060
- },
3061
- }) as () => void;
3062
- },
3063
- /**
3064
- * Watch OwnershipTransferStarted events
3065
- * @param callback Function to call when event is emitted
3066
- * @param filter Optional filter for indexed parameters
3067
- * @returns Unwatch function to stop listening
3068
- */
3069
- OwnershipTransferStarted: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
3070
- return this.publicClient.watchContractEvent({
3071
- address: this.contractAddress,
3072
- abi: Treasury_jsonAbi,
3073
- eventName: 'OwnershipTransferStarted',
3074
- args: filter,
3075
- onLogs: (logs: any[]) => {
3076
- logs.forEach((log: any) => {
3077
- callback(log.args as any);
3078
- });
3079
- },
3080
- }) as () => void;
3081
- },
3082
- /**
3083
- * Watch OwnershipTransferred events
3084
- * @param callback Function to call when event is emitted
3085
- * @param filter Optional filter for indexed parameters
3086
- * @returns Unwatch function to stop listening
3087
- */
3088
- OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
3089
- return this.publicClient.watchContractEvent({
3090
- address: this.contractAddress,
3091
- abi: Treasury_jsonAbi,
3092
- eventName: 'OwnershipTransferred',
3093
- args: filter,
3094
- onLogs: (logs: any[]) => {
3095
- logs.forEach((log: any) => {
3096
- callback(log.args as any);
3097
- });
3098
- },
3099
- }) as () => void;
3100
- },
3101
- /**
3102
- * Watch Paused events
1411
+ * Watch updatedTreasuryFunctionVerification events
3103
1412
  * @param callback Function to call when event is emitted
3104
1413
  * @param filter Optional filter for indexed parameters
3105
1414
  * @returns Unwatch function to stop listening
3106
1415
  */
3107
- Paused: (callback: (event: { account: `0x${string}` }) => void) => {
1416
+ updatedTreasuryFunctionVerification: (callback: (event: { verificationDetails: string; locationOfDetails: string }) => void) => {
3108
1417
  return this.publicClient.watchContractEvent({
3109
1418
  address: this.contractAddress,
3110
1419
  abi: Treasury_jsonAbi,
3111
- eventName: 'Paused',
1420
+ eventName: 'updatedTreasuryFunctionVerification',
3112
1421
 
3113
1422
  onLogs: (logs: any[]) => {
3114
1423
  logs.forEach((log: any) => {
@@ -3118,16 +1427,16 @@ export class Treasury_json {
3118
1427
  }) as () => void;
3119
1428
  },
3120
1429
  /**
3121
- * Watch RewardsClaimed events
1430
+ * Watch updatedTreasuryMainVariables events
3122
1431
  * @param callback Function to call when event is emitted
3123
1432
  * @param filter Optional filter for indexed parameters
3124
1433
  * @returns Unwatch function to stop listening
3125
1434
  */
3126
- RewardsClaimed: (callback: (event: { total: bigint }) => void) => {
1435
+ updatedTreasuryMainVariables: (callback: (event: { newWithdrawalAddress: `0x${string}`; newOperator: `0x${string}`; circuitBreaker: boolean }) => void) => {
3127
1436
  return this.publicClient.watchContractEvent({
3128
1437
  address: this.contractAddress,
3129
1438
  abi: Treasury_jsonAbi,
3130
- eventName: 'RewardsClaimed',
1439
+ eventName: 'updatedTreasuryMainVariables',
3131
1440
 
3132
1441
  onLogs: (logs: any[]) => {
3133
1442
  logs.forEach((log: any) => {
@@ -3137,16 +1446,16 @@ export class Treasury_json {
3137
1446
  }) as () => void;
3138
1447
  },
3139
1448
  /**
3140
- * Watch Unpaused events
1449
+ * Watch updatedTreasuryVariables events
3141
1450
  * @param callback Function to call when event is emitted
3142
1451
  * @param filter Optional filter for indexed parameters
3143
1452
  * @returns Unwatch function to stop listening
3144
1453
  */
3145
- Unpaused: (callback: (event: { account: `0x${string}` }) => void) => {
1454
+ updatedTreasuryVariables: (callback: (event: { mappDisputeFeeMultipler: bigint; commissionDivider: bigint; gatewayPenaltyMultipler: bigint; treasuryPenaltyMultipler: bigint }) => void) => {
3146
1455
  return this.publicClient.watchContractEvent({
3147
1456
  address: this.contractAddress,
3148
1457
  abi: Treasury_jsonAbi,
3149
- eventName: 'Unpaused',
1458
+ eventName: 'updatedTreasuryVariables',
3150
1459
 
3151
1460
  onLogs: (logs: any[]) => {
3152
1461
  logs.forEach((log: any) => {