@bench.games/opportunity-markets 0.1.24 → 0.1.25
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.
- package/dist/browser/index.js +993 -961
- package/dist/index.cjs +1603 -1576
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -1
- package/dist/index.d.ts +21 -1
- package/dist/index.js +993 -961
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -186,7 +186,7 @@ async function fetchAllMaybeCentralState(rpc, addresses, config) {
|
|
|
186
186
|
import {
|
|
187
187
|
assertAccountExists as assertAccountExists3,
|
|
188
188
|
assertAccountsExist as assertAccountsExist3,
|
|
189
|
-
combineCodec as
|
|
189
|
+
combineCodec as combineCodec57,
|
|
190
190
|
decodeAccount as decodeAccount3,
|
|
191
191
|
fetchEncodedAccount as fetchEncodedAccount3,
|
|
192
192
|
fetchEncodedAccounts as fetchEncodedAccounts3,
|
|
@@ -194,8 +194,8 @@ import {
|
|
|
194
194
|
fixEncoderSize as fixEncoderSize3,
|
|
195
195
|
getBytesDecoder as getBytesDecoder3,
|
|
196
196
|
getBytesEncoder as getBytesEncoder3,
|
|
197
|
-
getStructDecoder as
|
|
198
|
-
getStructEncoder as
|
|
197
|
+
getStructDecoder as getStructDecoder51,
|
|
198
|
+
getStructEncoder as getStructEncoder51,
|
|
199
199
|
getU8Decoder as getU8Decoder21,
|
|
200
200
|
getU8Encoder as getU8Encoder21,
|
|
201
201
|
transformEncoder as transformEncoder3
|
|
@@ -788,155 +788,184 @@ function getEncryptedTokensUnwrappedEventCodec() {
|
|
|
788
788
|
);
|
|
789
789
|
}
|
|
790
790
|
|
|
791
|
-
// src/generated/types/
|
|
791
|
+
// src/generated/types/encryptedTokensWrappedError.ts
|
|
792
792
|
import {
|
|
793
793
|
combineCodec as combineCodec16,
|
|
794
794
|
getAddressDecoder as getAddressDecoder5,
|
|
795
795
|
getAddressEncoder as getAddressEncoder5,
|
|
796
|
-
getArrayDecoder as getArrayDecoder7,
|
|
797
|
-
getArrayEncoder as getArrayEncoder7,
|
|
798
796
|
getI64Decoder as getI64Decoder4,
|
|
799
797
|
getI64Encoder as getI64Encoder4,
|
|
800
798
|
getStructDecoder as getStructDecoder15,
|
|
801
|
-
getStructEncoder as getStructEncoder15
|
|
802
|
-
getU128Decoder as getU128Decoder5,
|
|
803
|
-
getU128Encoder as getU128Encoder5,
|
|
804
|
-
getU64Decoder as getU64Decoder3,
|
|
805
|
-
getU64Encoder as getU64Encoder3,
|
|
806
|
-
getU8Decoder as getU8Decoder8,
|
|
807
|
-
getU8Encoder as getU8Encoder8
|
|
799
|
+
getStructEncoder as getStructEncoder15
|
|
808
800
|
} from "@solana/kit";
|
|
809
|
-
function
|
|
801
|
+
function getEncryptedTokensWrappedErrorEncoder() {
|
|
810
802
|
return getStructEncoder15([
|
|
811
|
-
["encryptedTokenAccount", getAddressEncoder5()],
|
|
812
803
|
["user", getAddressEncoder5()],
|
|
813
|
-
["depositAmount", getU64Encoder3()],
|
|
814
|
-
["encryptedNewBalance", getArrayEncoder7(getU8Encoder8(), { size: 32 })],
|
|
815
|
-
["nonce", getU128Encoder5()],
|
|
816
804
|
["timestamp", getI64Encoder4()]
|
|
817
805
|
]);
|
|
818
806
|
}
|
|
819
|
-
function
|
|
807
|
+
function getEncryptedTokensWrappedErrorDecoder() {
|
|
820
808
|
return getStructDecoder15([
|
|
821
|
-
["encryptedTokenAccount", getAddressDecoder5()],
|
|
822
809
|
["user", getAddressDecoder5()],
|
|
823
|
-
["depositAmount", getU64Decoder3()],
|
|
824
|
-
["encryptedNewBalance", getArrayDecoder7(getU8Decoder8(), { size: 32 })],
|
|
825
|
-
["nonce", getU128Decoder5()],
|
|
826
810
|
["timestamp", getI64Decoder4()]
|
|
827
811
|
]);
|
|
828
812
|
}
|
|
829
|
-
function
|
|
813
|
+
function getEncryptedTokensWrappedErrorCodec() {
|
|
830
814
|
return combineCodec16(
|
|
831
|
-
|
|
832
|
-
|
|
815
|
+
getEncryptedTokensWrappedErrorEncoder(),
|
|
816
|
+
getEncryptedTokensWrappedErrorDecoder()
|
|
833
817
|
);
|
|
834
818
|
}
|
|
835
819
|
|
|
836
|
-
// src/generated/types/
|
|
820
|
+
// src/generated/types/encryptedTokensWrappedEvent.ts
|
|
837
821
|
import {
|
|
838
822
|
combineCodec as combineCodec17,
|
|
839
823
|
getAddressDecoder as getAddressDecoder6,
|
|
840
824
|
getAddressEncoder as getAddressEncoder6,
|
|
825
|
+
getArrayDecoder as getArrayDecoder7,
|
|
826
|
+
getArrayEncoder as getArrayEncoder7,
|
|
841
827
|
getI64Decoder as getI64Decoder5,
|
|
842
828
|
getI64Encoder as getI64Encoder5,
|
|
843
829
|
getStructDecoder as getStructDecoder16,
|
|
844
|
-
getStructEncoder as getStructEncoder16
|
|
830
|
+
getStructEncoder as getStructEncoder16,
|
|
831
|
+
getU128Decoder as getU128Decoder5,
|
|
832
|
+
getU128Encoder as getU128Encoder5,
|
|
833
|
+
getU64Decoder as getU64Decoder3,
|
|
834
|
+
getU64Encoder as getU64Encoder3,
|
|
835
|
+
getU8Decoder as getU8Decoder8,
|
|
836
|
+
getU8Encoder as getU8Encoder8
|
|
845
837
|
} from "@solana/kit";
|
|
846
|
-
function
|
|
838
|
+
function getEncryptedTokensWrappedEventEncoder() {
|
|
847
839
|
return getStructEncoder16([
|
|
840
|
+
["encryptedTokenAccount", getAddressEncoder6()],
|
|
848
841
|
["user", getAddressEncoder6()],
|
|
842
|
+
["depositAmount", getU64Encoder3()],
|
|
843
|
+
["encryptedNewBalance", getArrayEncoder7(getU8Encoder8(), { size: 32 })],
|
|
844
|
+
["nonce", getU128Encoder5()],
|
|
849
845
|
["timestamp", getI64Encoder5()]
|
|
850
846
|
]);
|
|
851
847
|
}
|
|
852
|
-
function
|
|
848
|
+
function getEncryptedTokensWrappedEventDecoder() {
|
|
853
849
|
return getStructDecoder16([
|
|
850
|
+
["encryptedTokenAccount", getAddressDecoder6()],
|
|
854
851
|
["user", getAddressDecoder6()],
|
|
852
|
+
["depositAmount", getU64Decoder3()],
|
|
853
|
+
["encryptedNewBalance", getArrayDecoder7(getU8Decoder8(), { size: 32 })],
|
|
854
|
+
["nonce", getU128Decoder5()],
|
|
855
855
|
["timestamp", getI64Decoder5()]
|
|
856
856
|
]);
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function getEncryptedTokensWrappedEventCodec() {
|
|
859
859
|
return combineCodec17(
|
|
860
|
-
|
|
861
|
-
|
|
860
|
+
getEncryptedTokensWrappedEventEncoder(),
|
|
861
|
+
getEncryptedTokensWrappedEventDecoder()
|
|
862
862
|
);
|
|
863
863
|
}
|
|
864
864
|
|
|
865
|
-
// src/generated/types/
|
|
865
|
+
// src/generated/types/ephemeralAccountClosedError.ts
|
|
866
866
|
import {
|
|
867
867
|
combineCodec as combineCodec18,
|
|
868
868
|
getAddressDecoder as getAddressDecoder7,
|
|
869
869
|
getAddressEncoder as getAddressEncoder7,
|
|
870
|
-
getArrayDecoder as getArrayDecoder8,
|
|
871
|
-
getArrayEncoder as getArrayEncoder8,
|
|
872
870
|
getI64Decoder as getI64Decoder6,
|
|
873
871
|
getI64Encoder as getI64Encoder6,
|
|
874
872
|
getStructDecoder as getStructDecoder17,
|
|
875
|
-
getStructEncoder as getStructEncoder17
|
|
876
|
-
getU128Decoder as getU128Decoder6,
|
|
877
|
-
getU128Encoder as getU128Encoder6,
|
|
878
|
-
getU8Decoder as getU8Decoder9,
|
|
879
|
-
getU8Encoder as getU8Encoder9
|
|
873
|
+
getStructEncoder as getStructEncoder17
|
|
880
874
|
} from "@solana/kit";
|
|
881
|
-
function
|
|
875
|
+
function getEphemeralAccountClosedErrorEncoder() {
|
|
882
876
|
return getStructEncoder17([
|
|
883
877
|
["user", getAddressEncoder7()],
|
|
884
|
-
["encryptedTokenAccount", getAddressEncoder7()],
|
|
885
|
-
["encryptedNewBalance", getArrayEncoder8(getU8Encoder9(), { size: 32 })],
|
|
886
|
-
["nonce", getU128Encoder6()],
|
|
887
878
|
["timestamp", getI64Encoder6()]
|
|
888
879
|
]);
|
|
889
880
|
}
|
|
890
|
-
function
|
|
881
|
+
function getEphemeralAccountClosedErrorDecoder() {
|
|
891
882
|
return getStructDecoder17([
|
|
892
883
|
["user", getAddressDecoder7()],
|
|
893
|
-
["encryptedTokenAccount", getAddressDecoder7()],
|
|
894
|
-
["encryptedNewBalance", getArrayDecoder8(getU8Decoder9(), { size: 32 })],
|
|
895
|
-
["nonce", getU128Decoder6()],
|
|
896
884
|
["timestamp", getI64Decoder6()]
|
|
897
885
|
]);
|
|
898
886
|
}
|
|
899
|
-
function
|
|
887
|
+
function getEphemeralAccountClosedErrorCodec() {
|
|
900
888
|
return combineCodec18(
|
|
901
|
-
|
|
902
|
-
|
|
889
|
+
getEphemeralAccountClosedErrorEncoder(),
|
|
890
|
+
getEphemeralAccountClosedErrorDecoder()
|
|
903
891
|
);
|
|
904
892
|
}
|
|
905
893
|
|
|
906
|
-
// src/generated/types/
|
|
894
|
+
// src/generated/types/ephemeralAccountClosedEvent.ts
|
|
907
895
|
import {
|
|
908
896
|
combineCodec as combineCodec19,
|
|
909
897
|
getAddressDecoder as getAddressDecoder8,
|
|
910
898
|
getAddressEncoder as getAddressEncoder8,
|
|
899
|
+
getArrayDecoder as getArrayDecoder8,
|
|
900
|
+
getArrayEncoder as getArrayEncoder8,
|
|
911
901
|
getI64Decoder as getI64Decoder7,
|
|
912
902
|
getI64Encoder as getI64Encoder7,
|
|
913
903
|
getStructDecoder as getStructDecoder18,
|
|
914
904
|
getStructEncoder as getStructEncoder18,
|
|
915
|
-
|
|
916
|
-
|
|
905
|
+
getU128Decoder as getU128Decoder6,
|
|
906
|
+
getU128Encoder as getU128Encoder6,
|
|
907
|
+
getU8Decoder as getU8Decoder9,
|
|
908
|
+
getU8Encoder as getU8Encoder9
|
|
917
909
|
} from "@solana/kit";
|
|
918
|
-
function
|
|
910
|
+
function getEphemeralAccountClosedEventEncoder() {
|
|
919
911
|
return getStructEncoder18([
|
|
912
|
+
["user", getAddressEncoder8()],
|
|
920
913
|
["encryptedTokenAccount", getAddressEncoder8()],
|
|
921
|
-
["
|
|
922
|
-
["
|
|
923
|
-
["index", getU64Encoder4()],
|
|
924
|
-
["rentPayer", getAddressEncoder8()],
|
|
914
|
+
["encryptedNewBalance", getArrayEncoder8(getU8Encoder9(), { size: 32 })],
|
|
915
|
+
["nonce", getU128Encoder6()],
|
|
925
916
|
["timestamp", getI64Encoder7()]
|
|
926
917
|
]);
|
|
927
918
|
}
|
|
928
|
-
function
|
|
919
|
+
function getEphemeralAccountClosedEventDecoder() {
|
|
929
920
|
return getStructDecoder18([
|
|
921
|
+
["user", getAddressDecoder8()],
|
|
930
922
|
["encryptedTokenAccount", getAddressDecoder8()],
|
|
931
|
-
["
|
|
932
|
-
["
|
|
933
|
-
["index", getU64Decoder4()],
|
|
934
|
-
["rentPayer", getAddressDecoder8()],
|
|
923
|
+
["encryptedNewBalance", getArrayDecoder8(getU8Decoder9(), { size: 32 })],
|
|
924
|
+
["nonce", getU128Decoder6()],
|
|
935
925
|
["timestamp", getI64Decoder7()]
|
|
936
926
|
]);
|
|
937
927
|
}
|
|
938
|
-
function
|
|
928
|
+
function getEphemeralAccountClosedEventCodec() {
|
|
939
929
|
return combineCodec19(
|
|
930
|
+
getEphemeralAccountClosedEventEncoder(),
|
|
931
|
+
getEphemeralAccountClosedEventDecoder()
|
|
932
|
+
);
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
// src/generated/types/ephemeralEncryptedTokenAccountInitializedEvent.ts
|
|
936
|
+
import {
|
|
937
|
+
combineCodec as combineCodec20,
|
|
938
|
+
getAddressDecoder as getAddressDecoder9,
|
|
939
|
+
getAddressEncoder as getAddressEncoder9,
|
|
940
|
+
getI64Decoder as getI64Decoder8,
|
|
941
|
+
getI64Encoder as getI64Encoder8,
|
|
942
|
+
getStructDecoder as getStructDecoder19,
|
|
943
|
+
getStructEncoder as getStructEncoder19,
|
|
944
|
+
getU64Decoder as getU64Decoder4,
|
|
945
|
+
getU64Encoder as getU64Encoder4
|
|
946
|
+
} from "@solana/kit";
|
|
947
|
+
function getEphemeralEncryptedTokenAccountInitializedEventEncoder() {
|
|
948
|
+
return getStructEncoder19([
|
|
949
|
+
["encryptedTokenAccount", getAddressEncoder9()],
|
|
950
|
+
["owner", getAddressEncoder9()],
|
|
951
|
+
["tokenMint", getAddressEncoder9()],
|
|
952
|
+
["index", getU64Encoder4()],
|
|
953
|
+
["rentPayer", getAddressEncoder9()],
|
|
954
|
+
["timestamp", getI64Encoder8()]
|
|
955
|
+
]);
|
|
956
|
+
}
|
|
957
|
+
function getEphemeralEncryptedTokenAccountInitializedEventDecoder() {
|
|
958
|
+
return getStructDecoder19([
|
|
959
|
+
["encryptedTokenAccount", getAddressDecoder9()],
|
|
960
|
+
["owner", getAddressDecoder9()],
|
|
961
|
+
["tokenMint", getAddressDecoder9()],
|
|
962
|
+
["index", getU64Decoder4()],
|
|
963
|
+
["rentPayer", getAddressDecoder9()],
|
|
964
|
+
["timestamp", getI64Decoder8()]
|
|
965
|
+
]);
|
|
966
|
+
}
|
|
967
|
+
function getEphemeralEncryptedTokenAccountInitializedEventCodec() {
|
|
968
|
+
return combineCodec20(
|
|
940
969
|
getEphemeralEncryptedTokenAccountInitializedEventEncoder(),
|
|
941
970
|
getEphemeralEncryptedTokenAccountInitializedEventDecoder()
|
|
942
971
|
);
|
|
@@ -944,7 +973,7 @@ function getEphemeralEncryptedTokenAccountInitializedEventCodec() {
|
|
|
944
973
|
|
|
945
974
|
// src/generated/types/epoch.ts
|
|
946
975
|
import {
|
|
947
|
-
combineCodec as
|
|
976
|
+
combineCodec as combineCodec21,
|
|
948
977
|
getTupleDecoder as getTupleDecoder3,
|
|
949
978
|
getTupleEncoder as getTupleEncoder3,
|
|
950
979
|
getU64Decoder as getU64Decoder5,
|
|
@@ -957,41 +986,41 @@ function getEpochDecoder() {
|
|
|
957
986
|
return getTupleDecoder3([getU64Decoder5()]);
|
|
958
987
|
}
|
|
959
988
|
function getEpochCodec() {
|
|
960
|
-
return
|
|
989
|
+
return combineCodec21(getEpochEncoder(), getEpochDecoder());
|
|
961
990
|
}
|
|
962
991
|
|
|
963
992
|
// src/generated/types/feesClaimedEvent.ts
|
|
964
993
|
import {
|
|
965
|
-
combineCodec as
|
|
966
|
-
getAddressDecoder as
|
|
967
|
-
getAddressEncoder as
|
|
968
|
-
getI64Decoder as
|
|
969
|
-
getI64Encoder as
|
|
970
|
-
getStructDecoder as
|
|
971
|
-
getStructEncoder as
|
|
994
|
+
combineCodec as combineCodec22,
|
|
995
|
+
getAddressDecoder as getAddressDecoder10,
|
|
996
|
+
getAddressEncoder as getAddressEncoder10,
|
|
997
|
+
getI64Decoder as getI64Decoder9,
|
|
998
|
+
getI64Encoder as getI64Encoder9,
|
|
999
|
+
getStructDecoder as getStructDecoder20,
|
|
1000
|
+
getStructEncoder as getStructEncoder20,
|
|
972
1001
|
getU64Decoder as getU64Decoder6,
|
|
973
1002
|
getU64Encoder as getU64Encoder6
|
|
974
1003
|
} from "@solana/kit";
|
|
975
1004
|
function getFeesClaimedEventEncoder() {
|
|
976
|
-
return
|
|
977
|
-
["tokenVault",
|
|
978
|
-
["mint",
|
|
979
|
-
["feeRecipient",
|
|
1005
|
+
return getStructEncoder20([
|
|
1006
|
+
["tokenVault", getAddressEncoder10()],
|
|
1007
|
+
["mint", getAddressEncoder10()],
|
|
1008
|
+
["feeRecipient", getAddressEncoder10()],
|
|
980
1009
|
["amount", getU64Encoder6()],
|
|
981
|
-
["timestamp",
|
|
1010
|
+
["timestamp", getI64Encoder9()]
|
|
982
1011
|
]);
|
|
983
1012
|
}
|
|
984
1013
|
function getFeesClaimedEventDecoder() {
|
|
985
|
-
return
|
|
986
|
-
["tokenVault",
|
|
987
|
-
["mint",
|
|
988
|
-
["feeRecipient",
|
|
1014
|
+
return getStructDecoder20([
|
|
1015
|
+
["tokenVault", getAddressDecoder10()],
|
|
1016
|
+
["mint", getAddressDecoder10()],
|
|
1017
|
+
["feeRecipient", getAddressDecoder10()],
|
|
989
1018
|
["amount", getU64Decoder6()],
|
|
990
|
-
["timestamp",
|
|
1019
|
+
["timestamp", getI64Decoder9()]
|
|
991
1020
|
]);
|
|
992
1021
|
}
|
|
993
1022
|
function getFeesClaimedEventCodec() {
|
|
994
|
-
return
|
|
1023
|
+
return combineCodec22(
|
|
995
1024
|
getFeesClaimedEventEncoder(),
|
|
996
1025
|
getFeesClaimedEventDecoder()
|
|
997
1026
|
);
|
|
@@ -999,7 +1028,7 @@ function getFeesClaimedEventCodec() {
|
|
|
999
1028
|
|
|
1000
1029
|
// src/generated/types/localCircuitSource.ts
|
|
1001
1030
|
import {
|
|
1002
|
-
combineCodec as
|
|
1031
|
+
combineCodec as combineCodec23,
|
|
1003
1032
|
getEnumDecoder,
|
|
1004
1033
|
getEnumEncoder
|
|
1005
1034
|
} from "@solana/kit";
|
|
@@ -1016,7 +1045,7 @@ function getLocalCircuitSourceDecoder() {
|
|
|
1016
1045
|
return getEnumDecoder(LocalCircuitSource);
|
|
1017
1046
|
}
|
|
1018
1047
|
function getLocalCircuitSourceCodec() {
|
|
1019
|
-
return
|
|
1048
|
+
return combineCodec23(
|
|
1020
1049
|
getLocalCircuitSourceEncoder(),
|
|
1021
1050
|
getLocalCircuitSourceDecoder()
|
|
1022
1051
|
);
|
|
@@ -1024,54 +1053,54 @@ function getLocalCircuitSourceCodec() {
|
|
|
1024
1053
|
|
|
1025
1054
|
// src/generated/types/marketCreatedEvent.ts
|
|
1026
1055
|
import {
|
|
1027
|
-
combineCodec as
|
|
1028
|
-
getAddressDecoder as
|
|
1029
|
-
getAddressEncoder as
|
|
1056
|
+
combineCodec as combineCodec24,
|
|
1057
|
+
getAddressDecoder as getAddressDecoder11,
|
|
1058
|
+
getAddressEncoder as getAddressEncoder11,
|
|
1030
1059
|
getArrayDecoder as getArrayDecoder9,
|
|
1031
1060
|
getArrayEncoder as getArrayEncoder9,
|
|
1032
1061
|
getBooleanDecoder as getBooleanDecoder3,
|
|
1033
1062
|
getBooleanEncoder as getBooleanEncoder3,
|
|
1034
|
-
getI64Decoder as
|
|
1035
|
-
getI64Encoder as
|
|
1063
|
+
getI64Decoder as getI64Decoder10,
|
|
1064
|
+
getI64Encoder as getI64Encoder10,
|
|
1036
1065
|
getOptionDecoder,
|
|
1037
1066
|
getOptionEncoder,
|
|
1038
|
-
getStructDecoder as
|
|
1039
|
-
getStructEncoder as
|
|
1067
|
+
getStructDecoder as getStructDecoder21,
|
|
1068
|
+
getStructEncoder as getStructEncoder21,
|
|
1040
1069
|
getU64Decoder as getU64Decoder7,
|
|
1041
1070
|
getU64Encoder as getU64Encoder7,
|
|
1042
1071
|
getU8Decoder as getU8Decoder10,
|
|
1043
1072
|
getU8Encoder as getU8Encoder10
|
|
1044
1073
|
} from "@solana/kit";
|
|
1045
1074
|
function getMarketCreatedEventEncoder() {
|
|
1046
|
-
return
|
|
1047
|
-
["market",
|
|
1048
|
-
["creator",
|
|
1075
|
+
return getStructEncoder21([
|
|
1076
|
+
["market", getAddressEncoder11()],
|
|
1077
|
+
["creator", getAddressEncoder11()],
|
|
1049
1078
|
["index", getU64Encoder7()],
|
|
1050
1079
|
["timeToStake", getU64Encoder7()],
|
|
1051
1080
|
["timeToReveal", getU64Encoder7()],
|
|
1052
|
-
["marketAuthority", getOptionEncoder(
|
|
1081
|
+
["marketAuthority", getOptionEncoder(getAddressEncoder11())],
|
|
1053
1082
|
["authorizedReaderPubkey", getArrayEncoder9(getU8Encoder10(), { size: 32 })],
|
|
1054
1083
|
["unstakeDelaySeconds", getU64Encoder7()],
|
|
1055
1084
|
["allowClosingEarly", getBooleanEncoder3()],
|
|
1056
|
-
["timestamp",
|
|
1085
|
+
["timestamp", getI64Encoder10()]
|
|
1057
1086
|
]);
|
|
1058
1087
|
}
|
|
1059
1088
|
function getMarketCreatedEventDecoder() {
|
|
1060
|
-
return
|
|
1061
|
-
["market",
|
|
1062
|
-
["creator",
|
|
1089
|
+
return getStructDecoder21([
|
|
1090
|
+
["market", getAddressDecoder11()],
|
|
1091
|
+
["creator", getAddressDecoder11()],
|
|
1063
1092
|
["index", getU64Decoder7()],
|
|
1064
1093
|
["timeToStake", getU64Decoder7()],
|
|
1065
1094
|
["timeToReveal", getU64Decoder7()],
|
|
1066
|
-
["marketAuthority", getOptionDecoder(
|
|
1095
|
+
["marketAuthority", getOptionDecoder(getAddressDecoder11())],
|
|
1067
1096
|
["authorizedReaderPubkey", getArrayDecoder9(getU8Decoder10(), { size: 32 })],
|
|
1068
1097
|
["unstakeDelaySeconds", getU64Decoder7()],
|
|
1069
1098
|
["allowClosingEarly", getBooleanDecoder3()],
|
|
1070
|
-
["timestamp",
|
|
1099
|
+
["timestamp", getI64Decoder10()]
|
|
1071
1100
|
]);
|
|
1072
1101
|
}
|
|
1073
1102
|
function getMarketCreatedEventCodec() {
|
|
1074
|
-
return
|
|
1103
|
+
return combineCodec24(
|
|
1075
1104
|
getMarketCreatedEventEncoder(),
|
|
1076
1105
|
getMarketCreatedEventDecoder()
|
|
1077
1106
|
);
|
|
@@ -1079,34 +1108,34 @@ function getMarketCreatedEventCodec() {
|
|
|
1079
1108
|
|
|
1080
1109
|
// src/generated/types/marketOpenedEvent.ts
|
|
1081
1110
|
import {
|
|
1082
|
-
combineCodec as
|
|
1083
|
-
getAddressDecoder as
|
|
1084
|
-
getAddressEncoder as
|
|
1085
|
-
getI64Decoder as
|
|
1086
|
-
getI64Encoder as
|
|
1087
|
-
getStructDecoder as
|
|
1088
|
-
getStructEncoder as
|
|
1111
|
+
combineCodec as combineCodec25,
|
|
1112
|
+
getAddressDecoder as getAddressDecoder12,
|
|
1113
|
+
getAddressEncoder as getAddressEncoder12,
|
|
1114
|
+
getI64Decoder as getI64Decoder11,
|
|
1115
|
+
getI64Encoder as getI64Encoder11,
|
|
1116
|
+
getStructDecoder as getStructDecoder22,
|
|
1117
|
+
getStructEncoder as getStructEncoder22,
|
|
1089
1118
|
getU64Decoder as getU64Decoder8,
|
|
1090
1119
|
getU64Encoder as getU64Encoder8
|
|
1091
1120
|
} from "@solana/kit";
|
|
1092
1121
|
function getMarketOpenedEventEncoder() {
|
|
1093
|
-
return
|
|
1094
|
-
["market",
|
|
1095
|
-
["creator",
|
|
1122
|
+
return getStructEncoder22([
|
|
1123
|
+
["market", getAddressEncoder12()],
|
|
1124
|
+
["creator", getAddressEncoder12()],
|
|
1096
1125
|
["openTimestamp", getU64Encoder8()],
|
|
1097
|
-
["timestamp",
|
|
1126
|
+
["timestamp", getI64Encoder11()]
|
|
1098
1127
|
]);
|
|
1099
1128
|
}
|
|
1100
1129
|
function getMarketOpenedEventDecoder() {
|
|
1101
|
-
return
|
|
1102
|
-
["market",
|
|
1103
|
-
["creator",
|
|
1130
|
+
return getStructDecoder22([
|
|
1131
|
+
["market", getAddressDecoder12()],
|
|
1132
|
+
["creator", getAddressDecoder12()],
|
|
1104
1133
|
["openTimestamp", getU64Decoder8()],
|
|
1105
|
-
["timestamp",
|
|
1134
|
+
["timestamp", getI64Decoder11()]
|
|
1106
1135
|
]);
|
|
1107
1136
|
}
|
|
1108
1137
|
function getMarketOpenedEventCodec() {
|
|
1109
|
-
return
|
|
1138
|
+
return combineCodec25(
|
|
1110
1139
|
getMarketOpenedEventEncoder(),
|
|
1111
1140
|
getMarketOpenedEventDecoder()
|
|
1112
1141
|
);
|
|
@@ -1116,15 +1145,15 @@ function getMarketOpenedEventCodec() {
|
|
|
1116
1145
|
import {
|
|
1117
1146
|
addDecoderSizePrefix,
|
|
1118
1147
|
addEncoderSizePrefix,
|
|
1119
|
-
combineCodec as
|
|
1120
|
-
getAddressDecoder as
|
|
1121
|
-
getAddressEncoder as
|
|
1148
|
+
combineCodec as combineCodec26,
|
|
1149
|
+
getAddressDecoder as getAddressDecoder13,
|
|
1150
|
+
getAddressEncoder as getAddressEncoder13,
|
|
1122
1151
|
getBooleanDecoder as getBooleanDecoder4,
|
|
1123
1152
|
getBooleanEncoder as getBooleanEncoder4,
|
|
1124
|
-
getI64Decoder as
|
|
1125
|
-
getI64Encoder as
|
|
1126
|
-
getStructDecoder as
|
|
1127
|
-
getStructEncoder as
|
|
1153
|
+
getI64Decoder as getI64Decoder12,
|
|
1154
|
+
getI64Encoder as getI64Encoder12,
|
|
1155
|
+
getStructDecoder as getStructDecoder23,
|
|
1156
|
+
getStructEncoder as getStructEncoder23,
|
|
1128
1157
|
getU16Decoder as getU16Decoder2,
|
|
1129
1158
|
getU16Encoder as getU16Encoder2,
|
|
1130
1159
|
getU32Decoder as getU32Decoder2,
|
|
@@ -1133,29 +1162,29 @@ import {
|
|
|
1133
1162
|
getUtf8Encoder
|
|
1134
1163
|
} from "@solana/kit";
|
|
1135
1164
|
function getMarketOptionCreatedEventEncoder() {
|
|
1136
|
-
return
|
|
1137
|
-
["option",
|
|
1138
|
-
["market",
|
|
1139
|
-
["creator",
|
|
1165
|
+
return getStructEncoder23([
|
|
1166
|
+
["option", getAddressEncoder13()],
|
|
1167
|
+
["market", getAddressEncoder13()],
|
|
1168
|
+
["creator", getAddressEncoder13()],
|
|
1140
1169
|
["byMarketCreator", getBooleanEncoder4()],
|
|
1141
1170
|
["index", getU16Encoder2()],
|
|
1142
1171
|
["name", addEncoderSizePrefix(getUtf8Encoder(), getU32Encoder2())],
|
|
1143
|
-
["timestamp",
|
|
1172
|
+
["timestamp", getI64Encoder12()]
|
|
1144
1173
|
]);
|
|
1145
1174
|
}
|
|
1146
1175
|
function getMarketOptionCreatedEventDecoder() {
|
|
1147
|
-
return
|
|
1148
|
-
["option",
|
|
1149
|
-
["market",
|
|
1150
|
-
["creator",
|
|
1176
|
+
return getStructDecoder23([
|
|
1177
|
+
["option", getAddressDecoder13()],
|
|
1178
|
+
["market", getAddressDecoder13()],
|
|
1179
|
+
["creator", getAddressDecoder13()],
|
|
1151
1180
|
["byMarketCreator", getBooleanDecoder4()],
|
|
1152
1181
|
["index", getU16Decoder2()],
|
|
1153
1182
|
["name", addDecoderSizePrefix(getUtf8Decoder(), getU32Decoder2())],
|
|
1154
|
-
["timestamp",
|
|
1183
|
+
["timestamp", getI64Decoder12()]
|
|
1155
1184
|
]);
|
|
1156
1185
|
}
|
|
1157
1186
|
function getMarketOptionCreatedEventCodec() {
|
|
1158
|
-
return
|
|
1187
|
+
return combineCodec26(
|
|
1159
1188
|
getMarketOptionCreatedEventEncoder(),
|
|
1160
1189
|
getMarketOptionCreatedEventDecoder()
|
|
1161
1190
|
);
|
|
@@ -1163,7 +1192,7 @@ function getMarketOptionCreatedEventCodec() {
|
|
|
1163
1192
|
|
|
1164
1193
|
// src/generated/types/mxeStatus.ts
|
|
1165
1194
|
import {
|
|
1166
|
-
combineCodec as
|
|
1195
|
+
combineCodec as combineCodec27,
|
|
1167
1196
|
getEnumDecoder as getEnumDecoder2,
|
|
1168
1197
|
getEnumEncoder as getEnumEncoder2
|
|
1169
1198
|
} from "@solana/kit";
|
|
@@ -1179,42 +1208,42 @@ function getMxeStatusDecoder() {
|
|
|
1179
1208
|
return getEnumDecoder2(MxeStatus);
|
|
1180
1209
|
}
|
|
1181
1210
|
function getMxeStatusCodec() {
|
|
1182
|
-
return
|
|
1211
|
+
return combineCodec27(getMxeStatusEncoder(), getMxeStatusDecoder());
|
|
1183
1212
|
}
|
|
1184
1213
|
|
|
1185
1214
|
// src/generated/types/nodeMetadata.ts
|
|
1186
1215
|
import {
|
|
1187
|
-
combineCodec as
|
|
1216
|
+
combineCodec as combineCodec28,
|
|
1188
1217
|
getArrayDecoder as getArrayDecoder10,
|
|
1189
1218
|
getArrayEncoder as getArrayEncoder10,
|
|
1190
|
-
getStructDecoder as
|
|
1191
|
-
getStructEncoder as
|
|
1219
|
+
getStructDecoder as getStructDecoder24,
|
|
1220
|
+
getStructEncoder as getStructEncoder24,
|
|
1192
1221
|
getU8Decoder as getU8Decoder11,
|
|
1193
1222
|
getU8Encoder as getU8Encoder11
|
|
1194
1223
|
} from "@solana/kit";
|
|
1195
1224
|
function getNodeMetadataEncoder() {
|
|
1196
|
-
return
|
|
1225
|
+
return getStructEncoder24([
|
|
1197
1226
|
["ip", getArrayEncoder10(getU8Encoder11(), { size: 4 })],
|
|
1198
1227
|
["peerId", getArrayEncoder10(getU8Encoder11(), { size: 32 })],
|
|
1199
1228
|
["location", getU8Encoder11()]
|
|
1200
1229
|
]);
|
|
1201
1230
|
}
|
|
1202
1231
|
function getNodeMetadataDecoder() {
|
|
1203
|
-
return
|
|
1232
|
+
return getStructDecoder24([
|
|
1204
1233
|
["ip", getArrayDecoder10(getU8Decoder11(), { size: 4 })],
|
|
1205
1234
|
["peerId", getArrayDecoder10(getU8Decoder11(), { size: 32 })],
|
|
1206
1235
|
["location", getU8Decoder11()]
|
|
1207
1236
|
]);
|
|
1208
1237
|
}
|
|
1209
1238
|
function getNodeMetadataCodec() {
|
|
1210
|
-
return
|
|
1239
|
+
return combineCodec28(getNodeMetadataEncoder(), getNodeMetadataDecoder());
|
|
1211
1240
|
}
|
|
1212
1241
|
|
|
1213
1242
|
// src/generated/types/nodeRef.ts
|
|
1214
1243
|
import {
|
|
1215
|
-
combineCodec as
|
|
1216
|
-
getStructDecoder as
|
|
1217
|
-
getStructEncoder as
|
|
1244
|
+
combineCodec as combineCodec29,
|
|
1245
|
+
getStructDecoder as getStructDecoder25,
|
|
1246
|
+
getStructEncoder as getStructEncoder25,
|
|
1218
1247
|
getU32Decoder as getU32Decoder3,
|
|
1219
1248
|
getU32Encoder as getU32Encoder3,
|
|
1220
1249
|
getU64Decoder as getU64Decoder9,
|
|
@@ -1223,32 +1252,32 @@ import {
|
|
|
1223
1252
|
getU8Encoder as getU8Encoder12
|
|
1224
1253
|
} from "@solana/kit";
|
|
1225
1254
|
function getNodeRefEncoder() {
|
|
1226
|
-
return
|
|
1255
|
+
return getStructEncoder25([
|
|
1227
1256
|
["offset", getU32Encoder3()],
|
|
1228
1257
|
["currentTotalRewards", getU64Encoder9()],
|
|
1229
1258
|
["vote", getU8Encoder12()]
|
|
1230
1259
|
]);
|
|
1231
1260
|
}
|
|
1232
1261
|
function getNodeRefDecoder() {
|
|
1233
|
-
return
|
|
1262
|
+
return getStructDecoder25([
|
|
1234
1263
|
["offset", getU32Decoder3()],
|
|
1235
1264
|
["currentTotalRewards", getU64Decoder9()],
|
|
1236
1265
|
["vote", getU8Decoder12()]
|
|
1237
1266
|
]);
|
|
1238
1267
|
}
|
|
1239
1268
|
function getNodeRefCodec() {
|
|
1240
|
-
return
|
|
1269
|
+
return combineCodec29(getNodeRefEncoder(), getNodeRefDecoder());
|
|
1241
1270
|
}
|
|
1242
1271
|
|
|
1243
1272
|
// src/generated/types/offChainCircuitSource.ts
|
|
1244
1273
|
import {
|
|
1245
1274
|
addDecoderSizePrefix as addDecoderSizePrefix2,
|
|
1246
1275
|
addEncoderSizePrefix as addEncoderSizePrefix2,
|
|
1247
|
-
combineCodec as
|
|
1276
|
+
combineCodec as combineCodec30,
|
|
1248
1277
|
getArrayDecoder as getArrayDecoder11,
|
|
1249
1278
|
getArrayEncoder as getArrayEncoder11,
|
|
1250
|
-
getStructDecoder as
|
|
1251
|
-
getStructEncoder as
|
|
1279
|
+
getStructDecoder as getStructDecoder26,
|
|
1280
|
+
getStructEncoder as getStructEncoder26,
|
|
1252
1281
|
getU32Decoder as getU32Decoder4,
|
|
1253
1282
|
getU32Encoder as getU32Encoder4,
|
|
1254
1283
|
getU8Decoder as getU8Decoder13,
|
|
@@ -1257,19 +1286,19 @@ import {
|
|
|
1257
1286
|
getUtf8Encoder as getUtf8Encoder2
|
|
1258
1287
|
} from "@solana/kit";
|
|
1259
1288
|
function getOffChainCircuitSourceEncoder() {
|
|
1260
|
-
return
|
|
1289
|
+
return getStructEncoder26([
|
|
1261
1290
|
["source", addEncoderSizePrefix2(getUtf8Encoder2(), getU32Encoder4())],
|
|
1262
1291
|
["hash", getArrayEncoder11(getU8Encoder13(), { size: 32 })]
|
|
1263
1292
|
]);
|
|
1264
1293
|
}
|
|
1265
1294
|
function getOffChainCircuitSourceDecoder() {
|
|
1266
|
-
return
|
|
1295
|
+
return getStructDecoder26([
|
|
1267
1296
|
["source", addDecoderSizePrefix2(getUtf8Decoder2(), getU32Decoder4())],
|
|
1268
1297
|
["hash", getArrayDecoder11(getU8Decoder13(), { size: 32 })]
|
|
1269
1298
|
]);
|
|
1270
1299
|
}
|
|
1271
1300
|
function getOffChainCircuitSourceCodec() {
|
|
1272
|
-
return
|
|
1301
|
+
return combineCodec30(
|
|
1273
1302
|
getOffChainCircuitSourceEncoder(),
|
|
1274
1303
|
getOffChainCircuitSourceDecoder()
|
|
1275
1304
|
);
|
|
@@ -1277,28 +1306,28 @@ function getOffChainCircuitSourceCodec() {
|
|
|
1277
1306
|
|
|
1278
1307
|
// src/generated/types/onChainCircuitSource.ts
|
|
1279
1308
|
import {
|
|
1280
|
-
combineCodec as
|
|
1281
|
-
getAddressDecoder as
|
|
1282
|
-
getAddressEncoder as
|
|
1309
|
+
combineCodec as combineCodec31,
|
|
1310
|
+
getAddressDecoder as getAddressDecoder14,
|
|
1311
|
+
getAddressEncoder as getAddressEncoder14,
|
|
1283
1312
|
getBooleanDecoder as getBooleanDecoder5,
|
|
1284
1313
|
getBooleanEncoder as getBooleanEncoder5,
|
|
1285
|
-
getStructDecoder as
|
|
1286
|
-
getStructEncoder as
|
|
1314
|
+
getStructDecoder as getStructDecoder27,
|
|
1315
|
+
getStructEncoder as getStructEncoder27
|
|
1287
1316
|
} from "@solana/kit";
|
|
1288
1317
|
function getOnChainCircuitSourceEncoder() {
|
|
1289
|
-
return
|
|
1318
|
+
return getStructEncoder27([
|
|
1290
1319
|
["isCompleted", getBooleanEncoder5()],
|
|
1291
|
-
["uploadAuth",
|
|
1320
|
+
["uploadAuth", getAddressEncoder14()]
|
|
1292
1321
|
]);
|
|
1293
1322
|
}
|
|
1294
1323
|
function getOnChainCircuitSourceDecoder() {
|
|
1295
|
-
return
|
|
1324
|
+
return getStructDecoder27([
|
|
1296
1325
|
["isCompleted", getBooleanDecoder5()],
|
|
1297
|
-
["uploadAuth",
|
|
1326
|
+
["uploadAuth", getAddressDecoder14()]
|
|
1298
1327
|
]);
|
|
1299
1328
|
}
|
|
1300
1329
|
function getOnChainCircuitSourceCodec() {
|
|
1301
|
-
return
|
|
1330
|
+
return combineCodec31(
|
|
1302
1331
|
getOnChainCircuitSourceEncoder(),
|
|
1303
1332
|
getOnChainCircuitSourceDecoder()
|
|
1304
1333
|
);
|
|
@@ -1306,7 +1335,7 @@ function getOnChainCircuitSourceCodec() {
|
|
|
1306
1335
|
|
|
1307
1336
|
// src/generated/types/output.ts
|
|
1308
1337
|
import {
|
|
1309
|
-
combineCodec as
|
|
1338
|
+
combineCodec as combineCodec32,
|
|
1310
1339
|
getEnumDecoder as getEnumDecoder3,
|
|
1311
1340
|
getEnumEncoder as getEnumEncoder3
|
|
1312
1341
|
} from "@solana/kit";
|
|
@@ -1335,12 +1364,12 @@ function getOutputDecoder() {
|
|
|
1335
1364
|
return getEnumDecoder3(Output);
|
|
1336
1365
|
}
|
|
1337
1366
|
function getOutputCodec() {
|
|
1338
|
-
return
|
|
1367
|
+
return combineCodec32(getOutputEncoder(), getOutputDecoder());
|
|
1339
1368
|
}
|
|
1340
1369
|
|
|
1341
1370
|
// src/generated/types/parameter.ts
|
|
1342
1371
|
import {
|
|
1343
|
-
combineCodec as
|
|
1372
|
+
combineCodec as combineCodec33,
|
|
1344
1373
|
getEnumDecoder as getEnumDecoder4,
|
|
1345
1374
|
getEnumEncoder as getEnumEncoder4
|
|
1346
1375
|
} from "@solana/kit";
|
|
@@ -1370,39 +1399,39 @@ function getParameterDecoder() {
|
|
|
1370
1399
|
return getEnumDecoder4(Parameter);
|
|
1371
1400
|
}
|
|
1372
1401
|
function getParameterCodec() {
|
|
1373
|
-
return
|
|
1402
|
+
return combineCodec33(getParameterEncoder(), getParameterDecoder());
|
|
1374
1403
|
}
|
|
1375
1404
|
|
|
1376
1405
|
// src/generated/types/pendingDepositClaimedEvent.ts
|
|
1377
1406
|
import {
|
|
1378
|
-
combineCodec as
|
|
1379
|
-
getAddressDecoder as
|
|
1380
|
-
getAddressEncoder as
|
|
1381
|
-
getI64Decoder as
|
|
1382
|
-
getI64Encoder as
|
|
1383
|
-
getStructDecoder as
|
|
1384
|
-
getStructEncoder as
|
|
1407
|
+
combineCodec as combineCodec34,
|
|
1408
|
+
getAddressDecoder as getAddressDecoder15,
|
|
1409
|
+
getAddressEncoder as getAddressEncoder15,
|
|
1410
|
+
getI64Decoder as getI64Decoder13,
|
|
1411
|
+
getI64Encoder as getI64Encoder13,
|
|
1412
|
+
getStructDecoder as getStructDecoder28,
|
|
1413
|
+
getStructEncoder as getStructEncoder28,
|
|
1385
1414
|
getU64Decoder as getU64Decoder10,
|
|
1386
1415
|
getU64Encoder as getU64Encoder10
|
|
1387
1416
|
} from "@solana/kit";
|
|
1388
1417
|
function getPendingDepositClaimedEventEncoder() {
|
|
1389
|
-
return
|
|
1390
|
-
["user",
|
|
1391
|
-
["encryptedTokenAccount",
|
|
1418
|
+
return getStructEncoder28([
|
|
1419
|
+
["user", getAddressEncoder15()],
|
|
1420
|
+
["encryptedTokenAccount", getAddressEncoder15()],
|
|
1392
1421
|
["amount", getU64Encoder10()],
|
|
1393
|
-
["timestamp",
|
|
1422
|
+
["timestamp", getI64Encoder13()]
|
|
1394
1423
|
]);
|
|
1395
1424
|
}
|
|
1396
1425
|
function getPendingDepositClaimedEventDecoder() {
|
|
1397
|
-
return
|
|
1398
|
-
["user",
|
|
1399
|
-
["encryptedTokenAccount",
|
|
1426
|
+
return getStructDecoder28([
|
|
1427
|
+
["user", getAddressDecoder15()],
|
|
1428
|
+
["encryptedTokenAccount", getAddressDecoder15()],
|
|
1400
1429
|
["amount", getU64Decoder10()],
|
|
1401
|
-
["timestamp",
|
|
1430
|
+
["timestamp", getI64Decoder13()]
|
|
1402
1431
|
]);
|
|
1403
1432
|
}
|
|
1404
1433
|
function getPendingDepositClaimedEventCodec() {
|
|
1405
|
-
return
|
|
1434
|
+
return combineCodec34(
|
|
1406
1435
|
getPendingDepositClaimedEventEncoder(),
|
|
1407
1436
|
getPendingDepositClaimedEventDecoder()
|
|
1408
1437
|
);
|
|
@@ -1410,34 +1439,34 @@ function getPendingDepositClaimedEventCodec() {
|
|
|
1410
1439
|
|
|
1411
1440
|
// src/generated/types/revealPeriodExtendedEvent.ts
|
|
1412
1441
|
import {
|
|
1413
|
-
combineCodec as
|
|
1414
|
-
getAddressDecoder as
|
|
1415
|
-
getAddressEncoder as
|
|
1416
|
-
getI64Decoder as
|
|
1417
|
-
getI64Encoder as
|
|
1418
|
-
getStructDecoder as
|
|
1419
|
-
getStructEncoder as
|
|
1442
|
+
combineCodec as combineCodec35,
|
|
1443
|
+
getAddressDecoder as getAddressDecoder16,
|
|
1444
|
+
getAddressEncoder as getAddressEncoder16,
|
|
1445
|
+
getI64Decoder as getI64Decoder14,
|
|
1446
|
+
getI64Encoder as getI64Encoder14,
|
|
1447
|
+
getStructDecoder as getStructDecoder29,
|
|
1448
|
+
getStructEncoder as getStructEncoder29,
|
|
1420
1449
|
getU64Decoder as getU64Decoder11,
|
|
1421
1450
|
getU64Encoder as getU64Encoder11
|
|
1422
1451
|
} from "@solana/kit";
|
|
1423
1452
|
function getRevealPeriodExtendedEventEncoder() {
|
|
1424
|
-
return
|
|
1425
|
-
["market",
|
|
1426
|
-
["authority",
|
|
1453
|
+
return getStructEncoder29([
|
|
1454
|
+
["market", getAddressEncoder16()],
|
|
1455
|
+
["authority", getAddressEncoder16()],
|
|
1427
1456
|
["newTimeToReveal", getU64Encoder11()],
|
|
1428
|
-
["timestamp",
|
|
1457
|
+
["timestamp", getI64Encoder14()]
|
|
1429
1458
|
]);
|
|
1430
1459
|
}
|
|
1431
1460
|
function getRevealPeriodExtendedEventDecoder() {
|
|
1432
|
-
return
|
|
1433
|
-
["market",
|
|
1434
|
-
["authority",
|
|
1461
|
+
return getStructDecoder29([
|
|
1462
|
+
["market", getAddressDecoder16()],
|
|
1463
|
+
["authority", getAddressDecoder16()],
|
|
1435
1464
|
["newTimeToReveal", getU64Decoder11()],
|
|
1436
|
-
["timestamp",
|
|
1465
|
+
["timestamp", getI64Decoder14()]
|
|
1437
1466
|
]);
|
|
1438
1467
|
}
|
|
1439
1468
|
function getRevealPeriodExtendedEventCodec() {
|
|
1440
|
-
return
|
|
1469
|
+
return combineCodec35(
|
|
1441
1470
|
getRevealPeriodExtendedEventEncoder(),
|
|
1442
1471
|
getRevealPeriodExtendedEventDecoder()
|
|
1443
1472
|
);
|
|
@@ -1445,18 +1474,18 @@ function getRevealPeriodExtendedEventCodec() {
|
|
|
1445
1474
|
|
|
1446
1475
|
// src/generated/types/revealSharesOutput.ts
|
|
1447
1476
|
import {
|
|
1448
|
-
combineCodec as
|
|
1449
|
-
getStructDecoder as
|
|
1450
|
-
getStructEncoder as
|
|
1477
|
+
combineCodec as combineCodec36,
|
|
1478
|
+
getStructDecoder as getStructDecoder30,
|
|
1479
|
+
getStructEncoder as getStructEncoder30
|
|
1451
1480
|
} from "@solana/kit";
|
|
1452
1481
|
function getRevealSharesOutputEncoder() {
|
|
1453
|
-
return
|
|
1482
|
+
return getStructEncoder30([["field0", getRevealSharesOutputStruct0Encoder()]]);
|
|
1454
1483
|
}
|
|
1455
1484
|
function getRevealSharesOutputDecoder() {
|
|
1456
|
-
return
|
|
1485
|
+
return getStructDecoder30([["field0", getRevealSharesOutputStruct0Decoder()]]);
|
|
1457
1486
|
}
|
|
1458
1487
|
function getRevealSharesOutputCodec() {
|
|
1459
|
-
return
|
|
1488
|
+
return combineCodec36(
|
|
1460
1489
|
getRevealSharesOutputEncoder(),
|
|
1461
1490
|
getRevealSharesOutputDecoder()
|
|
1462
1491
|
);
|
|
@@ -1464,11 +1493,11 @@ function getRevealSharesOutputCodec() {
|
|
|
1464
1493
|
|
|
1465
1494
|
// src/generated/types/revealSharesOutputStruct0.ts
|
|
1466
1495
|
import {
|
|
1467
|
-
combineCodec as
|
|
1496
|
+
combineCodec as combineCodec37,
|
|
1468
1497
|
getArrayDecoder as getArrayDecoder12,
|
|
1469
1498
|
getArrayEncoder as getArrayEncoder12,
|
|
1470
|
-
getStructDecoder as
|
|
1471
|
-
getStructEncoder as
|
|
1499
|
+
getStructDecoder as getStructDecoder31,
|
|
1500
|
+
getStructEncoder as getStructEncoder31,
|
|
1472
1501
|
getU128Decoder as getU128Decoder7,
|
|
1473
1502
|
getU128Encoder as getU128Encoder7,
|
|
1474
1503
|
getU16Decoder as getU16Decoder3,
|
|
@@ -1479,12 +1508,12 @@ import {
|
|
|
1479
1508
|
getU8Encoder as getU8Encoder14
|
|
1480
1509
|
} from "@solana/kit";
|
|
1481
1510
|
function getRevealSharesOutputStruct0Encoder() {
|
|
1482
|
-
return
|
|
1511
|
+
return getStructEncoder31([
|
|
1483
1512
|
["field0", getU64Encoder12()],
|
|
1484
1513
|
["field1", getU16Encoder3()],
|
|
1485
1514
|
[
|
|
1486
1515
|
"field2",
|
|
1487
|
-
|
|
1516
|
+
getStructEncoder31([
|
|
1488
1517
|
["encryptionKey", getArrayEncoder12(getU8Encoder14(), { size: 32 })],
|
|
1489
1518
|
["nonce", getU128Encoder7()],
|
|
1490
1519
|
[
|
|
@@ -1498,12 +1527,12 @@ function getRevealSharesOutputStruct0Encoder() {
|
|
|
1498
1527
|
]);
|
|
1499
1528
|
}
|
|
1500
1529
|
function getRevealSharesOutputStruct0Decoder() {
|
|
1501
|
-
return
|
|
1530
|
+
return getStructDecoder31([
|
|
1502
1531
|
["field0", getU64Decoder12()],
|
|
1503
1532
|
["field1", getU16Decoder3()],
|
|
1504
1533
|
[
|
|
1505
1534
|
"field2",
|
|
1506
|
-
|
|
1535
|
+
getStructDecoder31([
|
|
1507
1536
|
["encryptionKey", getArrayDecoder12(getU8Decoder14(), { size: 32 })],
|
|
1508
1537
|
["nonce", getU128Decoder7()],
|
|
1509
1538
|
[
|
|
@@ -1517,7 +1546,7 @@ function getRevealSharesOutputStruct0Decoder() {
|
|
|
1517
1546
|
]);
|
|
1518
1547
|
}
|
|
1519
1548
|
function getRevealSharesOutputStruct0Codec() {
|
|
1520
|
-
return
|
|
1549
|
+
return combineCodec37(
|
|
1521
1550
|
getRevealSharesOutputStruct0Encoder(),
|
|
1522
1551
|
getRevealSharesOutputStruct0Decoder()
|
|
1523
1552
|
);
|
|
@@ -1525,48 +1554,48 @@ function getRevealSharesOutputStruct0Codec() {
|
|
|
1525
1554
|
|
|
1526
1555
|
// src/generated/types/rewardClaimedEvent.ts
|
|
1527
1556
|
import {
|
|
1528
|
-
combineCodec as
|
|
1529
|
-
getAddressDecoder as
|
|
1530
|
-
getAddressEncoder as
|
|
1531
|
-
getI64Decoder as
|
|
1532
|
-
getI64Encoder as
|
|
1533
|
-
getStructDecoder as
|
|
1534
|
-
getStructEncoder as
|
|
1557
|
+
combineCodec as combineCodec38,
|
|
1558
|
+
getAddressDecoder as getAddressDecoder17,
|
|
1559
|
+
getAddressEncoder as getAddressEncoder17,
|
|
1560
|
+
getI64Decoder as getI64Decoder15,
|
|
1561
|
+
getI64Encoder as getI64Encoder15,
|
|
1562
|
+
getStructDecoder as getStructDecoder32,
|
|
1563
|
+
getStructEncoder as getStructEncoder32,
|
|
1535
1564
|
getU16Decoder as getU16Decoder4,
|
|
1536
1565
|
getU16Encoder as getU16Encoder4,
|
|
1537
1566
|
getU64Decoder as getU64Decoder13,
|
|
1538
1567
|
getU64Encoder as getU64Encoder13
|
|
1539
1568
|
} from "@solana/kit";
|
|
1540
1569
|
function getRewardClaimedEventEncoder() {
|
|
1541
|
-
return
|
|
1542
|
-
["owner",
|
|
1543
|
-
["market",
|
|
1544
|
-
["shareAccount",
|
|
1570
|
+
return getStructEncoder32([
|
|
1571
|
+
["owner", getAddressEncoder17()],
|
|
1572
|
+
["market", getAddressEncoder17()],
|
|
1573
|
+
["shareAccount", getAddressEncoder17()],
|
|
1545
1574
|
["option", getU16Encoder4()],
|
|
1546
1575
|
["rewardAmount", getU64Encoder13()],
|
|
1547
1576
|
["stakedAtTimestamp", getU64Encoder13()],
|
|
1548
1577
|
["unstakedAtTimestamp", getU64Encoder13()],
|
|
1549
1578
|
["revealedScore", getU64Encoder13()],
|
|
1550
1579
|
["revealedAmount", getU64Encoder13()],
|
|
1551
|
-
["timestamp",
|
|
1580
|
+
["timestamp", getI64Encoder15()]
|
|
1552
1581
|
]);
|
|
1553
1582
|
}
|
|
1554
1583
|
function getRewardClaimedEventDecoder() {
|
|
1555
|
-
return
|
|
1556
|
-
["owner",
|
|
1557
|
-
["market",
|
|
1558
|
-
["shareAccount",
|
|
1584
|
+
return getStructDecoder32([
|
|
1585
|
+
["owner", getAddressDecoder17()],
|
|
1586
|
+
["market", getAddressDecoder17()],
|
|
1587
|
+
["shareAccount", getAddressDecoder17()],
|
|
1559
1588
|
["option", getU16Decoder4()],
|
|
1560
1589
|
["rewardAmount", getU64Decoder13()],
|
|
1561
1590
|
["stakedAtTimestamp", getU64Decoder13()],
|
|
1562
1591
|
["unstakedAtTimestamp", getU64Decoder13()],
|
|
1563
1592
|
["revealedScore", getU64Decoder13()],
|
|
1564
1593
|
["revealedAmount", getU64Decoder13()],
|
|
1565
|
-
["timestamp",
|
|
1594
|
+
["timestamp", getI64Decoder15()]
|
|
1566
1595
|
]);
|
|
1567
1596
|
}
|
|
1568
1597
|
function getRewardClaimedEventCodec() {
|
|
1569
|
-
return
|
|
1598
|
+
return combineCodec38(
|
|
1570
1599
|
getRewardClaimedEventEncoder(),
|
|
1571
1600
|
getRewardClaimedEventDecoder()
|
|
1572
1601
|
);
|
|
@@ -1574,36 +1603,36 @@ function getRewardClaimedEventCodec() {
|
|
|
1574
1603
|
|
|
1575
1604
|
// src/generated/types/rewardPoolIncreasedEvent.ts
|
|
1576
1605
|
import {
|
|
1577
|
-
combineCodec as
|
|
1578
|
-
getAddressDecoder as
|
|
1579
|
-
getAddressEncoder as
|
|
1580
|
-
getI64Decoder as
|
|
1581
|
-
getI64Encoder as
|
|
1582
|
-
getStructDecoder as
|
|
1583
|
-
getStructEncoder as
|
|
1606
|
+
combineCodec as combineCodec39,
|
|
1607
|
+
getAddressDecoder as getAddressDecoder18,
|
|
1608
|
+
getAddressEncoder as getAddressEncoder18,
|
|
1609
|
+
getI64Decoder as getI64Decoder16,
|
|
1610
|
+
getI64Encoder as getI64Encoder16,
|
|
1611
|
+
getStructDecoder as getStructDecoder33,
|
|
1612
|
+
getStructEncoder as getStructEncoder33,
|
|
1584
1613
|
getU64Decoder as getU64Decoder14,
|
|
1585
1614
|
getU64Encoder as getU64Encoder14
|
|
1586
1615
|
} from "@solana/kit";
|
|
1587
1616
|
function getRewardPoolIncreasedEventEncoder() {
|
|
1588
|
-
return
|
|
1589
|
-
["market",
|
|
1590
|
-
["authority",
|
|
1617
|
+
return getStructEncoder33([
|
|
1618
|
+
["market", getAddressEncoder18()],
|
|
1619
|
+
["authority", getAddressEncoder18()],
|
|
1591
1620
|
["oldRewardAmount", getU64Encoder14()],
|
|
1592
1621
|
["newRewardAmount", getU64Encoder14()],
|
|
1593
|
-
["timestamp",
|
|
1622
|
+
["timestamp", getI64Encoder16()]
|
|
1594
1623
|
]);
|
|
1595
1624
|
}
|
|
1596
1625
|
function getRewardPoolIncreasedEventDecoder() {
|
|
1597
|
-
return
|
|
1598
|
-
["market",
|
|
1599
|
-
["authority",
|
|
1626
|
+
return getStructDecoder33([
|
|
1627
|
+
["market", getAddressDecoder18()],
|
|
1628
|
+
["authority", getAddressDecoder18()],
|
|
1600
1629
|
["oldRewardAmount", getU64Decoder14()],
|
|
1601
1630
|
["newRewardAmount", getU64Decoder14()],
|
|
1602
|
-
["timestamp",
|
|
1631
|
+
["timestamp", getI64Decoder16()]
|
|
1603
1632
|
]);
|
|
1604
1633
|
}
|
|
1605
1634
|
function getRewardPoolIncreasedEventCodec() {
|
|
1606
|
-
return
|
|
1635
|
+
return combineCodec39(
|
|
1607
1636
|
getRewardPoolIncreasedEventEncoder(),
|
|
1608
1637
|
getRewardPoolIncreasedEventDecoder()
|
|
1609
1638
|
);
|
|
@@ -1611,32 +1640,32 @@ function getRewardPoolIncreasedEventCodec() {
|
|
|
1611
1640
|
|
|
1612
1641
|
// src/generated/types/shareAccountInitializedEvent.ts
|
|
1613
1642
|
import {
|
|
1614
|
-
combineCodec as
|
|
1615
|
-
getAddressDecoder as
|
|
1616
|
-
getAddressEncoder as
|
|
1617
|
-
getI64Decoder as
|
|
1618
|
-
getI64Encoder as
|
|
1619
|
-
getStructDecoder as
|
|
1620
|
-
getStructEncoder as
|
|
1643
|
+
combineCodec as combineCodec40,
|
|
1644
|
+
getAddressDecoder as getAddressDecoder19,
|
|
1645
|
+
getAddressEncoder as getAddressEncoder19,
|
|
1646
|
+
getI64Decoder as getI64Decoder17,
|
|
1647
|
+
getI64Encoder as getI64Encoder17,
|
|
1648
|
+
getStructDecoder as getStructDecoder34,
|
|
1649
|
+
getStructEncoder as getStructEncoder34
|
|
1621
1650
|
} from "@solana/kit";
|
|
1622
1651
|
function getShareAccountInitializedEventEncoder() {
|
|
1623
|
-
return
|
|
1624
|
-
["shareAccount",
|
|
1625
|
-
["owner",
|
|
1626
|
-
["market",
|
|
1627
|
-
["timestamp",
|
|
1652
|
+
return getStructEncoder34([
|
|
1653
|
+
["shareAccount", getAddressEncoder19()],
|
|
1654
|
+
["owner", getAddressEncoder19()],
|
|
1655
|
+
["market", getAddressEncoder19()],
|
|
1656
|
+
["timestamp", getI64Encoder17()]
|
|
1628
1657
|
]);
|
|
1629
1658
|
}
|
|
1630
1659
|
function getShareAccountInitializedEventDecoder() {
|
|
1631
|
-
return
|
|
1632
|
-
["shareAccount",
|
|
1633
|
-
["owner",
|
|
1634
|
-
["market",
|
|
1635
|
-
["timestamp",
|
|
1660
|
+
return getStructDecoder34([
|
|
1661
|
+
["shareAccount", getAddressDecoder19()],
|
|
1662
|
+
["owner", getAddressDecoder19()],
|
|
1663
|
+
["market", getAddressDecoder19()],
|
|
1664
|
+
["timestamp", getI64Decoder17()]
|
|
1636
1665
|
]);
|
|
1637
1666
|
}
|
|
1638
1667
|
function getShareAccountInitializedEventCodec() {
|
|
1639
|
-
return
|
|
1668
|
+
return combineCodec40(
|
|
1640
1669
|
getShareAccountInitializedEventEncoder(),
|
|
1641
1670
|
getShareAccountInitializedEventDecoder()
|
|
1642
1671
|
);
|
|
@@ -1644,52 +1673,52 @@ function getShareAccountInitializedEventCodec() {
|
|
|
1644
1673
|
|
|
1645
1674
|
// src/generated/types/stakedError.ts
|
|
1646
1675
|
import {
|
|
1647
|
-
combineCodec as
|
|
1648
|
-
getAddressDecoder as
|
|
1649
|
-
getAddressEncoder as
|
|
1650
|
-
getI64Decoder as
|
|
1651
|
-
getI64Encoder as
|
|
1652
|
-
getStructDecoder as
|
|
1653
|
-
getStructEncoder as
|
|
1676
|
+
combineCodec as combineCodec41,
|
|
1677
|
+
getAddressDecoder as getAddressDecoder20,
|
|
1678
|
+
getAddressEncoder as getAddressEncoder20,
|
|
1679
|
+
getI64Decoder as getI64Decoder18,
|
|
1680
|
+
getI64Encoder as getI64Encoder18,
|
|
1681
|
+
getStructDecoder as getStructDecoder35,
|
|
1682
|
+
getStructEncoder as getStructEncoder35
|
|
1654
1683
|
} from "@solana/kit";
|
|
1655
1684
|
function getStakedErrorEncoder() {
|
|
1656
|
-
return
|
|
1657
|
-
["user",
|
|
1658
|
-
["timestamp",
|
|
1685
|
+
return getStructEncoder35([
|
|
1686
|
+
["user", getAddressEncoder20()],
|
|
1687
|
+
["timestamp", getI64Encoder18()]
|
|
1659
1688
|
]);
|
|
1660
1689
|
}
|
|
1661
1690
|
function getStakedErrorDecoder() {
|
|
1662
|
-
return
|
|
1663
|
-
["user",
|
|
1664
|
-
["timestamp",
|
|
1691
|
+
return getStructDecoder35([
|
|
1692
|
+
["user", getAddressDecoder20()],
|
|
1693
|
+
["timestamp", getI64Decoder18()]
|
|
1665
1694
|
]);
|
|
1666
1695
|
}
|
|
1667
1696
|
function getStakedErrorCodec() {
|
|
1668
|
-
return
|
|
1697
|
+
return combineCodec41(getStakedErrorEncoder(), getStakedErrorDecoder());
|
|
1669
1698
|
}
|
|
1670
1699
|
|
|
1671
1700
|
// src/generated/types/stakedEvent.ts
|
|
1672
1701
|
import {
|
|
1673
|
-
combineCodec as
|
|
1674
|
-
getAddressDecoder as
|
|
1675
|
-
getAddressEncoder as
|
|
1702
|
+
combineCodec as combineCodec42,
|
|
1703
|
+
getAddressDecoder as getAddressDecoder21,
|
|
1704
|
+
getAddressEncoder as getAddressEncoder21,
|
|
1676
1705
|
getArrayDecoder as getArrayDecoder13,
|
|
1677
1706
|
getArrayEncoder as getArrayEncoder13,
|
|
1678
|
-
getI64Decoder as
|
|
1679
|
-
getI64Encoder as
|
|
1680
|
-
getStructDecoder as
|
|
1681
|
-
getStructEncoder as
|
|
1707
|
+
getI64Decoder as getI64Decoder19,
|
|
1708
|
+
getI64Encoder as getI64Encoder19,
|
|
1709
|
+
getStructDecoder as getStructDecoder36,
|
|
1710
|
+
getStructEncoder as getStructEncoder36,
|
|
1682
1711
|
getU128Decoder as getU128Decoder8,
|
|
1683
1712
|
getU128Encoder as getU128Encoder8,
|
|
1684
1713
|
getU8Decoder as getU8Decoder15,
|
|
1685
1714
|
getU8Encoder as getU8Encoder15
|
|
1686
1715
|
} from "@solana/kit";
|
|
1687
1716
|
function getStakedEventEncoder() {
|
|
1688
|
-
return
|
|
1689
|
-
["user",
|
|
1690
|
-
["market",
|
|
1691
|
-
["encryptedTokenAccount",
|
|
1692
|
-
["shareAccount",
|
|
1717
|
+
return getStructEncoder36([
|
|
1718
|
+
["user", getAddressEncoder21()],
|
|
1719
|
+
["market", getAddressEncoder21()],
|
|
1720
|
+
["encryptedTokenAccount", getAddressEncoder21()],
|
|
1721
|
+
["shareAccount", getAddressEncoder21()],
|
|
1693
1722
|
[
|
|
1694
1723
|
"shareEncryptedState",
|
|
1695
1724
|
getArrayEncoder13(getArrayEncoder13(getU8Encoder15(), { size: 32 }), {
|
|
@@ -1706,15 +1735,15 @@ function getStakedEventEncoder() {
|
|
|
1706
1735
|
["shareStateDisclosureNonce", getU128Encoder8()],
|
|
1707
1736
|
["encryptedEtaBalance", getArrayEncoder13(getU8Encoder15(), { size: 32 })],
|
|
1708
1737
|
["etaBalanceNonce", getU128Encoder8()],
|
|
1709
|
-
["timestamp",
|
|
1738
|
+
["timestamp", getI64Encoder19()]
|
|
1710
1739
|
]);
|
|
1711
1740
|
}
|
|
1712
1741
|
function getStakedEventDecoder() {
|
|
1713
|
-
return
|
|
1714
|
-
["user",
|
|
1715
|
-
["market",
|
|
1716
|
-
["encryptedTokenAccount",
|
|
1717
|
-
["shareAccount",
|
|
1742
|
+
return getStructDecoder36([
|
|
1743
|
+
["user", getAddressDecoder21()],
|
|
1744
|
+
["market", getAddressDecoder21()],
|
|
1745
|
+
["encryptedTokenAccount", getAddressDecoder21()],
|
|
1746
|
+
["shareAccount", getAddressDecoder21()],
|
|
1718
1747
|
[
|
|
1719
1748
|
"shareEncryptedState",
|
|
1720
1749
|
getArrayDecoder13(getArrayDecoder13(getU8Decoder15(), { size: 32 }), {
|
|
@@ -1731,37 +1760,37 @@ function getStakedEventDecoder() {
|
|
|
1731
1760
|
["shareStateDisclosureNonce", getU128Decoder8()],
|
|
1732
1761
|
["encryptedEtaBalance", getArrayDecoder13(getU8Decoder15(), { size: 32 })],
|
|
1733
1762
|
["etaBalanceNonce", getU128Decoder8()],
|
|
1734
|
-
["timestamp",
|
|
1763
|
+
["timestamp", getI64Decoder19()]
|
|
1735
1764
|
]);
|
|
1736
1765
|
}
|
|
1737
1766
|
function getStakedEventCodec() {
|
|
1738
|
-
return
|
|
1767
|
+
return combineCodec42(getStakedEventEncoder(), getStakedEventDecoder());
|
|
1739
1768
|
}
|
|
1740
1769
|
|
|
1741
1770
|
// src/generated/types/stakeRevealedError.ts
|
|
1742
1771
|
import {
|
|
1743
|
-
combineCodec as
|
|
1744
|
-
getAddressDecoder as
|
|
1745
|
-
getAddressEncoder as
|
|
1746
|
-
getI64Decoder as
|
|
1747
|
-
getI64Encoder as
|
|
1748
|
-
getStructDecoder as
|
|
1749
|
-
getStructEncoder as
|
|
1772
|
+
combineCodec as combineCodec43,
|
|
1773
|
+
getAddressDecoder as getAddressDecoder22,
|
|
1774
|
+
getAddressEncoder as getAddressEncoder22,
|
|
1775
|
+
getI64Decoder as getI64Decoder20,
|
|
1776
|
+
getI64Encoder as getI64Encoder20,
|
|
1777
|
+
getStructDecoder as getStructDecoder37,
|
|
1778
|
+
getStructEncoder as getStructEncoder37
|
|
1750
1779
|
} from "@solana/kit";
|
|
1751
1780
|
function getStakeRevealedErrorEncoder() {
|
|
1752
|
-
return
|
|
1753
|
-
["user",
|
|
1754
|
-
["timestamp",
|
|
1781
|
+
return getStructEncoder37([
|
|
1782
|
+
["user", getAddressEncoder22()],
|
|
1783
|
+
["timestamp", getI64Encoder20()]
|
|
1755
1784
|
]);
|
|
1756
1785
|
}
|
|
1757
1786
|
function getStakeRevealedErrorDecoder() {
|
|
1758
|
-
return
|
|
1759
|
-
["user",
|
|
1760
|
-
["timestamp",
|
|
1787
|
+
return getStructDecoder37([
|
|
1788
|
+
["user", getAddressDecoder22()],
|
|
1789
|
+
["timestamp", getI64Decoder20()]
|
|
1761
1790
|
]);
|
|
1762
1791
|
}
|
|
1763
1792
|
function getStakeRevealedErrorCodec() {
|
|
1764
|
-
return
|
|
1793
|
+
return combineCodec43(
|
|
1765
1794
|
getStakeRevealedErrorEncoder(),
|
|
1766
1795
|
getStakeRevealedErrorDecoder()
|
|
1767
1796
|
);
|
|
@@ -1769,42 +1798,42 @@ function getStakeRevealedErrorCodec() {
|
|
|
1769
1798
|
|
|
1770
1799
|
// src/generated/types/stakeRevealedEvent.ts
|
|
1771
1800
|
import {
|
|
1772
|
-
combineCodec as
|
|
1773
|
-
getAddressDecoder as
|
|
1774
|
-
getAddressEncoder as
|
|
1775
|
-
getI64Decoder as
|
|
1776
|
-
getI64Encoder as
|
|
1777
|
-
getStructDecoder as
|
|
1778
|
-
getStructEncoder as
|
|
1801
|
+
combineCodec as combineCodec44,
|
|
1802
|
+
getAddressDecoder as getAddressDecoder23,
|
|
1803
|
+
getAddressEncoder as getAddressEncoder23,
|
|
1804
|
+
getI64Decoder as getI64Decoder21,
|
|
1805
|
+
getI64Encoder as getI64Encoder21,
|
|
1806
|
+
getStructDecoder as getStructDecoder38,
|
|
1807
|
+
getStructEncoder as getStructEncoder38,
|
|
1779
1808
|
getU16Decoder as getU16Decoder5,
|
|
1780
1809
|
getU16Encoder as getU16Encoder5,
|
|
1781
1810
|
getU64Decoder as getU64Decoder15,
|
|
1782
1811
|
getU64Encoder as getU64Encoder15
|
|
1783
1812
|
} from "@solana/kit";
|
|
1784
1813
|
function getStakeRevealedEventEncoder() {
|
|
1785
|
-
return
|
|
1786
|
-
["user",
|
|
1787
|
-
["market",
|
|
1788
|
-
["encryptedTokenAccount",
|
|
1789
|
-
["shareAccount",
|
|
1814
|
+
return getStructEncoder38([
|
|
1815
|
+
["user", getAddressEncoder23()],
|
|
1816
|
+
["market", getAddressEncoder23()],
|
|
1817
|
+
["encryptedTokenAccount", getAddressEncoder23()],
|
|
1818
|
+
["shareAccount", getAddressEncoder23()],
|
|
1790
1819
|
["sharesAmount", getU64Encoder15()],
|
|
1791
1820
|
["selectedOption", getU16Encoder5()],
|
|
1792
|
-
["timestamp",
|
|
1821
|
+
["timestamp", getI64Encoder21()]
|
|
1793
1822
|
]);
|
|
1794
1823
|
}
|
|
1795
1824
|
function getStakeRevealedEventDecoder() {
|
|
1796
|
-
return
|
|
1797
|
-
["user",
|
|
1798
|
-
["market",
|
|
1799
|
-
["encryptedTokenAccount",
|
|
1800
|
-
["shareAccount",
|
|
1825
|
+
return getStructDecoder38([
|
|
1826
|
+
["user", getAddressDecoder23()],
|
|
1827
|
+
["market", getAddressDecoder23()],
|
|
1828
|
+
["encryptedTokenAccount", getAddressDecoder23()],
|
|
1829
|
+
["shareAccount", getAddressDecoder23()],
|
|
1801
1830
|
["sharesAmount", getU64Decoder15()],
|
|
1802
1831
|
["selectedOption", getU16Decoder5()],
|
|
1803
|
-
["timestamp",
|
|
1832
|
+
["timestamp", getI64Decoder21()]
|
|
1804
1833
|
]);
|
|
1805
1834
|
}
|
|
1806
1835
|
function getStakeRevealedEventCodec() {
|
|
1807
|
-
return
|
|
1836
|
+
return combineCodec44(
|
|
1808
1837
|
getStakeRevealedEventEncoder(),
|
|
1809
1838
|
getStakeRevealedEventDecoder()
|
|
1810
1839
|
);
|
|
@@ -1812,42 +1841,42 @@ function getStakeRevealedEventCodec() {
|
|
|
1812
1841
|
|
|
1813
1842
|
// src/generated/types/tallyIncrementedEvent.ts
|
|
1814
1843
|
import {
|
|
1815
|
-
combineCodec as
|
|
1816
|
-
getAddressDecoder as
|
|
1817
|
-
getAddressEncoder as
|
|
1818
|
-
getI64Decoder as
|
|
1819
|
-
getI64Encoder as
|
|
1820
|
-
getStructDecoder as
|
|
1821
|
-
getStructEncoder as
|
|
1844
|
+
combineCodec as combineCodec45,
|
|
1845
|
+
getAddressDecoder as getAddressDecoder24,
|
|
1846
|
+
getAddressEncoder as getAddressEncoder24,
|
|
1847
|
+
getI64Decoder as getI64Decoder22,
|
|
1848
|
+
getI64Encoder as getI64Encoder22,
|
|
1849
|
+
getStructDecoder as getStructDecoder39,
|
|
1850
|
+
getStructEncoder as getStructEncoder39,
|
|
1822
1851
|
getU16Decoder as getU16Decoder6,
|
|
1823
1852
|
getU16Encoder as getU16Encoder6,
|
|
1824
1853
|
getU64Decoder as getU64Decoder16,
|
|
1825
1854
|
getU64Encoder as getU64Encoder16
|
|
1826
1855
|
} from "@solana/kit";
|
|
1827
1856
|
function getTallyIncrementedEventEncoder() {
|
|
1828
|
-
return
|
|
1829
|
-
["owner",
|
|
1830
|
-
["market",
|
|
1831
|
-
["shareAccount",
|
|
1857
|
+
return getStructEncoder39([
|
|
1858
|
+
["owner", getAddressEncoder24()],
|
|
1859
|
+
["market", getAddressEncoder24()],
|
|
1860
|
+
["shareAccount", getAddressEncoder24()],
|
|
1832
1861
|
["option", getU16Encoder6()],
|
|
1833
1862
|
["revealedAmount", getU64Encoder16()],
|
|
1834
1863
|
["userScore", getU64Encoder16()],
|
|
1835
|
-
["timestamp",
|
|
1864
|
+
["timestamp", getI64Encoder22()]
|
|
1836
1865
|
]);
|
|
1837
1866
|
}
|
|
1838
1867
|
function getTallyIncrementedEventDecoder() {
|
|
1839
|
-
return
|
|
1840
|
-
["owner",
|
|
1841
|
-
["market",
|
|
1842
|
-
["shareAccount",
|
|
1868
|
+
return getStructDecoder39([
|
|
1869
|
+
["owner", getAddressDecoder24()],
|
|
1870
|
+
["market", getAddressDecoder24()],
|
|
1871
|
+
["shareAccount", getAddressDecoder24()],
|
|
1843
1872
|
["option", getU16Decoder6()],
|
|
1844
1873
|
["revealedAmount", getU64Decoder16()],
|
|
1845
1874
|
["userScore", getU64Decoder16()],
|
|
1846
|
-
["timestamp",
|
|
1875
|
+
["timestamp", getI64Decoder22()]
|
|
1847
1876
|
]);
|
|
1848
1877
|
}
|
|
1849
1878
|
function getTallyIncrementedEventCodec() {
|
|
1850
|
-
return
|
|
1879
|
+
return combineCodec45(
|
|
1851
1880
|
getTallyIncrementedEventEncoder(),
|
|
1852
1881
|
getTallyIncrementedEventDecoder()
|
|
1853
1882
|
);
|
|
@@ -1855,97 +1884,97 @@ function getTallyIncrementedEventCodec() {
|
|
|
1855
1884
|
|
|
1856
1885
|
// src/generated/types/timestamp.ts
|
|
1857
1886
|
import {
|
|
1858
|
-
combineCodec as
|
|
1859
|
-
getStructDecoder as
|
|
1860
|
-
getStructEncoder as
|
|
1887
|
+
combineCodec as combineCodec46,
|
|
1888
|
+
getStructDecoder as getStructDecoder40,
|
|
1889
|
+
getStructEncoder as getStructEncoder40,
|
|
1861
1890
|
getU64Decoder as getU64Decoder17,
|
|
1862
1891
|
getU64Encoder as getU64Encoder17
|
|
1863
1892
|
} from "@solana/kit";
|
|
1864
1893
|
function getTimestampEncoder() {
|
|
1865
|
-
return
|
|
1894
|
+
return getStructEncoder40([["timestamp", getU64Encoder17()]]);
|
|
1866
1895
|
}
|
|
1867
1896
|
function getTimestampDecoder() {
|
|
1868
|
-
return
|
|
1897
|
+
return getStructDecoder40([["timestamp", getU64Decoder17()]]);
|
|
1869
1898
|
}
|
|
1870
1899
|
function getTimestampCodec() {
|
|
1871
|
-
return
|
|
1900
|
+
return combineCodec46(getTimestampEncoder(), getTimestampDecoder());
|
|
1872
1901
|
}
|
|
1873
1902
|
|
|
1874
1903
|
// src/generated/types/unstakedError.ts
|
|
1875
1904
|
import {
|
|
1876
|
-
combineCodec as
|
|
1877
|
-
getAddressDecoder as
|
|
1878
|
-
getAddressEncoder as
|
|
1879
|
-
getI64Decoder as
|
|
1880
|
-
getI64Encoder as
|
|
1881
|
-
getStructDecoder as
|
|
1882
|
-
getStructEncoder as
|
|
1905
|
+
combineCodec as combineCodec47,
|
|
1906
|
+
getAddressDecoder as getAddressDecoder25,
|
|
1907
|
+
getAddressEncoder as getAddressEncoder25,
|
|
1908
|
+
getI64Decoder as getI64Decoder23,
|
|
1909
|
+
getI64Encoder as getI64Encoder23,
|
|
1910
|
+
getStructDecoder as getStructDecoder41,
|
|
1911
|
+
getStructEncoder as getStructEncoder41
|
|
1883
1912
|
} from "@solana/kit";
|
|
1884
1913
|
function getUnstakedErrorEncoder() {
|
|
1885
|
-
return
|
|
1886
|
-
["user",
|
|
1887
|
-
["timestamp",
|
|
1914
|
+
return getStructEncoder41([
|
|
1915
|
+
["user", getAddressEncoder25()],
|
|
1916
|
+
["timestamp", getI64Encoder23()]
|
|
1888
1917
|
]);
|
|
1889
1918
|
}
|
|
1890
1919
|
function getUnstakedErrorDecoder() {
|
|
1891
|
-
return
|
|
1892
|
-
["user",
|
|
1893
|
-
["timestamp",
|
|
1920
|
+
return getStructDecoder41([
|
|
1921
|
+
["user", getAddressDecoder25()],
|
|
1922
|
+
["timestamp", getI64Decoder23()]
|
|
1894
1923
|
]);
|
|
1895
1924
|
}
|
|
1896
1925
|
function getUnstakedErrorCodec() {
|
|
1897
|
-
return
|
|
1926
|
+
return combineCodec47(getUnstakedErrorEncoder(), getUnstakedErrorDecoder());
|
|
1898
1927
|
}
|
|
1899
1928
|
|
|
1900
1929
|
// src/generated/types/unstakedEvent.ts
|
|
1901
1930
|
import {
|
|
1902
|
-
combineCodec as
|
|
1903
|
-
getAddressDecoder as
|
|
1904
|
-
getAddressEncoder as
|
|
1905
|
-
getI64Decoder as
|
|
1906
|
-
getI64Encoder as
|
|
1907
|
-
getStructDecoder as
|
|
1908
|
-
getStructEncoder as
|
|
1931
|
+
combineCodec as combineCodec48,
|
|
1932
|
+
getAddressDecoder as getAddressDecoder26,
|
|
1933
|
+
getAddressEncoder as getAddressEncoder26,
|
|
1934
|
+
getI64Decoder as getI64Decoder24,
|
|
1935
|
+
getI64Encoder as getI64Encoder24,
|
|
1936
|
+
getStructDecoder as getStructDecoder42,
|
|
1937
|
+
getStructEncoder as getStructEncoder42
|
|
1909
1938
|
} from "@solana/kit";
|
|
1910
1939
|
function getUnstakedEventEncoder() {
|
|
1911
|
-
return
|
|
1912
|
-
["user",
|
|
1913
|
-
["market",
|
|
1914
|
-
["encryptedTokenAccount",
|
|
1915
|
-
["shareAccount",
|
|
1916
|
-
["timestamp",
|
|
1940
|
+
return getStructEncoder42([
|
|
1941
|
+
["user", getAddressEncoder26()],
|
|
1942
|
+
["market", getAddressEncoder26()],
|
|
1943
|
+
["encryptedTokenAccount", getAddressEncoder26()],
|
|
1944
|
+
["shareAccount", getAddressEncoder26()],
|
|
1945
|
+
["timestamp", getI64Encoder24()]
|
|
1917
1946
|
]);
|
|
1918
1947
|
}
|
|
1919
1948
|
function getUnstakedEventDecoder() {
|
|
1920
|
-
return
|
|
1921
|
-
["user",
|
|
1922
|
-
["market",
|
|
1923
|
-
["encryptedTokenAccount",
|
|
1924
|
-
["shareAccount",
|
|
1925
|
-
["timestamp",
|
|
1949
|
+
return getStructDecoder42([
|
|
1950
|
+
["user", getAddressDecoder26()],
|
|
1951
|
+
["market", getAddressDecoder26()],
|
|
1952
|
+
["encryptedTokenAccount", getAddressDecoder26()],
|
|
1953
|
+
["shareAccount", getAddressDecoder26()],
|
|
1954
|
+
["timestamp", getI64Decoder24()]
|
|
1926
1955
|
]);
|
|
1927
1956
|
}
|
|
1928
1957
|
function getUnstakedEventCodec() {
|
|
1929
|
-
return
|
|
1958
|
+
return combineCodec48(getUnstakedEventEncoder(), getUnstakedEventDecoder());
|
|
1930
1959
|
}
|
|
1931
1960
|
|
|
1932
1961
|
// src/generated/types/unstakeEarlyOutput.ts
|
|
1933
1962
|
import {
|
|
1934
|
-
combineCodec as
|
|
1963
|
+
combineCodec as combineCodec49,
|
|
1935
1964
|
getArrayDecoder as getArrayDecoder14,
|
|
1936
1965
|
getArrayEncoder as getArrayEncoder14,
|
|
1937
|
-
getStructDecoder as
|
|
1938
|
-
getStructEncoder as
|
|
1966
|
+
getStructDecoder as getStructDecoder43,
|
|
1967
|
+
getStructEncoder as getStructEncoder43,
|
|
1939
1968
|
getU128Decoder as getU128Decoder9,
|
|
1940
1969
|
getU128Encoder as getU128Encoder9,
|
|
1941
1970
|
getU8Decoder as getU8Decoder16,
|
|
1942
1971
|
getU8Encoder as getU8Encoder16
|
|
1943
1972
|
} from "@solana/kit";
|
|
1944
1973
|
function getUnstakeEarlyOutputEncoder() {
|
|
1945
|
-
return
|
|
1974
|
+
return getStructEncoder43([
|
|
1946
1975
|
[
|
|
1947
1976
|
"field0",
|
|
1948
|
-
|
|
1977
|
+
getStructEncoder43([
|
|
1949
1978
|
["encryptionKey", getArrayEncoder14(getU8Encoder16(), { size: 32 })],
|
|
1950
1979
|
["nonce", getU128Encoder9()],
|
|
1951
1980
|
[
|
|
@@ -1959,10 +1988,10 @@ function getUnstakeEarlyOutputEncoder() {
|
|
|
1959
1988
|
]);
|
|
1960
1989
|
}
|
|
1961
1990
|
function getUnstakeEarlyOutputDecoder() {
|
|
1962
|
-
return
|
|
1991
|
+
return getStructDecoder43([
|
|
1963
1992
|
[
|
|
1964
1993
|
"field0",
|
|
1965
|
-
|
|
1994
|
+
getStructDecoder43([
|
|
1966
1995
|
["encryptionKey", getArrayDecoder14(getU8Decoder16(), { size: 32 })],
|
|
1967
1996
|
["nonce", getU128Decoder9()],
|
|
1968
1997
|
[
|
|
@@ -1976,7 +2005,7 @@ function getUnstakeEarlyOutputDecoder() {
|
|
|
1976
2005
|
]);
|
|
1977
2006
|
}
|
|
1978
2007
|
function getUnstakeEarlyOutputCodec() {
|
|
1979
|
-
return
|
|
2008
|
+
return combineCodec49(
|
|
1980
2009
|
getUnstakeEarlyOutputEncoder(),
|
|
1981
2010
|
getUnstakeEarlyOutputDecoder()
|
|
1982
2011
|
);
|
|
@@ -1984,36 +2013,36 @@ function getUnstakeEarlyOutputCodec() {
|
|
|
1984
2013
|
|
|
1985
2014
|
// src/generated/types/unstakeInitiatedEvent.ts
|
|
1986
2015
|
import {
|
|
1987
|
-
combineCodec as
|
|
1988
|
-
getAddressDecoder as
|
|
1989
|
-
getAddressEncoder as
|
|
1990
|
-
getI64Decoder as
|
|
1991
|
-
getI64Encoder as
|
|
1992
|
-
getStructDecoder as
|
|
1993
|
-
getStructEncoder as
|
|
2016
|
+
combineCodec as combineCodec50,
|
|
2017
|
+
getAddressDecoder as getAddressDecoder27,
|
|
2018
|
+
getAddressEncoder as getAddressEncoder27,
|
|
2019
|
+
getI64Decoder as getI64Decoder25,
|
|
2020
|
+
getI64Encoder as getI64Encoder25,
|
|
2021
|
+
getStructDecoder as getStructDecoder44,
|
|
2022
|
+
getStructEncoder as getStructEncoder44,
|
|
1994
2023
|
getU64Decoder as getU64Decoder18,
|
|
1995
2024
|
getU64Encoder as getU64Encoder18
|
|
1996
2025
|
} from "@solana/kit";
|
|
1997
2026
|
function getUnstakeInitiatedEventEncoder() {
|
|
1998
|
-
return
|
|
1999
|
-
["user",
|
|
2000
|
-
["market",
|
|
2001
|
-
["shareAccount",
|
|
2027
|
+
return getStructEncoder44([
|
|
2028
|
+
["user", getAddressEncoder27()],
|
|
2029
|
+
["market", getAddressEncoder27()],
|
|
2030
|
+
["shareAccount", getAddressEncoder27()],
|
|
2002
2031
|
["unstakeableAtTimestamp", getU64Encoder18()],
|
|
2003
|
-
["timestamp",
|
|
2032
|
+
["timestamp", getI64Encoder25()]
|
|
2004
2033
|
]);
|
|
2005
2034
|
}
|
|
2006
2035
|
function getUnstakeInitiatedEventDecoder() {
|
|
2007
|
-
return
|
|
2008
|
-
["user",
|
|
2009
|
-
["market",
|
|
2010
|
-
["shareAccount",
|
|
2036
|
+
return getStructDecoder44([
|
|
2037
|
+
["user", getAddressDecoder27()],
|
|
2038
|
+
["market", getAddressDecoder27()],
|
|
2039
|
+
["shareAccount", getAddressDecoder27()],
|
|
2011
2040
|
["unstakeableAtTimestamp", getU64Decoder18()],
|
|
2012
|
-
["timestamp",
|
|
2041
|
+
["timestamp", getI64Decoder25()]
|
|
2013
2042
|
]);
|
|
2014
2043
|
}
|
|
2015
2044
|
function getUnstakeInitiatedEventCodec() {
|
|
2016
|
-
return
|
|
2045
|
+
return combineCodec50(
|
|
2017
2046
|
getUnstakeInitiatedEventEncoder(),
|
|
2018
2047
|
getUnstakeInitiatedEventDecoder()
|
|
2019
2048
|
);
|
|
@@ -2021,22 +2050,22 @@ function getUnstakeInitiatedEventCodec() {
|
|
|
2021
2050
|
|
|
2022
2051
|
// src/generated/types/unwrapEncryptedTokensOutput.ts
|
|
2023
2052
|
import {
|
|
2024
|
-
combineCodec as
|
|
2025
|
-
getStructDecoder as
|
|
2026
|
-
getStructEncoder as
|
|
2053
|
+
combineCodec as combineCodec51,
|
|
2054
|
+
getStructDecoder as getStructDecoder45,
|
|
2055
|
+
getStructEncoder as getStructEncoder45
|
|
2027
2056
|
} from "@solana/kit";
|
|
2028
2057
|
function getUnwrapEncryptedTokensOutputEncoder() {
|
|
2029
|
-
return
|
|
2058
|
+
return getStructEncoder45([
|
|
2030
2059
|
["field0", getUnwrapEncryptedTokensOutputStruct0Encoder()]
|
|
2031
2060
|
]);
|
|
2032
2061
|
}
|
|
2033
2062
|
function getUnwrapEncryptedTokensOutputDecoder() {
|
|
2034
|
-
return
|
|
2063
|
+
return getStructDecoder45([
|
|
2035
2064
|
["field0", getUnwrapEncryptedTokensOutputStruct0Decoder()]
|
|
2036
2065
|
]);
|
|
2037
2066
|
}
|
|
2038
2067
|
function getUnwrapEncryptedTokensOutputCodec() {
|
|
2039
|
-
return
|
|
2068
|
+
return combineCodec51(
|
|
2040
2069
|
getUnwrapEncryptedTokensOutputEncoder(),
|
|
2041
2070
|
getUnwrapEncryptedTokensOutputDecoder()
|
|
2042
2071
|
);
|
|
@@ -2044,13 +2073,13 @@ function getUnwrapEncryptedTokensOutputCodec() {
|
|
|
2044
2073
|
|
|
2045
2074
|
// src/generated/types/unwrapEncryptedTokensOutputStruct0.ts
|
|
2046
2075
|
import {
|
|
2047
|
-
combineCodec as
|
|
2076
|
+
combineCodec as combineCodec52,
|
|
2048
2077
|
getArrayDecoder as getArrayDecoder15,
|
|
2049
2078
|
getArrayEncoder as getArrayEncoder15,
|
|
2050
2079
|
getBooleanDecoder as getBooleanDecoder6,
|
|
2051
2080
|
getBooleanEncoder as getBooleanEncoder6,
|
|
2052
|
-
getStructDecoder as
|
|
2053
|
-
getStructEncoder as
|
|
2081
|
+
getStructDecoder as getStructDecoder46,
|
|
2082
|
+
getStructEncoder as getStructEncoder46,
|
|
2054
2083
|
getU128Decoder as getU128Decoder10,
|
|
2055
2084
|
getU128Encoder as getU128Encoder10,
|
|
2056
2085
|
getU64Decoder as getU64Decoder19,
|
|
@@ -2059,12 +2088,12 @@ import {
|
|
|
2059
2088
|
getU8Encoder as getU8Encoder17
|
|
2060
2089
|
} from "@solana/kit";
|
|
2061
2090
|
function getUnwrapEncryptedTokensOutputStruct0Encoder() {
|
|
2062
|
-
return
|
|
2091
|
+
return getStructEncoder46([
|
|
2063
2092
|
["field0", getBooleanEncoder6()],
|
|
2064
2093
|
["field1", getU64Encoder19()],
|
|
2065
2094
|
[
|
|
2066
2095
|
"field2",
|
|
2067
|
-
|
|
2096
|
+
getStructEncoder46([
|
|
2068
2097
|
["encryptionKey", getArrayEncoder15(getU8Encoder17(), { size: 32 })],
|
|
2069
2098
|
["nonce", getU128Encoder10()],
|
|
2070
2099
|
[
|
|
@@ -2078,12 +2107,12 @@ function getUnwrapEncryptedTokensOutputStruct0Encoder() {
|
|
|
2078
2107
|
]);
|
|
2079
2108
|
}
|
|
2080
2109
|
function getUnwrapEncryptedTokensOutputStruct0Decoder() {
|
|
2081
|
-
return
|
|
2110
|
+
return getStructDecoder46([
|
|
2082
2111
|
["field0", getBooleanDecoder6()],
|
|
2083
2112
|
["field1", getU64Decoder19()],
|
|
2084
2113
|
[
|
|
2085
2114
|
"field2",
|
|
2086
|
-
|
|
2115
|
+
getStructDecoder46([
|
|
2087
2116
|
["encryptionKey", getArrayDecoder15(getU8Decoder17(), { size: 32 })],
|
|
2088
2117
|
["nonce", getU128Decoder10()],
|
|
2089
2118
|
[
|
|
@@ -2097,7 +2126,7 @@ function getUnwrapEncryptedTokensOutputStruct0Decoder() {
|
|
|
2097
2126
|
]);
|
|
2098
2127
|
}
|
|
2099
2128
|
function getUnwrapEncryptedTokensOutputStruct0Codec() {
|
|
2100
|
-
return
|
|
2129
|
+
return combineCodec52(
|
|
2101
2130
|
getUnwrapEncryptedTokensOutputStruct0Encoder(),
|
|
2102
2131
|
getUnwrapEncryptedTokensOutputStruct0Decoder()
|
|
2103
2132
|
);
|
|
@@ -2105,16 +2134,16 @@ function getUnwrapEncryptedTokensOutputStruct0Codec() {
|
|
|
2105
2134
|
|
|
2106
2135
|
// src/generated/types/utilityPubkeys.ts
|
|
2107
2136
|
import {
|
|
2108
|
-
combineCodec as
|
|
2137
|
+
combineCodec as combineCodec53,
|
|
2109
2138
|
getArrayDecoder as getArrayDecoder16,
|
|
2110
2139
|
getArrayEncoder as getArrayEncoder16,
|
|
2111
|
-
getStructDecoder as
|
|
2112
|
-
getStructEncoder as
|
|
2140
|
+
getStructDecoder as getStructDecoder47,
|
|
2141
|
+
getStructEncoder as getStructEncoder47,
|
|
2113
2142
|
getU8Decoder as getU8Decoder18,
|
|
2114
2143
|
getU8Encoder as getU8Encoder18
|
|
2115
2144
|
} from "@solana/kit";
|
|
2116
2145
|
function getUtilityPubkeysEncoder() {
|
|
2117
|
-
return
|
|
2146
|
+
return getStructEncoder47([
|
|
2118
2147
|
["x25519Pubkey", getArrayEncoder16(getU8Encoder18(), { size: 32 })],
|
|
2119
2148
|
["ed25519VerifyingKey", getArrayEncoder16(getU8Encoder18(), { size: 32 })],
|
|
2120
2149
|
["elgamalPubkey", getArrayEncoder16(getU8Encoder18(), { size: 32 })],
|
|
@@ -2122,7 +2151,7 @@ function getUtilityPubkeysEncoder() {
|
|
|
2122
2151
|
]);
|
|
2123
2152
|
}
|
|
2124
2153
|
function getUtilityPubkeysDecoder() {
|
|
2125
|
-
return
|
|
2154
|
+
return getStructDecoder47([
|
|
2126
2155
|
["x25519Pubkey", getArrayDecoder16(getU8Decoder18(), { size: 32 })],
|
|
2127
2156
|
["ed25519VerifyingKey", getArrayDecoder16(getU8Decoder18(), { size: 32 })],
|
|
2128
2157
|
["elgamalPubkey", getArrayDecoder16(getU8Decoder18(), { size: 32 })],
|
|
@@ -2130,65 +2159,65 @@ function getUtilityPubkeysDecoder() {
|
|
|
2130
2159
|
]);
|
|
2131
2160
|
}
|
|
2132
2161
|
function getUtilityPubkeysCodec() {
|
|
2133
|
-
return
|
|
2162
|
+
return combineCodec53(getUtilityPubkeysEncoder(), getUtilityPubkeysDecoder());
|
|
2134
2163
|
}
|
|
2135
2164
|
|
|
2136
2165
|
// src/generated/types/winningOption.ts
|
|
2137
2166
|
import {
|
|
2138
|
-
combineCodec as
|
|
2139
|
-
getStructDecoder as
|
|
2140
|
-
getStructEncoder as
|
|
2167
|
+
combineCodec as combineCodec54,
|
|
2168
|
+
getStructDecoder as getStructDecoder48,
|
|
2169
|
+
getStructEncoder as getStructEncoder48,
|
|
2141
2170
|
getU16Decoder as getU16Decoder7,
|
|
2142
2171
|
getU16Encoder as getU16Encoder7,
|
|
2143
2172
|
getU8Decoder as getU8Decoder19,
|
|
2144
2173
|
getU8Encoder as getU8Encoder19
|
|
2145
2174
|
} from "@solana/kit";
|
|
2146
2175
|
function getWinningOptionEncoder() {
|
|
2147
|
-
return
|
|
2176
|
+
return getStructEncoder48([
|
|
2148
2177
|
["optionIndex", getU16Encoder7()],
|
|
2149
2178
|
["rewardPercentage", getU8Encoder19()]
|
|
2150
2179
|
]);
|
|
2151
2180
|
}
|
|
2152
2181
|
function getWinningOptionDecoder() {
|
|
2153
|
-
return
|
|
2182
|
+
return getStructDecoder48([
|
|
2154
2183
|
["optionIndex", getU16Decoder7()],
|
|
2155
2184
|
["rewardPercentage", getU8Decoder19()]
|
|
2156
2185
|
]);
|
|
2157
2186
|
}
|
|
2158
2187
|
function getWinningOptionCodec() {
|
|
2159
|
-
return
|
|
2188
|
+
return combineCodec54(getWinningOptionEncoder(), getWinningOptionDecoder());
|
|
2160
2189
|
}
|
|
2161
2190
|
|
|
2162
2191
|
// src/generated/types/winningOptionsSelectedEvent.ts
|
|
2163
2192
|
import {
|
|
2164
|
-
combineCodec as
|
|
2165
|
-
getAddressDecoder as
|
|
2166
|
-
getAddressEncoder as
|
|
2193
|
+
combineCodec as combineCodec55,
|
|
2194
|
+
getAddressDecoder as getAddressDecoder28,
|
|
2195
|
+
getAddressEncoder as getAddressEncoder28,
|
|
2167
2196
|
getArrayDecoder as getArrayDecoder17,
|
|
2168
2197
|
getArrayEncoder as getArrayEncoder17,
|
|
2169
|
-
getI64Decoder as
|
|
2170
|
-
getI64Encoder as
|
|
2171
|
-
getStructDecoder as
|
|
2172
|
-
getStructEncoder as
|
|
2198
|
+
getI64Decoder as getI64Decoder26,
|
|
2199
|
+
getI64Encoder as getI64Encoder26,
|
|
2200
|
+
getStructDecoder as getStructDecoder49,
|
|
2201
|
+
getStructEncoder as getStructEncoder49
|
|
2173
2202
|
} from "@solana/kit";
|
|
2174
2203
|
function getWinningOptionsSelectedEventEncoder() {
|
|
2175
|
-
return
|
|
2176
|
-
["market",
|
|
2177
|
-
["authority",
|
|
2204
|
+
return getStructEncoder49([
|
|
2205
|
+
["market", getAddressEncoder28()],
|
|
2206
|
+
["authority", getAddressEncoder28()],
|
|
2178
2207
|
["selectedOptions", getArrayEncoder17(getWinningOptionEncoder())],
|
|
2179
|
-
["timestamp",
|
|
2208
|
+
["timestamp", getI64Encoder26()]
|
|
2180
2209
|
]);
|
|
2181
2210
|
}
|
|
2182
2211
|
function getWinningOptionsSelectedEventDecoder() {
|
|
2183
|
-
return
|
|
2184
|
-
["market",
|
|
2185
|
-
["authority",
|
|
2212
|
+
return getStructDecoder49([
|
|
2213
|
+
["market", getAddressDecoder28()],
|
|
2214
|
+
["authority", getAddressDecoder28()],
|
|
2186
2215
|
["selectedOptions", getArrayDecoder17(getWinningOptionDecoder())],
|
|
2187
|
-
["timestamp",
|
|
2216
|
+
["timestamp", getI64Decoder26()]
|
|
2188
2217
|
]);
|
|
2189
2218
|
}
|
|
2190
2219
|
function getWinningOptionsSelectedEventCodec() {
|
|
2191
|
-
return
|
|
2220
|
+
return combineCodec55(
|
|
2192
2221
|
getWinningOptionsSelectedEventEncoder(),
|
|
2193
2222
|
getWinningOptionsSelectedEventDecoder()
|
|
2194
2223
|
);
|
|
@@ -2196,21 +2225,21 @@ function getWinningOptionsSelectedEventCodec() {
|
|
|
2196
2225
|
|
|
2197
2226
|
// src/generated/types/wrapEncryptedTokensOutput.ts
|
|
2198
2227
|
import {
|
|
2199
|
-
combineCodec as
|
|
2228
|
+
combineCodec as combineCodec56,
|
|
2200
2229
|
getArrayDecoder as getArrayDecoder18,
|
|
2201
2230
|
getArrayEncoder as getArrayEncoder18,
|
|
2202
|
-
getStructDecoder as
|
|
2203
|
-
getStructEncoder as
|
|
2231
|
+
getStructDecoder as getStructDecoder50,
|
|
2232
|
+
getStructEncoder as getStructEncoder50,
|
|
2204
2233
|
getU128Decoder as getU128Decoder11,
|
|
2205
2234
|
getU128Encoder as getU128Encoder11,
|
|
2206
2235
|
getU8Decoder as getU8Decoder20,
|
|
2207
2236
|
getU8Encoder as getU8Encoder20
|
|
2208
2237
|
} from "@solana/kit";
|
|
2209
2238
|
function getWrapEncryptedTokensOutputEncoder() {
|
|
2210
|
-
return
|
|
2239
|
+
return getStructEncoder50([
|
|
2211
2240
|
[
|
|
2212
2241
|
"field0",
|
|
2213
|
-
|
|
2242
|
+
getStructEncoder50([
|
|
2214
2243
|
["encryptionKey", getArrayEncoder18(getU8Encoder20(), { size: 32 })],
|
|
2215
2244
|
["nonce", getU128Encoder11()],
|
|
2216
2245
|
[
|
|
@@ -2224,10 +2253,10 @@ function getWrapEncryptedTokensOutputEncoder() {
|
|
|
2224
2253
|
]);
|
|
2225
2254
|
}
|
|
2226
2255
|
function getWrapEncryptedTokensOutputDecoder() {
|
|
2227
|
-
return
|
|
2256
|
+
return getStructDecoder50([
|
|
2228
2257
|
[
|
|
2229
2258
|
"field0",
|
|
2230
|
-
|
|
2259
|
+
getStructDecoder50([
|
|
2231
2260
|
["encryptionKey", getArrayDecoder18(getU8Decoder20(), { size: 32 })],
|
|
2232
2261
|
["nonce", getU128Decoder11()],
|
|
2233
2262
|
[
|
|
@@ -2241,7 +2270,7 @@ function getWrapEncryptedTokensOutputDecoder() {
|
|
|
2241
2270
|
]);
|
|
2242
2271
|
}
|
|
2243
2272
|
function getWrapEncryptedTokensOutputCodec() {
|
|
2244
|
-
return
|
|
2273
|
+
return combineCodec56(
|
|
2245
2274
|
getWrapEncryptedTokensOutputEncoder(),
|
|
2246
2275
|
getWrapEncryptedTokensOutputDecoder()
|
|
2247
2276
|
);
|
|
@@ -2265,7 +2294,7 @@ function getClockAccountDiscriminatorBytes() {
|
|
|
2265
2294
|
}
|
|
2266
2295
|
function getClockAccountEncoder() {
|
|
2267
2296
|
return transformEncoder3(
|
|
2268
|
-
|
|
2297
|
+
getStructEncoder51([
|
|
2269
2298
|
["discriminator", fixEncoderSize3(getBytesEncoder3(), 8)],
|
|
2270
2299
|
["startEpoch", getEpochEncoder()],
|
|
2271
2300
|
["currentEpoch", getEpochEncoder()],
|
|
@@ -2276,7 +2305,7 @@ function getClockAccountEncoder() {
|
|
|
2276
2305
|
);
|
|
2277
2306
|
}
|
|
2278
2307
|
function getClockAccountDecoder() {
|
|
2279
|
-
return
|
|
2308
|
+
return getStructDecoder51([
|
|
2280
2309
|
["discriminator", fixDecoderSize3(getBytesDecoder3(), 8)],
|
|
2281
2310
|
["startEpoch", getEpochDecoder()],
|
|
2282
2311
|
["currentEpoch", getEpochDecoder()],
|
|
@@ -2285,7 +2314,7 @@ function getClockAccountDecoder() {
|
|
|
2285
2314
|
]);
|
|
2286
2315
|
}
|
|
2287
2316
|
function getClockAccountCodec() {
|
|
2288
|
-
return
|
|
2317
|
+
return combineCodec57(getClockAccountEncoder(), getClockAccountDecoder());
|
|
2289
2318
|
}
|
|
2290
2319
|
function decodeClockAccount(encodedAccount) {
|
|
2291
2320
|
return decodeAccount3(
|
|
@@ -2316,14 +2345,14 @@ async function fetchAllMaybeClockAccount(rpc, addresses, config) {
|
|
|
2316
2345
|
import {
|
|
2317
2346
|
assertAccountExists as assertAccountExists4,
|
|
2318
2347
|
assertAccountsExist as assertAccountsExist4,
|
|
2319
|
-
combineCodec as
|
|
2348
|
+
combineCodec as combineCodec58,
|
|
2320
2349
|
decodeAccount as decodeAccount4,
|
|
2321
2350
|
fetchEncodedAccount as fetchEncodedAccount4,
|
|
2322
2351
|
fetchEncodedAccounts as fetchEncodedAccounts4,
|
|
2323
2352
|
fixDecoderSize as fixDecoderSize4,
|
|
2324
2353
|
fixEncoderSize as fixEncoderSize4,
|
|
2325
|
-
getAddressDecoder as
|
|
2326
|
-
getAddressEncoder as
|
|
2354
|
+
getAddressDecoder as getAddressDecoder29,
|
|
2355
|
+
getAddressEncoder as getAddressEncoder29,
|
|
2327
2356
|
getArrayDecoder as getArrayDecoder19,
|
|
2328
2357
|
getArrayEncoder as getArrayEncoder19,
|
|
2329
2358
|
getBooleanDecoder as getBooleanDecoder7,
|
|
@@ -2334,8 +2363,8 @@ import {
|
|
|
2334
2363
|
getDiscriminatedUnionEncoder as getDiscriminatedUnionEncoder2,
|
|
2335
2364
|
getOptionDecoder as getOptionDecoder2,
|
|
2336
2365
|
getOptionEncoder as getOptionEncoder2,
|
|
2337
|
-
getStructDecoder as
|
|
2338
|
-
getStructEncoder as
|
|
2366
|
+
getStructDecoder as getStructDecoder52,
|
|
2367
|
+
getStructEncoder as getStructEncoder52,
|
|
2339
2368
|
getTupleDecoder as getTupleDecoder4,
|
|
2340
2369
|
getTupleEncoder as getTupleEncoder4,
|
|
2341
2370
|
getU16Decoder as getU16Decoder8,
|
|
@@ -2363,10 +2392,10 @@ function getClusterDiscriminatorBytes() {
|
|
|
2363
2392
|
}
|
|
2364
2393
|
function getClusterEncoder() {
|
|
2365
2394
|
return transformEncoder4(
|
|
2366
|
-
|
|
2395
|
+
getStructEncoder52([
|
|
2367
2396
|
["discriminator", fixEncoderSize4(getBytesEncoder4(), 8)],
|
|
2368
2397
|
["tdInfo", getOptionEncoder2(getNodeMetadataEncoder())],
|
|
2369
|
-
["authority", getOptionEncoder2(
|
|
2398
|
+
["authority", getOptionEncoder2(getAddressEncoder29())],
|
|
2370
2399
|
["clusterSize", getU16Encoder8()],
|
|
2371
2400
|
["activation", getActivationEncoder()],
|
|
2372
2401
|
["maxCapacity", getU64Encoder20()],
|
|
@@ -2380,13 +2409,13 @@ function getClusterEncoder() {
|
|
|
2380
2409
|
getDiscriminatedUnionEncoder2([
|
|
2381
2410
|
[
|
|
2382
2411
|
"Set",
|
|
2383
|
-
|
|
2412
|
+
getStructEncoder52([
|
|
2384
2413
|
["fields", getTupleEncoder4([getBN254G2BLSPublicKeyEncoder()])]
|
|
2385
2414
|
])
|
|
2386
2415
|
],
|
|
2387
2416
|
[
|
|
2388
2417
|
"Unset",
|
|
2389
|
-
|
|
2418
|
+
getStructEncoder52([
|
|
2390
2419
|
[
|
|
2391
2420
|
"fields",
|
|
2392
2421
|
getTupleEncoder4([
|
|
@@ -2404,10 +2433,10 @@ function getClusterEncoder() {
|
|
|
2404
2433
|
);
|
|
2405
2434
|
}
|
|
2406
2435
|
function getClusterDecoder() {
|
|
2407
|
-
return
|
|
2436
|
+
return getStructDecoder52([
|
|
2408
2437
|
["discriminator", fixDecoderSize4(getBytesDecoder4(), 8)],
|
|
2409
2438
|
["tdInfo", getOptionDecoder2(getNodeMetadataDecoder())],
|
|
2410
|
-
["authority", getOptionDecoder2(
|
|
2439
|
+
["authority", getOptionDecoder2(getAddressDecoder29())],
|
|
2411
2440
|
["clusterSize", getU16Decoder8()],
|
|
2412
2441
|
["activation", getActivationDecoder()],
|
|
2413
2442
|
["maxCapacity", getU64Decoder20()],
|
|
@@ -2421,13 +2450,13 @@ function getClusterDecoder() {
|
|
|
2421
2450
|
getDiscriminatedUnionDecoder2([
|
|
2422
2451
|
[
|
|
2423
2452
|
"Set",
|
|
2424
|
-
|
|
2453
|
+
getStructDecoder52([
|
|
2425
2454
|
["fields", getTupleDecoder4([getBN254G2BLSPublicKeyDecoder()])]
|
|
2426
2455
|
])
|
|
2427
2456
|
],
|
|
2428
2457
|
[
|
|
2429
2458
|
"Unset",
|
|
2430
|
-
|
|
2459
|
+
getStructDecoder52([
|
|
2431
2460
|
[
|
|
2432
2461
|
"fields",
|
|
2433
2462
|
getTupleDecoder4([
|
|
@@ -2443,7 +2472,7 @@ function getClusterDecoder() {
|
|
|
2443
2472
|
]);
|
|
2444
2473
|
}
|
|
2445
2474
|
function getClusterCodec() {
|
|
2446
|
-
return
|
|
2475
|
+
return combineCodec58(getClusterEncoder(), getClusterDecoder());
|
|
2447
2476
|
}
|
|
2448
2477
|
function decodeCluster(encodedAccount) {
|
|
2449
2478
|
return decodeAccount4(
|
|
@@ -2474,20 +2503,20 @@ async function fetchAllMaybeCluster(rpc, addresses, config) {
|
|
|
2474
2503
|
import {
|
|
2475
2504
|
assertAccountExists as assertAccountExists5,
|
|
2476
2505
|
assertAccountsExist as assertAccountsExist5,
|
|
2477
|
-
combineCodec as
|
|
2506
|
+
combineCodec as combineCodec59,
|
|
2478
2507
|
decodeAccount as decodeAccount5,
|
|
2479
2508
|
fetchEncodedAccount as fetchEncodedAccount5,
|
|
2480
2509
|
fetchEncodedAccounts as fetchEncodedAccounts5,
|
|
2481
2510
|
fixDecoderSize as fixDecoderSize5,
|
|
2482
2511
|
fixEncoderSize as fixEncoderSize5,
|
|
2483
|
-
getAddressDecoder as
|
|
2484
|
-
getAddressEncoder as
|
|
2512
|
+
getAddressDecoder as getAddressDecoder30,
|
|
2513
|
+
getAddressEncoder as getAddressEncoder30,
|
|
2485
2514
|
getBytesDecoder as getBytesDecoder5,
|
|
2486
2515
|
getBytesEncoder as getBytesEncoder5,
|
|
2487
2516
|
getOptionDecoder as getOptionDecoder3,
|
|
2488
2517
|
getOptionEncoder as getOptionEncoder3,
|
|
2489
|
-
getStructDecoder as
|
|
2490
|
-
getStructEncoder as
|
|
2518
|
+
getStructDecoder as getStructDecoder53,
|
|
2519
|
+
getStructEncoder as getStructEncoder53,
|
|
2491
2520
|
getU64Decoder as getU64Decoder21,
|
|
2492
2521
|
getU64Encoder as getU64Encoder21,
|
|
2493
2522
|
getU8Decoder as getU8Decoder23,
|
|
@@ -2511,9 +2540,9 @@ function getComputationDefinitionAccountDiscriminatorBytes() {
|
|
|
2511
2540
|
}
|
|
2512
2541
|
function getComputationDefinitionAccountEncoder() {
|
|
2513
2542
|
return transformEncoder5(
|
|
2514
|
-
|
|
2543
|
+
getStructEncoder53([
|
|
2515
2544
|
["discriminator", fixEncoderSize5(getBytesEncoder5(), 8)],
|
|
2516
|
-
["finalizationAuthority", getOptionEncoder3(
|
|
2545
|
+
["finalizationAuthority", getOptionEncoder3(getAddressEncoder30())],
|
|
2517
2546
|
["cuAmount", getU64Encoder21()],
|
|
2518
2547
|
["definition", getComputationDefinitionMetaEncoder()],
|
|
2519
2548
|
["circuitSource", getCircuitSourceEncoder()],
|
|
@@ -2526,9 +2555,9 @@ function getComputationDefinitionAccountEncoder() {
|
|
|
2526
2555
|
);
|
|
2527
2556
|
}
|
|
2528
2557
|
function getComputationDefinitionAccountDecoder() {
|
|
2529
|
-
return
|
|
2558
|
+
return getStructDecoder53([
|
|
2530
2559
|
["discriminator", fixDecoderSize5(getBytesDecoder5(), 8)],
|
|
2531
|
-
["finalizationAuthority", getOptionDecoder3(
|
|
2560
|
+
["finalizationAuthority", getOptionDecoder3(getAddressDecoder30())],
|
|
2532
2561
|
["cuAmount", getU64Decoder21()],
|
|
2533
2562
|
["definition", getComputationDefinitionMetaDecoder()],
|
|
2534
2563
|
["circuitSource", getCircuitSourceDecoder()],
|
|
@@ -2536,7 +2565,7 @@ function getComputationDefinitionAccountDecoder() {
|
|
|
2536
2565
|
]);
|
|
2537
2566
|
}
|
|
2538
2567
|
function getComputationDefinitionAccountCodec() {
|
|
2539
|
-
return
|
|
2568
|
+
return combineCodec59(
|
|
2540
2569
|
getComputationDefinitionAccountEncoder(),
|
|
2541
2570
|
getComputationDefinitionAccountDecoder()
|
|
2542
2571
|
);
|
|
@@ -2580,14 +2609,14 @@ async function fetchAllMaybeComputationDefinitionAccount(rpc, addresses, config)
|
|
|
2580
2609
|
import {
|
|
2581
2610
|
assertAccountExists as assertAccountExists6,
|
|
2582
2611
|
assertAccountsExist as assertAccountsExist6,
|
|
2583
|
-
combineCodec as
|
|
2612
|
+
combineCodec as combineCodec60,
|
|
2584
2613
|
decodeAccount as decodeAccount6,
|
|
2585
2614
|
fetchEncodedAccount as fetchEncodedAccount6,
|
|
2586
2615
|
fetchEncodedAccounts as fetchEncodedAccounts6,
|
|
2587
2616
|
fixDecoderSize as fixDecoderSize6,
|
|
2588
2617
|
fixEncoderSize as fixEncoderSize6,
|
|
2589
|
-
getAddressDecoder as
|
|
2590
|
-
getAddressEncoder as
|
|
2618
|
+
getAddressDecoder as getAddressDecoder31,
|
|
2619
|
+
getAddressEncoder as getAddressEncoder31,
|
|
2591
2620
|
getArrayDecoder as getArrayDecoder20,
|
|
2592
2621
|
getArrayEncoder as getArrayEncoder20,
|
|
2593
2622
|
getBooleanDecoder as getBooleanDecoder8,
|
|
@@ -2596,8 +2625,8 @@ import {
|
|
|
2596
2625
|
getBytesEncoder as getBytesEncoder6,
|
|
2597
2626
|
getOptionDecoder as getOptionDecoder4,
|
|
2598
2627
|
getOptionEncoder as getOptionEncoder4,
|
|
2599
|
-
getStructDecoder as
|
|
2600
|
-
getStructEncoder as
|
|
2628
|
+
getStructDecoder as getStructDecoder54,
|
|
2629
|
+
getStructEncoder as getStructEncoder54,
|
|
2601
2630
|
getU128Decoder as getU128Decoder12,
|
|
2602
2631
|
getU128Encoder as getU128Encoder12,
|
|
2603
2632
|
getU64Decoder as getU64Decoder22,
|
|
@@ -2623,7 +2652,7 @@ function getEncryptedTokenAccountDiscriminatorBytes() {
|
|
|
2623
2652
|
}
|
|
2624
2653
|
function getEncryptedTokenAccountEncoder() {
|
|
2625
2654
|
return transformEncoder6(
|
|
2626
|
-
|
|
2655
|
+
getStructEncoder54([
|
|
2627
2656
|
["discriminator", fixEncoderSize6(getBytesEncoder6(), 8)],
|
|
2628
2657
|
[
|
|
2629
2658
|
"encryptedState",
|
|
@@ -2633,13 +2662,13 @@ function getEncryptedTokenAccountEncoder() {
|
|
|
2633
2662
|
],
|
|
2634
2663
|
["bump", getU8Encoder24()],
|
|
2635
2664
|
["index", getU64Encoder22()],
|
|
2636
|
-
["owner",
|
|
2665
|
+
["owner", getAddressEncoder31()],
|
|
2637
2666
|
["stateNonce", getU128Encoder12()],
|
|
2638
|
-
["tokenMint",
|
|
2667
|
+
["tokenMint", getAddressEncoder31()],
|
|
2639
2668
|
["userPubkey", getArrayEncoder20(getU8Encoder24(), { size: 32 })],
|
|
2640
2669
|
["locked", getBooleanEncoder8()],
|
|
2641
2670
|
["pendingDeposit", getU64Encoder22()],
|
|
2642
|
-
["rentPayer", getOptionEncoder4(
|
|
2671
|
+
["rentPayer", getOptionEncoder4(getAddressEncoder31())],
|
|
2643
2672
|
["isInitialized", getBooleanEncoder8()]
|
|
2644
2673
|
]),
|
|
2645
2674
|
(value) => ({
|
|
@@ -2649,7 +2678,7 @@ function getEncryptedTokenAccountEncoder() {
|
|
|
2649
2678
|
);
|
|
2650
2679
|
}
|
|
2651
2680
|
function getEncryptedTokenAccountDecoder() {
|
|
2652
|
-
return
|
|
2681
|
+
return getStructDecoder54([
|
|
2653
2682
|
["discriminator", fixDecoderSize6(getBytesDecoder6(), 8)],
|
|
2654
2683
|
[
|
|
2655
2684
|
"encryptedState",
|
|
@@ -2659,18 +2688,18 @@ function getEncryptedTokenAccountDecoder() {
|
|
|
2659
2688
|
],
|
|
2660
2689
|
["bump", getU8Decoder24()],
|
|
2661
2690
|
["index", getU64Decoder22()],
|
|
2662
|
-
["owner",
|
|
2691
|
+
["owner", getAddressDecoder31()],
|
|
2663
2692
|
["stateNonce", getU128Decoder12()],
|
|
2664
|
-
["tokenMint",
|
|
2693
|
+
["tokenMint", getAddressDecoder31()],
|
|
2665
2694
|
["userPubkey", getArrayDecoder20(getU8Decoder24(), { size: 32 })],
|
|
2666
2695
|
["locked", getBooleanDecoder8()],
|
|
2667
2696
|
["pendingDeposit", getU64Decoder22()],
|
|
2668
|
-
["rentPayer", getOptionDecoder4(
|
|
2697
|
+
["rentPayer", getOptionDecoder4(getAddressDecoder31())],
|
|
2669
2698
|
["isInitialized", getBooleanDecoder8()]
|
|
2670
2699
|
]);
|
|
2671
2700
|
}
|
|
2672
2701
|
function getEncryptedTokenAccountCodec() {
|
|
2673
|
-
return
|
|
2702
|
+
return combineCodec60(
|
|
2674
2703
|
getEncryptedTokenAccountEncoder(),
|
|
2675
2704
|
getEncryptedTokenAccountDecoder()
|
|
2676
2705
|
);
|
|
@@ -2714,7 +2743,7 @@ async function fetchAllMaybeEncryptedTokenAccount(rpc, addresses, config) {
|
|
|
2714
2743
|
import {
|
|
2715
2744
|
assertAccountExists as assertAccountExists7,
|
|
2716
2745
|
assertAccountsExist as assertAccountsExist7,
|
|
2717
|
-
combineCodec as
|
|
2746
|
+
combineCodec as combineCodec61,
|
|
2718
2747
|
decodeAccount as decodeAccount7,
|
|
2719
2748
|
fetchEncodedAccount as fetchEncodedAccount7,
|
|
2720
2749
|
fetchEncodedAccounts as fetchEncodedAccounts7,
|
|
@@ -2722,8 +2751,8 @@ import {
|
|
|
2722
2751
|
fixEncoderSize as fixEncoderSize7,
|
|
2723
2752
|
getBytesDecoder as getBytesDecoder7,
|
|
2724
2753
|
getBytesEncoder as getBytesEncoder7,
|
|
2725
|
-
getStructDecoder as
|
|
2726
|
-
getStructEncoder as
|
|
2754
|
+
getStructDecoder as getStructDecoder55,
|
|
2755
|
+
getStructEncoder as getStructEncoder55,
|
|
2727
2756
|
getU8Decoder as getU8Decoder25,
|
|
2728
2757
|
getU8Encoder as getU8Encoder25,
|
|
2729
2758
|
transformEncoder as transformEncoder7
|
|
@@ -2743,7 +2772,7 @@ function getFeePoolDiscriminatorBytes() {
|
|
|
2743
2772
|
}
|
|
2744
2773
|
function getFeePoolEncoder() {
|
|
2745
2774
|
return transformEncoder7(
|
|
2746
|
-
|
|
2775
|
+
getStructEncoder55([
|
|
2747
2776
|
["discriminator", fixEncoderSize7(getBytesEncoder7(), 8)],
|
|
2748
2777
|
["bump", getU8Encoder25()]
|
|
2749
2778
|
]),
|
|
@@ -2751,13 +2780,13 @@ function getFeePoolEncoder() {
|
|
|
2751
2780
|
);
|
|
2752
2781
|
}
|
|
2753
2782
|
function getFeePoolDecoder() {
|
|
2754
|
-
return
|
|
2783
|
+
return getStructDecoder55([
|
|
2755
2784
|
["discriminator", fixDecoderSize7(getBytesDecoder7(), 8)],
|
|
2756
2785
|
["bump", getU8Decoder25()]
|
|
2757
2786
|
]);
|
|
2758
2787
|
}
|
|
2759
2788
|
function getFeePoolCodec() {
|
|
2760
|
-
return
|
|
2789
|
+
return combineCodec61(getFeePoolEncoder(), getFeePoolDecoder());
|
|
2761
2790
|
}
|
|
2762
2791
|
function decodeFeePool(encodedAccount) {
|
|
2763
2792
|
return decodeAccount7(
|
|
@@ -2788,14 +2817,14 @@ async function fetchAllMaybeFeePool(rpc, addresses, config) {
|
|
|
2788
2817
|
import {
|
|
2789
2818
|
assertAccountExists as assertAccountExists8,
|
|
2790
2819
|
assertAccountsExist as assertAccountsExist8,
|
|
2791
|
-
combineCodec as
|
|
2820
|
+
combineCodec as combineCodec62,
|
|
2792
2821
|
decodeAccount as decodeAccount8,
|
|
2793
2822
|
fetchEncodedAccount as fetchEncodedAccount8,
|
|
2794
2823
|
fetchEncodedAccounts as fetchEncodedAccounts8,
|
|
2795
2824
|
fixDecoderSize as fixDecoderSize8,
|
|
2796
2825
|
fixEncoderSize as fixEncoderSize8,
|
|
2797
|
-
getAddressDecoder as
|
|
2798
|
-
getAddressEncoder as
|
|
2826
|
+
getAddressDecoder as getAddressDecoder32,
|
|
2827
|
+
getAddressEncoder as getAddressEncoder32,
|
|
2799
2828
|
getArrayDecoder as getArrayDecoder21,
|
|
2800
2829
|
getArrayEncoder as getArrayEncoder21,
|
|
2801
2830
|
getBooleanDecoder as getBooleanDecoder9,
|
|
@@ -2806,8 +2835,8 @@ import {
|
|
|
2806
2835
|
getDiscriminatedUnionEncoder as getDiscriminatedUnionEncoder3,
|
|
2807
2836
|
getOptionDecoder as getOptionDecoder5,
|
|
2808
2837
|
getOptionEncoder as getOptionEncoder5,
|
|
2809
|
-
getStructDecoder as
|
|
2810
|
-
getStructEncoder as
|
|
2838
|
+
getStructDecoder as getStructDecoder56,
|
|
2839
|
+
getStructEncoder as getStructEncoder56,
|
|
2811
2840
|
getTupleDecoder as getTupleDecoder5,
|
|
2812
2841
|
getTupleEncoder as getTupleEncoder5,
|
|
2813
2842
|
getU32Decoder as getU32Decoder6,
|
|
@@ -2835,25 +2864,25 @@ function getMXEAccountDiscriminatorBytes() {
|
|
|
2835
2864
|
}
|
|
2836
2865
|
function getMXEAccountEncoder() {
|
|
2837
2866
|
return transformEncoder8(
|
|
2838
|
-
|
|
2867
|
+
getStructEncoder56([
|
|
2839
2868
|
["discriminator", fixEncoderSize8(getBytesEncoder8(), 8)],
|
|
2840
2869
|
["cluster", getOptionEncoder5(getU32Encoder6())],
|
|
2841
2870
|
["keygenOffset", getU64Encoder23()],
|
|
2842
2871
|
["keyRecoveryInitOffset", getU64Encoder23()],
|
|
2843
|
-
["mxeProgramId",
|
|
2844
|
-
["authority", getOptionEncoder5(
|
|
2872
|
+
["mxeProgramId", getAddressEncoder32()],
|
|
2873
|
+
["authority", getOptionEncoder5(getAddressEncoder32())],
|
|
2845
2874
|
[
|
|
2846
2875
|
"utilityPubkeys",
|
|
2847
2876
|
getDiscriminatedUnionEncoder3([
|
|
2848
2877
|
[
|
|
2849
2878
|
"Set",
|
|
2850
|
-
|
|
2879
|
+
getStructEncoder56([
|
|
2851
2880
|
["fields", getTupleEncoder5([getUtilityPubkeysEncoder()])]
|
|
2852
2881
|
])
|
|
2853
2882
|
],
|
|
2854
2883
|
[
|
|
2855
2884
|
"Unset",
|
|
2856
|
-
|
|
2885
|
+
getStructEncoder56([
|
|
2857
2886
|
[
|
|
2858
2887
|
"fields",
|
|
2859
2888
|
getTupleEncoder5([
|
|
@@ -2874,25 +2903,25 @@ function getMXEAccountEncoder() {
|
|
|
2874
2903
|
);
|
|
2875
2904
|
}
|
|
2876
2905
|
function getMXEAccountDecoder() {
|
|
2877
|
-
return
|
|
2906
|
+
return getStructDecoder56([
|
|
2878
2907
|
["discriminator", fixDecoderSize8(getBytesDecoder8(), 8)],
|
|
2879
2908
|
["cluster", getOptionDecoder5(getU32Decoder6())],
|
|
2880
2909
|
["keygenOffset", getU64Decoder23()],
|
|
2881
2910
|
["keyRecoveryInitOffset", getU64Decoder23()],
|
|
2882
|
-
["mxeProgramId",
|
|
2883
|
-
["authority", getOptionDecoder5(
|
|
2911
|
+
["mxeProgramId", getAddressDecoder32()],
|
|
2912
|
+
["authority", getOptionDecoder5(getAddressDecoder32())],
|
|
2884
2913
|
[
|
|
2885
2914
|
"utilityPubkeys",
|
|
2886
2915
|
getDiscriminatedUnionDecoder3([
|
|
2887
2916
|
[
|
|
2888
2917
|
"Set",
|
|
2889
|
-
|
|
2918
|
+
getStructDecoder56([
|
|
2890
2919
|
["fields", getTupleDecoder5([getUtilityPubkeysDecoder()])]
|
|
2891
2920
|
])
|
|
2892
2921
|
],
|
|
2893
2922
|
[
|
|
2894
2923
|
"Unset",
|
|
2895
|
-
|
|
2924
|
+
getStructDecoder56([
|
|
2896
2925
|
[
|
|
2897
2926
|
"fields",
|
|
2898
2927
|
getTupleDecoder5([
|
|
@@ -2911,7 +2940,7 @@ function getMXEAccountDecoder() {
|
|
|
2911
2940
|
]);
|
|
2912
2941
|
}
|
|
2913
2942
|
function getMXEAccountCodec() {
|
|
2914
|
-
return
|
|
2943
|
+
return combineCodec62(getMXEAccountEncoder(), getMXEAccountDecoder());
|
|
2915
2944
|
}
|
|
2916
2945
|
function decodeMXEAccount(encodedAccount) {
|
|
2917
2946
|
return decodeAccount8(
|
|
@@ -2942,14 +2971,14 @@ async function fetchAllMaybeMXEAccount(rpc, addresses, config) {
|
|
|
2942
2971
|
import {
|
|
2943
2972
|
assertAccountExists as assertAccountExists9,
|
|
2944
2973
|
assertAccountsExist as assertAccountsExist9,
|
|
2945
|
-
combineCodec as
|
|
2974
|
+
combineCodec as combineCodec63,
|
|
2946
2975
|
decodeAccount as decodeAccount9,
|
|
2947
2976
|
fetchEncodedAccount as fetchEncodedAccount9,
|
|
2948
2977
|
fetchEncodedAccounts as fetchEncodedAccounts9,
|
|
2949
2978
|
fixDecoderSize as fixDecoderSize9,
|
|
2950
2979
|
fixEncoderSize as fixEncoderSize9,
|
|
2951
|
-
getAddressDecoder as
|
|
2952
|
-
getAddressEncoder as
|
|
2980
|
+
getAddressDecoder as getAddressDecoder33,
|
|
2981
|
+
getAddressEncoder as getAddressEncoder33,
|
|
2953
2982
|
getArrayDecoder as getArrayDecoder22,
|
|
2954
2983
|
getArrayEncoder as getArrayEncoder22,
|
|
2955
2984
|
getBooleanDecoder as getBooleanDecoder10,
|
|
@@ -2958,8 +2987,8 @@ import {
|
|
|
2958
2987
|
getBytesEncoder as getBytesEncoder9,
|
|
2959
2988
|
getOptionDecoder as getOptionDecoder6,
|
|
2960
2989
|
getOptionEncoder as getOptionEncoder6,
|
|
2961
|
-
getStructDecoder as
|
|
2962
|
-
getStructEncoder as
|
|
2990
|
+
getStructDecoder as getStructDecoder57,
|
|
2991
|
+
getStructEncoder as getStructEncoder57,
|
|
2963
2992
|
getU16Decoder as getU16Decoder9,
|
|
2964
2993
|
getU16Encoder as getU16Encoder9,
|
|
2965
2994
|
getU64Decoder as getU64Decoder24,
|
|
@@ -2985,10 +3014,10 @@ function getOpportunityMarketDiscriminatorBytes() {
|
|
|
2985
3014
|
}
|
|
2986
3015
|
function getOpportunityMarketEncoder() {
|
|
2987
3016
|
return transformEncoder9(
|
|
2988
|
-
|
|
3017
|
+
getStructEncoder57([
|
|
2989
3018
|
["discriminator", fixEncoderSize9(getBytesEncoder9(), 8)],
|
|
2990
3019
|
["bump", getU8Encoder27()],
|
|
2991
|
-
["creator",
|
|
3020
|
+
["creator", getAddressEncoder33()],
|
|
2992
3021
|
["index", getU64Encoder24()],
|
|
2993
3022
|
["totalOptions", getU16Encoder9()],
|
|
2994
3023
|
["openTimestamp", getOptionEncoder6(getU64Encoder24())],
|
|
@@ -2999,8 +3028,8 @@ function getOpportunityMarketEncoder() {
|
|
|
2999
3028
|
getOptionEncoder6(getArrayEncoder22(getWinningOptionEncoder()))
|
|
3000
3029
|
],
|
|
3001
3030
|
["rewardAmount", getU64Encoder24()],
|
|
3002
|
-
["marketAuthority", getOptionEncoder6(
|
|
3003
|
-
["mint",
|
|
3031
|
+
["marketAuthority", getOptionEncoder6(getAddressEncoder33())],
|
|
3032
|
+
["mint", getAddressEncoder33()],
|
|
3004
3033
|
["earlinessCutoffSeconds", getU64Encoder24()],
|
|
3005
3034
|
["unstakeDelaySeconds", getU64Encoder24()],
|
|
3006
3035
|
["authorizedReaderPubkey", getArrayEncoder22(getU8Encoder27(), { size: 32 })],
|
|
@@ -3010,10 +3039,10 @@ function getOpportunityMarketEncoder() {
|
|
|
3010
3039
|
);
|
|
3011
3040
|
}
|
|
3012
3041
|
function getOpportunityMarketDecoder() {
|
|
3013
|
-
return
|
|
3042
|
+
return getStructDecoder57([
|
|
3014
3043
|
["discriminator", fixDecoderSize9(getBytesDecoder9(), 8)],
|
|
3015
3044
|
["bump", getU8Decoder27()],
|
|
3016
|
-
["creator",
|
|
3045
|
+
["creator", getAddressDecoder33()],
|
|
3017
3046
|
["index", getU64Decoder24()],
|
|
3018
3047
|
["totalOptions", getU16Decoder9()],
|
|
3019
3048
|
["openTimestamp", getOptionDecoder6(getU64Decoder24())],
|
|
@@ -3024,8 +3053,8 @@ function getOpportunityMarketDecoder() {
|
|
|
3024
3053
|
getOptionDecoder6(getArrayDecoder22(getWinningOptionDecoder()))
|
|
3025
3054
|
],
|
|
3026
3055
|
["rewardAmount", getU64Decoder24()],
|
|
3027
|
-
["marketAuthority", getOptionDecoder6(
|
|
3028
|
-
["mint",
|
|
3056
|
+
["marketAuthority", getOptionDecoder6(getAddressDecoder33())],
|
|
3057
|
+
["mint", getAddressDecoder33()],
|
|
3029
3058
|
["earlinessCutoffSeconds", getU64Decoder24()],
|
|
3030
3059
|
["unstakeDelaySeconds", getU64Decoder24()],
|
|
3031
3060
|
["authorizedReaderPubkey", getArrayDecoder22(getU8Decoder27(), { size: 32 })],
|
|
@@ -3033,7 +3062,7 @@ function getOpportunityMarketDecoder() {
|
|
|
3033
3062
|
]);
|
|
3034
3063
|
}
|
|
3035
3064
|
function getOpportunityMarketCodec() {
|
|
3036
|
-
return
|
|
3065
|
+
return combineCodec63(
|
|
3037
3066
|
getOpportunityMarketEncoder(),
|
|
3038
3067
|
getOpportunityMarketDecoder()
|
|
3039
3068
|
);
|
|
@@ -3075,22 +3104,22 @@ import {
|
|
|
3075
3104
|
addEncoderSizePrefix as addEncoderSizePrefix3,
|
|
3076
3105
|
assertAccountExists as assertAccountExists10,
|
|
3077
3106
|
assertAccountsExist as assertAccountsExist10,
|
|
3078
|
-
combineCodec as
|
|
3107
|
+
combineCodec as combineCodec64,
|
|
3079
3108
|
decodeAccount as decodeAccount10,
|
|
3080
3109
|
fetchEncodedAccount as fetchEncodedAccount10,
|
|
3081
3110
|
fetchEncodedAccounts as fetchEncodedAccounts10,
|
|
3082
3111
|
fixDecoderSize as fixDecoderSize10,
|
|
3083
3112
|
fixEncoderSize as fixEncoderSize10,
|
|
3084
|
-
getAddressDecoder as
|
|
3085
|
-
getAddressEncoder as
|
|
3113
|
+
getAddressDecoder as getAddressDecoder34,
|
|
3114
|
+
getAddressEncoder as getAddressEncoder34,
|
|
3086
3115
|
getBooleanDecoder as getBooleanDecoder11,
|
|
3087
3116
|
getBooleanEncoder as getBooleanEncoder11,
|
|
3088
3117
|
getBytesDecoder as getBytesDecoder10,
|
|
3089
3118
|
getBytesEncoder as getBytesEncoder10,
|
|
3090
3119
|
getOptionDecoder as getOptionDecoder7,
|
|
3091
3120
|
getOptionEncoder as getOptionEncoder7,
|
|
3092
|
-
getStructDecoder as
|
|
3093
|
-
getStructEncoder as
|
|
3121
|
+
getStructDecoder as getStructDecoder58,
|
|
3122
|
+
getStructEncoder as getStructEncoder58,
|
|
3094
3123
|
getU16Decoder as getU16Decoder10,
|
|
3095
3124
|
getU16Encoder as getU16Encoder10,
|
|
3096
3125
|
getU32Decoder as getU32Decoder7,
|
|
@@ -3120,10 +3149,10 @@ function getOpportunityMarketOptionDiscriminatorBytes() {
|
|
|
3120
3149
|
}
|
|
3121
3150
|
function getOpportunityMarketOptionEncoder() {
|
|
3122
3151
|
return transformEncoder10(
|
|
3123
|
-
|
|
3152
|
+
getStructEncoder58([
|
|
3124
3153
|
["discriminator", fixEncoderSize10(getBytesEncoder10(), 8)],
|
|
3125
3154
|
["bump", getU8Encoder28()],
|
|
3126
|
-
["creator",
|
|
3155
|
+
["creator", getAddressEncoder34()],
|
|
3127
3156
|
["index", getU16Encoder10()],
|
|
3128
3157
|
["name", addEncoderSizePrefix3(getUtf8Encoder3(), getU32Encoder7())],
|
|
3129
3158
|
["totalShares", getOptionEncoder7(getU64Encoder25())],
|
|
@@ -3137,10 +3166,10 @@ function getOpportunityMarketOptionEncoder() {
|
|
|
3137
3166
|
);
|
|
3138
3167
|
}
|
|
3139
3168
|
function getOpportunityMarketOptionDecoder() {
|
|
3140
|
-
return
|
|
3169
|
+
return getStructDecoder58([
|
|
3141
3170
|
["discriminator", fixDecoderSize10(getBytesDecoder10(), 8)],
|
|
3142
3171
|
["bump", getU8Decoder28()],
|
|
3143
|
-
["creator",
|
|
3172
|
+
["creator", getAddressDecoder34()],
|
|
3144
3173
|
["index", getU16Decoder10()],
|
|
3145
3174
|
["name", addDecoderSizePrefix3(getUtf8Decoder3(), getU32Decoder7())],
|
|
3146
3175
|
["totalShares", getOptionDecoder7(getU64Decoder25())],
|
|
@@ -3149,7 +3178,7 @@ function getOpportunityMarketOptionDecoder() {
|
|
|
3149
3178
|
]);
|
|
3150
3179
|
}
|
|
3151
3180
|
function getOpportunityMarketOptionCodec() {
|
|
3152
|
-
return
|
|
3181
|
+
return combineCodec64(
|
|
3153
3182
|
getOpportunityMarketOptionEncoder(),
|
|
3154
3183
|
getOpportunityMarketOptionDecoder()
|
|
3155
3184
|
);
|
|
@@ -3193,14 +3222,14 @@ async function fetchAllMaybeOpportunityMarketOption(rpc, addresses, config) {
|
|
|
3193
3222
|
import {
|
|
3194
3223
|
assertAccountExists as assertAccountExists11,
|
|
3195
3224
|
assertAccountsExist as assertAccountsExist11,
|
|
3196
|
-
combineCodec as
|
|
3225
|
+
combineCodec as combineCodec65,
|
|
3197
3226
|
decodeAccount as decodeAccount11,
|
|
3198
3227
|
fetchEncodedAccount as fetchEncodedAccount11,
|
|
3199
3228
|
fetchEncodedAccounts as fetchEncodedAccounts11,
|
|
3200
3229
|
fixDecoderSize as fixDecoderSize11,
|
|
3201
3230
|
fixEncoderSize as fixEncoderSize11,
|
|
3202
|
-
getAddressDecoder as
|
|
3203
|
-
getAddressEncoder as
|
|
3231
|
+
getAddressDecoder as getAddressDecoder35,
|
|
3232
|
+
getAddressEncoder as getAddressEncoder35,
|
|
3204
3233
|
getArrayDecoder as getArrayDecoder23,
|
|
3205
3234
|
getArrayEncoder as getArrayEncoder23,
|
|
3206
3235
|
getBooleanDecoder as getBooleanDecoder12,
|
|
@@ -3209,8 +3238,8 @@ import {
|
|
|
3209
3238
|
getBytesEncoder as getBytesEncoder11,
|
|
3210
3239
|
getOptionDecoder as getOptionDecoder8,
|
|
3211
3240
|
getOptionEncoder as getOptionEncoder8,
|
|
3212
|
-
getStructDecoder as
|
|
3213
|
-
getStructEncoder as
|
|
3241
|
+
getStructDecoder as getStructDecoder59,
|
|
3242
|
+
getStructEncoder as getStructEncoder59,
|
|
3214
3243
|
getU128Decoder as getU128Decoder13,
|
|
3215
3244
|
getU128Encoder as getU128Encoder13,
|
|
3216
3245
|
getU16Decoder as getU16Decoder11,
|
|
@@ -3238,7 +3267,7 @@ function getShareAccountDiscriminatorBytes() {
|
|
|
3238
3267
|
}
|
|
3239
3268
|
function getShareAccountEncoder() {
|
|
3240
3269
|
return transformEncoder11(
|
|
3241
|
-
|
|
3270
|
+
getStructEncoder59([
|
|
3242
3271
|
["discriminator", fixEncoderSize11(getBytesEncoder11(), 8)],
|
|
3243
3272
|
[
|
|
3244
3273
|
"encryptedState",
|
|
@@ -3248,8 +3277,8 @@ function getShareAccountEncoder() {
|
|
|
3248
3277
|
],
|
|
3249
3278
|
["stateNonce", getU128Encoder13()],
|
|
3250
3279
|
["bump", getU8Encoder29()],
|
|
3251
|
-
["owner",
|
|
3252
|
-
["market",
|
|
3280
|
+
["owner", getAddressEncoder35()],
|
|
3281
|
+
["market", getAddressEncoder35()],
|
|
3253
3282
|
[
|
|
3254
3283
|
"encryptedStateDisclosure",
|
|
3255
3284
|
getArrayEncoder23(getArrayEncoder23(getU8Encoder29(), { size: 32 }), {
|
|
@@ -3270,7 +3299,7 @@ function getShareAccountEncoder() {
|
|
|
3270
3299
|
);
|
|
3271
3300
|
}
|
|
3272
3301
|
function getShareAccountDecoder() {
|
|
3273
|
-
return
|
|
3302
|
+
return getStructDecoder59([
|
|
3274
3303
|
["discriminator", fixDecoderSize11(getBytesDecoder11(), 8)],
|
|
3275
3304
|
[
|
|
3276
3305
|
"encryptedState",
|
|
@@ -3280,8 +3309,8 @@ function getShareAccountDecoder() {
|
|
|
3280
3309
|
],
|
|
3281
3310
|
["stateNonce", getU128Decoder13()],
|
|
3282
3311
|
["bump", getU8Decoder29()],
|
|
3283
|
-
["owner",
|
|
3284
|
-
["market",
|
|
3312
|
+
["owner", getAddressDecoder35()],
|
|
3313
|
+
["market", getAddressDecoder35()],
|
|
3285
3314
|
[
|
|
3286
3315
|
"encryptedStateDisclosure",
|
|
3287
3316
|
getArrayDecoder23(getArrayDecoder23(getU8Decoder29(), { size: 32 }), {
|
|
@@ -3300,7 +3329,7 @@ function getShareAccountDecoder() {
|
|
|
3300
3329
|
]);
|
|
3301
3330
|
}
|
|
3302
3331
|
function getShareAccountCodec() {
|
|
3303
|
-
return
|
|
3332
|
+
return combineCodec65(getShareAccountEncoder(), getShareAccountDecoder());
|
|
3304
3333
|
}
|
|
3305
3334
|
function decodeShareAccount(encodedAccount) {
|
|
3306
3335
|
return decodeAccount11(
|
|
@@ -3331,18 +3360,18 @@ async function fetchAllMaybeShareAccount(rpc, addresses, config) {
|
|
|
3331
3360
|
import {
|
|
3332
3361
|
assertAccountExists as assertAccountExists12,
|
|
3333
3362
|
assertAccountsExist as assertAccountsExist12,
|
|
3334
|
-
combineCodec as
|
|
3363
|
+
combineCodec as combineCodec66,
|
|
3335
3364
|
decodeAccount as decodeAccount12,
|
|
3336
3365
|
fetchEncodedAccount as fetchEncodedAccount12,
|
|
3337
3366
|
fetchEncodedAccounts as fetchEncodedAccounts12,
|
|
3338
3367
|
fixDecoderSize as fixDecoderSize12,
|
|
3339
3368
|
fixEncoderSize as fixEncoderSize12,
|
|
3340
|
-
getAddressDecoder as
|
|
3341
|
-
getAddressEncoder as
|
|
3369
|
+
getAddressDecoder as getAddressDecoder36,
|
|
3370
|
+
getAddressEncoder as getAddressEncoder36,
|
|
3342
3371
|
getBytesDecoder as getBytesDecoder12,
|
|
3343
3372
|
getBytesEncoder as getBytesEncoder12,
|
|
3344
|
-
getStructDecoder as
|
|
3345
|
-
getStructEncoder as
|
|
3373
|
+
getStructDecoder as getStructDecoder60,
|
|
3374
|
+
getStructEncoder as getStructEncoder60,
|
|
3346
3375
|
getU16Decoder as getU16Decoder12,
|
|
3347
3376
|
getU16Encoder as getU16Encoder12,
|
|
3348
3377
|
getU64Decoder as getU64Decoder27,
|
|
@@ -3366,11 +3395,11 @@ function getTokenVaultDiscriminatorBytes() {
|
|
|
3366
3395
|
}
|
|
3367
3396
|
function getTokenVaultEncoder() {
|
|
3368
3397
|
return transformEncoder12(
|
|
3369
|
-
|
|
3398
|
+
getStructEncoder60([
|
|
3370
3399
|
["discriminator", fixEncoderSize12(getBytesEncoder12(), 8)],
|
|
3371
3400
|
["bump", getU8Encoder30()],
|
|
3372
|
-
["fundManager",
|
|
3373
|
-
["mint",
|
|
3401
|
+
["fundManager", getAddressEncoder36()],
|
|
3402
|
+
["mint", getAddressEncoder36()],
|
|
3374
3403
|
["collectedFees", getU64Encoder27()],
|
|
3375
3404
|
["protocolFeeBp", getU16Encoder12()]
|
|
3376
3405
|
]),
|
|
@@ -3378,17 +3407,17 @@ function getTokenVaultEncoder() {
|
|
|
3378
3407
|
);
|
|
3379
3408
|
}
|
|
3380
3409
|
function getTokenVaultDecoder() {
|
|
3381
|
-
return
|
|
3410
|
+
return getStructDecoder60([
|
|
3382
3411
|
["discriminator", fixDecoderSize12(getBytesDecoder12(), 8)],
|
|
3383
3412
|
["bump", getU8Decoder30()],
|
|
3384
|
-
["fundManager",
|
|
3385
|
-
["mint",
|
|
3413
|
+
["fundManager", getAddressDecoder36()],
|
|
3414
|
+
["mint", getAddressDecoder36()],
|
|
3386
3415
|
["collectedFees", getU64Decoder27()],
|
|
3387
3416
|
["protocolFeeBp", getU16Decoder12()]
|
|
3388
3417
|
]);
|
|
3389
3418
|
}
|
|
3390
3419
|
function getTokenVaultCodec() {
|
|
3391
|
-
return
|
|
3420
|
+
return combineCodec66(getTokenVaultEncoder(), getTokenVaultDecoder());
|
|
3392
3421
|
}
|
|
3393
3422
|
function decodeTokenVault(encodedAccount) {
|
|
3394
3423
|
return decodeAccount12(
|
|
@@ -4041,17 +4070,17 @@ function isOpportunityMarketError(error, transactionMessage, code) {
|
|
|
4041
4070
|
import {
|
|
4042
4071
|
addDecoderSizePrefix as addDecoderSizePrefix4,
|
|
4043
4072
|
addEncoderSizePrefix as addEncoderSizePrefix4,
|
|
4044
|
-
combineCodec as
|
|
4073
|
+
combineCodec as combineCodec67,
|
|
4045
4074
|
fixDecoderSize as fixDecoderSize13,
|
|
4046
4075
|
fixEncoderSize as fixEncoderSize14,
|
|
4047
|
-
getAddressEncoder as
|
|
4076
|
+
getAddressEncoder as getAddressEncoder37,
|
|
4048
4077
|
getArrayDecoder as getArrayDecoder24,
|
|
4049
4078
|
getArrayEncoder as getArrayEncoder24,
|
|
4050
4079
|
getBytesDecoder as getBytesDecoder13,
|
|
4051
4080
|
getBytesEncoder as getBytesEncoder14,
|
|
4052
4081
|
getProgramDerivedAddress,
|
|
4053
|
-
getStructDecoder as
|
|
4054
|
-
getStructEncoder as
|
|
4082
|
+
getStructDecoder as getStructDecoder61,
|
|
4083
|
+
getStructEncoder as getStructEncoder61,
|
|
4055
4084
|
getU128Decoder as getU128Decoder14,
|
|
4056
4085
|
getU128Encoder as getU128Encoder14,
|
|
4057
4086
|
getU16Decoder as getU16Decoder13,
|
|
@@ -4131,7 +4160,7 @@ function getAddMarketOptionDiscriminatorBytes() {
|
|
|
4131
4160
|
}
|
|
4132
4161
|
function getAddMarketOptionInstructionDataEncoder() {
|
|
4133
4162
|
return transformEncoder13(
|
|
4134
|
-
|
|
4163
|
+
getStructEncoder61([
|
|
4135
4164
|
["discriminator", fixEncoderSize14(getBytesEncoder14(), 8)],
|
|
4136
4165
|
["computationOffset", getU64Encoder28()],
|
|
4137
4166
|
["optionIndex", getU16Encoder13()],
|
|
@@ -4145,7 +4174,7 @@ function getAddMarketOptionInstructionDataEncoder() {
|
|
|
4145
4174
|
);
|
|
4146
4175
|
}
|
|
4147
4176
|
function getAddMarketOptionInstructionDataDecoder() {
|
|
4148
|
-
return
|
|
4177
|
+
return getStructDecoder61([
|
|
4149
4178
|
["discriminator", fixDecoderSize13(getBytesDecoder13(), 8)],
|
|
4150
4179
|
["computationOffset", getU64Decoder28()],
|
|
4151
4180
|
["optionIndex", getU16Decoder13()],
|
|
@@ -4157,7 +4186,7 @@ function getAddMarketOptionInstructionDataDecoder() {
|
|
|
4157
4186
|
]);
|
|
4158
4187
|
}
|
|
4159
4188
|
function getAddMarketOptionInstructionDataCodec() {
|
|
4160
|
-
return
|
|
4189
|
+
return combineCodec67(
|
|
4161
4190
|
getAddMarketOptionInstructionDataEncoder(),
|
|
4162
4191
|
getAddMarketOptionInstructionDataDecoder()
|
|
4163
4192
|
);
|
|
@@ -4219,7 +4248,7 @@ async function getAddMarketOptionInstructionAsync(input, config) {
|
|
|
4219
4248
|
getBytesEncoder14().encode(
|
|
4220
4249
|
new Uint8Array([111, 112, 116, 105, 111, 110])
|
|
4221
4250
|
),
|
|
4222
|
-
|
|
4251
|
+
getAddressEncoder37().encode(expectAddress(accounts.market.value)),
|
|
4223
4252
|
getU16Encoder13().encode(expectSome(args.optionIndex))
|
|
4224
4253
|
]
|
|
4225
4254
|
});
|
|
@@ -4245,8 +4274,8 @@ async function getAddMarketOptionInstructionAsync(input, config) {
|
|
|
4245
4274
|
116
|
|
4246
4275
|
])
|
|
4247
4276
|
),
|
|
4248
|
-
|
|
4249
|
-
|
|
4277
|
+
getAddressEncoder37().encode(expectAddress(accounts.creator.value)),
|
|
4278
|
+
getAddressEncoder37().encode(expectAddress(accounts.market.value)),
|
|
4250
4279
|
getU32Encoder8().encode(expectSome(args.shareAccountId))
|
|
4251
4280
|
]
|
|
4252
4281
|
});
|
|
@@ -4424,15 +4453,15 @@ function parseAddMarketOptionInstruction(instruction) {
|
|
|
4424
4453
|
import {
|
|
4425
4454
|
addDecoderSizePrefix as addDecoderSizePrefix5,
|
|
4426
4455
|
addEncoderSizePrefix as addEncoderSizePrefix5,
|
|
4427
|
-
combineCodec as
|
|
4456
|
+
combineCodec as combineCodec68,
|
|
4428
4457
|
fixDecoderSize as fixDecoderSize14,
|
|
4429
4458
|
fixEncoderSize as fixEncoderSize15,
|
|
4430
|
-
getAddressEncoder as
|
|
4459
|
+
getAddressEncoder as getAddressEncoder38,
|
|
4431
4460
|
getBytesDecoder as getBytesDecoder14,
|
|
4432
4461
|
getBytesEncoder as getBytesEncoder15,
|
|
4433
4462
|
getProgramDerivedAddress as getProgramDerivedAddress2,
|
|
4434
|
-
getStructDecoder as
|
|
4435
|
-
getStructEncoder as
|
|
4463
|
+
getStructDecoder as getStructDecoder62,
|
|
4464
|
+
getStructEncoder as getStructEncoder62,
|
|
4436
4465
|
getU16Decoder as getU16Decoder14,
|
|
4437
4466
|
getU16Encoder as getU16Encoder14,
|
|
4438
4467
|
getU32Decoder as getU32Decoder9,
|
|
@@ -4458,7 +4487,7 @@ function getAddMarketOptionAsCreatorDiscriminatorBytes() {
|
|
|
4458
4487
|
}
|
|
4459
4488
|
function getAddMarketOptionAsCreatorInstructionDataEncoder() {
|
|
4460
4489
|
return transformEncoder14(
|
|
4461
|
-
|
|
4490
|
+
getStructEncoder62([
|
|
4462
4491
|
["discriminator", fixEncoderSize15(getBytesEncoder15(), 8)],
|
|
4463
4492
|
["optionIndex", getU16Encoder14()],
|
|
4464
4493
|
["name", addEncoderSizePrefix5(getUtf8Encoder5(), getU32Encoder9())]
|
|
@@ -4470,14 +4499,14 @@ function getAddMarketOptionAsCreatorInstructionDataEncoder() {
|
|
|
4470
4499
|
);
|
|
4471
4500
|
}
|
|
4472
4501
|
function getAddMarketOptionAsCreatorInstructionDataDecoder() {
|
|
4473
|
-
return
|
|
4502
|
+
return getStructDecoder62([
|
|
4474
4503
|
["discriminator", fixDecoderSize14(getBytesDecoder14(), 8)],
|
|
4475
4504
|
["optionIndex", getU16Decoder14()],
|
|
4476
4505
|
["name", addDecoderSizePrefix5(getUtf8Decoder5(), getU32Decoder9())]
|
|
4477
4506
|
]);
|
|
4478
4507
|
}
|
|
4479
4508
|
function getAddMarketOptionAsCreatorInstructionDataCodec() {
|
|
4480
|
-
return
|
|
4509
|
+
return combineCodec68(
|
|
4481
4510
|
getAddMarketOptionAsCreatorInstructionDataEncoder(),
|
|
4482
4511
|
getAddMarketOptionAsCreatorInstructionDataDecoder()
|
|
4483
4512
|
);
|
|
@@ -4499,7 +4528,7 @@ async function getAddMarketOptionAsCreatorInstructionAsync(input, config) {
|
|
|
4499
4528
|
getBytesEncoder15().encode(
|
|
4500
4529
|
new Uint8Array([111, 112, 116, 105, 111, 110])
|
|
4501
4530
|
),
|
|
4502
|
-
|
|
4531
|
+
getAddressEncoder38().encode(expectAddress(accounts.market.value)),
|
|
4503
4532
|
getU16Encoder14().encode(expectSome(args.optionIndex))
|
|
4504
4533
|
]
|
|
4505
4534
|
});
|
|
@@ -4574,7 +4603,7 @@ function parseAddMarketOptionAsCreatorInstruction(instruction) {
|
|
|
4574
4603
|
|
|
4575
4604
|
// src/generated/instructions/addOptionStakeCallback.ts
|
|
4576
4605
|
import {
|
|
4577
|
-
combineCodec as
|
|
4606
|
+
combineCodec as combineCodec69,
|
|
4578
4607
|
fixDecoderSize as fixDecoderSize15,
|
|
4579
4608
|
fixEncoderSize as fixEncoderSize16,
|
|
4580
4609
|
getArrayDecoder as getArrayDecoder25,
|
|
@@ -4583,8 +4612,8 @@ import {
|
|
|
4583
4612
|
getBytesEncoder as getBytesEncoder16,
|
|
4584
4613
|
getDiscriminatedUnionDecoder as getDiscriminatedUnionDecoder4,
|
|
4585
4614
|
getDiscriminatedUnionEncoder as getDiscriminatedUnionEncoder4,
|
|
4586
|
-
getStructDecoder as
|
|
4587
|
-
getStructEncoder as
|
|
4615
|
+
getStructDecoder as getStructDecoder63,
|
|
4616
|
+
getStructEncoder as getStructEncoder63,
|
|
4588
4617
|
getTupleDecoder as getTupleDecoder6,
|
|
4589
4618
|
getTupleEncoder as getTupleEncoder6,
|
|
4590
4619
|
getU8Decoder as getU8Decoder32,
|
|
@@ -4610,14 +4639,14 @@ function getAddOptionStakeCallbackDiscriminatorBytes() {
|
|
|
4610
4639
|
}
|
|
4611
4640
|
function getAddOptionStakeCallbackInstructionDataEncoder() {
|
|
4612
4641
|
return transformEncoder15(
|
|
4613
|
-
|
|
4642
|
+
getStructEncoder63([
|
|
4614
4643
|
["discriminator", fixEncoderSize16(getBytesEncoder16(), 8)],
|
|
4615
4644
|
[
|
|
4616
4645
|
"output",
|
|
4617
4646
|
getDiscriminatedUnionEncoder4([
|
|
4618
4647
|
[
|
|
4619
4648
|
"Success",
|
|
4620
|
-
|
|
4649
|
+
getStructEncoder63([
|
|
4621
4650
|
[
|
|
4622
4651
|
"fields",
|
|
4623
4652
|
getTupleEncoder6([
|
|
@@ -4630,7 +4659,7 @@ function getAddOptionStakeCallbackInstructionDataEncoder() {
|
|
|
4630
4659
|
["Failure", getUnitEncoder()],
|
|
4631
4660
|
[
|
|
4632
4661
|
"MarkerForIdlBuildDoNotUseThis",
|
|
4633
|
-
|
|
4662
|
+
getStructEncoder63([
|
|
4634
4663
|
["fields", getTupleEncoder6([getAddOptionStakeOutputEncoder()])]
|
|
4635
4664
|
])
|
|
4636
4665
|
]
|
|
@@ -4644,14 +4673,14 @@ function getAddOptionStakeCallbackInstructionDataEncoder() {
|
|
|
4644
4673
|
);
|
|
4645
4674
|
}
|
|
4646
4675
|
function getAddOptionStakeCallbackInstructionDataDecoder() {
|
|
4647
|
-
return
|
|
4676
|
+
return getStructDecoder63([
|
|
4648
4677
|
["discriminator", fixDecoderSize15(getBytesDecoder15(), 8)],
|
|
4649
4678
|
[
|
|
4650
4679
|
"output",
|
|
4651
4680
|
getDiscriminatedUnionDecoder4([
|
|
4652
4681
|
[
|
|
4653
4682
|
"Success",
|
|
4654
|
-
|
|
4683
|
+
getStructDecoder63([
|
|
4655
4684
|
[
|
|
4656
4685
|
"fields",
|
|
4657
4686
|
getTupleDecoder6([
|
|
@@ -4664,7 +4693,7 @@ function getAddOptionStakeCallbackInstructionDataDecoder() {
|
|
|
4664
4693
|
["Failure", getUnitDecoder()],
|
|
4665
4694
|
[
|
|
4666
4695
|
"MarkerForIdlBuildDoNotUseThis",
|
|
4667
|
-
|
|
4696
|
+
getStructDecoder63([
|
|
4668
4697
|
["fields", getTupleDecoder6([getAddOptionStakeOutputDecoder()])]
|
|
4669
4698
|
])
|
|
4670
4699
|
]
|
|
@@ -4673,7 +4702,7 @@ function getAddOptionStakeCallbackInstructionDataDecoder() {
|
|
|
4673
4702
|
]);
|
|
4674
4703
|
}
|
|
4675
4704
|
function getAddOptionStakeCallbackInstructionDataCodec() {
|
|
4676
|
-
return
|
|
4705
|
+
return combineCodec69(
|
|
4677
4706
|
getAddOptionStakeCallbackInstructionDataEncoder(),
|
|
4678
4707
|
getAddOptionStakeCallbackInstructionDataDecoder()
|
|
4679
4708
|
);
|
|
@@ -4755,13 +4784,13 @@ function parseAddOptionStakeCallbackInstruction(instruction) {
|
|
|
4755
4784
|
|
|
4756
4785
|
// src/generated/instructions/addOptionStakeCompDef.ts
|
|
4757
4786
|
import {
|
|
4758
|
-
combineCodec as
|
|
4787
|
+
combineCodec as combineCodec70,
|
|
4759
4788
|
fixDecoderSize as fixDecoderSize16,
|
|
4760
4789
|
fixEncoderSize as fixEncoderSize17,
|
|
4761
4790
|
getBytesDecoder as getBytesDecoder16,
|
|
4762
4791
|
getBytesEncoder as getBytesEncoder17,
|
|
4763
|
-
getStructDecoder as
|
|
4764
|
-
getStructEncoder as
|
|
4792
|
+
getStructDecoder as getStructDecoder64,
|
|
4793
|
+
getStructEncoder as getStructEncoder64,
|
|
4765
4794
|
transformEncoder as transformEncoder16
|
|
4766
4795
|
} from "@solana/kit";
|
|
4767
4796
|
var ADD_OPTION_STAKE_COMP_DEF_DISCRIMINATOR = new Uint8Array([
|
|
@@ -4781,7 +4810,7 @@ function getAddOptionStakeCompDefDiscriminatorBytes() {
|
|
|
4781
4810
|
}
|
|
4782
4811
|
function getAddOptionStakeCompDefInstructionDataEncoder() {
|
|
4783
4812
|
return transformEncoder16(
|
|
4784
|
-
|
|
4813
|
+
getStructEncoder64([["discriminator", fixEncoderSize17(getBytesEncoder17(), 8)]]),
|
|
4785
4814
|
(value) => ({
|
|
4786
4815
|
...value,
|
|
4787
4816
|
discriminator: ADD_OPTION_STAKE_COMP_DEF_DISCRIMINATOR
|
|
@@ -4789,12 +4818,12 @@ function getAddOptionStakeCompDefInstructionDataEncoder() {
|
|
|
4789
4818
|
);
|
|
4790
4819
|
}
|
|
4791
4820
|
function getAddOptionStakeCompDefInstructionDataDecoder() {
|
|
4792
|
-
return
|
|
4821
|
+
return getStructDecoder64([
|
|
4793
4822
|
["discriminator", fixDecoderSize16(getBytesDecoder16(), 8)]
|
|
4794
4823
|
]);
|
|
4795
4824
|
}
|
|
4796
4825
|
function getAddOptionStakeCompDefInstructionDataCodec() {
|
|
4797
|
-
return
|
|
4826
|
+
return combineCodec70(
|
|
4798
4827
|
getAddOptionStakeCompDefInstructionDataEncoder(),
|
|
4799
4828
|
getAddOptionStakeCompDefInstructionDataDecoder()
|
|
4800
4829
|
);
|
|
@@ -4867,7 +4896,7 @@ function parseAddOptionStakeCompDefInstruction(instruction) {
|
|
|
4867
4896
|
|
|
4868
4897
|
// src/generated/instructions/buyOpportunityMarketSharesCallback.ts
|
|
4869
4898
|
import {
|
|
4870
|
-
combineCodec as
|
|
4899
|
+
combineCodec as combineCodec71,
|
|
4871
4900
|
fixDecoderSize as fixDecoderSize17,
|
|
4872
4901
|
fixEncoderSize as fixEncoderSize18,
|
|
4873
4902
|
getArrayDecoder as getArrayDecoder26,
|
|
@@ -4876,8 +4905,8 @@ import {
|
|
|
4876
4905
|
getBytesEncoder as getBytesEncoder18,
|
|
4877
4906
|
getDiscriminatedUnionDecoder as getDiscriminatedUnionDecoder5,
|
|
4878
4907
|
getDiscriminatedUnionEncoder as getDiscriminatedUnionEncoder5,
|
|
4879
|
-
getStructDecoder as
|
|
4880
|
-
getStructEncoder as
|
|
4908
|
+
getStructDecoder as getStructDecoder65,
|
|
4909
|
+
getStructEncoder as getStructEncoder65,
|
|
4881
4910
|
getTupleDecoder as getTupleDecoder7,
|
|
4882
4911
|
getTupleEncoder as getTupleEncoder7,
|
|
4883
4912
|
getU8Decoder as getU8Decoder33,
|
|
@@ -4894,14 +4923,14 @@ function getBuyOpportunityMarketSharesCallbackDiscriminatorBytes() {
|
|
|
4894
4923
|
}
|
|
4895
4924
|
function getBuyOpportunityMarketSharesCallbackInstructionDataEncoder() {
|
|
4896
4925
|
return transformEncoder17(
|
|
4897
|
-
|
|
4926
|
+
getStructEncoder65([
|
|
4898
4927
|
["discriminator", fixEncoderSize18(getBytesEncoder18(), 8)],
|
|
4899
4928
|
[
|
|
4900
4929
|
"output",
|
|
4901
4930
|
getDiscriminatedUnionEncoder5([
|
|
4902
4931
|
[
|
|
4903
4932
|
"Success",
|
|
4904
|
-
|
|
4933
|
+
getStructEncoder65([
|
|
4905
4934
|
[
|
|
4906
4935
|
"fields",
|
|
4907
4936
|
getTupleEncoder7([
|
|
@@ -4914,7 +4943,7 @@ function getBuyOpportunityMarketSharesCallbackInstructionDataEncoder() {
|
|
|
4914
4943
|
["Failure", getUnitEncoder2()],
|
|
4915
4944
|
[
|
|
4916
4945
|
"MarkerForIdlBuildDoNotUseThis",
|
|
4917
|
-
|
|
4946
|
+
getStructEncoder65([
|
|
4918
4947
|
[
|
|
4919
4948
|
"fields",
|
|
4920
4949
|
getTupleEncoder7([getBuyOpportunityMarketSharesOutputEncoder()])
|
|
@@ -4931,14 +4960,14 @@ function getBuyOpportunityMarketSharesCallbackInstructionDataEncoder() {
|
|
|
4931
4960
|
);
|
|
4932
4961
|
}
|
|
4933
4962
|
function getBuyOpportunityMarketSharesCallbackInstructionDataDecoder() {
|
|
4934
|
-
return
|
|
4963
|
+
return getStructDecoder65([
|
|
4935
4964
|
["discriminator", fixDecoderSize17(getBytesDecoder17(), 8)],
|
|
4936
4965
|
[
|
|
4937
4966
|
"output",
|
|
4938
4967
|
getDiscriminatedUnionDecoder5([
|
|
4939
4968
|
[
|
|
4940
4969
|
"Success",
|
|
4941
|
-
|
|
4970
|
+
getStructDecoder65([
|
|
4942
4971
|
[
|
|
4943
4972
|
"fields",
|
|
4944
4973
|
getTupleDecoder7([
|
|
@@ -4951,7 +4980,7 @@ function getBuyOpportunityMarketSharesCallbackInstructionDataDecoder() {
|
|
|
4951
4980
|
["Failure", getUnitDecoder2()],
|
|
4952
4981
|
[
|
|
4953
4982
|
"MarkerForIdlBuildDoNotUseThis",
|
|
4954
|
-
|
|
4983
|
+
getStructDecoder65([
|
|
4955
4984
|
[
|
|
4956
4985
|
"fields",
|
|
4957
4986
|
getTupleDecoder7([getBuyOpportunityMarketSharesOutputDecoder()])
|
|
@@ -4963,7 +4992,7 @@ function getBuyOpportunityMarketSharesCallbackInstructionDataDecoder() {
|
|
|
4963
4992
|
]);
|
|
4964
4993
|
}
|
|
4965
4994
|
function getBuyOpportunityMarketSharesCallbackInstructionDataCodec() {
|
|
4966
|
-
return
|
|
4995
|
+
return combineCodec71(
|
|
4967
4996
|
getBuyOpportunityMarketSharesCallbackInstructionDataEncoder(),
|
|
4968
4997
|
getBuyOpportunityMarketSharesCallbackInstructionDataDecoder()
|
|
4969
4998
|
);
|
|
@@ -5045,13 +5074,13 @@ function parseBuyOpportunityMarketSharesCallbackInstruction(instruction) {
|
|
|
5045
5074
|
|
|
5046
5075
|
// src/generated/instructions/buyOpportunityMarketSharesCompDef.ts
|
|
5047
5076
|
import {
|
|
5048
|
-
combineCodec as
|
|
5077
|
+
combineCodec as combineCodec72,
|
|
5049
5078
|
fixDecoderSize as fixDecoderSize18,
|
|
5050
5079
|
fixEncoderSize as fixEncoderSize19,
|
|
5051
5080
|
getBytesDecoder as getBytesDecoder18,
|
|
5052
5081
|
getBytesEncoder as getBytesEncoder19,
|
|
5053
|
-
getStructDecoder as
|
|
5054
|
-
getStructEncoder as
|
|
5082
|
+
getStructDecoder as getStructDecoder66,
|
|
5083
|
+
getStructEncoder as getStructEncoder66,
|
|
5055
5084
|
transformEncoder as transformEncoder18
|
|
5056
5085
|
} from "@solana/kit";
|
|
5057
5086
|
var BUY_OPPORTUNITY_MARKET_SHARES_COMP_DEF_DISCRIMINATOR = new Uint8Array([111, 144, 68, 110, 33, 204, 64, 235]);
|
|
@@ -5062,7 +5091,7 @@ function getBuyOpportunityMarketSharesCompDefDiscriminatorBytes() {
|
|
|
5062
5091
|
}
|
|
5063
5092
|
function getBuyOpportunityMarketSharesCompDefInstructionDataEncoder() {
|
|
5064
5093
|
return transformEncoder18(
|
|
5065
|
-
|
|
5094
|
+
getStructEncoder66([["discriminator", fixEncoderSize19(getBytesEncoder19(), 8)]]),
|
|
5066
5095
|
(value) => ({
|
|
5067
5096
|
...value,
|
|
5068
5097
|
discriminator: BUY_OPPORTUNITY_MARKET_SHARES_COMP_DEF_DISCRIMINATOR
|
|
@@ -5070,12 +5099,12 @@ function getBuyOpportunityMarketSharesCompDefInstructionDataEncoder() {
|
|
|
5070
5099
|
);
|
|
5071
5100
|
}
|
|
5072
5101
|
function getBuyOpportunityMarketSharesCompDefInstructionDataDecoder() {
|
|
5073
|
-
return
|
|
5102
|
+
return getStructDecoder66([
|
|
5074
5103
|
["discriminator", fixDecoderSize18(getBytesDecoder18(), 8)]
|
|
5075
5104
|
]);
|
|
5076
5105
|
}
|
|
5077
5106
|
function getBuyOpportunityMarketSharesCompDefInstructionDataCodec() {
|
|
5078
|
-
return
|
|
5107
|
+
return combineCodec72(
|
|
5079
5108
|
getBuyOpportunityMarketSharesCompDefInstructionDataEncoder(),
|
|
5080
5109
|
getBuyOpportunityMarketSharesCompDefInstructionDataDecoder()
|
|
5081
5110
|
);
|
|
@@ -5150,15 +5179,15 @@ function parseBuyOpportunityMarketSharesCompDefInstruction(instruction) {
|
|
|
5150
5179
|
|
|
5151
5180
|
// src/generated/instructions/claimFees.ts
|
|
5152
5181
|
import {
|
|
5153
|
-
combineCodec as
|
|
5182
|
+
combineCodec as combineCodec73,
|
|
5154
5183
|
fixDecoderSize as fixDecoderSize19,
|
|
5155
5184
|
fixEncoderSize as fixEncoderSize20,
|
|
5156
|
-
getAddressEncoder as
|
|
5185
|
+
getAddressEncoder as getAddressEncoder39,
|
|
5157
5186
|
getBytesDecoder as getBytesDecoder19,
|
|
5158
5187
|
getBytesEncoder as getBytesEncoder20,
|
|
5159
5188
|
getProgramDerivedAddress as getProgramDerivedAddress3,
|
|
5160
|
-
getStructDecoder as
|
|
5161
|
-
getStructEncoder as
|
|
5189
|
+
getStructDecoder as getStructDecoder67,
|
|
5190
|
+
getStructEncoder as getStructEncoder67,
|
|
5162
5191
|
transformEncoder as transformEncoder19
|
|
5163
5192
|
} from "@solana/kit";
|
|
5164
5193
|
var CLAIM_FEES_DISCRIMINATOR = new Uint8Array([
|
|
@@ -5176,17 +5205,17 @@ function getClaimFeesDiscriminatorBytes() {
|
|
|
5176
5205
|
}
|
|
5177
5206
|
function getClaimFeesInstructionDataEncoder() {
|
|
5178
5207
|
return transformEncoder19(
|
|
5179
|
-
|
|
5208
|
+
getStructEncoder67([["discriminator", fixEncoderSize20(getBytesEncoder20(), 8)]]),
|
|
5180
5209
|
(value) => ({ ...value, discriminator: CLAIM_FEES_DISCRIMINATOR })
|
|
5181
5210
|
);
|
|
5182
5211
|
}
|
|
5183
5212
|
function getClaimFeesInstructionDataDecoder() {
|
|
5184
|
-
return
|
|
5213
|
+
return getStructDecoder67([
|
|
5185
5214
|
["discriminator", fixDecoderSize19(getBytesDecoder19(), 8)]
|
|
5186
5215
|
]);
|
|
5187
5216
|
}
|
|
5188
5217
|
function getClaimFeesInstructionDataCodec() {
|
|
5189
|
-
return
|
|
5218
|
+
return combineCodec73(
|
|
5190
5219
|
getClaimFeesInstructionDataEncoder(),
|
|
5191
5220
|
getClaimFeesInstructionDataDecoder()
|
|
5192
5221
|
);
|
|
@@ -5237,7 +5266,7 @@ async function getClaimFeesInstructionAsync(input, config) {
|
|
|
5237
5266
|
getBytesEncoder20().encode(
|
|
5238
5267
|
new Uint8Array([116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116])
|
|
5239
5268
|
),
|
|
5240
|
-
|
|
5269
|
+
getAddressEncoder39().encode(expectAddress(accounts.tokenMint.value))
|
|
5241
5270
|
]
|
|
5242
5271
|
});
|
|
5243
5272
|
}
|
|
@@ -5245,9 +5274,9 @@ async function getClaimFeesInstructionAsync(input, config) {
|
|
|
5245
5274
|
accounts.tokenVaultAta.value = await getProgramDerivedAddress3({
|
|
5246
5275
|
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
5247
5276
|
seeds: [
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5277
|
+
getAddressEncoder39().encode(expectAddress(accounts.tokenVault.value)),
|
|
5278
|
+
getAddressEncoder39().encode(expectAddress(accounts.tokenProgram.value)),
|
|
5279
|
+
getAddressEncoder39().encode(expectAddress(accounts.tokenMint.value))
|
|
5251
5280
|
]
|
|
5252
5281
|
});
|
|
5253
5282
|
}
|
|
@@ -5323,15 +5352,15 @@ function parseClaimFeesInstruction(instruction) {
|
|
|
5323
5352
|
|
|
5324
5353
|
// src/generated/instructions/claimPendingDeposit.ts
|
|
5325
5354
|
import {
|
|
5326
|
-
combineCodec as
|
|
5355
|
+
combineCodec as combineCodec74,
|
|
5327
5356
|
fixDecoderSize as fixDecoderSize20,
|
|
5328
5357
|
fixEncoderSize as fixEncoderSize21,
|
|
5329
|
-
getAddressEncoder as
|
|
5358
|
+
getAddressEncoder as getAddressEncoder40,
|
|
5330
5359
|
getBytesDecoder as getBytesDecoder20,
|
|
5331
5360
|
getBytesEncoder as getBytesEncoder21,
|
|
5332
5361
|
getProgramDerivedAddress as getProgramDerivedAddress4,
|
|
5333
|
-
getStructDecoder as
|
|
5334
|
-
getStructEncoder as
|
|
5362
|
+
getStructDecoder as getStructDecoder68,
|
|
5363
|
+
getStructEncoder as getStructEncoder68,
|
|
5335
5364
|
transformEncoder as transformEncoder20
|
|
5336
5365
|
} from "@solana/kit";
|
|
5337
5366
|
var CLAIM_PENDING_DEPOSIT_DISCRIMINATOR = new Uint8Array([
|
|
@@ -5351,7 +5380,7 @@ function getClaimPendingDepositDiscriminatorBytes() {
|
|
|
5351
5380
|
}
|
|
5352
5381
|
function getClaimPendingDepositInstructionDataEncoder() {
|
|
5353
5382
|
return transformEncoder20(
|
|
5354
|
-
|
|
5383
|
+
getStructEncoder68([["discriminator", fixEncoderSize21(getBytesEncoder21(), 8)]]),
|
|
5355
5384
|
(value) => ({
|
|
5356
5385
|
...value,
|
|
5357
5386
|
discriminator: CLAIM_PENDING_DEPOSIT_DISCRIMINATOR
|
|
@@ -5359,12 +5388,12 @@ function getClaimPendingDepositInstructionDataEncoder() {
|
|
|
5359
5388
|
);
|
|
5360
5389
|
}
|
|
5361
5390
|
function getClaimPendingDepositInstructionDataDecoder() {
|
|
5362
|
-
return
|
|
5391
|
+
return getStructDecoder68([
|
|
5363
5392
|
["discriminator", fixDecoderSize20(getBytesDecoder20(), 8)]
|
|
5364
5393
|
]);
|
|
5365
5394
|
}
|
|
5366
5395
|
function getClaimPendingDepositInstructionDataCodec() {
|
|
5367
|
-
return
|
|
5396
|
+
return combineCodec74(
|
|
5368
5397
|
getClaimPendingDepositInstructionDataEncoder(),
|
|
5369
5398
|
getClaimPendingDepositInstructionDataDecoder()
|
|
5370
5399
|
);
|
|
@@ -5394,7 +5423,7 @@ async function getClaimPendingDepositInstructionAsync(input, config) {
|
|
|
5394
5423
|
getBytesEncoder21().encode(
|
|
5395
5424
|
new Uint8Array([116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116])
|
|
5396
5425
|
),
|
|
5397
|
-
|
|
5426
|
+
getAddressEncoder40().encode(expectAddress(accounts.tokenMint.value))
|
|
5398
5427
|
]
|
|
5399
5428
|
});
|
|
5400
5429
|
}
|
|
@@ -5402,9 +5431,9 @@ async function getClaimPendingDepositInstructionAsync(input, config) {
|
|
|
5402
5431
|
accounts.tokenVaultAta.value = await getProgramDerivedAddress4({
|
|
5403
5432
|
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
5404
5433
|
seeds: [
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5434
|
+
getAddressEncoder40().encode(expectAddress(accounts.tokenVault.value)),
|
|
5435
|
+
getAddressEncoder40().encode(expectAddress(accounts.tokenProgram.value)),
|
|
5436
|
+
getAddressEncoder40().encode(expectAddress(accounts.tokenMint.value))
|
|
5408
5437
|
]
|
|
5409
5438
|
});
|
|
5410
5439
|
}
|
|
@@ -5485,15 +5514,15 @@ function parseClaimPendingDepositInstruction(instruction) {
|
|
|
5485
5514
|
|
|
5486
5515
|
// src/generated/instructions/closeEphemeralEncryptedTokenAccount.ts
|
|
5487
5516
|
import {
|
|
5488
|
-
combineCodec as
|
|
5517
|
+
combineCodec as combineCodec75,
|
|
5489
5518
|
fixDecoderSize as fixDecoderSize21,
|
|
5490
5519
|
fixEncoderSize as fixEncoderSize22,
|
|
5491
|
-
getAddressEncoder as
|
|
5520
|
+
getAddressEncoder as getAddressEncoder41,
|
|
5492
5521
|
getBytesDecoder as getBytesDecoder21,
|
|
5493
5522
|
getBytesEncoder as getBytesEncoder22,
|
|
5494
5523
|
getProgramDerivedAddress as getProgramDerivedAddress5,
|
|
5495
|
-
getStructDecoder as
|
|
5496
|
-
getStructEncoder as
|
|
5524
|
+
getStructDecoder as getStructDecoder69,
|
|
5525
|
+
getStructEncoder as getStructEncoder69,
|
|
5497
5526
|
getU64Decoder as getU64Decoder29,
|
|
5498
5527
|
getU64Encoder as getU64Encoder29,
|
|
5499
5528
|
transformEncoder as transformEncoder21
|
|
@@ -5506,7 +5535,7 @@ function getCloseEphemeralEncryptedTokenAccountDiscriminatorBytes() {
|
|
|
5506
5535
|
}
|
|
5507
5536
|
function getCloseEphemeralEncryptedTokenAccountInstructionDataEncoder() {
|
|
5508
5537
|
return transformEncoder21(
|
|
5509
|
-
|
|
5538
|
+
getStructEncoder69([
|
|
5510
5539
|
["discriminator", fixEncoderSize22(getBytesEncoder22(), 8)],
|
|
5511
5540
|
["computationOffset", getU64Encoder29()],
|
|
5512
5541
|
["index", getU64Encoder29()]
|
|
@@ -5518,14 +5547,14 @@ function getCloseEphemeralEncryptedTokenAccountInstructionDataEncoder() {
|
|
|
5518
5547
|
);
|
|
5519
5548
|
}
|
|
5520
5549
|
function getCloseEphemeralEncryptedTokenAccountInstructionDataDecoder() {
|
|
5521
|
-
return
|
|
5550
|
+
return getStructDecoder69([
|
|
5522
5551
|
["discriminator", fixDecoderSize21(getBytesDecoder21(), 8)],
|
|
5523
5552
|
["computationOffset", getU64Decoder29()],
|
|
5524
5553
|
["index", getU64Decoder29()]
|
|
5525
5554
|
]);
|
|
5526
5555
|
}
|
|
5527
5556
|
function getCloseEphemeralEncryptedTokenAccountInstructionDataCodec() {
|
|
5528
|
-
return
|
|
5557
|
+
return combineCodec75(
|
|
5529
5558
|
getCloseEphemeralEncryptedTokenAccountInstructionDataEncoder(),
|
|
5530
5559
|
getCloseEphemeralEncryptedTokenAccountInstructionDataDecoder()
|
|
5531
5560
|
);
|
|
@@ -5593,8 +5622,8 @@ async function getCloseEphemeralEncryptedTokenAccountInstructionAsync(input, con
|
|
|
5593
5622
|
116
|
|
5594
5623
|
])
|
|
5595
5624
|
),
|
|
5596
|
-
|
|
5597
|
-
|
|
5625
|
+
getAddressEncoder41().encode(expectAddress(accounts.tokenMint.value)),
|
|
5626
|
+
getAddressEncoder41().encode(expectAddress(accounts.signer.value)),
|
|
5598
5627
|
getBytesEncoder22().encode(new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0]))
|
|
5599
5628
|
]
|
|
5600
5629
|
});
|
|
@@ -5630,8 +5659,8 @@ async function getCloseEphemeralEncryptedTokenAccountInstructionAsync(input, con
|
|
|
5630
5659
|
116
|
|
5631
5660
|
])
|
|
5632
5661
|
),
|
|
5633
|
-
|
|
5634
|
-
|
|
5662
|
+
getAddressEncoder41().encode(expectAddress(accounts.tokenMint.value)),
|
|
5663
|
+
getAddressEncoder41().encode(expectAddress(accounts.signer.value)),
|
|
5635
5664
|
getU64Encoder29().encode(expectSome(args.index))
|
|
5636
5665
|
]
|
|
5637
5666
|
});
|
|
@@ -5815,7 +5844,7 @@ function parseCloseEphemeralEncryptedTokenAccountInstruction(instruction) {
|
|
|
5815
5844
|
|
|
5816
5845
|
// src/generated/instructions/closeEphemeralEncryptedTokenAccountCallback.ts
|
|
5817
5846
|
import {
|
|
5818
|
-
combineCodec as
|
|
5847
|
+
combineCodec as combineCodec76,
|
|
5819
5848
|
fixDecoderSize as fixDecoderSize22,
|
|
5820
5849
|
fixEncoderSize as fixEncoderSize23,
|
|
5821
5850
|
getArrayDecoder as getArrayDecoder27,
|
|
@@ -5824,8 +5853,8 @@ import {
|
|
|
5824
5853
|
getBytesEncoder as getBytesEncoder23,
|
|
5825
5854
|
getDiscriminatedUnionDecoder as getDiscriminatedUnionDecoder6,
|
|
5826
5855
|
getDiscriminatedUnionEncoder as getDiscriminatedUnionEncoder6,
|
|
5827
|
-
getStructDecoder as
|
|
5828
|
-
getStructEncoder as
|
|
5856
|
+
getStructDecoder as getStructDecoder70,
|
|
5857
|
+
getStructEncoder as getStructEncoder70,
|
|
5829
5858
|
getTupleDecoder as getTupleDecoder8,
|
|
5830
5859
|
getTupleEncoder as getTupleEncoder8,
|
|
5831
5860
|
getU8Decoder as getU8Decoder34,
|
|
@@ -5842,14 +5871,14 @@ function getCloseEphemeralEncryptedTokenAccountCallbackDiscriminatorBytes() {
|
|
|
5842
5871
|
}
|
|
5843
5872
|
function getCloseEphemeralEncryptedTokenAccountCallbackInstructionDataEncoder() {
|
|
5844
5873
|
return transformEncoder22(
|
|
5845
|
-
|
|
5874
|
+
getStructEncoder70([
|
|
5846
5875
|
["discriminator", fixEncoderSize23(getBytesEncoder23(), 8)],
|
|
5847
5876
|
[
|
|
5848
5877
|
"output",
|
|
5849
5878
|
getDiscriminatedUnionEncoder6([
|
|
5850
5879
|
[
|
|
5851
5880
|
"Success",
|
|
5852
|
-
|
|
5881
|
+
getStructEncoder70([
|
|
5853
5882
|
[
|
|
5854
5883
|
"fields",
|
|
5855
5884
|
getTupleEncoder8([
|
|
@@ -5862,7 +5891,7 @@ function getCloseEphemeralEncryptedTokenAccountCallbackInstructionDataEncoder()
|
|
|
5862
5891
|
["Failure", getUnitEncoder3()],
|
|
5863
5892
|
[
|
|
5864
5893
|
"MarkerForIdlBuildDoNotUseThis",
|
|
5865
|
-
|
|
5894
|
+
getStructEncoder70([
|
|
5866
5895
|
[
|
|
5867
5896
|
"fields",
|
|
5868
5897
|
getTupleEncoder8([
|
|
@@ -5881,14 +5910,14 @@ function getCloseEphemeralEncryptedTokenAccountCallbackInstructionDataEncoder()
|
|
|
5881
5910
|
);
|
|
5882
5911
|
}
|
|
5883
5912
|
function getCloseEphemeralEncryptedTokenAccountCallbackInstructionDataDecoder() {
|
|
5884
|
-
return
|
|
5913
|
+
return getStructDecoder70([
|
|
5885
5914
|
["discriminator", fixDecoderSize22(getBytesDecoder22(), 8)],
|
|
5886
5915
|
[
|
|
5887
5916
|
"output",
|
|
5888
5917
|
getDiscriminatedUnionDecoder6([
|
|
5889
5918
|
[
|
|
5890
5919
|
"Success",
|
|
5891
|
-
|
|
5920
|
+
getStructDecoder70([
|
|
5892
5921
|
[
|
|
5893
5922
|
"fields",
|
|
5894
5923
|
getTupleDecoder8([
|
|
@@ -5901,7 +5930,7 @@ function getCloseEphemeralEncryptedTokenAccountCallbackInstructionDataDecoder()
|
|
|
5901
5930
|
["Failure", getUnitDecoder3()],
|
|
5902
5931
|
[
|
|
5903
5932
|
"MarkerForIdlBuildDoNotUseThis",
|
|
5904
|
-
|
|
5933
|
+
getStructDecoder70([
|
|
5905
5934
|
[
|
|
5906
5935
|
"fields",
|
|
5907
5936
|
getTupleDecoder8([
|
|
@@ -5915,7 +5944,7 @@ function getCloseEphemeralEncryptedTokenAccountCallbackInstructionDataDecoder()
|
|
|
5915
5944
|
]);
|
|
5916
5945
|
}
|
|
5917
5946
|
function getCloseEphemeralEncryptedTokenAccountCallbackInstructionDataCodec() {
|
|
5918
|
-
return
|
|
5947
|
+
return combineCodec76(
|
|
5919
5948
|
getCloseEphemeralEncryptedTokenAccountCallbackInstructionDataEncoder(),
|
|
5920
5949
|
getCloseEphemeralEncryptedTokenAccountCallbackInstructionDataDecoder()
|
|
5921
5950
|
);
|
|
@@ -6003,13 +6032,13 @@ function parseCloseEphemeralEncryptedTokenAccountCallbackInstruction(instruction
|
|
|
6003
6032
|
|
|
6004
6033
|
// src/generated/instructions/closeEphemeralEncryptedTokenAccountCompDef.ts
|
|
6005
6034
|
import {
|
|
6006
|
-
combineCodec as
|
|
6035
|
+
combineCodec as combineCodec77,
|
|
6007
6036
|
fixDecoderSize as fixDecoderSize23,
|
|
6008
6037
|
fixEncoderSize as fixEncoderSize24,
|
|
6009
6038
|
getBytesDecoder as getBytesDecoder23,
|
|
6010
6039
|
getBytesEncoder as getBytesEncoder24,
|
|
6011
|
-
getStructDecoder as
|
|
6012
|
-
getStructEncoder as
|
|
6040
|
+
getStructDecoder as getStructDecoder71,
|
|
6041
|
+
getStructEncoder as getStructEncoder71,
|
|
6013
6042
|
transformEncoder as transformEncoder23
|
|
6014
6043
|
} from "@solana/kit";
|
|
6015
6044
|
var CLOSE_EPHEMERAL_ENCRYPTED_TOKEN_ACCOUNT_COMP_DEF_DISCRIMINATOR = new Uint8Array([162, 99, 122, 48, 158, 203, 176, 243]);
|
|
@@ -6020,7 +6049,7 @@ function getCloseEphemeralEncryptedTokenAccountCompDefDiscriminatorBytes() {
|
|
|
6020
6049
|
}
|
|
6021
6050
|
function getCloseEphemeralEncryptedTokenAccountCompDefInstructionDataEncoder() {
|
|
6022
6051
|
return transformEncoder23(
|
|
6023
|
-
|
|
6052
|
+
getStructEncoder71([["discriminator", fixEncoderSize24(getBytesEncoder24(), 8)]]),
|
|
6024
6053
|
(value) => ({
|
|
6025
6054
|
...value,
|
|
6026
6055
|
discriminator: CLOSE_EPHEMERAL_ENCRYPTED_TOKEN_ACCOUNT_COMP_DEF_DISCRIMINATOR
|
|
@@ -6028,12 +6057,12 @@ function getCloseEphemeralEncryptedTokenAccountCompDefInstructionDataEncoder() {
|
|
|
6028
6057
|
);
|
|
6029
6058
|
}
|
|
6030
6059
|
function getCloseEphemeralEncryptedTokenAccountCompDefInstructionDataDecoder() {
|
|
6031
|
-
return
|
|
6060
|
+
return getStructDecoder71([
|
|
6032
6061
|
["discriminator", fixDecoderSize23(getBytesDecoder23(), 8)]
|
|
6033
6062
|
]);
|
|
6034
6063
|
}
|
|
6035
6064
|
function getCloseEphemeralEncryptedTokenAccountCompDefInstructionDataCodec() {
|
|
6036
|
-
return
|
|
6065
|
+
return combineCodec77(
|
|
6037
6066
|
getCloseEphemeralEncryptedTokenAccountCompDefInstructionDataEncoder(),
|
|
6038
6067
|
getCloseEphemeralEncryptedTokenAccountCompDefInstructionDataDecoder()
|
|
6039
6068
|
);
|
|
@@ -6108,15 +6137,15 @@ function parseCloseEphemeralEncryptedTokenAccountCompDefInstruction(instruction)
|
|
|
6108
6137
|
|
|
6109
6138
|
// src/generated/instructions/closeShareAccount.ts
|
|
6110
6139
|
import {
|
|
6111
|
-
combineCodec as
|
|
6140
|
+
combineCodec as combineCodec78,
|
|
6112
6141
|
fixDecoderSize as fixDecoderSize24,
|
|
6113
6142
|
fixEncoderSize as fixEncoderSize25,
|
|
6114
|
-
getAddressEncoder as
|
|
6143
|
+
getAddressEncoder as getAddressEncoder42,
|
|
6115
6144
|
getBytesDecoder as getBytesDecoder24,
|
|
6116
6145
|
getBytesEncoder as getBytesEncoder25,
|
|
6117
6146
|
getProgramDerivedAddress as getProgramDerivedAddress6,
|
|
6118
|
-
getStructDecoder as
|
|
6119
|
-
getStructEncoder as
|
|
6147
|
+
getStructDecoder as getStructDecoder72,
|
|
6148
|
+
getStructEncoder as getStructEncoder72,
|
|
6120
6149
|
getU16Decoder as getU16Decoder15,
|
|
6121
6150
|
getU16Encoder as getU16Encoder15,
|
|
6122
6151
|
getU32Decoder as getU32Decoder10,
|
|
@@ -6140,7 +6169,7 @@ function getCloseShareAccountDiscriminatorBytes() {
|
|
|
6140
6169
|
}
|
|
6141
6170
|
function getCloseShareAccountInstructionDataEncoder() {
|
|
6142
6171
|
return transformEncoder24(
|
|
6143
|
-
|
|
6172
|
+
getStructEncoder72([
|
|
6144
6173
|
["discriminator", fixEncoderSize25(getBytesEncoder25(), 8)],
|
|
6145
6174
|
["optionIndex", getU16Encoder15()],
|
|
6146
6175
|
["shareAccountId", getU32Encoder10()]
|
|
@@ -6149,14 +6178,14 @@ function getCloseShareAccountInstructionDataEncoder() {
|
|
|
6149
6178
|
);
|
|
6150
6179
|
}
|
|
6151
6180
|
function getCloseShareAccountInstructionDataDecoder() {
|
|
6152
|
-
return
|
|
6181
|
+
return getStructDecoder72([
|
|
6153
6182
|
["discriminator", fixDecoderSize24(getBytesDecoder24(), 8)],
|
|
6154
6183
|
["optionIndex", getU16Decoder15()],
|
|
6155
6184
|
["shareAccountId", getU32Decoder10()]
|
|
6156
6185
|
]);
|
|
6157
6186
|
}
|
|
6158
6187
|
function getCloseShareAccountInstructionDataCodec() {
|
|
6159
|
-
return
|
|
6188
|
+
return combineCodec78(
|
|
6160
6189
|
getCloseShareAccountInstructionDataEncoder(),
|
|
6161
6190
|
getCloseShareAccountInstructionDataDecoder()
|
|
6162
6191
|
);
|
|
@@ -6200,8 +6229,8 @@ async function getCloseShareAccountInstructionAsync(input, config) {
|
|
|
6200
6229
|
116
|
|
6201
6230
|
])
|
|
6202
6231
|
),
|
|
6203
|
-
|
|
6204
|
-
|
|
6232
|
+
getAddressEncoder42().encode(expectAddress(accounts.owner.value)),
|
|
6233
|
+
getAddressEncoder42().encode(expectAddress(accounts.market.value)),
|
|
6205
6234
|
getU32Encoder10().encode(expectSome(args.shareAccountId))
|
|
6206
6235
|
]
|
|
6207
6236
|
});
|
|
@@ -6213,7 +6242,7 @@ async function getCloseShareAccountInstructionAsync(input, config) {
|
|
|
6213
6242
|
getBytesEncoder25().encode(
|
|
6214
6243
|
new Uint8Array([111, 112, 116, 105, 111, 110])
|
|
6215
6244
|
),
|
|
6216
|
-
|
|
6245
|
+
getAddressEncoder42().encode(expectAddress(accounts.market.value)),
|
|
6217
6246
|
getU16Encoder15().encode(expectSome(args.optionIndex))
|
|
6218
6247
|
]
|
|
6219
6248
|
});
|
|
@@ -6222,9 +6251,9 @@ async function getCloseShareAccountInstructionAsync(input, config) {
|
|
|
6222
6251
|
accounts.marketTokenAta.value = await getProgramDerivedAddress6({
|
|
6223
6252
|
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
6224
6253
|
seeds: [
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6254
|
+
getAddressEncoder42().encode(expectAddress(accounts.market.value)),
|
|
6255
|
+
getAddressEncoder42().encode(expectAddress(accounts.tokenProgram.value)),
|
|
6256
|
+
getAddressEncoder42().encode(expectAddress(accounts.tokenMint.value))
|
|
6228
6257
|
]
|
|
6229
6258
|
});
|
|
6230
6259
|
}
|
|
@@ -6319,11 +6348,11 @@ function parseCloseShareAccountInstruction(instruction) {
|
|
|
6319
6348
|
|
|
6320
6349
|
// src/generated/instructions/createMarket.ts
|
|
6321
6350
|
import {
|
|
6322
|
-
combineCodec as
|
|
6351
|
+
combineCodec as combineCodec79,
|
|
6323
6352
|
fixDecoderSize as fixDecoderSize25,
|
|
6324
6353
|
fixEncoderSize as fixEncoderSize26,
|
|
6325
|
-
getAddressDecoder as
|
|
6326
|
-
getAddressEncoder as
|
|
6354
|
+
getAddressDecoder as getAddressDecoder37,
|
|
6355
|
+
getAddressEncoder as getAddressEncoder43,
|
|
6327
6356
|
getArrayDecoder as getArrayDecoder28,
|
|
6328
6357
|
getArrayEncoder as getArrayEncoder28,
|
|
6329
6358
|
getBooleanDecoder as getBooleanDecoder13,
|
|
@@ -6333,8 +6362,8 @@ import {
|
|
|
6333
6362
|
getOptionDecoder as getOptionDecoder9,
|
|
6334
6363
|
getOptionEncoder as getOptionEncoder9,
|
|
6335
6364
|
getProgramDerivedAddress as getProgramDerivedAddress7,
|
|
6336
|
-
getStructDecoder as
|
|
6337
|
-
getStructEncoder as
|
|
6365
|
+
getStructDecoder as getStructDecoder73,
|
|
6366
|
+
getStructEncoder as getStructEncoder73,
|
|
6338
6367
|
getU64Decoder as getU64Decoder30,
|
|
6339
6368
|
getU64Encoder as getU64Encoder30,
|
|
6340
6369
|
getU8Decoder as getU8Decoder35,
|
|
@@ -6358,13 +6387,13 @@ function getCreateMarketDiscriminatorBytes() {
|
|
|
6358
6387
|
}
|
|
6359
6388
|
function getCreateMarketInstructionDataEncoder() {
|
|
6360
6389
|
return transformEncoder25(
|
|
6361
|
-
|
|
6390
|
+
getStructEncoder73([
|
|
6362
6391
|
["discriminator", fixEncoderSize26(getBytesEncoder26(), 8)],
|
|
6363
6392
|
["marketIndex", getU64Encoder30()],
|
|
6364
6393
|
["rewardAmount", getU64Encoder30()],
|
|
6365
6394
|
["timeToStake", getU64Encoder30()],
|
|
6366
6395
|
["timeToReveal", getU64Encoder30()],
|
|
6367
|
-
["marketAuthority", getOptionEncoder9(
|
|
6396
|
+
["marketAuthority", getOptionEncoder9(getAddressEncoder43())],
|
|
6368
6397
|
["unstakeDelaySeconds", getU64Encoder30()],
|
|
6369
6398
|
["authorizedReaderPubkey", getArrayEncoder28(getU8Encoder35(), { size: 32 })],
|
|
6370
6399
|
["allowClosingEarly", getBooleanEncoder13()]
|
|
@@ -6373,20 +6402,20 @@ function getCreateMarketInstructionDataEncoder() {
|
|
|
6373
6402
|
);
|
|
6374
6403
|
}
|
|
6375
6404
|
function getCreateMarketInstructionDataDecoder() {
|
|
6376
|
-
return
|
|
6405
|
+
return getStructDecoder73([
|
|
6377
6406
|
["discriminator", fixDecoderSize25(getBytesDecoder25(), 8)],
|
|
6378
6407
|
["marketIndex", getU64Decoder30()],
|
|
6379
6408
|
["rewardAmount", getU64Decoder30()],
|
|
6380
6409
|
["timeToStake", getU64Decoder30()],
|
|
6381
6410
|
["timeToReveal", getU64Decoder30()],
|
|
6382
|
-
["marketAuthority", getOptionDecoder9(
|
|
6411
|
+
["marketAuthority", getOptionDecoder9(getAddressDecoder37())],
|
|
6383
6412
|
["unstakeDelaySeconds", getU64Decoder30()],
|
|
6384
6413
|
["authorizedReaderPubkey", getArrayDecoder28(getU8Decoder35(), { size: 32 })],
|
|
6385
6414
|
["allowClosingEarly", getBooleanDecoder13()]
|
|
6386
6415
|
]);
|
|
6387
6416
|
}
|
|
6388
6417
|
function getCreateMarketInstructionDataCodec() {
|
|
6389
|
-
return
|
|
6418
|
+
return combineCodec79(
|
|
6390
6419
|
getCreateMarketInstructionDataEncoder(),
|
|
6391
6420
|
getCreateMarketInstructionDataDecoder()
|
|
6392
6421
|
);
|
|
@@ -6458,7 +6487,7 @@ async function getCreateMarketInstructionAsync(input, config) {
|
|
|
6458
6487
|
116
|
|
6459
6488
|
])
|
|
6460
6489
|
),
|
|
6461
|
-
|
|
6490
|
+
getAddressEncoder43().encode(expectAddress(accounts.creator.value)),
|
|
6462
6491
|
getU64Encoder30().encode(expectSome(args.marketIndex))
|
|
6463
6492
|
]
|
|
6464
6493
|
});
|
|
@@ -6467,9 +6496,9 @@ async function getCreateMarketInstructionAsync(input, config) {
|
|
|
6467
6496
|
accounts.marketTokenAta.value = await getProgramDerivedAddress7({
|
|
6468
6497
|
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
6469
6498
|
seeds: [
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6499
|
+
getAddressEncoder43().encode(expectAddress(accounts.market.value)),
|
|
6500
|
+
getAddressEncoder43().encode(expectAddress(accounts.tokenProgram.value)),
|
|
6501
|
+
getAddressEncoder43().encode(expectAddress(accounts.tokenMint.value))
|
|
6473
6502
|
]
|
|
6474
6503
|
});
|
|
6475
6504
|
}
|
|
@@ -6566,16 +6595,16 @@ function parseCreateMarketInstruction(instruction) {
|
|
|
6566
6595
|
|
|
6567
6596
|
// src/generated/instructions/doUnstakeEarly.ts
|
|
6568
6597
|
import {
|
|
6569
|
-
combineCodec as
|
|
6598
|
+
combineCodec as combineCodec80,
|
|
6570
6599
|
fixDecoderSize as fixDecoderSize26,
|
|
6571
6600
|
fixEncoderSize as fixEncoderSize27,
|
|
6572
|
-
getAddressDecoder as
|
|
6573
|
-
getAddressEncoder as
|
|
6601
|
+
getAddressDecoder as getAddressDecoder38,
|
|
6602
|
+
getAddressEncoder as getAddressEncoder44,
|
|
6574
6603
|
getBytesDecoder as getBytesDecoder26,
|
|
6575
6604
|
getBytesEncoder as getBytesEncoder27,
|
|
6576
6605
|
getProgramDerivedAddress as getProgramDerivedAddress8,
|
|
6577
|
-
getStructDecoder as
|
|
6578
|
-
getStructEncoder as
|
|
6606
|
+
getStructDecoder as getStructDecoder74,
|
|
6607
|
+
getStructEncoder as getStructEncoder74,
|
|
6579
6608
|
getU32Decoder as getU32Decoder11,
|
|
6580
6609
|
getU32Encoder as getU32Encoder11,
|
|
6581
6610
|
getU64Decoder as getU64Decoder31,
|
|
@@ -6599,25 +6628,25 @@ function getDoUnstakeEarlyDiscriminatorBytes() {
|
|
|
6599
6628
|
}
|
|
6600
6629
|
function getDoUnstakeEarlyInstructionDataEncoder() {
|
|
6601
6630
|
return transformEncoder26(
|
|
6602
|
-
|
|
6631
|
+
getStructEncoder74([
|
|
6603
6632
|
["discriminator", fixEncoderSize27(getBytesEncoder27(), 8)],
|
|
6604
6633
|
["computationOffset", getU64Encoder31()],
|
|
6605
6634
|
["shareAccountId", getU32Encoder11()],
|
|
6606
|
-
["shareAccountOwner",
|
|
6635
|
+
["shareAccountOwner", getAddressEncoder44()]
|
|
6607
6636
|
]),
|
|
6608
6637
|
(value) => ({ ...value, discriminator: DO_UNSTAKE_EARLY_DISCRIMINATOR })
|
|
6609
6638
|
);
|
|
6610
6639
|
}
|
|
6611
6640
|
function getDoUnstakeEarlyInstructionDataDecoder() {
|
|
6612
|
-
return
|
|
6641
|
+
return getStructDecoder74([
|
|
6613
6642
|
["discriminator", fixDecoderSize26(getBytesDecoder26(), 8)],
|
|
6614
6643
|
["computationOffset", getU64Decoder31()],
|
|
6615
6644
|
["shareAccountId", getU32Decoder11()],
|
|
6616
|
-
["shareAccountOwner",
|
|
6645
|
+
["shareAccountOwner", getAddressDecoder38()]
|
|
6617
6646
|
]);
|
|
6618
6647
|
}
|
|
6619
6648
|
function getDoUnstakeEarlyInstructionDataCodec() {
|
|
6620
|
-
return
|
|
6649
|
+
return combineCodec80(
|
|
6621
6650
|
getDoUnstakeEarlyInstructionDataEncoder(),
|
|
6622
6651
|
getDoUnstakeEarlyInstructionDataDecoder()
|
|
6623
6652
|
);
|
|
@@ -6667,8 +6696,8 @@ async function getDoUnstakeEarlyInstructionAsync(input, config) {
|
|
|
6667
6696
|
116
|
|
6668
6697
|
])
|
|
6669
6698
|
),
|
|
6670
|
-
|
|
6671
|
-
|
|
6699
|
+
getAddressEncoder44().encode(expectSome(args.shareAccountOwner)),
|
|
6700
|
+
getAddressEncoder44().encode(expectAddress(accounts.market.value)),
|
|
6672
6701
|
getU32Encoder11().encode(expectSome(args.shareAccountId))
|
|
6673
6702
|
]
|
|
6674
6703
|
});
|
|
@@ -6836,13 +6865,13 @@ function parseDoUnstakeEarlyInstruction(instruction) {
|
|
|
6836
6865
|
|
|
6837
6866
|
// src/generated/instructions/extendRevealPeriod.ts
|
|
6838
6867
|
import {
|
|
6839
|
-
combineCodec as
|
|
6868
|
+
combineCodec as combineCodec81,
|
|
6840
6869
|
fixDecoderSize as fixDecoderSize27,
|
|
6841
6870
|
fixEncoderSize as fixEncoderSize28,
|
|
6842
6871
|
getBytesDecoder as getBytesDecoder27,
|
|
6843
6872
|
getBytesEncoder as getBytesEncoder28,
|
|
6844
|
-
getStructDecoder as
|
|
6845
|
-
getStructEncoder as
|
|
6873
|
+
getStructDecoder as getStructDecoder75,
|
|
6874
|
+
getStructEncoder as getStructEncoder75,
|
|
6846
6875
|
getU64Decoder as getU64Decoder32,
|
|
6847
6876
|
getU64Encoder as getU64Encoder32,
|
|
6848
6877
|
transformEncoder as transformEncoder27
|
|
@@ -6864,7 +6893,7 @@ function getExtendRevealPeriodDiscriminatorBytes() {
|
|
|
6864
6893
|
}
|
|
6865
6894
|
function getExtendRevealPeriodInstructionDataEncoder() {
|
|
6866
6895
|
return transformEncoder27(
|
|
6867
|
-
|
|
6896
|
+
getStructEncoder75([
|
|
6868
6897
|
["discriminator", fixEncoderSize28(getBytesEncoder28(), 8)],
|
|
6869
6898
|
["newTimeToReveal", getU64Encoder32()]
|
|
6870
6899
|
]),
|
|
@@ -6872,13 +6901,13 @@ function getExtendRevealPeriodInstructionDataEncoder() {
|
|
|
6872
6901
|
);
|
|
6873
6902
|
}
|
|
6874
6903
|
function getExtendRevealPeriodInstructionDataDecoder() {
|
|
6875
|
-
return
|
|
6904
|
+
return getStructDecoder75([
|
|
6876
6905
|
["discriminator", fixDecoderSize27(getBytesDecoder27(), 8)],
|
|
6877
6906
|
["newTimeToReveal", getU64Decoder32()]
|
|
6878
6907
|
]);
|
|
6879
6908
|
}
|
|
6880
6909
|
function getExtendRevealPeriodInstructionDataCodec() {
|
|
6881
|
-
return
|
|
6910
|
+
return combineCodec81(
|
|
6882
6911
|
getExtendRevealPeriodInstructionDataEncoder(),
|
|
6883
6912
|
getExtendRevealPeriodInstructionDataDecoder()
|
|
6884
6913
|
);
|
|
@@ -6924,15 +6953,15 @@ function parseExtendRevealPeriodInstruction(instruction) {
|
|
|
6924
6953
|
|
|
6925
6954
|
// src/generated/instructions/increaseRewardPool.ts
|
|
6926
6955
|
import {
|
|
6927
|
-
combineCodec as
|
|
6956
|
+
combineCodec as combineCodec82,
|
|
6928
6957
|
fixDecoderSize as fixDecoderSize28,
|
|
6929
6958
|
fixEncoderSize as fixEncoderSize29,
|
|
6930
|
-
getAddressEncoder as
|
|
6959
|
+
getAddressEncoder as getAddressEncoder45,
|
|
6931
6960
|
getBytesDecoder as getBytesDecoder28,
|
|
6932
6961
|
getBytesEncoder as getBytesEncoder29,
|
|
6933
6962
|
getProgramDerivedAddress as getProgramDerivedAddress9,
|
|
6934
|
-
getStructDecoder as
|
|
6935
|
-
getStructEncoder as
|
|
6963
|
+
getStructDecoder as getStructDecoder76,
|
|
6964
|
+
getStructEncoder as getStructEncoder76,
|
|
6936
6965
|
getU64Decoder as getU64Decoder33,
|
|
6937
6966
|
getU64Encoder as getU64Encoder33,
|
|
6938
6967
|
transformEncoder as transformEncoder28
|
|
@@ -6954,7 +6983,7 @@ function getIncreaseRewardPoolDiscriminatorBytes() {
|
|
|
6954
6983
|
}
|
|
6955
6984
|
function getIncreaseRewardPoolInstructionDataEncoder() {
|
|
6956
6985
|
return transformEncoder28(
|
|
6957
|
-
|
|
6986
|
+
getStructEncoder76([
|
|
6958
6987
|
["discriminator", fixEncoderSize29(getBytesEncoder29(), 8)],
|
|
6959
6988
|
["newRewardAmount", getU64Encoder33()]
|
|
6960
6989
|
]),
|
|
@@ -6962,13 +6991,13 @@ function getIncreaseRewardPoolInstructionDataEncoder() {
|
|
|
6962
6991
|
);
|
|
6963
6992
|
}
|
|
6964
6993
|
function getIncreaseRewardPoolInstructionDataDecoder() {
|
|
6965
|
-
return
|
|
6994
|
+
return getStructDecoder76([
|
|
6966
6995
|
["discriminator", fixDecoderSize28(getBytesDecoder28(), 8)],
|
|
6967
6996
|
["newRewardAmount", getU64Decoder33()]
|
|
6968
6997
|
]);
|
|
6969
6998
|
}
|
|
6970
6999
|
function getIncreaseRewardPoolInstructionDataCodec() {
|
|
6971
|
-
return
|
|
7000
|
+
return combineCodec82(
|
|
6972
7001
|
getIncreaseRewardPoolInstructionDataEncoder(),
|
|
6973
7002
|
getIncreaseRewardPoolInstructionDataDecoder()
|
|
6974
7003
|
);
|
|
@@ -6988,9 +7017,9 @@ async function getIncreaseRewardPoolInstructionAsync(input, config) {
|
|
|
6988
7017
|
accounts.marketTokenAta.value = await getProgramDerivedAddress9({
|
|
6989
7018
|
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
6990
7019
|
seeds: [
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
7020
|
+
getAddressEncoder45().encode(expectAddress(accounts.market.value)),
|
|
7021
|
+
getAddressEncoder45().encode(expectAddress(accounts.tokenProgram.value)),
|
|
7022
|
+
getAddressEncoder45().encode(expectAddress(accounts.tokenMint.value))
|
|
6994
7023
|
]
|
|
6995
7024
|
});
|
|
6996
7025
|
}
|
|
@@ -7062,15 +7091,15 @@ function parseIncreaseRewardPoolInstruction(instruction) {
|
|
|
7062
7091
|
|
|
7063
7092
|
// src/generated/instructions/incrementOptionTally.ts
|
|
7064
7093
|
import {
|
|
7065
|
-
combineCodec as
|
|
7094
|
+
combineCodec as combineCodec83,
|
|
7066
7095
|
fixDecoderSize as fixDecoderSize29,
|
|
7067
7096
|
fixEncoderSize as fixEncoderSize30,
|
|
7068
|
-
getAddressEncoder as
|
|
7097
|
+
getAddressEncoder as getAddressEncoder46,
|
|
7069
7098
|
getBytesDecoder as getBytesDecoder29,
|
|
7070
7099
|
getBytesEncoder as getBytesEncoder30,
|
|
7071
7100
|
getProgramDerivedAddress as getProgramDerivedAddress10,
|
|
7072
|
-
getStructDecoder as
|
|
7073
|
-
getStructEncoder as
|
|
7101
|
+
getStructDecoder as getStructDecoder77,
|
|
7102
|
+
getStructEncoder as getStructEncoder77,
|
|
7074
7103
|
getU16Decoder as getU16Decoder16,
|
|
7075
7104
|
getU16Encoder as getU16Encoder16,
|
|
7076
7105
|
getU32Decoder as getU32Decoder12,
|
|
@@ -7094,7 +7123,7 @@ function getIncrementOptionTallyDiscriminatorBytes() {
|
|
|
7094
7123
|
}
|
|
7095
7124
|
function getIncrementOptionTallyInstructionDataEncoder() {
|
|
7096
7125
|
return transformEncoder29(
|
|
7097
|
-
|
|
7126
|
+
getStructEncoder77([
|
|
7098
7127
|
["discriminator", fixEncoderSize30(getBytesEncoder30(), 8)],
|
|
7099
7128
|
["optionIndex", getU16Encoder16()],
|
|
7100
7129
|
["shareAccountId", getU32Encoder12()]
|
|
@@ -7106,14 +7135,14 @@ function getIncrementOptionTallyInstructionDataEncoder() {
|
|
|
7106
7135
|
);
|
|
7107
7136
|
}
|
|
7108
7137
|
function getIncrementOptionTallyInstructionDataDecoder() {
|
|
7109
|
-
return
|
|
7138
|
+
return getStructDecoder77([
|
|
7110
7139
|
["discriminator", fixDecoderSize29(getBytesDecoder29(), 8)],
|
|
7111
7140
|
["optionIndex", getU16Decoder16()],
|
|
7112
7141
|
["shareAccountId", getU32Decoder12()]
|
|
7113
7142
|
]);
|
|
7114
7143
|
}
|
|
7115
7144
|
function getIncrementOptionTallyInstructionDataCodec() {
|
|
7116
|
-
return
|
|
7145
|
+
return combineCodec83(
|
|
7117
7146
|
getIncrementOptionTallyInstructionDataEncoder(),
|
|
7118
7147
|
getIncrementOptionTallyInstructionDataDecoder()
|
|
7119
7148
|
);
|
|
@@ -7151,8 +7180,8 @@ async function getIncrementOptionTallyInstructionAsync(input, config) {
|
|
|
7151
7180
|
116
|
|
7152
7181
|
])
|
|
7153
7182
|
),
|
|
7154
|
-
|
|
7155
|
-
|
|
7183
|
+
getAddressEncoder46().encode(expectAddress(accounts.owner.value)),
|
|
7184
|
+
getAddressEncoder46().encode(expectAddress(accounts.market.value)),
|
|
7156
7185
|
getU32Encoder12().encode(expectSome(args.shareAccountId))
|
|
7157
7186
|
]
|
|
7158
7187
|
});
|
|
@@ -7164,7 +7193,7 @@ async function getIncrementOptionTallyInstructionAsync(input, config) {
|
|
|
7164
7193
|
getBytesEncoder30().encode(
|
|
7165
7194
|
new Uint8Array([111, 112, 116, 105, 111, 110])
|
|
7166
7195
|
),
|
|
7167
|
-
|
|
7196
|
+
getAddressEncoder46().encode(expectAddress(accounts.market.value)),
|
|
7168
7197
|
getU16Encoder16().encode(expectSome(args.optionIndex))
|
|
7169
7198
|
]
|
|
7170
7199
|
});
|
|
@@ -7247,16 +7276,16 @@ function parseIncrementOptionTallyInstruction(instruction) {
|
|
|
7247
7276
|
|
|
7248
7277
|
// src/generated/instructions/initCentralState.ts
|
|
7249
7278
|
import {
|
|
7250
|
-
combineCodec as
|
|
7279
|
+
combineCodec as combineCodec84,
|
|
7251
7280
|
fixDecoderSize as fixDecoderSize30,
|
|
7252
7281
|
fixEncoderSize as fixEncoderSize31,
|
|
7253
|
-
getAddressDecoder as
|
|
7254
|
-
getAddressEncoder as
|
|
7282
|
+
getAddressDecoder as getAddressDecoder39,
|
|
7283
|
+
getAddressEncoder as getAddressEncoder47,
|
|
7255
7284
|
getBytesDecoder as getBytesDecoder30,
|
|
7256
7285
|
getBytesEncoder as getBytesEncoder31,
|
|
7257
7286
|
getProgramDerivedAddress as getProgramDerivedAddress11,
|
|
7258
|
-
getStructDecoder as
|
|
7259
|
-
getStructEncoder as
|
|
7287
|
+
getStructDecoder as getStructDecoder78,
|
|
7288
|
+
getStructEncoder as getStructEncoder78,
|
|
7260
7289
|
getU16Decoder as getU16Decoder17,
|
|
7261
7290
|
getU16Encoder as getU16Encoder17,
|
|
7262
7291
|
getU64Decoder as getU64Decoder34,
|
|
@@ -7280,27 +7309,27 @@ function getInitCentralStateDiscriminatorBytes() {
|
|
|
7280
7309
|
}
|
|
7281
7310
|
function getInitCentralStateInstructionDataEncoder() {
|
|
7282
7311
|
return transformEncoder30(
|
|
7283
|
-
|
|
7312
|
+
getStructEncoder78([
|
|
7284
7313
|
["discriminator", fixEncoderSize31(getBytesEncoder31(), 8)],
|
|
7285
7314
|
["earlinessCutoffSeconds", getU64Encoder34()],
|
|
7286
7315
|
["minOptionDeposit", getU64Encoder34()],
|
|
7287
7316
|
["protocolFeeBp", getU16Encoder17()],
|
|
7288
|
-
["feeRecipient",
|
|
7317
|
+
["feeRecipient", getAddressEncoder47()]
|
|
7289
7318
|
]),
|
|
7290
7319
|
(value) => ({ ...value, discriminator: INIT_CENTRAL_STATE_DISCRIMINATOR })
|
|
7291
7320
|
);
|
|
7292
7321
|
}
|
|
7293
7322
|
function getInitCentralStateInstructionDataDecoder() {
|
|
7294
|
-
return
|
|
7323
|
+
return getStructDecoder78([
|
|
7295
7324
|
["discriminator", fixDecoderSize30(getBytesDecoder30(), 8)],
|
|
7296
7325
|
["earlinessCutoffSeconds", getU64Decoder34()],
|
|
7297
7326
|
["minOptionDeposit", getU64Decoder34()],
|
|
7298
7327
|
["protocolFeeBp", getU16Decoder17()],
|
|
7299
|
-
["feeRecipient",
|
|
7328
|
+
["feeRecipient", getAddressDecoder39()]
|
|
7300
7329
|
]);
|
|
7301
7330
|
}
|
|
7302
7331
|
function getInitCentralStateInstructionDataCodec() {
|
|
7303
|
-
return
|
|
7332
|
+
return combineCodec84(
|
|
7304
7333
|
getInitCentralStateInstructionDataEncoder(),
|
|
7305
7334
|
getInitCentralStateInstructionDataDecoder()
|
|
7306
7335
|
);
|
|
@@ -7402,17 +7431,17 @@ function parseInitCentralStateInstruction(instruction) {
|
|
|
7402
7431
|
|
|
7403
7432
|
// src/generated/instructions/initEncryptedTokenAccount.ts
|
|
7404
7433
|
import {
|
|
7405
|
-
combineCodec as
|
|
7434
|
+
combineCodec as combineCodec85,
|
|
7406
7435
|
fixDecoderSize as fixDecoderSize31,
|
|
7407
7436
|
fixEncoderSize as fixEncoderSize32,
|
|
7408
|
-
getAddressEncoder as
|
|
7437
|
+
getAddressEncoder as getAddressEncoder48,
|
|
7409
7438
|
getArrayDecoder as getArrayDecoder29,
|
|
7410
7439
|
getArrayEncoder as getArrayEncoder29,
|
|
7411
7440
|
getBytesDecoder as getBytesDecoder31,
|
|
7412
7441
|
getBytesEncoder as getBytesEncoder32,
|
|
7413
7442
|
getProgramDerivedAddress as getProgramDerivedAddress12,
|
|
7414
|
-
getStructDecoder as
|
|
7415
|
-
getStructEncoder as
|
|
7443
|
+
getStructDecoder as getStructDecoder79,
|
|
7444
|
+
getStructEncoder as getStructEncoder79,
|
|
7416
7445
|
getU128Decoder as getU128Decoder15,
|
|
7417
7446
|
getU128Encoder as getU128Encoder15,
|
|
7418
7447
|
getU8Decoder as getU8Decoder36,
|
|
@@ -7436,7 +7465,7 @@ function getInitEncryptedTokenAccountDiscriminatorBytes() {
|
|
|
7436
7465
|
}
|
|
7437
7466
|
function getInitEncryptedTokenAccountInstructionDataEncoder() {
|
|
7438
7467
|
return transformEncoder31(
|
|
7439
|
-
|
|
7468
|
+
getStructEncoder79([
|
|
7440
7469
|
["discriminator", fixEncoderSize32(getBytesEncoder32(), 8)],
|
|
7441
7470
|
["userPubkey", getArrayEncoder29(getU8Encoder36(), { size: 32 })],
|
|
7442
7471
|
["stateNonce", getU128Encoder15()]
|
|
@@ -7448,14 +7477,14 @@ function getInitEncryptedTokenAccountInstructionDataEncoder() {
|
|
|
7448
7477
|
);
|
|
7449
7478
|
}
|
|
7450
7479
|
function getInitEncryptedTokenAccountInstructionDataDecoder() {
|
|
7451
|
-
return
|
|
7480
|
+
return getStructDecoder79([
|
|
7452
7481
|
["discriminator", fixDecoderSize31(getBytesDecoder31(), 8)],
|
|
7453
7482
|
["userPubkey", getArrayDecoder29(getU8Decoder36(), { size: 32 })],
|
|
7454
7483
|
["stateNonce", getU128Decoder15()]
|
|
7455
7484
|
]);
|
|
7456
7485
|
}
|
|
7457
7486
|
function getInitEncryptedTokenAccountInstructionDataCodec() {
|
|
7458
|
-
return
|
|
7487
|
+
return combineCodec85(
|
|
7459
7488
|
getInitEncryptedTokenAccountInstructionDataEncoder(),
|
|
7460
7489
|
getInitEncryptedTokenAccountInstructionDataDecoder()
|
|
7461
7490
|
);
|
|
@@ -7504,8 +7533,8 @@ async function getInitEncryptedTokenAccountInstructionAsync(input, config) {
|
|
|
7504
7533
|
116
|
|
7505
7534
|
])
|
|
7506
7535
|
),
|
|
7507
|
-
|
|
7508
|
-
|
|
7536
|
+
getAddressEncoder48().encode(expectAddress(accounts.tokenMint.value)),
|
|
7537
|
+
getAddressEncoder48().encode(expectAddress(accounts.signer.value)),
|
|
7509
7538
|
getBytesEncoder32().encode(new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0]))
|
|
7510
7539
|
]
|
|
7511
7540
|
});
|
|
@@ -7583,15 +7612,15 @@ function parseInitEncryptedTokenAccountInstruction(instruction) {
|
|
|
7583
7612
|
|
|
7584
7613
|
// src/generated/instructions/initEphemeralEncryptedTokenAccount.ts
|
|
7585
7614
|
import {
|
|
7586
|
-
combineCodec as
|
|
7615
|
+
combineCodec as combineCodec86,
|
|
7587
7616
|
fixDecoderSize as fixDecoderSize32,
|
|
7588
7617
|
fixEncoderSize as fixEncoderSize33,
|
|
7589
|
-
getAddressEncoder as
|
|
7618
|
+
getAddressEncoder as getAddressEncoder49,
|
|
7590
7619
|
getBytesDecoder as getBytesDecoder32,
|
|
7591
7620
|
getBytesEncoder as getBytesEncoder33,
|
|
7592
7621
|
getProgramDerivedAddress as getProgramDerivedAddress13,
|
|
7593
|
-
getStructDecoder as
|
|
7594
|
-
getStructEncoder as
|
|
7622
|
+
getStructDecoder as getStructDecoder80,
|
|
7623
|
+
getStructEncoder as getStructEncoder80,
|
|
7595
7624
|
getU128Decoder as getU128Decoder16,
|
|
7596
7625
|
getU128Encoder as getU128Encoder16,
|
|
7597
7626
|
getU64Decoder as getU64Decoder35,
|
|
@@ -7606,7 +7635,7 @@ function getInitEphemeralEncryptedTokenAccountDiscriminatorBytes() {
|
|
|
7606
7635
|
}
|
|
7607
7636
|
function getInitEphemeralEncryptedTokenAccountInstructionDataEncoder() {
|
|
7608
7637
|
return transformEncoder32(
|
|
7609
|
-
|
|
7638
|
+
getStructEncoder80([
|
|
7610
7639
|
["discriminator", fixEncoderSize33(getBytesEncoder33(), 8)],
|
|
7611
7640
|
["index", getU64Encoder35()],
|
|
7612
7641
|
["stateNonce", getU128Encoder16()]
|
|
@@ -7618,14 +7647,14 @@ function getInitEphemeralEncryptedTokenAccountInstructionDataEncoder() {
|
|
|
7618
7647
|
);
|
|
7619
7648
|
}
|
|
7620
7649
|
function getInitEphemeralEncryptedTokenAccountInstructionDataDecoder() {
|
|
7621
|
-
return
|
|
7650
|
+
return getStructDecoder80([
|
|
7622
7651
|
["discriminator", fixDecoderSize32(getBytesDecoder32(), 8)],
|
|
7623
7652
|
["index", getU64Decoder35()],
|
|
7624
7653
|
["stateNonce", getU128Decoder16()]
|
|
7625
7654
|
]);
|
|
7626
7655
|
}
|
|
7627
7656
|
function getInitEphemeralEncryptedTokenAccountInstructionDataCodec() {
|
|
7628
|
-
return
|
|
7657
|
+
return combineCodec86(
|
|
7629
7658
|
getInitEphemeralEncryptedTokenAccountInstructionDataEncoder(),
|
|
7630
7659
|
getInitEphemeralEncryptedTokenAccountInstructionDataDecoder()
|
|
7631
7660
|
);
|
|
@@ -7680,8 +7709,8 @@ async function getInitEphemeralEncryptedTokenAccountInstructionAsync(input, conf
|
|
|
7680
7709
|
116
|
|
7681
7710
|
])
|
|
7682
7711
|
),
|
|
7683
|
-
|
|
7684
|
-
|
|
7712
|
+
getAddressEncoder49().encode(expectAddress(accounts.tokenMint.value)),
|
|
7713
|
+
getAddressEncoder49().encode(expectAddress(accounts.owner.value)),
|
|
7685
7714
|
getBytesEncoder33().encode(new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0]))
|
|
7686
7715
|
]
|
|
7687
7716
|
}
|
|
@@ -7718,8 +7747,8 @@ async function getInitEphemeralEncryptedTokenAccountInstructionAsync(input, conf
|
|
|
7718
7747
|
116
|
|
7719
7748
|
])
|
|
7720
7749
|
),
|
|
7721
|
-
|
|
7722
|
-
|
|
7750
|
+
getAddressEncoder49().encode(expectAddress(accounts.tokenMint.value)),
|
|
7751
|
+
getAddressEncoder49().encode(expectAddress(accounts.owner.value)),
|
|
7723
7752
|
getU64Encoder35().encode(expectSome(args.index))
|
|
7724
7753
|
]
|
|
7725
7754
|
});
|
|
@@ -7808,15 +7837,15 @@ function parseInitEphemeralEncryptedTokenAccountInstruction(instruction) {
|
|
|
7808
7837
|
|
|
7809
7838
|
// src/generated/instructions/initShareAccount.ts
|
|
7810
7839
|
import {
|
|
7811
|
-
combineCodec as
|
|
7840
|
+
combineCodec as combineCodec87,
|
|
7812
7841
|
fixDecoderSize as fixDecoderSize33,
|
|
7813
7842
|
fixEncoderSize as fixEncoderSize34,
|
|
7814
|
-
getAddressEncoder as
|
|
7843
|
+
getAddressEncoder as getAddressEncoder50,
|
|
7815
7844
|
getBytesDecoder as getBytesDecoder33,
|
|
7816
7845
|
getBytesEncoder as getBytesEncoder34,
|
|
7817
7846
|
getProgramDerivedAddress as getProgramDerivedAddress14,
|
|
7818
|
-
getStructDecoder as
|
|
7819
|
-
getStructEncoder as
|
|
7847
|
+
getStructDecoder as getStructDecoder81,
|
|
7848
|
+
getStructEncoder as getStructEncoder81,
|
|
7820
7849
|
getU128Decoder as getU128Decoder17,
|
|
7821
7850
|
getU128Encoder as getU128Encoder17,
|
|
7822
7851
|
getU32Decoder as getU32Decoder13,
|
|
@@ -7840,7 +7869,7 @@ function getInitShareAccountDiscriminatorBytes() {
|
|
|
7840
7869
|
}
|
|
7841
7870
|
function getInitShareAccountInstructionDataEncoder() {
|
|
7842
7871
|
return transformEncoder33(
|
|
7843
|
-
|
|
7872
|
+
getStructEncoder81([
|
|
7844
7873
|
["discriminator", fixEncoderSize34(getBytesEncoder34(), 8)],
|
|
7845
7874
|
["stateNonce", getU128Encoder17()],
|
|
7846
7875
|
["shareAccountId", getU32Encoder13()]
|
|
@@ -7849,14 +7878,14 @@ function getInitShareAccountInstructionDataEncoder() {
|
|
|
7849
7878
|
);
|
|
7850
7879
|
}
|
|
7851
7880
|
function getInitShareAccountInstructionDataDecoder() {
|
|
7852
|
-
return
|
|
7881
|
+
return getStructDecoder81([
|
|
7853
7882
|
["discriminator", fixDecoderSize33(getBytesDecoder33(), 8)],
|
|
7854
7883
|
["stateNonce", getU128Decoder17()],
|
|
7855
7884
|
["shareAccountId", getU32Decoder13()]
|
|
7856
7885
|
]);
|
|
7857
7886
|
}
|
|
7858
7887
|
function getInitShareAccountInstructionDataCodec() {
|
|
7859
|
-
return
|
|
7888
|
+
return combineCodec87(
|
|
7860
7889
|
getInitShareAccountInstructionDataEncoder(),
|
|
7861
7890
|
getInitShareAccountInstructionDataDecoder()
|
|
7862
7891
|
);
|
|
@@ -7892,8 +7921,8 @@ async function getInitShareAccountInstructionAsync(input, config) {
|
|
|
7892
7921
|
116
|
|
7893
7922
|
])
|
|
7894
7923
|
),
|
|
7895
|
-
|
|
7896
|
-
|
|
7924
|
+
getAddressEncoder50().encode(expectAddress(accounts.signer.value)),
|
|
7925
|
+
getAddressEncoder50().encode(expectAddress(accounts.market.value)),
|
|
7897
7926
|
getU32Encoder13().encode(expectSome(args.shareAccountId))
|
|
7898
7927
|
]
|
|
7899
7928
|
});
|
|
@@ -7966,16 +7995,16 @@ function parseInitShareAccountInstruction(instruction) {
|
|
|
7966
7995
|
|
|
7967
7996
|
// src/generated/instructions/initTokenVault.ts
|
|
7968
7997
|
import {
|
|
7969
|
-
combineCodec as
|
|
7998
|
+
combineCodec as combineCodec88,
|
|
7970
7999
|
fixDecoderSize as fixDecoderSize34,
|
|
7971
8000
|
fixEncoderSize as fixEncoderSize35,
|
|
7972
|
-
getAddressDecoder as
|
|
7973
|
-
getAddressEncoder as
|
|
8001
|
+
getAddressDecoder as getAddressDecoder40,
|
|
8002
|
+
getAddressEncoder as getAddressEncoder51,
|
|
7974
8003
|
getBytesDecoder as getBytesDecoder34,
|
|
7975
8004
|
getBytesEncoder as getBytesEncoder35,
|
|
7976
8005
|
getProgramDerivedAddress as getProgramDerivedAddress15,
|
|
7977
|
-
getStructDecoder as
|
|
7978
|
-
getStructEncoder as
|
|
8006
|
+
getStructDecoder as getStructDecoder82,
|
|
8007
|
+
getStructEncoder as getStructEncoder82,
|
|
7979
8008
|
transformEncoder as transformEncoder34
|
|
7980
8009
|
} from "@solana/kit";
|
|
7981
8010
|
var INIT_TOKEN_VAULT_DISCRIMINATOR = new Uint8Array([
|
|
@@ -7995,21 +8024,21 @@ function getInitTokenVaultDiscriminatorBytes() {
|
|
|
7995
8024
|
}
|
|
7996
8025
|
function getInitTokenVaultInstructionDataEncoder() {
|
|
7997
8026
|
return transformEncoder34(
|
|
7998
|
-
|
|
8027
|
+
getStructEncoder82([
|
|
7999
8028
|
["discriminator", fixEncoderSize35(getBytesEncoder35(), 8)],
|
|
8000
|
-
["fundManager",
|
|
8029
|
+
["fundManager", getAddressEncoder51()]
|
|
8001
8030
|
]),
|
|
8002
8031
|
(value) => ({ ...value, discriminator: INIT_TOKEN_VAULT_DISCRIMINATOR })
|
|
8003
8032
|
);
|
|
8004
8033
|
}
|
|
8005
8034
|
function getInitTokenVaultInstructionDataDecoder() {
|
|
8006
|
-
return
|
|
8035
|
+
return getStructDecoder82([
|
|
8007
8036
|
["discriminator", fixDecoderSize34(getBytesDecoder34(), 8)],
|
|
8008
|
-
["fundManager",
|
|
8037
|
+
["fundManager", getAddressDecoder40()]
|
|
8009
8038
|
]);
|
|
8010
8039
|
}
|
|
8011
8040
|
function getInitTokenVaultInstructionDataCodec() {
|
|
8012
|
-
return
|
|
8041
|
+
return combineCodec88(
|
|
8013
8042
|
getInitTokenVaultInstructionDataEncoder(),
|
|
8014
8043
|
getInitTokenVaultInstructionDataDecoder()
|
|
8015
8044
|
);
|
|
@@ -8032,7 +8061,7 @@ async function getInitTokenVaultInstructionAsync(input, config) {
|
|
|
8032
8061
|
getBytesEncoder35().encode(
|
|
8033
8062
|
new Uint8Array([116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116])
|
|
8034
8063
|
),
|
|
8035
|
-
|
|
8064
|
+
getAddressEncoder51().encode(expectAddress(accounts.tokenMint.value))
|
|
8036
8065
|
]
|
|
8037
8066
|
});
|
|
8038
8067
|
}
|
|
@@ -8132,15 +8161,15 @@ function parseInitTokenVaultInstruction(instruction) {
|
|
|
8132
8161
|
|
|
8133
8162
|
// src/generated/instructions/openMarket.ts
|
|
8134
8163
|
import {
|
|
8135
|
-
combineCodec as
|
|
8164
|
+
combineCodec as combineCodec89,
|
|
8136
8165
|
fixDecoderSize as fixDecoderSize35,
|
|
8137
8166
|
fixEncoderSize as fixEncoderSize36,
|
|
8138
|
-
getAddressEncoder as
|
|
8167
|
+
getAddressEncoder as getAddressEncoder52,
|
|
8139
8168
|
getBytesDecoder as getBytesDecoder35,
|
|
8140
8169
|
getBytesEncoder as getBytesEncoder36,
|
|
8141
8170
|
getProgramDerivedAddress as getProgramDerivedAddress16,
|
|
8142
|
-
getStructDecoder as
|
|
8143
|
-
getStructEncoder as
|
|
8171
|
+
getStructDecoder as getStructDecoder83,
|
|
8172
|
+
getStructEncoder as getStructEncoder83,
|
|
8144
8173
|
getU64Decoder as getU64Decoder36,
|
|
8145
8174
|
getU64Encoder as getU64Encoder36,
|
|
8146
8175
|
transformEncoder as transformEncoder35
|
|
@@ -8160,7 +8189,7 @@ function getOpenMarketDiscriminatorBytes() {
|
|
|
8160
8189
|
}
|
|
8161
8190
|
function getOpenMarketInstructionDataEncoder() {
|
|
8162
8191
|
return transformEncoder35(
|
|
8163
|
-
|
|
8192
|
+
getStructEncoder83([
|
|
8164
8193
|
["discriminator", fixEncoderSize36(getBytesEncoder36(), 8)],
|
|
8165
8194
|
["openTimestamp", getU64Encoder36()]
|
|
8166
8195
|
]),
|
|
@@ -8168,13 +8197,13 @@ function getOpenMarketInstructionDataEncoder() {
|
|
|
8168
8197
|
);
|
|
8169
8198
|
}
|
|
8170
8199
|
function getOpenMarketInstructionDataDecoder() {
|
|
8171
|
-
return
|
|
8200
|
+
return getStructDecoder83([
|
|
8172
8201
|
["discriminator", fixDecoderSize35(getBytesDecoder35(), 8)],
|
|
8173
8202
|
["openTimestamp", getU64Decoder36()]
|
|
8174
8203
|
]);
|
|
8175
8204
|
}
|
|
8176
8205
|
function getOpenMarketInstructionDataCodec() {
|
|
8177
|
-
return
|
|
8206
|
+
return combineCodec89(
|
|
8178
8207
|
getOpenMarketInstructionDataEncoder(),
|
|
8179
8208
|
getOpenMarketInstructionDataDecoder()
|
|
8180
8209
|
);
|
|
@@ -8194,9 +8223,9 @@ async function getOpenMarketInstructionAsync(input, config) {
|
|
|
8194
8223
|
accounts.marketTokenAta.value = await getProgramDerivedAddress16({
|
|
8195
8224
|
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
8196
8225
|
seeds: [
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8226
|
+
getAddressEncoder52().encode(expectAddress(accounts.market.value)),
|
|
8227
|
+
getAddressEncoder52().encode(expectAddress(accounts.tokenProgram.value)),
|
|
8228
|
+
getAddressEncoder52().encode(expectAddress(accounts.tokenMint.value))
|
|
8200
8229
|
]
|
|
8201
8230
|
});
|
|
8202
8231
|
}
|
|
@@ -8266,15 +8295,15 @@ function parseOpenMarketInstruction(instruction) {
|
|
|
8266
8295
|
|
|
8267
8296
|
// src/generated/instructions/revealShares.ts
|
|
8268
8297
|
import {
|
|
8269
|
-
combineCodec as
|
|
8298
|
+
combineCodec as combineCodec90,
|
|
8270
8299
|
fixDecoderSize as fixDecoderSize36,
|
|
8271
8300
|
fixEncoderSize as fixEncoderSize37,
|
|
8272
|
-
getAddressEncoder as
|
|
8301
|
+
getAddressEncoder as getAddressEncoder53,
|
|
8273
8302
|
getBytesDecoder as getBytesDecoder36,
|
|
8274
8303
|
getBytesEncoder as getBytesEncoder37,
|
|
8275
8304
|
getProgramDerivedAddress as getProgramDerivedAddress17,
|
|
8276
|
-
getStructDecoder as
|
|
8277
|
-
getStructEncoder as
|
|
8305
|
+
getStructDecoder as getStructDecoder84,
|
|
8306
|
+
getStructEncoder as getStructEncoder84,
|
|
8278
8307
|
getU32Decoder as getU32Decoder14,
|
|
8279
8308
|
getU32Encoder as getU32Encoder14,
|
|
8280
8309
|
getU64Decoder as getU64Decoder37,
|
|
@@ -8298,7 +8327,7 @@ function getRevealSharesDiscriminatorBytes() {
|
|
|
8298
8327
|
}
|
|
8299
8328
|
function getRevealSharesInstructionDataEncoder() {
|
|
8300
8329
|
return transformEncoder36(
|
|
8301
|
-
|
|
8330
|
+
getStructEncoder84([
|
|
8302
8331
|
["discriminator", fixEncoderSize37(getBytesEncoder37(), 8)],
|
|
8303
8332
|
["computationOffset", getU64Encoder37()],
|
|
8304
8333
|
["shareAccountId", getU32Encoder14()]
|
|
@@ -8307,14 +8336,14 @@ function getRevealSharesInstructionDataEncoder() {
|
|
|
8307
8336
|
);
|
|
8308
8337
|
}
|
|
8309
8338
|
function getRevealSharesInstructionDataDecoder() {
|
|
8310
|
-
return
|
|
8339
|
+
return getStructDecoder84([
|
|
8311
8340
|
["discriminator", fixDecoderSize36(getBytesDecoder36(), 8)],
|
|
8312
8341
|
["computationOffset", getU64Decoder37()],
|
|
8313
8342
|
["shareAccountId", getU32Decoder14()]
|
|
8314
8343
|
]);
|
|
8315
8344
|
}
|
|
8316
8345
|
function getRevealSharesInstructionDataCodec() {
|
|
8317
|
-
return
|
|
8346
|
+
return combineCodec90(
|
|
8318
8347
|
getRevealSharesInstructionDataEncoder(),
|
|
8319
8348
|
getRevealSharesInstructionDataDecoder()
|
|
8320
8349
|
);
|
|
@@ -8365,8 +8394,8 @@ async function getRevealSharesInstructionAsync(input, config) {
|
|
|
8365
8394
|
116
|
|
8366
8395
|
])
|
|
8367
8396
|
),
|
|
8368
|
-
|
|
8369
|
-
|
|
8397
|
+
getAddressEncoder53().encode(expectAddress(accounts.owner.value)),
|
|
8398
|
+
getAddressEncoder53().encode(expectAddress(accounts.market.value)),
|
|
8370
8399
|
getU32Encoder14().encode(expectSome(args.shareAccountId))
|
|
8371
8400
|
]
|
|
8372
8401
|
});
|
|
@@ -8538,7 +8567,7 @@ function parseRevealSharesInstruction(instruction) {
|
|
|
8538
8567
|
|
|
8539
8568
|
// src/generated/instructions/revealSharesCallback.ts
|
|
8540
8569
|
import {
|
|
8541
|
-
combineCodec as
|
|
8570
|
+
combineCodec as combineCodec91,
|
|
8542
8571
|
fixDecoderSize as fixDecoderSize37,
|
|
8543
8572
|
fixEncoderSize as fixEncoderSize38,
|
|
8544
8573
|
getArrayDecoder as getArrayDecoder30,
|
|
@@ -8547,8 +8576,8 @@ import {
|
|
|
8547
8576
|
getBytesEncoder as getBytesEncoder38,
|
|
8548
8577
|
getDiscriminatedUnionDecoder as getDiscriminatedUnionDecoder7,
|
|
8549
8578
|
getDiscriminatedUnionEncoder as getDiscriminatedUnionEncoder7,
|
|
8550
|
-
getStructDecoder as
|
|
8551
|
-
getStructEncoder as
|
|
8579
|
+
getStructDecoder as getStructDecoder85,
|
|
8580
|
+
getStructEncoder as getStructEncoder85,
|
|
8552
8581
|
getTupleDecoder as getTupleDecoder9,
|
|
8553
8582
|
getTupleEncoder as getTupleEncoder9,
|
|
8554
8583
|
getU8Decoder as getU8Decoder37,
|
|
@@ -8574,14 +8603,14 @@ function getRevealSharesCallbackDiscriminatorBytes() {
|
|
|
8574
8603
|
}
|
|
8575
8604
|
function getRevealSharesCallbackInstructionDataEncoder() {
|
|
8576
8605
|
return transformEncoder37(
|
|
8577
|
-
|
|
8606
|
+
getStructEncoder85([
|
|
8578
8607
|
["discriminator", fixEncoderSize38(getBytesEncoder38(), 8)],
|
|
8579
8608
|
[
|
|
8580
8609
|
"output",
|
|
8581
8610
|
getDiscriminatedUnionEncoder7([
|
|
8582
8611
|
[
|
|
8583
8612
|
"Success",
|
|
8584
|
-
|
|
8613
|
+
getStructEncoder85([
|
|
8585
8614
|
[
|
|
8586
8615
|
"fields",
|
|
8587
8616
|
getTupleEncoder9([
|
|
@@ -8594,7 +8623,7 @@ function getRevealSharesCallbackInstructionDataEncoder() {
|
|
|
8594
8623
|
["Failure", getUnitEncoder4()],
|
|
8595
8624
|
[
|
|
8596
8625
|
"MarkerForIdlBuildDoNotUseThis",
|
|
8597
|
-
|
|
8626
|
+
getStructEncoder85([
|
|
8598
8627
|
["fields", getTupleEncoder9([getRevealSharesOutputEncoder()])]
|
|
8599
8628
|
])
|
|
8600
8629
|
]
|
|
@@ -8608,14 +8637,14 @@ function getRevealSharesCallbackInstructionDataEncoder() {
|
|
|
8608
8637
|
);
|
|
8609
8638
|
}
|
|
8610
8639
|
function getRevealSharesCallbackInstructionDataDecoder() {
|
|
8611
|
-
return
|
|
8640
|
+
return getStructDecoder85([
|
|
8612
8641
|
["discriminator", fixDecoderSize37(getBytesDecoder37(), 8)],
|
|
8613
8642
|
[
|
|
8614
8643
|
"output",
|
|
8615
8644
|
getDiscriminatedUnionDecoder7([
|
|
8616
8645
|
[
|
|
8617
8646
|
"Success",
|
|
8618
|
-
|
|
8647
|
+
getStructDecoder85([
|
|
8619
8648
|
[
|
|
8620
8649
|
"fields",
|
|
8621
8650
|
getTupleDecoder9([
|
|
@@ -8628,7 +8657,7 @@ function getRevealSharesCallbackInstructionDataDecoder() {
|
|
|
8628
8657
|
["Failure", getUnitDecoder4()],
|
|
8629
8658
|
[
|
|
8630
8659
|
"MarkerForIdlBuildDoNotUseThis",
|
|
8631
|
-
|
|
8660
|
+
getStructDecoder85([
|
|
8632
8661
|
["fields", getTupleDecoder9([getRevealSharesOutputDecoder()])]
|
|
8633
8662
|
])
|
|
8634
8663
|
]
|
|
@@ -8637,7 +8666,7 @@ function getRevealSharesCallbackInstructionDataDecoder() {
|
|
|
8637
8666
|
]);
|
|
8638
8667
|
}
|
|
8639
8668
|
function getRevealSharesCallbackInstructionDataCodec() {
|
|
8640
|
-
return
|
|
8669
|
+
return combineCodec91(
|
|
8641
8670
|
getRevealSharesCallbackInstructionDataEncoder(),
|
|
8642
8671
|
getRevealSharesCallbackInstructionDataDecoder()
|
|
8643
8672
|
);
|
|
@@ -8716,13 +8745,13 @@ function parseRevealSharesCallbackInstruction(instruction) {
|
|
|
8716
8745
|
|
|
8717
8746
|
// src/generated/instructions/revealSharesCompDef.ts
|
|
8718
8747
|
import {
|
|
8719
|
-
combineCodec as
|
|
8748
|
+
combineCodec as combineCodec92,
|
|
8720
8749
|
fixDecoderSize as fixDecoderSize38,
|
|
8721
8750
|
fixEncoderSize as fixEncoderSize39,
|
|
8722
8751
|
getBytesDecoder as getBytesDecoder38,
|
|
8723
8752
|
getBytesEncoder as getBytesEncoder39,
|
|
8724
|
-
getStructDecoder as
|
|
8725
|
-
getStructEncoder as
|
|
8753
|
+
getStructDecoder as getStructDecoder86,
|
|
8754
|
+
getStructEncoder as getStructEncoder86,
|
|
8726
8755
|
transformEncoder as transformEncoder38
|
|
8727
8756
|
} from "@solana/kit";
|
|
8728
8757
|
var REVEAL_SHARES_COMP_DEF_DISCRIMINATOR = new Uint8Array([
|
|
@@ -8742,7 +8771,7 @@ function getRevealSharesCompDefDiscriminatorBytes() {
|
|
|
8742
8771
|
}
|
|
8743
8772
|
function getRevealSharesCompDefInstructionDataEncoder() {
|
|
8744
8773
|
return transformEncoder38(
|
|
8745
|
-
|
|
8774
|
+
getStructEncoder86([["discriminator", fixEncoderSize39(getBytesEncoder39(), 8)]]),
|
|
8746
8775
|
(value) => ({
|
|
8747
8776
|
...value,
|
|
8748
8777
|
discriminator: REVEAL_SHARES_COMP_DEF_DISCRIMINATOR
|
|
@@ -8750,12 +8779,12 @@ function getRevealSharesCompDefInstructionDataEncoder() {
|
|
|
8750
8779
|
);
|
|
8751
8780
|
}
|
|
8752
8781
|
function getRevealSharesCompDefInstructionDataDecoder() {
|
|
8753
|
-
return
|
|
8782
|
+
return getStructDecoder86([
|
|
8754
8783
|
["discriminator", fixDecoderSize38(getBytesDecoder38(), 8)]
|
|
8755
8784
|
]);
|
|
8756
8785
|
}
|
|
8757
8786
|
function getRevealSharesCompDefInstructionDataCodec() {
|
|
8758
|
-
return
|
|
8787
|
+
return combineCodec92(
|
|
8759
8788
|
getRevealSharesCompDefInstructionDataEncoder(),
|
|
8760
8789
|
getRevealSharesCompDefInstructionDataDecoder()
|
|
8761
8790
|
);
|
|
@@ -8828,15 +8857,15 @@ function parseRevealSharesCompDefInstruction(instruction) {
|
|
|
8828
8857
|
|
|
8829
8858
|
// src/generated/instructions/selectWinningOptions.ts
|
|
8830
8859
|
import {
|
|
8831
|
-
combineCodec as
|
|
8860
|
+
combineCodec as combineCodec93,
|
|
8832
8861
|
fixDecoderSize as fixDecoderSize39,
|
|
8833
8862
|
fixEncoderSize as fixEncoderSize40,
|
|
8834
8863
|
getArrayDecoder as getArrayDecoder31,
|
|
8835
8864
|
getArrayEncoder as getArrayEncoder31,
|
|
8836
8865
|
getBytesDecoder as getBytesDecoder39,
|
|
8837
8866
|
getBytesEncoder as getBytesEncoder40,
|
|
8838
|
-
getStructDecoder as
|
|
8839
|
-
getStructEncoder as
|
|
8867
|
+
getStructDecoder as getStructDecoder87,
|
|
8868
|
+
getStructEncoder as getStructEncoder87,
|
|
8840
8869
|
transformEncoder as transformEncoder39
|
|
8841
8870
|
} from "@solana/kit";
|
|
8842
8871
|
var SELECT_WINNING_OPTIONS_DISCRIMINATOR = new Uint8Array([
|
|
@@ -8856,7 +8885,7 @@ function getSelectWinningOptionsDiscriminatorBytes() {
|
|
|
8856
8885
|
}
|
|
8857
8886
|
function getSelectWinningOptionsInstructionDataEncoder() {
|
|
8858
8887
|
return transformEncoder39(
|
|
8859
|
-
|
|
8888
|
+
getStructEncoder87([
|
|
8860
8889
|
["discriminator", fixEncoderSize40(getBytesEncoder40(), 8)],
|
|
8861
8890
|
["selections", getArrayEncoder31(getWinningOptionEncoder())]
|
|
8862
8891
|
]),
|
|
@@ -8867,13 +8896,13 @@ function getSelectWinningOptionsInstructionDataEncoder() {
|
|
|
8867
8896
|
);
|
|
8868
8897
|
}
|
|
8869
8898
|
function getSelectWinningOptionsInstructionDataDecoder() {
|
|
8870
|
-
return
|
|
8899
|
+
return getStructDecoder87([
|
|
8871
8900
|
["discriminator", fixDecoderSize39(getBytesDecoder39(), 8)],
|
|
8872
8901
|
["selections", getArrayDecoder31(getWinningOptionDecoder())]
|
|
8873
8902
|
]);
|
|
8874
8903
|
}
|
|
8875
8904
|
function getSelectWinningOptionsInstructionDataCodec() {
|
|
8876
|
-
return
|
|
8905
|
+
return combineCodec93(
|
|
8877
8906
|
getSelectWinningOptionsInstructionDataEncoder(),
|
|
8878
8907
|
getSelectWinningOptionsInstructionDataDecoder()
|
|
8879
8908
|
);
|
|
@@ -8919,17 +8948,17 @@ function parseSelectWinningOptionsInstruction(instruction) {
|
|
|
8919
8948
|
|
|
8920
8949
|
// src/generated/instructions/stake.ts
|
|
8921
8950
|
import {
|
|
8922
|
-
combineCodec as
|
|
8951
|
+
combineCodec as combineCodec94,
|
|
8923
8952
|
fixDecoderSize as fixDecoderSize40,
|
|
8924
8953
|
fixEncoderSize as fixEncoderSize41,
|
|
8925
|
-
getAddressEncoder as
|
|
8954
|
+
getAddressEncoder as getAddressEncoder54,
|
|
8926
8955
|
getArrayDecoder as getArrayDecoder32,
|
|
8927
8956
|
getArrayEncoder as getArrayEncoder32,
|
|
8928
8957
|
getBytesDecoder as getBytesDecoder40,
|
|
8929
8958
|
getBytesEncoder as getBytesEncoder41,
|
|
8930
8959
|
getProgramDerivedAddress as getProgramDerivedAddress18,
|
|
8931
|
-
getStructDecoder as
|
|
8932
|
-
getStructEncoder as
|
|
8960
|
+
getStructDecoder as getStructDecoder88,
|
|
8961
|
+
getStructEncoder as getStructEncoder88,
|
|
8933
8962
|
getU128Decoder as getU128Decoder18,
|
|
8934
8963
|
getU128Encoder as getU128Encoder18,
|
|
8935
8964
|
getU32Decoder as getU32Decoder15,
|
|
@@ -8955,7 +8984,7 @@ function getStakeDiscriminatorBytes() {
|
|
|
8955
8984
|
}
|
|
8956
8985
|
function getStakeInstructionDataEncoder() {
|
|
8957
8986
|
return transformEncoder40(
|
|
8958
|
-
|
|
8987
|
+
getStructEncoder88([
|
|
8959
8988
|
["discriminator", fixEncoderSize41(getBytesEncoder41(), 8)],
|
|
8960
8989
|
["computationOffset", getU64Encoder38()],
|
|
8961
8990
|
["shareAccountId", getU32Encoder15()],
|
|
@@ -8971,7 +9000,7 @@ function getStakeInstructionDataEncoder() {
|
|
|
8971
9000
|
);
|
|
8972
9001
|
}
|
|
8973
9002
|
function getStakeInstructionDataDecoder() {
|
|
8974
|
-
return
|
|
9003
|
+
return getStructDecoder88([
|
|
8975
9004
|
["discriminator", fixDecoderSize40(getBytesDecoder40(), 8)],
|
|
8976
9005
|
["computationOffset", getU64Decoder38()],
|
|
8977
9006
|
["shareAccountId", getU32Decoder15()],
|
|
@@ -8982,7 +9011,7 @@ function getStakeInstructionDataDecoder() {
|
|
|
8982
9011
|
]);
|
|
8983
9012
|
}
|
|
8984
9013
|
function getStakeInstructionDataCodec() {
|
|
8985
|
-
return
|
|
9014
|
+
return combineCodec94(
|
|
8986
9015
|
getStakeInstructionDataEncoder(),
|
|
8987
9016
|
getStakeInstructionDataDecoder()
|
|
8988
9017
|
);
|
|
@@ -9032,8 +9061,8 @@ async function getStakeInstructionAsync(input, config) {
|
|
|
9032
9061
|
116
|
|
9033
9062
|
])
|
|
9034
9063
|
),
|
|
9035
|
-
|
|
9036
|
-
|
|
9064
|
+
getAddressEncoder54().encode(expectAddress(accounts.signer.value)),
|
|
9065
|
+
getAddressEncoder54().encode(expectAddress(accounts.market.value)),
|
|
9037
9066
|
getU32Encoder15().encode(expectSome(args.shareAccountId))
|
|
9038
9067
|
]
|
|
9039
9068
|
});
|
|
@@ -9201,16 +9230,16 @@ function parseStakeInstruction(instruction) {
|
|
|
9201
9230
|
|
|
9202
9231
|
// src/generated/instructions/transferCentralStateAuthority.ts
|
|
9203
9232
|
import {
|
|
9204
|
-
combineCodec as
|
|
9233
|
+
combineCodec as combineCodec95,
|
|
9205
9234
|
fixDecoderSize as fixDecoderSize41,
|
|
9206
9235
|
fixEncoderSize as fixEncoderSize42,
|
|
9207
|
-
getAddressDecoder as
|
|
9208
|
-
getAddressEncoder as
|
|
9236
|
+
getAddressDecoder as getAddressDecoder41,
|
|
9237
|
+
getAddressEncoder as getAddressEncoder55,
|
|
9209
9238
|
getBytesDecoder as getBytesDecoder41,
|
|
9210
9239
|
getBytesEncoder as getBytesEncoder42,
|
|
9211
9240
|
getProgramDerivedAddress as getProgramDerivedAddress19,
|
|
9212
|
-
getStructDecoder as
|
|
9213
|
-
getStructEncoder as
|
|
9241
|
+
getStructDecoder as getStructDecoder89,
|
|
9242
|
+
getStructEncoder as getStructEncoder89,
|
|
9214
9243
|
transformEncoder as transformEncoder41
|
|
9215
9244
|
} from "@solana/kit";
|
|
9216
9245
|
var TRANSFER_CENTRAL_STATE_AUTHORITY_DISCRIMINATOR = new Uint8Array([
|
|
@@ -9230,9 +9259,9 @@ function getTransferCentralStateAuthorityDiscriminatorBytes() {
|
|
|
9230
9259
|
}
|
|
9231
9260
|
function getTransferCentralStateAuthorityInstructionDataEncoder() {
|
|
9232
9261
|
return transformEncoder41(
|
|
9233
|
-
|
|
9262
|
+
getStructEncoder89([
|
|
9234
9263
|
["discriminator", fixEncoderSize42(getBytesEncoder42(), 8)],
|
|
9235
|
-
["newAuthority",
|
|
9264
|
+
["newAuthority", getAddressEncoder55()]
|
|
9236
9265
|
]),
|
|
9237
9266
|
(value) => ({
|
|
9238
9267
|
...value,
|
|
@@ -9241,13 +9270,13 @@ function getTransferCentralStateAuthorityInstructionDataEncoder() {
|
|
|
9241
9270
|
);
|
|
9242
9271
|
}
|
|
9243
9272
|
function getTransferCentralStateAuthorityInstructionDataDecoder() {
|
|
9244
|
-
return
|
|
9273
|
+
return getStructDecoder89([
|
|
9245
9274
|
["discriminator", fixDecoderSize41(getBytesDecoder41(), 8)],
|
|
9246
|
-
["newAuthority",
|
|
9275
|
+
["newAuthority", getAddressDecoder41()]
|
|
9247
9276
|
]);
|
|
9248
9277
|
}
|
|
9249
9278
|
function getTransferCentralStateAuthorityInstructionDataCodec() {
|
|
9250
|
-
return
|
|
9279
|
+
return combineCodec95(
|
|
9251
9280
|
getTransferCentralStateAuthorityInstructionDataEncoder(),
|
|
9252
9281
|
getTransferCentralStateAuthorityInstructionDataDecoder()
|
|
9253
9282
|
);
|
|
@@ -9337,15 +9366,15 @@ function parseTransferCentralStateAuthorityInstruction(instruction) {
|
|
|
9337
9366
|
|
|
9338
9367
|
// src/generated/instructions/unstakeEarly.ts
|
|
9339
9368
|
import {
|
|
9340
|
-
combineCodec as
|
|
9369
|
+
combineCodec as combineCodec96,
|
|
9341
9370
|
fixDecoderSize as fixDecoderSize42,
|
|
9342
9371
|
fixEncoderSize as fixEncoderSize43,
|
|
9343
|
-
getAddressEncoder as
|
|
9372
|
+
getAddressEncoder as getAddressEncoder56,
|
|
9344
9373
|
getBytesDecoder as getBytesDecoder42,
|
|
9345
9374
|
getBytesEncoder as getBytesEncoder43,
|
|
9346
9375
|
getProgramDerivedAddress as getProgramDerivedAddress20,
|
|
9347
|
-
getStructDecoder as
|
|
9348
|
-
getStructEncoder as
|
|
9376
|
+
getStructDecoder as getStructDecoder90,
|
|
9377
|
+
getStructEncoder as getStructEncoder90,
|
|
9349
9378
|
getU32Decoder as getU32Decoder16,
|
|
9350
9379
|
getU32Encoder as getU32Encoder16,
|
|
9351
9380
|
transformEncoder as transformEncoder42
|
|
@@ -9367,7 +9396,7 @@ function getUnstakeEarlyDiscriminatorBytes() {
|
|
|
9367
9396
|
}
|
|
9368
9397
|
function getUnstakeEarlyInstructionDataEncoder() {
|
|
9369
9398
|
return transformEncoder42(
|
|
9370
|
-
|
|
9399
|
+
getStructEncoder90([
|
|
9371
9400
|
["discriminator", fixEncoderSize43(getBytesEncoder43(), 8)],
|
|
9372
9401
|
["shareAccountId", getU32Encoder16()]
|
|
9373
9402
|
]),
|
|
@@ -9375,13 +9404,13 @@ function getUnstakeEarlyInstructionDataEncoder() {
|
|
|
9375
9404
|
);
|
|
9376
9405
|
}
|
|
9377
9406
|
function getUnstakeEarlyInstructionDataDecoder() {
|
|
9378
|
-
return
|
|
9407
|
+
return getStructDecoder90([
|
|
9379
9408
|
["discriminator", fixDecoderSize42(getBytesDecoder42(), 8)],
|
|
9380
9409
|
["shareAccountId", getU32Decoder16()]
|
|
9381
9410
|
]);
|
|
9382
9411
|
}
|
|
9383
9412
|
function getUnstakeEarlyInstructionDataCodec() {
|
|
9384
|
-
return
|
|
9413
|
+
return combineCodec96(
|
|
9385
9414
|
getUnstakeEarlyInstructionDataEncoder(),
|
|
9386
9415
|
getUnstakeEarlyInstructionDataDecoder()
|
|
9387
9416
|
);
|
|
@@ -9416,8 +9445,8 @@ async function getUnstakeEarlyInstructionAsync(input, config) {
|
|
|
9416
9445
|
116
|
|
9417
9446
|
])
|
|
9418
9447
|
),
|
|
9419
|
-
|
|
9420
|
-
|
|
9448
|
+
getAddressEncoder56().encode(expectAddress(accounts.signer.value)),
|
|
9449
|
+
getAddressEncoder56().encode(expectAddress(accounts.market.value)),
|
|
9421
9450
|
getU32Encoder16().encode(expectSome(args.shareAccountId))
|
|
9422
9451
|
]
|
|
9423
9452
|
});
|
|
@@ -9480,7 +9509,7 @@ function parseUnstakeEarlyInstruction(instruction) {
|
|
|
9480
9509
|
|
|
9481
9510
|
// src/generated/instructions/unstakeEarlyCallback.ts
|
|
9482
9511
|
import {
|
|
9483
|
-
combineCodec as
|
|
9512
|
+
combineCodec as combineCodec97,
|
|
9484
9513
|
fixDecoderSize as fixDecoderSize43,
|
|
9485
9514
|
fixEncoderSize as fixEncoderSize44,
|
|
9486
9515
|
getArrayDecoder as getArrayDecoder33,
|
|
@@ -9489,8 +9518,8 @@ import {
|
|
|
9489
9518
|
getBytesEncoder as getBytesEncoder44,
|
|
9490
9519
|
getDiscriminatedUnionDecoder as getDiscriminatedUnionDecoder8,
|
|
9491
9520
|
getDiscriminatedUnionEncoder as getDiscriminatedUnionEncoder8,
|
|
9492
|
-
getStructDecoder as
|
|
9493
|
-
getStructEncoder as
|
|
9521
|
+
getStructDecoder as getStructDecoder91,
|
|
9522
|
+
getStructEncoder as getStructEncoder91,
|
|
9494
9523
|
getTupleDecoder as getTupleDecoder10,
|
|
9495
9524
|
getTupleEncoder as getTupleEncoder10,
|
|
9496
9525
|
getU8Decoder as getU8Decoder39,
|
|
@@ -9516,14 +9545,14 @@ function getUnstakeEarlyCallbackDiscriminatorBytes() {
|
|
|
9516
9545
|
}
|
|
9517
9546
|
function getUnstakeEarlyCallbackInstructionDataEncoder() {
|
|
9518
9547
|
return transformEncoder43(
|
|
9519
|
-
|
|
9548
|
+
getStructEncoder91([
|
|
9520
9549
|
["discriminator", fixEncoderSize44(getBytesEncoder44(), 8)],
|
|
9521
9550
|
[
|
|
9522
9551
|
"output",
|
|
9523
9552
|
getDiscriminatedUnionEncoder8([
|
|
9524
9553
|
[
|
|
9525
9554
|
"Success",
|
|
9526
|
-
|
|
9555
|
+
getStructEncoder91([
|
|
9527
9556
|
[
|
|
9528
9557
|
"fields",
|
|
9529
9558
|
getTupleEncoder10([
|
|
@@ -9536,7 +9565,7 @@ function getUnstakeEarlyCallbackInstructionDataEncoder() {
|
|
|
9536
9565
|
["Failure", getUnitEncoder5()],
|
|
9537
9566
|
[
|
|
9538
9567
|
"MarkerForIdlBuildDoNotUseThis",
|
|
9539
|
-
|
|
9568
|
+
getStructEncoder91([
|
|
9540
9569
|
["fields", getTupleEncoder10([getUnstakeEarlyOutputEncoder()])]
|
|
9541
9570
|
])
|
|
9542
9571
|
]
|
|
@@ -9550,14 +9579,14 @@ function getUnstakeEarlyCallbackInstructionDataEncoder() {
|
|
|
9550
9579
|
);
|
|
9551
9580
|
}
|
|
9552
9581
|
function getUnstakeEarlyCallbackInstructionDataDecoder() {
|
|
9553
|
-
return
|
|
9582
|
+
return getStructDecoder91([
|
|
9554
9583
|
["discriminator", fixDecoderSize43(getBytesDecoder43(), 8)],
|
|
9555
9584
|
[
|
|
9556
9585
|
"output",
|
|
9557
9586
|
getDiscriminatedUnionDecoder8([
|
|
9558
9587
|
[
|
|
9559
9588
|
"Success",
|
|
9560
|
-
|
|
9589
|
+
getStructDecoder91([
|
|
9561
9590
|
[
|
|
9562
9591
|
"fields",
|
|
9563
9592
|
getTupleDecoder10([
|
|
@@ -9570,7 +9599,7 @@ function getUnstakeEarlyCallbackInstructionDataDecoder() {
|
|
|
9570
9599
|
["Failure", getUnitDecoder5()],
|
|
9571
9600
|
[
|
|
9572
9601
|
"MarkerForIdlBuildDoNotUseThis",
|
|
9573
|
-
|
|
9602
|
+
getStructDecoder91([
|
|
9574
9603
|
["fields", getTupleDecoder10([getUnstakeEarlyOutputDecoder()])]
|
|
9575
9604
|
])
|
|
9576
9605
|
]
|
|
@@ -9579,7 +9608,7 @@ function getUnstakeEarlyCallbackInstructionDataDecoder() {
|
|
|
9579
9608
|
]);
|
|
9580
9609
|
}
|
|
9581
9610
|
function getUnstakeEarlyCallbackInstructionDataCodec() {
|
|
9582
|
-
return
|
|
9611
|
+
return combineCodec97(
|
|
9583
9612
|
getUnstakeEarlyCallbackInstructionDataEncoder(),
|
|
9584
9613
|
getUnstakeEarlyCallbackInstructionDataDecoder()
|
|
9585
9614
|
);
|
|
@@ -9658,13 +9687,13 @@ function parseUnstakeEarlyCallbackInstruction(instruction) {
|
|
|
9658
9687
|
|
|
9659
9688
|
// src/generated/instructions/unstakeEarlyCompDef.ts
|
|
9660
9689
|
import {
|
|
9661
|
-
combineCodec as
|
|
9690
|
+
combineCodec as combineCodec98,
|
|
9662
9691
|
fixDecoderSize as fixDecoderSize44,
|
|
9663
9692
|
fixEncoderSize as fixEncoderSize45,
|
|
9664
9693
|
getBytesDecoder as getBytesDecoder44,
|
|
9665
9694
|
getBytesEncoder as getBytesEncoder45,
|
|
9666
|
-
getStructDecoder as
|
|
9667
|
-
getStructEncoder as
|
|
9695
|
+
getStructDecoder as getStructDecoder92,
|
|
9696
|
+
getStructEncoder as getStructEncoder92,
|
|
9668
9697
|
transformEncoder as transformEncoder44
|
|
9669
9698
|
} from "@solana/kit";
|
|
9670
9699
|
var UNSTAKE_EARLY_COMP_DEF_DISCRIMINATOR = new Uint8Array([
|
|
@@ -9684,7 +9713,7 @@ function getUnstakeEarlyCompDefDiscriminatorBytes() {
|
|
|
9684
9713
|
}
|
|
9685
9714
|
function getUnstakeEarlyCompDefInstructionDataEncoder() {
|
|
9686
9715
|
return transformEncoder44(
|
|
9687
|
-
|
|
9716
|
+
getStructEncoder92([["discriminator", fixEncoderSize45(getBytesEncoder45(), 8)]]),
|
|
9688
9717
|
(value) => ({
|
|
9689
9718
|
...value,
|
|
9690
9719
|
discriminator: UNSTAKE_EARLY_COMP_DEF_DISCRIMINATOR
|
|
@@ -9692,12 +9721,12 @@ function getUnstakeEarlyCompDefInstructionDataEncoder() {
|
|
|
9692
9721
|
);
|
|
9693
9722
|
}
|
|
9694
9723
|
function getUnstakeEarlyCompDefInstructionDataDecoder() {
|
|
9695
|
-
return
|
|
9724
|
+
return getStructDecoder92([
|
|
9696
9725
|
["discriminator", fixDecoderSize44(getBytesDecoder44(), 8)]
|
|
9697
9726
|
]);
|
|
9698
9727
|
}
|
|
9699
9728
|
function getUnstakeEarlyCompDefInstructionDataCodec() {
|
|
9700
|
-
return
|
|
9729
|
+
return combineCodec98(
|
|
9701
9730
|
getUnstakeEarlyCompDefInstructionDataEncoder(),
|
|
9702
9731
|
getUnstakeEarlyCompDefInstructionDataDecoder()
|
|
9703
9732
|
);
|
|
@@ -9770,15 +9799,15 @@ function parseUnstakeEarlyCompDefInstruction(instruction) {
|
|
|
9770
9799
|
|
|
9771
9800
|
// src/generated/instructions/unwrapEncryptedTokens.ts
|
|
9772
9801
|
import {
|
|
9773
|
-
combineCodec as
|
|
9802
|
+
combineCodec as combineCodec99,
|
|
9774
9803
|
fixDecoderSize as fixDecoderSize45,
|
|
9775
9804
|
fixEncoderSize as fixEncoderSize46,
|
|
9776
|
-
getAddressEncoder as
|
|
9805
|
+
getAddressEncoder as getAddressEncoder57,
|
|
9777
9806
|
getBytesDecoder as getBytesDecoder45,
|
|
9778
9807
|
getBytesEncoder as getBytesEncoder46,
|
|
9779
9808
|
getProgramDerivedAddress as getProgramDerivedAddress21,
|
|
9780
|
-
getStructDecoder as
|
|
9781
|
-
getStructEncoder as
|
|
9809
|
+
getStructDecoder as getStructDecoder93,
|
|
9810
|
+
getStructEncoder as getStructEncoder93,
|
|
9782
9811
|
getU64Decoder as getU64Decoder39,
|
|
9783
9812
|
getU64Encoder as getU64Encoder39,
|
|
9784
9813
|
transformEncoder as transformEncoder45
|
|
@@ -9800,7 +9829,7 @@ function getUnwrapEncryptedTokensDiscriminatorBytes() {
|
|
|
9800
9829
|
}
|
|
9801
9830
|
function getUnwrapEncryptedTokensInstructionDataEncoder() {
|
|
9802
9831
|
return transformEncoder45(
|
|
9803
|
-
|
|
9832
|
+
getStructEncoder93([
|
|
9804
9833
|
["discriminator", fixEncoderSize46(getBytesEncoder46(), 8)],
|
|
9805
9834
|
["computationOffset", getU64Encoder39()],
|
|
9806
9835
|
["amount", getU64Encoder39()]
|
|
@@ -9812,14 +9841,14 @@ function getUnwrapEncryptedTokensInstructionDataEncoder() {
|
|
|
9812
9841
|
);
|
|
9813
9842
|
}
|
|
9814
9843
|
function getUnwrapEncryptedTokensInstructionDataDecoder() {
|
|
9815
|
-
return
|
|
9844
|
+
return getStructDecoder93([
|
|
9816
9845
|
["discriminator", fixDecoderSize45(getBytesDecoder45(), 8)],
|
|
9817
9846
|
["computationOffset", getU64Decoder39()],
|
|
9818
9847
|
["amount", getU64Decoder39()]
|
|
9819
9848
|
]);
|
|
9820
9849
|
}
|
|
9821
9850
|
function getUnwrapEncryptedTokensInstructionDataCodec() {
|
|
9822
|
-
return
|
|
9851
|
+
return combineCodec99(
|
|
9823
9852
|
getUnwrapEncryptedTokensInstructionDataEncoder(),
|
|
9824
9853
|
getUnwrapEncryptedTokensInstructionDataDecoder()
|
|
9825
9854
|
);
|
|
@@ -9864,7 +9893,7 @@ async function getUnwrapEncryptedTokensInstructionAsync(input, config) {
|
|
|
9864
9893
|
getBytesEncoder46().encode(
|
|
9865
9894
|
new Uint8Array([116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116])
|
|
9866
9895
|
),
|
|
9867
|
-
|
|
9896
|
+
getAddressEncoder57().encode(expectAddress(accounts.tokenMint.value))
|
|
9868
9897
|
]
|
|
9869
9898
|
});
|
|
9870
9899
|
}
|
|
@@ -9872,9 +9901,9 @@ async function getUnwrapEncryptedTokensInstructionAsync(input, config) {
|
|
|
9872
9901
|
accounts.tokenVaultAta.value = await getProgramDerivedAddress21({
|
|
9873
9902
|
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
9874
9903
|
seeds: [
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
|
|
9904
|
+
getAddressEncoder57().encode(expectAddress(accounts.tokenVault.value)),
|
|
9905
|
+
getAddressEncoder57().encode(expectAddress(accounts.tokenProgram.value)),
|
|
9906
|
+
getAddressEncoder57().encode(expectAddress(accounts.tokenMint.value))
|
|
9878
9907
|
]
|
|
9879
9908
|
});
|
|
9880
9909
|
}
|
|
@@ -10061,7 +10090,7 @@ function parseUnwrapEncryptedTokensInstruction(instruction) {
|
|
|
10061
10090
|
|
|
10062
10091
|
// src/generated/instructions/unwrapEncryptedTokensCallback.ts
|
|
10063
10092
|
import {
|
|
10064
|
-
combineCodec as
|
|
10093
|
+
combineCodec as combineCodec100,
|
|
10065
10094
|
fixDecoderSize as fixDecoderSize46,
|
|
10066
10095
|
fixEncoderSize as fixEncoderSize47,
|
|
10067
10096
|
getArrayDecoder as getArrayDecoder34,
|
|
@@ -10070,8 +10099,8 @@ import {
|
|
|
10070
10099
|
getBytesEncoder as getBytesEncoder47,
|
|
10071
10100
|
getDiscriminatedUnionDecoder as getDiscriminatedUnionDecoder9,
|
|
10072
10101
|
getDiscriminatedUnionEncoder as getDiscriminatedUnionEncoder9,
|
|
10073
|
-
getStructDecoder as
|
|
10074
|
-
getStructEncoder as
|
|
10102
|
+
getStructDecoder as getStructDecoder94,
|
|
10103
|
+
getStructEncoder as getStructEncoder94,
|
|
10075
10104
|
getTupleDecoder as getTupleDecoder11,
|
|
10076
10105
|
getTupleEncoder as getTupleEncoder11,
|
|
10077
10106
|
getU8Decoder as getU8Decoder40,
|
|
@@ -10097,14 +10126,14 @@ function getUnwrapEncryptedTokensCallbackDiscriminatorBytes() {
|
|
|
10097
10126
|
}
|
|
10098
10127
|
function getUnwrapEncryptedTokensCallbackInstructionDataEncoder() {
|
|
10099
10128
|
return transformEncoder46(
|
|
10100
|
-
|
|
10129
|
+
getStructEncoder94([
|
|
10101
10130
|
["discriminator", fixEncoderSize47(getBytesEncoder47(), 8)],
|
|
10102
10131
|
[
|
|
10103
10132
|
"output",
|
|
10104
10133
|
getDiscriminatedUnionEncoder9([
|
|
10105
10134
|
[
|
|
10106
10135
|
"Success",
|
|
10107
|
-
|
|
10136
|
+
getStructEncoder94([
|
|
10108
10137
|
[
|
|
10109
10138
|
"fields",
|
|
10110
10139
|
getTupleEncoder11([
|
|
@@ -10117,7 +10146,7 @@ function getUnwrapEncryptedTokensCallbackInstructionDataEncoder() {
|
|
|
10117
10146
|
["Failure", getUnitEncoder6()],
|
|
10118
10147
|
[
|
|
10119
10148
|
"MarkerForIdlBuildDoNotUseThis",
|
|
10120
|
-
|
|
10149
|
+
getStructEncoder94([
|
|
10121
10150
|
[
|
|
10122
10151
|
"fields",
|
|
10123
10152
|
getTupleEncoder11([getUnwrapEncryptedTokensOutputEncoder()])
|
|
@@ -10134,14 +10163,14 @@ function getUnwrapEncryptedTokensCallbackInstructionDataEncoder() {
|
|
|
10134
10163
|
);
|
|
10135
10164
|
}
|
|
10136
10165
|
function getUnwrapEncryptedTokensCallbackInstructionDataDecoder() {
|
|
10137
|
-
return
|
|
10166
|
+
return getStructDecoder94([
|
|
10138
10167
|
["discriminator", fixDecoderSize46(getBytesDecoder46(), 8)],
|
|
10139
10168
|
[
|
|
10140
10169
|
"output",
|
|
10141
10170
|
getDiscriminatedUnionDecoder9([
|
|
10142
10171
|
[
|
|
10143
10172
|
"Success",
|
|
10144
|
-
|
|
10173
|
+
getStructDecoder94([
|
|
10145
10174
|
[
|
|
10146
10175
|
"fields",
|
|
10147
10176
|
getTupleDecoder11([
|
|
@@ -10154,7 +10183,7 @@ function getUnwrapEncryptedTokensCallbackInstructionDataDecoder() {
|
|
|
10154
10183
|
["Failure", getUnitDecoder6()],
|
|
10155
10184
|
[
|
|
10156
10185
|
"MarkerForIdlBuildDoNotUseThis",
|
|
10157
|
-
|
|
10186
|
+
getStructDecoder94([
|
|
10158
10187
|
[
|
|
10159
10188
|
"fields",
|
|
10160
10189
|
getTupleDecoder11([getUnwrapEncryptedTokensOutputDecoder()])
|
|
@@ -10166,7 +10195,7 @@ function getUnwrapEncryptedTokensCallbackInstructionDataDecoder() {
|
|
|
10166
10195
|
]);
|
|
10167
10196
|
}
|
|
10168
10197
|
function getUnwrapEncryptedTokensCallbackInstructionDataCodec() {
|
|
10169
|
-
return
|
|
10198
|
+
return combineCodec100(
|
|
10170
10199
|
getUnwrapEncryptedTokensCallbackInstructionDataEncoder(),
|
|
10171
10200
|
getUnwrapEncryptedTokensCallbackInstructionDataDecoder()
|
|
10172
10201
|
);
|
|
@@ -10263,13 +10292,13 @@ function parseUnwrapEncryptedTokensCallbackInstruction(instruction) {
|
|
|
10263
10292
|
|
|
10264
10293
|
// src/generated/instructions/unwrapEncryptedTokensCompDef.ts
|
|
10265
10294
|
import {
|
|
10266
|
-
combineCodec as
|
|
10295
|
+
combineCodec as combineCodec101,
|
|
10267
10296
|
fixDecoderSize as fixDecoderSize47,
|
|
10268
10297
|
fixEncoderSize as fixEncoderSize48,
|
|
10269
10298
|
getBytesDecoder as getBytesDecoder47,
|
|
10270
10299
|
getBytesEncoder as getBytesEncoder48,
|
|
10271
|
-
getStructDecoder as
|
|
10272
|
-
getStructEncoder as
|
|
10300
|
+
getStructDecoder as getStructDecoder95,
|
|
10301
|
+
getStructEncoder as getStructEncoder95,
|
|
10273
10302
|
transformEncoder as transformEncoder47
|
|
10274
10303
|
} from "@solana/kit";
|
|
10275
10304
|
var UNWRAP_ENCRYPTED_TOKENS_COMP_DEF_DISCRIMINATOR = new Uint8Array([
|
|
@@ -10289,7 +10318,7 @@ function getUnwrapEncryptedTokensCompDefDiscriminatorBytes() {
|
|
|
10289
10318
|
}
|
|
10290
10319
|
function getUnwrapEncryptedTokensCompDefInstructionDataEncoder() {
|
|
10291
10320
|
return transformEncoder47(
|
|
10292
|
-
|
|
10321
|
+
getStructEncoder95([["discriminator", fixEncoderSize48(getBytesEncoder48(), 8)]]),
|
|
10293
10322
|
(value) => ({
|
|
10294
10323
|
...value,
|
|
10295
10324
|
discriminator: UNWRAP_ENCRYPTED_TOKENS_COMP_DEF_DISCRIMINATOR
|
|
@@ -10297,12 +10326,12 @@ function getUnwrapEncryptedTokensCompDefInstructionDataEncoder() {
|
|
|
10297
10326
|
);
|
|
10298
10327
|
}
|
|
10299
10328
|
function getUnwrapEncryptedTokensCompDefInstructionDataDecoder() {
|
|
10300
|
-
return
|
|
10329
|
+
return getStructDecoder95([
|
|
10301
10330
|
["discriminator", fixDecoderSize47(getBytesDecoder47(), 8)]
|
|
10302
10331
|
]);
|
|
10303
10332
|
}
|
|
10304
10333
|
function getUnwrapEncryptedTokensCompDefInstructionDataCodec() {
|
|
10305
|
-
return
|
|
10334
|
+
return combineCodec101(
|
|
10306
10335
|
getUnwrapEncryptedTokensCompDefInstructionDataEncoder(),
|
|
10307
10336
|
getUnwrapEncryptedTokensCompDefInstructionDataDecoder()
|
|
10308
10337
|
);
|
|
@@ -10375,16 +10404,16 @@ function parseUnwrapEncryptedTokensCompDefInstruction(instruction) {
|
|
|
10375
10404
|
|
|
10376
10405
|
// src/generated/instructions/updateCentralState.ts
|
|
10377
10406
|
import {
|
|
10378
|
-
combineCodec as
|
|
10407
|
+
combineCodec as combineCodec102,
|
|
10379
10408
|
fixDecoderSize as fixDecoderSize48,
|
|
10380
10409
|
fixEncoderSize as fixEncoderSize49,
|
|
10381
|
-
getAddressDecoder as
|
|
10382
|
-
getAddressEncoder as
|
|
10410
|
+
getAddressDecoder as getAddressDecoder42,
|
|
10411
|
+
getAddressEncoder as getAddressEncoder58,
|
|
10383
10412
|
getBytesDecoder as getBytesDecoder48,
|
|
10384
10413
|
getBytesEncoder as getBytesEncoder49,
|
|
10385
10414
|
getProgramDerivedAddress as getProgramDerivedAddress22,
|
|
10386
|
-
getStructDecoder as
|
|
10387
|
-
getStructEncoder as
|
|
10415
|
+
getStructDecoder as getStructDecoder96,
|
|
10416
|
+
getStructEncoder as getStructEncoder96,
|
|
10388
10417
|
getU16Decoder as getU16Decoder18,
|
|
10389
10418
|
getU16Encoder as getU16Encoder18,
|
|
10390
10419
|
getU64Decoder as getU64Decoder40,
|
|
@@ -10408,27 +10437,27 @@ function getUpdateCentralStateDiscriminatorBytes() {
|
|
|
10408
10437
|
}
|
|
10409
10438
|
function getUpdateCentralStateInstructionDataEncoder() {
|
|
10410
10439
|
return transformEncoder48(
|
|
10411
|
-
|
|
10440
|
+
getStructEncoder96([
|
|
10412
10441
|
["discriminator", fixEncoderSize49(getBytesEncoder49(), 8)],
|
|
10413
10442
|
["earlinessCutoffSeconds", getU64Encoder40()],
|
|
10414
10443
|
["minOptionDeposit", getU64Encoder40()],
|
|
10415
10444
|
["protocolFeeBp", getU16Encoder18()],
|
|
10416
|
-
["feeRecipient",
|
|
10445
|
+
["feeRecipient", getAddressEncoder58()]
|
|
10417
10446
|
]),
|
|
10418
10447
|
(value) => ({ ...value, discriminator: UPDATE_CENTRAL_STATE_DISCRIMINATOR })
|
|
10419
10448
|
);
|
|
10420
10449
|
}
|
|
10421
10450
|
function getUpdateCentralStateInstructionDataDecoder() {
|
|
10422
|
-
return
|
|
10451
|
+
return getStructDecoder96([
|
|
10423
10452
|
["discriminator", fixDecoderSize48(getBytesDecoder48(), 8)],
|
|
10424
10453
|
["earlinessCutoffSeconds", getU64Decoder40()],
|
|
10425
10454
|
["minOptionDeposit", getU64Decoder40()],
|
|
10426
10455
|
["protocolFeeBp", getU16Decoder18()],
|
|
10427
|
-
["feeRecipient",
|
|
10456
|
+
["feeRecipient", getAddressDecoder42()]
|
|
10428
10457
|
]);
|
|
10429
10458
|
}
|
|
10430
10459
|
function getUpdateCentralStateInstructionDataCodec() {
|
|
10431
|
-
return
|
|
10460
|
+
return combineCodec102(
|
|
10432
10461
|
getUpdateCentralStateInstructionDataEncoder(),
|
|
10433
10462
|
getUpdateCentralStateInstructionDataDecoder()
|
|
10434
10463
|
);
|
|
@@ -10518,15 +10547,15 @@ function parseUpdateCentralStateInstruction(instruction) {
|
|
|
10518
10547
|
|
|
10519
10548
|
// src/generated/instructions/wrapEncryptedTokens.ts
|
|
10520
10549
|
import {
|
|
10521
|
-
combineCodec as
|
|
10550
|
+
combineCodec as combineCodec103,
|
|
10522
10551
|
fixDecoderSize as fixDecoderSize49,
|
|
10523
10552
|
fixEncoderSize as fixEncoderSize50,
|
|
10524
|
-
getAddressEncoder as
|
|
10553
|
+
getAddressEncoder as getAddressEncoder59,
|
|
10525
10554
|
getBytesDecoder as getBytesDecoder49,
|
|
10526
10555
|
getBytesEncoder as getBytesEncoder50,
|
|
10527
10556
|
getProgramDerivedAddress as getProgramDerivedAddress23,
|
|
10528
|
-
getStructDecoder as
|
|
10529
|
-
getStructEncoder as
|
|
10557
|
+
getStructDecoder as getStructDecoder97,
|
|
10558
|
+
getStructEncoder as getStructEncoder97,
|
|
10530
10559
|
getU64Decoder as getU64Decoder41,
|
|
10531
10560
|
getU64Encoder as getU64Encoder41,
|
|
10532
10561
|
transformEncoder as transformEncoder49
|
|
@@ -10548,7 +10577,7 @@ function getWrapEncryptedTokensDiscriminatorBytes() {
|
|
|
10548
10577
|
}
|
|
10549
10578
|
function getWrapEncryptedTokensInstructionDataEncoder() {
|
|
10550
10579
|
return transformEncoder49(
|
|
10551
|
-
|
|
10580
|
+
getStructEncoder97([
|
|
10552
10581
|
["discriminator", fixEncoderSize50(getBytesEncoder50(), 8)],
|
|
10553
10582
|
["computationOffset", getU64Encoder41()],
|
|
10554
10583
|
["amount", getU64Encoder41()]
|
|
@@ -10560,14 +10589,14 @@ function getWrapEncryptedTokensInstructionDataEncoder() {
|
|
|
10560
10589
|
);
|
|
10561
10590
|
}
|
|
10562
10591
|
function getWrapEncryptedTokensInstructionDataDecoder() {
|
|
10563
|
-
return
|
|
10592
|
+
return getStructDecoder97([
|
|
10564
10593
|
["discriminator", fixDecoderSize49(getBytesDecoder49(), 8)],
|
|
10565
10594
|
["computationOffset", getU64Decoder41()],
|
|
10566
10595
|
["amount", getU64Decoder41()]
|
|
10567
10596
|
]);
|
|
10568
10597
|
}
|
|
10569
10598
|
function getWrapEncryptedTokensInstructionDataCodec() {
|
|
10570
|
-
return
|
|
10599
|
+
return combineCodec103(
|
|
10571
10600
|
getWrapEncryptedTokensInstructionDataEncoder(),
|
|
10572
10601
|
getWrapEncryptedTokensInstructionDataDecoder()
|
|
10573
10602
|
);
|
|
@@ -10612,7 +10641,7 @@ async function getWrapEncryptedTokensInstructionAsync(input, config) {
|
|
|
10612
10641
|
getBytesEncoder50().encode(
|
|
10613
10642
|
new Uint8Array([116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116])
|
|
10614
10643
|
),
|
|
10615
|
-
|
|
10644
|
+
getAddressEncoder59().encode(expectAddress(accounts.tokenMint.value))
|
|
10616
10645
|
]
|
|
10617
10646
|
});
|
|
10618
10647
|
}
|
|
@@ -10620,9 +10649,9 @@ async function getWrapEncryptedTokensInstructionAsync(input, config) {
|
|
|
10620
10649
|
accounts.tokenVaultAta.value = await getProgramDerivedAddress23({
|
|
10621
10650
|
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
10622
10651
|
seeds: [
|
|
10623
|
-
|
|
10624
|
-
|
|
10625
|
-
|
|
10652
|
+
getAddressEncoder59().encode(expectAddress(accounts.tokenVault.value)),
|
|
10653
|
+
getAddressEncoder59().encode(expectAddress(accounts.tokenProgram.value)),
|
|
10654
|
+
getAddressEncoder59().encode(expectAddress(accounts.tokenMint.value))
|
|
10626
10655
|
]
|
|
10627
10656
|
});
|
|
10628
10657
|
}
|
|
@@ -10809,7 +10838,7 @@ function parseWrapEncryptedTokensInstruction(instruction) {
|
|
|
10809
10838
|
|
|
10810
10839
|
// src/generated/instructions/wrapEncryptedTokensCallback.ts
|
|
10811
10840
|
import {
|
|
10812
|
-
combineCodec as
|
|
10841
|
+
combineCodec as combineCodec104,
|
|
10813
10842
|
fixDecoderSize as fixDecoderSize50,
|
|
10814
10843
|
fixEncoderSize as fixEncoderSize51,
|
|
10815
10844
|
getArrayDecoder as getArrayDecoder35,
|
|
@@ -10818,8 +10847,8 @@ import {
|
|
|
10818
10847
|
getBytesEncoder as getBytesEncoder51,
|
|
10819
10848
|
getDiscriminatedUnionDecoder as getDiscriminatedUnionDecoder10,
|
|
10820
10849
|
getDiscriminatedUnionEncoder as getDiscriminatedUnionEncoder10,
|
|
10821
|
-
getStructDecoder as
|
|
10822
|
-
getStructEncoder as
|
|
10850
|
+
getStructDecoder as getStructDecoder98,
|
|
10851
|
+
getStructEncoder as getStructEncoder98,
|
|
10823
10852
|
getTupleDecoder as getTupleDecoder12,
|
|
10824
10853
|
getTupleEncoder as getTupleEncoder12,
|
|
10825
10854
|
getU8Decoder as getU8Decoder41,
|
|
@@ -10845,14 +10874,14 @@ function getWrapEncryptedTokensCallbackDiscriminatorBytes() {
|
|
|
10845
10874
|
}
|
|
10846
10875
|
function getWrapEncryptedTokensCallbackInstructionDataEncoder() {
|
|
10847
10876
|
return transformEncoder50(
|
|
10848
|
-
|
|
10877
|
+
getStructEncoder98([
|
|
10849
10878
|
["discriminator", fixEncoderSize51(getBytesEncoder51(), 8)],
|
|
10850
10879
|
[
|
|
10851
10880
|
"output",
|
|
10852
10881
|
getDiscriminatedUnionEncoder10([
|
|
10853
10882
|
[
|
|
10854
10883
|
"Success",
|
|
10855
|
-
|
|
10884
|
+
getStructEncoder98([
|
|
10856
10885
|
[
|
|
10857
10886
|
"fields",
|
|
10858
10887
|
getTupleEncoder12([
|
|
@@ -10865,7 +10894,7 @@ function getWrapEncryptedTokensCallbackInstructionDataEncoder() {
|
|
|
10865
10894
|
["Failure", getUnitEncoder7()],
|
|
10866
10895
|
[
|
|
10867
10896
|
"MarkerForIdlBuildDoNotUseThis",
|
|
10868
|
-
|
|
10897
|
+
getStructEncoder98([
|
|
10869
10898
|
[
|
|
10870
10899
|
"fields",
|
|
10871
10900
|
getTupleEncoder12([getWrapEncryptedTokensOutputEncoder()])
|
|
@@ -10882,14 +10911,14 @@ function getWrapEncryptedTokensCallbackInstructionDataEncoder() {
|
|
|
10882
10911
|
);
|
|
10883
10912
|
}
|
|
10884
10913
|
function getWrapEncryptedTokensCallbackInstructionDataDecoder() {
|
|
10885
|
-
return
|
|
10914
|
+
return getStructDecoder98([
|
|
10886
10915
|
["discriminator", fixDecoderSize50(getBytesDecoder50(), 8)],
|
|
10887
10916
|
[
|
|
10888
10917
|
"output",
|
|
10889
10918
|
getDiscriminatedUnionDecoder10([
|
|
10890
10919
|
[
|
|
10891
10920
|
"Success",
|
|
10892
|
-
|
|
10921
|
+
getStructDecoder98([
|
|
10893
10922
|
[
|
|
10894
10923
|
"fields",
|
|
10895
10924
|
getTupleDecoder12([
|
|
@@ -10902,7 +10931,7 @@ function getWrapEncryptedTokensCallbackInstructionDataDecoder() {
|
|
|
10902
10931
|
["Failure", getUnitDecoder7()],
|
|
10903
10932
|
[
|
|
10904
10933
|
"MarkerForIdlBuildDoNotUseThis",
|
|
10905
|
-
|
|
10934
|
+
getStructDecoder98([
|
|
10906
10935
|
[
|
|
10907
10936
|
"fields",
|
|
10908
10937
|
getTupleDecoder12([getWrapEncryptedTokensOutputDecoder()])
|
|
@@ -10914,7 +10943,7 @@ function getWrapEncryptedTokensCallbackInstructionDataDecoder() {
|
|
|
10914
10943
|
]);
|
|
10915
10944
|
}
|
|
10916
10945
|
function getWrapEncryptedTokensCallbackInstructionDataCodec() {
|
|
10917
|
-
return
|
|
10946
|
+
return combineCodec104(
|
|
10918
10947
|
getWrapEncryptedTokensCallbackInstructionDataEncoder(),
|
|
10919
10948
|
getWrapEncryptedTokensCallbackInstructionDataDecoder()
|
|
10920
10949
|
);
|
|
@@ -10993,13 +11022,13 @@ function parseWrapEncryptedTokensCallbackInstruction(instruction) {
|
|
|
10993
11022
|
|
|
10994
11023
|
// src/generated/instructions/wrapEncryptedTokensCompDef.ts
|
|
10995
11024
|
import {
|
|
10996
|
-
combineCodec as
|
|
11025
|
+
combineCodec as combineCodec105,
|
|
10997
11026
|
fixDecoderSize as fixDecoderSize51,
|
|
10998
11027
|
fixEncoderSize as fixEncoderSize52,
|
|
10999
11028
|
getBytesDecoder as getBytesDecoder51,
|
|
11000
11029
|
getBytesEncoder as getBytesEncoder52,
|
|
11001
|
-
getStructDecoder as
|
|
11002
|
-
getStructEncoder as
|
|
11030
|
+
getStructDecoder as getStructDecoder99,
|
|
11031
|
+
getStructEncoder as getStructEncoder99,
|
|
11003
11032
|
transformEncoder as transformEncoder51
|
|
11004
11033
|
} from "@solana/kit";
|
|
11005
11034
|
var WRAP_ENCRYPTED_TOKENS_COMP_DEF_DISCRIMINATOR = new Uint8Array([
|
|
@@ -11019,7 +11048,7 @@ function getWrapEncryptedTokensCompDefDiscriminatorBytes() {
|
|
|
11019
11048
|
}
|
|
11020
11049
|
function getWrapEncryptedTokensCompDefInstructionDataEncoder() {
|
|
11021
11050
|
return transformEncoder51(
|
|
11022
|
-
|
|
11051
|
+
getStructEncoder99([["discriminator", fixEncoderSize52(getBytesEncoder52(), 8)]]),
|
|
11023
11052
|
(value) => ({
|
|
11024
11053
|
...value,
|
|
11025
11054
|
discriminator: WRAP_ENCRYPTED_TOKENS_COMP_DEF_DISCRIMINATOR
|
|
@@ -11027,12 +11056,12 @@ function getWrapEncryptedTokensCompDefInstructionDataEncoder() {
|
|
|
11027
11056
|
);
|
|
11028
11057
|
}
|
|
11029
11058
|
function getWrapEncryptedTokensCompDefInstructionDataDecoder() {
|
|
11030
|
-
return
|
|
11059
|
+
return getStructDecoder99([
|
|
11031
11060
|
["discriminator", fixDecoderSize51(getBytesDecoder51(), 8)]
|
|
11032
11061
|
]);
|
|
11033
11062
|
}
|
|
11034
11063
|
function getWrapEncryptedTokensCompDefInstructionDataCodec() {
|
|
11035
|
-
return
|
|
11064
|
+
return combineCodec105(
|
|
11036
11065
|
getWrapEncryptedTokensCompDefInstructionDataEncoder(),
|
|
11037
11066
|
getWrapEncryptedTokensCompDefInstructionDataDecoder()
|
|
11038
11067
|
);
|
|
@@ -11589,7 +11618,7 @@ async function claimPendingDeposit(input) {
|
|
|
11589
11618
|
|
|
11590
11619
|
// src/accounts/encryptedTokenAccount.ts
|
|
11591
11620
|
import {
|
|
11592
|
-
getAddressEncoder as
|
|
11621
|
+
getAddressEncoder as getAddressEncoder60,
|
|
11593
11622
|
getU64Encoder as getU64Encoder42,
|
|
11594
11623
|
getProgramDerivedAddress as getProgramDerivedAddress25
|
|
11595
11624
|
} from "@solana/kit";
|
|
@@ -11602,8 +11631,8 @@ async function getEncryptedTokenAccountAddressWithIndex(tokenMint, owner, index,
|
|
|
11602
11631
|
programAddress: programId,
|
|
11603
11632
|
seeds: [
|
|
11604
11633
|
ENCRYPTED_TOKEN_ACCOUNT_SEED,
|
|
11605
|
-
|
|
11606
|
-
|
|
11634
|
+
getAddressEncoder60().encode(tokenMint),
|
|
11635
|
+
getAddressEncoder60().encode(owner),
|
|
11607
11636
|
getU64Encoder42().encode(index)
|
|
11608
11637
|
]
|
|
11609
11638
|
});
|
|
@@ -11614,7 +11643,7 @@ async function getEphemeralEncryptedTokenAccountAddress(tokenMint, owner, index,
|
|
|
11614
11643
|
|
|
11615
11644
|
// src/accounts/opportunityMarket.ts
|
|
11616
11645
|
import {
|
|
11617
|
-
getAddressEncoder as
|
|
11646
|
+
getAddressEncoder as getAddressEncoder61,
|
|
11618
11647
|
getU64Encoder as getU64Encoder43,
|
|
11619
11648
|
getProgramDerivedAddress as getProgramDerivedAddress26
|
|
11620
11649
|
} from "@solana/kit";
|
|
@@ -11624,7 +11653,7 @@ async function getOpportunityMarketAddress(creator, marketIndex, programId = OPP
|
|
|
11624
11653
|
programAddress: programId,
|
|
11625
11654
|
seeds: [
|
|
11626
11655
|
OPPORTUNITY_MARKET_SEED,
|
|
11627
|
-
|
|
11656
|
+
getAddressEncoder61().encode(creator),
|
|
11628
11657
|
getU64Encoder43().encode(BigInt(marketIndex))
|
|
11629
11658
|
]
|
|
11630
11659
|
});
|
|
@@ -11632,7 +11661,7 @@ async function getOpportunityMarketAddress(creator, marketIndex, programId = OPP
|
|
|
11632
11661
|
|
|
11633
11662
|
// src/accounts/opportunityMarketOption.ts
|
|
11634
11663
|
import {
|
|
11635
|
-
getAddressEncoder as
|
|
11664
|
+
getAddressEncoder as getAddressEncoder62,
|
|
11636
11665
|
getU16Encoder as getU16Encoder19,
|
|
11637
11666
|
getProgramDerivedAddress as getProgramDerivedAddress27
|
|
11638
11667
|
} from "@solana/kit";
|
|
@@ -11642,7 +11671,7 @@ async function getOpportunityMarketOptionAddress(market, optionIndex, programId
|
|
|
11642
11671
|
programAddress: programId,
|
|
11643
11672
|
seeds: [
|
|
11644
11673
|
OPPORTUNITY_MARKET_OPTION_SEED,
|
|
11645
|
-
|
|
11674
|
+
getAddressEncoder62().encode(market),
|
|
11646
11675
|
getU16Encoder19().encode(optionIndex)
|
|
11647
11676
|
]
|
|
11648
11677
|
});
|
|
@@ -11650,12 +11679,12 @@ async function getOpportunityMarketOptionAddress(market, optionIndex, programId
|
|
|
11650
11679
|
|
|
11651
11680
|
// src/accounts/shareAccount.ts
|
|
11652
11681
|
import {
|
|
11653
|
-
getAddressEncoder as
|
|
11682
|
+
getAddressEncoder as getAddressEncoder63,
|
|
11654
11683
|
getProgramDerivedAddress as getProgramDerivedAddress28
|
|
11655
11684
|
} from "@solana/kit";
|
|
11656
11685
|
var SHARE_ACCOUNT_SEED = "share_account";
|
|
11657
11686
|
async function getShareAccountAddress(owner, market, shareAccountId, programId = OPPORTUNITY_MARKET_PROGRAM_ADDRESS) {
|
|
11658
|
-
const addressEncoder =
|
|
11687
|
+
const addressEncoder = getAddressEncoder63();
|
|
11659
11688
|
const idBytes = new Uint8Array(4);
|
|
11660
11689
|
new DataView(idBytes.buffer).setUint32(0, shareAccountId, true);
|
|
11661
11690
|
return getProgramDerivedAddress28({
|
|
@@ -11671,19 +11700,19 @@ async function getShareAccountAddress(owner, market, shareAccountId, programId =
|
|
|
11671
11700
|
|
|
11672
11701
|
// src/accounts/tokenVault.ts
|
|
11673
11702
|
import {
|
|
11674
|
-
getAddressEncoder as
|
|
11703
|
+
getAddressEncoder as getAddressEncoder64,
|
|
11675
11704
|
getProgramDerivedAddress as getProgramDerivedAddress29
|
|
11676
11705
|
} from "@solana/kit";
|
|
11677
11706
|
var TOKEN_VAULT_SEED = "token_vault";
|
|
11678
11707
|
async function getTokenVaultAddress(mint, programId = OPPORTUNITY_MARKET_PROGRAM_ADDRESS) {
|
|
11679
11708
|
return getProgramDerivedAddress29({
|
|
11680
11709
|
programAddress: programId,
|
|
11681
|
-
seeds: [TOKEN_VAULT_SEED,
|
|
11710
|
+
seeds: [TOKEN_VAULT_SEED, getAddressEncoder64().encode(mint)]
|
|
11682
11711
|
});
|
|
11683
11712
|
}
|
|
11684
11713
|
|
|
11685
11714
|
// src/arcium/awaitFinalizeComputation.ts
|
|
11686
|
-
import { getAddressEncoder as
|
|
11715
|
+
import { getAddressEncoder as getAddressEncoder65 } from "@solana/kit";
|
|
11687
11716
|
|
|
11688
11717
|
// src/arcium/constants.ts
|
|
11689
11718
|
var ARCIUM_PROGRAM_ID = "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ";
|
|
@@ -11712,7 +11741,7 @@ var awaitBatchComputationFinalization = async (rpc, computationOffsets, options)
|
|
|
11712
11741
|
}
|
|
11713
11742
|
const mxeProgramId = options?.mxeProgramId ?? OPPORTUNITY_MARKET_PROGRAM_ADDRESS;
|
|
11714
11743
|
const commitment = options?.commitment ?? "confirmed";
|
|
11715
|
-
const mxeProgramIdBytes =
|
|
11744
|
+
const mxeProgramIdBytes = getAddressEncoder65().encode(mxeProgramId);
|
|
11716
11745
|
const transactionCountLimit = options?.transactionCountLimit ?? 100;
|
|
11717
11746
|
const pollInterval = options?.pollInterval ?? 1e3;
|
|
11718
11747
|
const maxAttempts = options?.maxAttempts ?? 120;
|
|
@@ -12133,6 +12162,9 @@ export {
|
|
|
12133
12162
|
getEncryptedTokensUnwrappedEventCodec,
|
|
12134
12163
|
getEncryptedTokensUnwrappedEventDecoder,
|
|
12135
12164
|
getEncryptedTokensUnwrappedEventEncoder,
|
|
12165
|
+
getEncryptedTokensWrappedErrorCodec,
|
|
12166
|
+
getEncryptedTokensWrappedErrorDecoder,
|
|
12167
|
+
getEncryptedTokensWrappedErrorEncoder,
|
|
12136
12168
|
getEncryptedTokensWrappedEventCodec,
|
|
12137
12169
|
getEncryptedTokensWrappedEventDecoder,
|
|
12138
12170
|
getEncryptedTokensWrappedEventEncoder,
|