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