@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.
@@ -13,6 +13,47 @@ export type PoseidonsProtocol = {
13
13
  description: 'Created with Anchor';
14
14
  };
15
15
  instructions: [
16
+ {
17
+ name: 'addChestWinners';
18
+ discriminator: [184, 188, 206, 53, 106, 189, 125, 249];
19
+ accounts: [
20
+ {
21
+ name: 'signer';
22
+ writable: true;
23
+ signer: true;
24
+ },
25
+ {
26
+ name: 'chest';
27
+ writable: true;
28
+ pda: {
29
+ seeds: [
30
+ {
31
+ kind: 'const';
32
+ value: [99, 104, 101, 115, 116];
33
+ },
34
+ {
35
+ kind: 'arg';
36
+ path: 'args.id';
37
+ }
38
+ ];
39
+ };
40
+ },
41
+ {
42
+ name: 'systemProgram';
43
+ address: '11111111111111111111111111111111';
44
+ }
45
+ ];
46
+ args: [
47
+ {
48
+ name: 'args';
49
+ type: {
50
+ defined: {
51
+ name: 'addChestWinnersArgs';
52
+ };
53
+ };
54
+ }
55
+ ];
56
+ },
16
57
  {
17
58
  name: 'addPoseidonPower';
18
59
  discriminator: [38, 32, 48, 65, 104, 150, 57, 10];
@@ -154,10 +195,6 @@ export type PoseidonsProtocol = {
154
195
  {
155
196
  name: 'rewards';
156
197
  type: 'u64';
157
- },
158
- {
159
- name: 'power';
160
- type: 'u64';
161
198
  }
162
199
  ];
163
200
  },
@@ -604,102 +641,792 @@ export type PoseidonsProtocol = {
604
641
  }
605
642
  ];
606
643
  args: [];
