@triadxyz/poseidons-protocol 0.1.0 → 0.1.2

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.
@@ -7,6 +7,47 @@
7
7
  "description": "Created with Anchor"
8
8
  },
9
9
  "instructions": [
10
+ {
11
+ "name": "add_chest_winners",
12
+ "discriminator": [184, 188, 206, 53, 106, 189, 125, 249],
13
+ "accounts": [
14
+ {
15
+ "name": "signer",
16
+ "writable": true,
17
+ "signer": true
18
+ },
19
+ {
20
+ "name": "chest",
21
+ "writable": true,
22
+ "pda": {
23
+ "seeds": [
24
+ {
25
+ "kind": "const",
26
+ "value": [99, 104, 101, 115, 116]
27
+ },
28
+ {
29
+ "kind": "arg",
30
+ "path": "args.id"
31
+ }
32
+ ]
33
+ }
34
+ },
35
+ {
36
+ "name": "system_program",
37
+ "address": "11111111111111111111111111111111"
38
+ }
39
+ ],
40
+ "args": [
41
+ {
42
+ "name": "args",
43
+ "type": {
44
+ "defined": {
45
+ "name": "AddChestWinnersArgs"
46
+ }
47
+ }
48
+ }
49
+ ]
50
+ },
10
51
  {
11
52
  "name": "add_poseidon_power",
12
53
  "discriminator": [38, 32, 48, 65, 104, 150, 57, 10],
@@ -429,133 +470,819 @@
429
470
  }
430
471
  ],
431
472
  "args": []
