@gitmyabi-stg/dop 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.
@@ -1,342 +1,17 @@
1
1
  import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
2
2
  import { getContract } from 'viem';
3
3
 
4
-
5
- /**
6
- * IDOP.Table struct type
7
- */
8
- export type IDOP_Table = {
9
- lowerLimit: bigint;
10
- upperLimit: bigint;
11
- rate: bigint;
12
- };
13
4
  /**
14
- * DOP ABI
5
+ * DDrops ABI
15
6
  *
16
7
  * This ABI is typed using viem's type system for full type safety.
17
8
  */
18
- export const DOPAbi = [
9
+ export const DDropsAbi = [
19
10
  {
20
- "inputs": [
21
- {
22
- "internalType": "address",
23
- "name": "initialOwner_",
24
- "type": "address"
25
- },
26
- {
27
- "internalType": "uint256",
28
- "name": "startBlockNumber_",
29
- "type": "uint256"
30
- },
31
- {
32
- "internalType": "address",
33
- "name": "treasury_",
34
- "type": "address"
35
- },
36
- {
37
- "internalType": "address",
38
- "name": "dedicatedCaller_",
39
- "type": "address"
40
- },
41
- {
42
- "components": [
43
- {
44
- "internalType": "uint112",
45
- "name": "lowerLimit",
46
- "type": "uint112"
47
- },
48
- {
49
- "internalType": "uint112",
50
- "name": "upperLimit",
51
- "type": "uint112"
52
- },
53
- {
54
- "internalType": "uint32",
55
- "name": "rate",
56
- "type": "uint32"
57
- }
58
- ],
59
- "internalType": "struct IDOP.Table[]",
60
- "name": "inflationTable_",
61
- "type": "tuple[]"
62
- },
63
- {
64
- "internalType": "address[]",
65
- "name": "initiallyAllowed_",
66
- "type": "address[]"
67
- },
68
- {
69
- "internalType": "uint256",
70
- "name": "initialSupply_",
71
- "type": "uint256"
72
- }
73
- ],
11
+ "inputs": [],
74
12
  "stateMutability": "nonpayable",
75
13
  "type": "constructor"
76
14
  },
77
- {
78
- "inputs": [],
79
- "name": "AlreadyEnabled",
80
- "type": "error"
81
- },
82
- {
83
- "inputs": [],
84
- "name": "ECDSAInvalidSignature",
85
- "type": "error"
86
- },
87
- {
88
- "inputs": [
89
- {
90
- "internalType": "uint256",
91
- "name": "length",
92
- "type": "uint256"
93
- }
94
- ],
95
- "name": "ECDSAInvalidSignatureLength",
96
- "type": "error"
97
- },
98
- {
99
- "inputs": [
100
- {
101
- "internalType": "bytes32",
102
- "name": "s",
103
- "type": "bytes32"
104
- }
105
- ],
106
- "name": "ECDSAInvalidSignatureS",
107
- "type": "error"
108
- },
109
- {
110
- "inputs": [
111
- {
112
- "internalType": "address",
113
- "name": "spender",
114
- "type": "address"
115
- },
116
- {
117
- "internalType": "uint256",
118
- "name": "allowance",
119
- "type": "uint256"
120
- },
121
- {
122
- "internalType": "uint256",
123
- "name": "needed",
124
- "type": "uint256"
125
- }
126
- ],
127
- "name": "ERC20InsufficientAllowance",
128
- "type": "error"
129
- },
130
- {
131
- "inputs": [
132
- {
133
- "internalType": "address",
134
- "name": "sender",
135
- "type": "address"
136
- },
137
- {
138
- "internalType": "uint256",
139
- "name": "balance",
140
- "type": "uint256"
141
- },
142
- {
143
- "internalType": "uint256",
144
- "name": "needed",
145
- "type": "uint256"
146
- }
147
- ],
148
- "name": "ERC20InsufficientBalance",
149
- "type": "error"
150
- },
151
- {
152
- "inputs": [
153
- {
154
- "internalType": "address",
155
- "name": "approver",
156
- "type": "address"
157
- }
158
- ],
159
- "name": "ERC20InvalidApprover",
160
- "type": "error"
161
- },
162
- {
163
- "inputs": [
164
- {
165
- "internalType": "address",
166
- "name": "receiver",
167
- "type": "address"
168
- }
169
- ],
170
- "name": "ERC20InvalidReceiver",
171
- "type": "error"
172
- },
173
- {
174
- "inputs": [
175
- {
176
- "internalType": "address",
177
- "name": "sender",
178
- "type": "address"
179
- }
180
- ],
181
- "name": "ERC20InvalidSender",
182
- "type": "error"
183
- },
184
- {
185
- "inputs": [
186
- {
187
- "internalType": "address",
188
- "name": "spender",
189
- "type": "address"
190
- }
191
- ],
192
- "name": "ERC20InvalidSpender",
193
- "type": "error"
194
- },
195
- {
196
- "inputs": [
197
- {
198
- "internalType": "uint256",
199
- "name": "deadline",
200
- "type": "uint256"
201
- }
202
- ],
203
- "name": "ERC2612ExpiredSignature",
204
- "type": "error"
205
- },
206
- {
207
- "inputs": [
208
- {
209
- "internalType": "address",
210
- "name": "signer",
211
- "type": "address"
212
- },
213
- {
214
- "internalType": "address",
215
- "name": "owner",
216
- "type": "address"
217
- }
218
- ],
219
- "name": "ERC2612InvalidSigner",
220
- "type": "error"
221
- },
222
- {
223
- "inputs": [
224
- {
225
- "internalType": "address",
226
- "name": "account",
227
- "type": "address"
228
- },
229
- {
230
- "internalType": "uint256",
231
- "name": "currentNonce",
232
- "type": "uint256"
233
- }
234
- ],
235
- "name": "InvalidAccountNonce",
236
- "type": "error"
237
- },
238
- {
239
- "inputs": [],
240
- "name": "InvalidShortString",
241
- "type": "error"
242
- },
243
- {
244
- "inputs": [
245
- {
246
- "internalType": "address",
247
- "name": "owner",
248
- "type": "address"
249
- }
250
- ],
251
- "name": "OwnableInvalidOwner",
252
- "type": "error"
253
- },
254
- {
255
- "inputs": [
256
- {
257
- "internalType": "address",
258
- "name": "account",
259
- "type": "address"
260
- }
261
- ],
262
- "name": "OwnableUnauthorizedAccount",
263
- "type": "error"
264
- },
265
- {
266
- "inputs": [],
267
- "name": "RangeMalformed",
268
- "type": "error"
269
- },
270
- {
271
- "inputs": [],
272
- "name": "RangeOverlap",
273
- "type": "error"
274
- },
275
- {
276
- "inputs": [
277
- {
278
- "internalType": "string",
279
- "name": "str",
280
- "type": "string"
281
- }
282
- ],
283
- "name": "StringTooLong",
284
- "type": "error"
285
- },
286
- {
287
- "inputs": [],
288
- "name": "TransferNotAllowed",
289
- "type": "error"
290
- },
291
- {
292
- "anonymous": false,
293
- "inputs": [
294
- {
295
- "components": [
296
- {
297
- "internalType": "uint112",
298
- "name": "lowerLimit",
299
- "type": "uint112"
300
- },
301
- {
302
- "internalType": "uint112",
303
- "name": "upperLimit",
304
- "type": "uint112"
305
- },
306
- {
307
- "internalType": "uint32",
308
- "name": "rate",
309
- "type": "uint32"
310
- }
311
- ],
312
- "indexed": false,
313
- "internalType": "struct IDOP.Table",
314
- "name": "newTable",
315
- "type": "tuple"
316
- }
317
- ],
318
- "name": "AddInflationTable",
319
- "type": "event"
320
- },
321
- {
322
- "anonymous": false,
323
- "inputs": [
324
- {
325
- "indexed": true,
326
- "internalType": "address",
327
- "name": "account",
328
- "type": "address"
329
- },
330
- {
331
- "indexed": false,
332
- "internalType": "bool",
333
- "name": "state",
334
- "type": "bool"
335
- }
336
- ],
337
- "name": "AllowListUpdated",
338
- "type": "event"
339
- },
340
15
  {
341
16
  "anonymous": false,
342
17
  "inputs": [
@@ -362,55 +37,6 @@ export const DOPAbi = [
362
37
  "name": "Approval",
363
38
  "type": "event"
364
39
  },
365
- {
366
- "anonymous": false,
367
- "inputs": [],
368
- "name": "EIP712DomainChanged",
369
- "type": "event"
370
- },
371
- {
372
- "anonymous": false,
373
- "inputs": [
374
- {
375
- "indexed": false,
376
- "internalType": "uint256",
377
- "name": "twapPrice",
378
- "type": "uint256"
379
- },
380
- {
381
- "indexed": false,
382
- "internalType": "uint256",
383
- "name": "cycle",
384
- "type": "uint256"
385
- },
386
- {
387
- "indexed": false,
388
- "internalType": "uint256",
389
- "name": "cycleStartBlockNumber",
390
- "type": "uint256"
391
- },
392
- {
393
- "indexed": false,
394
- "internalType": "uint256",
395
- "name": "cycleEndBlockNumber",
396
- "type": "uint256"
397
- },
398
- {
399
- "indexed": false,
400
- "internalType": "uint256",
401
- "name": "fullyDilutedMarketCap",
402
- "type": "uint256"
403
- },
404
- {
405
- "indexed": false,
406
- "internalType": "uint256",
407
- "name": "amount",
408
- "type": "uint256"
409
- }
410
- ],
411
- "name": "Fund",
412
- "type": "event"
413
- },
414
40
  {
415
41
  "anonymous": false,
416
42
  "inputs": [
@@ -430,19 +56,6 @@ export const DOPAbi = [
430
56
  "name": "OwnershipTransferred",
431
57
  "type": "event"
432
58
  },
433
- {
434
- "anonymous": false,
435
- "inputs": [
436
- {
437
- "indexed": false,
438
- "internalType": "uint256",
439
- "name": "index",
440
- "type": "uint256"
441
- }
442
- ],
443
- "name": "RemoveInflationTable",
444
- "type": "event"
445
- },
446
59
  {
447
60
  "anonymous": false,
448
61
  "inputs": [
@@ -469,135 +82,67 @@ export const DOPAbi = [
469
82
  "type": "event"
470
83
  },
471
84
  {
472
- "anonymous": false,
473
- "inputs": [],
474
- "name": "TransfersEnabled",
475
- "type": "event"
476
- },
477
- {
478
- "anonymous": false,
479
85
  "inputs": [
480
86
  {
481
- "indexed": true,
482
87
  "internalType": "address",
483
- "name": "newAccumulator",
88
+ "name": "owner",
484
89
  "type": "address"
485
90
  },
486
91
  {
487
- "indexed": true,
488
92
  "internalType": "address",
489
- "name": "oldAccumulator",
93
+ "name": "spender",
490
94
  "type": "address"
491
95
  }
492
96
  ],
493
- "name": "UpdateAccumulator",
494
- "type": "event"
97
+ "name": "allowance",
98
+ "outputs": [
99
+ {
100
+ "internalType": "uint256",
101
+ "name": "",
102
+ "type": "uint256"
103
+ }
104
+ ],
105
+ "stateMutability": "view",
106
+ "type": "function"
495
107
  },
496
108
  {
497
- "anonymous": false,
498
109
  "inputs": [
499
110
  {
500
- "indexed": true,
501
111
  "internalType": "address",
502
- "name": "newDedicatedCaller",
112
+ "name": "spender",
503
113
  "type": "address"
504
114
  },
505
115
  {
506
- "indexed": true,
507
- "internalType": "address",
508
- "name": "oldDedicatedCaller",
509
- "type": "address"
510
- }
511
- ],
512
- "name": "UpdateDedicatedCaller",
513
- "type": "event"
514
- },
515
- {
516
- "anonymous": false,
517
- "inputs": [
518
- {
519
- "indexed": false,
520
116
  "internalType": "uint256",
521
- "name": "index",
117
+ "name": "amount",
522
118
  "type": "uint256"
523
- },
524
- {
525
- "components": [
526
- {
527
- "internalType": "uint112",
528
- "name": "lowerLimit",
529
- "type": "uint112"
530
- },
531
- {
532
- "internalType": "uint112",
533
- "name": "upperLimit",
534
- "type": "uint112"
535
- },
536
- {
537
- "internalType": "uint32",
538
- "name": "rate",
539
- "type": "uint32"
540
- }
541
- ],
542
- "indexed": false,
543
- "internalType": "struct IDOP.Table",
544
- "name": "newTable",
545
- "type": "tuple"
546
- },
119
+ }
120
+ ],
121
+ "name": "approve",
122
+ "outputs": [
547
123
  {
548
- "components": [
549
- {
550
- "internalType": "uint112",
551
- "name": "lowerLimit",
552
- "type": "uint112"
553
- },
554
- {
555
- "internalType": "uint112",
556
- "name": "upperLimit",
557
- "type": "uint112"
558
- },
559
- {
560
- "internalType": "uint32",
561
- "name": "rate",
562
- "type": "uint32"
563
- }
564
- ],
565
- "indexed": false,
566
- "internalType": "struct IDOP.Table",
567
- "name": "oldTable",
568
- "type": "tuple"
124
+ "internalType": "bool",
125
+ "name": "",
126
+ "type": "bool"
569
127
  }
570
128
  ],
571
- "name": "UpdateInflationTable",
572
- "type": "event"
129
+ "stateMutability": "nonpayable",
130
+ "type": "function"
573
131
  },
574
132
  {
575
- "anonymous": false,
576
133
  "inputs": [
577
134
  {
578
- "indexed": true,
579
- "internalType": "address",
580
- "name": "newTreasury",
581
- "type": "address"
582
- },
583
- {
584
- "indexed": true,
585
135
  "internalType": "address",
586
- "name": "oldTreasury",
136
+ "name": "account",
587
137
  "type": "address"
588
138
  }
589
139
  ],
590
- "name": "UpdateTreasury",
591
- "type": "event"
592
- },
593
- {
594
- "inputs": [],
595
- "name": "DOMAIN_SEPARATOR",
140
+ "name": "balanceOf",
596
141
  "outputs": [
597
142
  {
598
- "internalType": "bytes32",
143
+ "internalType": "uint256",
599
144
  "name": "",
600
- "type": "bytes32"
145
+ "type": "uint256"
601
146
  }
602
147
  ],
603
148
  "stateMutability": "view",
@@ -605,12 +150,12 @@ export const DOPAbi = [
605
150
  },
606
151
  {
607
152
  "inputs": [],
608
- "name": "accumulator",
153
+ "name": "buyContributionFee",
609
154
  "outputs": [
610
155
  {
611
- "internalType": "contract IAccumulator",
156
+ "internalType": "uint256",
612
157
  "name": "",
613
- "type": "address"
158
+ "type": "uint256"
614
159
  }
615
160
  ],
616
161
  "stateMutability": "view",
@@ -620,21 +165,29 @@ export const DOPAbi = [
620
165
  "inputs": [
621
166
  {
622
167
  "internalType": "address",
623
- "name": "owner",
168
+ "name": "otherToken",
624
169
  "type": "address"
625
- },
170
+ }
171
+ ],
172
+ "name": "createUniswapV2Pair",
173
+ "outputs": [
626
174
  {
627
175
  "internalType": "address",
628
- "name": "spender",
176
+ "name": "",
629
177
  "type": "address"
630
178
  }
631
179
  ],
632
- "name": "allowance",
180
+ "stateMutability": "nonpayable",
181
+ "type": "function"
182
+ },
183
+ {
184
+ "inputs": [],
185
+ "name": "decimals",
633
186
  "outputs": [
634
187
  {
635
- "internalType": "uint256",
188
+ "internalType": "uint8",
636
189
  "name": "",
637
- "type": "uint256"
190
+ "type": "uint8"
638
191
  }
639
192
  ],
640
193
  "stateMutability": "view",
@@ -649,11 +202,11 @@ export const DOPAbi = [
649
202
  },
650
203
  {
651
204
  "internalType": "uint256",
652
- "name": "value",
205
+ "name": "subtractedValue",
653
206
  "type": "uint256"
654
207
  }
655
208
  ],
656
- "name": "approve",
209
+ "name": "decreaseAllowance",
657
210
  "outputs": [
658
211
  {
659
212
  "internalType": "bool",
@@ -665,33 +218,40 @@ export const DOPAbi = [
665
218
  "type": "function"
666
219
  },
667
220
  {
668
- "inputs": [
221
+ "inputs": [],
222
+ "name": "developementWalletAddress",
223
+ "outputs": [
669
224
  {
670
225
  "internalType": "address",
671
- "name": "account",
226
+ "name": "",
672
227
  "type": "address"
673
228
  }
674
229
  ],
675
- "name": "balanceOf",
676
- "outputs": [
230
+ "stateMutability": "view",
231
+ "type": "function"
232
+ },
233
+ {
234
+ "inputs": [
677
235
  {
678
- "internalType": "uint256",
679
- "name": "",
680
- "type": "uint256"
236
+ "internalType": "address",
237
+ "name": "_account",
238
+ "type": "address"
681
239
  }
682
240
  ],
683
- "stateMutability": "view",
241
+ "name": "excludeFromFee",
242
+ "outputs": [],
243
+ "stateMutability": "nonpayable",
684
244
  "type": "function"
685
245
  },
686
246
  {
687
247
  "inputs": [
688
248
  {
689
- "internalType": "uint256",
690
- "name": "value",
691
- "type": "uint256"
249
+ "internalType": "address",
250
+ "name": "_account",
251
+ "type": "address"
692
252
  }
693
253
  ],
694
- "name": "burn",
254
+ "name": "includeInFee",
695
255
  "outputs": [],
696
256
  "stateMutability": "nonpayable",
697
257
  "type": "function"
@@ -700,84 +260,59 @@ export const DOPAbi = [
700
260
  "inputs": [
701
261
  {
702
262
  "internalType": "address",
703
- "name": "account",
263
+ "name": "spender",
704
264
  "type": "address"
705
265
  },
706
266
  {
707
267
  "internalType": "uint256",
708
- "name": "value",
268
+ "name": "addedValue",
709
269
  "type": "uint256"
710
270
  }
711
271
  ],
712
- "name": "burnFrom",
713
- "outputs": [],
714
- "stateMutability": "nonpayable",
715
- "type": "function"
716
- },
717
- {
718
- "inputs": [],
719
- "name": "decimals",
272
+ "name": "increaseAllowance",
720
273
  "outputs": [
721
274
  {
722
- "internalType": "uint8",
275
+ "internalType": "bool",
723
276
  "name": "",
724
- "type": "uint8"
277
+ "type": "bool"
725
278
  }
726
279
  ],
727
- "stateMutability": "view",
280
+ "stateMutability": "nonpayable",
728
281
  "type": "function"
729
282
  },
730
283
  {
731
- "inputs": [],
732
- "name": "dedicatedCaller",
733
- "outputs": [
284
+ "inputs": [
734
285
  {
735
286
  "internalType": "address",
736
287
  "name": "",
737
288
  "type": "address"
738
289
  }
739
290
  ],
291
+ "name": "isBlacklisted",
292
+ "outputs": [
293
+ {
294
+ "internalType": "bool",
295
+ "name": "",
296
+ "type": "bool"
297
+ }
298
+ ],
740
299
  "stateMutability": "view",
741
300
  "type": "function"
742
301
  },
743
302
  {
744
- "inputs": [],
745
- "name": "eip712Domain",
746
- "outputs": [
747
- {
748
- "internalType": "bytes1",
749
- "name": "fields",
750
- "type": "bytes1"
751
- },
752
- {
753
- "internalType": "string",
754
- "name": "name",
755
- "type": "string"
756
- },
757
- {
758
- "internalType": "string",
759
- "name": "version",
760
- "type": "string"
761
- },
762
- {
763
- "internalType": "uint256",
764
- "name": "chainId",
765
- "type": "uint256"
766
- },
303
+ "inputs": [
767
304
  {
768
305
  "internalType": "address",
769
- "name": "verifyingContract",
306
+ "name": "",
770
307
  "type": "address"
771
- },
772
- {
773
- "internalType": "bytes32",
774
- "name": "salt",
775
- "type": "bytes32"
776
- },
308
+ }
309
+ ],
310
+ "name": "isExcludedFromFee",
311
+ "outputs": [
777
312
  {
778
- "internalType": "uint256[]",
779
- "name": "extensions",
780
- "type": "uint256[]"
313
+ "internalType": "bool",
314
+ "name": "",
315
+ "type": "bool"
781
316
  }
782
317
  ],
783
318
  "stateMutability": "view",
@@ -785,42 +320,12 @@ export const DOPAbi = [
785
320
  },
786
321
  {
787
322
  "inputs": [],
788
- "name": "enableTransfer",
789
- "outputs": [],
790
- "stateMutability": "nonpayable",
791
- "type": "function"
792
- },
793
- {
794
- "inputs": [],
795
- "name": "fund",
796
- "outputs": [],
797
- "stateMutability": "nonpayable",
798
- "type": "function"
799
- },
800
- {
801
- "inputs": [
802
- {
803
- "internalType": "uint256",
804
- "name": "",
805
- "type": "uint256"
806
- }
807
- ],
808
- "name": "inflationTable",
323
+ "name": "isSwapEnabled",
809
324
  "outputs": [
810
325
  {
811
- "internalType": "uint112",
812
- "name": "lowerLimit",
813
- "type": "uint112"
814
- },
815
- {
816
- "internalType": "uint112",
817
- "name": "upperLimit",
818
- "type": "uint112"
819
- },
820
- {
821
- "internalType": "uint32",
822
- "name": "rate",
823
- "type": "uint32"
326
+ "internalType": "bool",
327
+ "name": "",
328
+ "type": "bool"
824
329
  }
825
330
  ],
826
331
  "stateMutability": "view",
@@ -834,7 +339,7 @@ export const DOPAbi = [
834
339
  "type": "address"
835
340
  }
836
341
  ],
837
- "name": "initiallyAllowed",
342
+ "name": "isUniswapV2Pair",
838
343
  "outputs": [
839
344
  {
840
345
  "internalType": "bool",
@@ -846,16 +351,21 @@ export const DOPAbi = [
846
351
  "type": "function"
847
352
  },
848
353
  {
849
- "inputs": [],
850
- "name": "isTransferEnabled",
851
- "outputs": [
354
+ "inputs": [
355
+ {
356
+ "internalType": "address[]",
357
+ "name": "_addresses",
358
+ "type": "address[]"
359
+ },
852
360
  {
853
361
  "internalType": "bool",
854
- "name": "",
362
+ "name": "_value",
855
363
  "type": "bool"
856
364
  }
857
365
  ],
858
- "stateMutability": "view",
366
+ "name": "manage_blacklist",
367
+ "outputs": [],
368
+ "stateMutability": "nonpayable",
859
369
  "type": "function"
860
370
  },
861
371
  {
@@ -873,12 +383,12 @@ export const DOPAbi = [
873
383
  },
874
384
  {
875
385
  "inputs": [],
876
- "name": "nextCycle",
386
+ "name": "owner",
877
387
  "outputs": [
878
388
  {
879
- "internalType": "uint256",
389
+ "internalType": "address",
880
390
  "name": "",
881
- "type": "uint256"
391
+ "type": "address"
882
392
  }
883
393
  ],
884
394
  "stateMutability": "view",
@@ -886,7 +396,14 @@ export const DOPAbi = [
886
396
  },
887
397
  {
888
398
  "inputs": [],
889
- "name": "nextCycleStartBlockNumber",
399
+ "name": "renounceOwnership",
400
+ "outputs": [],
401
+ "stateMutability": "nonpayable",
402
+ "type": "function"
403
+ },
404
+ {
405
+ "inputs": [],
406
+ "name": "sellContributionFee",
890
407
  "outputs": [
891
408
  {
892
409
  "internalType": "uint256",
@@ -899,82 +416,65 @@ export const DOPAbi = [
899
416
  },
900
417
  {
901
418
  "inputs": [
902
- {
903
- "internalType": "address",
904
- "name": "owner",
905
- "type": "address"
906
- }
907
- ],
908
- "name": "nonces",
909
- "outputs": [
910
419
  {
911
420
  "internalType": "uint256",
912
- "name": "",
421
+ "name": "_newBuyContributionFee",
913
422
  "type": "uint256"
914
423
  }
915
424
  ],
916
- "stateMutability": "view",
425
+ "name": "setBuyContributionFee",
426
+ "outputs": [],
427
+ "stateMutability": "nonpayable",
917
428
  "type": "function"
918
429
  },
919
430
  {
920
- "inputs": [],
921
- "name": "owner",
922
- "outputs": [
431
+ "inputs": [
923
432
  {
924
433
  "internalType": "address",
925
- "name": "",
434
+ "name": "_newDevelopementWallet",
926
435
  "type": "address"
927
436
  }
928
437
  ],
929
- "stateMutability": "view",
438
+ "name": "setDevelopementWallet",
439
+ "outputs": [],
440
+ "stateMutability": "nonpayable",
930
441
  "type": "function"
931
442
  },
932
443
  {
933
444
  "inputs": [
934
445
  {
935
- "internalType": "address",
936
- "name": "owner",
937
- "type": "address"
938
- },
939
- {
940
- "internalType": "address",
941
- "name": "spender",
942
- "type": "address"
943
- },
944
- {
945
- "internalType": "uint256",
446
+ "internalType": "bool",
946
447
  "name": "value",
947
- "type": "uint256"
948
- },
448
+ "type": "bool"
449
+ }
450
+ ],
451
+ "name": "setIsSwapEnabled",
452
+ "outputs": [],
453
+ "stateMutability": "nonpayable",
454
+ "type": "function"
455
+ },
456
+ {
457
+ "inputs": [
949
458
  {
950
459
  "internalType": "uint256",
951
- "name": "deadline",
460
+ "name": "_newSellContributionFee",
952
461
  "type": "uint256"
953
- },
954
- {
955
- "internalType": "uint8",
956
- "name": "v",
957
- "type": "uint8"
958
- },
959
- {
960
- "internalType": "bytes32",
961
- "name": "r",
962
- "type": "bytes32"
963
- },
964
- {
965
- "internalType": "bytes32",
966
- "name": "s",
967
- "type": "bytes32"
968
462
  }
969
463
  ],
970
- "name": "permit",
464
+ "name": "setSellContributionFee",
971
465
  "outputs": [],
972
466
  "stateMutability": "nonpayable",
973
467
  "type": "function"
974
468
  },
975
469
  {
976
- "inputs": [],
977
- "name": "renounceOwnership",
470
+ "inputs": [
471
+ {
472
+ "internalType": "address",
473
+ "name": "taxHelperAddress",
474
+ "type": "address"
475
+ }
476
+ ],
477
+ "name": "setTaxHelper",
978
478
  "outputs": [],
979
479
  "stateMutability": "nonpayable",
980
480
  "type": "function"
@@ -982,39 +482,12 @@ export const DOPAbi = [
982
482
  {
983
483
  "inputs": [
984
484
  {
985
- "internalType": "enum SetState",
986
- "name": "setState",
987
- "type": "uint8"
988
- },
989
- {
990
- "internalType": "uint256",
991
- "name": "index",
992
- "type": "uint256"
993
- },
994
- {
995
- "components": [
996
- {
997
- "internalType": "uint112",
998
- "name": "lowerLimit",
999
- "type": "uint112"
1000
- },
1001
- {
1002
- "internalType": "uint112",
1003
- "name": "upperLimit",
1004
- "type": "uint112"
1005
- },
1006
- {
1007
- "internalType": "uint32",
1008
- "name": "rate",
1009
- "type": "uint32"
1010
- }
1011
- ],
1012
- "internalType": "struct IDOP.Table",
1013
- "name": "newTable",
1014
- "type": "tuple"
485
+ "internalType": "address",
486
+ "name": "_newTreasureWallet",
487
+ "type": "address"
1015
488
  }
1016
489
  ],
1017
- "name": "setInflationTable",
490
+ "name": "setTreasureWallet",
1018
491
  "outputs": [],
1019
492
  "stateMutability": "nonpayable",
1020
493
  "type": "function"
@@ -1032,6 +505,19 @@ export const DOPAbi = [
1032
505
  "stateMutability": "view",
1033
506
  "type": "function"
1034
507
  },
508
+ {
509
+ "inputs": [],
510
+ "name": "taxHelper",
511
+ "outputs": [
512
+ {
513
+ "internalType": "contract ITaxHelper",
514
+ "name": "",
515
+ "type": "address"
516
+ }
517
+ ],
518
+ "stateMutability": "view",
519
+ "type": "function"
520
+ },
1035
521
  {
1036
522
  "inputs": [],
1037
523
  "name": "totalSupply",
@@ -1054,7 +540,7 @@ export const DOPAbi = [
1054
540
  },
1055
541
  {
1056
542
  "internalType": "uint256",
1057
- "name": "value",
543
+ "name": "amount",
1058
544
  "type": "uint256"
1059
545
  }
1060
546
  ],
@@ -1083,7 +569,7 @@ export const DOPAbi = [
1083
569
  },
1084
570
  {
1085
571
  "internalType": "uint256",
1086
- "name": "value",
572
+ "name": "amount",
1087
573
  "type": "uint256"
1088
574
  }
1089
575
  ],
@@ -1113,7 +599,7 @@ export const DOPAbi = [
1113
599
  },
1114
600
  {
1115
601
  "inputs": [],
1116
- "name": "treasury",
602
+ "name": "treasureWalletAddress",
1117
603
  "outputs": [
1118
604
  {
1119
605
  "internalType": "address",
@@ -1127,76 +613,51 @@ export const DOPAbi = [
1127
613
  {
1128
614
  "inputs": [
1129
615
  {
1130
- "internalType": "address",
1131
- "name": "account",
1132
- "type": "address"
1133
- },
1134
- {
1135
- "internalType": "bool",
1136
- "name": "state",
1137
- "type": "bool"
1138
- }
1139
- ],
1140
- "name": "updateAccountState",
1141
- "outputs": [],
1142
- "stateMutability": "nonpayable",
1143
- "type": "function"
1144
- },
1145
- {
1146
- "inputs": [
1147
- {
1148
- "internalType": "contract IAccumulator",
1149
- "name": "newAccumulator",
1150
- "type": "address"
616
+ "internalType": "uint256",
617
+ "name": "",
618
+ "type": "uint256"
1151
619
  }
1152
620
  ],
1153
- "name": "updateAccumulator",
1154
- "outputs": [],
1155
- "stateMutability": "nonpayable",
1156
- "type": "function"
1157
- },
1158
- {
1159
- "inputs": [
621
+ "name": "uniswapV2Pairs",
622
+ "outputs": [
1160
623
  {
1161
624
  "internalType": "address",
1162
- "name": "newDedicatedCaller",
625
+ "name": "",
1163
626
  "type": "address"
1164
627
  }
1165
628
  ],
1166
- "name": "updateDedicatedCaller",
1167
- "outputs": [],
1168
- "stateMutability": "nonpayable",
629
+ "stateMutability": "view",
1169
630
  "type": "function"
1170
631
  },
1171
632
  {
1172
- "inputs": [
633
+ "inputs": [],
634
+ "name": "uniswapV2RouterAddress",
635
+ "outputs": [
1173
636
  {
1174
637
  "internalType": "address",
1175
- "name": "newTreasury",
638
+ "name": "",
1176
639
  "type": "address"
1177
640
  }
1178
641
  ],
1179
- "name": "updateTreasury",
1180
- "outputs": [],
1181
- "stateMutability": "nonpayable",
642
+ "stateMutability": "view",
1182
643
  "type": "function"
1183
644
  }
1184
645
  ] as const satisfies Abi;
1185
646
 
1186
647
  /**
1187
- * Type-safe ABI for DOP
648
+ * Type-safe ABI for DDrops
1188
649
  */
1189
- export type DOPAbi = typeof DOPAbi;
650
+ export type DDropsAbi = typeof DDropsAbi;
1190
651
 
1191
652
  /**
1192
- * Contract instance type for DOP
653
+ * Contract instance type for DDrops
1193
654
  */
1194
655
  // Use any for contract type to avoid complex viem type issues
1195
656
  // The runtime behavior is type-safe through viem's ABI typing
1196
- export type DOPContract = any;
657
+ export type DDropsContract = any;
1197
658
 
1198
659
  /**
1199
- * DOP Contract Class
660
+ * DDrops Contract Class
1200
661
  *
1201
662
  * Provides a class-based API similar to TypeChain for interacting with the contract.
1202
663
  *
@@ -1204,12 +665,12 @@ export type DOPContract = any;
1204
665
  * ```typescript
1205
666
  * import { createPublicClient, createWalletClient, http } from 'viem';
1206
667
  * import { mainnet } from 'viem/chains';
1207
- * import { DOP } from 'DOP';
668
+ * import { DDrops } from 'DDrops';
1208
669
  *
1209
670
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1210
671
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1211
672
  *
1212
- * const contract = new DOP('0x...', { publicClient, walletClient });
673
+ * const contract = new DDrops('0x...', { publicClient, walletClient });
1213
674
  *
1214
675
  * // Read functions
1215
676
  * const result = await contract.balanceOf('0x...');
@@ -1227,8 +688,8 @@ export type DOPContract = any;
1227
688
  * });
1228
689
  * ```
1229
690
  */
1230
- export class DOP {
1231
- private contract: DOPContract;
691
+ export class DDrops {
692
+ private contract: DDropsContract;
1232
693
  private contractAddress: Address;
1233
694
  private publicClient: PublicClient;
1234
695
 
@@ -1243,7 +704,7 @@ export class DOP {
1243
704
  this.publicClient = clients.publicClient;
1244
705
  this.contract = getContract({
1245
706
  address,
1246
- abi: DOPAbi,
707
+ abi: DDropsAbi,
1247
708
  client: {
1248
709
  public: clients.publicClient,
1249
710
  wallet: clients.walletClient,
@@ -1261,26 +722,10 @@ export class DOP {
1261
722
  /**
1262
723
  * Get the underlying viem contract instance.
1263
724
  */
1264
- getContract(): DOPContract {
725
+ getContract(): DDropsContract {
1265
726
  return this.contract;
1266
727
  }
1267
728
 
1268
- /**
1269
- * DOMAIN_SEPARATOR
1270
- * view
1271
- */
1272
- async DOMAIN_SEPARATOR(): Promise<`0x${string}`> {
1273
- return this.contract.read.DOMAIN_SEPARATOR() as Promise<`0x${string}`>;
1274
- }
1275
-
1276
- /**
1277
- * accumulator
1278
- * view
1279
- */
1280
- async accumulator(): Promise<`0x${string}`> {
1281
- return this.contract.read.accumulator() as Promise<`0x${string}`>;
1282
- }
1283
-
1284
729
  /**
1285
730
  * allowance
1286
731
  * view
@@ -1297,6 +742,14 @@ export class DOP {
1297
742
  return this.contract.read.balanceOf([account] as const) as Promise<bigint>;
1298
743
  }
1299
744
 
745
+ /**
746
+ * buyContributionFee
747
+ * view
748
+ */
749
+ async buyContributionFee(): Promise<bigint> {
750
+ return this.contract.read.buyContributionFee() as Promise<bigint>;
751
+ }
752
+
1300
753
  /**
1301
754
  * decimals
1302
755
  * view
@@ -1306,43 +759,43 @@ export class DOP {
1306
759
  }
1307
760
 
1308
761
  /**
1309
- * dedicatedCaller
762
+ * developementWalletAddress
1310
763
  * view
1311
764
  */
1312
- async dedicatedCaller(): Promise<`0x${string}`> {
1313
- return this.contract.read.dedicatedCaller() as Promise<`0x${string}`>;
765
+ async developementWalletAddress(): Promise<`0x${string}`> {
766
+ return this.contract.read.developementWalletAddress() as Promise<`0x${string}`>;
1314
767
  }
1315
768
 
1316
769
  /**
1317
- * eip712Domain
770
+ * isBlacklisted
1318
771
  * view
1319
772
  */
1320
- async eip712Domain(): Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]> {
1321
- return this.contract.read.eip712Domain() as Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]>;
773
+ async isBlacklisted(arg0: `0x${string}`): Promise<boolean> {
774
+ return this.contract.read.isBlacklisted([arg0] as const) as Promise<boolean>;
1322
775
  }
1323
776
 
1324
777
  /**
1325
- * inflationTable
778
+ * isExcludedFromFee
1326
779
  * view
1327
780
  */
1328
- async inflationTable(arg0: bigint): Promise<[bigint, bigint, bigint]> {
1329
- return this.contract.read.inflationTable([arg0] as const) as Promise<[bigint, bigint, bigint]>;
781
+ async isExcludedFromFee(arg0: `0x${string}`): Promise<boolean> {
782
+ return this.contract.read.isExcludedFromFee([arg0] as const) as Promise<boolean>;
1330
783
  }
1331
784
 
1332
785
  /**
1333
- * initiallyAllowed
786
+ * isSwapEnabled
1334
787
  * view
1335
788
  */
1336
- async initiallyAllowed(arg0: `0x${string}`): Promise<boolean> {
1337
- return this.contract.read.initiallyAllowed([arg0] as const) as Promise<boolean>;
789
+ async isSwapEnabled(): Promise<boolean> {
790
+ return this.contract.read.isSwapEnabled() as Promise<boolean>;
1338
791
  }
1339
792
 
1340
793
  /**
1341
- * isTransferEnabled
794
+ * isUniswapV2Pair
1342
795
  * view
1343
796
  */
1344
- async isTransferEnabled(): Promise<boolean> {
1345
- return this.contract.read.isTransferEnabled() as Promise<boolean>;
797
+ async isUniswapV2Pair(arg0: `0x${string}`): Promise<boolean> {
798
+ return this.contract.read.isUniswapV2Pair([arg0] as const) as Promise<boolean>;
1346
799
  }
1347
800
 
1348
801
  /**
@@ -1354,67 +807,98 @@ export class DOP {
1354
807
  }
1355
808
 
1356
809
  /**
1357
- * nextCycle
810
+ * owner
811
+ * view
812
+ */
813
+ async owner(): Promise<`0x${string}`> {
814
+ return this.contract.read.owner() as Promise<`0x${string}`>;
815
+ }
816
+
817
+ /**
818
+ * sellContributionFee
1358
819
  * view
1359
820
  */
1360
- async nextCycle(): Promise<bigint> {
1361
- return this.contract.read.nextCycle() as Promise<bigint>;
821
+ async sellContributionFee(): Promise<bigint> {
822
+ return this.contract.read.sellContributionFee() as Promise<bigint>;
823
+ }
824
+
825
+ /**
826
+ * symbol
827
+ * view
828
+ */
829
+ async symbol(): Promise<string> {
830
+ return this.contract.read.symbol() as Promise<string>;
1362
831
  }
1363
832
 
1364
833
  /**
1365
- * nextCycleStartBlockNumber
834
+ * taxHelper
1366
835
  * view
1367
836
  */
1368
- async nextCycleStartBlockNumber(): Promise<bigint> {
1369
- return this.contract.read.nextCycleStartBlockNumber() as Promise<bigint>;
837
+ async taxHelper(): Promise<`0x${string}`> {
838
+ return this.contract.read.taxHelper() as Promise<`0x${string}`>;
1370
839
  }
1371
840
 
1372
841
  /**
1373
- * nonces
842
+ * totalSupply
1374
843
  * view
1375
844
  */
1376
- async nonces(owner: `0x${string}`): Promise<bigint> {
1377
- return this.contract.read.nonces([owner] as const) as Promise<bigint>;
845
+ async totalSupply(): Promise<bigint> {
846
+ return this.contract.read.totalSupply() as Promise<bigint>;
1378
847
  }
1379
848
 
1380
849
  /**
1381
- * owner
850
+ * treasureWalletAddress
1382
851
  * view
1383
852
  */
1384
- async owner(): Promise<`0x${string}`> {
1385
- return this.contract.read.owner() as Promise<`0x${string}`>;
853
+ async treasureWalletAddress(): Promise<`0x${string}`> {
854
+ return this.contract.read.treasureWalletAddress() as Promise<`0x${string}`>;
1386
855
  }
1387
856
 
1388
857
  /**
1389
- * symbol
858
+ * uniswapV2Pairs
1390
859
  * view
1391
860
  */
1392
- async symbol(): Promise<string> {
1393
- return this.contract.read.symbol() as Promise<string>;
861
+ async uniswapV2Pairs(arg0: bigint): Promise<`0x${string}`> {
862
+ return this.contract.read.uniswapV2Pairs([arg0] as const) as Promise<`0x${string}`>;
1394
863
  }
1395
864
 
1396
865
  /**
1397
- * totalSupply
866
+ * uniswapV2RouterAddress
1398
867
  * view
1399
868
  */
1400
- async totalSupply(): Promise<bigint> {
1401
- return this.contract.read.totalSupply() as Promise<bigint>;
869
+ async uniswapV2RouterAddress(): Promise<`0x${string}`> {
870
+ return this.contract.read.uniswapV2RouterAddress() as Promise<`0x${string}`>;
1402
871
  }
1403
872
 
1404
873
  /**
1405
- * treasury
1406
- * view
874
+ * approve
875
+ * nonpayable
876
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1407
877
  */
1408
- async treasury(): Promise<`0x${string}`> {
1409
- return this.contract.read.treasury() as Promise<`0x${string}`>;
878
+ async approve(spender: `0x${string}`, amount: bigint, options?: {
879
+ accessList?: import('viem').AccessList;
880
+ authorizationList?: import('viem').AuthorizationList;
881
+ chain?: import('viem').Chain | null;
882
+ dataSuffix?: `0x${string}`;
883
+ gas?: bigint;
884
+ gasPrice?: bigint;
885
+ maxFeePerGas?: bigint;
886
+ maxPriorityFeePerGas?: bigint;
887
+ nonce?: number;
888
+ value?: bigint;
889
+ }): Promise<`0x${string}`> {
890
+ if (!this.contract.write) {
891
+ throw new Error('Wallet client is required for write operations');
892
+ }
893
+ return this.contract.write.approve([spender, amount] as const, options) as Promise<`0x${string}`>;
1410
894
  }
1411
895
 
1412
896
  /**
1413
- * approve
897
+ * createUniswapV2Pair
1414
898
  * nonpayable
1415
899
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1416
900
  */
1417
- async approve(spender: `0x${string}`, value: bigint, options?: {
901
+ async createUniswapV2Pair(otherToken: `0x${string}`, options?: {
1418
902
  accessList?: import('viem').AccessList;
1419
903
  authorizationList?: import('viem').AuthorizationList;
1420
904
  chain?: import('viem').Chain | null;
@@ -1429,15 +913,15 @@ export class DOP {
1429
913
  if (!this.contract.write) {
1430
914
  throw new Error('Wallet client is required for write operations');
1431
915
  }
1432
- return this.contract.write.approve([spender, value] as const, options) as Promise<`0x${string}`>;
916
+ return this.contract.write.createUniswapV2Pair([otherToken] as const, options) as Promise<`0x${string}`>;
1433
917
  }
1434
918
 
1435
919
  /**
1436
- * burn
920
+ * decreaseAllowance
1437
921
  * nonpayable
1438
922
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1439
923
  */
1440
- async burn(value: bigint, options?: {
924
+ async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
1441
925
  accessList?: import('viem').AccessList;
1442
926
  authorizationList?: import('viem').AuthorizationList;
1443
927
  chain?: import('viem').Chain | null;
@@ -1452,15 +936,15 @@ export class DOP {
1452
936
  if (!this.contract.write) {
1453
937
  throw new Error('Wallet client is required for write operations');
1454
938
  }
1455
- return this.contract.write.burn([value] as const, options) as Promise<`0x${string}`>;
939
+ return this.contract.write.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<`0x${string}`>;
1456
940
  }
1457
941
 
1458
942
  /**
1459
- * burnFrom
943
+ * excludeFromFee
1460
944
  * nonpayable
1461
945
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1462
946
  */
1463
- async burnFrom(account: `0x${string}`, value: bigint, options?: {
947
+ async excludeFromFee(_account: `0x${string}`, options?: {
1464
948
  accessList?: import('viem').AccessList;
1465
949
  authorizationList?: import('viem').AuthorizationList;
1466
950
  chain?: import('viem').Chain | null;
@@ -1475,15 +959,15 @@ export class DOP {
1475
959
  if (!this.contract.write) {
1476
960
  throw new Error('Wallet client is required for write operations');
1477
961
  }
1478
- return this.contract.write.burnFrom([account, value] as const, options) as Promise<`0x${string}`>;
962
+ return this.contract.write.excludeFromFee([_account] as const, options) as Promise<`0x${string}`>;
1479
963
  }
1480
964
 
1481
965
  /**
1482
- * enableTransfer
966
+ * includeInFee
1483
967
  * nonpayable
1484
968
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1485
969
  */
1486
- async enableTransfer(options?: {
970
+ async includeInFee(_account: `0x${string}`, options?: {
1487
971
  accessList?: import('viem').AccessList;
1488
972
  authorizationList?: import('viem').AuthorizationList;
1489
973
  chain?: import('viem').Chain | null;
@@ -1498,15 +982,15 @@ export class DOP {
1498
982
  if (!this.contract.write) {
1499
983
  throw new Error('Wallet client is required for write operations');
1500
984
  }
1501
- return this.contract.write.enableTransfer(options) as Promise<`0x${string}`>;
985
+ return this.contract.write.includeInFee([_account] as const, options) as Promise<`0x${string}`>;
1502
986
  }
1503
987
 
1504
988
  /**
1505
- * fund
989
+ * increaseAllowance
1506
990
  * nonpayable
1507
991
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1508
992
  */
1509
- async fund(options?: {
993
+ async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
1510
994
  accessList?: import('viem').AccessList;
1511
995
  authorizationList?: import('viem').AuthorizationList;
1512
996
  chain?: import('viem').Chain | null;
@@ -1521,15 +1005,15 @@ export class DOP {
1521
1005
  if (!this.contract.write) {
1522
1006
  throw new Error('Wallet client is required for write operations');
1523
1007
  }
1524
- return this.contract.write.fund(options) as Promise<`0x${string}`>;
1008
+ return this.contract.write.increaseAllowance([spender, addedValue] as const, options) as Promise<`0x${string}`>;
1525
1009
  }
1526
1010
 
1527
1011
  /**
1528
- * permit
1012
+ * manage_blacklist
1529
1013
  * nonpayable
1530
1014
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1531
1015
  */
1532
- async permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
1016
+ async manage_blacklist(_addresses: `0x${string}`[], _value: boolean, options?: {
1533
1017
  accessList?: import('viem').AccessList;
1534
1018
  authorizationList?: import('viem').AuthorizationList;
1535
1019
  chain?: import('viem').Chain | null;
@@ -1544,7 +1028,7 @@ export class DOP {
1544
1028
  if (!this.contract.write) {
1545
1029
  throw new Error('Wallet client is required for write operations');
1546
1030
  }
1547
- return this.contract.write.permit([owner, spender, value, deadline, v, r, s] as const, options) as Promise<`0x${string}`>;
1031
+ return this.contract.write.manage_blacklist([_addresses, _value] as const, options) as Promise<`0x${string}`>;
1548
1032
  }
1549
1033
 
1550
1034
  /**
@@ -1571,11 +1055,11 @@ export class DOP {
1571
1055
  }
1572
1056
 
1573
1057
  /**
1574
- * setInflationTable
1058
+ * setBuyContributionFee
1575
1059
  * nonpayable
1576
1060
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1577
1061
  */
1578
- async setInflationTable(setState: bigint, index: bigint, newTable: IDOP_Table, options?: {
1062
+ async setBuyContributionFee(_newBuyContributionFee: bigint, options?: {
1579
1063
  accessList?: import('viem').AccessList;
1580
1064
  authorizationList?: import('viem').AuthorizationList;
1581
1065
  chain?: import('viem').Chain | null;
@@ -1590,15 +1074,15 @@ export class DOP {
1590
1074
  if (!this.contract.write) {
1591
1075
  throw new Error('Wallet client is required for write operations');
1592
1076
  }
1593
- return this.contract.write.setInflationTable([setState, index, newTable] as const, options) as Promise<`0x${string}`>;
1077
+ return this.contract.write.setBuyContributionFee([_newBuyContributionFee] as const, options) as Promise<`0x${string}`>;
1594
1078
  }
1595
1079
 
1596
1080
  /**
1597
- * transfer
1081
+ * setDevelopementWallet
1598
1082
  * nonpayable
1599
1083
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1600
1084
  */
1601
- async transfer(to: `0x${string}`, value: bigint, options?: {
1085
+ async setDevelopementWallet(_newDevelopementWallet: `0x${string}`, options?: {
1602
1086
  accessList?: import('viem').AccessList;
1603
1087
  authorizationList?: import('viem').AuthorizationList;
1604
1088
  chain?: import('viem').Chain | null;
@@ -1613,15 +1097,15 @@ export class DOP {
1613
1097
  if (!this.contract.write) {
1614
1098
  throw new Error('Wallet client is required for write operations');
1615
1099
  }
1616
- return this.contract.write.transfer([to, value] as const, options) as Promise<`0x${string}`>;
1100
+ return this.contract.write.setDevelopementWallet([_newDevelopementWallet] as const, options) as Promise<`0x${string}`>;
1617
1101
  }
1618
1102
 
1619
1103
  /**
1620
- * transferFrom
1104
+ * setIsSwapEnabled
1621
1105
  * nonpayable
1622
1106
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1623
1107
  */
1624
- async transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
1108
+ async setIsSwapEnabled(value: boolean, options?: {
1625
1109
  accessList?: import('viem').AccessList;
1626
1110
  authorizationList?: import('viem').AuthorizationList;
1627
1111
  chain?: import('viem').Chain | null;
@@ -1636,15 +1120,15 @@ export class DOP {
1636
1120
  if (!this.contract.write) {
1637
1121
  throw new Error('Wallet client is required for write operations');
1638
1122
  }
1639
- return this.contract.write.transferFrom([from, to, value] as const, options) as Promise<`0x${string}`>;
1123
+ return this.contract.write.setIsSwapEnabled([value] as const, options) as Promise<`0x${string}`>;
1640
1124
  }
1641
1125
 
1642
1126
  /**
1643
- * transferOwnership
1127
+ * setSellContributionFee
1644
1128
  * nonpayable
1645
1129
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1646
1130
  */
1647
- async transferOwnership(newOwner: `0x${string}`, options?: {
1131
+ async setSellContributionFee(_newSellContributionFee: bigint, options?: {
1648
1132
  accessList?: import('viem').AccessList;
1649
1133
  authorizationList?: import('viem').AuthorizationList;
1650
1134
  chain?: import('viem').Chain | null;
@@ -1659,15 +1143,38 @@ export class DOP {
1659
1143
  if (!this.contract.write) {
1660
1144
  throw new Error('Wallet client is required for write operations');
1661
1145
  }
1662
- return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
1146
+ return this.contract.write.setSellContributionFee([_newSellContributionFee] as const, options) as Promise<`0x${string}`>;
1147
+ }
1148
+
1149
+ /**
1150
+ * setTaxHelper
1151
+ * nonpayable
1152
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1153
+ */
1154
+ async setTaxHelper(taxHelperAddress: `0x${string}`, options?: {
1155
+ accessList?: import('viem').AccessList;
1156
+ authorizationList?: import('viem').AuthorizationList;
1157
+ chain?: import('viem').Chain | null;
1158
+ dataSuffix?: `0x${string}`;
1159
+ gas?: bigint;
1160
+ gasPrice?: bigint;
1161
+ maxFeePerGas?: bigint;
1162
+ maxPriorityFeePerGas?: bigint;
1163
+ nonce?: number;
1164
+ value?: bigint;
1165
+ }): Promise<`0x${string}`> {
1166
+ if (!this.contract.write) {
1167
+ throw new Error('Wallet client is required for write operations');
1168
+ }
1169
+ return this.contract.write.setTaxHelper([taxHelperAddress] as const, options) as Promise<`0x${string}`>;
1663
1170
  }
1664
1171
 
1665
1172
  /**
1666
- * updateAccountState
1173
+ * setTreasureWallet
1667
1174
  * nonpayable
1668
1175
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1669
1176
  */
1670
- async updateAccountState(account: `0x${string}`, state: boolean, options?: {
1177
+ async setTreasureWallet(_newTreasureWallet: `0x${string}`, options?: {
1671
1178
  accessList?: import('viem').AccessList;
1672
1179
  authorizationList?: import('viem').AuthorizationList;
1673
1180
  chain?: import('viem').Chain | null;
@@ -1682,15 +1189,15 @@ export class DOP {
1682
1189
  if (!this.contract.write) {
1683
1190
  throw new Error('Wallet client is required for write operations');
1684
1191
  }
1685
- return this.contract.write.updateAccountState([account, state] as const, options) as Promise<`0x${string}`>;
1192
+ return this.contract.write.setTreasureWallet([_newTreasureWallet] as const, options) as Promise<`0x${string}`>;
1686
1193
  }
1687
1194
 
1688
1195
  /**
1689
- * updateAccumulator
1196
+ * transfer
1690
1197
  * nonpayable
1691
1198
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1692
1199
  */
1693
- async updateAccumulator(newAccumulator: `0x${string}`, options?: {
1200
+ async transfer(to: `0x${string}`, amount: bigint, options?: {
1694
1201
  accessList?: import('viem').AccessList;
1695
1202
  authorizationList?: import('viem').AuthorizationList;
1696
1203
  chain?: import('viem').Chain | null;
@@ -1705,15 +1212,15 @@ export class DOP {
1705
1212
  if (!this.contract.write) {
1706
1213
  throw new Error('Wallet client is required for write operations');
1707
1214
  }
1708
- return this.contract.write.updateAccumulator([newAccumulator] as const, options) as Promise<`0x${string}`>;
1215
+ return this.contract.write.transfer([to, amount] as const, options) as Promise<`0x${string}`>;
1709
1216
  }
1710
1217
 
1711
1218
  /**
1712
- * updateDedicatedCaller
1219
+ * transferFrom
1713
1220
  * nonpayable
1714
1221
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1715
1222
  */
1716
- async updateDedicatedCaller(newDedicatedCaller: `0x${string}`, options?: {
1223
+ async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
1717
1224
  accessList?: import('viem').AccessList;
1718
1225
  authorizationList?: import('viem').AuthorizationList;
1719
1226
  chain?: import('viem').Chain | null;
@@ -1728,15 +1235,15 @@ export class DOP {
1728
1235
  if (!this.contract.write) {
1729
1236
  throw new Error('Wallet client is required for write operations');
1730
1237
  }
1731
- return this.contract.write.updateDedicatedCaller([newDedicatedCaller] as const, options) as Promise<`0x${string}`>;
1238
+ return this.contract.write.transferFrom([from, to, amount] as const, options) as Promise<`0x${string}`>;
1732
1239
  }
1733
1240
 
1734
1241
  /**
1735
- * updateTreasury
1242
+ * transferOwnership
1736
1243
  * nonpayable
1737
1244
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1738
1245
  */
1739
- async updateTreasury(newTreasury: `0x${string}`, options?: {
1246
+ async transferOwnership(newOwner: `0x${string}`, options?: {
1740
1247
  accessList?: import('viem').AccessList;
1741
1248
  authorizationList?: import('viem').AuthorizationList;
1742
1249
  chain?: import('viem').Chain | null;
@@ -1751,7 +1258,7 @@ export class DOP {
1751
1258
  if (!this.contract.write) {
1752
1259
  throw new Error('Wallet client is required for write operations');
1753
1260
  }
1754
- return this.contract.write.updateTreasury([newTreasury] as const, options) as Promise<`0x${string}`>;
1261
+ return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
1755
1262
  }
1756
1263
 
1757
1264
 
@@ -1775,7 +1282,7 @@ export class DOP {
1775
1282
  * Returns gas estimate and result without sending transaction
1776
1283
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1777
1284
  */
1778
- async approve(spender: `0x${string}`, value: bigint, options?: {
1285
+ async approve(spender: `0x${string}`, amount: bigint, options?: {
1779
1286
  accessList?: import('viem').AccessList;
1780
1287
  authorizationList?: import('viem').AuthorizationList;
1781
1288
  chain?: import('viem').Chain | null;
@@ -1787,14 +1294,14 @@ export class DOP {
1787
1294
  nonce?: number;
1788
1295
  value?: bigint;
1789
1296
  }): Promise<boolean> {
1790
- return contract.simulate.approve([spender, value] as const, options) as Promise<boolean>;
1297
+ return contract.simulate.approve([spender, amount] as const, options) as Promise<boolean>;
1791
1298
  },
1792
1299
  /**
1793
- * Simulate burn
1300
+ * Simulate createUniswapV2Pair
1794
1301
  * Returns gas estimate and result without sending transaction
1795
1302
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1796
1303
  */
1797
- async burn(value: bigint, options?: {
1304
+ async createUniswapV2Pair(otherToken: `0x${string}`, options?: {
1798
1305
  accessList?: import('viem').AccessList;
1799
1306
  authorizationList?: import('viem').AuthorizationList;
1800
1307
  chain?: import('viem').Chain | null;
@@ -1805,15 +1312,15 @@ export class DOP {
1805
1312
  maxPriorityFeePerGas?: bigint;
1806
1313
  nonce?: number;
1807
1314
  value?: bigint;
1808
- }): Promise<void> {
1809
- return contract.simulate.burn([value] as const, options) as Promise<void>;
1315
+ }): Promise<`0x${string}`> {
1316
+ return contract.simulate.createUniswapV2Pair([otherToken] as const, options) as Promise<`0x${string}`>;
1810
1317
  },
1811
1318
  /**
1812
- * Simulate burnFrom
1319
+ * Simulate decreaseAllowance
1813
1320
  * Returns gas estimate and result without sending transaction
1814
1321
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1815
1322
  */
1816
- async burnFrom(account: `0x${string}`, value: bigint, options?: {
1323
+ async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
1817
1324
  accessList?: import('viem').AccessList;
1818
1325
  authorizationList?: import('viem').AuthorizationList;
1819
1326
  chain?: import('viem').Chain | null;
@@ -1824,15 +1331,15 @@ export class DOP {
1824
1331
  maxPriorityFeePerGas?: bigint;
1825
1332
  nonce?: number;
1826
1333
  value?: bigint;
1827
- }): Promise<void> {
1828
- return contract.simulate.burnFrom([account, value] as const, options) as Promise<void>;
1334
+ }): Promise<boolean> {
1335
+ return contract.simulate.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<boolean>;
1829
1336
  },
1830
1337
  /**
1831
- * Simulate enableTransfer
1338
+ * Simulate excludeFromFee
1832
1339
  * Returns gas estimate and result without sending transaction
1833
1340
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1834
1341
  */
1835
- async enableTransfer(options?: {
1342
+ async excludeFromFee(_account: `0x${string}`, options?: {
1836
1343
  accessList?: import('viem').AccessList;
1837
1344
  authorizationList?: import('viem').AuthorizationList;
1838
1345
  chain?: import('viem').Chain | null;
@@ -1844,14 +1351,14 @@ export class DOP {
1844
1351
  nonce?: number;
1845
1352
  value?: bigint;
1846
1353
  }): Promise<void> {
1847
- return contract.simulate.enableTransfer(options) as Promise<void>;
1354
+ return contract.simulate.excludeFromFee([_account] as const, options) as Promise<void>;
1848
1355
  },
1849
1356
  /**
1850
- * Simulate fund
1357
+ * Simulate includeInFee
1851
1358
  * Returns gas estimate and result without sending transaction
1852
1359
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1853
1360
  */
1854
- async fund(options?: {
1361
+ async includeInFee(_account: `0x${string}`, options?: {
1855
1362
  accessList?: import('viem').AccessList;
1856
1363
  authorizationList?: import('viem').AuthorizationList;
1857
1364
  chain?: import('viem').Chain | null;
@@ -1863,14 +1370,33 @@ export class DOP {
1863
1370
  nonce?: number;
1864
1371
  value?: bigint;
1865
1372
  }): Promise<void> {
1866
- return contract.simulate.fund(options) as Promise<void>;
1373
+ return contract.simulate.includeInFee([_account] as const, options) as Promise<void>;
1867
1374
  },
1868
1375
  /**
1869
- * Simulate permit
1376
+ * Simulate increaseAllowance
1870
1377
  * Returns gas estimate and result without sending transaction
1871
1378
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1872
1379
  */
1873
- async permit(owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
1380
+ async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
1381
+ accessList?: import('viem').AccessList;
1382
+ authorizationList?: import('viem').AuthorizationList;
1383
+ chain?: import('viem').Chain | null;
1384
+ dataSuffix?: `0x${string}`;
1385
+ gas?: bigint;
1386
+ gasPrice?: bigint;
1387
+ maxFeePerGas?: bigint;
1388
+ maxPriorityFeePerGas?: bigint;
1389
+ nonce?: number;
1390
+ value?: bigint;
1391
+ }): Promise<boolean> {
1392
+ return contract.simulate.increaseAllowance([spender, addedValue] as const, options) as Promise<boolean>;
1393
+ },
1394
+ /**
1395
+ * Simulate manage_blacklist
1396
+ * Returns gas estimate and result without sending transaction
1397
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1398
+ */
1399
+ async manage_blacklist(_addresses: `0x${string}`[], _value: boolean, options?: {
1874
1400
  accessList?: import('viem').AccessList;
1875
1401
  authorizationList?: import('viem').AuthorizationList;
1876
1402
  chain?: import('viem').Chain | null;
@@ -1882,7 +1408,7 @@ export class DOP {
1882
1408
  nonce?: number;
1883
1409
  value?: bigint;
1884
1410
  }): Promise<void> {
1885
- return contract.simulate.permit([owner, spender, value, deadline, v, r, s] as const, options) as Promise<void>;
1411
+ return contract.simulate.manage_blacklist([_addresses, _value] as const, options) as Promise<void>;
1886
1412
  },
1887
1413
  /**
1888
1414
  * Simulate renounceOwnership
@@ -1904,11 +1430,11 @@ export class DOP {
1904
1430
  return contract.simulate.renounceOwnership(options) as Promise<void>;
1905
1431
  },
1906
1432
  /**
1907
- * Simulate setInflationTable
1433
+ * Simulate setBuyContributionFee
1908
1434
  * Returns gas estimate and result without sending transaction
1909
1435
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1910
1436
  */
1911
- async setInflationTable(setState: bigint, index: bigint, newTable: IDOP_Table, options?: {
1437
+ async setBuyContributionFee(_newBuyContributionFee: bigint, options?: {
1912
1438
  accessList?: import('viem').AccessList;
1913
1439
  authorizationList?: import('viem').AuthorizationList;
1914
1440
  chain?: import('viem').Chain | null;
@@ -1920,14 +1446,14 @@ export class DOP {
1920
1446
  nonce?: number;
1921
1447
  value?: bigint;
1922
1448
  }): Promise<void> {
1923
- return contract.simulate.setInflationTable([setState, index, newTable] as const, options) as Promise<void>;
1449
+ return contract.simulate.setBuyContributionFee([_newBuyContributionFee] as const, options) as Promise<void>;
1924
1450
  },
1925
1451
  /**
1926
- * Simulate transfer
1452
+ * Simulate setDevelopementWallet
1927
1453
  * Returns gas estimate and result without sending transaction
1928
1454
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1929
1455
  */
1930
- async transfer(to: `0x${string}`, value: bigint, options?: {
1456
+ async setDevelopementWallet(_newDevelopementWallet: `0x${string}`, options?: {
1931
1457
  accessList?: import('viem').AccessList;
1932
1458
  authorizationList?: import('viem').AuthorizationList;
1933
1459
  chain?: import('viem').Chain | null;
@@ -1938,15 +1464,15 @@ export class DOP {
1938
1464
  maxPriorityFeePerGas?: bigint;
1939
1465
  nonce?: number;
1940
1466
  value?: bigint;
1941
- }): Promise<boolean> {
1942
- return contract.simulate.transfer([to, value] as const, options) as Promise<boolean>;
1467
+ }): Promise<void> {
1468
+ return contract.simulate.setDevelopementWallet([_newDevelopementWallet] as const, options) as Promise<void>;
1943
1469
  },
1944
1470
  /**
1945
- * Simulate transferFrom
1471
+ * Simulate setIsSwapEnabled
1946
1472
  * Returns gas estimate and result without sending transaction
1947
1473
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1948
1474
  */
1949
- async transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
1475
+ async setIsSwapEnabled(value: boolean, options?: {
1950
1476
  accessList?: import('viem').AccessList;
1951
1477
  authorizationList?: import('viem').AuthorizationList;
1952
1478
  chain?: import('viem').Chain | null;
@@ -1957,15 +1483,15 @@ export class DOP {
1957
1483
  maxPriorityFeePerGas?: bigint;
1958
1484
  nonce?: number;
1959
1485
  value?: bigint;
1960
- }): Promise<boolean> {
1961
- return contract.simulate.transferFrom([from, to, value] as const, options) as Promise<boolean>;
1486
+ }): Promise<void> {
1487
+ return contract.simulate.setIsSwapEnabled([value] as const, options) as Promise<void>;
1962
1488
  },
1963
1489
  /**
1964
- * Simulate transferOwnership
1490
+ * Simulate setSellContributionFee
1965
1491
  * Returns gas estimate and result without sending transaction
1966
1492
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1967
1493
  */
1968
- async transferOwnership(newOwner: `0x${string}`, options?: {
1494
+ async setSellContributionFee(_newSellContributionFee: bigint, options?: {
1969
1495
  accessList?: import('viem').AccessList;
1970
1496
  authorizationList?: import('viem').AuthorizationList;
1971
1497
  chain?: import('viem').Chain | null;
@@ -1977,14 +1503,14 @@ export class DOP {
1977
1503
  nonce?: number;
1978
1504
  value?: bigint;
1979
1505
  }): Promise<void> {
1980
- return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
1506
+ return contract.simulate.setSellContributionFee([_newSellContributionFee] as const, options) as Promise<void>;
1981
1507
  },
1982
1508
  /**
1983
- * Simulate updateAccountState
1509
+ * Simulate setTaxHelper
1984
1510
  * Returns gas estimate and result without sending transaction
1985
1511
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1986
1512
  */
1987
- async updateAccountState(account: `0x${string}`, state: boolean, options?: {
1513
+ async setTaxHelper(taxHelperAddress: `0x${string}`, options?: {
1988
1514
  accessList?: import('viem').AccessList;
1989
1515
  authorizationList?: import('viem').AuthorizationList;
1990
1516
  chain?: import('viem').Chain | null;
@@ -1996,14 +1522,14 @@ export class DOP {
1996
1522
  nonce?: number;
1997
1523
  value?: bigint;
1998
1524
  }): Promise<void> {
1999
- return contract.simulate.updateAccountState([account, state] as const, options) as Promise<void>;
1525
+ return contract.simulate.setTaxHelper([taxHelperAddress] as const, options) as Promise<void>;
2000
1526
  },
2001
1527
  /**
2002
- * Simulate updateAccumulator
1528
+ * Simulate setTreasureWallet
2003
1529
  * Returns gas estimate and result without sending transaction
2004
1530
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2005
1531
  */
2006
- async updateAccumulator(newAccumulator: `0x${string}`, options?: {
1532
+ async setTreasureWallet(_newTreasureWallet: `0x${string}`, options?: {
2007
1533
  accessList?: import('viem').AccessList;
2008
1534
  authorizationList?: import('viem').AuthorizationList;
2009
1535
  chain?: import('viem').Chain | null;
@@ -2015,14 +1541,14 @@ export class DOP {
2015
1541
  nonce?: number;
2016
1542
  value?: bigint;
2017
1543
  }): Promise<void> {
2018
- return contract.simulate.updateAccumulator([newAccumulator] as const, options) as Promise<void>;
1544
+ return contract.simulate.setTreasureWallet([_newTreasureWallet] as const, options) as Promise<void>;
2019
1545
  },
2020
1546
  /**
2021
- * Simulate updateDedicatedCaller
1547
+ * Simulate transfer
2022
1548
  * Returns gas estimate and result without sending transaction
2023
1549
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2024
1550
  */
2025
- async updateDedicatedCaller(newDedicatedCaller: `0x${string}`, options?: {
1551
+ async transfer(to: `0x${string}`, amount: bigint, options?: {
2026
1552
  accessList?: import('viem').AccessList;
2027
1553
  authorizationList?: import('viem').AuthorizationList;
2028
1554
  chain?: import('viem').Chain | null;
@@ -2033,15 +1559,34 @@ export class DOP {
2033
1559
  maxPriorityFeePerGas?: bigint;
2034
1560
  nonce?: number;
2035
1561
  value?: bigint;
2036
- }): Promise<void> {
2037
- return contract.simulate.updateDedicatedCaller([newDedicatedCaller] as const, options) as Promise<void>;
1562
+ }): Promise<boolean> {
1563
+ return contract.simulate.transfer([to, amount] as const, options) as Promise<boolean>;
1564
+ },
1565
+ /**
1566
+ * Simulate transferFrom
1567
+ * Returns gas estimate and result without sending transaction
1568
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1569
+ */
1570
+ async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
1571
+ accessList?: import('viem').AccessList;
1572
+ authorizationList?: import('viem').AuthorizationList;
1573
+ chain?: import('viem').Chain | null;
1574
+ dataSuffix?: `0x${string}`;
1575
+ gas?: bigint;
1576
+ gasPrice?: bigint;
1577
+ maxFeePerGas?: bigint;
1578
+ maxPriorityFeePerGas?: bigint;
1579
+ nonce?: number;
1580
+ value?: bigint;
1581
+ }): Promise<boolean> {
1582
+ return contract.simulate.transferFrom([from, to, amount] as const, options) as Promise<boolean>;
2038
1583
  },
2039
1584
  /**
2040
- * Simulate updateTreasury
1585
+ * Simulate transferOwnership
2041
1586
  * Returns gas estimate and result without sending transaction
2042
1587
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
2043
1588
  */
2044
- async updateTreasury(newTreasury: `0x${string}`, options?: {
1589
+ async transferOwnership(newOwner: `0x${string}`, options?: {
2045
1590
  accessList?: import('viem').AccessList;
2046
1591
  authorizationList?: import('viem').AuthorizationList;
2047
1592
  chain?: import('viem').Chain | null;
@@ -2053,7 +1598,7 @@ export class DOP {
2053
1598
  nonce?: number;
2054
1599
  value?: bigint;
2055
1600
  }): Promise<void> {
2056
- return contract.simulate.updateTreasury([newTreasury] as const, options) as Promise<void>;
1601
+ return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
2057
1602
  }
2058
1603
  };
2059
1604
  }
@@ -2072,44 +1617,6 @@ export class DOP {
2072
1617
  */
2073
1618
  get watch() {
2074
1619
  return {
2075
- /**
2076
- * Watch AddInflationTable events
2077
- * @param callback Function to call when event is emitted
2078
- * @param filter Optional filter for indexed parameters
2079
- * @returns Unwatch function to stop listening
2080
- */
2081
- AddInflationTable: (callback: (event: { newTable: IDOP_Table }) => void) => {
2082
- return this.publicClient.watchContractEvent({
2083
- address: this.contractAddress,
2084
- abi: DOPAbi,
2085
- eventName: 'AddInflationTable',
2086
-
2087
- onLogs: (logs: any[]) => {
2088
- logs.forEach((log: any) => {
2089
- callback(log.args as any);
2090
- });
2091
- },
2092
- }) as () => void;
2093
- },
2094
- /**
2095
- * Watch AllowListUpdated events
2096
- * @param callback Function to call when event is emitted
2097
- * @param filter Optional filter for indexed parameters
2098
- * @returns Unwatch function to stop listening
2099
- */
2100
- AllowListUpdated: (callback: (event: { account: `0x${string}`; state: boolean }) => void, filter?: { account?: `0x${string}` | `0x${string}`[] | null }) => {
2101
- return this.publicClient.watchContractEvent({
2102
- address: this.contractAddress,
2103
- abi: DOPAbi,
2104
- eventName: 'AllowListUpdated',
2105
- args: filter as any,
2106
- onLogs: (logs: any[]) => {
2107
- logs.forEach((log: any) => {
2108
- callback(log.args as any);
2109
- });
2110
- },
2111
- }) as () => void;
2112
- },
2113
1620
  /**
2114
1621
  * Watch Approval events
2115
1622
  * @param callback Function to call when event is emitted
@@ -2119,7 +1626,7 @@ export class DOP {
2119
1626
  Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner?: `0x${string}` | `0x${string}`[] | null; spender?: `0x${string}` | `0x${string}`[] | null }) => {
2120
1627
  return this.publicClient.watchContractEvent({
2121
1628
  address: this.contractAddress,
2122
- abi: DOPAbi,
1629
+ abi: DDropsAbi,
2123
1630
  eventName: 'Approval',
2124
1631
  args: filter as any,
2125
1632
  onLogs: (logs: any[]) => {
@@ -2129,44 +1636,6 @@ export class DOP {
2129
1636
  },
2130
1637
  }) as () => void;
2131
1638
  },
2132
- /**
2133
- * Watch EIP712DomainChanged events
2134
- * @param callback Function to call when event is emitted
2135
- * @param filter Optional filter for indexed parameters
2136
- * @returns Unwatch function to stop listening
2137
- */
2138
- EIP712DomainChanged: (callback: (event: { }) => void) => {
2139
- return this.publicClient.watchContractEvent({
2140
- address: this.contractAddress,
2141
- abi: DOPAbi,
2142
- eventName: 'EIP712DomainChanged',
2143
-
2144
- onLogs: (logs: any[]) => {
2145
- logs.forEach((log: any) => {
2146
- callback(log.args as any);
2147
- });
2148
- },
2149
- }) as () => void;
2150
- },
2151
- /**
2152
- * Watch Fund events
2153
- * @param callback Function to call when event is emitted
2154
- * @param filter Optional filter for indexed parameters
2155
- * @returns Unwatch function to stop listening
2156
- */
2157
- Fund: (callback: (event: { twapPrice: bigint; cycle: bigint; cycleStartBlockNumber: bigint; cycleEndBlockNumber: bigint; fullyDilutedMarketCap: bigint; amount: bigint }) => void) => {
2158
- return this.publicClient.watchContractEvent({
2159
- address: this.contractAddress,
2160
- abi: DOPAbi,
2161
- eventName: 'Fund',
2162
-
2163
- onLogs: (logs: any[]) => {
2164
- logs.forEach((log: any) => {
2165
- callback(log.args as any);
2166
- });
2167
- },
2168
- }) as () => void;
2169
- },
2170
1639
  /**
2171
1640
  * Watch OwnershipTransferred events
2172
1641
  * @param callback Function to call when event is emitted
@@ -2176,7 +1645,7 @@ export class DOP {
2176
1645
  OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner?: `0x${string}` | `0x${string}`[] | null; newOwner?: `0x${string}` | `0x${string}`[] | null }) => {
2177
1646
  return this.publicClient.watchContractEvent({
2178
1647
  address: this.contractAddress,
2179
- abi: DOPAbi,
1648
+ abi: DDropsAbi,
2180
1649
  eventName: 'OwnershipTransferred',
2181
1650
  args: filter as any,
2182
1651
  onLogs: (logs: any[]) => {
@@ -2186,25 +1655,6 @@ export class DOP {
2186
1655
  },
2187
1656
  }) as () => void;
2188
1657
  },
2189
- /**
2190
- * Watch RemoveInflationTable 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
- RemoveInflationTable: (callback: (event: { index: bigint }) => void) => {
2196
- return this.publicClient.watchContractEvent({
2197
- address: this.contractAddress,
2198
- abi: DOPAbi,
2199
- eventName: 'RemoveInflationTable',
2200
-
2201
- onLogs: (logs: any[]) => {
2202
- logs.forEach((log: any) => {
2203
- callback(log.args as any);
2204
- });
2205
- },
2206
- }) as () => void;
2207
- },
2208
1658
  /**
2209
1659
  * Watch Transfer events
2210
1660
  * @param callback Function to call when event is emitted
@@ -2214,7 +1664,7 @@ export class DOP {
2214
1664
  Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from?: `0x${string}` | `0x${string}`[] | null; to?: `0x${string}` | `0x${string}`[] | null }) => {
2215
1665
  return this.publicClient.watchContractEvent({
2216
1666
  address: this.contractAddress,
2217
- abi: DOPAbi,
1667
+ abi: DDropsAbi,
2218
1668
  eventName: 'Transfer',
2219
1669
  args: filter as any,
2220
1670
  onLogs: (logs: any[]) => {
@@ -2223,101 +1673,6 @@ export class DOP {
2223
1673
  });
2224
1674
  },
2225
1675
  }) as () => void;
2226
- },
2227
- /**
2228
- * Watch TransfersEnabled events
2229
- * @param callback Function to call when event is emitted
2230
- * @param filter Optional filter for indexed parameters
2231
- * @returns Unwatch function to stop listening
2232
- */
2233
- TransfersEnabled: (callback: (event: { }) => void) => {
2234
- return this.publicClient.watchContractEvent({
2235
- address: this.contractAddress,
2236
- abi: DOPAbi,
2237
- eventName: 'TransfersEnabled',
2238
-
2239
- onLogs: (logs: any[]) => {
2240
- logs.forEach((log: any) => {
2241
- callback(log.args as any);
2242
- });
2243
- },
2244
- }) as () => void;
2245
- },
2246
- /**
2247
- * Watch UpdateAccumulator events
2248
- * @param callback Function to call when event is emitted
2249
- * @param filter Optional filter for indexed parameters
2250
- * @returns Unwatch function to stop listening
2251
- */
2252
- UpdateAccumulator: (callback: (event: { newAccumulator: `0x${string}`; oldAccumulator: `0x${string}` }) => void, filter?: { newAccumulator?: `0x${string}` | `0x${string}`[] | null; oldAccumulator?: `0x${string}` | `0x${string}`[] | null }) => {
2253
- return this.publicClient.watchContractEvent({
2254
- address: this.contractAddress,
2255
- abi: DOPAbi,
2256
- eventName: 'UpdateAccumulator',
2257
- args: filter as any,
2258
- onLogs: (logs: any[]) => {
2259
- logs.forEach((log: any) => {
2260
- callback(log.args as any);
2261
- });
2262
- },
2263
- }) as () => void;
2264
- },
2265
- /**
2266
- * Watch UpdateDedicatedCaller events
2267
- * @param callback Function to call when event is emitted
2268
- * @param filter Optional filter for indexed parameters
2269
- * @returns Unwatch function to stop listening
2270
- */
2271
- UpdateDedicatedCaller: (callback: (event: { newDedicatedCaller: `0x${string}`; oldDedicatedCaller: `0x${string}` }) => void, filter?: { newDedicatedCaller?: `0x${string}` | `0x${string}`[] | null; oldDedicatedCaller?: `0x${string}` | `0x${string}`[] | null }) => {
2272
- return this.publicClient.watchContractEvent({
2273
- address: this.contractAddress,
2274
- abi: DOPAbi,
2275
- eventName: 'UpdateDedicatedCaller',
2276
- args: filter as any,
2277
- onLogs: (logs: any[]) => {
2278
- logs.forEach((log: any) => {
2279
- callback(log.args as any);
2280
- });
2281
- },
2282
- }) as () => void;
2283
- },
2284
- /**
2285
- * Watch UpdateInflationTable events
2286
- * @param callback Function to call when event is emitted
2287
- * @param filter Optional filter for indexed parameters
2288
- * @returns Unwatch function to stop listening
2289
- */
2290
- UpdateInflationTable: (callback: (event: { index: bigint; newTable: IDOP_Table; oldTable: IDOP_Table }) => void) => {
2291
- return this.publicClient.watchContractEvent({
2292
- address: this.contractAddress,
2293
- abi: DOPAbi,
2294
- eventName: 'UpdateInflationTable',
2295
-
2296
- onLogs: (logs: any[]) => {
2297
- logs.forEach((log: any) => {
2298
- callback(log.args as any);
2299
- });
2300
- },
2301
- }) as () => void;
2302
- },
2303
- /**
2304
- * Watch UpdateTreasury events
2305
- * @param callback Function to call when event is emitted
2306
- * @param filter Optional filter for indexed parameters
2307
- * @returns Unwatch function to stop listening
2308
- */
2309
- UpdateTreasury: (callback: (event: { newTreasury: `0x${string}`; oldTreasury: `0x${string}` }) => void, filter?: { newTreasury?: `0x${string}` | `0x${string}`[] | null; oldTreasury?: `0x${string}` | `0x${string}`[] | null }) => {
2310
- return this.publicClient.watchContractEvent({
2311
- address: this.contractAddress,
2312
- abi: DOPAbi,
2313
- eventName: 'UpdateTreasury',
2314
- args: filter as any,
2315
- onLogs: (logs: any[]) => {
2316
- logs.forEach((log: any) => {
2317
- callback(log.args as any);
2318
- });
2319
- },
2320
- }) as () => void;
2321
1676
  }
2322
1677
  };
2323
1678
  }