607
- }
608
- ];
609
- accounts: [
610
- {
611
- name: 'baseAssetV1';
612
- discriminator: [0, 0, 0, 0, 0, 0, 0, 0];
613
- },
614
- {
615
- name: 'baseCollectionV1';
616
- discriminator: [0, 0, 0, 0, 0, 0, 0, 0];
617
- },
618
- {
619
- name: 'poseidon';
620
- discriminator: [7, 171, 193, 108, 245, 231, 215, 197];
621
- },
622
- {
623
- name: 'poseidonVault';
624
- discriminator: [62, 239, 250, 136, 100, 214, 169, 128];
625
- }
626
- ];
627
- events: [
628
- {
629
- name: 'poseidonNftBurnEvent';
630
- discriminator: [220, 94, 221, 146, 218, 85, 13, 64];
631
- },
632
- {
633
- name: 'poseidonPowerEvent';
634
- discriminator: [152, 36, 126, 105, 151, 203, 242, 60];
635
- },
636
- {
637
- name: 'poseidonRewardsEvent';
638
- discriminator: [93, 26, 205, 192, 107, 244, 92, 119];
639
- }
640
- ];
641
- errors: [
642
- {
643
- code: 6000;
644
- name: 'invalidTrdToBurn';
645
- msg: 'Invalid TRD to burn';
646
644
  },
647
645
  {
648
- code: 6001;
649
- name: 'invalidNftToBurn';
650
- msg: 'Invalid nft to burn';
651
- }
652
- ];
653
- types: [
654
- {
655
- name: 'baseAssetV1';
656
- type: {
657
- kind: 'struct';
658
- fields: [
659
- {
660
- name: 'key';
661
- type: {
662
- defined: {
663
- name: 'key';
664
- };
665
- };
666
- },
667
- {
668
- name: 'owner';
669
- type: 'pubkey';
670
- },
671
- {
672
- name: 'updateAuthority';
673
- type: {
674
- defined: {
675
- name: 'updateAuthority';
676
- };
646
+ name: 'createChest';
647
+ discriminator: [146, 35, 76, 242, 243, 197, 90, 0];
648
+ accounts: [
649
+ {
650
+ name: 'signer';
651
+ writable: true;
652
+ signer: true;
653
+ },
654
+ {
655
+ name: 'chest';
656
+ writable: true;
657
+ pda: {
658
+ seeds: [
659
+ {
660
+ kind: 'const';
661
+ value: [99, 104, 101, 115, 116];
662
+ },
663
+ {
664
+ kind: 'arg';
665
+ path: 'args.id';
666
+ }
667
+ ];
668
+ };
669
+ },
670
+ {
671
+ name: 'mint';
672
+ writable: true;
673
+ address: 't3DohmswhKk94PPbPYwA6ZKACyY3y5kbcqeQerAJjmV';
674
+ },
675
+ {
676
+ name: 'signerAta';
677
+ writable: true;
678
+ pda: {
679
+ seeds: [
680
+ {
681
+ kind: 'account';
682
+ path: 'signer';
683
+ },
684
+ {
685
+ kind: 'account';
686
+ path: 'tokenProgram';
687
+ },
688
+ {
689
+ kind: 'account';
690
+ path: 'mint';
691
+ }
692
+ ];
693
+ program: {
694
+ kind: 'const';
695
+ value: [
696
+ 140,
697
+ 151,
698
+ 37,
699
+ 143,
700
+ 78,
701
+ 36,
702
+ 137,
703
+ 241,
704
+ 187,
705
+ 61,
706
+ 16,
707
+ 41,
708
+ 20,
709
+ 142,
710
+ 13,
711
+ 131,
712
+ 11,
713
+ 90,
714
+ 19,
715
+ 153,
716
+ 218,
717
+ 255,
718
+ 16,
719
+ 132,
720
+ 4,
721
+ 142,
722
+ 123,
723
+ 216,
724
+ 219,
725
+ 233,
726
+ 248,
727
+ 89
728
+ ];
677
729
  };
678
- },
679
- {
680
- name: 'name';
681
- type: 'string';
682
- },
683
- {
684
- name: 'uri';
685
- type: 'string';
686
- },
687
- {
688
- name: 'seq';
689
- type: {
690
- option: 'u64';
730
+ };
731
+ },
732
+ {
733
+ name: 'chestAta';
734
+ writable: true;
735
+ pda: {
736
+ seeds: [
737
+ {
738
+ kind: 'account';
739
+ path: 'chest';
740
+ },
741
+ {
742
+ kind: 'account';
743
+ path: 'tokenProgram';
744
+ },
745
+ {
746
+ kind: 'account';
747
+ path: 'mint';
748
+ }
749
+ ];
750
+ program: {
751
+ kind: 'const';
752
+ value: [
753
+ 140,
754
+ 151,
755
+ 37,
756
+ 143,
757
+ 78,
758
+ 36,
759
+ 137,
760
+ 241,
761
+ 187,
762
+ 61,
763
+ 16,
764
+ 41,
765
+ 20,
766
+ 142,
767
+ 13,
768
+ 131,
769
+ 11,
770
+ 90,
771
+ 19,
772
+ 153,
773
+ 218,
774
+ 255,
775
+ 16,
776
+ 132,
777
+ 4,
778
+ 142,
779
+ 123,
780
+ 216,
781
+ 219,
782
+ 233,
783
+ 248,
784
+ 89
785
+ ];
691
786
  };
692
- }
693
- ];
694
- };
695
- },
696
- {
697
- name: 'baseCollectionV1';
698
- type: {
699
- kind: 'struct';
700
- fields: [
701
- {
702
- name: 'key';
787
+ };
788
+ },
789
+ {
790
+ name: 'tokenProgram';
791
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
792
+ },
793
+ {
794
+ name: 'associatedTokenProgram';
795
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
796
+ },
797
+ {
798
+ name: 'systemProgram';
799
+ address: '11111111111111111111111111111111';
800
+ }
801
+ ];
802
+ args: [
803
+ {
804
+ name: 'args';
805
+ type: {
806
+ defined: {
807
+ name: 'createChestArgs';
808
+ };
809
+ };
810
+ }
811
+ ];
812
+ },
813
+ {
814
+ name: 'createUser';
815
+ discriminator: [108, 227, 130, 130, 252, 109, 75, 218];
816
+ accounts: [
817
+ {
818
+ name: 'signer';
819
+ writable: true;
820
+ signer: true;
821
+ },
822
+ {
823
+ name: 'payer';
824
+ writable: true;
825
+ signer: true;
826
+ },
827
+ {
828
+ name: 'user';
829
+ writable: true;
830
+ pda: {
831
+ seeds: [
832
+ {
833
+ kind: 'const';
834
+ value: [117, 115, 101, 114];
835
+ },
836
+ {
837
+ kind: 'account';
838
+ path: 'signer';
839
+ }
840
+ ];
841
+ };
842
+ },
843
+ {
844
+ name: 'mint';
845
+ writable: true;
846
+ address: 't3DohmswhKk94PPbPYwA6ZKACyY3y5kbcqeQerAJjmV';
847
+ },
848
+ {
849
+ name: 'userAta';
850
+ writable: true;
851
+ pda: {
852
+ seeds: [
853
+ {
854
+ kind: 'account';
855
+ path: 'user';
856
+ },
857
+ {
858
+ kind: 'account';
859
+ path: 'tokenProgram';
860
+ },
861
+ {
862
+ kind: 'account';
863
+ path: 'mint';
864
+ }
865
+ ];
866
+ program: {
867
+ kind: 'const';
868
+ value: [
869
+ 140,
870
+ 151,
871
+ 37,
872
+ 143,
873
+ 78,
874
+ 36,
875
+ 137,
876
+ 241,
877
+ 187,
878
+ 61,
879
+ 16,
880
+ 41,
881
+ 20,
882
+ 142,
883
+ 13,
884
+ 131,
885
+ 11,
886
+ 90,
887
+ 19,
888
+ 153,
889
+ 218,
890
+ 255,
891
+ 16,
892
+ 132,
893
+ 4,
894
+ 142,
895
+ 123,
896
+ 216,
897
+ 219,
898
+ 233,
899
+ 248,
900
+ 89
901
+ ];
902
+ };
903
+ };
904
+ },
905
+ {
906
+ name: 'tokenProgram';
907
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
908
+ },
909
+ {
910
+ name: 'associatedTokenProgram';
911
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
912
+ },
913
+ {
914
+ name: 'systemProgram';
915
+ address: '11111111111111111111111111111111';
916
+ }
917
+ ];
918
+ args: [
919
+ {
920
+ name: 'refer';
921
+ type: 'pubkey';
922
+ }
923
+ ];
924
+ },
925
+ {
926
+ name: 'placeChestBid';
927
+ discriminator: [82, 31, 146, 177, 220, 1, 7, 157];
928
+ accounts: [
929
+ {
930
+ name: 'signer';
931
+ writable: true;
932
+ signer: true;
933
+ },
934
+ {
935
+ name: 'squads';
936
+ writable: true;
937
+ address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
938
+ },
939
+ {
940
+ name: 'chest';
941
+ writable: true;
942
+ pda: {
943
+ seeds: [
944
+ {
945
+ kind: 'const';
946
+ value: [99, 104, 101, 115, 116];
947
+ },
948
+ {
949
+ kind: 'arg';
950
+ path: 'args.id';
951
+ }
952
+ ];
953
+ };
954
+ },
955
+ {
956
+ name: 'user';
957
+ writable: true;
958
+ },
959
+ {
960
+ name: 'mint';
961
+ writable: true;
962
+ address: 't3DohmswhKk94PPbPYwA6ZKACyY3y5kbcqeQerAJjmV';
963
+ },
964
+ {
965
+ name: 'userAta';
966
+ writable: true;
967
+ pda: {
968
+ seeds: [
969
+ {
970
+ kind: 'account';
971
+ path: 'user';
972
+ },
973
+ {
974
+ kind: 'account';
975
+ path: 'tokenProgram';
976
+ },
977
+ {
978
+ kind: 'account';
979
+ path: 'mint';
980
+ }
981
+ ];
982
+ program: {
983
+ kind: 'const';
984
+ value: [
985
+ 140,
986
+ 151,
987
+ 37,
988
+ 143,
989
+ 78,
990
+ 36,
991
+ 137,
992
+ 241,
993
+ 187,
994
+ 61,
995
+ 16,
996
+ 41,
997
+ 20,
998
+ 142,
999
+ 13,
1000
+ 131,
1001
+ 11,
1002
+ 90,
1003
+ 19,
1004
+ 153,
1005
+ 218,
1006
+ 255,
1007
+ 16,
1008
+ 132,
1009
+ 4,
1010
+ 142,
1011
+ 123,
1012
+ 216,
1013
+ 219,
1014
+ 233,
1015
+ 248,
1016
+ 89
1017
+ ];
1018
+ };
1019
+ };
1020
+ },
1021
+ {
1022
+ name: 'chestAta';
1023
+ writable: true;
1024
+ pda: {
1025
+ seeds: [
1026
+ {
1027
+ kind: 'account';
1028
+ path: 'chest';
1029
+ },
1030
+ {
1031
+ kind: 'account';
1032
+ path: 'tokenProgram';
1033
+ },
1034
+ {
1035
+ kind: 'account';
1036
+ path: 'mint';
1037
+ }
1038
+ ];
1039
+ program: {
1040
+ kind: 'const';
1041
+ value: [
1042
+ 140,
1043
+ 151,
1044
+ 37,
1045
+ 143,
1046
+ 78,
1047
+ 36,
1048
+ 137,
1049
+ 241,
1050
+ 187,
1051
+ 61,
1052
+ 16,
1053
+ 41,
1054
+ 20,
1055
+ 142,
1056
+ 13,
1057
+ 131,
1058
+ 11,
1059
+ 90,
1060
+ 19,
1061
+ 153,
1062
+ 218,
1063
+ 255,
1064
+ 16,
1065
+ 132,
1066
+ 4,
1067
+ 142,
1068
+ 123,
1069
+ 216,
1070
+ 219,
1071
+ 233,
1072
+ 248,
1073
+ 89
1074
+ ];
1075
+ };
1076
+ };
1077
+ },
1078
+ {
1079
+ name: 'tokenProgram';
1080
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1081
+ },
1082
+ {
1083
+ name: 'associatedTokenProgram';
1084
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1085
+ },
1086
+ {
1087
+ name: 'systemProgram';
1088
+ address: '11111111111111111111111111111111';
1089
+ }
1090
+ ];
1091
+ args: [
1092
+ {
1093
+ name: 'args';
1094
+ type: {
1095
+ defined: {
1096
+ name: 'placeChestBidArgs';
1097
+ };
1098
+ };
1099
+ }
1100
+ ];
1101
+ },
1102
+ {
1103
+ name: 'withdrawFunds';
1104
+ discriminator: [241, 36, 29, 111, 208, 31, 104, 217];
1105
+ accounts: [
1106
+ {
1107
+ name: 'signer';
1108
+ writable: true;
1109
+ signer: true;
1110
+ },
1111
+ {
1112
+ name: 'payer';
1113
+ writable: true;
1114
+ signer: true;
1115
+ },
1116
+ {
1117
+ name: 'user';
1118
+ writable: true;
1119
+ pda: {
1120
+ seeds: [
1121
+ {
1122
+ kind: 'const';
1123
+ value: [117, 115, 101, 114];
1124
+ },
1125
+ {
1126
+ kind: 'account';
1127
+ path: 'signer';
1128
+ }
1129
+ ];
1130
+ };
1131
+ },
1132
+ {
1133
+ name: 'mint';
1134
+ writable: true;
1135
+ address: 't3DohmswhKk94PPbPYwA6ZKACyY3y5kbcqeQerAJjmV';
1136
+ },
1137
+ {
1138
+ name: 'signerAta';
1139
+ writable: true;
1140
+ pda: {
1141
+ seeds: [
1142
+ {
1143
+ kind: 'account';
1144
+ path: 'signer';
1145
+ },
1146
+ {
1147
+ kind: 'account';
1148
+ path: 'tokenProgram';
1149
+ },
1150
+ {
1151
+ kind: 'account';
1152
+ path: 'mint';
1153
+ }
1154
+ ];
1155
+ program: {
1156
+ kind: 'const';
1157
+ value: [
1158
+ 140,
1159
+ 151,
1160
+ 37,
1161
+ 143,
1162
+ 78,
1163
+ 36,
1164
+ 137,
1165
+ 241,
1166
+ 187,
1167
+ 61,
1168
+ 16,
1169
+ 41,
1170
+ 20,
1171
+ 142,
1172
+ 13,
1173
+ 131,
1174
+ 11,
1175
+ 90,
1176
+ 19,
1177
+ 153,
1178
+ 218,
1179
+ 255,
1180
+ 16,
1181
+ 132,
1182
+ 4,
1183
+ 142,
1184
+ 123,
1185
+ 216,
1186
+ 219,
1187
+ 233,
1188
+ 248,
1189
+ 89
1190
+ ];
1191
+ };
1192
+ };
1193
+ },
1194
+ {
1195
+ name: 'userAta';
1196
+ writable: true;
1197
+ pda: {
1198
+ seeds: [
1199
+ {
1200
+ kind: 'account';
1201
+ path: 'user';
1202
+ },
1203
+ {
1204
+ kind: 'account';
1205
+ path: 'tokenProgram';
1206
+ },
1207
+ {
1208
+ kind: 'account';
1209
+ path: 'mint';
1210
+ }
1211
+ ];
1212
+ program: {
1213
+ kind: 'const';
1214
+ value: [
1215
+ 140,
1216
+ 151,
1217
+ 37,
1218
+ 143,
1219
+ 78,
1220
+ 36,
1221
+ 137,
1222
+ 241,
1223
+ 187,
1224
+ 61,
1225
+ 16,
1226
+ 41,
1227
+ 20,
1228
+ 142,
1229
+ 13,
1230
+ 131,
1231
+ 11,
1232
+ 90,
1233
+ 19,
1234
+ 153,
1235
+ 218,
1236
+ 255,
1237
+ 16,
1238
+ 132,
1239
+ 4,
1240
+ 142,
1241
+ 123,
1242
+ 216,
1243
+ 219,
1244
+ 233,
1245
+ 248,
1246
+ 89
1247
+ ];
1248
+ };
1249
+ };
1250
+ },
1251
+ {
1252
+ name: 'tokenProgram';
1253
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1254
+ },
1255
+ {
1256
+ name: 'associatedTokenProgram';
1257
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1258
+ },
1259
+ {
1260
+ name: 'systemProgram';
1261
+ address: '11111111111111111111111111111111';
1262
+ }
1263
+ ];
1264
+ args: [
1265
+ {
1266
+ name: 'amount';
1267
+ type: 'u64';
1268
+ }
1269
+ ];
1270
+ }
1271
+ ];
1272
+ accounts: [
1273
+ {
1274
+ name: 'baseAssetV1';
1275
+ discriminator: [0, 0, 0, 0, 0, 0, 0, 0];
1276
+ },
1277
+ {
1278
+ name: 'baseCollectionV1';
1279
+ discriminator: [0, 0, 0, 0, 0, 0, 0, 0];
1280
+ },
1281
+ {
1282
+ name: 'chest';
1283
+ discriminator: [62, 105, 229, 96, 248, 72, 144, 162];
1284
+ },
1285
+ {
1286
+ name: 'poseidon';
1287
+ discriminator: [7, 171, 193, 108, 245, 231, 215, 197];
1288
+ },
1289
+ {
1290
+ name: 'poseidonVault';
1291
+ discriminator: [62, 239, 250, 136, 100, 214, 169, 128];
1292
+ },
1293
+ {
1294
+ name: 'user';
1295
+ discriminator: [159, 117, 95, 227, 239, 151, 58, 236];
1296
+ }
1297
+ ];
1298
+ events: [
1299
+ {
1300
+ name: 'bidChestEvent';
1301
+ discriminator: [162, 64, 11, 176, 231, 173, 217, 89];
1302
+ },
1303
+ {
1304
+ name: 'chestFinishedEvent';
1305
+ discriminator: [131, 41, 197, 21, 81, 13, 105, 118];
1306
+ },
1307
+ {
1308
+ name: 'poseidonNftBurnEvent';
1309
+ discriminator: [220, 94, 221, 146, 218, 85, 13, 64];
1310
+ },
1311
+ {
1312
+ name: 'poseidonPowerEvent';
1313
+ discriminator: [152, 36, 126, 105, 151, 203, 242, 60];
1314
+ },
1315
+ {
1316
+ name: 'poseidonRewardsEvent';
1317
+ discriminator: [93, 26, 205, 192, 107, 244, 92, 119];
1318
+ }
1319
+ ];
1320
+ errors: [
1321
+ {
1322
+ code: 6000;
1323
+ name: 'invalidTrdToBurn';
1324
+ msg: 'Invalid TRD to burn';
1325
+ },
1326
+ {
1327
+ code: 6001;
1328
+ name: 'invalidNftToBurn';
1329
+ msg: 'Invalid nft to burn';
1330
+ },
1331
+ {
1332
+ code: 6002;
1333
+ name: 'chestFinished';
1334
+ msg: 'Chest finished';
1335
+ },
1336
+ {
1337
+ code: 6003;
1338
+ name: 'chestExpired';
1339
+ msg: 'Chest expired';
1340
+ },
1341
+ {
1342
+ code: 6004;
1343
+ name: 'invalidAmount';
1344
+ msg: 'Invalid amount';
1345
+ }
1346
+ ];
1347
+ types: [
1348
+ {
1349
+ name: 'addChestWinnersArgs';
1350
+ type: {
1351
+ kind: 'struct';
1352
+ fields: [
1353
+ {
1354
+ name: 'id';
1355
+ type: 'u64';
1356
+ },
1357
+ {
1358
+ name: 'grandWinner';
1359
+ type: {
1360
+ defined: {
1361
+ name: 'chestWinner';
1362
+ };
1363
+ };
1364
+ },
1365
+ {
1366
+ name: 'top10';
1367
+ type: {
1368
+ array: [
1369
+ {
1370
+ defined: {
1371
+ name: 'chestWinner';
1372
+ };
1373
+ },
1374
+ 10
1375
+ ];
1376
+ };
1377
+ }
1378
+ ];
1379
+ };
1380
+ },
1381
+ {
1382
+ name: 'baseAssetV1';
1383
+ type: {
1384
+ kind: 'struct';
1385
+ fields: [
1386
+ {
1387
+ name: 'key';
1388
+ type: {
1389
+ defined: {
1390
+ name: 'key';
1391
+ };
1392
+ };
1393
+ },
1394
+ {
1395
+ name: 'owner';
1396
+ type: 'pubkey';
1397
+ },
1398
+ {
1399
+ name: 'updateAuthority';
1400
+ type: {
1401
+ defined: {
1402
+ name: 'updateAuthority';
1403
+ };
1404
+ };
1405
+ },
1406
+ {
1407
+ name: 'name';
1408
+ type: 'string';
1409
+ },
1410
+ {
1411
+ name: 'uri';
1412
+ type: 'string';
1413
+ },
1414
+ {
1415
+ name: 'seq';
1416
+ type: {
1417
+ option: 'u64';
1418
+ };
1419
+ }
1420
+ ];
1421
+ };
1422
+ },
1423
+ {
1424
+ name: 'baseCollectionV1';
1425
+ type: {
1426
+ kind: 'struct';
1427
+ fields: [
1428
+ {
1429
+ name: 'key';
703
1430
  type: {
704
1431
  defined: {
705
1432
  name: 'key';
@@ -729,6 +1456,173 @@ export type PoseidonsProtocol = {
729
1456
  ];
730
1457
  };
731
1458
  },
1459
+ {
1460
+ name: 'bidChestEvent';
1461
+ type: {
1462
+ kind: 'struct';
1463
+ fields: [
1464
+ {
1465
+ name: 'user';
1466
+ type: 'pubkey';
1467
+ },
1468
+ {
1469
+ name: 'chest';
1470
+ type: 'pubkey';
1471
+ },
1472
+ {
1473
+ name: 'coins';
1474
+ type: 'u64';
1475
+ },
1476
+ {
1477
+ name: 'timestamp';
1478
+ type: 'i64';
1479
+ }
1480
+ ];
1481
+ };
1482
+ },
1483
+ {
1484
+ name: 'chest';
1485
+ type: {
1486
+ kind: 'struct';
1487
+ fields: [
1488
+ {
1489
+ name: 'bump';
1490
+ type: 'u8';
1491
+ },
1492
+ {
1493
+ name: 'authority';
1494
+ type: 'pubkey';
1495
+ },
1496
+ {
1497
+ name: 'id';
1498
+ type: 'u64';
1499
+ },
1500
+ {
1501
+ name: 'amount';
1502
+ type: 'u64';
1503
+ },
1504
+ {
1505
+ name: 'coins';
1506
+ type: 'u64';
1507
+ },
1508
+ {
1509
+ name: 'timer';
1510
+ type: 'i64';
1511
+ },
1512
+ {
1513
+ name: 'price';
1514
+ type: 'u64';
1515
+ },
1516
+ {
1517
+ name: 'isFinished';
1518
+ type: 'bool';
1519
+ },
1520
+ {
1521
+ name: 'lastUser';
1522
+ type: 'pubkey';
1523
+ },
1524
+ {
1525
+ name: 'grandWinner';
1526
+ type: {
1527
+ defined: {
1528
+ name: 'chestWinner';
1529
+ };
1530
+ };
1531
+ },
1532
+ {
1533
+ name: 'top10';
1534
+ type: {
1535
+ array: [
1536
+ {
1537
+ defined: {
1538
+ name: 'chestWinner';
1539
+ };
1540
+ },
1541
+ 10
1542
+ ];
1543
+ };
1544
+ },
1545
+ {
1546
+ name: 'isPaid';
1547
+ type: 'bool';
1548
+ },
1549
+ {
1550
+ name: 'createdAt';
1551
+ type: 'i64';
1552
+ },
1553
+ {
1554
+ name: 'finishedAt';
1555
+ type: 'i64';
1556
+ },
1557
+ {
1558
+ name: 'padding';
1559
+ type: {
1560
+ array: ['u8', 64];
1561
+ };
1562
+ }
1563
+ ];
1564
+ };
1565
+ },
1566
+ {
1567
+ name: 'chestFinishedEvent';
1568
+ type: {
1569
+ kind: 'struct';
1570
+ fields: [
1571
+ {
1572
+ name: 'chest';
1573
+ type: 'pubkey';
1574
+ },
1575
+ {
1576
+ name: 'lastUser';
1577
+ type: 'pubkey';
1578
+ },
1579
+ {
1580
+ name: 'amount';
1581
+ type: 'u64';
1582
+ },
1583
+ {
1584
+ name: 'timestamp';
1585
+ type: 'i64';
1586
+ }
1587
+ ];
1588
+ };
1589
+ },
1590
+ {
1591
+ name: 'chestWinner';
1592
+ type: {
1593
+ kind: 'struct';
1594
+ fields: [
1595
+ {
1596
+ name: 'authority';
1597
+ type: 'pubkey';
1598
+ },
1599
+ {
1600
+ name: 'amount';
1601
+ type: 'u64';
1602
+ }
1603
+ ];
1604
+ };
1605
+ },
1606
+ {
1607
+ name: 'createChestArgs';
1608
+ type: {
1609
+ kind: 'struct';
1610
+ fields: [
1611
+ {
1612
+ name: 'id';
1613
+ type: 'u64';
1614
+ },
1615
+ {
1616
+ name: 'price';
1617
+ type: 'u64';
1618
+ },
1619
+ {
1620
+ name: 'amount';
1621
+ type: 'u64';
1622
+ }
1623
+ ];
1624
+ };
1625
+ },
732
1626
  {
733
1627
  name: 'key';
734
1628
  type: {
@@ -755,6 +1649,22 @@ export type PoseidonsProtocol = {
755
1649
  ];
756
1650
  };
757
1651
  },
1652
+ {
1653
+ name: 'placeChestBidArgs';
1654
+ type: {
1655
+ kind: 'struct';
1656
+ fields: [
1657
+ {
1658
+ name: 'id';
1659
+ type: 'u64';
1660
+ },
1661
+ {
1662
+ name: 'coins';
1663
+ type: 'u64';
1664
+ }
1665
+ ];
1666
+ };
1667
+ },
758
1668
  {
759
1669
  name: 'poseidon';
760
1670
  type: {
@@ -945,6 +1855,36 @@ export type PoseidonsProtocol = {
945
1855
  }
946
1856
  ];
947
1857
  };
1858
+ },
1859
+ {
1860
+ name: 'user';
1861
+ type: {
1862
+ kind: 'struct';
1863
+ fields: [
1864
+ {
1865
+ name: 'bump';
1866
+ type: 'u8';
1867
+ },
1868
+ {
1869
+ name: 'authority';
1870
+ type: 'pubkey';
1871
+ },
1872
+ {
1873
+ name: 'refer';
1874
+ type: 'pubkey';
1875
+ },
1876
+ {
1877
+ name: 'createdAt';
1878
+ type: 'i64';
1879
+ },
1880
+ {
1881
+ name: 'padding';
1882
+ type: {
1883
+ array: ['u8', 96];
1884
+ };
1885
+ }
1886
+ ];
1887
+ };
948
1888
  }
949
1889
  ];
950
1890
  };