@ton/ton 13.7.0 → 13.8.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.
@@ -8,6 +8,7 @@
8
8
  /// <reference types="node" />
9
9
  import { AxiosAdapter } from "axios";
10
10
  import { Address, Cell, Contract, ContractProvider, Transaction, TupleItem, TupleReader } from "@ton/core";
11
+ import { z } from 'zod';
11
12
  export declare type TonClient4Parameters = {
12
13
  /**
13
14
  * API endpoint
@@ -201,6 +202,15 @@ export declare class TonClient4 {
201
202
  };
202
203
  tx: Transaction;
203
204
  }[]>;
205
+ /**
206
+ * Load parsed account transactions
207
+ * @param address address
208
+ * @param lt last transaction lt
209
+ * @param hash last transaction hash
210
+ * @param count number of transactions to load
211
+ * @returns parsed transactions
212
+ */
213
+ getAccountTransactionsParsed(address: Address, lt: bigint, hash: Buffer, count?: number): Promise<ParsedTransactions>;
204
214
  /**
205
215
  * Get network config
206
216
  * @param seqno block sequence number
@@ -287,3 +297,836 @@ export declare class TonClient4 {
287
297
  data: Cell;
288
298
  } | null): ContractProvider;
289
299
  }
300
+ declare const blocksCodec: z.ZodArray<z.ZodObject<{
301
+ workchain: z.ZodNumber;
302
+ seqno: z.ZodNumber;
303
+ shard: z.ZodString;
304
+ rootHash: z.ZodString;
305
+ fileHash: z.ZodString;
306
+ }, "strip", z.ZodTypeAny, {
307
+ workchain: number;
308
+ shard: string;
309
+ seqno: number;
310
+ fileHash: string;
311
+ rootHash: string;
312
+ }, {
313
+ workchain: number;
314
+ shard: string;
315
+ seqno: number;
316
+ fileHash: string;
317
+ rootHash: string;
318
+ }>, "many">;
319
+ declare const parsedTransactionCodec: z.ZodObject<{
320
+ address: z.ZodString;
321
+ lt: z.ZodString;
322
+ hash: z.ZodString;
323
+ prevTransaction: z.ZodObject<{
324
+ lt: z.ZodString;
325
+ hash: z.ZodString;
326
+ }, "strip", z.ZodTypeAny, {
327
+ lt: string;
328
+ hash: string;
329
+ }, {
330
+ lt: string;
331
+ hash: string;
332
+ }>;
333
+ time: z.ZodNumber;
334
+ outMessagesCount: z.ZodNumber;
335
+ oldStatus: z.ZodUnion<[z.ZodLiteral<"uninitialized">, z.ZodLiteral<"frozen">, z.ZodLiteral<"active">, z.ZodLiteral<"non-existing">]>;
336
+ newStatus: z.ZodUnion<[z.ZodLiteral<"uninitialized">, z.ZodLiteral<"frozen">, z.ZodLiteral<"active">, z.ZodLiteral<"non-existing">]>;
337
+ fees: z.ZodString;
338
+ update: z.ZodObject<{
339
+ oldHash: z.ZodString;
340
+ newHash: z.ZodString;
341
+ }, "strip", z.ZodTypeAny, {
342
+ oldHash: string;
343
+ newHash: string;
344
+ }, {
345
+ oldHash: string;
346
+ newHash: string;
347
+ }>;
348
+ inMessage: z.ZodUnion<[z.ZodObject<{
349
+ body: z.ZodString;
350
+ info: z.ZodUnion<[z.ZodObject<{
351
+ type: z.ZodLiteral<"internal">;
352
+ value: z.ZodString;
353
+ dest: z.ZodString;
354
+ src: z.ZodString;
355
+ bounced: z.ZodBoolean;
356
+ bounce: z.ZodBoolean;
357
+ ihrDisabled: z.ZodBoolean;
358
+ createdAt: z.ZodNumber;
359
+ createdLt: z.ZodString;
360
+ fwdFee: z.ZodString;
361
+ ihrFee: z.ZodString;
362
+ }, "strip", z.ZodTypeAny, {
363
+ value: string;
364
+ type: "internal";
365
+ dest: string;
366
+ src: string;
367
+ bounced: boolean;
368
+ bounce: boolean;
369
+ ihrDisabled: boolean;
370
+ createdAt: number;
371
+ createdLt: string;
372
+ fwdFee: string;
373
+ ihrFee: string;
374
+ }, {
375
+ value: string;
376
+ type: "internal";
377
+ dest: string;
378
+ src: string;
379
+ bounced: boolean;
380
+ bounce: boolean;
381
+ ihrDisabled: boolean;
382
+ createdAt: number;
383
+ createdLt: string;
384
+ fwdFee: string;
385
+ ihrFee: string;
386
+ }>, z.ZodObject<{
387
+ type: z.ZodLiteral<"external-in">;
388
+ dest: z.ZodString;
389
+ src: z.ZodUnion<[z.ZodObject<{
390
+ bits: z.ZodNumber;
391
+ data: z.ZodString;
392
+ }, "strip", z.ZodTypeAny, {
393
+ data: string;
394
+ bits: number;
395
+ }, {
396
+ data: string;
397
+ bits: number;
398
+ }>, z.ZodNull]>;
399
+ importFee: z.ZodString;
400
+ }, "strip", z.ZodTypeAny, {
401
+ type: "external-in";
402
+ dest: string;
403
+ src: {
404
+ data: string;
405
+ bits: number;
406
+ } | null;
407
+ importFee: string;
408
+ }, {
409
+ type: "external-in";
410
+ dest: string;
411
+ src: {
412
+ data: string;
413
+ bits: number;
414
+ } | null;
415
+ importFee: string;
416
+ }>, z.ZodObject<{
417
+ type: z.ZodLiteral<"external-out">;
418
+ dest: z.ZodUnion<[z.ZodObject<{
419
+ bits: z.ZodNumber;
420
+ data: z.ZodString;
421
+ }, "strip", z.ZodTypeAny, {
422
+ data: string;
423
+ bits: number;
424
+ }, {
425
+ data: string;
426
+ bits: number;
427
+ }>, z.ZodNull]>;
428
+ }, "strip", z.ZodTypeAny, {
429
+ type: "external-out";
430
+ dest: {
431
+ data: string;
432
+ bits: number;
433
+ } | null;
434
+ }, {
435
+ type: "external-out";
436
+ dest: {
437
+ data: string;
438
+ bits: number;
439
+ } | null;
440
+ }>]>;
441
+ init: z.ZodUnion<[z.ZodObject<{
442
+ splitDepth: z.ZodUnion<[z.ZodNumber, z.ZodNull]>;
443
+ code: z.ZodUnion<[z.ZodString, z.ZodNull]>;
444
+ data: z.ZodUnion<[z.ZodString, z.ZodNull]>;
445
+ special: z.ZodUnion<[z.ZodObject<{
446
+ tick: z.ZodBoolean;
447
+ tock: z.ZodBoolean;
448
+ }, "strip", z.ZodTypeAny, {
449
+ tick: boolean;
450
+ tock: boolean;
451
+ }, {
452
+ tick: boolean;
453
+ tock: boolean;
454
+ }>, z.ZodNull]>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ data: string | null;
457
+ code: string | null;
458
+ splitDepth: number | null;
459
+ special: {
460
+ tick: boolean;
461
+ tock: boolean;
462
+ } | null;
463
+ }, {
464
+ data: string | null;
465
+ code: string | null;
466
+ splitDepth: number | null;
467
+ special: {
468
+ tick: boolean;
469
+ tock: boolean;
470
+ } | null;
471
+ }>, z.ZodNull]>;
472
+ }, "strip", z.ZodTypeAny, {
473
+ body: string;
474
+ init: {
475
+ data: string | null;
476
+ code: string | null;
477
+ splitDepth: number | null;
478
+ special: {
479
+ tick: boolean;
480
+ tock: boolean;
481
+ } | null;
482
+ } | null;
483
+ info: {
484
+ value: string;
485
+ type: "internal";
486
+ dest: string;
487
+ src: string;
488
+ bounced: boolean;
489
+ bounce: boolean;
490
+ ihrDisabled: boolean;
491
+ createdAt: number;
492
+ createdLt: string;
493
+ fwdFee: string;
494
+ ihrFee: string;
495
+ } | {
496
+ type: "external-in";
497
+ dest: string;
498
+ src: {
499
+ data: string;
500
+ bits: number;
501
+ } | null;
502
+ importFee: string;
503
+ } | {
504
+ type: "external-out";
505
+ dest: {
506
+ data: string;
507
+ bits: number;
508
+ } | null;
509
+ };
510
+ }, {
511
+ body: string;
512
+ init: {
513
+ data: string | null;
514
+ code: string | null;
515
+ splitDepth: number | null;
516
+ special: {
517
+ tick: boolean;
518
+ tock: boolean;
519
+ } | null;
520
+ } | null;
521
+ info: {
522
+ value: string;
523
+ type: "internal";
524
+ dest: string;
525
+ src: string;
526
+ bounced: boolean;
527
+ bounce: boolean;
528
+ ihrDisabled: boolean;
529
+ createdAt: number;
530
+ createdLt: string;
531
+ fwdFee: string;
532
+ ihrFee: string;
533
+ } | {
534
+ type: "external-in";
535
+ dest: string;
536
+ src: {
537
+ data: string;
538
+ bits: number;
539
+ } | null;
540
+ importFee: string;
541
+ } | {
542
+ type: "external-out";
543
+ dest: {
544
+ data: string;
545
+ bits: number;
546
+ } | null;
547
+ };
548
+ }>, z.ZodNull]>;
549
+ outMessages: z.ZodArray<z.ZodObject<{
550
+ body: z.ZodString;
551
+ info: z.ZodUnion<[z.ZodObject<{
552
+ type: z.ZodLiteral<"internal">;
553
+ value: z.ZodString;
554
+ dest: z.ZodString;
555
+ src: z.ZodString;
556
+ bounced: z.ZodBoolean;
557
+ bounce: z.ZodBoolean;
558
+ ihrDisabled: z.ZodBoolean;
559
+ createdAt: z.ZodNumber;
560
+ createdLt: z.ZodString;
561
+ fwdFee: z.ZodString;
562
+ ihrFee: z.ZodString;
563
+ }, "strip", z.ZodTypeAny, {
564
+ value: string;
565
+ type: "internal";
566
+ dest: string;
567
+ src: string;
568
+ bounced: boolean;
569
+ bounce: boolean;
570
+ ihrDisabled: boolean;
571
+ createdAt: number;
572
+ createdLt: string;
573
+ fwdFee: string;
574
+ ihrFee: string;
575
+ }, {
576
+ value: string;
577
+ type: "internal";
578
+ dest: string;
579
+ src: string;
580
+ bounced: boolean;
581
+ bounce: boolean;
582
+ ihrDisabled: boolean;
583
+ createdAt: number;
584
+ createdLt: string;
585
+ fwdFee: string;
586
+ ihrFee: string;
587
+ }>, z.ZodObject<{
588
+ type: z.ZodLiteral<"external-in">;
589
+ dest: z.ZodString;
590
+ src: z.ZodUnion<[z.ZodObject<{
591
+ bits: z.ZodNumber;
592
+ data: z.ZodString;
593
+ }, "strip", z.ZodTypeAny, {
594
+ data: string;
595
+ bits: number;
596
+ }, {
597
+ data: string;
598
+ bits: number;
599
+ }>, z.ZodNull]>;
600
+ importFee: z.ZodString;
601
+ }, "strip", z.ZodTypeAny, {
602
+ type: "external-in";
603
+ dest: string;
604
+ src: {
605
+ data: string;
606
+ bits: number;
607
+ } | null;
608
+ importFee: string;
609
+ }, {
610
+ type: "external-in";
611
+ dest: string;
612
+ src: {
613
+ data: string;
614
+ bits: number;
615
+ } | null;
616
+ importFee: string;
617
+ }>, z.ZodObject<{
618
+ type: z.ZodLiteral<"external-out">;
619
+ dest: z.ZodUnion<[z.ZodObject<{
620
+ bits: z.ZodNumber;
621
+ data: z.ZodString;
622
+ }, "strip", z.ZodTypeAny, {
623
+ data: string;
624
+ bits: number;
625
+ }, {
626
+ data: string;
627
+ bits: number;
628
+ }>, z.ZodNull]>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ type: "external-out";
631
+ dest: {
632
+ data: string;
633
+ bits: number;
634
+ } | null;
635
+ }, {
636
+ type: "external-out";
637
+ dest: {
638
+ data: string;
639
+ bits: number;
640
+ } | null;
641
+ }>]>;
642
+ init: z.ZodUnion<[z.ZodObject<{
643
+ splitDepth: z.ZodUnion<[z.ZodNumber, z.ZodNull]>;
644
+ code: z.ZodUnion<[z.ZodString, z.ZodNull]>;
645
+ data: z.ZodUnion<[z.ZodString, z.ZodNull]>;
646
+ special: z.ZodUnion<[z.ZodObject<{
647
+ tick: z.ZodBoolean;
648
+ tock: z.ZodBoolean;
649
+ }, "strip", z.ZodTypeAny, {
650
+ tick: boolean;
651
+ tock: boolean;
652
+ }, {
653
+ tick: boolean;
654
+ tock: boolean;
655
+ }>, z.ZodNull]>;
656
+ }, "strip", z.ZodTypeAny, {
657
+ data: string | null;
658
+ code: string | null;
659
+ splitDepth: number | null;
660
+ special: {
661
+ tick: boolean;
662
+ tock: boolean;
663
+ } | null;
664
+ }, {
665
+ data: string | null;
666
+ code: string | null;
667
+ splitDepth: number | null;
668
+ special: {
669
+ tick: boolean;
670
+ tock: boolean;
671
+ } | null;
672
+ }>, z.ZodNull]>;
673
+ }, "strip", z.ZodTypeAny, {
674
+ body: string;
675
+ init: {
676
+ data: string | null;
677
+ code: string | null;
678
+ splitDepth: number | null;
679
+ special: {
680
+ tick: boolean;
681
+ tock: boolean;
682
+ } | null;
683
+ } | null;
684
+ info: {
685
+ value: string;
686
+ type: "internal";
687
+ dest: string;
688
+ src: string;
689
+ bounced: boolean;
690
+ bounce: boolean;
691
+ ihrDisabled: boolean;
692
+ createdAt: number;
693
+ createdLt: string;
694
+ fwdFee: string;
695
+ ihrFee: string;
696
+ } | {
697
+ type: "external-in";
698
+ dest: string;
699
+ src: {
700
+ data: string;
701
+ bits: number;
702
+ } | null;
703
+ importFee: string;
704
+ } | {
705
+ type: "external-out";
706
+ dest: {
707
+ data: string;
708
+ bits: number;
709
+ } | null;
710
+ };
711
+ }, {
712
+ body: string;
713
+ init: {
714
+ data: string | null;
715
+ code: string | null;
716
+ splitDepth: number | null;
717
+ special: {
718
+ tick: boolean;
719
+ tock: boolean;
720
+ } | null;
721
+ } | null;
722
+ info: {
723
+ value: string;
724
+ type: "internal";
725
+ dest: string;
726
+ src: string;
727
+ bounced: boolean;
728
+ bounce: boolean;
729
+ ihrDisabled: boolean;
730
+ createdAt: number;
731
+ createdLt: string;
732
+ fwdFee: string;
733
+ ihrFee: string;
734
+ } | {
735
+ type: "external-in";
736
+ dest: string;
737
+ src: {
738
+ data: string;
739
+ bits: number;
740
+ } | null;
741
+ importFee: string;
742
+ } | {
743
+ type: "external-out";
744
+ dest: {
745
+ data: string;
746
+ bits: number;
747
+ } | null;
748
+ };
749
+ }>, "many">;
750
+ parsed: z.ZodObject<{
751
+ seqno: z.ZodUnion<[z.ZodNumber, z.ZodNull]>;
752
+ body: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
753
+ type: z.ZodLiteral<"comment">;
754
+ comment: z.ZodString;
755
+ }, "strip", z.ZodTypeAny, {
756
+ type: "comment";
757
+ comment: string;
758
+ }, {
759
+ type: "comment";
760
+ comment: string;
761
+ }>, z.ZodObject<{
762
+ type: z.ZodLiteral<"payload">;
763
+ cell: z.ZodString;
764
+ }, "strip", z.ZodTypeAny, {
765
+ type: "payload";
766
+ cell: string;
767
+ }, {
768
+ type: "payload";
769
+ cell: string;
770
+ }>]>, z.ZodNull]>;
771
+ status: z.ZodUnion<[z.ZodLiteral<"success">, z.ZodLiteral<"failed">, z.ZodLiteral<"pending">]>;
772
+ dest: z.ZodUnion<[z.ZodString, z.ZodNull]>;
773
+ kind: z.ZodUnion<[z.ZodLiteral<"out">, z.ZodLiteral<"in">]>;
774
+ amount: z.ZodString;
775
+ resolvedAddress: z.ZodString;
776
+ bounced: z.ZodBoolean;
777
+ mentioned: z.ZodArray<z.ZodString, "many">;
778
+ }, "strip", z.ZodTypeAny, {
779
+ status: "success" | "failed" | "pending";
780
+ seqno: number | null;
781
+ body: {
782
+ type: "comment";
783
+ comment: string;
784
+ } | {
785
+ type: "payload";
786
+ cell: string;
787
+ } | null;
788
+ dest: string | null;
789
+ bounced: boolean;
790
+ kind: "out" | "in";
791
+ amount: string;
792
+ resolvedAddress: string;
793
+ mentioned: string[];
794
+ }, {
795
+ status: "success" | "failed" | "pending";
796
+ seqno: number | null;
797
+ body: {
798
+ type: "comment";
799
+ comment: string;
800
+ } | {
801
+ type: "payload";
802
+ cell: string;
803
+ } | null;
804
+ dest: string | null;
805
+ bounced: boolean;
806
+ kind: "out" | "in";
807
+ amount: string;
808
+ resolvedAddress: string;
809
+ mentioned: string[];
810
+ }>;
811
+ operation: z.ZodObject<{
812
+ address: z.ZodString;
813
+ comment: z.ZodOptional<z.ZodString>;
814
+ items: z.ZodArray<z.ZodUnion<[z.ZodObject<{
815
+ kind: z.ZodLiteral<"ton">;
816
+ amount: z.ZodString;
817
+ }, "strip", z.ZodTypeAny, {
818
+ kind: "ton";
819
+ amount: string;
820
+ }, {
821
+ kind: "ton";
822
+ amount: string;
823
+ }>, z.ZodObject<{
824
+ kind: z.ZodLiteral<"token">;
825
+ amount: z.ZodString;
826
+ }, "strip", z.ZodTypeAny, {
827
+ kind: "token";
828
+ amount: string;
829
+ }, {
830
+ kind: "token";
831
+ amount: string;
832
+ }>]>, "many">;
833
+ op: z.ZodOptional<z.ZodObject<{
834
+ type: z.ZodUnion<[z.ZodLiteral<"jetton::excesses">, z.ZodLiteral<"jetton::transfer">, z.ZodLiteral<"jetton::transfer_notification">, z.ZodLiteral<"deposit">, z.ZodLiteral<"deposit::ok">, z.ZodLiteral<"withdraw">, z.ZodLiteral<"withdraw::all">, z.ZodLiteral<"withdraw::delayed">, z.ZodLiteral<"withdraw::ok">, z.ZodLiteral<"airdrop">]>;
835
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
836
+ }, "strip", z.ZodTypeAny, {
837
+ type: "jetton::excesses" | "jetton::transfer" | "jetton::transfer_notification" | "deposit" | "deposit::ok" | "withdraw" | "withdraw::all" | "withdraw::delayed" | "withdraw::ok" | "airdrop";
838
+ options?: Record<string, string> | undefined;
839
+ }, {
840
+ type: "jetton::excesses" | "jetton::transfer" | "jetton::transfer_notification" | "deposit" | "deposit::ok" | "withdraw" | "withdraw::all" | "withdraw::delayed" | "withdraw::ok" | "airdrop";
841
+ options?: Record<string, string> | undefined;
842
+ }>>;
843
+ }, "strip", z.ZodTypeAny, {
844
+ items: ({
845
+ kind: "ton";
846
+ amount: string;
847
+ } | {
848
+ kind: "token";
849
+ amount: string;
850
+ })[];
851
+ address: string;
852
+ comment?: string | undefined;
853
+ op?: {
854
+ type: "jetton::excesses" | "jetton::transfer" | "jetton::transfer_notification" | "deposit" | "deposit::ok" | "withdraw" | "withdraw::all" | "withdraw::delayed" | "withdraw::ok" | "airdrop";
855
+ options?: Record<string, string> | undefined;
856
+ } | undefined;
857
+ }, {
858
+ items: ({
859
+ kind: "ton";
860
+ amount: string;
861
+ } | {
862
+ kind: "token";
863
+ amount: string;
864
+ })[];
865
+ address: string;
866
+ comment?: string | undefined;
867
+ op?: {
868
+ type: "jetton::excesses" | "jetton::transfer" | "jetton::transfer_notification" | "deposit" | "deposit::ok" | "withdraw" | "withdraw::all" | "withdraw::delayed" | "withdraw::ok" | "airdrop";
869
+ options?: Record<string, string> | undefined;
870
+ } | undefined;
871
+ }>;
872
+ }, "strip", z.ZodTypeAny, {
873
+ lt: string;
874
+ hash: string;
875
+ fees: string;
876
+ address: string;
877
+ prevTransaction: {
878
+ lt: string;
879
+ hash: string;
880
+ };
881
+ time: number;
882
+ outMessagesCount: number;
883
+ oldStatus: "active" | "uninitialized" | "frozen" | "non-existing";
884
+ newStatus: "active" | "uninitialized" | "frozen" | "non-existing";
885
+ update: {
886
+ oldHash: string;
887
+ newHash: string;
888
+ };
889
+ inMessage: {
890
+ body: string;
891
+ init: {
892
+ data: string | null;
893
+ code: string | null;
894
+ splitDepth: number | null;
895
+ special: {
896
+ tick: boolean;
897
+ tock: boolean;
898
+ } | null;
899
+ } | null;
900
+ info: {
901
+ value: string;
902
+ type: "internal";
903
+ dest: string;
904
+ src: string;
905
+ bounced: boolean;
906
+ bounce: boolean;
907
+ ihrDisabled: boolean;
908
+ createdAt: number;
909
+ createdLt: string;
910
+ fwdFee: string;
911
+ ihrFee: string;
912
+ } | {
913
+ type: "external-in";
914
+ dest: string;
915
+ src: {
916
+ data: string;
917
+ bits: number;
918
+ } | null;
919
+ importFee: string;
920
+ } | {
921
+ type: "external-out";
922
+ dest: {
923
+ data: string;
924
+ bits: number;
925
+ } | null;
926
+ };
927
+ } | null;
928
+ outMessages: {
929
+ body: string;
930
+ init: {
931
+ data: string | null;
932
+ code: string | null;
933
+ splitDepth: number | null;
934
+ special: {
935
+ tick: boolean;
936
+ tock: boolean;
937
+ } | null;
938
+ } | null;
939
+ info: {
940
+ value: string;
941
+ type: "internal";
942
+ dest: string;
943
+ src: string;
944
+ bounced: boolean;
945
+ bounce: boolean;
946
+ ihrDisabled: boolean;
947
+ createdAt: number;
948
+ createdLt: string;
949
+ fwdFee: string;
950
+ ihrFee: string;
951
+ } | {
952
+ type: "external-in";
953
+ dest: string;
954
+ src: {
955
+ data: string;
956
+ bits: number;
957
+ } | null;
958
+ importFee: string;
959
+ } | {
960
+ type: "external-out";
961
+ dest: {
962
+ data: string;
963
+ bits: number;
964
+ } | null;
965
+ };
966
+ }[];
967
+ parsed: {
968
+ status: "success" | "failed" | "pending";
969
+ seqno: number | null;
970
+ body: {
971
+ type: "comment";
972
+ comment: string;
973
+ } | {
974
+ type: "payload";
975
+ cell: string;
976
+ } | null;
977
+ dest: string | null;
978
+ bounced: boolean;
979
+ kind: "out" | "in";
980
+ amount: string;
981
+ resolvedAddress: string;
982
+ mentioned: string[];
983
+ };
984
+ operation: {
985
+ items: ({
986
+ kind: "ton";
987
+ amount: string;
988
+ } | {
989
+ kind: "token";
990
+ amount: string;
991
+ })[];
992
+ address: string;
993
+ comment?: string | undefined;
994
+ op?: {
995
+ type: "jetton::excesses" | "jetton::transfer" | "jetton::transfer_notification" | "deposit" | "deposit::ok" | "withdraw" | "withdraw::all" | "withdraw::delayed" | "withdraw::ok" | "airdrop";
996
+ options?: Record<string, string> | undefined;
997
+ } | undefined;
998
+ };
999
+ }, {
1000
+ lt: string;
1001
+ hash: string;
1002
+ fees: string;
1003
+ address: string;
1004
+ prevTransaction: {
1005
+ lt: string;
1006
+ hash: string;
1007
+ };
1008
+ time: number;
1009
+ outMessagesCount: number;
1010
+ oldStatus: "active" | "uninitialized" | "frozen" | "non-existing";
1011
+ newStatus: "active" | "uninitialized" | "frozen" | "non-existing";
1012
+ update: {
1013
+ oldHash: string;
1014
+ newHash: string;
1015
+ };
1016
+ inMessage: {
1017
+ body: string;
1018
+ init: {
1019
+ data: string | null;
1020
+ code: string | null;
1021
+ splitDepth: number | null;
1022
+ special: {
1023
+ tick: boolean;
1024
+ tock: boolean;
1025
+ } | null;
1026
+ } | null;
1027
+ info: {
1028
+ value: string;
1029
+ type: "internal";
1030
+ dest: string;
1031
+ src: string;
1032
+ bounced: boolean;
1033
+ bounce: boolean;
1034
+ ihrDisabled: boolean;
1035
+ createdAt: number;
1036
+ createdLt: string;
1037
+ fwdFee: string;
1038
+ ihrFee: string;
1039
+ } | {
1040
+ type: "external-in";
1041
+ dest: string;
1042
+ src: {
1043
+ data: string;
1044
+ bits: number;
1045
+ } | null;
1046
+ importFee: string;
1047
+ } | {
1048
+ type: "external-out";
1049
+ dest: {
1050
+ data: string;
1051
+ bits: number;
1052
+ } | null;
1053
+ };
1054
+ } | null;
1055
+ outMessages: {
1056
+ body: string;
1057
+ init: {
1058
+ data: string | null;
1059
+ code: string | null;
1060
+ splitDepth: number | null;
1061
+ special: {
1062
+ tick: boolean;
1063
+ tock: boolean;
1064
+ } | null;
1065
+ } | null;
1066
+ info: {
1067
+ value: string;
1068
+ type: "internal";
1069
+ dest: string;
1070
+ src: string;
1071
+ bounced: boolean;
1072
+ bounce: boolean;
1073
+ ihrDisabled: boolean;
1074
+ createdAt: number;
1075
+ createdLt: string;
1076
+ fwdFee: string;
1077
+ ihrFee: string;
1078
+ } | {
1079
+ type: "external-in";
1080
+ dest: string;
1081
+ src: {
1082
+ data: string;
1083
+ bits: number;
1084
+ } | null;
1085
+ importFee: string;
1086
+ } | {
1087
+ type: "external-out";
1088
+ dest: {
1089
+ data: string;
1090
+ bits: number;
1091
+ } | null;
1092
+ };
1093
+ }[];
1094
+ parsed: {
1095
+ status: "success" | "failed" | "pending";
1096
+ seqno: number | null;
1097
+ body: {
1098
+ type: "comment";
1099
+ comment: string;
1100
+ } | {
1101
+ type: "payload";
1102
+ cell: string;
1103
+ } | null;
1104
+ dest: string | null;
1105
+ bounced: boolean;
1106
+ kind: "out" | "in";
1107
+ amount: string;
1108
+ resolvedAddress: string;
1109
+ mentioned: string[];
1110
+ };
1111
+ operation: {
1112
+ items: ({
1113
+ kind: "ton";
1114
+ amount: string;
1115
+ } | {
1116
+ kind: "token";
1117
+ amount: string;
1118
+ })[];
1119
+ address: string;
1120
+ comment?: string | undefined;
1121
+ op?: {
1122
+ type: "jetton::excesses" | "jetton::transfer" | "jetton::transfer_notification" | "deposit" | "deposit::ok" | "withdraw" | "withdraw::all" | "withdraw::delayed" | "withdraw::ok" | "airdrop";
1123
+ options?: Record<string, string> | undefined;
1124
+ } | undefined;
1125
+ };
1126
+ }>;
1127
+ export declare type ParsedTransaction = z.infer<typeof parsedTransactionCodec>;
1128
+ export declare type ParsedTransactions = {
1129
+ blocks: z.infer<typeof blocksCodec>;
1130
+ transactions: ParsedTransaction[];
1131
+ };
1132
+ export {};