@glamsystems/glam-sdk 0.1.27 → 0.1.28

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,7 +8,7 @@ export type GlamProtocol = {
8
8
  "address": "GLAMbTqav9N9witRjswJ8enwp9vv5G8bsSJ2kPJ4rcyc",
9
9
  "metadata": {
10
10
  "name": "glamProtocol",
11
- "version": "0.4.29",
11
+ "version": "0.4.32",
12
12
  "spec": "0.1.0",
13
13
  "description": "Glam Protocol"
14
14
  },
@@ -253,7 +253,7 @@ export type GlamProtocol = {
253
253
  },
254
254
  {
255
255
  "kind": "account",
256
- "path": "tokenProgram"
256
+ "path": "claimTokenProgram"
257
257
  },
258
258
  {
259
259
  "kind": "account",
@@ -310,7 +310,7 @@ export type GlamProtocol = {
310
310
  },
311
311
  {
312
312
  "kind": "account",
313
- "path": "tokenProgram"
313
+ "path": "claimTokenProgram"
314
314
  },
315
315
  {
316
316
  "kind": "account",
@@ -361,7 +361,11 @@ export type GlamProtocol = {
361
361
  "address": "11111111111111111111111111111111"
362
362
  },
363
363
  {
364
- "name": "tokenProgram"
364
+ "name": "claimTokenProgram"
365
+ },
366
+ {
367
+ "name": "associatedTokenProgram",
368
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
365
369
  }
366
370
  ],
367
371
  "args": [
@@ -663,20 +667,21 @@ export type GlamProtocol = {
663
667
  ]
664
668
  },
665
669
  {
666
- "name": "driftCancelOrders",
670
+ "name": "disburseFees",
667
671
  "discriminator": [
668
- 98,
669
- 107,
670
- 48,
671
- 79,
672
- 97,
673
- 60,
674
- 99,
675
- 58
672
+ 205,
673
+ 56,
674
+ 198,
675
+ 40,
676
+ 225,
677
+ 103,
678
+ 141,
679
+ 219
676
680
  ],
677
681
  "accounts": [
678
682
  {
679
- "name": "glamState"
683
+ "name": "glamState",
684
+ "writable": true
680
685
  },
681
686
  {
682
687
  "name": "glamVault",
@@ -700,79 +705,18 @@ export type GlamProtocol = {
700
705
  }
701
706
  },
702
707
  {
703
- "name": "glamSigner",
704
- "writable": true,
705
- "signer": true
706
- },
707
- {
708
- "name": "cpiProgram",
709
- "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH"
710
- },
711
- {
712
- "name": "state"
713
- },
714
- {
715
- "name": "user",
716
- "writable": true
717
- }
718
- ],
719
- "args": [
720
- {
721
- "name": "marketType",
722
- "type": {
723
- "option": {
724
- "defined": {
725
- "name": "marketType"
726
- }
727
- }
728
- }
729
- },
730
- {
731
- "name": "marketIndex",
732
- "type": {
733
- "option": "u16"
734
- }
735
- },
736
- {
737
- "name": "direction",
738
- "type": {
739
- "option": {
740
- "defined": {
741
- "name": "positionDirection"
742
- }
743
- }
744
- }
745
- }
746
- ]
747
- },
748
- {
749
- "name": "driftCancelOrdersByIds",
750
- "discriminator": [
751
- 172,
752
- 99,
753
- 108,
754
- 14,
755
- 81,
756
- 89,
757
- 228,
758
- 183
759
- ],
760
- "accounts": [
761
- {
762
- "name": "glamState"
763
- },
764
- {
765
- "name": "glamVault",
708
+ "name": "glamEscrow",
766
709
  "pda": {
767
710
  "seeds": [
768
711
  {
769
712
  "kind": "const",
770
713
  "value": [
771
- 118,
772
- 97,
773
- 117,
774
- 108,
775
- 116
714
+ 101,
715
+ 115,
716
+ 99,
717
+ 114,
718
+ 111,
719
+ 119
776
720
  ]
777
721
  },
778
722
  {
@@ -783,132 +727,579 @@ export type GlamProtocol = {
783
727
  }
784
728
  },
785
729
  {
786
- "name": "glamSigner",
787
- "writable": true,
788
- "signer": true
789
- },
790
- {
791
- "name": "cpiProgram",
792
- "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH"
793
- },
794
- {
795
- "name": "state"
796
- },
797
- {
798
- "name": "user",
799
- "writable": true
800
- }
801
- ],
802
- "args": [
803
- {
804
- "name": "orderIds",
805
- "type": {
806
- "vec": "u32"
807
- }
808
- }
809
- ]
810
- },
811
- {
812
- "name": "driftDeleteUser",
813
- "discriminator": [
814
- 179,
815
- 118,
816
- 20,
817
- 212,
818
- 145,
819
- 146,
820
- 49,
821
- 130
822
- ],
823
- "accounts": [
824
- {
825
- "name": "glamState",
730
+ "name": "glamMint",
826
731
  "writable": true
827
732
  },
828
733
  {
829
- "name": "glamVault",
734
+ "name": "escrowMintAta",
830
735
  "writable": true,
831
736
  "pda": {
832
737
  "seeds": [
833
738
  {
834
- "kind": "const",
835
- "value": [
836
- 118,
837
- 97,
838
- 117,
839
- 108,
840
- 116
841
- ]
739
+ "kind": "account",
740
+ "path": "glamEscrow"
842
741
  },
843
742
  {
844
743
  "kind": "account",
845
- "path": "glamState"
744
+ "path": "token2022Program"
745
+ },
746
+ {
747
+ "kind": "account",
748
+ "path": "glamMint"
846
749
  }
847
- ]
750
+ ],
751
+ "program": {
752
+ "kind": "const",
753
+ "value": [
754
+ 140,
755
+ 151,
756
+ 37,
757
+ 143,
758
+ 78,
759
+ 36,
760
+ 137,
761
+ 241,
762
+ 187,
763
+ 61,
764
+ 16,
765
+ 41,
766
+ 20,
767
+ 142,
768
+ 13,
769
+ 131,
770
+ 11,
771
+ 90,
772
+ 19,
773
+ 153,
774
+ 218,
775
+ 255,
776
+ 16,
777
+ 132,
778
+ 4,
779
+ 142,
780
+ 123,
781
+ 216,
782
+ 219,
783
+ 233,
784
+ 248,
785
+ 89
786
+ ]
787
+ }
848
788
  }
849
789
  },
850
790
  {
851
- "name": "glamSigner",
791
+ "name": "signer",
852
792
  "writable": true,
853
793
  "signer": true
854
794
  },
855
795
  {
856
- "name": "cpiProgram",
857
- "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH"
858
- },
859
- {
860
- "name": "user",
861
- "writable": true
862
- },
863
- {
864
- "name": "userStats",
865
- "writable": true
866
- },
867
- {
868
- "name": "state",
869
- "writable": true
870
- }
871
- ],
872
- "args": []
873
- },
874
- {
875
- "name": "driftDeposit",
876
- "discriminator": [
877
- 252,
878
- 63,
879
- 250,
880
- 201,
881
- 98,
882
- 55,
883
- 130,
884
- 12
885
- ],
886
- "accounts": [
887
- {
888
- "name": "glamState"
796
+ "name": "depositAsset"
889
797
  },
890
798
  {
891
- "name": "glamVault",
799
+ "name": "vaultDepositAta",
892
800
  "writable": true,
893
801
  "pda": {
894
802
  "seeds": [
895
803
  {
896
- "kind": "const",
897
- "value": [
898
- 118,
899
- 97,
900
- 117,
901
- 108,
902
- 116
903
- ]
804
+ "kind": "account",
805
+ "path": "glamVault"
904
806
  },
905
807
  {
906
808
  "kind": "account",
907
- "path": "glamState"
809
+ "path": "depositTokenProgram"
810
+ },
811
+ {
812
+ "kind": "account",
813
+ "path": "depositAsset"
908
814
  }
909
- ]
910
- }
911
- },
815
+ ],
816
+ "program": {
817
+ "kind": "const",
818
+ "value": [
819
+ 140,
820
+ 151,
821
+ 37,
822
+ 143,
823
+ 78,
824
+ 36,
825
+ 137,
826
+ 241,
827
+ 187,
828
+ 61,
829
+ 16,
830
+ 41,
831
+ 20,
832
+ 142,
833
+ 13,
834
+ 131,
835
+ 11,
836
+ 90,
837
+ 19,
838
+ 153,
839
+ 218,
840
+ 255,
841
+ 16,
842
+ 132,
843
+ 4,
844
+ 142,
845
+ 123,
846
+ 216,
847
+ 219,
848
+ 233,
849
+ 248,
850
+ 89
851
+ ]
852
+ }
853
+ }
854
+ },
855
+ {
856
+ "name": "protocolFeeAuthorityAta",
857
+ "writable": true,
858
+ "pda": {
859
+ "seeds": [
860
+ {
861
+ "kind": "account",
862
+ "path": "glam_config.fee_authority",
863
+ "account": "globalConfig"
864
+ },
865
+ {
866
+ "kind": "account",
867
+ "path": "depositTokenProgram"
868
+ },
869
+ {
870
+ "kind": "account",
871
+ "path": "depositAsset"
872
+ }
873
+ ],
874
+ "program": {
875
+ "kind": "const",
876
+ "value": [
877
+ 140,
878
+ 151,
879
+ 37,
880
+ 143,
881
+ 78,
882
+ 36,
883
+ 137,
884
+ 241,
885
+ 187,
886
+ 61,
887
+ 16,
888
+ 41,
889
+ 20,
890
+ 142,
891
+ 13,
892
+ 131,
893
+ 11,
894
+ 90,
895
+ 19,
896
+ 153,
897
+ 218,
898
+ 255,
899
+ 16,
900
+ 132,
901
+ 4,
902
+ 142,
903
+ 123,
904
+ 216,
905
+ 219,
906
+ 233,
907
+ 248,
908
+ 89
909
+ ]
910
+ }
911
+ }
912
+ },
913
+ {
914
+ "name": "managerFeeAuthorityAta",
915
+ "writable": true,
916
+ "pda": {
917
+ "seeds": [
918
+ {
919
+ "kind": "account",
920
+ "path": "glam_state.owner",
921
+ "account": "stateAccount"
922
+ },
923
+ {
924
+ "kind": "account",
925
+ "path": "depositTokenProgram"
926
+ },
927
+ {
928
+ "kind": "account",
929
+ "path": "depositAsset"
930
+ }
931
+ ],
932
+ "program": {
933
+ "kind": "const",
934
+ "value": [
935
+ 140,
936
+ 151,
937
+ 37,
938
+ 143,
939
+ 78,
940
+ 36,
941
+ 137,
942
+ 241,
943
+ 187,
944
+ 61,
945
+ 16,
946
+ 41,
947
+ 20,
948
+ 142,
949
+ 13,
950
+ 131,
951
+ 11,
952
+ 90,
953
+ 19,
954
+ 153,
955
+ 218,
956
+ 255,
957
+ 16,
958
+ 132,
959
+ 4,
960
+ 142,
961
+ 123,
962
+ 216,
963
+ 219,
964
+ 233,
965
+ 248,
966
+ 89
967
+ ]
968
+ }
969
+ }
970
+ },
971
+ {
972
+ "name": "glamConfig",
973
+ "pda": {
974
+ "seeds": [
975
+ {
976
+ "kind": "const",
977
+ "value": [
978
+ 103,
979
+ 108,
980
+ 111,
981
+ 98,
982
+ 97,
983
+ 108,
984
+ 95,
985
+ 99,
986
+ 111,
987
+ 110,
988
+ 102,
989
+ 105,
990
+ 103
991
+ ]
992
+ }
993
+ ],
994
+ "program": {
995
+ "kind": "const",
996
+ "value": [
997
+ 10,
998
+ 11,
999
+ 0,
1000
+ 83,
1001
+ 72,
1002
+ 16,
1003
+ 46,
1004
+ 144,
1005
+ 46,
1006
+ 42,
1007
+ 79,
1008
+ 22,
1009
+ 157,
1010
+ 123,
1011
+ 21,
1012
+ 242,
1013
+ 192,
1014
+ 146,
1015
+ 1,
1016
+ 78,
1017
+ 88,
1018
+ 59,
1019
+ 102,
1020
+ 9,
1021
+ 190,
1022
+ 226,
1023
+ 92,
1024
+ 189,
1025
+ 187,
1026
+ 232,
1027
+ 83,
1028
+ 220
1029
+ ]
1030
+ }
1031
+ }
1032
+ },
1033
+ {
1034
+ "name": "systemProgram",
1035
+ "address": "11111111111111111111111111111111"
1036
+ },
1037
+ {
1038
+ "name": "associatedTokenProgram",
1039
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
1040
+ },
1041
+ {
1042
+ "name": "depositTokenProgram"
1043
+ },
1044
+ {
1045
+ "name": "token2022Program",
1046
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
1047
+ }
1048
+ ],
1049
+ "args": [
1050
+ {
1051
+ "name": "mintId",
1052
+ "type": "u8"
1053
+ }
1054
+ ]
1055
+ },
1056
+ {
1057
+ "name": "driftCancelOrders",
1058
+ "discriminator": [
1059
+ 98,
1060
+ 107,
1061
+ 48,
1062
+ 79,
1063
+ 97,
1064
+ 60,
1065
+ 99,
1066
+ 58
1067
+ ],
1068
+ "accounts": [
1069
+ {
1070
+ "name": "glamState"
1071
+ },
1072
+ {
1073
+ "name": "glamVault",
1074
+ "pda": {
1075
+ "seeds": [
1076
+ {
1077
+ "kind": "const",
1078
+ "value": [
1079
+ 118,
1080
+ 97,
1081
+ 117,
1082
+ 108,
1083
+ 116
1084
+ ]
1085
+ },
1086
+ {
1087
+ "kind": "account",
1088
+ "path": "glamState"
1089
+ }
1090
+ ]
1091
+ }
1092
+ },
1093
+ {
1094
+ "name": "glamSigner",
1095
+ "writable": true,
1096
+ "signer": true
1097
+ },
1098
+ {
1099
+ "name": "cpiProgram",
1100
+ "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH"
1101
+ },
1102
+ {
1103
+ "name": "state"
1104
+ },
1105
+ {
1106
+ "name": "user",
1107
+ "writable": true
1108
+ }
1109
+ ],
1110
+ "args": [
1111
+ {
1112
+ "name": "marketType",
1113
+ "type": {
1114
+ "option": {
1115
+ "defined": {
1116
+ "name": "marketType"
1117
+ }
1118
+ }
1119
+ }
1120
+ },
1121
+ {
1122
+ "name": "marketIndex",
1123
+ "type": {
1124
+ "option": "u16"
1125
+ }
1126
+ },
1127
+ {
1128
+ "name": "direction",
1129
+ "type": {
1130
+ "option": {
1131
+ "defined": {
1132
+ "name": "positionDirection"
1133
+ }
1134
+ }
1135
+ }
1136
+ }
1137
+ ]
1138
+ },
1139
+ {
1140
+ "name": "driftCancelOrdersByIds",
1141
+ "discriminator": [
1142
+ 172,
1143
+ 99,
1144
+ 108,
1145
+ 14,
1146
+ 81,
1147
+ 89,
1148
+ 228,
1149
+ 183
1150
+ ],
1151
+ "accounts": [
1152
+ {
1153
+ "name": "glamState"
1154
+ },
1155
+ {
1156
+ "name": "glamVault",
1157
+ "pda": {
1158
+ "seeds": [
1159
+ {
1160
+ "kind": "const",
1161
+ "value": [
1162
+ 118,
1163
+ 97,
1164
+ 117,
1165
+ 108,
1166
+ 116
1167
+ ]
1168
+ },
1169
+ {
1170
+ "kind": "account",
1171
+ "path": "glamState"
1172
+ }
1173
+ ]
1174
+ }
1175
+ },
1176
+ {
1177
+ "name": "glamSigner",
1178
+ "writable": true,
1179
+ "signer": true
1180
+ },
1181
+ {
1182
+ "name": "cpiProgram",
1183
+ "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH"
1184
+ },
1185
+ {
1186
+ "name": "state"
1187
+ },
1188
+ {
1189
+ "name": "user",
1190
+ "writable": true
1191
+ }
1192
+ ],
1193
+ "args": [
1194
+ {
1195
+ "name": "orderIds",
1196
+ "type": {
1197
+ "vec": "u32"
1198
+ }
1199
+ }
1200
+ ]
1201
+ },
1202
+ {
1203
+ "name": "driftDeleteUser",
1204
+ "discriminator": [
1205
+ 179,
1206
+ 118,
1207
+ 20,
1208
+ 212,
1209
+ 145,
1210
+ 146,
1211
+ 49,
1212
+ 130
1213
+ ],
1214
+ "accounts": [
1215
+ {
1216
+ "name": "glamState",
1217
+ "writable": true
1218
+ },
1219
+ {
1220
+ "name": "glamVault",
1221
+ "writable": true,
1222
+ "pda": {
1223
+ "seeds": [
1224
+ {
1225
+ "kind": "const",
1226
+ "value": [
1227
+ 118,
1228
+ 97,
1229
+ 117,
1230
+ 108,
1231
+ 116
1232
+ ]
1233
+ },
1234
+ {
1235
+ "kind": "account",
1236
+ "path": "glamState"
1237
+ }
1238
+ ]
1239
+ }
1240
+ },
1241
+ {
1242
+ "name": "glamSigner",
1243
+ "writable": true,
1244
+ "signer": true
1245
+ },
1246
+ {
1247
+ "name": "cpiProgram",
1248
+ "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH"
1249
+ },
1250
+ {
1251
+ "name": "user",
1252
+ "writable": true
1253
+ },
1254
+ {
1255
+ "name": "userStats",
1256
+ "writable": true
1257
+ },
1258
+ {
1259
+ "name": "state",
1260
+ "writable": true
1261
+ }
1262
+ ],
1263
+ "args": []
1264
+ },
1265
+ {
1266
+ "name": "driftDeposit",
1267
+ "discriminator": [
1268
+ 252,
1269
+ 63,
1270
+ 250,
1271
+ 201,
1272
+ 98,
1273
+ 55,
1274
+ 130,
1275
+ 12
1276
+ ],
1277
+ "accounts": [
1278
+ {
1279
+ "name": "glamState"
1280
+ },
1281
+ {
1282
+ "name": "glamVault",
1283
+ "writable": true,
1284
+ "pda": {
1285
+ "seeds": [
1286
+ {
1287
+ "kind": "const",
1288
+ "value": [
1289
+ 118,
1290
+ 97,
1291
+ 117,
1292
+ 108,
1293
+ 116
1294
+ ]
1295
+ },
1296
+ {
1297
+ "kind": "account",
1298
+ "path": "glamState"
1299
+ }
1300
+ ]
1301
+ }
1302
+ },
912
1303
  {
913
1304
  "name": "glamSigner",
914
1305
  "writable": true,
@@ -956,6 +1347,99 @@ export type GlamProtocol = {
956
1347
  }
957
1348
  ]
958
1349
  },
1350
+ {
1351
+ "name": "driftDistributorNewClaim",
1352
+ "discriminator": [
1353
+ 204,
1354
+ 159,
1355
+ 250,
1356
+ 46,
1357
+ 124,
1358
+ 193,
1359
+ 250,
1360
+ 10
1361
+ ],
1362
+ "accounts": [
1363
+ {
1364
+ "name": "glamState"
1365
+ },
1366
+ {
1367
+ "name": "glamVault",
1368
+ "writable": true,
1369
+ "pda": {
1370
+ "seeds": [
1371
+ {
1372
+ "kind": "const",
1373
+ "value": [
1374
+ 118,
1375
+ 97,
1376
+ 117,
1377
+ 108,
1378
+ 116
1379
+ ]
1380
+ },
1381
+ {
1382
+ "kind": "account",
1383
+ "path": "glamState"
1384
+ }
1385
+ ]
1386
+ }
1387
+ },
1388
+ {
1389
+ "name": "glamSigner",
1390
+ "writable": true,
1391
+ "signer": true
1392
+ },
1393
+ {
1394
+ "name": "cpiProgram",
1395
+ "address": "E7HtfkEMhmn9uwL7EFNydcXBWy5WCYN1vFmKKjipEH1x"
1396
+ },
1397
+ {
1398
+ "name": "distributor",
1399
+ "writable": true
1400
+ },
1401
+ {
1402
+ "name": "claimStatus",
1403
+ "writable": true
1404
+ },
1405
+ {
1406
+ "name": "from",
1407
+ "writable": true
1408
+ },
1409
+ {
1410
+ "name": "to",
1411
+ "writable": true
1412
+ },
1413
+ {
1414
+ "name": "tokenProgram"
1415
+ },
1416
+ {
1417
+ "name": "systemProgram",
1418
+ "address": "11111111111111111111111111111111"
1419
+ }
1420
+ ],
1421
+ "args": [
1422
+ {
1423
+ "name": "amountUnlocked",
1424
+ "type": "u64"
1425
+ },
1426
+ {
1427
+ "name": "amountLocked",
1428
+ "type": "u64"
1429
+ },
1430
+ {
1431
+ "name": "proof",
1432
+ "type": {
1433
+ "vec": {
1434
+ "array": [
1435
+ "u8",
1436
+ 32
1437
+ ]
1438
+ }
1439
+ }
1440
+ }
1441
+ ]
1442
+ },
959
1443
  {
960
1444
  "name": "driftInitializeUser",
961
1445
  "discriminator": [
@@ -1511,22 +1995,84 @@ export type GlamProtocol = {
1511
1995
  "type": "u16"
1512
1996
  },
1513
1997
  {
1514
- "name": "delegate",
1515
- "type": "pubkey"
1998
+ "name": "delegate",
1999
+ "type": "pubkey"
2000
+ }
2001
+ ]
2002
+ },
2003
+ {
2004
+ "name": "driftUpdateUserMarginTradingEnabled",
2005
+ "discriminator": [
2006
+ 157,
2007
+ 175,
2008
+ 12,
2009
+ 19,
2010
+ 202,
2011
+ 114,
2012
+ 17,
2013
+ 36
2014
+ ],
2015
+ "accounts": [
2016
+ {
2017
+ "name": "glamState"
2018
+ },
2019
+ {
2020
+ "name": "glamVault",
2021
+ "pda": {
2022
+ "seeds": [
2023
+ {
2024
+ "kind": "const",
2025
+ "value": [
2026
+ 118,
2027
+ 97,
2028
+ 117,
2029
+ 108,
2030
+ 116
2031
+ ]
2032
+ },
2033
+ {
2034
+ "kind": "account",
2035
+ "path": "glamState"
2036
+ }
2037
+ ]
2038
+ }
2039
+ },
2040
+ {
2041
+ "name": "glamSigner",
2042
+ "writable": true,
2043
+ "signer": true
2044
+ },
2045
+ {
2046
+ "name": "cpiProgram",
2047
+ "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH"
2048
+ },
2049
+ {
2050
+ "name": "user",
2051
+ "writable": true
2052
+ }
2053
+ ],
2054
+ "args": [
2055
+ {
2056
+ "name": "subAccountId",
2057
+ "type": "u16"
2058
+ },
2059
+ {
2060
+ "name": "marginTradingEnabled",
2061
+ "type": "bool"
1516
2062
  }
1517
2063
  ]
1518
2064
  },
1519
2065
  {
1520
- "name": "driftUpdateUserMarginTradingEnabled",
2066
+ "name": "driftUpdateUserPoolId",
1521
2067
  "discriminator": [
1522
- 157,
1523
- 175,
1524
- 12,
1525
- 19,
1526
- 202,
1527
- 114,
1528
- 17,
1529
- 36
2068
+ 44,
2069
+ 176,
2070
+ 143,
2071
+ 200,
2072
+ 153,
2073
+ 248,
2074
+ 221,
2075
+ 218
1530
2076
  ],
1531
2077
  "accounts": [
1532
2078
  {
@@ -1573,8 +2119,8 @@ export type GlamProtocol = {
1573
2119
  "type": "u16"
1574
2120
  },
1575
2121
  {
1576
- "name": "marginTradingEnabled",
1577
- "type": "bool"
2122
+ "name": "poolId",
2123
+ "type": "u8"
1578
2124
  }
1579
2125
  ]
1580
2126
  },
@@ -2479,41 +3025,8 @@ export type GlamProtocol = {
2479
3025
  "path": "glamVault"
2480
3026
  },
2481
3027
  {
2482
- "kind": "const",
2483
- "value": [
2484
- 6,
2485
- 221,
2486
- 246,
2487
- 225,
2488
- 215,
2489
- 101,
2490
- 161,
2491
- 147,
2492
- 217,
2493
- 203,
2494
- 225,
2495
- 70,
2496
- 206,
2497
- 235,
2498
- 121,
2499
- 172,
2500
- 28,
2501
- 180,
2502
- 133,
2503
- 237,
2504
- 95,
2505
- 91,
2506
- 55,
2507
- 145,
2508
- 58,
2509
- 140,
2510
- 245,
2511
- 133,
2512
- 126,
2513
- 255,
2514
- 0,
2515
- 169
2516
- ]
3028
+ "kind": "account",
3029
+ "path": "depositTokenProgram"
2517
3030
  },
2518
3031
  {
2519
3032
  "kind": "account",
@@ -2569,41 +3082,8 @@ export type GlamProtocol = {
2569
3082
  "path": "glamEscrow"
2570
3083
  },
2571
3084
  {
2572
- "kind": "const",
2573
- "value": [
2574
- 6,
2575
- 221,
2576
- 246,
2577
- 225,
2578
- 215,
2579
- 101,
2580
- 161,
2581
- 147,
2582
- 217,
2583
- 203,
2584
- 225,
2585
- 70,
2586
- 206,
2587
- 235,
2588
- 121,
2589
- 172,
2590
- 28,
2591
- 180,
2592
- 133,
2593
- 237,
2594
- 95,
2595
- 91,
2596
- 55,
2597
- 145,
2598
- 58,
2599
- 140,
2600
- 245,
2601
- 133,
2602
- 126,
2603
- 255,
2604
- 0,
2605
- 169
2606
- ]
3085
+ "kind": "account",
3086
+ "path": "depositTokenProgram"
2607
3087
  },
2608
3088
  {
2609
3089
  "kind": "account",
@@ -2654,8 +3134,7 @@ export type GlamProtocol = {
2654
3134
  "address": "11111111111111111111111111111111"
2655
3135
  },
2656
3136
  {
2657
- "name": "tokenProgram",
2658
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
3137
+ "name": "depositTokenProgram"
2659
3138
  },
2660
3139
  {
2661
3140
  "name": "token2022Program",
@@ -6262,6 +6741,12 @@ export type GlamProtocol = {
6262
6741
  },
6263
6742
  {
6264
6743
  "name": "priceDriftUsers",
6744
+ "docs": [
6745
+ "Extra accounts for pricing N drift users under the same user stats:",
6746
+ "- user_stats x 1",
6747
+ "- drift_user x N",
6748
+ "- markets and oracles used by all drift users (no specific order)"
6749
+ ],
6265
6750
  "discriminator": [
6266
6751
  12,
6267
6752
  5,
@@ -6377,11 +6862,20 @@ export type GlamProtocol = {
6377
6862
  "name": "priceDenom"
6378
6863
  }
6379
6864
  }
6865
+ },
6866
+ {
6867
+ "name": "numUsers",
6868
+ "type": "u8"
6380
6869
  }
6381
6870
  ]
6382
6871
  },
6383
6872
  {
6384
6873
  "name": "priceDriftVaultDepositors",
6874
+ "docs": [
6875
+ "Extra accounts for pricing N vault depositors:",
6876
+ "- (vault_depositor, drift_vault, drift_user) x N",
6877
+ "- markets and oracles used by all drift users (no specific order)"
6878
+ ],
6385
6879
  "discriminator": [
6386
6880
  234,
6387
6881
  16,
@@ -6497,6 +6991,10 @@ export type GlamProtocol = {
6497
6991
  "name": "priceDenom"
6498
6992
  }
6499
6993
  }
6994
+ },
6995
+ {
6996
+ "name": "numVaultDepositors",
6997
+ "type": "u8"
6500
6998
  }
6501
6999
  ]
6502
7000
  },
@@ -7383,41 +7881,8 @@ export type GlamProtocol = {
7383
7881
  "path": "glamEscrow"
7384
7882
  },
7385
7883
  {
7386
- "kind": "const",
7387
- "value": [
7388
- 6,
7389
- 221,
7390
- 246,
7391
- 225,
7392
- 215,
7393
- 101,
7394
- 161,
7395
- 147,
7396
- 217,
7397
- 203,
7398
- 225,
7399
- 70,
7400
- 206,
7401
- 235,
7402
- 121,
7403
- 172,
7404
- 28,
7405
- 180,
7406
- 133,
7407
- 237,
7408
- 95,
7409
- 91,
7410
- 55,
7411
- 145,
7412
- 58,
7413
- 140,
7414
- 245,
7415
- 133,
7416
- 126,
7417
- 255,
7418
- 0,
7419
- 169
7420
- ]
7884
+ "kind": "account",
7885
+ "path": "depositTokenProgram"
7421
7886
  },
7422
7887
  {
7423
7888
  "kind": "account",
@@ -7473,41 +7938,8 @@ export type GlamProtocol = {
7473
7938
  "path": "signer"
7474
7939
  },
7475
7940
  {
7476
- "kind": "const",
7477
- "value": [
7478
- 6,
7479
- 221,
7480
- 246,
7481
- 225,
7482
- 215,
7483
- 101,
7484
- 161,
7485
- 147,
7486
- 217,
7487
- 203,
7488
- 225,
7489
- 70,
7490
- 206,
7491
- 235,
7492
- 121,
7493
- 172,
7494
- 28,
7495
- 180,
7496
- 133,
7497
- 237,
7498
- 95,
7499
- 91,
7500
- 55,
7501
- 145,
7502
- 58,
7503
- 140,
7504
- 245,
7505
- 133,
7506
- 126,
7507
- 255,
7508
- 0,
7509
- 169
7510
- ]
7941
+ "kind": "account",
7942
+ "path": "depositTokenProgram"
7511
7943
  },
7512
7944
  {
7513
7945
  "kind": "account",
@@ -7558,8 +7990,7 @@ export type GlamProtocol = {
7558
7990
  "address": "11111111111111111111111111111111"
7559
7991
  },
7560
7992
  {
7561
- "name": "tokenProgram",
7562
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
7993
+ "name": "depositTokenProgram"
7563
7994
  },
7564
7995
  {
7565
7996
  "name": "associatedTokenProgram",
@@ -9341,41 +9772,8 @@ export type GlamProtocol = {
9341
9772
  "path": "glamVault"
9342
9773
  },
9343
9774
  {
9344
- "kind": "const",
9345
- "value": [
9346
- 6,
9347
- 221,
9348
- 246,
9349
- 225,
9350
- 215,
9351
- 101,
9352
- 161,
9353
- 147,
9354
- 217,
9355
- 203,
9356
- 225,
9357
- 70,
9358
- 206,
9359
- 235,
9360
- 121,
9361
- 172,
9362
- 28,
9363
- 180,
9364
- 133,
9365
- 237,
9366
- 95,
9367
- 91,
9368
- 55,
9369
- 145,
9370
- 58,
9371
- 140,
9372
- 245,
9373
- 133,
9374
- 126,
9375
- 255,
9376
- 0,
9377
- 169
9378
- ]
9775
+ "kind": "account",
9776
+ "path": "depositTokenProgram"
9379
9777
  },
9380
9778
  {
9381
9779
  "kind": "account",
@@ -9431,41 +9829,8 @@ export type GlamProtocol = {
9431
9829
  "path": "signer"
9432
9830
  },
9433
9831
  {
9434
- "kind": "const",
9435
- "value": [
9436
- 6,
9437
- 221,
9438
- 246,
9439
- 225,
9440
- 215,
9441
- 101,
9442
- 161,
9443
- 147,
9444
- 217,
9445
- 203,
9446
- 225,
9447
- 70,
9448
- 206,
9449
- 235,
9450
- 121,
9451
- 172,
9452
- 28,
9453
- 180,
9454
- 133,
9455
- 237,
9456
- 95,
9457
- 91,
9458
- 55,
9459
- 145,
9460
- 58,
9461
- 140,
9462
- 245,
9463
- 133,
9464
- 126,
9465
- 255,
9466
- 0,
9467
- 169
9468
- ]
9832
+ "kind": "account",
9833
+ "path": "depositTokenProgram"
9469
9834
  },
9470
9835
  {
9471
9836
  "kind": "account",
@@ -9512,53 +9877,230 @@ export type GlamProtocol = {
9512
9877
  }
9513
9878
  },
9514
9879
  {
9515
- "name": "signerPolicy",
9880
+ "name": "signerPolicy",
9881
+ "writable": true,
9882
+ "optional": true
9883
+ },
9884
+ {
9885
+ "name": "systemProgram",
9886
+ "address": "11111111111111111111111111111111"
9887
+ },
9888
+ {
9889
+ "name": "depositTokenProgram"
9890
+ },
9891
+ {
9892
+ "name": "token2022Program",
9893
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
9894
+ },
9895
+ {
9896
+ "name": "associatedTokenProgram",
9897
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
9898
+ },
9899
+ {
9900
+ "name": "policiesProgram",
9901
+ "address": "po1iCYakK3gHCLbuju4wGzFowTMpAJxkqK1iwUqMonY"
9902
+ }
9903
+ ],
9904
+ "args": [
9905
+ {
9906
+ "name": "mintId",
9907
+ "type": "u8"
9908
+ },
9909
+ {
9910
+ "name": "amountIn",
9911
+ "type": "u64"
9912
+ }
9913
+ ]
9914
+ },
9915
+ {
9916
+ "name": "systemTransfer",
9917
+ "discriminator": [
9918
+ 167,
9919
+ 164,
9920
+ 195,
9921
+ 155,
9922
+ 219,
9923
+ 152,
9924
+ 191,
9925
+ 230
9926
+ ],
9927
+ "accounts": [
9928
+ {
9929
+ "name": "glamState"
9930
+ },
9931
+ {
9932
+ "name": "glamVault",
9933
+ "writable": true,
9934
+ "pda": {
9935
+ "seeds": [
9936
+ {
9937
+ "kind": "const",
9938
+ "value": [
9939
+ 118,
9940
+ 97,
9941
+ 117,
9942
+ 108,
9943
+ 116
9944
+ ]
9945
+ },
9946
+ {
9947
+ "kind": "account",
9948
+ "path": "glamState"
9949
+ }
9950
+ ]
9951
+ }
9952
+ },
9953
+ {
9954
+ "name": "glamSigner",
9955
+ "writable": true,
9956
+ "signer": true
9957
+ },
9958
+ {
9959
+ "name": "cpiProgram",
9960
+ "address": "11111111111111111111111111111111"
9961
+ },
9962
+ {
9963
+ "name": "to",
9964
+ "writable": true
9965
+ }
9966
+ ],
9967
+ "args": [
9968
+ {
9969
+ "name": "lamports",
9970
+ "type": "u64"
9971
+ }
9972
+ ]
9973
+ },
9974
+ {
9975
+ "name": "tokenCloseAccount",
9976
+ "discriminator": [
9977
+ 240,
9978
+ 32,
9979
+ 179,
9980
+ 154,
9981
+ 96,
9982
+ 110,
9983
+ 43,
9984
+ 79
9985
+ ],
9986
+ "accounts": [
9987
+ {
9988
+ "name": "glamState"
9989
+ },
9990
+ {
9991
+ "name": "glamVault",
9992
+ "writable": true,
9993
+ "pda": {
9994
+ "seeds": [
9995
+ {
9996
+ "kind": "const",
9997
+ "value": [
9998
+ 118,
9999
+ 97,
10000
+ 117,
10001
+ 108,
10002
+ 116
10003
+ ]
10004
+ },
10005
+ {
10006
+ "kind": "account",
10007
+ "path": "glamState"
10008
+ }
10009
+ ]
10010
+ }
10011
+ },
10012
+ {
10013
+ "name": "glamSigner",
10014
+ "writable": true,
10015
+ "signer": true
10016
+ },
10017
+ {
10018
+ "name": "cpiProgram"
10019
+ },
10020
+ {
10021
+ "name": "systemProgram",
10022
+ "address": "11111111111111111111111111111111"
10023
+ },
10024
+ {
10025
+ "name": "tokenAccount",
10026
+ "writable": true
10027
+ }
10028
+ ],
10029
+ "args": []
10030
+ },
10031
+ {
10032
+ "name": "tokenTransfer",
10033
+ "discriminator": [
10034
+ 210,
10035
+ 16,
10036
+ 52,
10037
+ 5,
10038
+ 247,
10039
+ 164,
10040
+ 59,
10041
+ 18
10042
+ ],
10043
+ "accounts": [
10044
+ {
10045
+ "name": "glamState"
10046
+ },
10047
+ {
10048
+ "name": "glamVault",
10049
+ "writable": true,
10050
+ "pda": {
10051
+ "seeds": [
10052
+ {
10053
+ "kind": "const",
10054
+ "value": [
10055
+ 118,
10056
+ 97,
10057
+ 117,
10058
+ 108,
10059
+ 116
10060
+ ]
10061
+ },
10062
+ {
10063
+ "kind": "account",
10064
+ "path": "glamState"
10065
+ }
10066
+ ]
10067
+ }
10068
+ },
10069
+ {
10070
+ "name": "glamSigner",
9516
10071
  "writable": true,
9517
- "optional": true
9518
- },
9519
- {
9520
- "name": "systemProgram",
9521
- "address": "11111111111111111111111111111111"
9522
- },
9523
- {
9524
- "name": "tokenProgram",
9525
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
10072
+ "signer": true
9526
10073
  },
9527
10074
  {
9528
- "name": "token2022Program",
9529
- "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
10075
+ "name": "cpiProgram"
9530
10076
  },
9531
10077
  {
9532
- "name": "associatedTokenProgram",
9533
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
10078
+ "name": "from",
10079
+ "writable": true
9534
10080
  },
9535
10081
  {
9536
- "name": "policiesProgram",
9537
- "address": "po1iCYakK3gHCLbuju4wGzFowTMpAJxkqK1iwUqMonY"
10082
+ "name": "to",
10083
+ "writable": true
9538
10084
  }
9539
10085
  ],
9540
10086
  "args": [
9541
10087
  {
9542
- "name": "mintId",
9543
- "type": "u8"
9544
- },
9545
- {
9546
- "name": "amountIn",
10088
+ "name": "lamports",
9547
10089
  "type": "u64"
9548
10090
  }
9549
10091
  ]
9550
10092
  },
9551
10093
  {
9552
- "name": "systemTransfer",
10094
+ "name": "tokenTransferChecked",
9553
10095
  "discriminator": [
9554
- 167,
9555
- 164,
9556
- 195,
9557
- 155,
9558
- 219,
9559
- 152,
10096
+ 169,
10097
+ 178,
10098
+ 117,
10099
+ 156,
10100
+ 169,
9560
10101
  191,
9561
- 230
10102
+ 199,
10103
+ 116
9562
10104
  ],
9563
10105
  "accounts": [
9564
10106
  {
@@ -9592,8 +10134,14 @@ export type GlamProtocol = {
9592
10134
  "signer": true
9593
10135
  },
9594
10136
  {
9595
- "name": "cpiProgram",
9596
- "address": "11111111111111111111111111111111"
10137
+ "name": "cpiProgram"
10138
+ },
10139
+ {
10140
+ "name": "from",
10141
+ "writable": true
10142
+ },
10143
+ {
10144
+ "name": "mint"
9597
10145
  },
9598
10146
  {
9599
10147
  "name": "to",
@@ -9604,20 +10152,167 @@ export type GlamProtocol = {
9604
10152
  {
9605
10153
  "name": "lamports",
9606
10154
  "type": "u64"
10155
+ },
10156
+ {
10157
+ "name": "decimals",
10158
+ "type": "u8"
9607
10159
  }
9608
10160
  ]
9609
10161
  },
9610
10162
  {
9611
- "name": "tokenCloseAccount",
10163
+ "name": "updateMint",
9612
10164
  "discriminator": [
9613
- 240,
9614
- 32,
9615
- 179,
9616
- 154,
9617
- 96,
9618
- 110,
9619
- 43,
9620
- 79
10165
+ 212,
10166
+ 203,
10167
+ 57,
10168
+ 78,
10169
+ 75,
10170
+ 245,
10171
+ 222,
10172
+ 5
10173
+ ],
10174
+ "accounts": [
10175
+ {
10176
+ "name": "glamState",
10177
+ "writable": true
10178
+ },
10179
+ {
10180
+ "name": "glamSigner",
10181
+ "writable": true,
10182
+ "signer": true
10183
+ },
10184
+ {
10185
+ "name": "glamMint",
10186
+ "writable": true
10187
+ },
10188
+ {
10189
+ "name": "token2022Program",
10190
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
10191
+ }
10192
+ ],
10193
+ "args": [
10194
+ {
10195
+ "name": "mintId",
10196
+ "type": "u8"
10197
+ },
10198
+ {
10199
+ "name": "mintModel",
10200
+ "type": {
10201
+ "defined": {
10202
+ "name": "mintModel"
10203
+ }
10204
+ }
10205
+ }
10206
+ ]
10207
+ },
10208
+ {
10209
+ "name": "updateMintApplyTimelock",
10210
+ "discriminator": [
10211
+ 223,
10212
+ 241,
10213
+ 80,
10214
+ 24,
10215
+ 120,
10216
+ 25,
10217
+ 82,
10218
+ 134
10219
+ ],
10220
+ "accounts": [
10221
+ {
10222
+ "name": "glamState",
10223
+ "writable": true
10224
+ },
10225
+ {
10226
+ "name": "glamSigner",
10227
+ "writable": true,
10228
+ "signer": true
10229
+ },
10230
+ {
10231
+ "name": "glamMint",
10232
+ "writable": true
10233
+ },
10234
+ {
10235
+ "name": "token2022Program",
10236
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
10237
+ }
10238
+ ],
10239
+ "args": [
10240
+ {
10241
+ "name": "mintId",
10242
+ "type": "u8"
10243
+ }
10244
+ ]
10245
+ },
10246
+ {
10247
+ "name": "updateState",
10248
+ "discriminator": [
10249
+ 135,
10250
+ 112,
10251
+ 215,
10252
+ 75,
10253
+ 247,
10254
+ 185,
10255
+ 53,
10256
+ 176
10257
+ ],
10258
+ "accounts": [
10259
+ {
10260
+ "name": "glamState",
10261
+ "writable": true
10262
+ },
10263
+ {
10264
+ "name": "glamSigner",
10265
+ "writable": true,
10266
+ "signer": true
10267
+ }
10268
+ ],
10269
+ "args": [
10270
+ {
10271
+ "name": "state",
10272
+ "type": {
10273
+ "defined": {
10274
+ "name": "stateModel"
10275
+ }
10276
+ }
10277
+ }
10278
+ ]
10279
+ },
10280
+ {
10281
+ "name": "updateStateApplyTimelock",
10282
+ "discriminator": [
10283
+ 66,
10284
+ 12,
10285
+ 138,
10286
+ 80,
10287
+ 133,
10288
+ 85,
10289
+ 46,
10290
+ 220
10291
+ ],
10292
+ "accounts": [
10293
+ {
10294
+ "name": "glamState",
10295
+ "writable": true
10296
+ },
10297
+ {
10298
+ "name": "glamSigner",
10299
+ "writable": true,
10300
+ "signer": true
10301
+ }
10302
+ ],
10303
+ "args": []
10304
+ },
10305
+ {
10306
+ "name": "voteAuthorize",
10307
+ "discriminator": [
10308
+ 61,
10309
+ 48,
10310
+ 136,
10311
+ 95,
10312
+ 88,
10313
+ 65,
10314
+ 161,
10315
+ 215
9621
10316
  ],
9622
10317
  "accounts": [
9623
10318
  {
@@ -9651,30 +10346,44 @@ export type GlamProtocol = {
9651
10346
  "signer": true
9652
10347
  },
9653
10348
  {
9654
- "name": "cpiProgram"
10349
+ "name": "cpiProgram",
10350
+ "address": "Vote111111111111111111111111111111111111111"
9655
10351
  },
9656
10352
  {
9657
- "name": "systemProgram",
9658
- "address": "11111111111111111111111111111111"
10353
+ "name": "vote",
10354
+ "writable": true
9659
10355
  },
9660
10356
  {
9661
- "name": "tokenAccount",
9662
- "writable": true
10357
+ "name": "clock",
10358
+ "address": "SysvarC1ock11111111111111111111111111111111"
9663
10359
  }
9664
10360
  ],
9665
- "args": []
10361
+ "args": [
10362
+ {
10363
+ "name": "newAuthority",
10364
+ "type": "pubkey"
10365
+ },
10366
+ {
10367
+ "name": "voteAuthorize",
10368
+ "type": {
10369
+ "defined": {
10370
+ "name": "voteAuthorizeEnum"
10371
+ }
10372
+ }
10373
+ }
10374
+ ]
9666
10375
  },
9667
10376
  {
9668
- "name": "tokenTransfer",
9669
- "discriminator": [
9670
- 210,
9671
- 16,
9672
- 52,
9673
- 5,
9674
- 247,
9675
- 164,
9676
- 59,
9677
- 18
10377
+ "name": "voteUpdateCommission",
10378
+ "discriminator": [
10379
+ 193,
10380
+ 83,
10381
+ 224,
10382
+ 17,
10383
+ 218,
10384
+ 144,
10385
+ 211,
10386
+ 60
9678
10387
  ],
9679
10388
  "accounts": [
9680
10389
  {
@@ -9708,35 +10417,32 @@ export type GlamProtocol = {
9708
10417
  "signer": true
9709
10418
  },
9710
10419
  {
9711
- "name": "cpiProgram"
9712
- },
9713
- {
9714
- "name": "from",
9715
- "writable": true
10420
+ "name": "cpiProgram",
10421
+ "address": "Vote111111111111111111111111111111111111111"
9716
10422
  },
9717
10423
  {
9718
- "name": "to",
10424
+ "name": "vote",
9719
10425
  "writable": true
9720
10426
  }
9721
10427
  ],
9722
10428
  "args": [
9723
10429
  {
9724
- "name": "lamports",
9725
- "type": "u64"
10430
+ "name": "newCommission",
10431
+ "type": "u8"
9726
10432
  }
9727
10433
  ]
9728
10434
  },
9729
10435
  {
9730
- "name": "tokenTransferChecked",
10436
+ "name": "voteUpdateValidatorIdentity",
9731
10437
  "discriminator": [
9732
- 169,
9733
- 178,
9734
- 117,
9735
- 156,
9736
- 169,
9737
- 191,
9738
- 199,
9739
- 116
10438
+ 164,
10439
+ 111,
10440
+ 105,
10441
+ 150,
10442
+ 248,
10443
+ 104,
10444
+ 150,
10445
+ 8
9740
10446
  ],
9741
10447
  "accounts": [
9742
10448
  {
@@ -9770,93 +10476,58 @@ export type GlamProtocol = {
9770
10476
  "signer": true
9771
10477
  },
9772
10478
  {
9773
- "name": "cpiProgram"
10479
+ "name": "cpiProgram",
10480
+ "address": "Vote111111111111111111111111111111111111111"
9774
10481
  },
9775
10482
  {
9776
- "name": "from",
10483
+ "name": "vote",
9777
10484
  "writable": true
9778
10485
  },
9779
10486
  {
9780
- "name": "mint"
9781
- },
9782
- {
9783
- "name": "to",
9784
- "writable": true
10487
+ "name": "identity",
10488
+ "writable": true,
10489
+ "signer": true
9785
10490
  }
9786
10491
  ],
9787
- "args": [
9788
- {
9789
- "name": "lamports",
9790
- "type": "u64"
9791
- },
9792
- {
9793
- "name": "decimals",
9794
- "type": "u8"
9795
- }
9796
- ]
10492
+ "args": []
9797
10493
  },
9798
10494
  {
9799
- "name": "updateMint",
10495
+ "name": "voteWithdraw",
9800
10496
  "discriminator": [
9801
- 212,
9802
- 203,
9803
- 57,
9804
- 78,
9805
- 75,
9806
- 245,
9807
- 222,
9808
- 5
10497
+ 193,
10498
+ 3,
10499
+ 236,
10500
+ 192,
10501
+ 122,
10502
+ 146,
10503
+ 217,
10504
+ 149
9809
10505
  ],
9810
10506
  "accounts": [
9811
10507
  {
9812
- "name": "glamState",
9813
- "writable": true
10508
+ "name": "glamState"
9814
10509
  },
9815
10510
  {
9816
- "name": "glamSigner",
10511
+ "name": "glamVault",
9817
10512
  "writable": true,
9818
- "signer": true
9819
- },
9820
- {
9821
- "name": "glamMint",
9822
- "writable": true
9823
- },
9824
- {
9825
- "name": "token2022Program",
9826
- "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
9827
- }
9828
- ],
9829
- "args": [
9830
- {
9831
- "name": "mintId",
9832
- "type": "u8"
9833
- },
9834
- {
9835
- "name": "mintModel",
9836
- "type": {
9837
- "defined": {
9838
- "name": "mintModel"
9839
- }
10513
+ "pda": {
10514
+ "seeds": [
10515
+ {
10516
+ "kind": "const",
10517
+ "value": [
10518
+ 118,
10519
+ 97,
10520
+ 117,
10521
+ 108,
10522
+ 116
10523
+ ]
10524
+ },
10525
+ {
10526
+ "kind": "account",
10527
+ "path": "glamState"
10528
+ }
10529
+ ]
9840
10530
  }
9841
- }
9842
- ]
9843
- },
9844
- {
9845
- "name": "updateMintApplyTimelock",
9846
- "discriminator": [
9847
- 223,
9848
- 241,
9849
- 80,
9850
- 24,
9851
- 120,
9852
- 25,
9853
- 82,
9854
- 134
9855
- ],
9856
- "accounts": [
9857
- {
9858
- "name": "glamState",
9859
- "writable": true
9860
10531
  },
9861
10532
  {
9862
10533
  "name": "glamSigner",
@@ -9864,80 +10535,25 @@ export type GlamProtocol = {
9864
10535
  "signer": true
9865
10536
  },
9866
10537
  {
9867
- "name": "glamMint",
9868
- "writable": true
10538
+ "name": "cpiProgram",
10539
+ "address": "Vote111111111111111111111111111111111111111"
9869
10540
  },
9870
10541
  {
9871
- "name": "token2022Program",
9872
- "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
9873
- }
9874
- ],
9875
- "args": [
9876
- {
9877
- "name": "mintId",
9878
- "type": "u8"
9879
- }
9880
- ]
9881
- },
9882
- {
9883
- "name": "updateState",
9884
- "discriminator": [
9885
- 135,
9886
- 112,
9887
- 215,
9888
- 75,
9889
- 247,
9890
- 185,
9891
- 53,
9892
- 176
9893
- ],
9894
- "accounts": [
9895
- {
9896
- "name": "glamState",
10542
+ "name": "vote",
9897
10543
  "writable": true
9898
10544
  },
9899
10545
  {
9900
- "name": "glamSigner",
9901
- "writable": true,
9902
- "signer": true
10546
+ "name": "recipient",
10547
+ "writable": true
9903
10548
  }
9904
10549
  ],
9905
10550
  "args": [
9906
10551
  {
9907
- "name": "state",
9908
- "type": {
9909
- "defined": {
9910
- "name": "stateModel"
9911
- }
9912
- }
10552
+ "name": "lamports",
10553
+ "type": "u64"
9913
10554
  }
9914
10555
  ]
9915
10556
  },
9916
- {
9917
- "name": "updateStateApplyTimelock",
9918
- "discriminator": [
9919
- 66,
9920
- 12,
9921
- 138,
9922
- 80,
9923
- 133,
9924
- 85,
9925
- 46,
9926
- 220
9927
- ],
9928
- "accounts": [
9929
- {
9930
- "name": "glamState",
9931
- "writable": true
9932
- },
9933
- {
9934
- "name": "glamSigner",
9935
- "writable": true,
9936
- "signer": true
9937
- }
9938
- ],
9939
- "args": []
9940
- },
9941
10557
  {
9942
10558
  "name": "withdraw",
9943
10559
  "discriminator": [
@@ -10185,16 +10801,21 @@ export type GlamProtocol = {
10185
10801
  },
10186
10802
  {
10187
10803
  "code": 48006,
10804
+ "name": "cannotApplyChanges",
10805
+ "msg": "Pending changes cannot be applied due to unfulfilled subscriptions or redemptions"
10806
+ },
10807
+ {
10808
+ "code": 48007,
10188
10809
  "name": "assetNotBorrowable",
10189
10810
  "msg": "Asset is not allowed to borrow"
10190
10811
  },
10191
10812
  {
10192
- "code": 48007,
10813
+ "code": 48008,
10193
10814
  "name": "invalidAccountOwner",
10194
10815
  "msg": "Account owned by an invalid program"
10195
10816
  },
10196
10817
  {
10197
- "code": 48008,
10818
+ "code": 48009,
10198
10819
  "name": "invalidAuthority",
10199
10820
  "msg": "Invalid authority"
10200
10821
  },
@@ -10902,7 +11523,7 @@ export type GlamProtocol = {
10902
11523
  "name": "minRedemption"
10903
11524
  },
10904
11525
  {
10905
- "name": "notifyAndSettle"
11526
+ "name": "redemptionNotifyAndSettle"
10906
11527
  },
10907
11528
  {
10908
11529
  "name": "ledger"
@@ -10969,6 +11590,12 @@ export type GlamProtocol = {
10969
11590
  },
10970
11591
  {
10971
11592
  "name": "borrowableAssets"
11593
+ },
11594
+ {
11595
+ "name": "driftVaultsAllowlist"
11596
+ },
11597
+ {
11598
+ "name": "kaminoVaultsAllowlist"
10972
11599
  }
10973
11600
  ]
10974
11601
  }
@@ -11755,6 +12382,9 @@ export type GlamProtocol = {
11755
12382
  },
11756
12383
  {
11757
12384
  "name": "kaminoVaults"
12385
+ },
12386
+ {
12387
+ "name": "validator"
11758
12388
  }
11759
12389
  ]
11760
12390
  }
@@ -12340,9 +12970,9 @@ export type GlamProtocol = {
12340
12970
  }
12341
12971
  },
12342
12972
  {
12343
- "name": "immediateOrCancel",
12973
+ "name": "bitFlags",
12344
12974
  "type": {
12345
- "option": "bool"
12975
+ "option": "u8"
12346
12976
  }
12347
12977
  },
12348
12978
  {
@@ -12637,8 +13267,8 @@ export type GlamProtocol = {
12637
13267
  }
12638
13268
  },
12639
13269
  {
12640
- "name": "immediateOrCancel",
12641
- "type": "bool"
13270
+ "name": "bitFlags",
13271
+ "type": "u8"
12642
13272
  },
12643
13273
  {
12644
13274
  "name": "maxTs",
@@ -12796,7 +13426,7 @@ export type GlamProtocol = {
12796
13426
  "name": "unstake"
12797
13427
  },
12798
13428
  {
12799
- "name": "deprecatedLiquidUnstake"
13429
+ "name": "driftCancelOrders"
12800
13430
  },
12801
13431
  {
12802
13432
  "name": "jupiterSwapAllowlisted"
@@ -12808,7 +13438,7 @@ export type GlamProtocol = {
12808
13438
  "name": "wSol"
12809
13439
  },
12810
13440
  {
12811
- "name": "deprecatedWSolUnwrap"
13441
+ "name": "driftClaim"
12812
13442
  },
12813
13443
  {
12814
13444
  "name": "mintMintTokens"
@@ -12887,6 +13517,21 @@ export type GlamProtocol = {
12887
13517
  },
12888
13518
  {
12889
13519
  "name": "kaminoVaultsWithdraw"
13520
+ },
13521
+ {
13522
+ "name": "validatorAdmin"
13523
+ },
13524
+ {
13525
+ "name": "validatorWithdraw"
13526
+ },
13527
+ {
13528
+ "name": "validatorWithdrawToAny"
13529
+ },
13530
+ {
13531
+ "name": "validatorWithdrawToIdentity"
13532
+ },
13533
+ {
13534
+ "name": "fulfill"
12890
13535
  }
12891
13536
  ]
12892
13537
  }
@@ -13625,6 +14270,22 @@ export type GlamProtocol = {
13625
14270
  "option": "u32"
13626
14271
  }
13627
14272
  },
14273
+ {
14274
+ "name": "driftVaultsAllowlist",
14275
+ "type": {
14276
+ "option": {
14277
+ "vec": "pubkey"
14278
+ }
14279
+ }
14280
+ },
14281
+ {
14282
+ "name": "kaminoVaultsAllowlist",
14283
+ "type": {
14284
+ "option": {
14285
+ "vec": "pubkey"
14286
+ }
14287
+ }
14288
+ },
13628
14289
  {
13629
14290
  "name": "metadata",
13630
14291
  "type": {
@@ -13744,6 +14405,20 @@ export type GlamProtocol = {
13744
14405
  ]
13745
14406
  }
13746
14407
  },
14408
+ {
14409
+ "name": "voteAuthorizeEnum",
14410
+ "type": {
14411
+ "kind": "enum",
14412
+ "variants": [
14413
+ {
14414
+ "name": "voter"
14415
+ },
14416
+ {
14417
+ "name": "withdrawer"
14418
+ }
14419
+ ]
14420
+ }
14421
+ },
13747
14422
  {
13748
14423
  "name": "withdrawUnit",
13749
14424
  "type": {