@bbuilders/djeon402-core 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.
@@ -0,0 +1,1051 @@
1
+ import { Address, Hex, Hash } from 'viem';
2
+
3
+ declare const DJEON402_ABI: readonly [{
4
+ readonly type: "function";
5
+ readonly name: "name";
6
+ readonly inputs: readonly [];
7
+ readonly outputs: readonly [{
8
+ readonly type: "string";
9
+ }];
10
+ readonly stateMutability: "view";
11
+ }, {
12
+ readonly type: "function";
13
+ readonly name: "symbol";
14
+ readonly inputs: readonly [];
15
+ readonly outputs: readonly [{
16
+ readonly type: "string";
17
+ }];
18
+ readonly stateMutability: "view";
19
+ }, {
20
+ readonly type: "function";
21
+ readonly name: "decimals";
22
+ readonly inputs: readonly [];
23
+ readonly outputs: readonly [{
24
+ readonly type: "uint8";
25
+ }];
26
+ readonly stateMutability: "view";
27
+ }, {
28
+ readonly type: "function";
29
+ readonly name: "totalSupply";
30
+ readonly inputs: readonly [];
31
+ readonly outputs: readonly [{
32
+ readonly type: "uint256";
33
+ }];
34
+ readonly stateMutability: "view";
35
+ }, {
36
+ readonly type: "function";
37
+ readonly name: "balanceOf";
38
+ readonly inputs: readonly [{
39
+ readonly name: "account";
40
+ readonly type: "address";
41
+ }];
42
+ readonly outputs: readonly [{
43
+ readonly type: "uint256";
44
+ }];
45
+ readonly stateMutability: "view";
46
+ }, {
47
+ readonly type: "function";
48
+ readonly name: "allowance";
49
+ readonly inputs: readonly [{
50
+ readonly name: "owner";
51
+ readonly type: "address";
52
+ }, {
53
+ readonly name: "spender";
54
+ readonly type: "address";
55
+ }];
56
+ readonly outputs: readonly [{
57
+ readonly type: "uint256";
58
+ }];
59
+ readonly stateMutability: "view";
60
+ }, {
61
+ readonly type: "function";
62
+ readonly name: "transfer";
63
+ readonly inputs: readonly [{
64
+ readonly name: "to";
65
+ readonly type: "address";
66
+ }, {
67
+ readonly name: "amount";
68
+ readonly type: "uint256";
69
+ }];
70
+ readonly outputs: readonly [{
71
+ readonly type: "bool";
72
+ }];
73
+ readonly stateMutability: "nonpayable";
74
+ }, {
75
+ readonly type: "function";
76
+ readonly name: "approve";
77
+ readonly inputs: readonly [{
78
+ readonly name: "spender";
79
+ readonly type: "address";
80
+ }, {
81
+ readonly name: "amount";
82
+ readonly type: "uint256";
83
+ }];
84
+ readonly outputs: readonly [{
85
+ readonly type: "bool";
86
+ }];
87
+ readonly stateMutability: "nonpayable";
88
+ }, {
89
+ readonly type: "function";
90
+ readonly name: "transferFrom";
91
+ readonly inputs: readonly [{
92
+ readonly name: "from";
93
+ readonly type: "address";
94
+ }, {
95
+ readonly name: "to";
96
+ readonly type: "address";
97
+ }, {
98
+ readonly name: "amount";
99
+ readonly type: "uint256";
100
+ }];
101
+ readonly outputs: readonly [{
102
+ readonly type: "bool";
103
+ }];
104
+ readonly stateMutability: "nonpayable";
105
+ }, {
106
+ readonly type: "function";
107
+ readonly name: "permit";
108
+ readonly inputs: readonly [{
109
+ readonly name: "owner";
110
+ readonly type: "address";
111
+ }, {
112
+ readonly name: "spender";
113
+ readonly type: "address";
114
+ }, {
115
+ readonly name: "value";
116
+ readonly type: "uint256";
117
+ }, {
118
+ readonly name: "deadline";
119
+ readonly type: "uint256";
120
+ }, {
121
+ readonly name: "v";
122
+ readonly type: "uint8";
123
+ }, {
124
+ readonly name: "r";
125
+ readonly type: "bytes32";
126
+ }, {
127
+ readonly name: "s";
128
+ readonly type: "bytes32";
129
+ }];
130
+ readonly outputs: readonly [];
131
+ readonly stateMutability: "nonpayable";
132
+ }, {
133
+ readonly type: "function";
134
+ readonly name: "nonces";
135
+ readonly inputs: readonly [{
136
+ readonly name: "owner";
137
+ readonly type: "address";
138
+ }];
139
+ readonly outputs: readonly [{
140
+ readonly type: "uint256";
141
+ }];
142
+ readonly stateMutability: "view";
143
+ }, {
144
+ readonly type: "function";
145
+ readonly name: "DOMAIN_SEPARATOR";
146
+ readonly inputs: readonly [];
147
+ readonly outputs: readonly [{
148
+ readonly type: "bytes32";
149
+ }];
150
+ readonly stateMutability: "view";
151
+ }, {
152
+ readonly type: "function";
153
+ readonly name: "transferWithAuthorization";
154
+ readonly inputs: readonly [{
155
+ readonly name: "from";
156
+ readonly type: "address";
157
+ }, {
158
+ readonly name: "to";
159
+ readonly type: "address";
160
+ }, {
161
+ readonly name: "value";
162
+ readonly type: "uint256";
163
+ }, {
164
+ readonly name: "validAfter";
165
+ readonly type: "uint256";
166
+ }, {
167
+ readonly name: "validBefore";
168
+ readonly type: "uint256";
169
+ }, {
170
+ readonly name: "nonce";
171
+ readonly type: "bytes32";
172
+ }, {
173
+ readonly name: "v";
174
+ readonly type: "uint8";
175
+ }, {
176
+ readonly name: "r";
177
+ readonly type: "bytes32";
178
+ }, {
179
+ readonly name: "s";
180
+ readonly type: "bytes32";
181
+ }];
182
+ readonly outputs: readonly [];
183
+ readonly stateMutability: "nonpayable";
184
+ }, {
185
+ readonly type: "function";
186
+ readonly name: "receiveWithAuthorization";
187
+ readonly inputs: readonly [{
188
+ readonly name: "from";
189
+ readonly type: "address";
190
+ }, {
191
+ readonly name: "to";
192
+ readonly type: "address";
193
+ }, {
194
+ readonly name: "value";
195
+ readonly type: "uint256";
196
+ }, {
197
+ readonly name: "validAfter";
198
+ readonly type: "uint256";
199
+ }, {
200
+ readonly name: "validBefore";
201
+ readonly type: "uint256";
202
+ }, {
203
+ readonly name: "nonce";
204
+ readonly type: "bytes32";
205
+ }, {
206
+ readonly name: "v";
207
+ readonly type: "uint8";
208
+ }, {
209
+ readonly name: "r";
210
+ readonly type: "bytes32";
211
+ }, {
212
+ readonly name: "s";
213
+ readonly type: "bytes32";
214
+ }];
215
+ readonly outputs: readonly [];
216
+ readonly stateMutability: "nonpayable";
217
+ }, {
218
+ readonly type: "function";
219
+ readonly name: "cancelAuthorization";
220
+ readonly inputs: readonly [{
221
+ readonly name: "authorizer";
222
+ readonly type: "address";
223
+ }, {
224
+ readonly name: "nonce";
225
+ readonly type: "bytes32";
226
+ }, {
227
+ readonly name: "v";
228
+ readonly type: "uint8";
229
+ }, {
230
+ readonly name: "r";
231
+ readonly type: "bytes32";
232
+ }, {
233
+ readonly name: "s";
234
+ readonly type: "bytes32";
235
+ }];
236
+ readonly outputs: readonly [];
237
+ readonly stateMutability: "nonpayable";
238
+ }, {
239
+ readonly type: "function";
240
+ readonly name: "authorizationState";
241
+ readonly inputs: readonly [{
242
+ readonly name: "authorizer";
243
+ readonly type: "address";
244
+ }, {
245
+ readonly name: "nonce";
246
+ readonly type: "bytes32";
247
+ }];
248
+ readonly outputs: readonly [{
249
+ readonly type: "bool";
250
+ }];
251
+ readonly stateMutability: "view";
252
+ }, {
253
+ readonly type: "function";
254
+ readonly name: "mint";
255
+ readonly inputs: readonly [{
256
+ readonly name: "to";
257
+ readonly type: "address";
258
+ }, {
259
+ readonly name: "amount";
260
+ readonly type: "uint256";
261
+ }];
262
+ readonly outputs: readonly [];
263
+ readonly stateMutability: "nonpayable";
264
+ }, {
265
+ readonly type: "function";
266
+ readonly name: "burn";
267
+ readonly inputs: readonly [{
268
+ readonly name: "amount";
269
+ readonly type: "uint256";
270
+ }];
271
+ readonly outputs: readonly [];
272
+ readonly stateMutability: "nonpayable";
273
+ }, {
274
+ readonly type: "function";
275
+ readonly name: "blacklist";
276
+ readonly inputs: readonly [{
277
+ readonly name: "account";
278
+ readonly type: "address";
279
+ }];
280
+ readonly outputs: readonly [];
281
+ readonly stateMutability: "nonpayable";
282
+ }, {
283
+ readonly type: "function";
284
+ readonly name: "unBlacklist";
285
+ readonly inputs: readonly [{
286
+ readonly name: "account";
287
+ readonly type: "address";
288
+ }];
289
+ readonly outputs: readonly [];
290
+ readonly stateMutability: "nonpayable";
291
+ }, {
292
+ readonly type: "function";
293
+ readonly name: "isBlacklisted";
294
+ readonly inputs: readonly [{
295
+ readonly name: "account";
296
+ readonly type: "address";
297
+ }];
298
+ readonly outputs: readonly [{
299
+ readonly type: "bool";
300
+ }];
301
+ readonly stateMutability: "view";
302
+ }, {
303
+ readonly type: "function";
304
+ readonly name: "pause";
305
+ readonly inputs: readonly [];
306
+ readonly outputs: readonly [];
307
+ readonly stateMutability: "nonpayable";
308
+ }, {
309
+ readonly type: "function";
310
+ readonly name: "unpause";
311
+ readonly inputs: readonly [];
312
+ readonly outputs: readonly [];
313
+ readonly stateMutability: "nonpayable";
314
+ }, {
315
+ readonly type: "function";
316
+ readonly name: "paused";
317
+ readonly inputs: readonly [];
318
+ readonly outputs: readonly [{
319
+ readonly type: "bool";
320
+ }];
321
+ readonly stateMutability: "view";
322
+ }, {
323
+ readonly type: "function";
324
+ readonly name: "hasRole";
325
+ readonly inputs: readonly [{
326
+ readonly name: "role";
327
+ readonly type: "bytes32";
328
+ }, {
329
+ readonly name: "account";
330
+ readonly type: "address";
331
+ }];
332
+ readonly outputs: readonly [{
333
+ readonly type: "bool";
334
+ }];
335
+ readonly stateMutability: "view";
336
+ }, {
337
+ readonly type: "function";
338
+ readonly name: "grantRole";
339
+ readonly inputs: readonly [{
340
+ readonly name: "role";
341
+ readonly type: "bytes32";
342
+ }, {
343
+ readonly name: "account";
344
+ readonly type: "address";
345
+ }];
346
+ readonly outputs: readonly [];
347
+ readonly stateMutability: "nonpayable";
348
+ }, {
349
+ readonly type: "function";
350
+ readonly name: "revokeRole";
351
+ readonly inputs: readonly [{
352
+ readonly name: "role";
353
+ readonly type: "bytes32";
354
+ }, {
355
+ readonly name: "account";
356
+ readonly type: "address";
357
+ }];
358
+ readonly outputs: readonly [];
359
+ readonly stateMutability: "nonpayable";
360
+ }, {
361
+ readonly type: "function";
362
+ readonly name: "renounceRole";
363
+ readonly inputs: readonly [{
364
+ readonly name: "role";
365
+ readonly type: "bytes32";
366
+ }];
367
+ readonly outputs: readonly [];
368
+ readonly stateMutability: "nonpayable";
369
+ }, {
370
+ readonly type: "function";
371
+ readonly name: "DEFAULT_ADMIN_ROLE";
372
+ readonly inputs: readonly [];
373
+ readonly outputs: readonly [{
374
+ readonly type: "bytes32";
375
+ }];
376
+ readonly stateMutability: "pure";
377
+ }, {
378
+ readonly type: "function";
379
+ readonly name: "MINTER_ROLE";
380
+ readonly inputs: readonly [];
381
+ readonly outputs: readonly [{
382
+ readonly type: "bytes32";
383
+ }];
384
+ readonly stateMutability: "pure";
385
+ }, {
386
+ readonly type: "function";
387
+ readonly name: "BURNER_ROLE";
388
+ readonly inputs: readonly [];
389
+ readonly outputs: readonly [{
390
+ readonly type: "bytes32";
391
+ }];
392
+ readonly stateMutability: "pure";
393
+ }, {
394
+ readonly type: "function";
395
+ readonly name: "PAUSER_ROLE";
396
+ readonly inputs: readonly [];
397
+ readonly outputs: readonly [{
398
+ readonly type: "bytes32";
399
+ }];
400
+ readonly stateMutability: "pure";
401
+ }, {
402
+ readonly type: "function";
403
+ readonly name: "BLACKLISTER_ROLE";
404
+ readonly inputs: readonly [];
405
+ readonly outputs: readonly [{
406
+ readonly type: "bytes32";
407
+ }];
408
+ readonly stateMutability: "pure";
409
+ }, {
410
+ readonly type: "function";
411
+ readonly name: "KYC_ADMIN_ROLE";
412
+ readonly inputs: readonly [];
413
+ readonly outputs: readonly [{
414
+ readonly type: "bytes32";
415
+ }];
416
+ readonly stateMutability: "pure";
417
+ }, {
418
+ readonly type: "function";
419
+ readonly name: "version";
420
+ readonly inputs: readonly [];
421
+ readonly outputs: readonly [{
422
+ readonly type: "string";
423
+ }];
424
+ readonly stateMutability: "pure";
425
+ }, {
426
+ readonly type: "event";
427
+ readonly name: "Transfer";
428
+ readonly inputs: readonly [{
429
+ readonly name: "from";
430
+ readonly type: "address";
431
+ readonly indexed: true;
432
+ }, {
433
+ readonly name: "to";
434
+ readonly type: "address";
435
+ readonly indexed: true;
436
+ }, {
437
+ readonly name: "value";
438
+ readonly type: "uint256";
439
+ readonly indexed: false;
440
+ }];
441
+ }, {
442
+ readonly type: "event";
443
+ readonly name: "Approval";
444
+ readonly inputs: readonly [{
445
+ readonly name: "owner";
446
+ readonly type: "address";
447
+ readonly indexed: true;
448
+ }, {
449
+ readonly name: "spender";
450
+ readonly type: "address";
451
+ readonly indexed: true;
452
+ }, {
453
+ readonly name: "value";
454
+ readonly type: "uint256";
455
+ readonly indexed: false;
456
+ }];
457
+ }, {
458
+ readonly type: "event";
459
+ readonly name: "Mint";
460
+ readonly inputs: readonly [{
461
+ readonly name: "minter";
462
+ readonly type: "address";
463
+ readonly indexed: true;
464
+ }, {
465
+ readonly name: "to";
466
+ readonly type: "address";
467
+ readonly indexed: true;
468
+ }, {
469
+ readonly name: "amount";
470
+ readonly type: "uint256";
471
+ readonly indexed: false;
472
+ }];
473
+ }, {
474
+ readonly type: "event";
475
+ readonly name: "Burn";
476
+ readonly inputs: readonly [{
477
+ readonly name: "burner";
478
+ readonly type: "address";
479
+ readonly indexed: true;
480
+ }, {
481
+ readonly name: "amount";
482
+ readonly type: "uint256";
483
+ readonly indexed: false;
484
+ }];
485
+ }, {
486
+ readonly type: "event";
487
+ readonly name: "Blacklisted";
488
+ readonly inputs: readonly [{
489
+ readonly name: "account";
490
+ readonly type: "address";
491
+ readonly indexed: true;
492
+ }];
493
+ }, {
494
+ readonly type: "event";
495
+ readonly name: "UnBlacklisted";
496
+ readonly inputs: readonly [{
497
+ readonly name: "account";
498
+ readonly type: "address";
499
+ readonly indexed: true;
500
+ }];
501
+ }, {
502
+ readonly type: "event";
503
+ readonly name: "Paused";
504
+ readonly inputs: readonly [{
505
+ readonly name: "account";
506
+ readonly type: "address";
507
+ readonly indexed: false;
508
+ }];
509
+ }, {
510
+ readonly type: "event";
511
+ readonly name: "Unpaused";
512
+ readonly inputs: readonly [{
513
+ readonly name: "account";
514
+ readonly type: "address";
515
+ readonly indexed: false;
516
+ }];
517
+ }, {
518
+ readonly type: "event";
519
+ readonly name: "AuthorizationUsed";
520
+ readonly inputs: readonly [{
521
+ readonly name: "authorizer";
522
+ readonly type: "address";
523
+ readonly indexed: true;
524
+ }, {
525
+ readonly name: "nonce";
526
+ readonly type: "bytes32";
527
+ readonly indexed: true;
528
+ }];
529
+ }, {
530
+ readonly type: "event";
531
+ readonly name: "AuthorizationCanceled";
532
+ readonly inputs: readonly [{
533
+ readonly name: "authorizer";
534
+ readonly type: "address";
535
+ readonly indexed: true;
536
+ }, {
537
+ readonly name: "nonce";
538
+ readonly type: "bytes32";
539
+ readonly indexed: true;
540
+ }];
541
+ }, {
542
+ readonly type: "error";
543
+ readonly name: "InvalidAddress";
544
+ readonly inputs: readonly [];
545
+ }, {
546
+ readonly type: "error";
547
+ readonly name: "InsufficientBalance";
548
+ readonly inputs: readonly [];
549
+ }, {
550
+ readonly type: "error";
551
+ readonly name: "InsufficientAllowance";
552
+ readonly inputs: readonly [];
553
+ }, {
554
+ readonly type: "error";
555
+ readonly name: "AccountBlacklisted";
556
+ readonly inputs: readonly [{
557
+ readonly name: "account";
558
+ readonly type: "address";
559
+ }];
560
+ }, {
561
+ readonly type: "error";
562
+ readonly name: "ContractPaused";
563
+ readonly inputs: readonly [];
564
+ }, {
565
+ readonly type: "error";
566
+ readonly name: "AccessDenied";
567
+ readonly inputs: readonly [];
568
+ }, {
569
+ readonly type: "error";
570
+ readonly name: "InvalidSignature";
571
+ readonly inputs: readonly [];
572
+ }, {
573
+ readonly type: "error";
574
+ readonly name: "AuthorizationExpired";
575
+ readonly inputs: readonly [];
576
+ }, {
577
+ readonly type: "error";
578
+ readonly name: "AuthorizationNotYetValid";
579
+ readonly inputs: readonly [];
580
+ }, {
581
+ readonly type: "error";
582
+ readonly name: "AuthorizationAlreadyUsed";
583
+ readonly inputs: readonly [];
584
+ }, {
585
+ readonly type: "error";
586
+ readonly name: "PermitExpired";
587
+ readonly inputs: readonly [];
588
+ }];
589
+ declare const KYC_REGISTRY_ABI: readonly [{
590
+ readonly type: "function";
591
+ readonly name: "getKYCData";
592
+ readonly inputs: readonly [{
593
+ readonly name: "user";
594
+ readonly type: "address";
595
+ }];
596
+ readonly outputs: readonly [{
597
+ readonly name: "level";
598
+ readonly type: "uint8";
599
+ }, {
600
+ readonly name: "expiryDate";
601
+ readonly type: "uint256";
602
+ }, {
603
+ readonly name: "kycHash";
604
+ readonly type: "string";
605
+ }, {
606
+ readonly name: "isActive";
607
+ readonly type: "bool";
608
+ }, {
609
+ readonly name: "dailyLimit";
610
+ readonly type: "uint256";
611
+ }, {
612
+ readonly name: "dailySpent";
613
+ readonly type: "uint256";
614
+ }];
615
+ readonly stateMutability: "view";
616
+ }, {
617
+ readonly type: "function";
618
+ readonly name: "getKYCLevel";
619
+ readonly inputs: readonly [{
620
+ readonly name: "user";
621
+ readonly type: "address";
622
+ }];
623
+ readonly outputs: readonly [{
624
+ readonly name: "";
625
+ readonly type: "uint8";
626
+ }];
627
+ readonly stateMutability: "view";
628
+ }, {
629
+ readonly type: "function";
630
+ readonly name: "isKYCValid";
631
+ readonly inputs: readonly [{
632
+ readonly name: "user";
633
+ readonly type: "address";
634
+ }];
635
+ readonly outputs: readonly [{
636
+ readonly name: "";
637
+ readonly type: "bool";
638
+ }];
639
+ readonly stateMutability: "view";
640
+ }, {
641
+ readonly type: "function";
642
+ readonly name: "getRemainingDailyLimit";
643
+ readonly inputs: readonly [{
644
+ readonly name: "user";
645
+ readonly type: "address";
646
+ }];
647
+ readonly outputs: readonly [{
648
+ readonly name: "";
649
+ readonly type: "uint256";
650
+ }];
651
+ readonly stateMutability: "view";
652
+ }, {
653
+ readonly type: "function";
654
+ readonly name: "isProviderApproved";
655
+ readonly inputs: readonly [{
656
+ readonly name: "provider";
657
+ readonly type: "address";
658
+ }];
659
+ readonly outputs: readonly [{
660
+ readonly name: "";
661
+ readonly type: "bool";
662
+ }];
663
+ readonly stateMutability: "view";
664
+ }, {
665
+ readonly type: "function";
666
+ readonly name: "verifyKYC";
667
+ readonly inputs: readonly [{
668
+ readonly name: "user";
669
+ readonly type: "address";
670
+ }, {
671
+ readonly name: "level";
672
+ readonly type: "uint8";
673
+ }, {
674
+ readonly name: "expiryDate";
675
+ readonly type: "uint256";
676
+ }, {
677
+ readonly name: "kycHash";
678
+ readonly type: "string";
679
+ }];
680
+ readonly outputs: readonly [];
681
+ readonly stateMutability: "nonpayable";
682
+ }, {
683
+ readonly type: "function";
684
+ readonly name: "updateKYC";
685
+ readonly inputs: readonly [{
686
+ readonly name: "user";
687
+ readonly type: "address";
688
+ }, {
689
+ readonly name: "level";
690
+ readonly type: "uint8";
691
+ }, {
692
+ readonly name: "expiryDate";
693
+ readonly type: "uint256";
694
+ }];
695
+ readonly outputs: readonly [];
696
+ readonly stateMutability: "nonpayable";
697
+ }, {
698
+ readonly type: "function";
699
+ readonly name: "revokeKYC";
700
+ readonly inputs: readonly [{
701
+ readonly name: "user";
702
+ readonly type: "address";
703
+ }];
704
+ readonly outputs: readonly [];
705
+ readonly stateMutability: "nonpayable";
706
+ }, {
707
+ readonly type: "function";
708
+ readonly name: "setDailyLimit";
709
+ readonly inputs: readonly [{
710
+ readonly name: "user";
711
+ readonly type: "address";
712
+ }, {
713
+ readonly name: "newLimit";
714
+ readonly type: "uint256";
715
+ }];
716
+ readonly outputs: readonly [];
717
+ readonly stateMutability: "nonpayable";
718
+ }, {
719
+ readonly type: "function";
720
+ readonly name: "checkDailyLimit";
721
+ readonly inputs: readonly [{
722
+ readonly name: "user";
723
+ readonly type: "address";
724
+ }, {
725
+ readonly name: "amount";
726
+ readonly type: "uint256";
727
+ }];
728
+ readonly outputs: readonly [{
729
+ readonly name: "";
730
+ readonly type: "bool";
731
+ }];
732
+ readonly stateMutability: "nonpayable";
733
+ }, {
734
+ readonly type: "function";
735
+ readonly name: "approveProvider";
736
+ readonly inputs: readonly [{
737
+ readonly name: "provider";
738
+ readonly type: "address";
739
+ }];
740
+ readonly outputs: readonly [];
741
+ readonly stateMutability: "nonpayable";
742
+ }, {
743
+ readonly type: "function";
744
+ readonly name: "revokeProvider";
745
+ readonly inputs: readonly [{
746
+ readonly name: "provider";
747
+ readonly type: "address";
748
+ }];
749
+ readonly outputs: readonly [];
750
+ readonly stateMutability: "nonpayable";
751
+ }, {
752
+ readonly type: "event";
753
+ readonly name: "KYCVerified";
754
+ readonly inputs: readonly [{
755
+ readonly name: "user";
756
+ readonly type: "address";
757
+ readonly indexed: true;
758
+ }, {
759
+ readonly name: "level";
760
+ readonly type: "uint8";
761
+ readonly indexed: false;
762
+ }, {
763
+ readonly name: "expiryDate";
764
+ readonly type: "uint256";
765
+ readonly indexed: false;
766
+ }, {
767
+ readonly name: "dailyLimit";
768
+ readonly type: "uint256";
769
+ readonly indexed: false;
770
+ }];
771
+ }, {
772
+ readonly type: "event";
773
+ readonly name: "KYCRevoked";
774
+ readonly inputs: readonly [{
775
+ readonly name: "user";
776
+ readonly type: "address";
777
+ readonly indexed: true;
778
+ }];
779
+ }, {
780
+ readonly type: "event";
781
+ readonly name: "KYCUpdated";
782
+ readonly inputs: readonly [{
783
+ readonly name: "user";
784
+ readonly type: "address";
785
+ readonly indexed: true;
786
+ }, {
787
+ readonly name: "level";
788
+ readonly type: "uint8";
789
+ readonly indexed: false;
790
+ }, {
791
+ readonly name: "expiryDate";
792
+ readonly type: "uint256";
793
+ readonly indexed: false;
794
+ }];
795
+ }];
796
+
797
+ declare const DEFAULT_CHAIN_ID = 31337;
798
+ declare const DEFAULT_RPC_URL = "http://127.0.0.1:8545";
799
+ declare const DJEON402_DECIMALS = 18;
800
+ declare const EIP712_DOMAIN_NAME = "DONGJEON402 Token";
801
+ declare const EIP712_DOMAIN_VERSION = "1";
802
+ declare const TRANSFER_WITH_AUTHORIZATION_TYPEHASH: `0x${string}`;
803
+ declare const RECEIVE_WITH_AUTHORIZATION_TYPEHASH: `0x${string}`;
804
+ declare const CANCEL_AUTHORIZATION_TYPEHASH: `0x${string}`;
805
+ declare const KYC_LEVEL_NAMES: readonly ["None", "Tier1", "Tier2", "Tier3"];
806
+ declare const DEFAULT_VALID_AFTER = 0n;
807
+ declare const DEFAULT_VALID_BEFORE: () => bigint;
808
+
809
+ interface TokenInfo {
810
+ name: string;
811
+ symbol: string;
812
+ decimals: number;
813
+ totalSupply: string;
814
+ totalSupplyRaw: string;
815
+ paused: boolean;
816
+ contractAddress: Address;
817
+ }
818
+ interface BalanceResult {
819
+ address: Address;
820
+ balance: string;
821
+ balanceRaw: string;
822
+ }
823
+ interface AllowanceResult {
824
+ owner: Address;
825
+ spender: Address;
826
+ allowance: string;
827
+ allowanceRaw: string;
828
+ }
829
+ interface TransferResult {
830
+ success: boolean;
831
+ hash: Hash;
832
+ from?: Address;
833
+ to?: Address;
834
+ amount?: string;
835
+ amountRaw?: string;
836
+ blockNumber: string;
837
+ status?: 'success' | 'reverted';
838
+ }
839
+ interface RolesResult {
840
+ DEFAULT_ADMIN_ROLE: Hex;
841
+ MINTER_ROLE: Hex;
842
+ BURNER_ROLE: Hex;
843
+ PAUSER_ROLE: Hex;
844
+ BLACKLISTER_ROLE: Hex;
845
+ }
846
+ interface RoleCheckResult {
847
+ role: Hex;
848
+ address: Address;
849
+ hasRole: boolean;
850
+ }
851
+ interface BlacklistResult {
852
+ address: Address;
853
+ isBlacklisted: boolean;
854
+ }
855
+ type KYCLevel = 0 | 1 | 2 | 3;
856
+ type KYCLevelName = 'None' | 'Tier1' | 'Tier2' | 'Tier3';
857
+ interface KYCDocument {
858
+ filename: string;
859
+ content: string;
860
+ }
861
+ interface KYCData {
862
+ level: KYCLevel;
863
+ levelName: KYCLevelName;
864
+ expiryDate: number;
865
+ expiryDateReadable: string;
866
+ kycHash: string;
867
+ isActive: boolean;
868
+ dailyLimit: string;
869
+ dailyLimitRaw: string;
870
+ dailySpent: string;
871
+ dailySpentRaw: string;
872
+ userAddress: Address;
873
+ }
874
+ interface KYCVerifyParams {
875
+ adminPrivateKey: `0x${string}`;
876
+ userAddress: Address;
877
+ level: KYCLevel;
878
+ expiryDate?: number;
879
+ documents: KYCDocument[];
880
+ }
881
+ interface KYCUpdateParams {
882
+ adminPrivateKey: `0x${string}`;
883
+ userAddress: Address;
884
+ level: KYCLevel;
885
+ expiryDate?: number;
886
+ }
887
+ interface KYCRevokeParams {
888
+ adminPrivateKey: `0x${string}`;
889
+ userAddress: Address;
890
+ }
891
+ interface KYCSetLimitParams {
892
+ adminPrivateKey: `0x${string}`;
893
+ userAddress: Address;
894
+ limitUSD: string;
895
+ }
896
+ interface KYCCheckLimitParams {
897
+ adminPrivateKey: `0x${string}`;
898
+ userAddress: Address;
899
+ amountUSD: string;
900
+ }
901
+ interface KYCCheckLimitResult {
902
+ allowed: boolean;
903
+ hash?: Hash;
904
+ }
905
+ interface RemainingDailyLimit {
906
+ remaining: string;
907
+ remainingRaw: string;
908
+ userAddress: Address;
909
+ }
910
+ interface TransferAuthorizationSignature {
911
+ from: Address;
912
+ to: Address;
913
+ value: bigint;
914
+ validAfter: bigint;
915
+ validBefore: bigint;
916
+ nonce: Hex;
917
+ v: number;
918
+ r: Hex;
919
+ s: Hex;
920
+ }
921
+ interface ReceiveAuthorizationSignature {
922
+ from: Address;
923
+ to: Address;
924
+ value: bigint;
925
+ validAfter: bigint;
926
+ validBefore: bigint;
927
+ nonce: Hex;
928
+ v: number;
929
+ r: Hex;
930
+ s: Hex;
931
+ }
932
+ interface SignTransferAuthParams {
933
+ privateKey: `0x${string}`;
934
+ from: Address;
935
+ to: Address;
936
+ amount: string;
937
+ validAfter?: bigint;
938
+ validBefore?: bigint;
939
+ nonce?: Hex;
940
+ }
941
+ interface SignReceiveAuthParams {
942
+ privateKey: `0x${string}`;
943
+ from: Address;
944
+ to: Address;
945
+ amount: string;
946
+ validAfter?: bigint;
947
+ validBefore?: bigint;
948
+ nonce?: Hex;
949
+ }
950
+ interface ExecuteTransferAuthParams {
951
+ executorPrivateKey: `0x${string}`;
952
+ authorization: TransferAuthorizationSignature;
953
+ }
954
+ interface ExecuteReceiveAuthParams {
955
+ receiverPrivateKey: `0x${string}`;
956
+ authorization: ReceiveAuthorizationSignature;
957
+ }
958
+ interface CancelAuthorizationParams {
959
+ privateKey: `0x${string}`;
960
+ authorizer: Address;
961
+ nonce: Hex;
962
+ }
963
+ interface CancelAuthorizationResult {
964
+ success: boolean;
965
+ hash: Hash;
966
+ blockNumber: string;
967
+ }
968
+ interface X402PaymentParams {
969
+ payerPrivateKey: `0x${string}`;
970
+ executorPrivateKey: `0x${string}`;
971
+ from: Address;
972
+ to: Address;
973
+ amount: string;
974
+ }
975
+ interface AuthorizationStateResult {
976
+ authorizer: Address;
977
+ nonce: Hex;
978
+ isUsed: boolean;
979
+ }
980
+ interface SDKConfig {
981
+ rpcUrl: string;
982
+ contractAddress: Address;
983
+ kycRegistryAddress?: Address;
984
+ chainId: number;
985
+ }
986
+ interface ClientSDKConfig {
987
+ rpcUrl?: string;
988
+ contractAddress: Address;
989
+ kycRegistryAddress?: Address;
990
+ chainId: number;
991
+ }
992
+
993
+ /**
994
+ * Format raw token amount to human-readable string
995
+ * @param value Raw value (with decimals)
996
+ * @param decimals Token decimals (default: 6)
997
+ * @returns Formatted string
998
+ */
999
+ declare function formatTokenAmount(value: bigint, decimals?: number): string;
1000
+ /**
1001
+ * Parse human-readable amount to raw value
1002
+ * @param value Human-readable value
1003
+ * @param decimals Token decimals (default: 6)
1004
+ * @returns Raw value (bigint)
1005
+ */
1006
+ declare function parseTokenAmount(value: string, decimals?: number): bigint;
1007
+ /**
1008
+ * Format timestamp to ISO string
1009
+ * @param timestamp Unix timestamp
1010
+ * @returns ISO string or "No Expiry"
1011
+ */
1012
+ declare function formatTimestamp(timestamp: bigint | number): string;
1013
+ /**
1014
+ * Get KYC level name
1015
+ * @param level KYC level (0-3)
1016
+ * @returns Level name
1017
+ */
1018
+ declare function getKYCLevelName(level: 0 | 1 | 2 | 3): 'None' | 'Tier1' | 'Tier2' | 'Tier3';
1019
+
1020
+ /**
1021
+ * Validate Ethereum address
1022
+ * @param address Address to validate
1023
+ * @throws Error if invalid
1024
+ */
1025
+ declare function validateAddress(address: string): asserts address is Address;
1026
+ /**
1027
+ * Validate private key format
1028
+ * @param privateKey Private key to validate
1029
+ * @throws Error if invalid
1030
+ */
1031
+ declare function validatePrivateKey(privateKey: string): asserts privateKey is `0x${string}`;
1032
+ /**
1033
+ * Validate amount is positive
1034
+ * @param amount Amount to validate
1035
+ * @throws Error if invalid
1036
+ */
1037
+ declare function validateAmount(amount: string): void;
1038
+ /**
1039
+ * Validate KYC level
1040
+ * @param level KYC level to validate
1041
+ * @throws Error if invalid
1042
+ */
1043
+ declare function validateKYCLevel(level: number): asserts level is 0 | 1 | 2 | 3;
1044
+ /**
1045
+ * Validate hex string
1046
+ * @param hex Hex string to validate
1047
+ * @throws Error if invalid
1048
+ */
1049
+ declare function validateHex(hex: string): asserts hex is Hex;
1050
+
1051
+ export { type AllowanceResult, type AuthorizationStateResult, type BalanceResult, type BlacklistResult, CANCEL_AUTHORIZATION_TYPEHASH, type CancelAuthorizationParams, type CancelAuthorizationResult, type ClientSDKConfig, DEFAULT_CHAIN_ID, DEFAULT_RPC_URL, DEFAULT_VALID_AFTER, DEFAULT_VALID_BEFORE, DJEON402_ABI, DJEON402_DECIMALS, EIP712_DOMAIN_NAME, EIP712_DOMAIN_VERSION, type ExecuteReceiveAuthParams, type ExecuteTransferAuthParams, type KYCCheckLimitParams, type KYCCheckLimitResult, type KYCData, type KYCDocument, type KYCLevel, type KYCLevelName, type KYCRevokeParams, type KYCSetLimitParams, type KYCUpdateParams, type KYCVerifyParams, KYC_LEVEL_NAMES, KYC_REGISTRY_ABI, RECEIVE_WITH_AUTHORIZATION_TYPEHASH, type ReceiveAuthorizationSignature, type RemainingDailyLimit, type RoleCheckResult, type RolesResult, type SDKConfig, type SignReceiveAuthParams, type SignTransferAuthParams, TRANSFER_WITH_AUTHORIZATION_TYPEHASH, type TokenInfo, type TransferAuthorizationSignature, type TransferResult, type X402PaymentParams, formatTimestamp, formatTokenAmount, getKYCLevelName, parseTokenAmount, validateAddress, validateAmount, validateHex, validateKYCLevel, validatePrivateKey };