@glamsystems/glam-sdk 1.0.12 → 1.0.13-test

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.
Files changed (110) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +1 -1
  3. package/index.cjs.js +1 -57320
  4. package/index.esm.js +1 -57081
  5. package/package.json +26 -15
  6. package/src/assets.d.ts +10 -17
  7. package/src/client/access.d.ts +13 -0
  8. package/src/client/base.d.ts +30 -7
  9. package/src/client/bridge.d.ts +183 -0
  10. package/src/client/bridgeRegistry.d.ts +32 -0
  11. package/src/client/epi.d.ts +78 -0
  12. package/src/client/fees.d.ts +4 -0
  13. package/src/client/invest.d.ts +1 -1
  14. package/src/client/jupiter.d.ts +27 -20
  15. package/src/client/loopscale.d.ts +84 -0
  16. package/src/client/mint.d.ts +54 -1
  17. package/src/client/price.d.ts +26 -39
  18. package/src/client.d.ts +9 -5
  19. package/src/constants.d.ts +11 -7
  20. package/src/deser/index.d.ts +1 -1
  21. package/src/deser/integrationPolicies.d.ts +30 -20
  22. package/src/deser/tokenAclLayouts.d.ts +67 -0
  23. package/src/error.d.ts +2 -1
  24. package/src/glamExports.d.ts +1351 -1546
  25. package/src/globalConfig.d.ts +27 -0
  26. package/src/index.d.ts +5 -1
  27. package/src/models/state.d.ts +2 -0
  28. package/src/utils/accounts.d.ts +9 -1
  29. package/src/utils/bitmask.d.ts +3 -0
  30. package/src/utils/common.d.ts +2 -0
  31. package/src/utils/glamPDAs.d.ts +6 -0
  32. package/src/utils/index.d.ts +0 -1
  33. package/src/utils/pkmap.d.ts +23 -18
  34. package/src/utils/positionCategorizer.d.ts +3 -21
  35. package/target/idl/ext_bridge-staging.json +2379 -0
  36. package/target/idl/ext_bridge.json +2379 -0
  37. package/target/idl/ext_cctp.json +1 -1
  38. package/target/idl/ext_drift.json +1613 -142
  39. package/target/idl/ext_epi-staging.json +2169 -0
  40. package/target/idl/ext_epi.json +2169 -0
  41. package/target/idl/ext_kamino-staging.json +1 -1
  42. package/target/idl/ext_kamino.json +109 -1
  43. package/target/idl/{ext_drift-staging.json → ext_loopscale-staging.json} +986 -1438
  44. package/target/idl/ext_loopscale.json +3541 -0
  45. package/target/idl/ext_marinade-staging.json +1587 -0
  46. package/target/idl/ext_spl-staging.json +1 -1
  47. package/target/idl/ext_spl.json +1 -1
  48. package/target/idl/glam_config.json +78 -9
  49. package/target/idl/glam_mint-staging.json +3002 -1244
  50. package/target/idl/glam_mint.json +239 -8
  51. package/target/idl/glam_policies.json +2 -7
  52. package/target/idl/glam_protocol-staging.json +187 -266
  53. package/target/idl/glam_protocol.json +217 -114
  54. package/target/idl/mock_layerzero_endpoint.json +144 -0
  55. package/target/idl/mock_layerzero_oft.json +155 -0
  56. package/target/types/ext_bridge-staging.d.ts +2385 -0
  57. package/target/types/ext_bridge-staging.ts +2385 -0
  58. package/target/types/ext_bridge.d.ts +2385 -0
  59. package/target/types/ext_bridge.ts +2385 -0
  60. package/target/types/ext_cctp.d.ts +1 -1
  61. package/target/types/ext_cctp.ts +1 -1
  62. package/target/types/ext_drift.d.ts +1609 -138
  63. package/target/types/ext_drift.ts +1613 -142
  64. package/target/types/ext_epi-staging.d.ts +2175 -0
  65. package/target/types/ext_epi-staging.ts +2175 -0
  66. package/target/types/ext_epi.d.ts +2175 -0
  67. package/target/types/ext_epi.ts +2175 -0
  68. package/target/types/ext_kamino-staging.d.ts +3433 -0
  69. package/target/types/ext_kamino-staging.ts +1 -1
  70. package/target/types/ext_kamino.d.ts +109 -1
  71. package/target/types/ext_kamino.ts +109 -1
  72. package/target/types/ext_loopscale-staging.d.ts +3547 -0
  73. package/target/types/{ext_drift-staging.ts → ext_loopscale-staging.ts} +988 -1440
  74. package/target/types/ext_loopscale.d.ts +3547 -0
  75. package/target/types/ext_loopscale.ts +3547 -0
  76. package/target/types/ext_marinade-staging.d.ts +1593 -0
  77. package/target/types/ext_marinade-staging.ts +1593 -0
  78. package/target/types/{ext_offchain.d.ts → ext_spl-staging.d.ts} +219 -19
  79. package/target/types/ext_spl-staging.ts +1 -1
  80. package/target/types/ext_spl.d.ts +1 -1
  81. package/target/types/ext_spl.ts +1 -1
  82. package/target/types/ext_stake_pool-staging.d.ts +1622 -0
  83. package/target/types/glam_config.d.ts +78 -9
  84. package/target/types/glam_config.ts +78 -9
  85. package/target/types/glam_mint-staging.d.ts +7856 -0
  86. package/target/types/glam_mint-staging.ts +3002 -1244
  87. package/target/types/glam_mint.d.ts +239 -8
  88. package/target/types/glam_mint.ts +239 -8
  89. package/target/types/glam_policies.d.ts +477 -0
  90. package/target/types/glam_policies.ts +2 -7
  91. package/target/types/glam_protocol-staging.d.ts +3292 -0
  92. package/target/types/glam_protocol-staging.ts +187 -266
  93. package/target/types/glam_protocol.d.ts +217 -114
  94. package/target/types/glam_protocol.ts +217 -114
  95. package/target/types/mock_layerzero_endpoint.d.ts +150 -0
  96. package/target/types/mock_layerzero_endpoint.ts +150 -0
  97. package/target/types/mock_layerzero_oft.d.ts +161 -0
  98. package/target/types/mock_layerzero_oft.ts +161 -0
  99. package/src/client/drift/index.d.ts +0 -2
  100. package/src/client/drift/protocol-v2.d.ts +0 -93
  101. package/src/client/drift/vaults.d.ts +0 -60
  102. package/src/deser/driftLayouts.d.ts +0 -217
  103. package/src/react/cluster-provider.d.ts +0 -22
  104. package/src/react/glam.d.ts +0 -51
  105. package/src/react/index.d.ts +0 -5
  106. package/src/react/query-keys.d.ts +0 -40
  107. package/src/react/useVaultBalanceSubscription.d.ts +0 -17
  108. package/src/utils/drift/index.d.ts +0 -2
  109. package/src/utils/drift/orderParams.d.ts +0 -28
  110. package/src/utils/drift/types.d.ts +0 -522