432
- }
433
- ],
434
- "accounts": [
435
- {
436
- "name": "BaseAssetV1",
437
- "discriminator": [0, 0, 0, 0, 0, 0, 0, 0]
438
- },
439
- {
440
- "name": "BaseCollectionV1",
441
- "discriminator": [0, 0, 0, 0, 0, 0, 0, 0]
442
- },
443
- {
444
- "name": "Poseidon",
445
- "discriminator": [7, 171, 193, 108, 245, 231, 215, 197]
446
- },
447
- {
448
- "name": "PoseidonVault",
449
- "discriminator": [62, 239, 250, 136, 100, 214, 169, 128]
450
- }
451
- ],
452
- "events": [
453
- {
454
- "name": "PoseidonNftBurnEvent",
455
- "discriminator": [220, 94, 221, 146, 218, 85, 13, 64]
456
- },
457
- {
458
- "name": "PoseidonPowerEvent",
459
- "discriminator": [152, 36, 126, 105, 151, 203, 242, 60]
460
- },
461
- {
462
- "name": "PoseidonRewardsEvent",
463
- "discriminator": [93, 26, 205, 192, 107, 244, 92, 119]
464
- }
465
- ],
466
- "errors": [
467
- {
468
- "code": 6000,
469
- "name": "InvalidTrdToBurn",
470
- "msg": "Invalid TRD to burn"
471
473
  },
472
474
  {
473
- "code": 6001,
474
- "name": "InvalidNftToBurn",
475
- "msg": "Invalid nft to burn"
476
- }
477
- ],
478
- "types": [
479
- {
480
- "name": "BaseAssetV1",
481
- "type": {
482
- "kind": "struct",
483
- "fields": [
484
- {
485
- "name": "key",
486
- "type": {
487
- "defined": {
488
- "name": "Key"
475
+ "name": "create_chest",
476
+ "discriminator": [146, 35, 76, 242, 243, 197, 90, 0],
477
+ "accounts": [
478
+ {
479
+ "name": "signer",
480
+ "writable": true,
481
+ "signer": true
482
+ },
483
+ {
484
+ "name": "chest",
485
+ "writable": true,
486
+ "pda": {
487
+ "seeds": [
488
+ {
489
+ "kind": "const",
490
+ "value": [99, 104, 101, 115, 116]
491
+ },
492
+ {
493
+ "kind": "arg",
494
+ "path": "args.id"
495
+ }
496
+ ]
497
+ }
498
+ },
499
+ {
500
+ "name": "mint",
501
+ "writable": true,
502
+ "address": "t3DohmswhKk94PPbPYwA6ZKACyY3y5kbcqeQerAJjmV"
503
+ },
504
+ {
505
+ "name": "signer_ata",
506
+ "writable": true,
507
+ "pda": {
508
+ "seeds": [
509
+ {
510
+ "kind": "account",
511
+ "path": "signer"
512
+ },
513
+ {
514
+ "kind": "account",
515
+ "path": "token_program"
516
+ },
517
+ {
518
+ "kind": "account",
519
+ "path": "mint"
489
520
  }
521
+ ],
522
+ "program": {
523
+ "kind": "const",
524
+ "value": [
525
+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
526
+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
527
+ 219, 233, 248, 89
528
+ ]
490
529
  }
491
- },
492
- {
493
- "name": "owner",
494
- "type": "pubkey"
495
- },
496
- {
497
- "name": "update_authority",
498
- "type": {
499
- "defined": {
500
- "name": "UpdateAuthority"
530
+ }
531
+ },
532
+ {
533
+ "name": "chest_ata",
534
+ "writable": true,
535
+ "pda": {
536
+ "seeds": [
537
+ {
538
+ "kind": "account",
539
+ "path": "chest"
540
+ },
541
+ {
542
+ "kind": "account",
543
+ "path": "token_program"
544
+ },
545
+ {
546
+ "kind": "account",
547
+ "path": "mint"
501
548
  }
549
+ ],
550
+ "program": {
551
+ "kind": "const",
552
+ "value": [
553
+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
554
+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
555
+ 219, 233, 248, 89
556
+ ]
502
557
  }
503
- },
504
- {
505
- "name": "name",
506
- "type": "string"
507
- },
508
- {
509
- "name": "uri",
510
- "type": "string"
511
- },
512
- {
513
- "name": "seq",
514
- "type": {
515
- "option": "u64"
558
+ }
559
+ },
560
+ {
561
+ "name": "token_program",
562
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
563
+ },
564
+ {
565
+ "name": "associated_token_program",
566
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
567
+ },
568
+ {
569
+ "name": "system_program",
570
+ "address": "11111111111111111111111111111111"
571
+ }
572
+ ],
573
+ "args": [
574
+ {
575
+ "name": "args",
576
+ "type": {
577
+ "defined": {
578
+ "name": "CreateChestArgs"
516
579
  }
517
580
  }
518
- ]
519
- }
581
+ }
582
+ ]
520
583
  },
521
584
  {
522
- "name": "BaseCollectionV1",
523
- "type": {
524
- "kind": "struct",
525
- "fields": [
526
- {
527
- "name": "key",
528
- "type": {
529
- "defined": {
530
- "name": "Key"
585
+ "name": "create_user",
586
+ "discriminator": [108, 227, 130, 130, 252, 109, 75, 218],
587
+ "accounts": [
588
+ {
589
+ "name": "signer",
590
+ "writable": true,
591
+ "signer": true
592
+ },
593
+ {
594
+ "name": "payer",
595
+ "writable": true,
596
+ "signer": true
597
+ },
598
+ {
599
+ "name": "user",
600
+ "writable": true,
601
+ "pda": {
602
+ "seeds": [
603
+ {
604
+ "kind": "const",
605
+ "value": [117, 115, 101, 114]
606
+ },
607
+ {
608
+ "kind": "account",
609
+ "path": "signer"
531
610
  }
532
- }
533
- },
534
- {
535
- "name": "update_authority",
536
- "type": "pubkey"
537
- },
538
- {
539
- "name": "name",
540
- "type": "string"
541
- },
542
- {
543
- "name": "uri",
544
- "type": "string"
545
- },
546
- {
547
- "name": "num_minted",
548
- "type": "u32"
549
- },
550
- {
551
- "name": "current_size",
552
- "type": "u32"
611
+ ]
553
612
  }
554
- ]
555
- }
556
- },
557
- {
558
- "name": "Key",
613
+ },
614
+ {
615
+ "name": "mint",
616
+ "writable": true,
617
+ "address": "t3DohmswhKk94PPbPYwA6ZKACyY3y5kbcqeQerAJjmV"
618
+ },
619
+ {
620
+ "name": "user_ata",
621
+ "writable": true,
622
+ "pda": {
623
+ "seeds": [
624
+ {
625
+ "kind": "account",
626
+ "path": "user"
627
+ },
628
+ {
629
+ "kind": "account",
630
+ "path": "token_program"
631
+ },
632
+ {
633
+ "kind": "account",
634
+ "path": "mint"
635
+ }
636
+ ],
637
+ "program": {
638
+ "kind": "const",
639
+ "value": [
640
+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
641
+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
642
+ 219, 233, 248, 89
643
+ ]
644
+ }
645
+ }
646
+ },
647
+ {
648
+ "name": "token_program",
649
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
650
+ },
651
+ {
652
+ "name": "associated_token_program",
653
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
654
+ },
655
+ {
656
+ "name": "system_program",
657
+ "address": "11111111111111111111111111111111"
658
+ }
659
+ ],
660
+ "args": [
661
+ {
662
+ "name": "refer",
663
+ "type": "pubkey"
664
+ }
665
+ ]
666
+ },
667
+ {
668
+ "name": "place_chest_bid",
669
+ "discriminator": [82, 31, 146, 177, 220, 1, 7, 157],
670
+ "accounts": [
671
+ {
672
+ "name": "signer",
673
+ "writable": true,
674
+ "signer": true
675
+ },
676
+ {
677
+ "name": "squads",
678
+ "writable": true,
679
+ "address": "Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4"
680
+ },
681
+ {
682
+ "name": "chest",
683
+ "writable": true,
684
+ "pda": {
685
+ "seeds": [
686
+ {
687
+ "kind": "const",
688
+ "value": [99, 104, 101, 115, 116]
689
+ },
690
+ {
691
+ "kind": "arg",
692
+ "path": "args.id"
693
+ }
694
+ ]
695
+ }
696
+ },
697
+ {
698
+ "name": "user",
699
+ "writable": true
700
+ },
701
+ {
702
+ "name": "mint",
703
+ "writable": true,
704
+ "address": "t3DohmswhKk94PPbPYwA6ZKACyY3y5kbcqeQerAJjmV"
705
+ },
706
+ {
707
+ "name": "user_ata",
708
+ "writable": true,
709
+ "pda": {
710
+ "seeds": [
711
+ {
712
+ "kind": "account",
713
+ "path": "user"
714
+ },
715
+ {
716
+ "kind": "account",
717
+ "path": "token_program"
718
+ },
719
+ {
720
+ "kind": "account",
721
+ "path": "mint"
722
+ }
723
+ ],
724
+ "program": {
725
+ "kind": "const",
726
+ "value": [
727
+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
728
+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
729
+ 219, 233, 248, 89
730
+ ]
731
+ }
732
+ }
733
+ },
734
+ {
735
+ "name": "chest_ata",
736
+ "writable": true,
737
+ "pda": {
738
+ "seeds": [
739
+ {
740
+ "kind": "account",
741
+ "path": "chest"
742
+ },
743
+ {
744
+ "kind": "account",
745
+ "path": "token_program"
746
+ },
747
+ {
748
+ "kind": "account",
749
+ "path": "mint"
750
+ }
751
+ ],
752
+ "program": {
753
+ "kind": "const",
754
+ "value": [
755
+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
756
+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
757
+ 219, 233, 248, 89
758
+ ]
759
+ }
760
+ }
761
+ },
762
+ {
763
+ "name": "token_program",
764
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
765
+ },
766
+ {
767
+ "name": "associated_token_program",
768
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
769
+ },
770
+ {
771
+ "name": "system_program",
772
+ "address": "11111111111111111111111111111111"
773
+ }
774
+ ],
775
+ "args": [
776
+ {
777
+ "name": "args",
778
+ "type": {
779
+ "defined": {
780
+ "name": "PlaceChestBidArgs"
781
+ }
782
+ }
783
+ }
784
+ ]
785
+ },
786
+ {
787
+ "name": "withdraw_funds",
788
+ "discriminator": [241, 36, 29, 111, 208, 31, 104, 217],
789
+ "accounts": [
790
+ {
791
+ "name": "signer",
792
+ "writable": true,
793
+ "signer": true
794
+ },
795
+ {
796
+ "name": "payer",
797
+ "writable": true,
798
+ "signer": true
799
+ },
800
+ {
801
+ "name": "user",
802
+ "writable": true,
803
+ "pda": {
804
+ "seeds": [
805
+ {
806
+ "kind": "const",
807
+ "value": [117, 115, 101, 114]
808
+ },
809
+ {
810
+ "kind": "account",
811
+ "path": "signer"
812
+ }
813
+ ]
814
+ }
815
+ },
816
+ {
817
+ "name": "mint",
818
+ "writable": true,
819
+ "address": "t3DohmswhKk94PPbPYwA6ZKACyY3y5kbcqeQerAJjmV"
820
+ },
821
+ {
822
+ "name": "signer_ata",
823
+ "writable": true,
824
+ "pda": {
825
+ "seeds": [
826
+ {
827
+ "kind": "account",
828
+ "path": "signer"
829
+ },
830
+ {
831
+ "kind": "account",
832
+ "path": "token_program"
833
+ },
834
+ {
835
+ "kind": "account",
836
+ "path": "mint"
837
+ }
838
+ ],
839
+ "program": {
840
+ "kind": "const",
841
+ "value": [
842
+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
843
+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
844
+ 219, 233, 248, 89
845
+ ]
846
+ }
847
+ }
848
+ },
849
+ {
850
+ "name": "user_ata",
851
+ "writable": true,
852
+ "pda": {
853
+ "seeds": [
854
+ {
855
+ "kind": "account",
856
+ "path": "user"
857
+ },
858
+ {
859
+ "kind": "account",
860
+ "path": "token_program"
861
+ },
862
+ {
863
+ "kind": "account",
864
+ "path": "mint"
865
+ }
866
+ ],
867
+ "program": {
868
+ "kind": "const",
869
+ "value": [
870
+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
871
+ 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
872
+ 219, 233, 248, 89
873
+ ]
874
+ }
875
+ }
876
+ },
877
+ {
878
+ "name": "token_program",
879
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
880
+ },
881
+ {
882
+ "name": "associated_token_program",
883
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
884
+ },
885
+ {
886
+ "name": "system_program",
887
+ "address": "11111111111111111111111111111111"
888
+ }
889
+ ],
890
+ "args": [
891
+ {
892
+ "name": "amount",
893
+ "type": "u64"
894
+ }
895
+ ]
896
+ }
897
+ ],
898
+ "accounts": [
899
+ {
900
+ "name": "BaseAssetV1",
901
+ "discriminator": [0, 0, 0, 0, 0, 0, 0, 0]
902
+ },
903
+ {
904
+ "name": "BaseCollectionV1",
905
+ "discriminator": [0, 0, 0, 0, 0, 0, 0, 0]
906
+ },
907
+ {
908
+ "name": "Chest",
909
+ "discriminator": [62, 105, 229, 96, 248, 72, 144, 162]
910
+ },
911
+ {
912
+ "name": "Poseidon",
913
+ "discriminator": [7, 171, 193, 108, 245, 231, 215, 197]
914
+ },
915
+ {
916
+ "name": "PoseidonVault",
917
+ "discriminator": [62, 239, 250, 136, 100, 214, 169, 128]
918
+ },
919
+ {
920
+ "name": "User",
921
+ "discriminator": [159, 117, 95, 227, 239, 151, 58, 236]
922
+ }
923
+ ],
924
+ "events": [
925
+ {
926
+ "name": "BidChestEvent",
927
+ "discriminator": [162, 64, 11, 176, 231, 173, 217, 89]
928
+ },
929
+ {
930
+ "name": "ChestCreatedEvent",
931
+ "discriminator": [27, 178, 135, 161, 240, 189, 246, 238]
932
+ },
933
+ {
934
+ "name": "ChestFinishedEvent",
935
+ "discriminator": [131, 41, 197, 21, 81, 13, 105, 118]
936
+ },
937
+ {
938
+ "name": "PoseidonNftBurnEvent",
939
+ "discriminator": [220, 94, 221, 146, 218, 85, 13, 64]
940
+ },
941
+ {
942
+ "name": "PoseidonPowerEvent",
943
+ "discriminator": [152, 36, 126, 105, 151, 203, 242, 60]
944
+ },
945
+ {
946
+ "name": "PoseidonRewardsEvent",
947
+ "discriminator": [93, 26, 205, 192, 107, 244, 92, 119]
948
+ }
949
+ ],
950
+ "errors": [
951
+ {
952
+ "code": 6000,
953
+ "name": "InvalidTrdToBurn",
954
+ "msg": "Invalid TRD to burn"
955
+ },
956
+ {
957
+ "code": 6001,
958
+ "name": "InvalidNftToBurn",
959
+ "msg": "Invalid nft to burn"
960
+ },
961
+ {
962
+ "code": 6002,
963
+ "name": "ChestFinished",
964
+ "msg": "Chest finished"
965
+ },
966
+ {
967
+ "code": 6003,
968
+ "name": "ChestExpired",
969
+ "msg": "Chest expired"
970
+ },
971
+ {
972
+ "code": 6004,
973
+ "name": "InvalidAmount",
974
+ "msg": "Invalid amount"
975
+ }
976
+ ],
977
+ "types": [
978
+ {
979
+ "name": "AddChestWinnersArgs",
980
+ "type": {
981
+ "kind": "struct",
982
+ "fields": [
983
+ {
984
+ "name": "id",
985
+ "type": "u64"
986
+ },
987
+ {
988
+ "name": "grand_winner",
989
+ "type": {
990
+ "defined": {
991
+ "name": "ChestWinner"
992
+ }
993
+ }
994
+ },
995
+ {
996
+ "name": "top_10",
997
+ "type": {
998
+ "array": [
999
+ {
1000
+ "defined": {
1001
+ "name": "ChestWinner"
1002
+ }
1003
+ },
1004
+ 10
1005
+ ]
1006
+ }
1007
+ }
1008
+ ]
1009
+ }
1010
+ },
1011
+ {
1012
+ "name": "BaseAssetV1",
1013
+ "type": {
1014
+ "kind": "struct",
1015
+ "fields": [
1016
+ {
1017
+ "name": "key",
1018
+ "type": {
1019
+ "defined": {
1020
+ "name": "Key"
1021
+ }
1022
+ }
1023
+ },
1024
+ {
1025
+ "name": "owner",
1026
+ "type": "pubkey"
1027
+ },
1028
+ {
1029
+ "name": "update_authority",
1030
+ "type": {
1031
+ "defined": {
1032
+ "name": "UpdateAuthority"
1033
+ }
1034
+ }
1035
+ },
1036
+ {
1037
+ "name": "name",
1038
+ "type": "string"
1039
+ },
1040
+ {
1041
+ "name": "uri",
1042
+ "type": "string"
1043
+ },
1044
+ {
1045
+ "name": "seq",
1046
+ "type": {
1047
+ "option": "u64"
1048
+ }
1049
+ }
1050
+ ]
1051
+ }
1052
+ },
1053
+ {
1054
+ "name": "BaseCollectionV1",
1055
+ "type": {
1056
+ "kind": "struct",
1057
+ "fields": [
1058
+ {
1059
+ "name": "key",
1060
+ "type": {
1061
+ "defined": {
1062
+ "name": "Key"
1063
+ }
1064
+ }
1065
+ },
1066
+ {
1067
+ "name": "update_authority",
1068
+ "type": "pubkey"
1069
+ },
1070
+ {
1071
+ "name": "name",
1072
+ "type": "string"
1073
+ },
1074
+ {
1075
+ "name": "uri",
1076
+ "type": "string"
1077
+ },
1078
+ {
1079
+ "name": "num_minted",
1080
+ "type": "u32"
1081
+ },
1082
+ {
1083
+ "name": "current_size",
1084
+ "type": "u32"
1085
+ }
1086
+ ]
1087
+ }
1088
+ },
1089
+ {
1090
+ "name": "BidChestEvent",
1091
+ "type": {
1092
+ "kind": "struct",
1093
+ "fields": [
1094
+ {
1095
+ "name": "user",
1096
+ "type": "pubkey"
1097
+ },
1098
+ {
1099
+ "name": "chest",
1100
+ "type": "pubkey"
1101
+ },
1102
+ {
1103
+ "name": "coins",
1104
+ "type": "u64"
1105
+ },
1106
+ {
1107
+ "name": "timestamp",
1108
+ "type": "i64"
1109
+ }
1110
+ ]
1111
+ }
1112
+ },
1113
+ {
1114
+ "name": "Chest",
1115
+ "type": {
1116
+ "kind": "struct",
1117
+ "fields": [
1118
+ {
1119
+ "name": "bump",
1120
+ "type": "u8"
1121
+ },
1122
+ {
1123
+ "name": "authority",
1124
+ "type": "pubkey"
1125
+ },
1126
+ {
1127
+ "name": "id",
1128
+ "type": "u64"
1129
+ },
1130
+ {
1131
+ "name": "amount",
1132
+ "type": "u64"
1133
+ },
1134
+ {
1135
+ "name": "coins",
1136
+ "type": "u64"
1137
+ },
1138
+ {
1139
+ "name": "timer",
1140
+ "type": "i64"
1141
+ },
1142
+ {
1143
+ "name": "price",
1144
+ "type": "u64"
1145
+ },
1146
+ {
1147
+ "name": "is_finished",
1148
+ "type": "bool"
1149
+ },
1150
+ {
1151
+ "name": "last_user",
1152
+ "type": "pubkey"
1153
+ },
1154
+ {
1155
+ "name": "grand_winner",
1156
+ "type": {
1157
+ "defined": {
1158
+ "name": "ChestWinner"
1159
+ }
1160
+ }
1161
+ },
1162
+ {
1163
+ "name": "top_10",
1164
+ "type": {
1165
+ "array": [
1166
+ {
1167
+ "defined": {
1168
+ "name": "ChestWinner"
1169
+ }
1170
+ },
1171
+ 10
1172
+ ]
1173
+ }
1174
+ },
1175
+ {
1176
+ "name": "is_paid",
1177
+ "type": "bool"
1178
+ },
1179
+ {
1180
+ "name": "created_at",
1181
+ "type": "i64"
1182
+ },
1183
+ {
1184
+ "name": "finished_at",
1185
+ "type": "i64"
1186
+ },
1187
+ {
1188
+ "name": "padding",
1189
+ "type": {
1190
+ "array": ["u8", 64]
1191
+ }
1192
+ }
1193
+ ]
1194
+ }
1195
+ },
1196
+ {
1197
+ "name": "ChestCreatedEvent",
1198
+ "type": {
1199
+ "kind": "struct",
1200
+ "fields": [
1201
+ {
1202
+ "name": "chest",
1203
+ "type": "pubkey"
1204
+ },
1205
+ {
1206
+ "name": "authority",
1207
+ "type": "pubkey"
1208
+ },
1209
+ {
1210
+ "name": "price",
1211
+ "type": "u64"
1212
+ },
1213
+ {
1214
+ "name": "timer",
1215
+ "type": "i64"
1216
+ },
1217
+ {
1218
+ "name": "timestamp",
1219
+ "type": "i64"
1220
+ }
1221
+ ]
1222
+ }
1223
+ },
1224
+ {
1225
+ "name": "ChestFinishedEvent",
1226
+ "type": {
1227
+ "kind": "struct",
1228
+ "fields": [
1229
+ {
1230
+ "name": "chest",
1231
+ "type": "pubkey"
1232
+ },
1233
+ {
1234
+ "name": "last_user",
1235
+ "type": "pubkey"
1236
+ },
1237
+ {
1238
+ "name": "amount",
1239
+ "type": "u64"
1240
+ },
1241
+ {
1242
+ "name": "timestamp",
1243
+ "type": "i64"
1244
+ }
1245
+ ]
1246
+ }
1247
+ },
1248
+ {
1249
+ "name": "ChestWinner",
1250
+ "type": {
1251
+ "kind": "struct",
1252
+ "fields": [
1253
+ {
1254
+ "name": "authority",
1255
+ "type": "pubkey"
1256
+ },
1257
+ {
1258
+ "name": "amount",
1259
+ "type": "u64"
1260
+ }
1261
+ ]
1262
+ }
1263
+ },
1264
+ {
1265
+ "name": "CreateChestArgs",
1266
+ "type": {
1267
+ "kind": "struct",
1268
+ "fields": [
1269
+ {
1270
+ "name": "id",
1271
+ "type": "u64"
1272
+ },
1273
+ {
1274
+ "name": "price",
1275
+ "type": "u64"
1276
+ },
1277
+ {
1278
+ "name": "amount",
1279
+ "type": "u64"
1280
+ }
1281
+ ]
1282
+ }
1283
+ },
1284
+ {
1285
+ "name": "Key",
559
1286
  "type": {
560
1287
  "kind": "enum",
561
1288
  "variants": [
@@ -580,6 +1307,22 @@
580
1307
  ]
581
1308
  }
582
1309
  },
1310
+ {
1311
+ "name": "PlaceChestBidArgs",
1312
+ "type": {
1313
+ "kind": "struct",
1314
+ "fields": [
1315
+ {
1316
+ "name": "id",
1317
+ "type": "u64"
1318
+ },
1319
+ {
1320
+ "name": "coins",
1321
+ "type": "u64"
1322
+ }
1323
+ ]
1324
+ }
1325
+ },
583
1326
  {
584
1327
  "name": "Poseidon",
585
1328
  "type": {
@@ -770,6 +1513,36 @@
770
1513
  }
771
1514
  ]
772
1515
  }
1516
+ },
1517
+ {
1518
+ "name": "User",
1519
+ "type": {
1520
+ "kind": "struct",
1521
+ "fields": [
1522
+ {
1523
+ "name": "bump",
1524
+ "type": "u8"
1525
+ },
1526
+ {
1527
+ "name": "authority",
1528
+ "type": "pubkey"
1529
+ },
1530
+ {
1531
+ "name": "refer",
1532
+ "type": "pubkey"
1533
+ },
1534
+ {
1535
+ "name": "created_at",
1536
+ "type": "i64"
1537
+ },
1538
+ {
1539
+ "name": "padding",
1540
+ "type": {
1541
+ "array": ["u8", 64]
1542
+ }
1543
+ }
1544
+ ]
1545
+ }
773
1546
  }
774
1547
  ]
775
1548
  }