@lightprotocol/stateless.js 0.8.0 → 0.10.0
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 +56 -30
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/node/index.cjs +56 -30
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/es/browser/index.js +53 -27
- package/dist/es/browser/index.js.map +1 -1
- package/dist/types/index.d.ts +44 -36
- package/package.json +3 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
2
|
-
import { PublicKey, Connection, Commitment, Keypair, TransactionInstruction, VersionedTransaction, ConfirmOptions, TransactionSignature, RpcResponseAndContext, SignatureResult, Signer, MemcmpFilter, DataSizeFilter, ConnectionConfig, AccountMeta, ParsedTransactionWithMeta } from '@solana/web3.js';
|
|
2
|
+
import { PublicKey, Connection, Commitment, Keypair, TransactionInstruction, AddressLookupTableAccount, VersionedTransaction, ConfirmOptions, TransactionSignature, RpcResponseAndContext, SignatureResult, Signer, MemcmpFilter, DataSizeFilter, ConnectionConfig, AccountMeta, ParsedTransactionWithMeta } from '@solana/web3.js';
|
|
3
3
|
import { Buffer as Buffer$1 } from 'buffer';
|
|
4
4
|
import * as superstruct_dist_utils from 'superstruct/dist/utils';
|
|
5
5
|
import { Struct } from 'superstruct';
|
|
@@ -128,10 +128,11 @@ declare function pipe<T, R>(initialFunction: (arg: T) => R, ...functions: ((arg:
|
|
|
128
128
|
* @param instructions instructions to include
|
|
129
129
|
* @param payerPublicKey fee payer public key
|
|
130
130
|
* @param blockhash blockhash to use
|
|
131
|
+
* @param lookupTableAccounts lookup table accounts to include
|
|
131
132
|
*
|
|
132
133
|
* @return VersionedTransaction
|
|
133
134
|
*/
|
|
134
|
-
declare function buildTx(instructions: TransactionInstruction[], payerPublicKey: PublicKey, blockhash: string): VersionedTransaction;
|
|
135
|
+
declare function buildTx(instructions: TransactionInstruction[], payerPublicKey: PublicKey, blockhash: string, lookupTableAccounts?: AddressLookupTableAccount[]): VersionedTransaction;
|
|
135
136
|
/**
|
|
136
137
|
* Sends a versioned transaction and confirms it.
|
|
137
138
|
*
|
|
@@ -166,8 +167,9 @@ declare function confirmTx(rpc: Rpc, txId: string, confirmOptions?: ConfirmOptio
|
|
|
166
167
|
* @param payer payer of the transaction
|
|
167
168
|
* @param blockhash recent blockhash to use in the transaction
|
|
168
169
|
* @param additionalSigners non-feepayer signers to include in the transaction
|
|
170
|
+
* @param lookupTableAccounts lookup table accounts to include in the transaction
|
|
169
171
|
*/
|
|
170
|
-
declare function buildAndSignTx(instructions: TransactionInstruction[], payer: Signer, blockhash: string, additionalSigners?: Signer[]): VersionedTransaction;
|
|
172
|
+
declare function buildAndSignTx(instructions: TransactionInstruction[], payer: Signer, blockhash: string, additionalSigners?: Signer[], lookupTableAccounts?: AddressLookupTableAccount[]): VersionedTransaction;
|
|
171
173
|
|
|
172
174
|
declare function sleep(ms: number): Promise<void>;
|
|
173
175
|
|
|
@@ -433,6 +435,12 @@ type WithContext<T> = {
|
|
|
433
435
|
/** response value */
|
|
434
436
|
value: T;
|
|
435
437
|
};
|
|
438
|
+
type WithCursor<T> = {
|
|
439
|
+
/** context */
|
|
440
|
+
cursor: string | null;
|
|
441
|
+
/** response value */
|
|
442
|
+
items: T;
|
|
443
|
+
};
|
|
436
444
|
/**
|
|
437
445
|
* @internal
|
|
438
446
|
*/
|
|
@@ -696,7 +704,7 @@ declare const CompressedAccountsByOwnerResult: Struct<{
|
|
|
696
704
|
tree: PublicKey;
|
|
697
705
|
slotCreated: BN;
|
|
698
706
|
}[];
|
|
699
|
-
cursor:
|
|
707
|
+
cursor: string | null;
|
|
700
708
|
}, {
|
|
701
709
|
items: Struct<{
|
|
702
710
|
owner: PublicKey;
|
|
@@ -745,7 +753,7 @@ declare const CompressedAccountsByOwnerResult: Struct<{
|
|
|
745
753
|
seq: Struct<BN | null, null>;
|
|
746
754
|
slotCreated: Struct<BN, null>;
|
|
747
755
|
}>>;
|
|
748
|
-
cursor: Struct<
|
|
756
|
+
cursor: Struct<string | null, null>;
|
|
749
757
|
}>;
|
|
750
758
|
/**
|
|
751
759
|
* @internal
|
|
@@ -775,7 +783,7 @@ declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
|
|
|
775
783
|
slotCreated: BN;
|
|
776
784
|
};
|
|
777
785
|
}[];
|
|
778
|
-
cursor:
|
|
786
|
+
cursor: string | null;
|
|
779
787
|
}, {
|
|
780
788
|
items: Struct<{
|
|
781
789
|
tokenData: {
|
|
@@ -871,7 +879,7 @@ declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
|
|
|
871
879
|
slotCreated: Struct<BN, null>;
|
|
872
880
|
}>;
|
|
873
881
|
}>>;
|
|
874
|
-
cursor: Struct<
|
|
882
|
+
cursor: Struct<string | null, null>;
|
|
875
883
|
}>;
|
|
876
884
|
/**
|
|
877
885
|
* @internal
|
|
@@ -1049,7 +1057,7 @@ declare const TokenBalanceResult: Struct<{
|
|
|
1049
1057
|
mint: Struct<PublicKey, null>;
|
|
1050
1058
|
}>;
|
|
1051
1059
|
declare const TokenBalanceListResult: Struct<{
|
|
1052
|
-
cursor:
|
|
1060
|
+
cursor: string | null;
|
|
1053
1061
|
tokenBalances: {
|
|
1054
1062
|
mint: PublicKey;
|
|
1055
1063
|
balance: BN;
|
|
@@ -1065,7 +1073,7 @@ declare const TokenBalanceListResult: Struct<{
|
|
|
1065
1073
|
balance: Struct<BN, null>;
|
|
1066
1074
|
mint: Struct<PublicKey, null>;
|
|
1067
1075
|
}>>;
|
|
1068
|
-
cursor: Struct<
|
|
1076
|
+
cursor: Struct<string | null, null>;
|
|
1069
1077
|
}>;
|
|
1070
1078
|
declare const AccountProofResult: Struct<{
|
|
1071
1079
|
proof: number[][];
|
|
@@ -1104,7 +1112,7 @@ declare const SignatureListWithCursorResult: Struct<{
|
|
|
1104
1112
|
slot: number;
|
|
1105
1113
|
blockTime: number;
|
|
1106
1114
|
}[];
|
|
1107
|
-
cursor:
|
|
1115
|
+
cursor: string | null;
|
|
1108
1116
|
}, {
|
|
1109
1117
|
items: Struct<{
|
|
1110
1118
|
signature: string;
|
|
@@ -1119,7 +1127,7 @@ declare const SignatureListWithCursorResult: Struct<{
|
|
|
1119
1127
|
signature: Struct<string, null>;
|
|
1120
1128
|
slot: Struct<number, null>;
|
|
1121
1129
|
}>>;
|
|
1122
|
-
cursor: Struct<
|
|
1130
|
+
cursor: Struct<string | null, null>;
|
|
1123
1131
|
}>;
|
|
1124
1132
|
declare const CompressedTransactionResult: Struct<{
|
|
1125
1133
|
compressionInfo: {
|
|
@@ -1424,21 +1432,21 @@ interface CompressionApiInterface {
|
|
|
1424
1432
|
getMultipleCompressedAccountProofs(hashes: BN254[]): Promise<MerkleContextWithMerkleProof[]>;
|
|
1425
1433
|
getValidityProof(hashes: BN254[], newAddresses: BN254[]): Promise<CompressedProofWithContext>;
|
|
1426
1434
|
getValidityProofAndRpcContext(hashes: BN254[], newAddresses: BN254[]): Promise<WithContext<CompressedProofWithContext>>;
|
|
1427
|
-
getCompressedAccountsByOwner(owner: PublicKey): Promise<CompressedAccountWithMerkleContext[]
|
|
1428
|
-
getCompressedTokenAccountsByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<ParsedTokenAccount[]
|
|
1429
|
-
getCompressedTokenAccountsByDelegate(delegate: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<ParsedTokenAccount[]
|
|
1435
|
+
getCompressedAccountsByOwner(owner: PublicKey): Promise<WithCursor<CompressedAccountWithMerkleContext[]>>;
|
|
1436
|
+
getCompressedTokenAccountsByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
1437
|
+
getCompressedTokenAccountsByDelegate(delegate: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
1430
1438
|
getCompressedTokenAccountBalance(hash: BN254): Promise<{
|
|
1431
1439
|
amount: BN;
|
|
1432
1440
|
}>;
|
|
1433
|
-
getCompressedTokenBalancesByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<{
|
|
1441
|
+
getCompressedTokenBalancesByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<{
|
|
1434
1442
|
balance: BN;
|
|
1435
1443
|
mint: PublicKey;
|
|
1436
|
-
}[]
|
|
1444
|
+
}[]>>;
|
|
1437
1445
|
getTransactionWithCompressionInfo(signature: string): Promise<CompressedTransaction | null>;
|
|
1438
1446
|
getCompressionSignaturesForAccount(hash: BN254): Promise<SignatureWithMetadata[]>;
|
|
1439
|
-
getCompressionSignaturesForAddress(address: PublicKey): Promise<SignatureWithMetadata[]
|
|
1440
|
-
getCompressionSignaturesForOwner(owner: PublicKey): Promise<SignatureWithMetadata[]
|
|
1441
|
-
getCompressionSignaturesForTokenOwner(owner: PublicKey): Promise<SignatureWithMetadata[]
|
|
1447
|
+
getCompressionSignaturesForAddress(address: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
1448
|
+
getCompressionSignaturesForOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
1449
|
+
getCompressionSignaturesForTokenOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
1442
1450
|
getLatestNonVotingSignatures(limit?: number): Promise<LatestNonVotingSignatures>;
|
|
1443
1451
|
getLatestCompressionSignatures(cursor?: string, limit?: number): Promise<LatestNonVotingSignaturesPaginated>;
|
|
1444
1452
|
getIndexerHealth(): Promise<string>;
|
|
@@ -1547,16 +1555,16 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
1547
1555
|
* Fetch all the compressed accounts owned by the specified public key.
|
|
1548
1556
|
* Owner can be a program or user account
|
|
1549
1557
|
*/
|
|
1550
|
-
getCompressedAccountsByOwner(owner: PublicKey): Promise<CompressedAccountWithMerkleContext[]
|
|
1558
|
+
getCompressedAccountsByOwner(owner: PublicKey): Promise<WithCursor<CompressedAccountWithMerkleContext[]>>;
|
|
1551
1559
|
/**
|
|
1552
1560
|
* Fetch all the compressed token accounts owned by the specified public
|
|
1553
1561
|
* key. Owner can be a program or user account
|
|
1554
1562
|
*/
|
|
1555
|
-
getCompressedTokenAccountsByOwner(owner: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<ParsedTokenAccount[]
|
|
1563
|
+
getCompressedTokenAccountsByOwner(owner: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
1556
1564
|
/**
|
|
1557
1565
|
* Fetch all the compressed accounts delegated to the specified public key.
|
|
1558
1566
|
*/
|
|
1559
|
-
getCompressedTokenAccountsByDelegate(delegate: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<ParsedTokenAccount[]
|
|
1567
|
+
getCompressedTokenAccountsByDelegate(delegate: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
1560
1568
|
/**
|
|
1561
1569
|
* Fetch the compressed token balance for the specified account hash
|
|
1562
1570
|
*/
|
|
@@ -1567,10 +1575,10 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
1567
1575
|
* Fetch all the compressed token balances owned by the specified public
|
|
1568
1576
|
* key. Can filter by mint
|
|
1569
1577
|
*/
|
|
1570
|
-
getCompressedTokenBalancesByOwner(owner: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<{
|
|
1578
|
+
getCompressedTokenBalancesByOwner(owner: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<{
|
|
1571
1579
|
balance: BN;
|
|
1572
1580
|
mint: PublicKey;
|
|
1573
|
-
}[]
|
|
1581
|
+
}[]>>;
|
|
1574
1582
|
/**
|
|
1575
1583
|
* Returns confirmed compression signatures for transactions involving the specified
|
|
1576
1584
|
* account hash forward in time from genesis to the most recent confirmed
|
|
@@ -1590,7 +1598,7 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
1590
1598
|
*
|
|
1591
1599
|
* @param address queried compressed account address
|
|
1592
1600
|
*/
|
|
1593
|
-
getCompressionSignaturesForAddress(address: PublicKey): Promise<SignatureWithMetadata[]
|
|
1601
|
+
getCompressionSignaturesForAddress(address: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
1594
1602
|
/**
|
|
1595
1603
|
* Returns confirmed signatures for compression transactions involving the
|
|
1596
1604
|
* specified account owner forward in time from genesis to the
|
|
@@ -1598,13 +1606,13 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
1598
1606
|
*
|
|
1599
1607
|
* @param owner queried owner public key
|
|
1600
1608
|
*/
|
|
1601
|
-
getCompressionSignaturesForOwner(owner: PublicKey): Promise<SignatureWithMetadata[]
|
|
1609
|
+
getCompressionSignaturesForOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
1602
1610
|
/**
|
|
1603
1611
|
* Returns confirmed signatures for compression transactions involving the
|
|
1604
1612
|
* specified token account owner forward in time from genesis to the most
|
|
1605
1613
|
* recent confirmed block
|
|
1606
1614
|
*/
|
|
1607
|
-
getCompressionSignaturesForTokenOwner(owner: PublicKey): Promise<SignatureWithMetadata[]
|
|
1615
|
+
getCompressionSignaturesForTokenOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
1608
1616
|
/**
|
|
1609
1617
|
* Fetch the current indexer health status
|
|
1610
1618
|
*/
|
|
@@ -7482,7 +7490,7 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
7482
7490
|
* Fetch all the compressed accounts owned by the specified public key.
|
|
7483
7491
|
* Owner can be a program or user account
|
|
7484
7492
|
*/
|
|
7485
|
-
getCompressedAccountsByOwner(owner: PublicKey): Promise<CompressedAccountWithMerkleContext[]
|
|
7493
|
+
getCompressedAccountsByOwner(owner: PublicKey): Promise<WithCursor<CompressedAccountWithMerkleContext[]>>;
|
|
7486
7494
|
/**
|
|
7487
7495
|
* Fetch the latest compression signatures on the cluster. Results are
|
|
7488
7496
|
* paginated.
|
|
@@ -7497,11 +7505,11 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
7497
7505
|
* Fetch all the compressed token accounts owned by the specified public
|
|
7498
7506
|
* key. Owner can be a program or user account
|
|
7499
7507
|
*/
|
|
7500
|
-
getCompressedTokenAccountsByOwner(owner: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<ParsedTokenAccount[]
|
|
7508
|
+
getCompressedTokenAccountsByOwner(owner: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
7501
7509
|
/**
|
|
7502
7510
|
* Fetch all the compressed accounts delegated to the specified public key.
|
|
7503
7511
|
*/
|
|
7504
|
-
getCompressedTokenAccountsByDelegate(delegate: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<ParsedTokenAccount[]
|
|
7512
|
+
getCompressedTokenAccountsByDelegate(delegate: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
7505
7513
|
/**
|
|
7506
7514
|
* Fetch the compressed token balance for the specified account hash
|
|
7507
7515
|
*/
|
|
@@ -7512,10 +7520,10 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
7512
7520
|
* Fetch all the compressed token balances owned by the specified public
|
|
7513
7521
|
* key. Can filter by mint
|
|
7514
7522
|
*/
|
|
7515
|
-
getCompressedTokenBalancesByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<{
|
|
7523
|
+
getCompressedTokenBalancesByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<{
|
|
7516
7524
|
balance: BN;
|
|
7517
7525
|
mint: PublicKey;
|
|
7518
|
-
}[]
|
|
7526
|
+
}[]>>;
|
|
7519
7527
|
/**
|
|
7520
7528
|
* Returns confirmed signatures for transactions involving the specified
|
|
7521
7529
|
* account hash forward in time from genesis to the most recent confirmed
|
|
@@ -7536,7 +7544,7 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
7536
7544
|
*
|
|
7537
7545
|
* @param address queried compressed account address
|
|
7538
7546
|
*/
|
|
7539
|
-
getCompressionSignaturesForAddress(_address: PublicKey): Promise<SignatureWithMetadata[]
|
|
7547
|
+
getCompressionSignaturesForAddress(_address: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
7540
7548
|
/**
|
|
7541
7549
|
* Returns confirmed signatures for compression transactions involving the
|
|
7542
7550
|
* specified account owner forward in time from genesis to the
|
|
@@ -7544,13 +7552,13 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
7544
7552
|
*
|
|
7545
7553
|
* @param owner queried owner public key
|
|
7546
7554
|
*/
|
|
7547
|
-
getCompressionSignaturesForOwner(owner: PublicKey): Promise<SignatureWithMetadata[]
|
|
7555
|
+
getCompressionSignaturesForOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
7548
7556
|
/**
|
|
7549
7557
|
* Returns confirmed signatures for compression transactions involving the
|
|
7550
7558
|
* specified token account owner forward in time from genesis to the most
|
|
7551
7559
|
* recent confirmed block
|
|
7552
7560
|
*/
|
|
7553
|
-
getCompressionSignaturesForTokenOwner(owner: PublicKey): Promise<SignatureWithMetadata[]
|
|
7561
|
+
getCompressionSignaturesForTokenOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
7554
7562
|
/**
|
|
7555
7563
|
* Fetch the current indexer health status
|
|
7556
7564
|
*/
|
|
@@ -7781,4 +7789,4 @@ declare function getParsedEvents(rpc: Rpc): Promise<PublicTransactionEvent[]>;
|
|
|
7781
7789
|
declare const parseEvents: <T>(indexerEventsTransactions: (ParsedTransactionWithMeta | null)[], deserializeFn: Deserializer<T>) => NonNullable<T>[];
|
|
7782
7790
|
declare const parsePublicTransactionEventWithIdl: (data: Buffer) => PublicTransactionEvent | null;
|
|
7783
7791
|
|
|
7784
|
-
export { ADDRESS_QUEUE_ROLLOVER_FEE, ADDRESS_TREE_NETWORK_FEE, ALICE, type AccountCompression, IDL$3 as AccountCompressionIDL, AccountProofResult, type BN254, BOB, BalanceResult, CHARLIE, type CompressedAccount, type CompressedAccountData, CompressedAccountResult, type CompressedAccountWithMerkleContext, CompressedAccountsByOwnerResult, type CompressedProof, type CompressedProofWithContext, CompressedTokenAccountResult, CompressedTokenAccountsByOwnerOrDelegateResult, type CompressedTokenInstructionDataTransfer, type CompressedTransaction, CompressedTransactionResult, type CompressionApiInterface, CreateUtxoError, CreateUtxoErrorCode, DAVE, DEFAULT_MERKLE_TREE_HEIGHT, DEFAULT_MERKLE_TREE_ROOTS, DEFAULT_ZERO, FIELD_SIZE, type GetCompressedAccountConfig, type GetCompressedAccountsConfig, type GetCompressedAccountsFilter, type GetCompressedTokenAccountsByOwnerOrDelegateOptions, HIGHEST_ADDRESS_PLUS_ONE, HashError, HashErrorCode, HealthResult, type HexBatchInputsForProver, type HexInputsForProver, IndexedArray, IndexedElement, IndexedElementBundle, type InputTokenDataWithContext, type InstructionDataInvoke, type LatestNonVotingSignatures, type LatestNonVotingSignaturesPaginated, LatestNonVotingSignaturesResult, LatestNonVotingSignaturesResultPaginated, type LightCompressedToken, IDL as LightCompressedTokenIDL, type LightRegistry, IDL$2 as LightRegistryIDL, type LightSystemProgram$1 as LightSystem, IDL$1 as LightSystemIDL, LightSystemProgram, type LightWasm, LookupTableError, LookupTableErrorCode, MerkeProofResult, type MerkleContext, type MerkleContextWithMerkleProof, type MerkleContextWithNewAddressProof, MerkleTree, MerkleTreeError, MerkleTreeErrorCode, MultipleCompressedAccountsResult, MultipleMerkleProofsResult, NativeBalanceResult, type NewAddressParams, type NewAddressParamsPacked, NewAddressProofResult, type NonInclusionJsonStruct, type NonInclusionMerkleProofInputs, type OutputCompressedAccountWithPackedContext, type PackedCompressedAccountWithMerkleContext, type PackedMerkleContext, type ParsedTokenAccount, ProofError, ProofErrorCode, type PublicTransactionEvent, type QueueIndex, Rpc, RpcError, RpcErrorCode, STATE_MERKLE_TREE_NETWORK_FEE, STATE_MERKLE_TREE_ROLLOVER_FEE, SelectInUtxosError, SelectInUtxosErrorCode, SignatureListResult, SignatureListWithCursorResult, type SignatureWithMetadata, SlotResult, TRANSACTION_MERKLE_TREE_ROLLOVER_THRESHOLD, TestRpc, type TestRpcConfig, TokenBalanceListResult, TokenBalanceResult, type TokenData, TokenDataResult, type TokenTransferOutputData, UTXO_MERGE_MAXIMUM, UTXO_MERGE_THRESHOLD, UtilsError, UtilsErrorCode, UtxoError, UtxoErrorCode, ValidityProofResult, type WithContext, accountCompressionProgram, addressQueue, addressTree, airdropSol, bn, bufToDecStr, buildAndSignTx, buildTx, byteArrayToKeypair, checkValidityProofShape, compress, confirmConfig, confirmTransaction, confirmTx, convertMerkleProofsWithContextToHex, convertNonInclusionMerkleProofInputsToHex, createAccount, createAccountWithLamports, createBN254, createCompressedAccount, createCompressedAccountWithMerkleContext, createMerkleContext, createRpc, createRpcResult, decompress, dedupeSigner, defaultStaticAccounts, defaultStaticAccountsStruct, defaultTestStateTreeAccounts, deriveAddress, encodeBN254toBase58, getAccountCompressionAuthority, getConnection, getIndexOrAdd, getParsedEvents, getRegisteredProgramPda, getTestKeypair, getTestRpc, hashToBn254FieldSizeBe, jsonRpcResult, jsonRpcResultAndContext, lightProgram, merkletreePubkey, negateAndCompressProof, newAccountWithLamports, noopProgram, nullifierQueuePubkey, packCompressedAccounts, packNewAddressParams, padOutputStateMerkleTrees, parseAccountData, parseEvents, parsePublicTransactionEventWithIdl, pipe, placeholderValidityProof, proofFromJsonStruct, proverRequest, pushUniqueItems, rpcRequest, selectMinCompressedSolAccountsForTransfer, sendAndConfirmTx, sleep, sumUpLamports, toAccountMetas, toArray, toCamelCase, toHex, toUnixTimestamp, transfer, useWallet, validateSameOwner, validateSufficientBalance };
|
|
7792
|
+
export { ADDRESS_QUEUE_ROLLOVER_FEE, ADDRESS_TREE_NETWORK_FEE, ALICE, type AccountCompression, IDL$3 as AccountCompressionIDL, AccountProofResult, type BN254, BOB, BalanceResult, CHARLIE, type CompressedAccount, type CompressedAccountData, CompressedAccountResult, type CompressedAccountWithMerkleContext, CompressedAccountsByOwnerResult, type CompressedProof, type CompressedProofWithContext, CompressedTokenAccountResult, CompressedTokenAccountsByOwnerOrDelegateResult, type CompressedTokenInstructionDataTransfer, type CompressedTransaction, CompressedTransactionResult, type CompressionApiInterface, CreateUtxoError, CreateUtxoErrorCode, DAVE, DEFAULT_MERKLE_TREE_HEIGHT, DEFAULT_MERKLE_TREE_ROOTS, DEFAULT_ZERO, FIELD_SIZE, type GetCompressedAccountConfig, type GetCompressedAccountsConfig, type GetCompressedAccountsFilter, type GetCompressedTokenAccountsByOwnerOrDelegateOptions, HIGHEST_ADDRESS_PLUS_ONE, HashError, HashErrorCode, HealthResult, type HexBatchInputsForProver, type HexInputsForProver, IndexedArray, IndexedElement, IndexedElementBundle, type InputTokenDataWithContext, type InstructionDataInvoke, type LatestNonVotingSignatures, type LatestNonVotingSignaturesPaginated, LatestNonVotingSignaturesResult, LatestNonVotingSignaturesResultPaginated, type LightCompressedToken, IDL as LightCompressedTokenIDL, type LightRegistry, IDL$2 as LightRegistryIDL, type LightSystemProgram$1 as LightSystem, IDL$1 as LightSystemIDL, LightSystemProgram, type LightWasm, LookupTableError, LookupTableErrorCode, MerkeProofResult, type MerkleContext, type MerkleContextWithMerkleProof, type MerkleContextWithNewAddressProof, MerkleTree, MerkleTreeError, MerkleTreeErrorCode, MultipleCompressedAccountsResult, MultipleMerkleProofsResult, NativeBalanceResult, type NewAddressParams, type NewAddressParamsPacked, NewAddressProofResult, type NonInclusionJsonStruct, type NonInclusionMerkleProofInputs, type OutputCompressedAccountWithPackedContext, type PackedCompressedAccountWithMerkleContext, type PackedMerkleContext, type ParsedTokenAccount, ProofError, ProofErrorCode, type PublicTransactionEvent, type QueueIndex, Rpc, RpcError, RpcErrorCode, STATE_MERKLE_TREE_NETWORK_FEE, STATE_MERKLE_TREE_ROLLOVER_FEE, SelectInUtxosError, SelectInUtxosErrorCode, SignatureListResult, SignatureListWithCursorResult, type SignatureWithMetadata, SlotResult, TRANSACTION_MERKLE_TREE_ROLLOVER_THRESHOLD, TestRpc, type TestRpcConfig, TokenBalanceListResult, TokenBalanceResult, type TokenData, TokenDataResult, type TokenTransferOutputData, UTXO_MERGE_MAXIMUM, UTXO_MERGE_THRESHOLD, UtilsError, UtilsErrorCode, UtxoError, UtxoErrorCode, ValidityProofResult, type WithContext, type WithCursor, accountCompressionProgram, addressQueue, addressTree, airdropSol, bn, bufToDecStr, buildAndSignTx, buildTx, byteArrayToKeypair, checkValidityProofShape, compress, confirmConfig, confirmTransaction, confirmTx, convertMerkleProofsWithContextToHex, convertNonInclusionMerkleProofInputsToHex, createAccount, createAccountWithLamports, createBN254, createCompressedAccount, createCompressedAccountWithMerkleContext, createMerkleContext, createRpc, createRpcResult, decompress, dedupeSigner, defaultStaticAccounts, defaultStaticAccountsStruct, defaultTestStateTreeAccounts, deriveAddress, encodeBN254toBase58, getAccountCompressionAuthority, getConnection, getIndexOrAdd, getParsedEvents, getRegisteredProgramPda, getTestKeypair, getTestRpc, hashToBn254FieldSizeBe, jsonRpcResult, jsonRpcResultAndContext, lightProgram, merkletreePubkey, negateAndCompressProof, newAccountWithLamports, noopProgram, nullifierQueuePubkey, packCompressedAccounts, packNewAddressParams, padOutputStateMerkleTrees, parseAccountData, parseEvents, parsePublicTransactionEventWithIdl, pipe, placeholderValidityProof, proofFromJsonStruct, proverRequest, pushUniqueItems, rpcRequest, selectMinCompressedSolAccountsForTransfer, sendAndConfirmTx, sleep, sumUpLamports, toAccountMetas, toArray, toCamelCase, toHex, toUnixTimestamp, transfer, useWallet, validateSameOwner, validateSufficientBalance };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/stateless.js",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "JavaScript API for Light and ZK Compression",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/node/index.cjs",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"tslib": "^2.6.2",
|
|
73
73
|
"typescript": "^5.5.3",
|
|
74
74
|
"vitest": "^1.6.0",
|
|
75
|
-
"@lightprotocol/
|
|
76
|
-
"@lightprotocol/
|
|
75
|
+
"@lightprotocol/programs": "0.3.0",
|
|
76
|
+
"@lightprotocol/hasher.rs": "0.2.0"
|
|
77
77
|
},
|
|
78
78
|
"nx": {
|
|
79
79
|
"targets": {
|