@gitmyabi/kndc 1.0.0

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.
@@ -0,0 +1,1294 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * KanadeCoin_json ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const KanadeCoin_jsonAbi: readonly [{
8
+ readonly constant: true;
9
+ readonly inputs: readonly [];
10
+ readonly name: "name";
11
+ readonly outputs: readonly [{
12
+ readonly name: "";
13
+ readonly type: "string";
14
+ }];
15
+ readonly payable: false;
16
+ readonly stateMutability: "view";
17
+ readonly type: "function";
18
+ }, {
19
+ readonly constant: false;
20
+ readonly inputs: readonly [{
21
+ readonly name: "_spender";
22
+ readonly type: "address";
23
+ }, {
24
+ readonly name: "_value";
25
+ readonly type: "uint256";
26
+ }];
27
+ readonly name: "approve";
28
+ readonly outputs: readonly [{
29
+ readonly name: "";
30
+ readonly type: "bool";
31
+ }];
32
+ readonly payable: false;
33
+ readonly stateMutability: "nonpayable";
34
+ readonly type: "function";
35
+ }, {
36
+ readonly constant: true;
37
+ readonly inputs: readonly [];
38
+ readonly name: "contractStartTime";
39
+ readonly outputs: readonly [{
40
+ readonly name: "";
41
+ readonly type: "uint256";
42
+ }];
43
+ readonly payable: false;
44
+ readonly stateMutability: "view";
45
+ readonly type: "function";
46
+ }, {
47
+ readonly constant: false;
48
+ readonly inputs: readonly [{
49
+ readonly name: "_text";
50
+ readonly type: "string";
51
+ }];
52
+ readonly name: "putSaveData";
53
+ readonly outputs: readonly [];
54
+ readonly payable: false;
55
+ readonly stateMutability: "nonpayable";
56
+ readonly type: "function";
57
+ }, {
58
+ readonly constant: true;
59
+ readonly inputs: readonly [];
60
+ readonly name: "totalSupply";
61
+ readonly outputs: readonly [{
62
+ readonly name: "";
63
+ readonly type: "uint256";
64
+ }];
65
+ readonly payable: false;
66
+ readonly stateMutability: "view";
67
+ readonly type: "function";
68
+ }, {
69
+ readonly constant: false;
70
+ readonly inputs: readonly [{
71
+ readonly name: "_id_max32";
72
+ readonly type: "string";
73
+ }, {
74
+ readonly name: "_recipient";
75
+ readonly type: "address";
76
+ }, {
77
+ readonly name: "_volume";
78
+ readonly type: "uint64";
79
+ }, {
80
+ readonly name: "_amount";
81
+ readonly type: "uint256";
82
+ }, {
83
+ readonly name: "_finish";
84
+ readonly type: "uint128";
85
+ }];
86
+ readonly name: "createRandomBox";
87
+ readonly outputs: readonly [];
88
+ readonly payable: false;
89
+ readonly stateMutability: "nonpayable";
90
+ readonly type: "function";
91
+ }, {
92
+ readonly constant: true;
93
+ readonly inputs: readonly [];
94
+ readonly name: "addrLockUp";
95
+ readonly outputs: readonly [{
96
+ readonly name: "";
97
+ readonly type: "address";
98
+ }];
99
+ readonly payable: false;
100
+ readonly stateMutability: "view";
101
+ readonly type: "function";
102
+ }, {
103
+ readonly constant: false;
104
+ readonly inputs: readonly [{
105
+ readonly name: "_from";
106
+ readonly type: "address";
107
+ }, {
108
+ readonly name: "_to";
109
+ readonly type: "address";
110
+ }, {
111
+ readonly name: "_value";
112
+ readonly type: "uint256";
113
+ }];
114
+ readonly name: "transferFrom";
115
+ readonly outputs: readonly [{
116
+ readonly name: "";
117
+ readonly type: "bool";
118
+ }];
119
+ readonly payable: false;
120
+ readonly stateMutability: "nonpayable";
121
+ readonly type: "function";
122
+ }, {
123
+ readonly constant: true;
124
+ readonly inputs: readonly [];
125
+ readonly name: "atto";
126
+ readonly outputs: readonly [{
127
+ readonly name: "";
128
+ readonly type: "uint256";
129
+ }];
130
+ readonly payable: false;
131
+ readonly stateMutability: "view";
132
+ readonly type: "function";
133
+ }, {
134
+ readonly constant: true;
135
+ readonly inputs: readonly [];
136
+ readonly name: "addrAirDrop";
137
+ readonly outputs: readonly [{
138
+ readonly name: "";
139
+ readonly type: "address";
140
+ }];
141
+ readonly payable: false;
142
+ readonly stateMutability: "view";
143
+ readonly type: "function";
144
+ }, {
145
+ readonly constant: true;
146
+ readonly inputs: readonly [{
147
+ readonly name: "_id_max32";
148
+ readonly type: "string";
149
+ }];
150
+ readonly name: "getRandomBox";
151
+ readonly outputs: readonly [{
152
+ readonly name: "";
153
+ readonly type: "uint256[5]";
154
+ }];
155
+ readonly payable: false;
156
+ readonly stateMutability: "view";
157
+ readonly type: "function";
158
+ }, {
159
+ readonly constant: true;
160
+ readonly inputs: readonly [];
161
+ readonly name: "decimals";
162
+ readonly outputs: readonly [{
163
+ readonly name: "";
164
+ readonly type: "uint256";
165
+ }];
166
+ readonly payable: false;
167
+ readonly stateMutability: "view";
168
+ readonly type: "function";
169
+ }, {
170
+ readonly constant: false;
171
+ readonly inputs: readonly [{
172
+ readonly name: "_id_max32";
173
+ readonly type: "string";
174
+ }, {
175
+ readonly name: "_recipient";
176
+ readonly type: "address";
177
+ }, {
178
+ readonly name: "_finish";
179
+ readonly type: "uint128";
180
+ }, {
181
+ readonly name: "_under";
182
+ readonly type: "uint256";
183
+ }];
184
+ readonly name: "createQuestion";
185
+ readonly outputs: readonly [];
186
+ readonly payable: false;
187
+ readonly stateMutability: "nonpayable";
188
+ readonly type: "function";
189
+ }, {
190
+ readonly constant: true;
191
+ readonly inputs: readonly [];
192
+ readonly name: "addrDevTeam";
193
+ readonly outputs: readonly [{
194
+ readonly name: "";
195
+ readonly type: "address";
196
+ }];
197
+ readonly payable: false;
198
+ readonly stateMutability: "view";
199
+ readonly type: "function";
200
+ }, {
201
+ readonly constant: true;
202
+ readonly inputs: readonly [];
203
+ readonly name: "addrDistribution";
204
+ readonly outputs: readonly [{
205
+ readonly name: "";
206
+ readonly type: "address";
207
+ }];
208
+ readonly payable: false;
209
+ readonly stateMutability: "view";
210
+ readonly type: "function";
211
+ }, {
212
+ readonly constant: true;
213
+ readonly inputs: readonly [{
214
+ readonly name: "_id_max32";
215
+ readonly type: "string";
216
+ }, {
217
+ readonly name: "_position";
218
+ readonly type: "uint256";
219
+ }];
220
+ readonly name: "getQuestionVote";
221
+ readonly outputs: readonly [{
222
+ readonly name: "";
223
+ readonly type: "uint256[4]";
224
+ }];
225
+ readonly payable: false;
226
+ readonly stateMutability: "view";
227
+ readonly type: "function";
228
+ }, {
229
+ readonly constant: false;
230
+ readonly inputs: readonly [];
231
+ readonly name: "unLockup";
232
+ readonly outputs: readonly [];
233
+ readonly payable: false;
234
+ readonly stateMutability: "nonpayable";
235
+ readonly type: "function";
236
+ }, {
237
+ readonly constant: false;
238
+ readonly inputs: readonly [{
239
+ readonly name: "_id_max32";
240
+ readonly type: "string";
241
+ }, {
242
+ readonly name: "_count";
243
+ readonly type: "uint256";
244
+ }];
245
+ readonly name: "drawRandomItem";
246
+ readonly outputs: readonly [];
247
+ readonly payable: false;
248
+ readonly stateMutability: "nonpayable";
249
+ readonly type: "function";
250
+ }, {
251
+ readonly constant: false;
252
+ readonly inputs: readonly [{
253
+ readonly name: "_recipients";
254
+ readonly type: "address[]";
255
+ }, {
256
+ readonly name: "_values";
257
+ readonly type: "uint256[]";
258
+ }];
259
+ readonly name: "airDrop";
260
+ readonly outputs: readonly [{
261
+ readonly name: "";
262
+ readonly type: "bool";
263
+ }];
264
+ readonly payable: false;
265
+ readonly stateMutability: "nonpayable";
266
+ readonly type: "function";
267
+ }, {
268
+ readonly constant: false;
269
+ readonly inputs: readonly [{
270
+ readonly name: "_spender";
271
+ readonly type: "address";
272
+ }, {
273
+ readonly name: "_subtractedValue";
274
+ readonly type: "uint256";
275
+ }];
276
+ readonly name: "decreaseApproval";
277
+ readonly outputs: readonly [{
278
+ readonly name: "";
279
+ readonly type: "bool";
280
+ }];
281
+ readonly payable: false;
282
+ readonly stateMutability: "nonpayable";
283
+ readonly type: "function";
284
+ }, {
285
+ readonly constant: true;
286
+ readonly inputs: readonly [{
287
+ readonly name: "_id_max32";
288
+ readonly type: "string";
289
+ }];
290
+ readonly name: "getQuestionVotesAllCount";
291
+ readonly outputs: readonly [{
292
+ readonly name: "";
293
+ readonly type: "uint256";
294
+ }];
295
+ readonly payable: false;
296
+ readonly stateMutability: "view";
297
+ readonly type: "function";
298
+ }, {
299
+ readonly constant: true;
300
+ readonly inputs: readonly [{
301
+ readonly name: "_owner";
302
+ readonly type: "address";
303
+ }];
304
+ readonly name: "balanceOf";
305
+ readonly outputs: readonly [{
306
+ readonly name: "balance";
307
+ readonly type: "uint256";
308
+ }];
309
+ readonly payable: false;
310
+ readonly stateMutability: "view";
311
+ readonly type: "function";
312
+ }, {
313
+ readonly constant: true;
314
+ readonly inputs: readonly [];
315
+ readonly name: "lockupSeconds";
316
+ readonly outputs: readonly [{
317
+ readonly name: "";
318
+ readonly type: "uint64";
319
+ }];
320
+ readonly payable: false;
321
+ readonly stateMutability: "view";
322
+ readonly type: "function";
323
+ }, {
324
+ readonly constant: false;
325
+ readonly inputs: readonly [{
326
+ readonly name: "_recipients";
327
+ readonly type: "address[]";
328
+ }, {
329
+ readonly name: "_values";
330
+ readonly type: "uint256[]";
331
+ }];
332
+ readonly name: "rain";
333
+ readonly outputs: readonly [{
334
+ readonly name: "";
335
+ readonly type: "bool";
336
+ }];
337
+ readonly payable: false;
338
+ readonly stateMutability: "nonpayable";
339
+ readonly type: "function";
340
+ }, {
341
+ readonly constant: true;
342
+ readonly inputs: readonly [];
343
+ readonly name: "owner";
344
+ readonly outputs: readonly [{
345
+ readonly name: "";
346
+ readonly type: "address";
347
+ }];
348
+ readonly payable: false;
349
+ readonly stateMutability: "view";
350
+ readonly type: "function";
351
+ }, {
352
+ readonly constant: true;
353
+ readonly inputs: readonly [];
354
+ readonly name: "symbol";
355
+ readonly outputs: readonly [{
356
+ readonly name: "";
357
+ readonly type: "string";
358
+ }];
359
+ readonly payable: false;
360
+ readonly stateMutability: "view";
361
+ readonly type: "function";
362
+ }, {
363
+ readonly constant: false;
364
+ readonly inputs: readonly [];
365
+ readonly name: "initializeContract";
366
+ readonly outputs: readonly [];
367
+ readonly payable: false;
368
+ readonly stateMutability: "nonpayable";
369
+ readonly type: "function";
370
+ }, {
371
+ readonly constant: false;
372
+ readonly inputs: readonly [{
373
+ readonly name: "_to";
374
+ readonly type: "address";
375
+ }, {
376
+ readonly name: "_value";
377
+ readonly type: "uint256";
378
+ }];
379
+ readonly name: "transfer";
380
+ readonly outputs: readonly [{
381
+ readonly name: "";
382
+ readonly type: "bool";
383
+ }];
384
+ readonly payable: false;
385
+ readonly stateMutability: "nonpayable";
386
+ readonly type: "function";
387
+ }, {
388
+ readonly constant: true;
389
+ readonly inputs: readonly [];
390
+ readonly name: "addrBounty";
391
+ readonly outputs: readonly [{
392
+ readonly name: "";
393
+ readonly type: "address";
394
+ }];
395
+ readonly payable: false;
396
+ readonly stateMutability: "view";
397
+ readonly type: "function";
398
+ }, {
399
+ readonly constant: true;
400
+ readonly inputs: readonly [{
401
+ readonly name: "_addrss";
402
+ readonly type: "address";
403
+ }, {
404
+ readonly name: "_id_max32";
405
+ readonly type: "string";
406
+ }];
407
+ readonly name: "getRandomItems";
408
+ readonly outputs: readonly [{
409
+ readonly name: "";
410
+ readonly type: "uint256[]";
411
+ }];
412
+ readonly payable: false;
413
+ readonly stateMutability: "view";
414
+ readonly type: "function";
415
+ }, {
416
+ readonly constant: true;
417
+ readonly inputs: readonly [{
418
+ readonly name: "_id_max32";
419
+ readonly type: "string";
420
+ }];
421
+ readonly name: "getQuestion";
422
+ readonly outputs: readonly [{
423
+ readonly name: "";
424
+ readonly type: "uint256[4]";
425
+ }];
426
+ readonly payable: false;
427
+ readonly stateMutability: "view";
428
+ readonly type: "function";
429
+ }, {
430
+ readonly constant: false;
431
+ readonly inputs: readonly [{
432
+ readonly name: "_spender";
433
+ readonly type: "address";
434
+ }, {
435
+ readonly name: "_addedValue";
436
+ readonly type: "uint256";
437
+ }];
438
+ readonly name: "increaseApproval";
439
+ readonly outputs: readonly [{
440
+ readonly name: "";
441
+ readonly type: "bool";
442
+ }];
443
+ readonly payable: false;
444
+ readonly stateMutability: "nonpayable";
445
+ readonly type: "function";
446
+ }, {
447
+ readonly constant: true;
448
+ readonly inputs: readonly [{
449
+ readonly name: "_owner";
450
+ readonly type: "address";
451
+ }, {
452
+ readonly name: "_spender";
453
+ readonly type: "address";
454
+ }];
455
+ readonly name: "allowance";
456
+ readonly outputs: readonly [{
457
+ readonly name: "";
458
+ readonly type: "uint256";
459
+ }];
460
+ readonly payable: false;
461
+ readonly stateMutability: "view";
462
+ readonly type: "function";
463
+ }, {
464
+ readonly constant: false;
465
+ readonly inputs: readonly [{
466
+ readonly name: "_id_max32";
467
+ readonly type: "string";
468
+ }, {
469
+ readonly name: "_number";
470
+ readonly type: "uint128";
471
+ }, {
472
+ readonly name: "_amount";
473
+ readonly type: "uint256";
474
+ }];
475
+ readonly name: "vote";
476
+ readonly outputs: readonly [];
477
+ readonly payable: false;
478
+ readonly stateMutability: "nonpayable";
479
+ readonly type: "function";
480
+ }, {
481
+ readonly constant: false;
482
+ readonly inputs: readonly [{
483
+ readonly name: "newOwner";
484
+ readonly type: "address";
485
+ }];
486
+ readonly name: "transferOwnership";
487
+ readonly outputs: readonly [];
488
+ readonly payable: false;
489
+ readonly stateMutability: "nonpayable";
490
+ readonly type: "function";
491
+ }, {
492
+ readonly constant: true;
493
+ readonly inputs: readonly [{
494
+ readonly name: "_address";
495
+ readonly type: "address";
496
+ }];
497
+ readonly name: "getSaveData";
498
+ readonly outputs: readonly [{
499
+ readonly name: "";
500
+ readonly type: "string";
501
+ }];
502
+ readonly payable: false;
503
+ readonly stateMutability: "view";
504
+ readonly type: "function";
505
+ }, {
506
+ readonly inputs: readonly [];
507
+ readonly payable: false;
508
+ readonly stateMutability: "nonpayable";
509
+ readonly type: "constructor";
510
+ }, {
511
+ readonly anonymous: false;
512
+ readonly inputs: readonly [{
513
+ readonly indexed: true;
514
+ readonly name: "previousOwner";
515
+ readonly type: "address";
516
+ }, {
517
+ readonly indexed: true;
518
+ readonly name: "newOwner";
519
+ readonly type: "address";
520
+ }];
521
+ readonly name: "OwnershipTransferred";
522
+ readonly type: "event";
523
+ }, {
524
+ readonly anonymous: false;
525
+ readonly inputs: readonly [{
526
+ readonly indexed: true;
527
+ readonly name: "owner";
528
+ readonly type: "address";
529
+ }, {
530
+ readonly indexed: true;
531
+ readonly name: "spender";
532
+ readonly type: "address";
533
+ }, {
534
+ readonly indexed: false;
535
+ readonly name: "value";
536
+ readonly type: "uint256";
537
+ }];
538
+ readonly name: "Approval";
539
+ readonly type: "event";
540
+ }, {
541
+ readonly anonymous: false;
542
+ readonly inputs: readonly [{
543
+ readonly indexed: true;
544
+ readonly name: "from";
545
+ readonly type: "address";
546
+ }, {
547
+ readonly indexed: true;
548
+ readonly name: "to";
549
+ readonly type: "address";
550
+ }, {
551
+ readonly indexed: false;
552
+ readonly name: "value";
553
+ readonly type: "uint256";
554
+ }];
555
+ readonly name: "Transfer";
556
+ readonly type: "event";
557
+ }];
558
+ /**
559
+ * Type-safe ABI for KanadeCoin_json
560
+ */
561
+ export type KanadeCoin_jsonAbi = typeof KanadeCoin_jsonAbi;
562
+ /**
563
+ * Contract instance type for KanadeCoin_json
564
+ */
565
+ export type KanadeCoin_jsonContract = any;
566
+ /**
567
+ * KanadeCoin_json Contract Class
568
+ *
569
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
570
+ *
571
+ * @example
572
+ * ```typescript
573
+ * import { createPublicClient, createWalletClient, http } from 'viem';
574
+ * import { mainnet } from 'viem/chains';
575
+ * import { KanadeCoin_json } from 'KanadeCoin_json';
576
+ *
577
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
578
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
579
+ *
580
+ * const contract = new KanadeCoin_json('0x...', { publicClient, walletClient });
581
+ *
582
+ * // Read functions
583
+ * const result = await contract.balanceOf('0x...');
584
+ *
585
+ * // Write functions
586
+ * const hash = await contract.transfer('0x...', 1000n);
587
+ *
588
+ * // Simulate transactions (dry-run)
589
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
590
+ * console.log('Gas estimate:', simulation.request.gas);
591
+ *
592
+ * // Watch events
593
+ * const unwatch = contract.watch.Transfer((event) => {
594
+ * console.log('Transfer event:', event);
595
+ * });
596
+ * ```
597
+ */
598
+ export declare class KanadeCoin_json {
599
+ private contract;
600
+ private contractAddress;
601
+ private publicClient;
602
+ constructor(address: Address, clients: {
603
+ publicClient: PublicClient;
604
+ walletClient?: WalletClient;
605
+ });
606
+ /**
607
+ * Get the contract address
608
+ */
609
+ get address(): Address;
610
+ /**
611
+ * Get the underlying viem contract instance
612
+ */
613
+ getContract(): KanadeCoin_jsonContract;
614
+ /**
615
+ * name
616
+ * view
617
+ */
618
+ name(): Promise<string>;
619
+ /**
620
+ * contractStartTime
621
+ * view
622
+ */
623
+ contractStartTime(): Promise<bigint>;
624
+ /**
625
+ * totalSupply
626
+ * view
627
+ */
628
+ totalSupply(): Promise<bigint>;
629
+ /**
630
+ * addrLockUp
631
+ * view
632
+ */
633
+ addrLockUp(): Promise<`0x${string}`>;
634
+ /**
635
+ * atto
636
+ * view
637
+ */
638
+ atto(): Promise<bigint>;
639
+ /**
640
+ * addrAirDrop
641
+ * view
642
+ */
643
+ addrAirDrop(): Promise<`0x${string}`>;
644
+ /**
645
+ * getRandomBox
646
+ * view
647
+ */
648
+ getRandomBox(_id_max32: string): Promise<bigint[]>;
649
+ /**
650
+ * decimals
651
+ * view
652
+ */
653
+ decimals(): Promise<bigint>;
654
+ /**
655
+ * addrDevTeam
656
+ * view
657
+ */
658
+ addrDevTeam(): Promise<`0x${string}`>;
659
+ /**
660
+ * addrDistribution
661
+ * view
662
+ */
663
+ addrDistribution(): Promise<`0x${string}`>;
664
+ /**
665
+ * getQuestionVote
666
+ * view
667
+ */
668
+ getQuestionVote(_id_max32: string, _position: bigint): Promise<bigint[]>;
669
+ /**
670
+ * getQuestionVotesAllCount
671
+ * view
672
+ */
673
+ getQuestionVotesAllCount(_id_max32: string): Promise<bigint>;
674
+ /**
675
+ * balanceOf
676
+ * view
677
+ */
678
+ balanceOf(_owner: `0x${string}`): Promise<bigint>;
679
+ /**
680
+ * lockupSeconds
681
+ * view
682
+ */
683
+ lockupSeconds(): Promise<bigint>;
684
+ /**
685
+ * owner
686
+ * view
687
+ */
688
+ owner(): Promise<`0x${string}`>;
689
+ /**
690
+ * symbol
691
+ * view
692
+ */
693
+ symbol(): Promise<string>;
694
+ /**
695
+ * addrBounty
696
+ * view
697
+ */
698
+ addrBounty(): Promise<`0x${string}`>;
699
+ /**
700
+ * getRandomItems
701
+ * view
702
+ */
703
+ getRandomItems(_addrss: `0x${string}`, _id_max32: string): Promise<bigint[]>;
704
+ /**
705
+ * getQuestion
706
+ * view
707
+ */
708
+ getQuestion(_id_max32: string): Promise<bigint[]>;
709
+ /**
710
+ * allowance
711
+ * view
712
+ */
713
+ allowance(_owner: `0x${string}`, _spender: `0x${string}`): Promise<bigint>;
714
+ /**
715
+ * getSaveData
716
+ * view
717
+ */
718
+ getSaveData(_address: `0x${string}`): Promise<string>;
719
+ /**
720
+ * approve
721
+ * nonpayable
722
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
723
+ */
724
+ approve(_spender: `0x${string}`, _value: bigint, options?: {
725
+ accessList?: import('viem').AccessList;
726
+ authorizationList?: import('viem').AuthorizationList;
727
+ chain?: import('viem').Chain | null;
728
+ dataSuffix?: `0x${string}`;
729
+ gas?: bigint;
730
+ gasPrice?: bigint;
731
+ maxFeePerGas?: bigint;
732
+ maxPriorityFeePerGas?: bigint;
733
+ nonce?: number;
734
+ value?: bigint;
735
+ }): Promise<`0x${string}`>;
736
+ /**
737
+ * putSaveData
738
+ * nonpayable
739
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
740
+ */
741
+ putSaveData(_text: string, options?: {
742
+ accessList?: import('viem').AccessList;
743
+ authorizationList?: import('viem').AuthorizationList;
744
+ chain?: import('viem').Chain | null;
745
+ dataSuffix?: `0x${string}`;
746
+ gas?: bigint;
747
+ gasPrice?: bigint;
748
+ maxFeePerGas?: bigint;
749
+ maxPriorityFeePerGas?: bigint;
750
+ nonce?: number;
751
+ value?: bigint;
752
+ }): Promise<`0x${string}`>;
753
+ /**
754
+ * createRandomBox
755
+ * nonpayable
756
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
757
+ */
758
+ createRandomBox(_id_max32: string, _recipient: `0x${string}`, _volume: bigint, _amount: bigint, _finish: bigint, options?: {
759
+ accessList?: import('viem').AccessList;
760
+ authorizationList?: import('viem').AuthorizationList;
761
+ chain?: import('viem').Chain | null;
762
+ dataSuffix?: `0x${string}`;
763
+ gas?: bigint;
764
+ gasPrice?: bigint;
765
+ maxFeePerGas?: bigint;
766
+ maxPriorityFeePerGas?: bigint;
767
+ nonce?: number;
768
+ value?: bigint;
769
+ }): Promise<`0x${string}`>;
770
+ /**
771
+ * transferFrom
772
+ * nonpayable
773
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
774
+ */
775
+ transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
776
+ accessList?: import('viem').AccessList;
777
+ authorizationList?: import('viem').AuthorizationList;
778
+ chain?: import('viem').Chain | null;
779
+ dataSuffix?: `0x${string}`;
780
+ gas?: bigint;
781
+ gasPrice?: bigint;
782
+ maxFeePerGas?: bigint;
783
+ maxPriorityFeePerGas?: bigint;
784
+ nonce?: number;
785
+ value?: bigint;
786
+ }): Promise<`0x${string}`>;
787
+ /**
788
+ * createQuestion
789
+ * nonpayable
790
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
791
+ */
792
+ createQuestion(_id_max32: string, _recipient: `0x${string}`, _finish: bigint, _under: bigint, options?: {
793
+ accessList?: import('viem').AccessList;
794
+ authorizationList?: import('viem').AuthorizationList;
795
+ chain?: import('viem').Chain | null;
796
+ dataSuffix?: `0x${string}`;
797
+ gas?: bigint;
798
+ gasPrice?: bigint;
799
+ maxFeePerGas?: bigint;
800
+ maxPriorityFeePerGas?: bigint;
801
+ nonce?: number;
802
+ value?: bigint;
803
+ }): Promise<`0x${string}`>;
804
+ /**
805
+ * unLockup
806
+ * nonpayable
807
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
808
+ */
809
+ unLockup(options?: {
810
+ accessList?: import('viem').AccessList;
811
+ authorizationList?: import('viem').AuthorizationList;
812
+ chain?: import('viem').Chain | null;
813
+ dataSuffix?: `0x${string}`;
814
+ gas?: bigint;
815
+ gasPrice?: bigint;
816
+ maxFeePerGas?: bigint;
817
+ maxPriorityFeePerGas?: bigint;
818
+ nonce?: number;
819
+ value?: bigint;
820
+ }): Promise<`0x${string}`>;
821
+ /**
822
+ * drawRandomItem
823
+ * nonpayable
824
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
825
+ */
826
+ drawRandomItem(_id_max32: string, _count: bigint, options?: {
827
+ accessList?: import('viem').AccessList;
828
+ authorizationList?: import('viem').AuthorizationList;
829
+ chain?: import('viem').Chain | null;
830
+ dataSuffix?: `0x${string}`;
831
+ gas?: bigint;
832
+ gasPrice?: bigint;
833
+ maxFeePerGas?: bigint;
834
+ maxPriorityFeePerGas?: bigint;
835
+ nonce?: number;
836
+ value?: bigint;
837
+ }): Promise<`0x${string}`>;
838
+ /**
839
+ * airDrop
840
+ * nonpayable
841
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
842
+ */
843
+ airDrop(_recipients: `0x${string}`[], _values: bigint[], options?: {
844
+ accessList?: import('viem').AccessList;
845
+ authorizationList?: import('viem').AuthorizationList;
846
+ chain?: import('viem').Chain | null;
847
+ dataSuffix?: `0x${string}`;
848
+ gas?: bigint;
849
+ gasPrice?: bigint;
850
+ maxFeePerGas?: bigint;
851
+ maxPriorityFeePerGas?: bigint;
852
+ nonce?: number;
853
+ value?: bigint;
854
+ }): Promise<`0x${string}`>;
855
+ /**
856
+ * decreaseApproval
857
+ * nonpayable
858
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
859
+ */
860
+ decreaseApproval(_spender: `0x${string}`, _subtractedValue: bigint, options?: {
861
+ accessList?: import('viem').AccessList;
862
+ authorizationList?: import('viem').AuthorizationList;
863
+ chain?: import('viem').Chain | null;
864
+ dataSuffix?: `0x${string}`;
865
+ gas?: bigint;
866
+ gasPrice?: bigint;
867
+ maxFeePerGas?: bigint;
868
+ maxPriorityFeePerGas?: bigint;
869
+ nonce?: number;
870
+ value?: bigint;
871
+ }): Promise<`0x${string}`>;
872
+ /**
873
+ * rain
874
+ * nonpayable
875
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
876
+ */
877
+ rain(_recipients: `0x${string}`[], _values: bigint[], options?: {
878
+ accessList?: import('viem').AccessList;
879
+ authorizationList?: import('viem').AuthorizationList;
880
+ chain?: import('viem').Chain | null;
881
+ dataSuffix?: `0x${string}`;
882
+ gas?: bigint;
883
+ gasPrice?: bigint;
884
+ maxFeePerGas?: bigint;
885
+ maxPriorityFeePerGas?: bigint;
886
+ nonce?: number;
887
+ value?: bigint;
888
+ }): Promise<`0x${string}`>;
889
+ /**
890
+ * initializeContract
891
+ * nonpayable
892
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
893
+ */
894
+ initializeContract(options?: {
895
+ accessList?: import('viem').AccessList;
896
+ authorizationList?: import('viem').AuthorizationList;
897
+ chain?: import('viem').Chain | null;
898
+ dataSuffix?: `0x${string}`;
899
+ gas?: bigint;
900
+ gasPrice?: bigint;
901
+ maxFeePerGas?: bigint;
902
+ maxPriorityFeePerGas?: bigint;
903
+ nonce?: number;
904
+ value?: bigint;
905
+ }): Promise<`0x${string}`>;
906
+ /**
907
+ * transfer
908
+ * nonpayable
909
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
910
+ */
911
+ transfer(_to: `0x${string}`, _value: bigint, options?: {
912
+ accessList?: import('viem').AccessList;
913
+ authorizationList?: import('viem').AuthorizationList;
914
+ chain?: import('viem').Chain | null;
915
+ dataSuffix?: `0x${string}`;
916
+ gas?: bigint;
917
+ gasPrice?: bigint;
918
+ maxFeePerGas?: bigint;
919
+ maxPriorityFeePerGas?: bigint;
920
+ nonce?: number;
921
+ value?: bigint;
922
+ }): Promise<`0x${string}`>;
923
+ /**
924
+ * increaseApproval
925
+ * nonpayable
926
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
927
+ */
928
+ increaseApproval(_spender: `0x${string}`, _addedValue: bigint, options?: {
929
+ accessList?: import('viem').AccessList;
930
+ authorizationList?: import('viem').AuthorizationList;
931
+ chain?: import('viem').Chain | null;
932
+ dataSuffix?: `0x${string}`;
933
+ gas?: bigint;
934
+ gasPrice?: bigint;
935
+ maxFeePerGas?: bigint;
936
+ maxPriorityFeePerGas?: bigint;
937
+ nonce?: number;
938
+ value?: bigint;
939
+ }): Promise<`0x${string}`>;
940
+ /**
941
+ * vote
942
+ * nonpayable
943
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
944
+ */
945
+ vote(_id_max32: string, _number: bigint, _amount: bigint, options?: {
946
+ accessList?: import('viem').AccessList;
947
+ authorizationList?: import('viem').AuthorizationList;
948
+ chain?: import('viem').Chain | null;
949
+ dataSuffix?: `0x${string}`;
950
+ gas?: bigint;
951
+ gasPrice?: bigint;
952
+ maxFeePerGas?: bigint;
953
+ maxPriorityFeePerGas?: bigint;
954
+ nonce?: number;
955
+ value?: bigint;
956
+ }): Promise<`0x${string}`>;
957
+ /**
958
+ * transferOwnership
959
+ * nonpayable
960
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
961
+ */
962
+ transferOwnership(newOwner: `0x${string}`, options?: {
963
+ accessList?: import('viem').AccessList;
964
+ authorizationList?: import('viem').AuthorizationList;
965
+ chain?: import('viem').Chain | null;
966
+ dataSuffix?: `0x${string}`;
967
+ gas?: bigint;
968
+ gasPrice?: bigint;
969
+ maxFeePerGas?: bigint;
970
+ maxPriorityFeePerGas?: bigint;
971
+ nonce?: number;
972
+ value?: bigint;
973
+ }): Promise<`0x${string}`>;
974
+ /**
975
+ * Simulate contract write operations (dry-run without sending transaction)
976
+ *
977
+ * @example
978
+ * const result = await contract.simulate.transfer('0x...', 1000n);
979
+ * console.log('Gas estimate:', result.request.gas);
980
+ * console.log('Would succeed:', result.result);
981
+ */
982
+ get simulate(): {
983
+ /**
984
+ * Simulate approve
985
+ * Returns gas estimate and result without sending transaction
986
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
987
+ */
988
+ approve(_spender: `0x${string}`, _value: bigint, options?: {
989
+ accessList?: import("viem").AccessList;
990
+ authorizationList?: import("viem").AuthorizationList;
991
+ chain?: import("viem").Chain | null;
992
+ dataSuffix?: `0x${string}`;
993
+ gas?: bigint;
994
+ gasPrice?: bigint;
995
+ maxFeePerGas?: bigint;
996
+ maxPriorityFeePerGas?: bigint;
997
+ nonce?: number;
998
+ value?: bigint;
999
+ }): Promise<boolean>;
1000
+ /**
1001
+ * Simulate putSaveData
1002
+ * Returns gas estimate and result without sending transaction
1003
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1004
+ */
1005
+ putSaveData(_text: string, options?: {
1006
+ accessList?: import("viem").AccessList;
1007
+ authorizationList?: import("viem").AuthorizationList;
1008
+ chain?: import("viem").Chain | null;
1009
+ dataSuffix?: `0x${string}`;
1010
+ gas?: bigint;
1011
+ gasPrice?: bigint;
1012
+ maxFeePerGas?: bigint;
1013
+ maxPriorityFeePerGas?: bigint;
1014
+ nonce?: number;
1015
+ value?: bigint;
1016
+ }): Promise<void>;
1017
+ /**
1018
+ * Simulate createRandomBox
1019
+ * Returns gas estimate and result without sending transaction
1020
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1021
+ */
1022
+ createRandomBox(_id_max32: string, _recipient: `0x${string}`, _volume: bigint, _amount: bigint, _finish: bigint, options?: {
1023
+ accessList?: import("viem").AccessList;
1024
+ authorizationList?: import("viem").AuthorizationList;
1025
+ chain?: import("viem").Chain | null;
1026
+ dataSuffix?: `0x${string}`;
1027
+ gas?: bigint;
1028
+ gasPrice?: bigint;
1029
+ maxFeePerGas?: bigint;
1030
+ maxPriorityFeePerGas?: bigint;
1031
+ nonce?: number;
1032
+ value?: bigint;
1033
+ }): Promise<void>;
1034
+ /**
1035
+ * Simulate transferFrom
1036
+ * Returns gas estimate and result without sending transaction
1037
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1038
+ */
1039
+ transferFrom(_from: `0x${string}`, _to: `0x${string}`, _value: bigint, options?: {
1040
+ accessList?: import("viem").AccessList;
1041
+ authorizationList?: import("viem").AuthorizationList;
1042
+ chain?: import("viem").Chain | null;
1043
+ dataSuffix?: `0x${string}`;
1044
+ gas?: bigint;
1045
+ gasPrice?: bigint;
1046
+ maxFeePerGas?: bigint;
1047
+ maxPriorityFeePerGas?: bigint;
1048
+ nonce?: number;
1049
+ value?: bigint;
1050
+ }): Promise<boolean>;
1051
+ /**
1052
+ * Simulate createQuestion
1053
+ * Returns gas estimate and result without sending transaction
1054
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1055
+ */
1056
+ createQuestion(_id_max32: string, _recipient: `0x${string}`, _finish: bigint, _under: bigint, options?: {
1057
+ accessList?: import("viem").AccessList;
1058
+ authorizationList?: import("viem").AuthorizationList;
1059
+ chain?: import("viem").Chain | null;
1060
+ dataSuffix?: `0x${string}`;
1061
+ gas?: bigint;
1062
+ gasPrice?: bigint;
1063
+ maxFeePerGas?: bigint;
1064
+ maxPriorityFeePerGas?: bigint;
1065
+ nonce?: number;
1066
+ value?: bigint;
1067
+ }): Promise<void>;
1068
+ /**
1069
+ * Simulate unLockup
1070
+ * Returns gas estimate and result without sending transaction
1071
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1072
+ */
1073
+ unLockup(options?: {
1074
+ accessList?: import("viem").AccessList;
1075
+ authorizationList?: import("viem").AuthorizationList;
1076
+ chain?: import("viem").Chain | null;
1077
+ dataSuffix?: `0x${string}`;
1078
+ gas?: bigint;
1079
+ gasPrice?: bigint;
1080
+ maxFeePerGas?: bigint;
1081
+ maxPriorityFeePerGas?: bigint;
1082
+ nonce?: number;
1083
+ value?: bigint;
1084
+ }): Promise<void>;
1085
+ /**
1086
+ * Simulate drawRandomItem
1087
+ * Returns gas estimate and result without sending transaction
1088
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1089
+ */
1090
+ drawRandomItem(_id_max32: string, _count: bigint, options?: {
1091
+ accessList?: import("viem").AccessList;
1092
+ authorizationList?: import("viem").AuthorizationList;
1093
+ chain?: import("viem").Chain | null;
1094
+ dataSuffix?: `0x${string}`;
1095
+ gas?: bigint;
1096
+ gasPrice?: bigint;
1097
+ maxFeePerGas?: bigint;
1098
+ maxPriorityFeePerGas?: bigint;
1099
+ nonce?: number;
1100
+ value?: bigint;
1101
+ }): Promise<void>;
1102
+ /**
1103
+ * Simulate airDrop
1104
+ * Returns gas estimate and result without sending transaction
1105
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1106
+ */
1107
+ airDrop(_recipients: `0x${string}`[], _values: bigint[], options?: {
1108
+ accessList?: import("viem").AccessList;
1109
+ authorizationList?: import("viem").AuthorizationList;
1110
+ chain?: import("viem").Chain | null;
1111
+ dataSuffix?: `0x${string}`;
1112
+ gas?: bigint;
1113
+ gasPrice?: bigint;
1114
+ maxFeePerGas?: bigint;
1115
+ maxPriorityFeePerGas?: bigint;
1116
+ nonce?: number;
1117
+ value?: bigint;
1118
+ }): Promise<boolean>;
1119
+ /**
1120
+ * Simulate decreaseApproval
1121
+ * Returns gas estimate and result without sending transaction
1122
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1123
+ */
1124
+ decreaseApproval(_spender: `0x${string}`, _subtractedValue: bigint, options?: {
1125
+ accessList?: import("viem").AccessList;
1126
+ authorizationList?: import("viem").AuthorizationList;
1127
+ chain?: import("viem").Chain | null;
1128
+ dataSuffix?: `0x${string}`;
1129
+ gas?: bigint;
1130
+ gasPrice?: bigint;
1131
+ maxFeePerGas?: bigint;
1132
+ maxPriorityFeePerGas?: bigint;
1133
+ nonce?: number;
1134
+ value?: bigint;
1135
+ }): Promise<boolean>;
1136
+ /**
1137
+ * Simulate rain
1138
+ * Returns gas estimate and result without sending transaction
1139
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1140
+ */
1141
+ rain(_recipients: `0x${string}`[], _values: bigint[], options?: {
1142
+ accessList?: import("viem").AccessList;
1143
+ authorizationList?: import("viem").AuthorizationList;
1144
+ chain?: import("viem").Chain | null;
1145
+ dataSuffix?: `0x${string}`;
1146
+ gas?: bigint;
1147
+ gasPrice?: bigint;
1148
+ maxFeePerGas?: bigint;
1149
+ maxPriorityFeePerGas?: bigint;
1150
+ nonce?: number;
1151
+ value?: bigint;
1152
+ }): Promise<boolean>;
1153
+ /**
1154
+ * Simulate initializeContract
1155
+ * Returns gas estimate and result without sending transaction
1156
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1157
+ */
1158
+ initializeContract(options?: {
1159
+ accessList?: import("viem").AccessList;
1160
+ authorizationList?: import("viem").AuthorizationList;
1161
+ chain?: import("viem").Chain | null;
1162
+ dataSuffix?: `0x${string}`;
1163
+ gas?: bigint;
1164
+ gasPrice?: bigint;
1165
+ maxFeePerGas?: bigint;
1166
+ maxPriorityFeePerGas?: bigint;
1167
+ nonce?: number;
1168
+ value?: bigint;
1169
+ }): Promise<void>;
1170
+ /**
1171
+ * Simulate transfer
1172
+ * Returns gas estimate and result without sending transaction
1173
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1174
+ */
1175
+ transfer(_to: `0x${string}`, _value: bigint, options?: {
1176
+ accessList?: import("viem").AccessList;
1177
+ authorizationList?: import("viem").AuthorizationList;
1178
+ chain?: import("viem").Chain | null;
1179
+ dataSuffix?: `0x${string}`;
1180
+ gas?: bigint;
1181
+ gasPrice?: bigint;
1182
+ maxFeePerGas?: bigint;
1183
+ maxPriorityFeePerGas?: bigint;
1184
+ nonce?: number;
1185
+ value?: bigint;
1186
+ }): Promise<boolean>;
1187
+ /**
1188
+ * Simulate increaseApproval
1189
+ * Returns gas estimate and result without sending transaction
1190
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1191
+ */
1192
+ increaseApproval(_spender: `0x${string}`, _addedValue: bigint, options?: {
1193
+ accessList?: import("viem").AccessList;
1194
+ authorizationList?: import("viem").AuthorizationList;
1195
+ chain?: import("viem").Chain | null;
1196
+ dataSuffix?: `0x${string}`;
1197
+ gas?: bigint;
1198
+ gasPrice?: bigint;
1199
+ maxFeePerGas?: bigint;
1200
+ maxPriorityFeePerGas?: bigint;
1201
+ nonce?: number;
1202
+ value?: bigint;
1203
+ }): Promise<boolean>;
1204
+ /**
1205
+ * Simulate vote
1206
+ * Returns gas estimate and result without sending transaction
1207
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1208
+ */
1209
+ vote(_id_max32: string, _number: bigint, _amount: bigint, options?: {
1210
+ accessList?: import("viem").AccessList;
1211
+ authorizationList?: import("viem").AuthorizationList;
1212
+ chain?: import("viem").Chain | null;
1213
+ dataSuffix?: `0x${string}`;
1214
+ gas?: bigint;
1215
+ gasPrice?: bigint;
1216
+ maxFeePerGas?: bigint;
1217
+ maxPriorityFeePerGas?: bigint;
1218
+ nonce?: number;
1219
+ value?: bigint;
1220
+ }): Promise<void>;
1221
+ /**
1222
+ * Simulate transferOwnership
1223
+ * Returns gas estimate and result without sending transaction
1224
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1225
+ */
1226
+ transferOwnership(newOwner: `0x${string}`, options?: {
1227
+ accessList?: import("viem").AccessList;
1228
+ authorizationList?: import("viem").AuthorizationList;
1229
+ chain?: import("viem").Chain | null;
1230
+ dataSuffix?: `0x${string}`;
1231
+ gas?: bigint;
1232
+ gasPrice?: bigint;
1233
+ maxFeePerGas?: bigint;
1234
+ maxPriorityFeePerGas?: bigint;
1235
+ nonce?: number;
1236
+ value?: bigint;
1237
+ }): Promise<void>;
1238
+ };
1239
+ /**
1240
+ * Watch contract events
1241
+ *
1242
+ * @example
1243
+ * // Watch all Transfer events
1244
+ * const unwatch = contract.watch.Transfer((event) => {
1245
+ * console.log('Transfer:', event);
1246
+ * });
1247
+ *
1248
+ * // Stop watching
1249
+ * unwatch();
1250
+ */
1251
+ get watch(): {
1252
+ /**
1253
+ * Watch OwnershipTransferred events
1254
+ * @param callback Function to call when event is emitted
1255
+ * @param filter Optional filter for indexed parameters
1256
+ * @returns Unwatch function to stop listening
1257
+ */
1258
+ OwnershipTransferred: (callback: (event: {
1259
+ previousOwner: `0x${string}`;
1260
+ newOwner: `0x${string}`;
1261
+ }) => void, filter?: {
1262
+ previousOwner: `0x${string}`;
1263
+ newOwner: `0x${string}`;
1264
+ }) => () => void;
1265
+ /**
1266
+ * Watch Approval events
1267
+ * @param callback Function to call when event is emitted
1268
+ * @param filter Optional filter for indexed parameters
1269
+ * @returns Unwatch function to stop listening
1270
+ */
1271
+ Approval: (callback: (event: {
1272
+ owner: `0x${string}`;
1273
+ spender: `0x${string}`;
1274
+ value: bigint;
1275
+ }) => void, filter?: {
1276
+ owner: `0x${string}`;
1277
+ spender: `0x${string}`;
1278
+ }) => () => void;
1279
+ /**
1280
+ * Watch Transfer events
1281
+ * @param callback Function to call when event is emitted
1282
+ * @param filter Optional filter for indexed parameters
1283
+ * @returns Unwatch function to stop listening
1284
+ */
1285
+ Transfer: (callback: (event: {
1286
+ from: `0x${string}`;
1287
+ to: `0x${string}`;
1288
+ value: bigint;
1289
+ }) => void, filter?: {
1290
+ from: `0x${string}`;
1291
+ to: `0x${string}`;
1292
+ }) => () => void;
1293
+ };
1294
+ }