@@ -13,6 +13,224 @@ export type ExtDrift = {
13
13
  "description": "Drift integration for GLAM Protocol";
14
14
  };
15
15
  "instructions": [
16
+ {
17
+ "name": "cancelOrder";
18
+ "discriminator": [
19
+ 95,
20
+ 129,
21
+ 237,
22
+ 240,
23
+ 8,
24
+ 49,
25
+ 223,
26
+ 132
27
+ ];
28
+ "accounts": [
29
+ {
30
+ "name": "glamState";
31
+ "writable": true;
32
+ },
33
+ {
34
+ "name": "glamVault";
35
+ "writable": true;
36
+ "pda": {
37
+ "seeds": [
38
+ {
39
+ "kind": "const";
40
+ "value": [
41
+ 118,
42
+ 97,
43
+ 117,
44
+ 108,
45
+ 116
46
+ ];
47
+ },
48
+ {
49
+ "kind": "account";
50
+ "path": "glamState";
51
+ }
52
+ ];
53
+ "program": {
54
+ "kind": "account";
55
+ "path": "glamProtocolProgram";
56
+ };
57
+ };
58
+ },
59
+ {
60
+ "name": "glamSigner";
61
+ "writable": true;
62
+ "signer": true;
63
+ },
64
+ {
65
+ "name": "integrationAuthority";
66
+ "pda": {
67
+ "seeds": [
68
+ {
69
+ "kind": "const";
70
+ "value": [
71
+ 105,
72
+ 110,
73
+ 116,
74
+ 101,
75
+ 103,
76
+ 114,
77
+ 97,
78
+ 116,
79
+ 105,
80
+ 111,
81
+ 110,
82
+ 45,
83
+ 97,
84
+ 117,
85
+ 116,
86
+ 104,
87
+ 111,
88
+ 114,
89
+ 105,
90
+ 116,
91
+ 121
92
+ ];
93
+ }
94
+ ];
95
+ };
96
+ },
97
+ {
98
+ "name": "cpiProgram";
99
+ "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
100
+ },
101
+ {
102
+ "name": "glamProtocolProgram";
103
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
104
+ },
105
+ {
106
+ "name": "systemProgram";
107
+ "address": "11111111111111111111111111111111";
108
+ },
109
+ {
110
+ "name": "state";
111
+ },
112
+ {
113
+ "name": "user";
114
+ "writable": true;
115
+ }
116
+ ];
117
+ "args": [
118
+ {
119
+ "name": "orderId";
120
+ "type": {
121
+ "option": "u32";
122
+ };
123
+ }
124
+ ];
125
+ },
126
+ {
127
+ "name": "cancelOrderByUserId";
128
+ "discriminator": [
129
+ 107,
130
+ 211,
131
+ 250,
132
+ 133,
133
+ 18,
134
+ 37,
135
+ 57,
136
+ 100
137
+ ];
138
+ "accounts": [
139
+ {
140
+ "name": "glamState";
141
+ "writable": true;
142
+ },
143
+ {
144
+ "name": "glamVault";
145
+ "writable": true;
146
+ "pda": {
147
+ "seeds": [
148
+ {
149
+ "kind": "const";
150
+ "value": [
151
+ 118,
152
+ 97,
153
+ 117,
154
+ 108,
155
+ 116
156
+ ];
157
+ },
158
+ {
159
+ "kind": "account";
160
+ "path": "glamState";
161
+ }
162
+ ];
163
+ "program": {
164
+ "kind": "account";
165
+ "path": "glamProtocolProgram";
166
+ };
167
+ };
168
+ },
169
+ {
170
+ "name": "glamSigner";
171
+ "writable": true;
172
+ "signer": true;
173
+ },
174
+ {
175
+ "name": "integrationAuthority";
176
+ "pda": {
177
+ "seeds": [
178
+ {
179
+ "kind": "const";
180
+ "value": [
181
+ 105,
182
+ 110,
183
+ 116,
184
+ 101,
185
+ 103,
186
+ 114,
187
+ 97,
188
+ 116,
189
+ 105,
190
+ 111,
191
+ 110,
192
+ 45,
193
+ 97,
194
+ 117,
195
+ 116,
196
+ 104,
197
+ 111,
198
+ 114,
199
+ 105,
200
+ 116,
201
+ 121
202
+ ];
203
+ }
204
+ ];
205
+ };
206
+ },
207
+ {
208
+ "name": "cpiProgram";
209
+ "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
210
+ },
211
+ {
212
+ "name": "glamProtocolProgram";
213
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
214
+ },
215
+ {
216
+ "name": "systemProgram";
217
+ "address": "11111111111111111111111111111111";
218
+ },
219
+ {
220
+ "name": "state";
221
+ },
222
+ {
223
+ "name": "user";
224
+ "writable": true;
225
+ }
226
+ ];
227
+ "args": [
228
+ {
229
+ "name": "userOrderId";
230
+ "type": "u8";
231
+ }
232
+ ];
233
+ },
16
234
  {
17
235
  "name": "cancelOrders";
18
236
  "discriminator": [
@@ -347,31 +565,1267 @@ export type ExtDrift = {
347
565
  "address": "11111111111111111111111111111111";
348
566
  },
349
567
  {
350
- "name": "user";
351
- "writable": true;
568
+ "name": "user";
569
+ "writable": true;
570
+ },
571
+ {
572
+ "name": "userStats";
573
+ "writable": true;
574
+ },
575
+ {
576
+ "name": "state";
577
+ "writable": true;
578
+ }
579
+ ];
580
+ "args": [];
581
+ },
582
+ {
583
+ "name": "deposit";
584
+ "discriminator": [
585
+ 242,
586
+ 35,
587
+ 198,
588
+ 137,
589
+ 82,
590
+ 225,
591
+ 242,
592
+ 182
593
+ ];
594
+ "accounts": [
595
+ {
596
+ "name": "glamState";
597
+ "writable": true;
598
+ },
599
+ {
600
+ "name": "glamVault";
601
+ "writable": true;
602
+ "pda": {
603
+ "seeds": [
604
+ {
605
+ "kind": "const";
606
+ "value": [
607
+ 118,
608
+ 97,
609
+ 117,
610
+ 108,
611
+ 116
612
+ ];
613
+ },
614
+ {
615
+ "kind": "account";
616
+ "path": "glamState";
617
+ }
618
+ ];
619
+ "program": {
620
+ "kind": "account";
621
+ "path": "glamProtocolProgram";
622
+ };
623
+ };
624
+ },
625
+ {
626
+ "name": "glamSigner";
627
+ "writable": true;
628
+ "signer": true;
629
+ },
630
+ {
631
+ "name": "integrationAuthority";
632
+ "pda": {
633
+ "seeds": [
634
+ {
635
+ "kind": "const";
636
+ "value": [
637
+ 105,
638
+ 110,
639
+ 116,
640
+ 101,
641
+ 103,
642
+ 114,
643
+ 97,
644
+ 116,
645
+ 105,
646
+ 111,
647
+ 110,
648
+ 45,
649
+ 97,
650
+ 117,
651
+ 116,
652
+ 104,
653
+ 111,
654
+ 114,
655
+ 105,
656
+ 116,
657
+ 121
658
+ ];
659
+ }
660
+ ];
661
+ };
662
+ },
663
+ {
664
+ "name": "cpiProgram";
665
+ "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
666
+ },
667
+ {
668
+ "name": "glamProtocolProgram";
669
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
670
+ },
671
+ {
672
+ "name": "systemProgram";
673
+ "address": "11111111111111111111111111111111";
674
+ },
675
+ {
676
+ "name": "state";
677
+ },
678
+ {
679
+ "name": "user";
680
+ "writable": true;
681
+ },
682
+ {
683
+ "name": "userStats";
684
+ "writable": true;
685
+ },
686
+ {
687
+ "name": "spotMarketVault";
688
+ "writable": true;
689
+ },
690
+ {
691
+ "name": "userTokenAccount";
692
+ "writable": true;
693
+ },
694
+ {
695
+ "name": "tokenProgram";
696
+ }
697
+ ];
698
+ "args": [
699
+ {
700
+ "name": "marketIndex";
701
+ "type": "u16";
702
+ },
703
+ {
704
+ "name": "amount";
705
+ "type": "u64";
706
+ },
707
+ {
708
+ "name": "reduceOnly";
709
+ "type": "bool";
710
+ }
711
+ ];
712
+ },
713
+ {
714
+ "name": "fillPerpOrder";
715
+ "discriminator": [
716
+ 13,
717
+ 188,
718
+ 248,
719
+ 103,
720
+ 134,
721
+ 217,
722
+ 106,
723
+ 240
724
+ ];
725
+ "accounts": [
726
+ {
727
+ "name": "glamState";
728
+ "writable": true;
729
+ },
730
+ {
731
+ "name": "glamVault";
732
+ "writable": true;
733
+ "pda": {
734
+ "seeds": [
735
+ {
736
+ "kind": "const";
737
+ "value": [
738
+ 118,
739
+ 97,
740
+ 117,
741
+ 108,
742
+ 116
743
+ ];
744
+ },
745
+ {
746
+ "kind": "account";
747
+ "path": "glamState";
748
+ }
749
+ ];
750
+ "program": {
751
+ "kind": "account";
752
+ "path": "glamProtocolProgram";
753
+ };
754
+ };
755
+ },
756
+ {
757
+ "name": "glamSigner";
758
+ "writable": true;
759
+ "signer": true;
760
+ },
761
+ {
762
+ "name": "integrationAuthority";
763
+ "pda": {
764
+ "seeds": [
765
+ {
766
+ "kind": "const";
767
+ "value": [
768
+ 105,
769
+ 110,
770
+ 116,
771
+ 101,
772
+ 103,
773
+ 114,
774
+ 97,
775
+ 116,
776
+ 105,
777
+ 111,
778
+ 110,
779
+ 45,
780
+ 97,
781
+ 117,
782
+ 116,
783
+ 104,
784
+ 111,
785
+ 114,
786
+ 105,
787
+ 116,
788
+ 121
789
+ ];
790
+ }
791
+ ];
792
+ };
793
+ },
794
+ {
795
+ "name": "cpiProgram";
796
+ "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
797
+ },
798
+ {
799
+ "name": "glamProtocolProgram";
800
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
801
+ },
802
+ {
803
+ "name": "systemProgram";
804
+ "address": "11111111111111111111111111111111";
805
+ },
806
+ {
807
+ "name": "state";
808
+ },
809
+ {
810
+ "name": "filler";
811
+ "writable": true;
812
+ },
813
+ {
814
+ "name": "fillerStats";
815
+ "writable": true;
816
+ },
817
+ {
818
+ "name": "user";
819
+ "writable": true;
820
+ },
821
+ {
822
+ "name": "userStats";
823
+ "writable": true;
824
+ }
825
+ ];
826
+ "args": [
827
+ {
828
+ "name": "orderId";
829
+ "type": {
830
+ "option": "u32";
831
+ };
832
+ },
833
+ {
834
+ "name": "makerOrderId";
835
+ "type": {
836
+ "option": "u32";
837
+ };
838
+ }
839
+ ];
840
+ },
841
+ {
842
+ "name": "fillSpotOrder";
843
+ "discriminator": [
844
+ 212,
845
+ 206,
846
+ 130,
847
+ 173,
848
+ 21,
849
+ 34,
850
+ 199,
851
+ 40
852
+ ];
853
+ "accounts": [
854
+ {
855
+ "name": "glamState";
856
+ "writable": true;
857
+ },
858
+ {
859
+ "name": "glamVault";
860
+ "writable": true;
861
+ "pda": {
862
+ "seeds": [
863
+ {
864
+ "kind": "const";
865
+ "value": [
866
+ 118,
867
+ 97,
868
+ 117,
869
+ 108,
870
+ 116
871
+ ];
872
+ },
873
+ {
874
+ "kind": "account";
875
+ "path": "glamState";
876
+ }
877
+ ];
878
+ "program": {
879
+ "kind": "account";
880
+ "path": "glamProtocolProgram";
881
+ };
882
+ };
883
+ },
884
+ {
885
+ "name": "glamSigner";
886
+ "writable": true;
887
+ "signer": true;
888
+ },
889
+ {
890
+ "name": "integrationAuthority";
891
+ "pda": {
892
+ "seeds": [
893
+ {
894
+ "kind": "const";
895
+ "value": [
896
+ 105,
897
+ 110,
898
+ 116,
899
+ 101,
900
+ 103,
901
+ 114,
902
+ 97,
903
+ 116,
904
+ 105,
905
+ 111,
906
+ 110,
907
+ 45,
908
+ 97,
909
+ 117,
910
+ 116,
911
+ 104,
912
+ 111,
913
+ 114,
914
+ 105,
915
+ 116,
916
+ 121
917
+ ];
918
+ }
919
+ ];
920
+ };
921
+ },
922
+ {
923
+ "name": "cpiProgram";
924
+ "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
925
+ },
926
+ {
927
+ "name": "glamProtocolProgram";
928
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
929
+ },
930
+ {
931
+ "name": "systemProgram";
932
+ "address": "11111111111111111111111111111111";
933
+ },
934
+ {
935
+ "name": "state";
936
+ },
937
+ {
938
+ "name": "filler";
939
+ "writable": true;
940
+ },
941
+ {
942
+ "name": "fillerStats";
943
+ "writable": true;
944
+ },
945
+ {
946
+ "name": "user";
947
+ "writable": true;
948
+ },
949
+ {
950
+ "name": "userStats";
951
+ "writable": true;
952
+ }
953
+ ];
954
+ "args": [
955
+ {
956
+ "name": "orderId";
957
+ "type": {
958
+ "option": "u32";
959
+ };
960
+ },
961
+ {
962
+ "name": "fulfillmentType";
963
+ "type": {
964
+ "option": {
965
+ "defined": {
966
+ "name": "spotFulfillmentType";
967
+ };
968
+ };
969
+ };
970
+ },
971
+ {
972
+ "name": "makerOrderId";
973
+ "type": {
974
+ "option": "u32";
975
+ };
976
+ }
977
+ ];
978
+ },
979
+ {
980
+ "name": "forceCancelOrders";
981
+ "discriminator": [
982
+ 64,
983
+ 181,
984
+ 196,
985
+ 63,
986
+ 222,
987
+ 72,
988
+ 64,
989
+ 232
990
+ ];
991
+ "accounts": [
992
+ {
993
+ "name": "glamState";
994
+ "writable": true;
995
+ },
996
+ {
997
+ "name": "glamVault";
998
+ "writable": true;
999
+ "pda": {
1000
+ "seeds": [
1001
+ {
1002
+ "kind": "const";
1003
+ "value": [
1004
+ 118,
1005
+ 97,
1006
+ 117,
1007
+ 108,
1008
+ 116
1009
+ ];
1010
+ },
1011
+ {
1012
+ "kind": "account";
1013
+ "path": "glamState";
1014
+ }
1015
+ ];
1016
+ "program": {
1017
+ "kind": "account";
1018
+ "path": "glamProtocolProgram";
1019
+ };
1020
+ };
1021
+ },
1022
+ {
1023
+ "name": "glamSigner";
1024
+ "writable": true;
1025
+ "signer": true;
1026
+ },
1027
+ {
1028
+ "name": "integrationAuthority";
1029
+ "pda": {
1030
+ "seeds": [
1031
+ {
1032
+ "kind": "const";
1033
+ "value": [
1034
+ 105,
1035
+ 110,
1036
+ 116,
1037
+ 101,
1038
+ 103,
1039
+ 114,
1040
+ 97,
1041
+ 116,
1042
+ 105,
1043
+ 111,
1044
+ 110,
1045
+ 45,
1046
+ 97,
1047
+ 117,
1048
+ 116,
1049
+ 104,
1050
+ 111,
1051
+ 114,
1052
+ 105,
1053
+ 116,
1054
+ 121
1055
+ ];
1056
+ }
1057
+ ];
1058
+ };
1059
+ },
1060
+ {
1061
+ "name": "cpiProgram";
1062
+ "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
1063
+ },
1064
+ {
1065
+ "name": "glamProtocolProgram";
1066
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
1067
+ },
1068
+ {
1069
+ "name": "systemProgram";
1070
+ "address": "11111111111111111111111111111111";
1071
+ },
1072
+ {
1073
+ "name": "state";
1074
+ },
1075
+ {
1076
+ "name": "filler";
1077
+ "writable": true;
1078
+ },
1079
+ {
1080
+ "name": "user";
1081
+ "writable": true;
1082
+ }
1083
+ ];
1084
+ "args": [];
1085
+ },
1086
+ {
1087
+ "name": "initializeUser";
1088
+ "discriminator": [
1089
+ 111,
1090
+ 17,
1091
+ 185,
1092
+ 250,
1093
+ 60,
1094
+ 122,
1095
+ 38,
1096
+ 254
1097
+ ];
1098
+ "accounts": [
1099
+ {
1100
+ "name": "glamState";
1101
+ "writable": true;
1102
+ },
1103
+ {
1104
+ "name": "glamVault";
1105
+ "writable": true;
1106
+ "pda": {
1107
+ "seeds": [
1108
+ {
1109
+ "kind": "const";
1110
+ "value": [
1111
+ 118,
1112
+ 97,
1113
+ 117,
1114
+ 108,
1115
+ 116
1116
+ ];
1117
+ },
1118
+ {
1119
+ "kind": "account";
1120
+ "path": "glamState";
1121
+ }
1122
+ ];
1123
+ "program": {
1124
+ "kind": "account";
1125
+ "path": "glamProtocolProgram";
1126
+ };
1127
+ };
1128
+ },
1129
+ {
1130
+ "name": "glamSigner";
1131
+ "writable": true;
1132
+ "signer": true;
1133
+ },
1134
+ {
1135
+ "name": "integrationAuthority";
1136
+ "pda": {
1137
+ "seeds": [
1138
+ {
1139
+ "kind": "const";
1140
+ "value": [
1141
+ 105,
1142
+ 110,
1143
+ 116,
1144
+ 101,
1145
+ 103,
1146
+ 114,
1147
+ 97,
1148
+ 116,
1149
+ 105,
1150
+ 111,
1151
+ 110,
1152
+ 45,
1153
+ 97,
1154
+ 117,
1155
+ 116,
1156
+ 104,
1157
+ 111,
1158
+ 114,
1159
+ 105,
1160
+ 116,
1161
+ 121
1162
+ ];
1163
+ }
1164
+ ];
1165
+ };
1166
+ },
1167
+ {
1168
+ "name": "cpiProgram";
1169
+ "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
1170
+ },
1171
+ {
1172
+ "name": "glamProtocolProgram";
1173
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
1174
+ },
1175
+ {
1176
+ "name": "user";
1177
+ "writable": true;
1178
+ },
1179
+ {
1180
+ "name": "userStats";
1181
+ "writable": true;
1182
+ },
1183
+ {
1184
+ "name": "state";
1185
+ "writable": true;
1186
+ },
1187
+ {
1188
+ "name": "rent";
1189
+ "address": "SysvarRent111111111111111111111111111111111";
1190
+ },
1191
+ {
1192
+ "name": "systemProgram";
1193
+ "address": "11111111111111111111111111111111";
1194
+ }
1195
+ ];
1196
+ "args": [
1197
+ {
1198
+ "name": "subAccountId";
1199
+ "type": "u16";
1200
+ },
1201
+ {
1202
+ "name": "name";
1203
+ "type": {
1204
+ "array": [
1205
+ "u8",
1206
+ 32
1207
+ ];
1208
+ };
1209
+ }
1210
+ ];
1211
+ },
1212
+ {
1213
+ "name": "initializeUserStats";
1214
+ "discriminator": [
1215
+ 254,
1216
+ 243,
1217
+ 72,
1218
+ 98,
1219
+ 251,
1220
+ 130,
1221
+ 168,
1222
+ 213
1223
+ ];
1224
+ "accounts": [
1225
+ {
1226
+ "name": "glamState";
1227
+ "writable": true;
1228
+ },
1229
+ {
1230
+ "name": "glamVault";
1231
+ "writable": true;
1232
+ "pda": {
1233
+ "seeds": [
1234
+ {
1235
+ "kind": "const";
1236
+ "value": [
1237
+ 118,
1238
+ 97,
1239
+ 117,
1240
+ 108,
1241
+ 116
1242
+ ];
1243
+ },
1244
+ {
1245
+ "kind": "account";
1246
+ "path": "glamState";
1247
+ }
1248
+ ];
1249
+ "program": {
1250
+ "kind": "account";
1251
+ "path": "glamProtocolProgram";
1252
+ };
1253
+ };
1254
+ },
1255
+ {
1256
+ "name": "glamSigner";
1257
+ "writable": true;
1258
+ "signer": true;
1259
+ },
1260
+ {
1261
+ "name": "integrationAuthority";
1262
+ "pda": {
1263
+ "seeds": [
1264
+ {
1265
+ "kind": "const";
1266
+ "value": [
1267
+ 105,
1268
+ 110,
1269
+ 116,
1270
+ 101,
1271
+ 103,
1272
+ 114,
1273
+ 97,
1274
+ 116,
1275
+ 105,
1276
+ 111,
1277
+ 110,
1278
+ 45,
1279
+ 97,
1280
+ 117,
1281
+ 116,
1282
+ 104,
1283
+ 111,
1284
+ 114,
1285
+ 105,
1286
+ 116,
1287
+ 121
1288
+ ];
1289
+ }
1290
+ ];
1291
+ };
1292
+ },
1293
+ {
1294
+ "name": "cpiProgram";
1295
+ "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
1296
+ },
1297
+ {
1298
+ "name": "glamProtocolProgram";
1299
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
1300
+ },
1301
+ {
1302
+ "name": "userStats";
1303
+ "writable": true;
1304
+ },
1305
+ {
1306
+ "name": "state";
1307
+ "writable": true;
1308
+ },
1309
+ {
1310
+ "name": "rent";
1311
+ "address": "SysvarRent111111111111111111111111111111111";
1312
+ },
1313
+ {
1314
+ "name": "systemProgram";
1315
+ "address": "11111111111111111111111111111111";
1316
+ }
1317
+ ];
1318
+ "args": [];
1319
+ },
1320
+ {
1321
+ "name": "liquidatePerp";
1322
+ "discriminator": [
1323
+ 75,
1324
+ 35,
1325
+ 119,
1326
+ 247,
1327
+ 191,
1328
+ 18,
1329
+ 139,
1330
+ 2
1331
+ ];
1332
+ "accounts": [
1333
+ {
1334
+ "name": "glamState";
1335
+ "writable": true;
1336
+ },
1337
+ {
1338
+ "name": "glamVault";
1339
+ "writable": true;
1340
+ "pda": {
1341
+ "seeds": [
1342
+ {
1343
+ "kind": "const";
1344
+ "value": [
1345
+ 118,
1346
+ 97,
1347
+ 117,
1348
+ 108,
1349
+ 116
1350
+ ];
1351
+ },
1352
+ {
1353
+ "kind": "account";
1354
+ "path": "glamState";
1355
+ }
1356
+ ];
1357
+ "program": {
1358
+ "kind": "account";
1359
+ "path": "glamProtocolProgram";
1360
+ };
1361
+ };
1362
+ },
1363
+ {
1364
+ "name": "glamSigner";
1365
+ "writable": true;
1366
+ "signer": true;
1367
+ },
1368
+ {
1369
+ "name": "integrationAuthority";
1370
+ "pda": {
1371
+ "seeds": [
1372
+ {
1373
+ "kind": "const";
1374
+ "value": [
1375
+ 105,
1376
+ 110,
1377
+ 116,
1378
+ 101,
1379
+ 103,
1380
+ 114,
1381
+ 97,
1382
+ 116,
1383
+ 105,
1384
+ 111,
1385
+ 110,
1386
+ 45,
1387
+ 97,
1388
+ 117,
1389
+ 116,
1390
+ 104,
1391
+ 111,
1392
+ 114,
1393
+ 105,
1394
+ 116,
1395
+ 121
1396
+ ];
1397
+ }
1398
+ ];
1399
+ };
1400
+ },
1401
+ {
1402
+ "name": "cpiProgram";
1403
+ "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
1404
+ },
1405
+ {
1406
+ "name": "glamProtocolProgram";
1407
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
1408
+ },
1409
+ {
1410
+ "name": "systemProgram";
1411
+ "address": "11111111111111111111111111111111";
1412
+ },
1413
+ {
1414
+ "name": "state";
1415
+ },
1416
+ {
1417
+ "name": "liquidator";
1418
+ "writable": true;
1419
+ },
1420
+ {
1421
+ "name": "liquidatorStats";
1422
+ "writable": true;
1423
+ },
1424
+ {
1425
+ "name": "user";
1426
+ "writable": true;
1427
+ },
1428
+ {
1429
+ "name": "userStats";
1430
+ "writable": true;
1431
+ }
1432
+ ];
1433
+ "args": [
1434
+ {
1435
+ "name": "marketIndex";
1436
+ "type": "u16";
1437
+ },
1438
+ {
1439
+ "name": "liquidatorMaxBaseAssetAmount";
1440
+ "type": "u64";
1441
+ },
1442
+ {
1443
+ "name": "limitPrice";
1444
+ "type": {
1445
+ "option": "u64";
1446
+ };
1447
+ }
1448
+ ];
1449
+ },
1450
+ {
1451
+ "name": "liquidateSpot";
1452
+ "discriminator": [
1453
+ 107,
1454
+ 0,
1455
+ 128,
1456
+ 41,
1457
+ 35,
1458
+ 229,
1459
+ 251,
1460
+ 18
1461
+ ];
1462
+ "accounts": [
1463
+ {
1464
+ "name": "glamState";
1465
+ "writable": true;
1466
+ },
1467
+ {
1468
+ "name": "glamVault";
1469
+ "writable": true;
1470
+ "pda": {
1471
+ "seeds": [
1472
+ {
1473
+ "kind": "const";
1474
+ "value": [
1475
+ 118,
1476
+ 97,
1477
+ 117,
1478
+ 108,
1479
+ 116
1480
+ ];
1481
+ },
1482
+ {
1483
+ "kind": "account";
1484
+ "path": "glamState";
1485
+ }
1486
+ ];
1487
+ "program": {
1488
+ "kind": "account";
1489
+ "path": "glamProtocolProgram";
1490
+ };
1491
+ };
1492
+ },
1493
+ {
1494
+ "name": "glamSigner";
1495
+ "writable": true;
1496
+ "signer": true;
1497
+ },
1498
+ {
1499
+ "name": "integrationAuthority";
1500
+ "pda": {
1501
+ "seeds": [
1502
+ {
1503
+ "kind": "const";
1504
+ "value": [
1505
+ 105,
1506
+ 110,
1507
+ 116,
1508
+ 101,
1509
+ 103,
1510
+ 114,
1511
+ 97,
1512
+ 116,
1513
+ 105,
1514
+ 111,
1515
+ 110,
1516
+ 45,
1517
+ 97,
1518
+ 117,
1519
+ 116,
1520
+ 104,
1521
+ 111,
1522
+ 114,
1523
+ 105,
1524
+ 116,
1525
+ 121
1526
+ ];
1527
+ }
1528
+ ];
1529
+ };
1530
+ },
1531
+ {
1532
+ "name": "cpiProgram";
1533
+ "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
1534
+ },
1535
+ {
1536
+ "name": "glamProtocolProgram";
1537
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
1538
+ },
1539
+ {
1540
+ "name": "systemProgram";
1541
+ "address": "11111111111111111111111111111111";
1542
+ },
1543
+ {
1544
+ "name": "state";
1545
+ },
1546
+ {
1547
+ "name": "liquidator";
1548
+ "writable": true;
1549
+ },
1550
+ {
1551
+ "name": "liquidatorStats";
1552
+ "writable": true;
1553
+ },
1554
+ {
1555
+ "name": "user";
1556
+ "writable": true;
1557
+ },
1558
+ {
1559
+ "name": "userStats";
1560
+ "writable": true;
1561
+ }
1562
+ ];
1563
+ "args": [
1564
+ {
1565
+ "name": "assetMarketIndex";
1566
+ "type": "u16";
1567
+ },
1568
+ {
1569
+ "name": "liabilityMarketIndex";
1570
+ "type": "u16";
1571
+ },
1572
+ {
1573
+ "name": "liquidatorMaxLiabilityTransfer";
1574
+ "type": "u128";
1575
+ },
1576
+ {
1577
+ "name": "limitPrice";
1578
+ "type": {
1579
+ "option": "u64";
1580
+ };
1581
+ }
1582
+ ];
1583
+ },
1584
+ {
1585
+ "name": "modifyOrder";
1586
+ "discriminator": [
1587
+ 47,
1588
+ 124,
1589
+ 117,
1590
+ 255,
1591
+ 201,
1592
+ 197,
1593
+ 130,
1594
+ 94
1595
+ ];
1596
+ "accounts": [
1597
+ {
1598
+ "name": "glamState";
1599
+ "writable": true;
1600
+ },
1601
+ {
1602
+ "name": "glamVault";
1603
+ "writable": true;
1604
+ "pda": {
1605
+ "seeds": [
1606
+ {
1607
+ "kind": "const";
1608
+ "value": [
1609
+ 118,
1610
+ 97,
1611
+ 117,
1612
+ 108,
1613
+ 116
1614
+ ];
1615
+ },
1616
+ {
1617
+ "kind": "account";
1618
+ "path": "glamState";
1619
+ }
1620
+ ];
1621
+ "program": {
1622
+ "kind": "account";
1623
+ "path": "glamProtocolProgram";
1624
+ };
1625
+ };
1626
+ },
1627
+ {
1628
+ "name": "glamSigner";
1629
+ "writable": true;
1630
+ "signer": true;
1631
+ },
1632
+ {
1633
+ "name": "integrationAuthority";
1634
+ "pda": {
1635
+ "seeds": [
1636
+ {
1637
+ "kind": "const";
1638
+ "value": [
1639
+ 105,
1640
+ 110,
1641
+ 116,
1642
+ 101,
1643
+ 103,
1644
+ 114,
1645
+ 97,
1646
+ 116,
1647
+ 105,
1648
+ 111,
1649
+ 110,
1650
+ 45,
1651
+ 97,
1652
+ 117,
1653
+ 116,
1654
+ 104,
1655
+ 111,
1656
+ 114,
1657
+ 105,
1658
+ 116,
1659
+ 121
1660
+ ];
1661
+ }
1662
+ ];
1663
+ };
1664
+ },
1665
+ {
1666
+ "name": "cpiProgram";
1667
+ "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
1668
+ },
1669
+ {
1670
+ "name": "glamProtocolProgram";
1671
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
1672
+ },
1673
+ {
1674
+ "name": "systemProgram";
1675
+ "address": "11111111111111111111111111111111";
1676
+ },
1677
+ {
1678
+ "name": "state";
1679
+ },
1680
+ {
1681
+ "name": "user";
1682
+ "writable": true;
1683
+ }
1684
+ ];
1685
+ "args": [
1686
+ {
1687
+ "name": "orderId";
1688
+ "type": {
1689
+ "option": "u32";
1690
+ };
1691
+ },
1692
+ {
1693
+ "name": "modifyOrderParams";
1694
+ "type": {
1695
+ "defined": {
1696
+ "name": "modifyOrderParams";
1697
+ };
1698
+ };
1699
+ }
1700
+ ];
1701
+ },
1702
+ {
1703
+ "name": "modifyOrderByUserId";
1704
+ "discriminator": [
1705
+ 158,
1706
+ 77,
1707
+ 4,
1708
+ 253,
1709
+ 252,
1710
+ 194,
1711
+ 161,
1712
+ 179
1713
+ ];
1714
+ "accounts": [
1715
+ {
1716
+ "name": "glamState";
1717
+ "writable": true;
1718
+ },
1719
+ {
1720
+ "name": "glamVault";
1721
+ "writable": true;
1722
+ "pda": {
1723
+ "seeds": [
1724
+ {
1725
+ "kind": "const";
1726
+ "value": [
1727
+ 118,
1728
+ 97,
1729
+ 117,
1730
+ 108,
1731
+ 116
1732
+ ];
1733
+ },
1734
+ {
1735
+ "kind": "account";
1736
+ "path": "glamState";
1737
+ }
1738
+ ];
1739
+ "program": {
1740
+ "kind": "account";
1741
+ "path": "glamProtocolProgram";
1742
+ };
1743
+ };
1744
+ },
1745
+ {
1746
+ "name": "glamSigner";
1747
+ "writable": true;
1748
+ "signer": true;
1749
+ },
1750
+ {
1751
+ "name": "integrationAuthority";
1752
+ "pda": {
1753
+ "seeds": [
1754
+ {
1755
+ "kind": "const";
1756
+ "value": [
1757
+ 105,
1758
+ 110,
1759
+ 116,
1760
+ 101,
1761
+ 103,
1762
+ 114,
1763
+ 97,
1764
+ 116,
1765
+ 105,
1766
+ 111,
1767
+ 110,
1768
+ 45,
1769
+ 97,
1770
+ 117,
1771
+ 116,
1772
+ 104,
1773
+ 111,
1774
+ 114,
1775
+ 105,
1776
+ 116,
1777
+ 121
1778
+ ];
1779
+ }
1780
+ ];
1781
+ };
1782
+ },
1783
+ {
1784
+ "name": "cpiProgram";
1785
+ "address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
1786
+ },
1787
+ {
1788
+ "name": "glamProtocolProgram";
1789
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
1790
+ },
1791
+ {
1792
+ "name": "systemProgram";
1793
+ "address": "11111111111111111111111111111111";
1794
+ },
1795
+ {
1796
+ "name": "state";
352
1797
  },
353
1798
  {
354
- "name": "userStats";
1799
+ "name": "user";
355
1800
  "writable": true;
1801
+ }
1802
+ ];
1803
+ "args": [
1804
+ {
1805
+ "name": "userOrderId";
1806
+ "type": "u8";
356
1807
  },
357
1808
  {
358
- "name": "state";
359
- "writable": true;
1809
+ "name": "modifyOrderParams";
1810
+ "type": {
1811
+ "defined": {
1812
+ "name": "modifyOrderParams";
1813
+ };
1814
+ };
360
1815
  }
361
1816
  ];
362
- "args": [];
363
1817
  },
364
1818
  {
365
- "name": "deposit";
1819
+ "name": "placeAndTakePerpOrder";
366
1820
  "discriminator": [
367
- 242,
368
- 35,
369
- 198,
370
- 137,
371
- 82,
372
- 225,
373
- 242,
374
- 182
1821
+ 213,
1822
+ 51,
1823
+ 1,
1824
+ 187,
1825
+ 108,
1826
+ 220,
1827
+ 230,
1828
+ 224
375
1829
  ];
376
1830
  "accounts": [
377
1831
  {
@@ -464,45 +1918,36 @@ export type ExtDrift = {
464
1918
  {
465
1919
  "name": "userStats";
466
1920
  "writable": true;
467
- },
468
- {
469
- "name": "spotMarketVault";
470
- "writable": true;
471
- },
472
- {
473
- "name": "userTokenAccount";
474
- "writable": true;
475
- },
476
- {
477
- "name": "tokenProgram";
478
1921
  }
479
1922
  ];
480
1923
  "args": [
481
1924
  {
482
- "name": "marketIndex";
483
- "type": "u16";
484
- },
485
- {
486
- "name": "amount";
487
- "type": "u64";
1925
+ "name": "params";
1926
+ "type": {
1927
+ "defined": {
1928
+ "name": "orderParams";
1929
+ };
1930
+ };
488
1931
  },
489
1932
  {
490
- "name": "reduceOnly";
491
- "type": "bool";
1933
+ "name": "successCondition";
1934
+ "type": {
1935
+ "option": "u32";
1936
+ };
492
1937
  }
493
1938
  ];
494
1939
  },
495
1940
  {
496
- "name": "initializeUser";
1941
+ "name": "placeOrders";
497
1942
  "discriminator": [
498
- 111,
499
- 17,
500
- 185,
501
- 250,
502
1943
  60,
503
- 122,
504
- 38,
505
- 254
1944
+ 63,
1945
+ 50,
1946
+ 123,
1947
+ 12,
1948
+ 197,
1949
+ 60,
1950
+ 190
506
1951
  ];
507
1952
  "accounts": [
508
1953
  {
@@ -582,53 +2027,41 @@ export type ExtDrift = {
582
2027
  "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
583
2028
  },
584
2029
  {
585
- "name": "user";
586
- "writable": true;
587
- },
588
- {
589
- "name": "userStats";
590
- "writable": true;
2030
+ "name": "systemProgram";
2031
+ "address": "11111111111111111111111111111111";
591
2032
  },
592
2033
  {
593
2034
  "name": "state";
594
- "writable": true;
595
- },
596
- {
597
- "name": "rent";
598
- "address": "SysvarRent111111111111111111111111111111111";
599
2035
  },
600
2036
  {
601
- "name": "systemProgram";
602
- "address": "11111111111111111111111111111111";
2037
+ "name": "user";
2038
+ "writable": true;
603
2039
  }
604
2040
  ];
605
2041
  "args": [
606
2042
  {
607
- "name": "subAccountId";
608
- "type": "u16";
609
- },
610
- {
611
- "name": "name";
2043
+ "name": "params";
612
2044
  "type": {
613
- "array": [
614
- "u8",
615
- 32
616
- ];
2045
+ "vec": {
2046
+ "defined": {
2047
+ "name": "orderParams";
2048
+ };
2049
+ };
617
2050
  };
618
2051
  }
619
2052
  ];
620
2053
  },
621
2054
  {
622
- "name": "initializeUserStats";
2055
+ "name": "placePerpOrder";
623
2056
  "discriminator": [
624
- 254,
625
- 243,
626
- 72,
627
- 98,
628
- 251,
629
- 130,
630
- 168,
631
- 213
2057
+ 69,
2058
+ 161,
2059
+ 93,
2060
+ 202,
2061
+ 120,
2062
+ 126,
2063
+ 76,
2064
+ 185
632
2065
  ];
633
2066
  "accounts": [
634
2067
  {
@@ -708,35 +2141,39 @@ export type ExtDrift = {
708
2141
  "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
709
2142
  },
710
2143
  {
711
- "name": "userStats";
712
- "writable": true;
2144
+ "name": "systemProgram";
2145
+ "address": "11111111111111111111111111111111";
713
2146
  },
714
2147
  {
715
2148
  "name": "state";
716
- "writable": true;
717
2149
  },
718
2150
  {
719
- "name": "rent";
720
- "address": "SysvarRent111111111111111111111111111111111";
721
- },
2151
+ "name": "user";
2152
+ "writable": true;
2153
+ }
2154
+ ];
2155
+ "args": [
722
2156
  {
723
- "name": "systemProgram";
724
- "address": "11111111111111111111111111111111";
2157
+ "name": "params";
2158
+ "type": {
2159
+ "defined": {
2160
+ "name": "orderParams";
2161
+ };
2162
+ };
725
2163
  }
726
2164
  ];
727
- "args": [];
728
2165
  },
729
2166
  {
730
- "name": "modifyOrder";
2167
+ "name": "placeSpotOrder";
731
2168
  "discriminator": [
732
- 47,
733
- 124,
734
- 117,
735
- 255,
736
- 201,
737
- 197,
738
- 130,
739
- 94
2169
+ 45,
2170
+ 79,
2171
+ 81,
2172
+ 160,
2173
+ 248,
2174
+ 90,
2175
+ 91,
2176
+ 220
740
2177
  ];
741
2178
  "accounts": [
742
2179
  {
@@ -829,32 +2266,26 @@ export type ExtDrift = {
829
2266
  ];
830
2267
  "args": [
831
2268
  {
832
- "name": "orderId";
833
- "type": {
834
- "option": "u32";
835
- };
836
- },
837
- {
838
- "name": "modifyOrderParams";
2269
+ "name": "params";
839
2270
  "type": {
840
2271
  "defined": {
841
- "name": "modifyOrderParams";
2272
+ "name": "orderParams";
842
2273
  };
843
2274
  };
844
2275
  }
845
2276
  ];
846
2277
  },
847
2278
  {
848
- "name": "placeOrders";
2279
+ "name": "reclaimRent";
849
2280
  "discriminator": [
850
- 60,
851
- 63,
852
- 50,
853
- 123,
854
- 12,
2281
+ 218,
2282
+ 200,
2283
+ 19,
855
2284
  197,
856
- 60,
857
- 190
2285
+ 227,
2286
+ 89,
2287
+ 192,
2288
+ 22
858
2289
  ];
859
2290
  "accounts": [
860
2291
  {
@@ -938,37 +2369,34 @@ export type ExtDrift = {
938
2369
  "address": "11111111111111111111111111111111";
939
2370
  },
940
2371
  {
941
- "name": "state";
2372
+ "name": "user";
2373
+ "writable": true;
942
2374
  },
943
2375
  {
944
- "name": "user";
2376
+ "name": "userStats";
945
2377
  "writable": true;
946
- }
947
- ];
948
- "args": [
2378
+ },
949
2379
  {
950
- "name": "params";
951
- "type": {
952
- "vec": {
953
- "defined": {
954
- "name": "orderParams";
955
- };
956
- };
957
- };
2380
+ "name": "state";
2381
+ },
2382
+ {
2383
+ "name": "rent";
2384
+ "address": "SysvarRent111111111111111111111111111111111";
958
2385
  }
959
2386
  ];
2387
+ "args": [];
960
2388
  },
961
2389
  {
962
- "name": "reclaimRent";
2390
+ "name": "revertFill";
963
2391
  "discriminator": [
964
- 218,
965
- 200,
966
- 19,
967
- 197,
968
- 227,
969
- 89,
970
- 192,
971
- 22
2392
+ 236,
2393
+ 238,
2394
+ 176,
2395
+ 69,
2396
+ 239,
2397
+ 10,
2398
+ 181,
2399
+ 193
972
2400
  ];
973
2401
  "accounts": [
974
2402
  {
@@ -1052,19 +2480,15 @@ export type ExtDrift = {
1052
2480
  "address": "11111111111111111111111111111111";
1053
2481
  },
1054
2482
  {
1055
- "name": "user";
1056
- "writable": true;
2483
+ "name": "state";
1057
2484
  },
1058
2485
  {
1059
- "name": "userStats";
2486
+ "name": "filler";
1060
2487
  "writable": true;
1061
2488
  },
1062
2489
  {
1063
- "name": "state";
1064
- },
1065
- {
1066
- "name": "rent";
1067
- "address": "SysvarRent111111111111111111111111111111111";
2490
+ "name": "fillerStats";
2491
+ "writable": true;
1068
2492
  }
1069
2493
  ];
1070
2494
  "args": [];
@@ -2577,6 +4001,28 @@ export type ExtDrift = {
2577
4001
  ];
2578
4002
  }
2579
4003
  ];
4004
+ "errors": [
4005
+ {
4006
+ "code": 6000;
4007
+ "name": "unsupportedOrderType";
4008
+ "msg": "Unsupported order type";
4009
+ },
4010
+ {
4011
+ "code": 6001;
4012
+ "name": "orderPriceExceedsTolerance";
4013
+ "msg": "Order price exceeds tolerance from oracle price";
4014
+ },
4015
+ {
4016
+ "code": 6002;
4017
+ "name": "marketNotAllowed";
4018
+ "msg": "Market not allowed by policy";
4019
+ },
4020
+ {
4021
+ "code": 6003;
4022
+ "name": "orderNotFound";
4023
+ "msg": "Order not found";
4024
+ }
4025
+ ];
2580
4026
  "types": [
2581
4027
  {
2582
4028
  "name": "accountType";
@@ -2714,7 +4160,7 @@ export type ExtDrift = {
2714
4160
  },
2715
4161
  {
2716
4162
  "name": "orderPriceToleranceBps";
2717
- "type": "u16";
4163
+ "type": "i16";
2718
4164
  }
2719
4165
  ];
2720
4166
  };
@@ -3741,6 +5187,26 @@ export type ExtDrift = {
3741
5187
  ];
3742
5188
  };
3743
5189
  },
5190
+ {
5191
+ "name": "spotFulfillmentType";
5192
+ "type": {
5193
+ "kind": "enum";
5194
+ "variants": [
5195
+ {
5196
+ "name": "serumV3";
5197
+ },
5198
+ {
5199
+ "name": "match";
5200
+ },
5201
+ {
5202
+ "name": "phoenixV1";
5203
+ },
5204
+ {
5205
+ "name": "openbookV2";
5206
+ }
5207
+ ];
5208
+ };
5209
+ },
3744
5210
  {
3745
5211
  "name": "stateAccount";
3746
5212
  "type": {
@@ -3955,6 +5421,11 @@ export type ExtDrift = {
3955
5421
  "type": "u64";
3956
5422
  "value": "1";
3957
5423
  },
5424
+ {
5425
+ "name": "protoDriftProtocolPermLiquidate";
5426
+ "type": "u64";
5427
+ "value": "2048";
5428
+ },
3958
5429
  {
3959
5430
  "name": "protoDriftProtocolPermPerpMarkets";
3960
5431
  "type": "u64";