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