@gitmyabi/treasury 1.0.0 → 1.0.1

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.
@@ -5,686 +5,198 @@ import type { Address, PublicClient, WalletClient } from 'viem';
5
5
  * This ABI is typed using viem's type system for full type safety.
6
6
  */
7
7
  export declare const Treasury_jsonAbi: readonly [{
8
- readonly inputs: readonly [{
9
- readonly internalType: "contract IFWA";
10
- readonly name: "_fwa";
11
- readonly type: "address";
12
- }, {
13
- readonly internalType: "address";
14
- readonly name: "_owner";
15
- readonly type: "address";
16
- }, {
17
- readonly internalType: "contract IPoolManager";
18
- readonly name: "_poolManager";
19
- readonly type: "address";
20
- }, {
21
- readonly internalType: "address";
22
- readonly name: "_token";
23
- readonly type: "address";
24
- }, {
25
- readonly internalType: "contract IHooks";
26
- readonly name: "_hook";
27
- readonly type: "address";
28
- }, {
29
- readonly internalType: "address";
30
- readonly name: "_seaport";
31
- readonly type: "address";
32
- }];
33
- readonly stateMutability: "nonpayable";
34
- readonly type: "constructor";
35
- }, {
36
- readonly inputs: readonly [{
37
- readonly internalType: "address";
38
- readonly name: "target";
39
- readonly type: "address";
40
- }];
41
- readonly name: "AddressEmptyCode";
42
- readonly type: "error";
43
- }, {
44
- readonly inputs: readonly [{
45
- readonly internalType: "address";
46
- readonly name: "account";
47
- readonly type: "address";
48
- }];
49
- readonly name: "AddressInsufficientBalance";
50
- readonly type: "error";
51
- }, {
52
- readonly inputs: readonly [];
53
- readonly name: "BackingTooHigh";
54
- readonly type: "error";
55
- }, {
56
- readonly inputs: readonly [];
57
- readonly name: "CapExceeded";
58
- readonly type: "error";
59
- }, {
60
- readonly inputs: readonly [];
61
- readonly name: "EnforcedPause";
62
- readonly type: "error";
63
- }, {
64
- readonly inputs: readonly [];
65
- readonly name: "ExpectedPause";
66
- readonly type: "error";
67
- }, {
68
- readonly inputs: readonly [];
69
- readonly name: "FailedInnerCall";
70
- readonly type: "error";
71
- }, {
72
- readonly inputs: readonly [];
73
- readonly name: "InsufficientBalance";
74
- readonly type: "error";
75
- }, {
76
- readonly inputs: readonly [];
77
- readonly name: "NftNotReceived";
78
- readonly type: "error";
79
- }, {
80
- readonly inputs: readonly [];
81
- readonly name: "NftPriceTooHigh";
82
- readonly type: "error";
83
- }, {
84
- readonly inputs: readonly [];
85
- readonly name: "NotOperatorOrOwner";
86
- readonly type: "error";
87
- }, {
88
- readonly inputs: readonly [];
89
- readonly name: "NotPoolManager";
90
- readonly type: "error";
91
- }, {
92
- readonly inputs: readonly [{
93
- readonly internalType: "address";
94
- readonly name: "owner";
95
- readonly type: "address";
96
- }];
97
- readonly name: "OwnableInvalidOwner";
98
- readonly type: "error";
99
- }, {
100
- readonly inputs: readonly [{
101
- readonly internalType: "address";
102
- readonly name: "account";
103
- readonly type: "address";
104
- }];
105
- readonly name: "OwnableUnauthorizedAccount";
106
- readonly type: "error";
107
- }, {
108
- readonly inputs: readonly [];
109
- readonly name: "ReentrancyGuardReentrantCall";
110
- readonly type: "error";
111
- }, {
112
- readonly inputs: readonly [{
113
- readonly internalType: "address";
114
- readonly name: "token";
115
- readonly type: "address";
116
- }];
117
- readonly name: "SafeERC20FailedOperation";
118
- readonly type: "error";
119
- }, {
120
- readonly inputs: readonly [];
121
- readonly name: "SeaportBuyFailed";
122
- readonly type: "error";
123
- }, {
124
- readonly inputs: readonly [];
125
- readonly name: "SlippageBuyback";
126
- readonly type: "error";
127
- }, {
128
- readonly inputs: readonly [];
129
- readonly name: "SlippageTooHigh";
130
- readonly type: "error";
131
- }, {
132
- readonly inputs: readonly [];
133
- readonly name: "TransferFailed";
134
- readonly type: "error";
135
- }, {
136
- readonly inputs: readonly [];
137
- readonly name: "ZeroAddress";
138
- readonly type: "error";
139
- }, {
140
8
  readonly anonymous: false;
141
9
  readonly inputs: readonly [{
142
- readonly indexed: true;
143
- readonly internalType: "uint256";
144
- readonly name: "listingId";
145
- readonly type: "uint256";
146
- }, {
147
10
  readonly indexed: false;
148
- readonly internalType: "uint256";
149
- readonly name: "newBacking";
150
- readonly type: "uint256";
151
- }];
152
- readonly name: "BackingUpdated";
153
- readonly type: "event";
154
- }, {
155
- readonly anonymous: false;
156
- readonly inputs: readonly [{
157
- readonly indexed: true;
158
- readonly internalType: "uint256";
159
- readonly name: "listingId";
160
- readonly type: "uint256";
161
- }, {
162
- readonly indexed: true;
163
11
  readonly internalType: "address";
164
- readonly name: "collection";
12
+ readonly name: "previousAdmin";
165
13
  readonly type: "address";
166
14
  }, {
167
15
  readonly indexed: false;
168
- readonly internalType: "uint256";
169
- readonly name: "tokenId";
170
- readonly type: "uint256";
171
- }, {
172
- readonly indexed: false;
173
- readonly internalType: "uint256";
174
- readonly name: "priceWei";
175
- readonly type: "uint256";
176
- }];
177
- readonly name: "BoughtAndListed";
178
- readonly type: "event";
179
- }, {
180
- readonly anonymous: false;
181
- readonly inputs: readonly [{
182
- readonly indexed: false;
183
- readonly internalType: "uint256";
184
- readonly name: "ethIn";
185
- readonly type: "uint256";
186
- }, {
187
- readonly indexed: false;
188
- readonly internalType: "uint256";
189
- readonly name: "tokensBurned";
190
- readonly type: "uint256";
191
- }];
192
- readonly name: "BuybackBurned";
193
- readonly type: "event";
194
- }, {
195
- readonly anonymous: false;
196
- readonly inputs: readonly [{
197
- readonly indexed: false;
198
- readonly internalType: "uint256";
199
- readonly name: "bps";
200
- readonly type: "uint256";
16
+ readonly internalType: "address";
17
+ readonly name: "newAdmin";
18
+ readonly type: "address";
201
19
  }];
202
- readonly name: "BuybackSlippageSet";
20
+ readonly name: "AdminChanged";
203
21
  readonly type: "event";
204
22
  }, {
205
23
  readonly anonymous: false;
206
24
  readonly inputs: readonly [{
207
25
  readonly indexed: true;
208
26
  readonly internalType: "address";
209
- readonly name: "token";
210
- readonly type: "address";
211
- }, {
212
- readonly indexed: true;
213
- readonly internalType: "address";
214
- readonly name: "to";
27
+ readonly name: "beacon";
215
28
  readonly type: "address";
216
- }, {
217
- readonly indexed: false;
218
- readonly internalType: "uint256";
219
- readonly name: "amount";
220
- readonly type: "uint256";
221
29
  }];
222
- readonly name: "EmergencyWithdrawERC20";
30
+ readonly name: "BeaconUpgraded";
223
31
  readonly type: "event";
224
32
  }, {
225
33
  readonly anonymous: false;
226
34
  readonly inputs: readonly [{
227
35
  readonly indexed: true;
228
36
  readonly internalType: "address";
229
- readonly name: "collection";
37
+ readonly name: "previousOwner";
230
38
  readonly type: "address";
231
39
  }, {
232
40
  readonly indexed: true;
233
41
  readonly internalType: "address";
234
- readonly name: "to";
42
+ readonly name: "newOwner";
235
43
  readonly type: "address";
236
- }, {
237
- readonly indexed: false;
238
- readonly internalType: "uint256";
239
- readonly name: "tokenId";
240
- readonly type: "uint256";
241
44
  }];
242
- readonly name: "EmergencyWithdrawERC721";
45
+ readonly name: "OwnershipTransferred";
243
46
  readonly type: "event";
244
47
  }, {
245
48
  readonly anonymous: false;
246
49
  readonly inputs: readonly [{
247
- readonly indexed: true;
50
+ readonly indexed: false;
248
51
  readonly internalType: "address";
249
- readonly name: "to";
52
+ readonly name: "account";
250
53
  readonly type: "address";
251
- }, {
252
- readonly indexed: false;
253
- readonly internalType: "uint256";
254
- readonly name: "amount";
255
- readonly type: "uint256";
256
- }];
257
- readonly name: "EmergencyWithdrawETH";
258
- readonly type: "event";
259
- }, {
260
- readonly anonymous: false;
261
- readonly inputs: readonly [{
262
- readonly indexed: false;
263
- readonly internalType: "uint256";
264
- readonly name: "total";
265
- readonly type: "uint256";
266
54
  }];
267
- readonly name: "FeesClaimed";
55
+ readonly name: "Paused";
268
56
  readonly type: "event";
269
57
  }, {
270
58
  readonly anonymous: false;
271
59
  readonly inputs: readonly [{
272
60
  readonly indexed: false;
273
- readonly internalType: "uint256";
274
- readonly name: "amount";
275
- readonly type: "uint256";
61
+ readonly internalType: "address";
62
+ readonly name: "account";
63
+ readonly type: "address";
276
64
  }];
277
- readonly name: "FundsReturned";
65
+ readonly name: "Unpaused";
278
66
  readonly type: "event";
279
67
  }, {
280
68
  readonly anonymous: false;
281
69
  readonly inputs: readonly [{
282
- readonly indexed: false;
283
- readonly internalType: "string";
284
- readonly name: "action";
285
- readonly type: "string";
286
- }, {
287
70
  readonly indexed: true;
288
- readonly internalType: "uint256";
289
- readonly name: "listingId";
290
- readonly type: "uint256";
291
- }];
292
- readonly name: "FwaRecovery";
293
- readonly type: "event";
294
- }, {
295
- readonly anonymous: false;
296
- readonly inputs: readonly [{
297
- readonly indexed: false;
298
- readonly internalType: "uint256";
299
- readonly name: "maxBackingWei";
300
- readonly type: "uint256";
301
- }, {
302
- readonly indexed: false;
303
- readonly internalType: "uint256";
304
- readonly name: "maxNftPriceWei";
305
- readonly type: "uint256";
306
- }, {
307
- readonly indexed: false;
308
- readonly internalType: "uint256";
309
- readonly name: "maxPerTx";
310
- readonly type: "uint256";
311
- }, {
312
- readonly indexed: false;
313
- readonly internalType: "uint256";
314
- readonly name: "maxPerDay";
315
- readonly type: "uint256";
71
+ readonly internalType: "address";
72
+ readonly name: "implementation";
73
+ readonly type: "address";
316
74
  }];
317
- readonly name: "LimitsSet";
75
+ readonly name: "Upgraded";
318
76
  readonly type: "event";
319
77
  }, {
320
- readonly anonymous: false;
321
- readonly inputs: readonly [{
322
- readonly indexed: true;
323
- readonly internalType: "uint256";
324
- readonly name: "listingId";
325
- readonly type: "uint256";
326
- }, {
327
- readonly indexed: true;
78
+ readonly inputs: readonly [];
79
+ readonly name: "DEAD_ADDRESS";
80
+ readonly outputs: readonly [{
328
81
  readonly internalType: "address";
329
- readonly name: "collection";
82
+ readonly name: "";
330
83
  readonly type: "address";
331
- }, {
332
- readonly indexed: false;
333
- readonly internalType: "uint256";
334
- readonly name: "tokenId";
335
- readonly type: "uint256";
336
- }, {
337
- readonly indexed: false;
338
- readonly internalType: "uint256";
339
- readonly name: "backingWei";
340
- readonly type: "uint256";
341
84
  }];
342
- readonly name: "ListedOnFwa";
343
- readonly type: "event";
85
+ readonly stateMutability: "view";
86
+ readonly type: "function";
344
87
  }, {
345
- readonly anonymous: false;
346
- readonly inputs: readonly [{
347
- readonly indexed: true;
88
+ readonly inputs: readonly [];
89
+ readonly name: "USDC";
90
+ readonly outputs: readonly [{
348
91
  readonly internalType: "address";
349
- readonly name: "operator";
92
+ readonly name: "";
350
93
  readonly type: "address";
351
- }, {
352
- readonly indexed: false;
353
- readonly internalType: "uint256";
354
- readonly name: "amount";
355
- readonly type: "uint256";
356
94
  }];
357
- readonly name: "OperatorFunded";
358
- readonly type: "event";
95
+ readonly stateMutability: "view";
96
+ readonly type: "function";
359
97
  }, {
360
- readonly anonymous: false;
361
- readonly inputs: readonly [{
362
- readonly indexed: true;
98
+ readonly inputs: readonly [];
99
+ readonly name: "dao";
100
+ readonly outputs: readonly [{
363
101
  readonly internalType: "address";
364
- readonly name: "operator";
102
+ readonly name: "";
365
103
  readonly type: "address";
366
104
  }];
367
- readonly name: "OperatorSet";
368
- readonly type: "event";
105
+ readonly stateMutability: "view";
106
+ readonly type: "function";
369
107
  }, {
370
- readonly anonymous: false;
371
108
  readonly inputs: readonly [{
372
- readonly indexed: true;
373
109
  readonly internalType: "address";
374
- readonly name: "previousOwner";
110
+ readonly name: "_rvlt";
375
111
  readonly type: "address";
376
112
  }, {
377
- readonly indexed: true;
378
113
  readonly internalType: "address";
379
- readonly name: "newOwner";
114
+ readonly name: "_router";
380
115
  readonly type: "address";
381
- }];
382
- readonly name: "OwnershipTransferStarted";
383
- readonly type: "event";
384
- }, {
385
- readonly anonymous: false;
386
- readonly inputs: readonly [{
387
- readonly indexed: true;
116
+ }, {
388
117
  readonly internalType: "address";
389
- readonly name: "previousOwner";
118
+ readonly name: "_usdc";
390
119
  readonly type: "address";
391
120
  }, {
392
- readonly indexed: true;
393
121
  readonly internalType: "address";
394
- readonly name: "newOwner";
122
+ readonly name: "_weth";
395
123
  readonly type: "address";
396
124
  }];
397
- readonly name: "OwnershipTransferred";
398
- readonly type: "event";
125
+ readonly name: "initialize";
126
+ readonly outputs: readonly [];
127
+ readonly stateMutability: "nonpayable";
128
+ readonly type: "function";
399
129
  }, {
400
- readonly anonymous: false;
401
- readonly inputs: readonly [{
402
- readonly indexed: false;
130
+ readonly inputs: readonly [];
131
+ readonly name: "multSignWallet";
132
+ readonly outputs: readonly [{
403
133
  readonly internalType: "address";
404
- readonly name: "account";
134
+ readonly name: "";
405
135
  readonly type: "address";
406
136
  }];
407
- readonly name: "Paused";
408
- readonly type: "event";
409
- }, {
410
- readonly anonymous: false;
411
- readonly inputs: readonly [{
412
- readonly indexed: false;
413
- readonly internalType: "uint256";
414
- readonly name: "total";
415
- readonly type: "uint256";
416
- }];
417
- readonly name: "RewardsClaimed";
418
- readonly type: "event";
137
+ readonly stateMutability: "view";
138
+ readonly type: "function";
419
139
  }, {
420
- readonly anonymous: false;
421
- readonly inputs: readonly [{
422
- readonly indexed: false;
140
+ readonly inputs: readonly [];
141
+ readonly name: "owner";
142
+ readonly outputs: readonly [{
423
143
  readonly internalType: "address";
424
- readonly name: "account";
144
+ readonly name: "";
425
145
  readonly type: "address";
426
146
  }];
427
- readonly name: "Unpaused";
428
- readonly type: "event";
147
+ readonly stateMutability: "view";
148
+ readonly type: "function";
429
149
  }, {
430
150
  readonly inputs: readonly [];
431
- readonly name: "MAX_BUYBACK_SLIPPAGE_BPS";
151
+ readonly name: "paused";
432
152
  readonly outputs: readonly [{
433
- readonly internalType: "uint256";
153
+ readonly internalType: "bool";
434
154
  readonly name: "";
435
- readonly type: "uint256";
155
+ readonly type: "bool";
436
156
  }];
437
157
  readonly stateMutability: "view";
438
158
  readonly type: "function";
439
159
  }, {
440
160
  readonly inputs: readonly [];
441
- readonly name: "acceptOwnership";
161
+ readonly name: "renounceOwnership";
442
162
  readonly outputs: readonly [];
443
163
  readonly stateMutability: "nonpayable";
444
164
  readonly type: "function";
445
165
  }, {
446
- readonly inputs: readonly [{
447
- readonly internalType: "uint256";
448
- readonly name: "maxCount";
449
- readonly type: "uint256";
166
+ readonly inputs: readonly [];
167
+ readonly name: "router";
168
+ readonly outputs: readonly [{
169
+ readonly internalType: "address";
170
+ readonly name: "";
171
+ readonly type: "address";
450
172
  }];
451
- readonly name: "activateFwaListings";
452
- readonly outputs: readonly [];
453
- readonly stateMutability: "nonpayable";
173
+ readonly stateMutability: "view";
454
174
  readonly type: "function";
455
175
  }, {
456
- readonly inputs: readonly [{
457
- readonly internalType: "bytes";
458
- readonly name: "seaportCalldata";
459
- readonly type: "bytes";
460
- }, {
461
- readonly internalType: "uint256";
462
- readonly name: "priceWei";
463
- readonly type: "uint256";
464
- }, {
176
+ readonly inputs: readonly [];
177
+ readonly name: "rvlt";
178
+ readonly outputs: readonly [{
465
179
  readonly internalType: "address";
466
- readonly name: "collection";
180
+ readonly name: "";
467
181
  readonly type: "address";
468
- }, {
469
- readonly internalType: "uint256";
470
- readonly name: "tokenId";
471
- readonly type: "uint256";
472
- }, {
473
- readonly internalType: "uint256";
474
- readonly name: "backingWei";
475
- readonly type: "uint256";
476
- }];
477
- readonly name: "buyAndList";
478
- readonly outputs: readonly [{
479
- readonly internalType: "uint256";
480
- readonly name: "listingId";
481
- readonly type: "uint256";
482
- }];
483
- readonly stateMutability: "nonpayable";
484
- readonly type: "function";
485
- }, {
486
- readonly inputs: readonly [{
487
- readonly internalType: "uint256";
488
- readonly name: "ethAmount";
489
- readonly type: "uint256";
490
- }, {
491
- readonly internalType: "uint256";
492
- readonly name: "minTokensOut";
493
- readonly type: "uint256";
494
- }];
495
- readonly name: "buybackAndBurn";
496
- readonly outputs: readonly [{
497
- readonly internalType: "uint256";
498
- readonly name: "tokensBurned";
499
- readonly type: "uint256";
500
- }];
501
- readonly stateMutability: "nonpayable";
502
- readonly type: "function";
503
- }, {
504
- readonly inputs: readonly [];
505
- readonly name: "buybackSlippageBps";
506
- readonly outputs: readonly [{
507
- readonly internalType: "uint256";
508
- readonly name: "";
509
- readonly type: "uint256";
510
- }];
511
- readonly stateMutability: "view";
512
- readonly type: "function";
513
- }, {
514
- readonly inputs: readonly [{
515
- readonly internalType: "uint256[]";
516
- readonly name: "ids";
517
- readonly type: "uint256[]";
518
- }];
519
- readonly name: "claimFees";
520
- readonly outputs: readonly [{
521
- readonly internalType: "uint256";
522
- readonly name: "total";
523
- readonly type: "uint256";
524
- }];
525
- readonly stateMutability: "nonpayable";
526
- readonly type: "function";
527
- }, {
528
- readonly inputs: readonly [{
529
- readonly internalType: "uint256[]";
530
- readonly name: "ids";
531
- readonly type: "uint256[]";
532
- }];
533
- readonly name: "claimRewards";
534
- readonly outputs: readonly [{
535
- readonly internalType: "uint256";
536
- readonly name: "total";
537
- readonly type: "uint256";
538
- }];
539
- readonly stateMutability: "nonpayable";
540
- readonly type: "function";
541
- }, {
542
- readonly inputs: readonly [{
543
- readonly internalType: "uint256";
544
- readonly name: "listingId";
545
- readonly type: "uint256";
546
- }];
547
- readonly name: "claimTopSpot";
548
- readonly outputs: readonly [];
549
- readonly stateMutability: "nonpayable";
550
- readonly type: "function";
551
- }, {
552
- readonly inputs: readonly [];
553
- readonly name: "currentDay";
554
- readonly outputs: readonly [{
555
- readonly internalType: "uint256";
556
- readonly name: "";
557
- readonly type: "uint256";
558
182
  }];
559
183
  readonly stateMutability: "view";
560
184
  readonly type: "function";
561
- }, {
562
- readonly inputs: readonly [{
563
- readonly internalType: "uint256";
564
- readonly name: "listingId";
565
- readonly type: "uint256";
566
- }];
567
- readonly name: "depositorReclaimBacking";
568
- readonly outputs: readonly [];
569
- readonly stateMutability: "nonpayable";
570
- readonly type: "function";
571
- }, {
572
- readonly inputs: readonly [{
573
- readonly internalType: "uint256";
574
- readonly name: "listingId";
575
- readonly type: "uint256";
576
- }];
577
- readonly name: "depositorReclaimNFT";
578
- readonly outputs: readonly [];
579
- readonly stateMutability: "nonpayable";
580
- readonly type: "function";
581
- }, {
582
- readonly inputs: readonly [{
583
- readonly internalType: "address";
584
- readonly name: "token_";
585
- readonly type: "address";
586
- }, {
587
- readonly internalType: "address";
588
- readonly name: "to";
589
- readonly type: "address";
590
- }, {
591
- readonly internalType: "uint256";
592
- readonly name: "amount";
593
- readonly type: "uint256";
594
- }];
595
- readonly name: "emergencyWithdrawERC20";
596
- readonly outputs: readonly [];
597
- readonly stateMutability: "nonpayable";
598
- readonly type: "function";
599
- }, {
600
- readonly inputs: readonly [{
601
- readonly internalType: "address";
602
- readonly name: "collection";
603
- readonly type: "address";
604
- }, {
605
- readonly internalType: "address";
606
- readonly name: "to";
607
- readonly type: "address";
608
- }, {
609
- readonly internalType: "uint256";
610
- readonly name: "tokenId";
611
- readonly type: "uint256";
612
- }];
613
- readonly name: "emergencyWithdrawERC721";
614
- readonly outputs: readonly [];
615
- readonly stateMutability: "nonpayable";
616
- readonly type: "function";
617
185
  }, {
618
186
  readonly inputs: readonly [{
619
187
  readonly internalType: "address";
620
- readonly name: "to";
188
+ readonly name: "newOwner";
621
189
  readonly type: "address";
622
- }, {
623
- readonly internalType: "uint256";
624
- readonly name: "amount";
625
- readonly type: "uint256";
626
- }];
627
- readonly name: "emergencyWithdrawETH";
628
- readonly outputs: readonly [];
629
- readonly stateMutability: "nonpayable";
630
- readonly type: "function";
631
- }, {
632
- readonly inputs: readonly [{
633
- readonly internalType: "uint256";
634
- readonly name: "listingId";
635
- readonly type: "uint256";
636
- }];
637
- readonly name: "finalizeUnsettled";
638
- readonly outputs: readonly [];
639
- readonly stateMutability: "nonpayable";
640
- readonly type: "function";
641
- }, {
642
- readonly inputs: readonly [{
643
- readonly internalType: "uint256";
644
- readonly name: "amount";
645
- readonly type: "uint256";
646
190
  }];
647
- readonly name: "fundOperator";
191
+ readonly name: "transferOwnership";
648
192
  readonly outputs: readonly [];
649
193
  readonly stateMutability: "nonpayable";
650
194
  readonly type: "function";
651
195
  }, {
652
196
  readonly inputs: readonly [];
653
- readonly name: "fwa";
197
+ readonly name: "uRvlt";
654
198
  readonly outputs: readonly [{
655
- readonly internalType: "contract IFWA";
656
- readonly name: "";
657
- readonly type: "address";
658
- }];
659
- readonly stateMutability: "view";
660
- readonly type: "function";
661
- }, {
662
- readonly inputs: readonly [{
663
- readonly internalType: "uint256[]";
664
- readonly name: "ids";
665
- readonly type: "uint256[]";
666
- }, {
667
- readonly internalType: "uint256";
668
- readonly name: "minTokensOut";
669
- readonly type: "uint256";
670
- }];
671
- readonly name: "harvestFeesAndBurn";
672
- readonly outputs: readonly [{
673
- readonly internalType: "uint256";
674
- readonly name: "harvested";
675
- readonly type: "uint256";
676
- }, {
677
- readonly internalType: "uint256";
678
- readonly name: "tokensBurned";
679
- readonly type: "uint256";
680
- }];
681
- readonly stateMutability: "nonpayable";
682
- readonly type: "function";
683
- }, {
684
- readonly inputs: readonly [];
685
- readonly name: "hook";
686
- readonly outputs: readonly [{
687
- readonly internalType: "contract IHooks";
199
+ readonly internalType: "address";
688
200
  readonly name: "";
689
201
  readonly type: "address";
690
202
  }];
@@ -693,326 +205,43 @@ export declare const Treasury_jsonAbi: readonly [{
693
205
  }, {
694
206
  readonly inputs: readonly [{
695
207
  readonly internalType: "address";
696
- readonly name: "collection";
208
+ readonly name: "newImplementation";
697
209
  readonly type: "address";
698
- }, {
699
- readonly internalType: "uint256";
700
- readonly name: "tokenId";
701
- readonly type: "uint256";
702
- }, {
703
- readonly internalType: "uint256";
704
- readonly name: "backingWei";
705
- readonly type: "uint256";
706
- }];
707
- readonly name: "listOnFwa";
708
- readonly outputs: readonly [{
709
- readonly internalType: "uint256";
710
- readonly name: "listingId";
711
- readonly type: "uint256";
712
210
  }];
211
+ readonly name: "upgradeTo";
212
+ readonly outputs: readonly [];
713
213
  readonly stateMutability: "nonpayable";
714
214
  readonly type: "function";
715
- }, {
716
- readonly inputs: readonly [];
717
- readonly name: "listingCount";
718
- readonly outputs: readonly [{
719
- readonly internalType: "uint256";
720
- readonly name: "";
721
- readonly type: "uint256";
722
- }];
723
- readonly stateMutability: "view";
724
- readonly type: "function";
725
- }, {
726
- readonly inputs: readonly [{
727
- readonly internalType: "uint256";
728
- readonly name: "";
729
- readonly type: "uint256";
730
- }];
731
- readonly name: "listingIds";
732
- readonly outputs: readonly [{
733
- readonly internalType: "uint256";
734
- readonly name: "";
735
- readonly type: "uint256";
736
- }];
737
- readonly stateMutability: "view";
738
- readonly type: "function";
739
- }, {
740
- readonly inputs: readonly [];
741
- readonly name: "maxBackingWei";
742
- readonly outputs: readonly [{
743
- readonly internalType: "uint256";
744
- readonly name: "";
745
- readonly type: "uint256";
746
- }];
747
- readonly stateMutability: "view";
748
- readonly type: "function";
749
- }, {
750
- readonly inputs: readonly [];
751
- readonly name: "maxNftPriceWei";
752
- readonly outputs: readonly [{
753
- readonly internalType: "uint256";
754
- readonly name: "";
755
- readonly type: "uint256";
756
- }];
757
- readonly stateMutability: "view";
758
- readonly type: "function";
759
- }, {
760
- readonly inputs: readonly [];
761
- readonly name: "maxOperatorFundPerDay";
762
- readonly outputs: readonly [{
763
- readonly internalType: "uint256";
764
- readonly name: "";
765
- readonly type: "uint256";
766
- }];
767
- readonly stateMutability: "view";
768
- readonly type: "function";
769
- }, {
770
- readonly inputs: readonly [];
771
- readonly name: "maxOperatorFundPerTx";
772
- readonly outputs: readonly [{
773
- readonly internalType: "uint256";
774
- readonly name: "";
775
- readonly type: "uint256";
776
- }];
777
- readonly stateMutability: "view";
778
- readonly type: "function";
779
215
  }, {
780
216
  readonly inputs: readonly [{
781
217
  readonly internalType: "address";
782
- readonly name: "";
783
- readonly type: "address";
784
- }, {
785
- readonly internalType: "address";
786
- readonly name: "";
218
+ readonly name: "newImplementation";
787
219
  readonly type: "address";
788
- }, {
789
- readonly internalType: "uint256";
790
- readonly name: "";
791
- readonly type: "uint256";
792
220
  }, {
793
221
  readonly internalType: "bytes";
794
- readonly name: "";
222
+ readonly name: "data";
795
223
  readonly type: "bytes";
796
224
  }];
797
- readonly name: "onERC721Received";
798
- readonly outputs: readonly [{
799
- readonly internalType: "bytes4";
800
- readonly name: "";
801
- readonly type: "bytes4";
802
- }];
803
- readonly stateMutability: "nonpayable";
804
- readonly type: "function";
805
- }, {
806
- readonly inputs: readonly [];
807
- readonly name: "operator";
808
- readonly outputs: readonly [{
809
- readonly internalType: "address";
810
- readonly name: "";
811
- readonly type: "address";
812
- }];
813
- readonly stateMutability: "view";
814
- readonly type: "function";
815
- }, {
816
- readonly inputs: readonly [];
817
- readonly name: "operatorFundedToday";
818
- readonly outputs: readonly [{
819
- readonly internalType: "uint256";
820
- readonly name: "";
821
- readonly type: "uint256";
822
- }];
823
- readonly stateMutability: "view";
824
- readonly type: "function";
825
- }, {
826
- readonly inputs: readonly [];
827
- readonly name: "owner";
828
- readonly outputs: readonly [{
829
- readonly internalType: "address";
830
- readonly name: "";
831
- readonly type: "address";
832
- }];
833
- readonly stateMutability: "view";
834
- readonly type: "function";
835
- }, {
836
- readonly inputs: readonly [];
837
- readonly name: "pause";
225
+ readonly name: "upgradeToAndCall";
838
226
  readonly outputs: readonly [];
839
- readonly stateMutability: "nonpayable";
840
- readonly type: "function";
841
- }, {
842
- readonly inputs: readonly [];
843
- readonly name: "paused";
844
- readonly outputs: readonly [{
845
- readonly internalType: "bool";
846
- readonly name: "";
847
- readonly type: "bool";
848
- }];
849
- readonly stateMutability: "view";
227
+ readonly stateMutability: "payable";
850
228
  readonly type: "function";
851
229
  }, {
852
- readonly inputs: readonly [];
853
- readonly name: "pendingOwner";
854
- readonly outputs: readonly [{
230
+ readonly inputs: readonly [{
855
231
  readonly internalType: "address";
856
- readonly name: "";
857
- readonly type: "address";
858
- }];
859
- readonly stateMutability: "view";
860
- readonly type: "function";
861
- }, {
862
- readonly inputs: readonly [];
863
- readonly name: "poolManager";
864
- readonly outputs: readonly [{
865
- readonly internalType: "contract IPoolManager";
866
- readonly name: "";
232
+ readonly name: "token";
867
233
  readonly type: "address";
868
234
  }];
869
- readonly stateMutability: "view";
870
- readonly type: "function";
871
- }, {
872
- readonly inputs: readonly [{
873
- readonly internalType: "uint256";
874
- readonly name: "listingId";
875
- readonly type: "uint256";
876
- }];
877
- readonly name: "recoverStuckNFT";
878
- readonly outputs: readonly [];
879
- readonly stateMutability: "nonpayable";
880
- readonly type: "function";
881
- }, {
882
- readonly inputs: readonly [];
883
- readonly name: "renounceOwnership";
235
+ readonly name: "withdrawAdmin";
884
236
  readonly outputs: readonly [];
885
237
  readonly stateMutability: "nonpayable";
886
238
  readonly type: "function";
887
239
  }, {
888
240
  readonly inputs: readonly [];
889
- readonly name: "returnFunds";
890
- readonly outputs: readonly [];
891
- readonly stateMutability: "payable";
892
- readonly type: "function";
893
- }, {
894
- readonly inputs: readonly [];
895
- readonly name: "seaport";
896
- readonly outputs: readonly [{
897
- readonly internalType: "address";
898
- readonly name: "";
899
- readonly type: "address";
900
- }];
901
- readonly stateMutability: "view";
902
- readonly type: "function";
903
- }, {
904
- readonly inputs: readonly [{
905
- readonly internalType: "uint256";
906
- readonly name: "bps";
907
- readonly type: "uint256";
908
- }];
909
- readonly name: "setBuybackSlippageBps";
241
+ readonly name: "withdrawETHAdmin";
910
242
  readonly outputs: readonly [];
911
243
  readonly stateMutability: "nonpayable";
912
244
  readonly type: "function";
913
- }, {
914
- readonly inputs: readonly [{
915
- readonly internalType: "uint256";
916
- readonly name: "_maxBackingWei";
917
- readonly type: "uint256";
918
- }, {
919
- readonly internalType: "uint256";
920
- readonly name: "_maxNftPriceWei";
921
- readonly type: "uint256";
922
- }, {
923
- readonly internalType: "uint256";
924
- readonly name: "_maxPerTx";
925
- readonly type: "uint256";
926
- }, {
927
- readonly internalType: "uint256";
928
- readonly name: "_maxPerDay";
929
- readonly type: "uint256";
930
- }];
931
- readonly name: "setLimits";
932
- readonly outputs: readonly [];
933
- readonly stateMutability: "nonpayable";
934
- readonly type: "function";
935
- }, {
936
- readonly inputs: readonly [{
937
- readonly internalType: "address";
938
- readonly name: "_operator";
939
- readonly type: "address";
940
- }];
941
- readonly name: "setOperator";
942
- readonly outputs: readonly [];
943
- readonly stateMutability: "nonpayable";
944
- readonly type: "function";
945
- }, {
946
- readonly inputs: readonly [];
947
- readonly name: "token";
948
- readonly outputs: readonly [{
949
- readonly internalType: "address";
950
- readonly name: "";
951
- readonly type: "address";
952
- }];
953
- readonly stateMutability: "view";
954
- readonly type: "function";
955
- }, {
956
- readonly inputs: readonly [{
957
- readonly internalType: "address";
958
- readonly name: "newOwner";
959
- readonly type: "address";
960
- }];
961
- readonly name: "transferOwnership";
962
- readonly outputs: readonly [];
963
- readonly stateMutability: "nonpayable";
964
- readonly type: "function";
965
- }, {
966
- readonly inputs: readonly [{
967
- readonly internalType: "bytes";
968
- readonly name: "data";
969
- readonly type: "bytes";
970
- }];
971
- readonly name: "unlockCallback";
972
- readonly outputs: readonly [{
973
- readonly internalType: "bytes";
974
- readonly name: "";
975
- readonly type: "bytes";
976
- }];
977
- readonly stateMutability: "nonpayable";
978
- readonly type: "function";
979
- }, {
980
- readonly inputs: readonly [];
981
- readonly name: "unpause";
982
- readonly outputs: readonly [];
983
- readonly stateMutability: "nonpayable";
984
- readonly type: "function";
985
- }, {
986
- readonly inputs: readonly [{
987
- readonly internalType: "uint256";
988
- readonly name: "listingId";
989
- readonly type: "uint256";
990
- }, {
991
- readonly internalType: "uint256";
992
- readonly name: "newBacking";
993
- readonly type: "uint256";
994
- }, {
995
- readonly internalType: "uint256";
996
- readonly name: "extraWei";
997
- readonly type: "uint256";
998
- }];
999
- readonly name: "updateBacking";
1000
- readonly outputs: readonly [];
1001
- readonly stateMutability: "nonpayable";
1002
- readonly type: "function";
1003
- }, {
1004
- readonly inputs: readonly [{
1005
- readonly internalType: "uint256";
1006
- readonly name: "listingId";
1007
- readonly type: "uint256";
1008
- }];
1009
- readonly name: "withdrawListing";
1010
- readonly outputs: readonly [];
1011
- readonly stateMutability: "nonpayable";
1012
- readonly type: "function";
1013
- }, {
1014
- readonly stateMutability: "payable";
1015
- readonly type: "receive";
1016
245
  }];
1017
246
  /**
1018
247
  * Type-safe ABI for Treasury_json
@@ -1071,70 +300,25 @@ export declare class Treasury_json {
1071
300
  */
1072
301
  getContract(): Treasury_jsonContract;
1073
302
  /**
1074
- * MAX_BUYBACK_SLIPPAGE_BPS
1075
- * view
1076
- */
1077
- MAX_BUYBACK_SLIPPAGE_BPS(): Promise<bigint>;
1078
- /**
1079
- * buybackSlippageBps
1080
- * view
1081
- */
1082
- buybackSlippageBps(): Promise<bigint>;
1083
- /**
1084
- * currentDay
1085
- * view
1086
- */
1087
- currentDay(): Promise<bigint>;
1088
- /**
1089
- * fwa
1090
- * view
1091
- */
1092
- fwa(): Promise<`0x${string}`>;
1093
- /**
1094
- * hook
1095
- * view
1096
- */
1097
- hook(): Promise<`0x${string}`>;
1098
- /**
1099
- * listingCount
1100
- * view
1101
- */
1102
- listingCount(): Promise<bigint>;
1103
- /**
1104
- * listingIds
1105
- * view
1106
- */
1107
- listingIds(arg0: bigint): Promise<bigint>;
1108
- /**
1109
- * maxBackingWei
1110
- * view
1111
- */
1112
- maxBackingWei(): Promise<bigint>;
1113
- /**
1114
- * maxNftPriceWei
1115
- * view
1116
- */
1117
- maxNftPriceWei(): Promise<bigint>;
1118
- /**
1119
- * maxOperatorFundPerDay
303
+ * DEAD_ADDRESS
1120
304
  * view
1121
305
  */
1122
- maxOperatorFundPerDay(): Promise<bigint>;
306
+ DEAD_ADDRESS(): Promise<`0x${string}`>;
1123
307
  /**
1124
- * maxOperatorFundPerTx
308
+ * USDC
1125
309
  * view
1126
310
  */
1127
- maxOperatorFundPerTx(): Promise<bigint>;
311
+ USDC(): Promise<`0x${string}`>;
1128
312
  /**
1129
- * operator
313
+ * dao
1130
314
  * view
1131
315
  */
1132
- operator(): Promise<`0x${string}`>;
316
+ dao(): Promise<`0x${string}`>;
1133
317
  /**
1134
- * operatorFundedToday
318
+ * multSignWallet
1135
319
  * view
1136
320
  */
1137
- operatorFundedToday(): Promise<bigint>;
321
+ multSignWallet(): Promise<`0x${string}`>;
1138
322
  /**
1139
323
  * owner
1140
324
  * view
@@ -1146,201 +330,26 @@ export declare class Treasury_json {
1146
330
  */
1147
331
  paused(): Promise<boolean>;
1148
332
  /**
1149
- * pendingOwner
1150
- * view
1151
- */
1152
- pendingOwner(): Promise<`0x${string}`>;
1153
- /**
1154
- * poolManager
333
+ * router
1155
334
  * view
1156
335
  */
1157
- poolManager(): Promise<`0x${string}`>;
336
+ router(): Promise<`0x${string}`>;
1158
337
  /**
1159
- * seaport
338
+ * rvlt
1160
339
  * view
1161
340
  */
1162
- seaport(): Promise<`0x${string}`>;
341
+ rvlt(): Promise<`0x${string}`>;
1163
342
  /**
1164
- * token
343
+ * uRvlt
1165
344
  * view
1166
345
  */
1167
- token(): Promise<`0x${string}`>;
1168
- /**
1169
- * acceptOwnership
1170
- * nonpayable
1171
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1172
- */
1173
- acceptOwnership(options?: {
1174
- accessList?: import('viem').AccessList;
1175
- authorizationList?: import('viem').AuthorizationList;
1176
- chain?: import('viem').Chain | null;
1177
- dataSuffix?: `0x${string}`;
1178
- gas?: bigint;
1179
- gasPrice?: bigint;
1180
- maxFeePerGas?: bigint;
1181
- maxPriorityFeePerGas?: bigint;
1182
- nonce?: number;
1183
- value?: bigint;
1184
- }): Promise<`0x${string}`>;
1185
- /**
1186
- * activateFwaListings
1187
- * nonpayable
1188
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1189
- */
1190
- activateFwaListings(maxCount: bigint, options?: {
1191
- accessList?: import('viem').AccessList;
1192
- authorizationList?: import('viem').AuthorizationList;
1193
- chain?: import('viem').Chain | null;
1194
- dataSuffix?: `0x${string}`;
1195
- gas?: bigint;
1196
- gasPrice?: bigint;
1197
- maxFeePerGas?: bigint;
1198
- maxPriorityFeePerGas?: bigint;
1199
- nonce?: number;
1200
- value?: bigint;
1201
- }): Promise<`0x${string}`>;
1202
- /**
1203
- * buyAndList
1204
- * nonpayable
1205
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1206
- */
1207
- buyAndList(seaportCalldata: `0x${string}`, priceWei: bigint, collection: `0x${string}`, tokenId: bigint, backingWei: bigint, options?: {
1208
- accessList?: import('viem').AccessList;
1209
- authorizationList?: import('viem').AuthorizationList;
1210
- chain?: import('viem').Chain | null;
1211
- dataSuffix?: `0x${string}`;
1212
- gas?: bigint;
1213
- gasPrice?: bigint;
1214
- maxFeePerGas?: bigint;
1215
- maxPriorityFeePerGas?: bigint;
1216
- nonce?: number;
1217
- value?: bigint;
1218
- }): Promise<`0x${string}`>;
1219
- /**
1220
- * buybackAndBurn
1221
- * nonpayable
1222
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1223
- */
1224
- buybackAndBurn(ethAmount: bigint, minTokensOut: bigint, options?: {
1225
- accessList?: import('viem').AccessList;
1226
- authorizationList?: import('viem').AuthorizationList;
1227
- chain?: import('viem').Chain | null;
1228
- dataSuffix?: `0x${string}`;
1229
- gas?: bigint;
1230
- gasPrice?: bigint;
1231
- maxFeePerGas?: bigint;
1232
- maxPriorityFeePerGas?: bigint;
1233
- nonce?: number;
1234
- value?: bigint;
1235
- }): Promise<`0x${string}`>;
1236
- /**
1237
- * claimFees
1238
- * nonpayable
1239
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1240
- */
1241
- claimFees(ids: bigint[], options?: {
1242
- accessList?: import('viem').AccessList;
1243
- authorizationList?: import('viem').AuthorizationList;
1244
- chain?: import('viem').Chain | null;
1245
- dataSuffix?: `0x${string}`;
1246
- gas?: bigint;
1247
- gasPrice?: bigint;
1248
- maxFeePerGas?: bigint;
1249
- maxPriorityFeePerGas?: bigint;
1250
- nonce?: number;
1251
- value?: bigint;
1252
- }): Promise<`0x${string}`>;
1253
- /**
1254
- * claimRewards
1255
- * nonpayable
1256
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1257
- */
1258
- claimRewards(ids: bigint[], options?: {
1259
- accessList?: import('viem').AccessList;
1260
- authorizationList?: import('viem').AuthorizationList;
1261
- chain?: import('viem').Chain | null;
1262
- dataSuffix?: `0x${string}`;
1263
- gas?: bigint;
1264
- gasPrice?: bigint;
1265
- maxFeePerGas?: bigint;
1266
- maxPriorityFeePerGas?: bigint;
1267
- nonce?: number;
1268
- value?: bigint;
1269
- }): Promise<`0x${string}`>;
1270
- /**
1271
- * claimTopSpot
1272
- * nonpayable
1273
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1274
- */
1275
- claimTopSpot(listingId: bigint, options?: {
1276
- accessList?: import('viem').AccessList;
1277
- authorizationList?: import('viem').AuthorizationList;
1278
- chain?: import('viem').Chain | null;
1279
- dataSuffix?: `0x${string}`;
1280
- gas?: bigint;
1281
- gasPrice?: bigint;
1282
- maxFeePerGas?: bigint;
1283
- maxPriorityFeePerGas?: bigint;
1284
- nonce?: number;
1285
- value?: bigint;
1286
- }): Promise<`0x${string}`>;
1287
- /**
1288
- * depositorReclaimBacking
1289
- * nonpayable
1290
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1291
- */
1292
- depositorReclaimBacking(listingId: bigint, options?: {
1293
- accessList?: import('viem').AccessList;
1294
- authorizationList?: import('viem').AuthorizationList;
1295
- chain?: import('viem').Chain | null;
1296
- dataSuffix?: `0x${string}`;
1297
- gas?: bigint;
1298
- gasPrice?: bigint;
1299
- maxFeePerGas?: bigint;
1300
- maxPriorityFeePerGas?: bigint;
1301
- nonce?: number;
1302
- value?: bigint;
1303
- }): Promise<`0x${string}`>;
1304
- /**
1305
- * depositorReclaimNFT
1306
- * nonpayable
1307
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1308
- */
1309
- depositorReclaimNFT(listingId: bigint, options?: {
1310
- accessList?: import('viem').AccessList;
1311
- authorizationList?: import('viem').AuthorizationList;
1312
- chain?: import('viem').Chain | null;
1313
- dataSuffix?: `0x${string}`;
1314
- gas?: bigint;
1315
- gasPrice?: bigint;
1316
- maxFeePerGas?: bigint;
1317
- maxPriorityFeePerGas?: bigint;
1318
- nonce?: number;
1319
- value?: bigint;
1320
- }): Promise<`0x${string}`>;
1321
- /**
1322
- * emergencyWithdrawERC20
1323
- * nonpayable
1324
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1325
- */
1326
- emergencyWithdrawERC20(token_: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
1327
- accessList?: import('viem').AccessList;
1328
- authorizationList?: import('viem').AuthorizationList;
1329
- chain?: import('viem').Chain | null;
1330
- dataSuffix?: `0x${string}`;
1331
- gas?: bigint;
1332
- gasPrice?: bigint;
1333
- maxFeePerGas?: bigint;
1334
- maxPriorityFeePerGas?: bigint;
1335
- nonce?: number;
1336
- value?: bigint;
1337
- }): Promise<`0x${string}`>;
346
+ uRvlt(): Promise<`0x${string}`>;
1338
347
  /**
1339
- * emergencyWithdrawERC721
348
+ * initialize
1340
349
  * nonpayable
1341
350
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1342
351
  */
1343
- emergencyWithdrawERC721(collection: `0x${string}`, to: `0x${string}`, tokenId: bigint, options?: {
352
+ initialize(_rvlt: `0x${string}`, _router: `0x${string}`, _usdc: `0x${string}`, _weth: `0x${string}`, options?: {
1344
353
  accessList?: import('viem').AccessList;
1345
354
  authorizationList?: import('viem').AuthorizationList;
1346
355
  chain?: import('viem').Chain | null;
@@ -1353,632 +362,122 @@ export declare class Treasury_json {
1353
362
  value?: bigint;
1354
363
  }): Promise<`0x${string}`>;
1355
364
  /**
1356
- * emergencyWithdrawETH
365
+ * renounceOwnership
1357
366
  * nonpayable
1358
367
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1359
368
  */
1360
- emergencyWithdrawETH(to: `0x${string}`, amount: bigint, options?: {
369
+ renounceOwnership(options?: {
1361
370
  accessList?: import('viem').AccessList;
1362
371
  authorizationList?: import('viem').AuthorizationList;
1363
- chain?: import('viem').Chain | null;
1364
- dataSuffix?: `0x${string}`;
1365
- gas?: bigint;
1366
- gasPrice?: bigint;
1367
- maxFeePerGas?: bigint;
1368
- maxPriorityFeePerGas?: bigint;
1369
- nonce?: number;
1370
- value?: bigint;
1371
- }): Promise<`0x${string}`>;
1372
- /**
1373
- * finalizeUnsettled
1374
- * nonpayable
1375
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1376
- */
1377
- finalizeUnsettled(listingId: bigint, options?: {
1378
- accessList?: import('viem').AccessList;
1379
- authorizationList?: import('viem').AuthorizationList;
1380
- chain?: import('viem').Chain | null;
1381
- dataSuffix?: `0x${string}`;
1382
- gas?: bigint;
1383
- gasPrice?: bigint;
1384
- maxFeePerGas?: bigint;
1385
- maxPriorityFeePerGas?: bigint;
1386
- nonce?: number;
1387
- value?: bigint;
1388
- }): Promise<`0x${string}`>;
1389
- /**
1390
- * fundOperator
1391
- * nonpayable
1392
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1393
- */
1394
- fundOperator(amount: bigint, options?: {
1395
- accessList?: import('viem').AccessList;
1396
- authorizationList?: import('viem').AuthorizationList;
1397
- chain?: import('viem').Chain | null;
1398
- dataSuffix?: `0x${string}`;
1399
- gas?: bigint;
1400
- gasPrice?: bigint;
1401
- maxFeePerGas?: bigint;
1402
- maxPriorityFeePerGas?: bigint;
1403
- nonce?: number;
1404
- value?: bigint;
1405
- }): Promise<`0x${string}`>;
1406
- /**
1407
- * harvestFeesAndBurn
1408
- * nonpayable
1409
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1410
- */
1411
- harvestFeesAndBurn(ids: bigint[], minTokensOut: bigint, options?: {
1412
- accessList?: import('viem').AccessList;
1413
- authorizationList?: import('viem').AuthorizationList;
1414
- chain?: import('viem').Chain | null;
1415
- dataSuffix?: `0x${string}`;
1416
- gas?: bigint;
1417
- gasPrice?: bigint;
1418
- maxFeePerGas?: bigint;
1419
- maxPriorityFeePerGas?: bigint;
1420
- nonce?: number;
1421
- value?: bigint;
1422
- }): Promise<`0x${string}`>;
1423
- /**
1424
- * listOnFwa
1425
- * nonpayable
1426
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1427
- */
1428
- listOnFwa(collection: `0x${string}`, tokenId: bigint, backingWei: bigint, options?: {
1429
- accessList?: import('viem').AccessList;
1430
- authorizationList?: import('viem').AuthorizationList;
1431
- chain?: import('viem').Chain | null;
1432
- dataSuffix?: `0x${string}`;
1433
- gas?: bigint;
1434
- gasPrice?: bigint;
1435
- maxFeePerGas?: bigint;
1436
- maxPriorityFeePerGas?: bigint;
1437
- nonce?: number;
1438
- value?: bigint;
1439
- }): Promise<`0x${string}`>;
1440
- /**
1441
- * onERC721Received
1442
- * nonpayable
1443
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1444
- */
1445
- onERC721Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: `0x${string}`, options?: {
1446
- accessList?: import('viem').AccessList;
1447
- authorizationList?: import('viem').AuthorizationList;
1448
- chain?: import('viem').Chain | null;
1449
- dataSuffix?: `0x${string}`;
1450
- gas?: bigint;
1451
- gasPrice?: bigint;
1452
- maxFeePerGas?: bigint;
1453
- maxPriorityFeePerGas?: bigint;
1454
- nonce?: number;
1455
- value?: bigint;
1456
- }): Promise<`0x${string}`>;
1457
- /**
1458
- * pause
1459
- * nonpayable
1460
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1461
- */
1462
- pause(options?: {
1463
- accessList?: import('viem').AccessList;
1464
- authorizationList?: import('viem').AuthorizationList;
1465
- chain?: import('viem').Chain | null;
1466
- dataSuffix?: `0x${string}`;
1467
- gas?: bigint;
1468
- gasPrice?: bigint;
1469
- maxFeePerGas?: bigint;
1470
- maxPriorityFeePerGas?: bigint;
1471
- nonce?: number;
1472
- value?: bigint;
1473
- }): Promise<`0x${string}`>;
1474
- /**
1475
- * recoverStuckNFT
1476
- * nonpayable
1477
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1478
- */
1479
- recoverStuckNFT(listingId: bigint, options?: {
1480
- accessList?: import('viem').AccessList;
1481
- authorizationList?: import('viem').AuthorizationList;
1482
- chain?: import('viem').Chain | null;
1483
- dataSuffix?: `0x${string}`;
1484
- gas?: bigint;
1485
- gasPrice?: bigint;
1486
- maxFeePerGas?: bigint;
1487
- maxPriorityFeePerGas?: bigint;
1488
- nonce?: number;
1489
- value?: bigint;
1490
- }): Promise<`0x${string}`>;
1491
- /**
1492
- * renounceOwnership
1493
- * nonpayable
1494
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1495
- */
1496
- renounceOwnership(options?: {
1497
- accessList?: import('viem').AccessList;
1498
- authorizationList?: import('viem').AuthorizationList;
1499
- chain?: import('viem').Chain | null;
1500
- dataSuffix?: `0x${string}`;
1501
- gas?: bigint;
1502
- gasPrice?: bigint;
1503
- maxFeePerGas?: bigint;
1504
- maxPriorityFeePerGas?: bigint;
1505
- nonce?: number;
1506
- value?: bigint;
1507
- }): Promise<`0x${string}`>;
1508
- /**
1509
- * returnFunds
1510
- * payable
1511
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1512
- */
1513
- returnFunds(options?: {
1514
- accessList?: import('viem').AccessList;
1515
- authorizationList?: import('viem').AuthorizationList;
1516
- chain?: import('viem').Chain | null;
1517
- dataSuffix?: `0x${string}`;
1518
- gas?: bigint;
1519
- gasPrice?: bigint;
1520
- maxFeePerGas?: bigint;
1521
- maxPriorityFeePerGas?: bigint;
1522
- nonce?: number;
1523
- value?: bigint;
1524
- }): Promise<`0x${string}`>;
1525
- /**
1526
- * setBuybackSlippageBps
1527
- * nonpayable
1528
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1529
- */
1530
- setBuybackSlippageBps(bps: bigint, options?: {
1531
- accessList?: import('viem').AccessList;
1532
- authorizationList?: import('viem').AuthorizationList;
1533
- chain?: import('viem').Chain | null;
1534
- dataSuffix?: `0x${string}`;
1535
- gas?: bigint;
1536
- gasPrice?: bigint;
1537
- maxFeePerGas?: bigint;
1538
- maxPriorityFeePerGas?: bigint;
1539
- nonce?: number;
1540
- value?: bigint;
1541
- }): Promise<`0x${string}`>;
1542
- /**
1543
- * setLimits
1544
- * nonpayable
1545
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1546
- */
1547
- setLimits(_maxBackingWei: bigint, _maxNftPriceWei: bigint, _maxPerTx: bigint, _maxPerDay: bigint, options?: {
1548
- accessList?: import('viem').AccessList;
1549
- authorizationList?: import('viem').AuthorizationList;
1550
- chain?: import('viem').Chain | null;
1551
- dataSuffix?: `0x${string}`;
1552
- gas?: bigint;
1553
- gasPrice?: bigint;
1554
- maxFeePerGas?: bigint;
1555
- maxPriorityFeePerGas?: bigint;
1556
- nonce?: number;
1557
- value?: bigint;
1558
- }): Promise<`0x${string}`>;
1559
- /**
1560
- * setOperator
1561
- * nonpayable
1562
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1563
- */
1564
- setOperator(_operator: `0x${string}`, options?: {
1565
- accessList?: import('viem').AccessList;
1566
- authorizationList?: import('viem').AuthorizationList;
1567
- chain?: import('viem').Chain | null;
1568
- dataSuffix?: `0x${string}`;
1569
- gas?: bigint;
1570
- gasPrice?: bigint;
1571
- maxFeePerGas?: bigint;
1572
- maxPriorityFeePerGas?: bigint;
1573
- nonce?: number;
1574
- value?: bigint;
1575
- }): Promise<`0x${string}`>;
1576
- /**
1577
- * transferOwnership
1578
- * nonpayable
1579
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1580
- */
1581
- transferOwnership(newOwner: `0x${string}`, options?: {
1582
- accessList?: import('viem').AccessList;
1583
- authorizationList?: import('viem').AuthorizationList;
1584
- chain?: import('viem').Chain | null;
1585
- dataSuffix?: `0x${string}`;
1586
- gas?: bigint;
1587
- gasPrice?: bigint;
1588
- maxFeePerGas?: bigint;
1589
- maxPriorityFeePerGas?: bigint;
1590
- nonce?: number;
1591
- value?: bigint;
1592
- }): Promise<`0x${string}`>;
1593
- /**
1594
- * unlockCallback
1595
- * nonpayable
1596
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1597
- */
1598
- unlockCallback(data: `0x${string}`, options?: {
1599
- accessList?: import('viem').AccessList;
1600
- authorizationList?: import('viem').AuthorizationList;
1601
- chain?: import('viem').Chain | null;
1602
- dataSuffix?: `0x${string}`;
1603
- gas?: bigint;
1604
- gasPrice?: bigint;
1605
- maxFeePerGas?: bigint;
1606
- maxPriorityFeePerGas?: bigint;
1607
- nonce?: number;
1608
- value?: bigint;
1609
- }): Promise<`0x${string}`>;
1610
- /**
1611
- * unpause
1612
- * nonpayable
1613
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1614
- */
1615
- unpause(options?: {
1616
- accessList?: import('viem').AccessList;
1617
- authorizationList?: import('viem').AuthorizationList;
1618
- chain?: import('viem').Chain | null;
1619
- dataSuffix?: `0x${string}`;
1620
- gas?: bigint;
1621
- gasPrice?: bigint;
1622
- maxFeePerGas?: bigint;
1623
- maxPriorityFeePerGas?: bigint;
1624
- nonce?: number;
1625
- value?: bigint;
1626
- }): Promise<`0x${string}`>;
1627
- /**
1628
- * updateBacking
1629
- * nonpayable
1630
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1631
- */
1632
- updateBacking(listingId: bigint, newBacking: bigint, extraWei: bigint, options?: {
1633
- accessList?: import('viem').AccessList;
1634
- authorizationList?: import('viem').AuthorizationList;
1635
- chain?: import('viem').Chain | null;
1636
- dataSuffix?: `0x${string}`;
1637
- gas?: bigint;
1638
- gasPrice?: bigint;
1639
- maxFeePerGas?: bigint;
1640
- maxPriorityFeePerGas?: bigint;
1641
- nonce?: number;
1642
- value?: bigint;
1643
- }): Promise<`0x${string}`>;
1644
- /**
1645
- * withdrawListing
1646
- * nonpayable
1647
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1648
- */
1649
- withdrawListing(listingId: bigint, options?: {
1650
- accessList?: import('viem').AccessList;
1651
- authorizationList?: import('viem').AuthorizationList;
1652
- chain?: import('viem').Chain | null;
1653
- dataSuffix?: `0x${string}`;
1654
- gas?: bigint;
1655
- gasPrice?: bigint;
1656
- maxFeePerGas?: bigint;
1657
- maxPriorityFeePerGas?: bigint;
1658
- nonce?: number;
1659
- value?: bigint;
1660
- }): Promise<`0x${string}`>;
1661
- /**
1662
- * Simulate contract write operations (dry-run without sending transaction)
1663
- *
1664
- * @example
1665
- * const result = await contract.simulate.transfer('0x...', 1000n);
1666
- * console.log('Gas estimate:', result.request.gas);
1667
- * console.log('Would succeed:', result.result);
1668
- */
1669
- get simulate(): {
1670
- /**
1671
- * Simulate acceptOwnership
1672
- * Returns gas estimate and result without sending transaction
1673
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1674
- */
1675
- acceptOwnership(options?: {
1676
- accessList?: import("viem").AccessList;
1677
- authorizationList?: import("viem").AuthorizationList;
1678
- chain?: import("viem").Chain | null;
1679
- dataSuffix?: `0x${string}`;
1680
- gas?: bigint;
1681
- gasPrice?: bigint;
1682
- maxFeePerGas?: bigint;
1683
- maxPriorityFeePerGas?: bigint;
1684
- nonce?: number;
1685
- value?: bigint;
1686
- }): Promise<void>;
1687
- /**
1688
- * Simulate activateFwaListings
1689
- * Returns gas estimate and result without sending transaction
1690
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1691
- */
1692
- activateFwaListings(maxCount: bigint, options?: {
1693
- accessList?: import("viem").AccessList;
1694
- authorizationList?: import("viem").AuthorizationList;
1695
- chain?: import("viem").Chain | null;
1696
- dataSuffix?: `0x${string}`;
1697
- gas?: bigint;
1698
- gasPrice?: bigint;
1699
- maxFeePerGas?: bigint;
1700
- maxPriorityFeePerGas?: bigint;
1701
- nonce?: number;
1702
- value?: bigint;
1703
- }): Promise<void>;
1704
- /**
1705
- * Simulate buyAndList
1706
- * Returns gas estimate and result without sending transaction
1707
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1708
- */
1709
- buyAndList(seaportCalldata: `0x${string}`, priceWei: bigint, collection: `0x${string}`, tokenId: bigint, backingWei: bigint, options?: {
1710
- accessList?: import("viem").AccessList;
1711
- authorizationList?: import("viem").AuthorizationList;
1712
- chain?: import("viem").Chain | null;
1713
- dataSuffix?: `0x${string}`;
1714
- gas?: bigint;
1715
- gasPrice?: bigint;
1716
- maxFeePerGas?: bigint;
1717
- maxPriorityFeePerGas?: bigint;
1718
- nonce?: number;
1719
- value?: bigint;
1720
- }): Promise<bigint>;
1721
- /**
1722
- * Simulate buybackAndBurn
1723
- * Returns gas estimate and result without sending transaction
1724
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1725
- */
1726
- buybackAndBurn(ethAmount: bigint, minTokensOut: bigint, options?: {
1727
- accessList?: import("viem").AccessList;
1728
- authorizationList?: import("viem").AuthorizationList;
1729
- chain?: import("viem").Chain | null;
1730
- dataSuffix?: `0x${string}`;
1731
- gas?: bigint;
1732
- gasPrice?: bigint;
1733
- maxFeePerGas?: bigint;
1734
- maxPriorityFeePerGas?: bigint;
1735
- nonce?: number;
1736
- value?: bigint;
1737
- }): Promise<bigint>;
1738
- /**
1739
- * Simulate claimFees
1740
- * Returns gas estimate and result without sending transaction
1741
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1742
- */
1743
- claimFees(ids: bigint[], options?: {
1744
- accessList?: import("viem").AccessList;
1745
- authorizationList?: import("viem").AuthorizationList;
1746
- chain?: import("viem").Chain | null;
1747
- dataSuffix?: `0x${string}`;
1748
- gas?: bigint;
1749
- gasPrice?: bigint;
1750
- maxFeePerGas?: bigint;
1751
- maxPriorityFeePerGas?: bigint;
1752
- nonce?: number;
1753
- value?: bigint;
1754
- }): Promise<bigint>;
1755
- /**
1756
- * Simulate claimRewards
1757
- * Returns gas estimate and result without sending transaction
1758
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1759
- */
1760
- claimRewards(ids: bigint[], options?: {
1761
- accessList?: import("viem").AccessList;
1762
- authorizationList?: import("viem").AuthorizationList;
1763
- chain?: import("viem").Chain | null;
1764
- dataSuffix?: `0x${string}`;
1765
- gas?: bigint;
1766
- gasPrice?: bigint;
1767
- maxFeePerGas?: bigint;
1768
- maxPriorityFeePerGas?: bigint;
1769
- nonce?: number;
1770
- value?: bigint;
1771
- }): Promise<bigint>;
1772
- /**
1773
- * Simulate claimTopSpot
1774
- * Returns gas estimate and result without sending transaction
1775
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1776
- */
1777
- claimTopSpot(listingId: bigint, options?: {
1778
- accessList?: import("viem").AccessList;
1779
- authorizationList?: import("viem").AuthorizationList;
1780
- chain?: import("viem").Chain | null;
1781
- dataSuffix?: `0x${string}`;
1782
- gas?: bigint;
1783
- gasPrice?: bigint;
1784
- maxFeePerGas?: bigint;
1785
- maxPriorityFeePerGas?: bigint;
1786
- nonce?: number;
1787
- value?: bigint;
1788
- }): Promise<void>;
1789
- /**
1790
- * Simulate depositorReclaimBacking
1791
- * Returns gas estimate and result without sending transaction
1792
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1793
- */
1794
- depositorReclaimBacking(listingId: bigint, options?: {
1795
- accessList?: import("viem").AccessList;
1796
- authorizationList?: import("viem").AuthorizationList;
1797
- chain?: import("viem").Chain | null;
1798
- dataSuffix?: `0x${string}`;
1799
- gas?: bigint;
1800
- gasPrice?: bigint;
1801
- maxFeePerGas?: bigint;
1802
- maxPriorityFeePerGas?: bigint;
1803
- nonce?: number;
1804
- value?: bigint;
1805
- }): Promise<void>;
1806
- /**
1807
- * Simulate depositorReclaimNFT
1808
- * Returns gas estimate and result without sending transaction
1809
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1810
- */
1811
- depositorReclaimNFT(listingId: bigint, options?: {
1812
- accessList?: import("viem").AccessList;
1813
- authorizationList?: import("viem").AuthorizationList;
1814
- chain?: import("viem").Chain | null;
1815
- dataSuffix?: `0x${string}`;
1816
- gas?: bigint;
1817
- gasPrice?: bigint;
1818
- maxFeePerGas?: bigint;
1819
- maxPriorityFeePerGas?: bigint;
1820
- nonce?: number;
1821
- value?: bigint;
1822
- }): Promise<void>;
1823
- /**
1824
- * Simulate emergencyWithdrawERC20
1825
- * Returns gas estimate and result without sending transaction
1826
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1827
- */
1828
- emergencyWithdrawERC20(token_: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
1829
- accessList?: import("viem").AccessList;
1830
- authorizationList?: import("viem").AuthorizationList;
1831
- chain?: import("viem").Chain | null;
1832
- dataSuffix?: `0x${string}`;
1833
- gas?: bigint;
1834
- gasPrice?: bigint;
1835
- maxFeePerGas?: bigint;
1836
- maxPriorityFeePerGas?: bigint;
1837
- nonce?: number;
1838
- value?: bigint;
1839
- }): Promise<void>;
1840
- /**
1841
- * Simulate emergencyWithdrawERC721
1842
- * Returns gas estimate and result without sending transaction
1843
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1844
- */
1845
- emergencyWithdrawERC721(collection: `0x${string}`, to: `0x${string}`, tokenId: bigint, options?: {
1846
- accessList?: import("viem").AccessList;
1847
- authorizationList?: import("viem").AuthorizationList;
1848
- chain?: import("viem").Chain | null;
1849
- dataSuffix?: `0x${string}`;
1850
- gas?: bigint;
1851
- gasPrice?: bigint;
1852
- maxFeePerGas?: bigint;
1853
- maxPriorityFeePerGas?: bigint;
1854
- nonce?: number;
1855
- value?: bigint;
1856
- }): Promise<void>;
1857
- /**
1858
- * Simulate emergencyWithdrawETH
1859
- * Returns gas estimate and result without sending transaction
1860
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1861
- */
1862
- emergencyWithdrawETH(to: `0x${string}`, amount: bigint, options?: {
1863
- accessList?: import("viem").AccessList;
1864
- authorizationList?: import("viem").AuthorizationList;
1865
- chain?: import("viem").Chain | null;
1866
- dataSuffix?: `0x${string}`;
1867
- gas?: bigint;
1868
- gasPrice?: bigint;
1869
- maxFeePerGas?: bigint;
1870
- maxPriorityFeePerGas?: bigint;
1871
- nonce?: number;
1872
- value?: bigint;
1873
- }): Promise<void>;
1874
- /**
1875
- * Simulate finalizeUnsettled
1876
- * Returns gas estimate and result without sending transaction
1877
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1878
- */
1879
- finalizeUnsettled(listingId: bigint, options?: {
1880
- accessList?: import("viem").AccessList;
1881
- authorizationList?: import("viem").AuthorizationList;
1882
- chain?: import("viem").Chain | null;
1883
- dataSuffix?: `0x${string}`;
1884
- gas?: bigint;
1885
- gasPrice?: bigint;
1886
- maxFeePerGas?: bigint;
1887
- maxPriorityFeePerGas?: bigint;
1888
- nonce?: number;
1889
- value?: bigint;
1890
- }): Promise<void>;
1891
- /**
1892
- * Simulate fundOperator
1893
- * Returns gas estimate and result without sending transaction
1894
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1895
- */
1896
- fundOperator(amount: bigint, options?: {
1897
- accessList?: import("viem").AccessList;
1898
- authorizationList?: import("viem").AuthorizationList;
1899
- chain?: import("viem").Chain | null;
1900
- dataSuffix?: `0x${string}`;
1901
- gas?: bigint;
1902
- gasPrice?: bigint;
1903
- maxFeePerGas?: bigint;
1904
- maxPriorityFeePerGas?: bigint;
1905
- nonce?: number;
1906
- value?: bigint;
1907
- }): Promise<void>;
1908
- /**
1909
- * Simulate harvestFeesAndBurn
1910
- * Returns gas estimate and result without sending transaction
1911
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1912
- */
1913
- harvestFeesAndBurn(ids: bigint[], minTokensOut: bigint, options?: {
1914
- accessList?: import("viem").AccessList;
1915
- authorizationList?: import("viem").AuthorizationList;
1916
- chain?: import("viem").Chain | null;
1917
- dataSuffix?: `0x${string}`;
1918
- gas?: bigint;
1919
- gasPrice?: bigint;
1920
- maxFeePerGas?: bigint;
1921
- maxPriorityFeePerGas?: bigint;
1922
- nonce?: number;
1923
- value?: bigint;
1924
- }): Promise<[bigint, bigint]>;
1925
- /**
1926
- * Simulate listOnFwa
1927
- * Returns gas estimate and result without sending transaction
1928
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1929
- */
1930
- listOnFwa(collection: `0x${string}`, tokenId: bigint, backingWei: bigint, options?: {
1931
- accessList?: import("viem").AccessList;
1932
- authorizationList?: import("viem").AuthorizationList;
1933
- chain?: import("viem").Chain | null;
1934
- dataSuffix?: `0x${string}`;
1935
- gas?: bigint;
1936
- gasPrice?: bigint;
1937
- maxFeePerGas?: bigint;
1938
- maxPriorityFeePerGas?: bigint;
1939
- nonce?: number;
1940
- value?: bigint;
1941
- }): Promise<bigint>;
1942
- /**
1943
- * Simulate onERC721Received
1944
- * Returns gas estimate and result without sending transaction
1945
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1946
- */
1947
- onERC721Received(arg0: `0x${string}`, arg1: `0x${string}`, arg2: bigint, arg3: `0x${string}`, options?: {
1948
- accessList?: import("viem").AccessList;
1949
- authorizationList?: import("viem").AuthorizationList;
1950
- chain?: import("viem").Chain | null;
1951
- dataSuffix?: `0x${string}`;
1952
- gas?: bigint;
1953
- gasPrice?: bigint;
1954
- maxFeePerGas?: bigint;
1955
- maxPriorityFeePerGas?: bigint;
1956
- nonce?: number;
1957
- value?: bigint;
1958
- }): Promise<`0x${string}`>;
1959
- /**
1960
- * Simulate pause
1961
- * Returns gas estimate and result without sending transaction
1962
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1963
- */
1964
- pause(options?: {
1965
- accessList?: import("viem").AccessList;
1966
- authorizationList?: import("viem").AuthorizationList;
1967
- chain?: import("viem").Chain | null;
1968
- dataSuffix?: `0x${string}`;
1969
- gas?: bigint;
1970
- gasPrice?: bigint;
1971
- maxFeePerGas?: bigint;
1972
- maxPriorityFeePerGas?: bigint;
1973
- nonce?: number;
1974
- value?: bigint;
1975
- }): Promise<void>;
372
+ chain?: import('viem').Chain | null;
373
+ dataSuffix?: `0x${string}`;
374
+ gas?: bigint;
375
+ gasPrice?: bigint;
376
+ maxFeePerGas?: bigint;
377
+ maxPriorityFeePerGas?: bigint;
378
+ nonce?: number;
379
+ value?: bigint;
380
+ }): Promise<`0x${string}`>;
381
+ /**
382
+ * transferOwnership
383
+ * nonpayable
384
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
385
+ */
386
+ transferOwnership(newOwner: `0x${string}`, options?: {
387
+ accessList?: import('viem').AccessList;
388
+ authorizationList?: import('viem').AuthorizationList;
389
+ chain?: import('viem').Chain | null;
390
+ dataSuffix?: `0x${string}`;
391
+ gas?: bigint;
392
+ gasPrice?: bigint;
393
+ maxFeePerGas?: bigint;
394
+ maxPriorityFeePerGas?: bigint;
395
+ nonce?: number;
396
+ value?: bigint;
397
+ }): Promise<`0x${string}`>;
398
+ /**
399
+ * upgradeTo
400
+ * nonpayable
401
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
402
+ */
403
+ upgradeTo(newImplementation: `0x${string}`, options?: {
404
+ accessList?: import('viem').AccessList;
405
+ authorizationList?: import('viem').AuthorizationList;
406
+ chain?: import('viem').Chain | null;
407
+ dataSuffix?: `0x${string}`;
408
+ gas?: bigint;
409
+ gasPrice?: bigint;
410
+ maxFeePerGas?: bigint;
411
+ maxPriorityFeePerGas?: bigint;
412
+ nonce?: number;
413
+ value?: bigint;
414
+ }): Promise<`0x${string}`>;
415
+ /**
416
+ * upgradeToAndCall
417
+ * payable
418
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
419
+ */
420
+ upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
421
+ accessList?: import('viem').AccessList;
422
+ authorizationList?: import('viem').AuthorizationList;
423
+ chain?: import('viem').Chain | null;
424
+ dataSuffix?: `0x${string}`;
425
+ gas?: bigint;
426
+ gasPrice?: bigint;
427
+ maxFeePerGas?: bigint;
428
+ maxPriorityFeePerGas?: bigint;
429
+ nonce?: number;
430
+ value?: bigint;
431
+ }): Promise<`0x${string}`>;
432
+ /**
433
+ * withdrawAdmin
434
+ * nonpayable
435
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
436
+ */
437
+ withdrawAdmin(token: `0x${string}`, options?: {
438
+ accessList?: import('viem').AccessList;
439
+ authorizationList?: import('viem').AuthorizationList;
440
+ chain?: import('viem').Chain | null;
441
+ dataSuffix?: `0x${string}`;
442
+ gas?: bigint;
443
+ gasPrice?: bigint;
444
+ maxFeePerGas?: bigint;
445
+ maxPriorityFeePerGas?: bigint;
446
+ nonce?: number;
447
+ value?: bigint;
448
+ }): Promise<`0x${string}`>;
449
+ /**
450
+ * withdrawETHAdmin
451
+ * nonpayable
452
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
453
+ */
454
+ withdrawETHAdmin(options?: {
455
+ accessList?: import('viem').AccessList;
456
+ authorizationList?: import('viem').AuthorizationList;
457
+ chain?: import('viem').Chain | null;
458
+ dataSuffix?: `0x${string}`;
459
+ gas?: bigint;
460
+ gasPrice?: bigint;
461
+ maxFeePerGas?: bigint;
462
+ maxPriorityFeePerGas?: bigint;
463
+ nonce?: number;
464
+ value?: bigint;
465
+ }): Promise<`0x${string}`>;
466
+ /**
467
+ * Simulate contract write operations (dry-run without sending transaction)
468
+ *
469
+ * @example
470
+ * const result = await contract.simulate.transfer('0x...', 1000n);
471
+ * console.log('Gas estimate:', result.request.gas);
472
+ * console.log('Would succeed:', result.result);
473
+ */
474
+ get simulate(): {
1976
475
  /**
1977
- * Simulate recoverStuckNFT
476
+ * Simulate initialize
1978
477
  * Returns gas estimate and result without sending transaction
1979
478
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1980
479
  */
1981
- recoverStuckNFT(listingId: bigint, options?: {
480
+ initialize(_rvlt: `0x${string}`, _router: `0x${string}`, _usdc: `0x${string}`, _weth: `0x${string}`, options?: {
1982
481
  accessList?: import("viem").AccessList;
1983
482
  authorizationList?: import("viem").AuthorizationList;
1984
483
  chain?: import("viem").Chain | null;
@@ -2007,74 +506,6 @@ export declare class Treasury_json {
2007
506
  nonce?: number;
2008
507
  value?: bigint;
2009
508
  }): Promise<void>;
2010
- /**
2011
- * Simulate returnFunds
2012
- * Returns gas estimate and result without sending transaction
2013
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2014
- */
2015
- returnFunds(options?: {
2016
- accessList?: import("viem").AccessList;
2017
- authorizationList?: import("viem").AuthorizationList;
2018
- chain?: import("viem").Chain | null;
2019
- dataSuffix?: `0x${string}`;
2020
- gas?: bigint;
2021
- gasPrice?: bigint;
2022
- maxFeePerGas?: bigint;
2023
- maxPriorityFeePerGas?: bigint;
2024
- nonce?: number;
2025
- value?: bigint;
2026
- }): Promise<void>;
2027
- /**
2028
- * Simulate setBuybackSlippageBps
2029
- * Returns gas estimate and result without sending transaction
2030
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2031
- */
2032
- setBuybackSlippageBps(bps: bigint, options?: {
2033
- accessList?: import("viem").AccessList;
2034
- authorizationList?: import("viem").AuthorizationList;
2035
- chain?: import("viem").Chain | null;
2036
- dataSuffix?: `0x${string}`;
2037
- gas?: bigint;
2038
- gasPrice?: bigint;
2039
- maxFeePerGas?: bigint;
2040
- maxPriorityFeePerGas?: bigint;
2041
- nonce?: number;
2042
- value?: bigint;
2043
- }): Promise<void>;
2044
- /**
2045
- * Simulate setLimits
2046
- * Returns gas estimate and result without sending transaction
2047
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2048
- */
2049
- setLimits(_maxBackingWei: bigint, _maxNftPriceWei: bigint, _maxPerTx: bigint, _maxPerDay: bigint, options?: {
2050
- accessList?: import("viem").AccessList;
2051
- authorizationList?: import("viem").AuthorizationList;
2052
- chain?: import("viem").Chain | null;
2053
- dataSuffix?: `0x${string}`;
2054
- gas?: bigint;
2055
- gasPrice?: bigint;
2056
- maxFeePerGas?: bigint;
2057
- maxPriorityFeePerGas?: bigint;
2058
- nonce?: number;
2059
- value?: bigint;
2060
- }): Promise<void>;
2061
- /**
2062
- * Simulate setOperator
2063
- * Returns gas estimate and result without sending transaction
2064
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
2065
- */
2066
- setOperator(_operator: `0x${string}`, options?: {
2067
- accessList?: import("viem").AccessList;
2068
- authorizationList?: import("viem").AuthorizationList;
2069
- chain?: import("viem").Chain | null;
2070
- dataSuffix?: `0x${string}`;
2071
- gas?: bigint;
2072
- gasPrice?: bigint;
2073
- maxFeePerGas?: bigint;
2074
- maxPriorityFeePerGas?: bigint;
2075
- nonce?: number;
2076
- value?: bigint;
2077
- }): Promise<void>;
2078
509
  /**
2079
510
  * Simulate transferOwnership
2080
511
  * Returns gas estimate and result without sending transaction
@@ -2093,11 +524,11 @@ export declare class Treasury_json {
2093
524
  value?: bigint;
2094
525
  }): Promise<void>;
2095
526
  /**
2096
- * Simulate unlockCallback
527
+ * Simulate upgradeTo
2097
528
  * Returns gas estimate and result without sending transaction
2098
529
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2099
530
  */
2100
- unlockCallback(data: `0x${string}`, options?: {
531
+ upgradeTo(newImplementation: `0x${string}`, options?: {
2101
532
  accessList?: import("viem").AccessList;
2102
533
  authorizationList?: import("viem").AuthorizationList;
2103
534
  chain?: import("viem").Chain | null;
@@ -2108,13 +539,13 @@ export declare class Treasury_json {
2108
539
  maxPriorityFeePerGas?: bigint;
2109
540
  nonce?: number;
2110
541
  value?: bigint;
2111
- }): Promise<`0x${string}`>;
542
+ }): Promise<void>;
2112
543
  /**
2113
- * Simulate unpause
544
+ * Simulate upgradeToAndCall
2114
545
  * Returns gas estimate and result without sending transaction
2115
546
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2116
547
  */
2117
- unpause(options?: {
548
+ upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
2118
549
  accessList?: import("viem").AccessList;
2119
550
  authorizationList?: import("viem").AuthorizationList;
2120
551
  chain?: import("viem").Chain | null;
@@ -2127,11 +558,11 @@ export declare class Treasury_json {
2127
558
  value?: bigint;
2128
559
  }): Promise<void>;
2129
560
  /**
2130
- * Simulate updateBacking
561
+ * Simulate withdrawAdmin
2131
562
  * Returns gas estimate and result without sending transaction
2132
563
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2133
564
  */
2134
- updateBacking(listingId: bigint, newBacking: bigint, extraWei: bigint, options?: {
565
+ withdrawAdmin(token: `0x${string}`, options?: {
2135
566
  accessList?: import("viem").AccessList;
2136
567
  authorizationList?: import("viem").AuthorizationList;
2137
568
  chain?: import("viem").Chain | null;
@@ -2144,11 +575,11 @@ export declare class Treasury_json {
2144
575
  value?: bigint;
2145
576
  }): Promise<void>;
2146
577
  /**
2147
- * Simulate withdrawListing
578
+ * Simulate withdrawETHAdmin
2148
579
  * Returns gas estimate and result without sending transaction
2149
580
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2150
581
  */
2151
- withdrawListing(listingId: bigint, options?: {
582
+ withdrawETHAdmin(options?: {
2152
583
  accessList?: import("viem").AccessList;
2153
584
  authorizationList?: import("viem").AuthorizationList;
2154
585
  chain?: import("viem").Chain | null;
@@ -2175,183 +606,25 @@ export declare class Treasury_json {
2175
606
  */
2176
607
  get watch(): {
2177
608
  /**
2178
- * Watch BackingUpdated events
2179
- * @param callback Function to call when event is emitted
2180
- * @param filter Optional filter for indexed parameters
2181
- * @returns Unwatch function to stop listening
2182
- */
2183
- BackingUpdated: (callback: (event: {
2184
- listingId: bigint;
2185
- newBacking: bigint;
2186
- }) => void, filter?: {
2187
- listingId: bigint;
2188
- }) => () => void;
2189
- /**
2190
- * Watch BoughtAndListed events
2191
- * @param callback Function to call when event is emitted
2192
- * @param filter Optional filter for indexed parameters
2193
- * @returns Unwatch function to stop listening
2194
- */
2195
- BoughtAndListed: (callback: (event: {
2196
- listingId: bigint;
2197
- collection: `0x${string}`;
2198
- tokenId: bigint;
2199
- priceWei: bigint;
2200
- }) => void, filter?: {
2201
- listingId: bigint;
2202
- collection: `0x${string}`;
2203
- }) => () => void;
2204
- /**
2205
- * Watch BuybackBurned events
2206
- * @param callback Function to call when event is emitted
2207
- * @param filter Optional filter for indexed parameters
2208
- * @returns Unwatch function to stop listening
2209
- */
2210
- BuybackBurned: (callback: (event: {
2211
- ethIn: bigint;
2212
- tokensBurned: bigint;
2213
- }) => void) => () => void;
2214
- /**
2215
- * Watch BuybackSlippageSet events
2216
- * @param callback Function to call when event is emitted
2217
- * @param filter Optional filter for indexed parameters
2218
- * @returns Unwatch function to stop listening
2219
- */
2220
- BuybackSlippageSet: (callback: (event: {
2221
- bps: bigint;
2222
- }) => void) => () => void;
2223
- /**
2224
- * Watch EmergencyWithdrawERC20 events
2225
- * @param callback Function to call when event is emitted
2226
- * @param filter Optional filter for indexed parameters
2227
- * @returns Unwatch function to stop listening
2228
- */
2229
- EmergencyWithdrawERC20: (callback: (event: {
2230
- token: `0x${string}`;
2231
- to: `0x${string}`;
2232
- amount: bigint;
2233
- }) => void, filter?: {
2234
- token: `0x${string}`;
2235
- to: `0x${string}`;
2236
- }) => () => void;
2237
- /**
2238
- * Watch EmergencyWithdrawERC721 events
2239
- * @param callback Function to call when event is emitted
2240
- * @param filter Optional filter for indexed parameters
2241
- * @returns Unwatch function to stop listening
2242
- */
2243
- EmergencyWithdrawERC721: (callback: (event: {
2244
- collection: `0x${string}`;
2245
- to: `0x${string}`;
2246
- tokenId: bigint;
2247
- }) => void, filter?: {
2248
- collection: `0x${string}`;
2249
- to: `0x${string}`;
2250
- }) => () => void;
2251
- /**
2252
- * Watch EmergencyWithdrawETH events
2253
- * @param callback Function to call when event is emitted
2254
- * @param filter Optional filter for indexed parameters
2255
- * @returns Unwatch function to stop listening
2256
- */
2257
- EmergencyWithdrawETH: (callback: (event: {
2258
- to: `0x${string}`;
2259
- amount: bigint;
2260
- }) => void, filter?: {
2261
- to: `0x${string}`;
2262
- }) => () => void;
2263
- /**
2264
- * Watch FeesClaimed events
2265
- * @param callback Function to call when event is emitted
2266
- * @param filter Optional filter for indexed parameters
2267
- * @returns Unwatch function to stop listening
2268
- */
2269
- FeesClaimed: (callback: (event: {
2270
- total: bigint;
2271
- }) => void) => () => void;
2272
- /**
2273
- * Watch FundsReturned events
2274
- * @param callback Function to call when event is emitted
2275
- * @param filter Optional filter for indexed parameters
2276
- * @returns Unwatch function to stop listening
2277
- */
2278
- FundsReturned: (callback: (event: {
2279
- amount: bigint;
2280
- }) => void) => () => void;
2281
- /**
2282
- * Watch FwaRecovery events
2283
- * @param callback Function to call when event is emitted
2284
- * @param filter Optional filter for indexed parameters
2285
- * @returns Unwatch function to stop listening
2286
- */
2287
- FwaRecovery: (callback: (event: {
2288
- listingId: bigint;
2289
- action: string;
2290
- }) => void, filter?: {
2291
- listingId: bigint;
2292
- }) => () => void;
2293
- /**
2294
- * Watch LimitsSet events
609
+ * Watch AdminChanged events
2295
610
  * @param callback Function to call when event is emitted
2296
611
  * @param filter Optional filter for indexed parameters
2297
612
  * @returns Unwatch function to stop listening
2298
613
  */
2299
- LimitsSet: (callback: (event: {
2300
- maxBackingWei: bigint;
2301
- maxNftPriceWei: bigint;
2302
- maxPerTx: bigint;
2303
- maxPerDay: bigint;
614
+ AdminChanged: (callback: (event: {
615
+ previousAdmin: `0x${string}`;
616
+ newAdmin: `0x${string}`;
2304
617
  }) => void) => () => void;
2305
618
  /**
2306
- * Watch ListedOnFwa events
2307
- * @param callback Function to call when event is emitted
2308
- * @param filter Optional filter for indexed parameters
2309
- * @returns Unwatch function to stop listening
2310
- */
2311
- ListedOnFwa: (callback: (event: {
2312
- listingId: bigint;
2313
- collection: `0x${string}`;
2314
- tokenId: bigint;
2315
- backingWei: bigint;
2316
- }) => void, filter?: {
2317
- listingId: bigint;
2318
- collection: `0x${string}`;
2319
- }) => () => void;
2320
- /**
2321
- * Watch OperatorFunded events
2322
- * @param callback Function to call when event is emitted
2323
- * @param filter Optional filter for indexed parameters
2324
- * @returns Unwatch function to stop listening
2325
- */
2326
- OperatorFunded: (callback: (event: {
2327
- operator: `0x${string}`;
2328
- amount: bigint;
2329
- }) => void, filter?: {
2330
- operator: `0x${string}`;
2331
- }) => () => void;
2332
- /**
2333
- * Watch OperatorSet events
2334
- * @param callback Function to call when event is emitted
2335
- * @param filter Optional filter for indexed parameters
2336
- * @returns Unwatch function to stop listening
2337
- */
2338
- OperatorSet: (callback: (event: {
2339
- operator: `0x${string}`;
2340
- }) => void, filter?: {
2341
- operator: `0x${string}`;
2342
- }) => () => void;
2343
- /**
2344
- * Watch OwnershipTransferStarted events
619
+ * Watch BeaconUpgraded events
2345
620
  * @param callback Function to call when event is emitted
2346
621
  * @param filter Optional filter for indexed parameters
2347
622
  * @returns Unwatch function to stop listening
2348
623
  */
2349
- OwnershipTransferStarted: (callback: (event: {
2350
- previousOwner: `0x${string}`;
2351
- newOwner: `0x${string}`;
624
+ BeaconUpgraded: (callback: (event: {
625
+ beacon: `0x${string}`;
2352
626
  }) => void, filter?: {
2353
- previousOwner: `0x${string}`;
2354
- newOwner: `0x${string}`;
627
+ beacon: `0x${string}`;
2355
628
  }) => () => void;
2356
629
  /**
2357
630
  * Watch OwnershipTransferred events
@@ -2376,22 +649,24 @@ export declare class Treasury_json {
2376
649
  account: `0x${string}`;
2377
650
  }) => void) => () => void;
2378
651
  /**
2379
- * Watch RewardsClaimed events
652
+ * Watch Unpaused events
2380
653
  * @param callback Function to call when event is emitted
2381
654
  * @param filter Optional filter for indexed parameters
2382
655
  * @returns Unwatch function to stop listening
2383
656
  */
2384
- RewardsClaimed: (callback: (event: {
2385
- total: bigint;
657
+ Unpaused: (callback: (event: {
658
+ account: `0x${string}`;
2386
659
  }) => void) => () => void;
2387
660
  /**
2388
- * Watch Unpaused events
661
+ * Watch Upgraded events
2389
662
  * @param callback Function to call when event is emitted
2390
663
  * @param filter Optional filter for indexed parameters
2391
664
  * @returns Unwatch function to stop listening
2392
665
  */
2393
- Unpaused: (callback: (event: {
2394
- account: `0x${string}`;
2395
- }) => void) => () => void;
666
+ Upgraded: (callback: (event: {
667
+ implementation: `0x${string}`;
668
+ }) => void, filter?: {
669
+ implementation: `0x${string}`;
670
+ }) => () => void;
2396
671
  };
2397
672
  }