@lightprotocol/stateless.js 0.20.8 → 0.20.9
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/cjs/browser/index.cjs +1 -1
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/browser/instruction/pack-compressed-accounts.d.ts +12 -28
- package/dist/cjs/browser/rpc-interface.d.ts +23 -23
- package/dist/cjs/node/index.cjs +1 -1
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/cjs/node/instruction/pack-compressed-accounts.d.ts +12 -28
- package/dist/cjs/node/rpc-interface.d.ts +23 -23
- package/dist/types/index.d.ts +51 -67
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -606,6 +606,7 @@ declare function jsonRpcResultAndContext<T, U>(value: Struct<T, U>): Struct<RpcR
|
|
|
606
606
|
* @internal
|
|
607
607
|
*/
|
|
608
608
|
declare const CompressedAccountResult: Struct<{
|
|
609
|
+
lamports: BN;
|
|
609
610
|
data: {
|
|
610
611
|
data: string;
|
|
611
612
|
dataHash: BN;
|
|
@@ -613,7 +614,6 @@ declare const CompressedAccountResult: Struct<{
|
|
|
613
614
|
} | null;
|
|
614
615
|
address: number[] | null;
|
|
615
616
|
hash: BN;
|
|
616
|
-
lamports: BN;
|
|
617
617
|
owner: PublicKey;
|
|
618
618
|
leafIndex: number;
|
|
619
619
|
tree: PublicKey;
|
|
@@ -663,6 +663,7 @@ declare const CompressedTokenAccountResult: Struct<{
|
|
|
663
663
|
state: string;
|
|
664
664
|
};
|
|
665
665
|
account: {
|
|
666
|
+
lamports: BN;
|
|
666
667
|
data: {
|
|
667
668
|
data: string;
|
|
668
669
|
dataHash: BN;
|
|
@@ -670,7 +671,6 @@ declare const CompressedTokenAccountResult: Struct<{
|
|
|
670
671
|
} | null;
|
|
671
672
|
address: number[] | null;
|
|
672
673
|
hash: BN;
|
|
673
|
-
lamports: BN;
|
|
674
674
|
owner: PublicKey;
|
|
675
675
|
leafIndex: number;
|
|
676
676
|
tree: PublicKey;
|
|
@@ -692,6 +692,7 @@ declare const CompressedTokenAccountResult: Struct<{
|
|
|
692
692
|
state: Struct<string, null>;
|
|
693
693
|
}>;
|
|
694
694
|
account: Struct<{
|
|
695
|
+
lamports: BN;
|
|
695
696
|
data: {
|
|
696
697
|
data: string;
|
|
697
698
|
dataHash: BN;
|
|
@@ -699,7 +700,6 @@ declare const CompressedTokenAccountResult: Struct<{
|
|
|
699
700
|
} | null;
|
|
700
701
|
address: number[] | null;
|
|
701
702
|
hash: BN;
|
|
702
|
-
lamports: BN;
|
|
703
703
|
owner: PublicKey;
|
|
704
704
|
leafIndex: number;
|
|
705
705
|
tree: PublicKey;
|
|
@@ -730,6 +730,7 @@ declare const CompressedTokenAccountResult: Struct<{
|
|
|
730
730
|
*/
|
|
731
731
|
declare const MultipleCompressedAccountsResult: Struct<{
|
|
732
732
|
items: {
|
|
733
|
+
lamports: BN;
|
|
733
734
|
data: {
|
|
734
735
|
data: string;
|
|
735
736
|
dataHash: BN;
|
|
@@ -737,7 +738,6 @@ declare const MultipleCompressedAccountsResult: Struct<{
|
|
|
737
738
|
} | null;
|
|
738
739
|
address: number[] | null;
|
|
739
740
|
hash: BN;
|
|
740
|
-
lamports: BN;
|
|
741
741
|
owner: PublicKey;
|
|
742
742
|
leafIndex: number;
|
|
743
743
|
tree: PublicKey;
|
|
@@ -746,6 +746,7 @@ declare const MultipleCompressedAccountsResult: Struct<{
|
|
|
746
746
|
}[];
|
|
747
747
|
}, {
|
|
748
748
|
items: Struct<{
|
|
749
|
+
lamports: BN;
|
|
749
750
|
data: {
|
|
750
751
|
data: string;
|
|
751
752
|
dataHash: BN;
|
|
@@ -753,13 +754,13 @@ declare const MultipleCompressedAccountsResult: Struct<{
|
|
|
753
754
|
} | null;
|
|
754
755
|
address: number[] | null;
|
|
755
756
|
hash: BN;
|
|
756
|
-
lamports: BN;
|
|
757
757
|
owner: PublicKey;
|
|
758
758
|
leafIndex: number;
|
|
759
759
|
tree: PublicKey;
|
|
760
760
|
seq: BN | null;
|
|
761
761
|
slotCreated: BN;
|
|
762
762
|
}[], Struct<{
|
|
763
|
+
lamports: BN;
|
|
763
764
|
data: {
|
|
764
765
|
data: string;
|
|
765
766
|
dataHash: BN;
|
|
@@ -767,7 +768,6 @@ declare const MultipleCompressedAccountsResult: Struct<{
|
|
|
767
768
|
} | null;
|
|
768
769
|
address: number[] | null;
|
|
769
770
|
hash: BN;
|
|
770
|
-
lamports: BN;
|
|
771
771
|
owner: PublicKey;
|
|
772
772
|
leafIndex: number;
|
|
773
773
|
tree: PublicKey;
|
|
@@ -798,6 +798,7 @@ declare const MultipleCompressedAccountsResult: Struct<{
|
|
|
798
798
|
*/
|
|
799
799
|
declare const CompressedAccountsByOwnerResult: Struct<{
|
|
800
800
|
items: {
|
|
801
|
+
lamports: BN;
|
|
801
802
|
data: {
|
|
802
803
|
data: string;
|
|
803
804
|
dataHash: BN;
|
|
@@ -805,7 +806,6 @@ declare const CompressedAccountsByOwnerResult: Struct<{
|
|
|
805
806
|
} | null;
|
|
806
807
|
address: number[] | null;
|
|
807
808
|
hash: BN;
|
|
808
|
-
lamports: BN;
|
|
809
809
|
owner: PublicKey;
|
|
810
810
|
leafIndex: number;
|
|
811
811
|
tree: PublicKey;
|
|
@@ -815,6 +815,7 @@ declare const CompressedAccountsByOwnerResult: Struct<{
|
|
|
815
815
|
cursor: string | null;
|
|
816
816
|
}, {
|
|
817
817
|
items: Struct<{
|
|
818
|
+
lamports: BN;
|
|
818
819
|
data: {
|
|
819
820
|
data: string;
|
|
820
821
|
dataHash: BN;
|
|
@@ -822,13 +823,13 @@ declare const CompressedAccountsByOwnerResult: Struct<{
|
|
|
822
823
|
} | null;
|
|
823
824
|
address: number[] | null;
|
|
824
825
|
hash: BN;
|
|
825
|
-
lamports: BN;
|
|
826
826
|
owner: PublicKey;
|
|
827
827
|
leafIndex: number;
|
|
828
828
|
tree: PublicKey;
|
|
829
829
|
seq: BN | null;
|
|
830
830
|
slotCreated: BN;
|
|
831
831
|
}[], Struct<{
|
|
832
|
+
lamports: BN;
|
|
832
833
|
data: {
|
|
833
834
|
data: string;
|
|
834
835
|
dataHash: BN;
|
|
@@ -836,7 +837,6 @@ declare const CompressedAccountsByOwnerResult: Struct<{
|
|
|
836
837
|
} | null;
|
|
837
838
|
address: number[] | null;
|
|
838
839
|
hash: BN;
|
|
839
|
-
lamports: BN;
|
|
840
840
|
owner: PublicKey;
|
|
841
841
|
leafIndex: number;
|
|
842
842
|
tree: PublicKey;
|
|
@@ -876,6 +876,7 @@ declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
|
|
|
876
876
|
state: string;
|
|
877
877
|
};
|
|
878
878
|
account: {
|
|
879
|
+
lamports: BN;
|
|
879
880
|
data: {
|
|
880
881
|
data: string;
|
|
881
882
|
dataHash: BN;
|
|
@@ -883,7 +884,6 @@ declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
|
|
|
883
884
|
} | null;
|
|
884
885
|
address: number[] | null;
|
|
885
886
|
hash: BN;
|
|
886
|
-
lamports: BN;
|
|
887
887
|
owner: PublicKey;
|
|
888
888
|
leafIndex: number;
|
|
889
889
|
tree: PublicKey;
|
|
@@ -902,6 +902,7 @@ declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
|
|
|
902
902
|
state: string;
|
|
903
903
|
};
|
|
904
904
|
account: {
|
|
905
|
+
lamports: BN;
|
|
905
906
|
data: {
|
|
906
907
|
data: string;
|
|
907
908
|
dataHash: BN;
|
|
@@ -909,7 +910,6 @@ declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
|
|
|
909
910
|
} | null;
|
|
910
911
|
address: number[] | null;
|
|
911
912
|
hash: BN;
|
|
912
|
-
lamports: BN;
|
|
913
913
|
owner: PublicKey;
|
|
914
914
|
leafIndex: number;
|
|
915
915
|
tree: PublicKey;
|
|
@@ -925,6 +925,7 @@ declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
|
|
|
925
925
|
state: string;
|
|
926
926
|
};
|
|
927
927
|
account: {
|
|
928
|
+
lamports: BN;
|
|
928
929
|
data: {
|
|
929
930
|
data: string;
|
|
930
931
|
dataHash: BN;
|
|
@@ -932,7 +933,6 @@ declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
|
|
|
932
933
|
} | null;
|
|
933
934
|
address: number[] | null;
|
|
934
935
|
hash: BN;
|
|
935
|
-
lamports: BN;
|
|
936
936
|
owner: PublicKey;
|
|
937
937
|
leafIndex: number;
|
|
938
938
|
tree: PublicKey;
|
|
@@ -954,6 +954,7 @@ declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
|
|
|
954
954
|
state: Struct<string, null>;
|
|
955
955
|
}>;
|
|
956
956
|
account: Struct<{
|
|
957
|
+
lamports: BN;
|
|
957
958
|
data: {
|
|
958
959
|
data: string;
|
|
959
960
|
dataHash: BN;
|
|
@@ -961,7 +962,6 @@ declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
|
|
|
961
962
|
} | null;
|
|
962
963
|
address: number[] | null;
|
|
963
964
|
hash: BN;
|
|
964
|
-
lamports: BN;
|
|
965
965
|
owner: PublicKey;
|
|
966
966
|
leafIndex: number;
|
|
967
967
|
tree: PublicKey;
|
|
@@ -1002,21 +1002,21 @@ declare const HealthResult: Struct<string, null>;
|
|
|
1002
1002
|
*/
|
|
1003
1003
|
declare const LatestNonVotingSignaturesResult: Struct<{
|
|
1004
1004
|
items: {
|
|
1005
|
+
signature: string;
|
|
1005
1006
|
error: string | null;
|
|
1006
1007
|
slot: number;
|
|
1007
|
-
signature: string;
|
|
1008
1008
|
blockTime: number;
|
|
1009
1009
|
}[];
|
|
1010
1010
|
}, {
|
|
1011
1011
|
items: Struct<{
|
|
1012
|
+
signature: string;
|
|
1012
1013
|
error: string | null;
|
|
1013
1014
|
slot: number;
|
|
1014
|
-
signature: string;
|
|
1015
1015
|
blockTime: number;
|
|
1016
1016
|
}[], Struct<{
|
|
1017
|
+
signature: string;
|
|
1017
1018
|
error: string | null;
|
|
1018
1019
|
slot: number;
|
|
1019
|
-
signature: string;
|
|
1020
1020
|
blockTime: number;
|
|
1021
1021
|
}, {
|
|
1022
1022
|
signature: Struct<string, null>;
|
|
@@ -1030,19 +1030,19 @@ declare const LatestNonVotingSignaturesResult: Struct<{
|
|
|
1030
1030
|
*/
|
|
1031
1031
|
declare const LatestNonVotingSignaturesResultPaginated: Struct<{
|
|
1032
1032
|
items: {
|
|
1033
|
-
slot: number;
|
|
1034
1033
|
signature: string;
|
|
1034
|
+
slot: number;
|
|
1035
1035
|
blockTime: number;
|
|
1036
1036
|
}[];
|
|
1037
1037
|
cursor: string | null;
|
|
1038
1038
|
}, {
|
|
1039
1039
|
items: Struct<{
|
|
1040
|
-
slot: number;
|
|
1041
1040
|
signature: string;
|
|
1041
|
+
slot: number;
|
|
1042
1042
|
blockTime: number;
|
|
1043
1043
|
}[], Struct<{
|
|
1044
|
-
slot: number;
|
|
1045
1044
|
signature: string;
|
|
1045
|
+
slot: number;
|
|
1046
1046
|
blockTime: number;
|
|
1047
1047
|
}, {
|
|
1048
1048
|
signature: Struct<string, null>;
|
|
@@ -1055,12 +1055,12 @@ declare const LatestNonVotingSignaturesResultPaginated: Struct<{
|
|
|
1055
1055
|
* @internal
|
|
1056
1056
|
*/
|
|
1057
1057
|
declare const MerkeProofResult: Struct<{
|
|
1058
|
+
root: BN;
|
|
1058
1059
|
hash: BN;
|
|
1059
1060
|
leafIndex: number;
|
|
1060
1061
|
merkleTree: PublicKey;
|
|
1061
1062
|
proof: BN[];
|
|
1062
1063
|
rootSeq: number;
|
|
1063
|
-
root: BN;
|
|
1064
1064
|
}, {
|
|
1065
1065
|
hash: Struct<BN, null>;
|
|
1066
1066
|
leafIndex: Struct<number, null>;
|
|
@@ -1073,11 +1073,11 @@ declare const MerkeProofResult: Struct<{
|
|
|
1073
1073
|
* @internal
|
|
1074
1074
|
*/
|
|
1075
1075
|
declare const NewAddressProofResult: Struct<{
|
|
1076
|
+
root: BN;
|
|
1076
1077
|
address: BN;
|
|
1077
1078
|
merkleTree: PublicKey;
|
|
1078
1079
|
proof: BN[];
|
|
1079
1080
|
rootSeq: number;
|
|
1080
|
-
root: BN;
|
|
1081
1081
|
nextIndex: number;
|
|
1082
1082
|
lowerRangeAddress: BN;
|
|
1083
1083
|
higherRangeAddress: BN;
|
|
@@ -1127,19 +1127,19 @@ declare const ValidityProofResult: Struct<{
|
|
|
1127
1127
|
* @internal
|
|
1128
1128
|
*/
|
|
1129
1129
|
declare const MultipleMerkleProofsResult: Struct<{
|
|
1130
|
+
root: BN;
|
|
1130
1131
|
hash: BN;
|
|
1131
1132
|
leafIndex: number;
|
|
1132
1133
|
merkleTree: PublicKey;
|
|
1133
1134
|
proof: BN[];
|
|
1134
1135
|
rootSeq: number;
|
|
1135
|
-
root: BN;
|
|
1136
1136
|
}[], Struct<{
|
|
1137
|
+
root: BN;
|
|
1137
1138
|
hash: BN;
|
|
1138
1139
|
leafIndex: number;
|
|
1139
1140
|
merkleTree: PublicKey;
|
|
1140
1141
|
proof: BN[];
|
|
1141
1142
|
rootSeq: number;
|
|
1142
|
-
root: BN;
|
|
1143
1143
|
}, {
|
|
1144
1144
|
hash: Struct<BN, null>;
|
|
1145
1145
|
leafIndex: Struct<number, null>;
|
|
@@ -1222,9 +1222,9 @@ declare const CompressedMintTokenHoldersResult: Struct<{
|
|
|
1222
1222
|
}>>;
|
|
1223
1223
|
}>;
|
|
1224
1224
|
declare const AccountProofResult: Struct<{
|
|
1225
|
+
root: number[];
|
|
1225
1226
|
hash: number[];
|
|
1226
1227
|
proof: number[][];
|
|
1227
|
-
root: number[];
|
|
1228
1228
|
}, {
|
|
1229
1229
|
hash: Struct<number[], Struct<number, null>>;
|
|
1230
1230
|
root: Struct<number[], Struct<number, null>>;
|
|
@@ -1233,18 +1233,18 @@ declare const AccountProofResult: Struct<{
|
|
|
1233
1233
|
declare const toUnixTimestamp: (blockTime: string) => number;
|
|
1234
1234
|
declare const SignatureListResult: Struct<{
|
|
1235
1235
|
items: {
|
|
1236
|
-
slot: number;
|
|
1237
1236
|
signature: string;
|
|
1237
|
+
slot: number;
|
|
1238
1238
|
blockTime: number;
|
|
1239
1239
|
}[];
|
|
1240
1240
|
}, {
|
|
1241
1241
|
items: Struct<{
|
|
1242
|
-
slot: number;
|
|
1243
1242
|
signature: string;
|
|
1243
|
+
slot: number;
|
|
1244
1244
|
blockTime: number;
|
|
1245
1245
|
}[], Struct<{
|
|
1246
|
-
slot: number;
|
|
1247
1246
|
signature: string;
|
|
1247
|
+
slot: number;
|
|
1248
1248
|
blockTime: number;
|
|
1249
1249
|
}, {
|
|
1250
1250
|
blockTime: Struct<number, null>;
|
|
@@ -1254,19 +1254,19 @@ declare const SignatureListResult: Struct<{
|
|
|
1254
1254
|
}>;
|
|
1255
1255
|
declare const SignatureListWithCursorResult: Struct<{
|
|
1256
1256
|
items: {
|
|
1257
|
-
slot: number;
|
|
1258
1257
|
signature: string;
|
|
1258
|
+
slot: number;
|
|
1259
1259
|
blockTime: number;
|
|
1260
1260
|
}[];
|
|
1261
1261
|
cursor: string | null;
|
|
1262
1262
|
}, {
|
|
1263
1263
|
items: Struct<{
|
|
1264
|
-
slot: number;
|
|
1265
1264
|
signature: string;
|
|
1265
|
+
slot: number;
|
|
1266
1266
|
blockTime: number;
|
|
1267
1267
|
}[], Struct<{
|
|
1268
|
-
slot: number;
|
|
1269
1268
|
signature: string;
|
|
1269
|
+
slot: number;
|
|
1270
1270
|
blockTime: number;
|
|
1271
1271
|
}, {
|
|
1272
1272
|
blockTime: Struct<number, null>;
|
|
@@ -1279,6 +1279,7 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1279
1279
|
compressionInfo: {
|
|
1280
1280
|
closedAccounts: {
|
|
1281
1281
|
account: {
|
|
1282
|
+
lamports: BN;
|
|
1282
1283
|
data: {
|
|
1283
1284
|
data: string;
|
|
1284
1285
|
dataHash: BN;
|
|
@@ -1286,7 +1287,6 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1286
1287
|
} | null;
|
|
1287
1288
|
address: number[] | null;
|
|
1288
1289
|
hash: BN;
|
|
1289
|
-
lamports: BN;
|
|
1290
1290
|
owner: PublicKey;
|
|
1291
1291
|
leafIndex: number;
|
|
1292
1292
|
tree: PublicKey;
|
|
@@ -1303,6 +1303,7 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1303
1303
|
}[];
|
|
1304
1304
|
openedAccounts: {
|
|
1305
1305
|
account: {
|
|
1306
|
+
lamports: BN;
|
|
1306
1307
|
data: {
|
|
1307
1308
|
data: string;
|
|
1308
1309
|
dataHash: BN;
|
|
@@ -1310,7 +1311,6 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1310
1311
|
} | null;
|
|
1311
1312
|
address: number[] | null;
|
|
1312
1313
|
hash: BN;
|
|
1313
|
-
lamports: BN;
|
|
1314
1314
|
owner: PublicKey;
|
|
1315
1315
|
leafIndex: number;
|
|
1316
1316
|
tree: PublicKey;
|
|
@@ -1331,6 +1331,7 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1331
1331
|
compressionInfo: Struct<{
|
|
1332
1332
|
closedAccounts: {
|
|
1333
1333
|
account: {
|
|
1334
|
+
lamports: BN;
|
|
1334
1335
|
data: {
|
|
1335
1336
|
data: string;
|
|
1336
1337
|
dataHash: BN;
|
|
@@ -1338,7 +1339,6 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1338
1339
|
} | null;
|
|
1339
1340
|
address: number[] | null;
|
|
1340
1341
|
hash: BN;
|
|
1341
|
-
lamports: BN;
|
|
1342
1342
|
owner: PublicKey;
|
|
1343
1343
|
leafIndex: number;
|
|
1344
1344
|
tree: PublicKey;
|
|
@@ -1355,6 +1355,7 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1355
1355
|
}[];
|
|
1356
1356
|
openedAccounts: {
|
|
1357
1357
|
account: {
|
|
1358
|
+
lamports: BN;
|
|
1358
1359
|
data: {
|
|
1359
1360
|
data: string;
|
|
1360
1361
|
dataHash: BN;
|
|
@@ -1362,7 +1363,6 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1362
1363
|
} | null;
|
|
1363
1364
|
address: number[] | null;
|
|
1364
1365
|
hash: BN;
|
|
1365
|
-
lamports: BN;
|
|
1366
1366
|
owner: PublicKey;
|
|
1367
1367
|
leafIndex: number;
|
|
1368
1368
|
tree: PublicKey;
|
|
@@ -1380,6 +1380,7 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1380
1380
|
}, {
|
|
1381
1381
|
closedAccounts: Struct<{
|
|
1382
1382
|
account: {
|
|
1383
|
+
lamports: BN;
|
|
1383
1384
|
data: {
|
|
1384
1385
|
data: string;
|
|
1385
1386
|
dataHash: BN;
|
|
@@ -1387,7 +1388,6 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1387
1388
|
} | null;
|
|
1388
1389
|
address: number[] | null;
|
|
1389
1390
|
hash: BN;
|
|
1390
|
-
lamports: BN;
|
|
1391
1391
|
owner: PublicKey;
|
|
1392
1392
|
leafIndex: number;
|
|
1393
1393
|
tree: PublicKey;
|
|
@@ -1403,6 +1403,7 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1403
1403
|
} | null;
|
|
1404
1404
|
}[], Struct<{
|
|
1405
1405
|
account: {
|
|
1406
|
+
lamports: BN;
|
|
1406
1407
|
data: {
|
|
1407
1408
|
data: string;
|
|
1408
1409
|
dataHash: BN;
|
|
@@ -1410,7 +1411,6 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1410
1411
|
} | null;
|
|
1411
1412
|
address: number[] | null;
|
|
1412
1413
|
hash: BN;
|
|
1413
|
-
lamports: BN;
|
|
1414
1414
|
owner: PublicKey;
|
|
1415
1415
|
leafIndex: number;
|
|
1416
1416
|
tree: PublicKey;
|
|
@@ -1426,6 +1426,7 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1426
1426
|
} | null;
|
|
1427
1427
|
}, {
|
|
1428
1428
|
account: Struct<{
|
|
1429
|
+
lamports: BN;
|
|
1429
1430
|
data: {
|
|
1430
1431
|
data: string;
|
|
1431
1432
|
dataHash: BN;
|
|
@@ -1433,7 +1434,6 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1433
1434
|
} | null;
|
|
1434
1435
|
address: number[] | null;
|
|
1435
1436
|
hash: BN;
|
|
1436
|
-
lamports: BN;
|
|
1437
1437
|
owner: PublicKey;
|
|
1438
1438
|
leafIndex: number;
|
|
1439
1439
|
tree: PublicKey;
|
|
@@ -1474,6 +1474,7 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1474
1474
|
}>>;
|
|
1475
1475
|
openedAccounts: Struct<{
|
|
1476
1476
|
account: {
|
|
1477
|
+
lamports: BN;
|
|
1477
1478
|
data: {
|
|
1478
1479
|
data: string;
|
|
1479
1480
|
dataHash: BN;
|
|
@@ -1481,7 +1482,6 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1481
1482
|
} | null;
|
|
1482
1483
|
address: number[] | null;
|
|
1483
1484
|
hash: BN;
|
|
1484
|
-
lamports: BN;
|
|
1485
1485
|
owner: PublicKey;
|
|
1486
1486
|
leafIndex: number;
|
|
1487
1487
|
tree: PublicKey;
|
|
@@ -1497,6 +1497,7 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1497
1497
|
} | null;
|
|
1498
1498
|
}[], Struct<{
|
|
1499
1499
|
account: {
|
|
1500
|
+
lamports: BN;
|
|
1500
1501
|
data: {
|
|
1501
1502
|
data: string;
|
|
1502
1503
|
dataHash: BN;
|
|
@@ -1504,7 +1505,6 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1504
1505
|
} | null;
|
|
1505
1506
|
address: number[] | null;
|
|
1506
1507
|
hash: BN;
|
|
1507
|
-
lamports: BN;
|
|
1508
1508
|
owner: PublicKey;
|
|
1509
1509
|
leafIndex: number;
|
|
1510
1510
|
tree: PublicKey;
|
|
@@ -1520,6 +1520,7 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1520
1520
|
} | null;
|
|
1521
1521
|
}, {
|
|
1522
1522
|
account: Struct<{
|
|
1523
|
+
lamports: BN;
|
|
1523
1524
|
data: {
|
|
1524
1525
|
data: string;
|
|
1525
1526
|
dataHash: BN;
|
|
@@ -1527,7 +1528,6 @@ declare const CompressedTransactionResult: Struct<{
|
|
|
1527
1528
|
} | null;
|
|
1528
1529
|
address: number[] | null;
|
|
1529
1530
|
hash: BN;
|
|
1530
|
-
lamports: BN;
|
|
1531
1531
|
owner: PublicKey;
|
|
1532
1532
|
leafIndex: number;
|
|
1533
1533
|
tree: PublicKey;
|
|
@@ -2533,29 +2533,19 @@ declare function getIndexOrAdd(accountsArray: PublicKey[], key: PublicKey): numb
|
|
|
2533
2533
|
* @internal
|
|
2534
2534
|
* Pads output state trees with the 0th state tree of the input state.
|
|
2535
2535
|
*
|
|
2536
|
-
* @param outputStateMerkleTrees
|
|
2537
|
-
*
|
|
2538
|
-
*
|
|
2539
|
-
*
|
|
2540
|
-
*
|
|
2541
|
-
*
|
|
2542
|
-
*
|
|
2543
|
-
* @param
|
|
2544
|
-
*
|
|
2545
|
-
* @param inputCompressedAccountsWithMerkleContext The input compressed
|
|
2546
|
-
* accounts with merkle
|
|
2547
|
-
* context.
|
|
2548
|
-
* @param activeTreeBundles Optional active tree bundles
|
|
2549
|
-
* to be used as fallback for
|
|
2550
|
-
* padding. Prioritizes ones
|
|
2551
|
-
* that are explicitly passed
|
|
2552
|
-
* via outputStateMerkleTrees
|
|
2553
|
-
* or
|
|
2554
|
-
* inputCompressedAccountsWithMerkleContext.
|
|
2536
|
+
* @param outputStateMerkleTrees Optional output state trees to be
|
|
2537
|
+
* inserted into the output state.
|
|
2538
|
+
* Defaults to the 0th state tree of
|
|
2539
|
+
* the input state. Gets padded to the
|
|
2540
|
+
* length of outputCompressedAccounts.
|
|
2541
|
+
* @param numberOfOutputCompressedAccounts The number of output compressed
|
|
2542
|
+
* accounts.
|
|
2543
|
+
* @param inputCompressedAccountsWithMerkleContext The input compressed accounts
|
|
2544
|
+
* with merkle context.
|
|
2555
2545
|
*
|
|
2556
2546
|
* @returns Padded output state trees.
|
|
2557
2547
|
*/
|
|
2558
|
-
declare function padOutputStateMerkleTrees(outputStateMerkleTrees: PublicKey[] | PublicKey | undefined, numberOfOutputCompressedAccounts: number, inputCompressedAccountsWithMerkleContext: CompressedAccountWithMerkleContext[]
|
|
2548
|
+
declare function padOutputStateMerkleTrees(outputStateMerkleTrees: PublicKey[] | PublicKey | undefined, numberOfOutputCompressedAccounts: number, inputCompressedAccountsWithMerkleContext: CompressedAccountWithMerkleContext[]): PublicKey[];
|
|
2559
2549
|
declare function toAccountMetas(remainingAccounts: PublicKey[]): AccountMeta[];
|
|
2560
2550
|
/**
|
|
2561
2551
|
* Packs Compressed Accounts.
|
|
@@ -2574,16 +2564,10 @@ declare function toAccountMetas(remainingAccounts: PublicKey[]): AccountMeta[];
|
|
|
2574
2564
|
* the input state. Gets padded to the
|
|
2575
2565
|
* length of outputCompressedAccounts.
|
|
2576
2566
|
*
|
|
2577
|
-
* @param activeTreeBundles Optional active tree bundles to be
|
|
2578
|
-
* used as fallback for padding.
|
|
2579
|
-
* Prioritizes ones that are explicitly
|
|
2580
|
-
* passed via outputStateMerkleTrees or
|
|
2581
|
-
* inputCompressedAccountsWithMerkleContext.
|
|
2582
|
-
*
|
|
2583
2567
|
* @param remainingAccounts Optional existing array of accounts
|
|
2584
2568
|
* to append to.
|
|
2585
2569
|
**/
|
|
2586
|
-
declare function packCompressedAccounts(inputCompressedAccounts: CompressedAccountWithMerkleContext[], inputStateRootIndices: number[], outputCompressedAccounts: CompressedAccount[], outputStateMerkleTrees?: PublicKey[] | PublicKey, remainingAccounts?: PublicKey[]
|
|
2570
|
+
declare function packCompressedAccounts(inputCompressedAccounts: CompressedAccountWithMerkleContext[], inputStateRootIndices: number[], outputCompressedAccounts: CompressedAccount[], outputStateMerkleTrees?: PublicKey[] | PublicKey, remainingAccounts?: PublicKey[]): {
|
|
2587
2571
|
packedInputCompressedAccounts: PackedCompressedAccountWithMerkleContext[];
|
|
2588
2572
|
packedOutputCompressedAccounts: OutputCompressedAccountWithPackedContext[];
|
|
2589
2573
|
remainingAccounts: PublicKey[];
|