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