@lightprotocol/stateless.js 0.14.4 → 0.15.1

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.
@@ -454,7 +454,16 @@ interface GetCompressedTokenAccountsByOwnerOrDelegateOptions {
454
454
  cursor?: string;
455
455
  limit?: BN;
456
456
  }
457
- interface GetCompressedMintTokenHoldersOptions {
457
+ type TokenBalance = {
458
+ balance: BN;
459
+ mint: PublicKey;
460
+ };
461
+ /**
462
+ * **Cursor** is a unique identifier for a page of results by which the next page can be fetched.
463
+ *
464
+ * **Limit** is the maximum number of results to return per page.
465
+ */
466
+ interface PaginatedOptions {
458
467
  cursor?: string;
459
468
  limit?: BN;
460
469
  }
@@ -1121,6 +1130,25 @@ declare const TokenBalanceListResult: Struct<{
1121
1130
  }>>;
1122
1131
  cursor: Struct<string | null, null>;
1123
1132
  }>;
1133
+ declare const TokenBalanceListResultV2: Struct<{
1134
+ items: {
1135
+ mint: PublicKey;
1136
+ balance: BN;
1137
+ }[];
1138
+ cursor: string | null;
1139
+ }, {
1140
+ items: Struct<{
1141
+ mint: PublicKey;
1142
+ balance: BN;
1143
+ }[], Struct<{
1144
+ mint: PublicKey;
1145
+ balance: BN;
1146
+ }, {
1147
+ balance: Struct<BN, null>;
1148
+ mint: Struct<PublicKey, null>;
1149
+ }>>;
1150
+ cursor: Struct<string | null, null>;
1151
+ }>;
1124
1152
  declare const CompressedMintTokenHoldersResult: Struct<{
1125
1153
  items: {
1126
1154
  owner: PublicKey;
@@ -1499,22 +1527,20 @@ interface CompressionApiInterface {
1499
1527
  getValidityProofV0(hashes: HashWithTree[], newAddresses: AddressWithTree[]): Promise<CompressedProofWithContext>;
1500
1528
  getValidityProofAndRpcContext(hashes: HashWithTree[], newAddresses: AddressWithTree[]): Promise<WithContext<CompressedProofWithContext>>;
1501
1529
  getCompressedAccountsByOwner(owner: PublicKey, config?: GetCompressedAccountsByOwnerConfig): Promise<WithCursor<CompressedAccountWithMerkleContext[]>>;
1502
- getCompressedMintTokenHolders(mint: PublicKey, options?: GetCompressedMintTokenHoldersOptions): Promise<WithContext<WithCursor<CompressedMintTokenHolders[]>>>;
1530
+ getCompressedMintTokenHolders(mint: PublicKey, options?: PaginatedOptions): Promise<WithContext<WithCursor<CompressedMintTokenHolders[]>>>;
1503
1531
  getCompressedTokenAccountsByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
1504
1532
  getCompressedTokenAccountsByDelegate(delegate: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
1505
1533
  getCompressedTokenAccountBalance(hash: BN254): Promise<{
1506
1534
  amount: BN;
1507
1535
  }>;
1508
- getCompressedTokenBalancesByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<{
1509
- balance: BN;
1510
- mint: PublicKey;
1511
- }[]>>;
1536
+ getCompressedTokenBalancesByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<TokenBalance[]>>;
1537
+ getCompressedTokenBalancesByOwnerV2(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithContext<WithCursor<TokenBalance[]>>>;
1512
1538
  getTransactionWithCompressionInfo(signature: string): Promise<CompressedTransaction | null>;
1513
1539
  getCompressionSignaturesForAccount(hash: BN254): Promise<SignatureWithMetadata[]>;
1514
- getCompressionSignaturesForAddress(address: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
1515
- getCompressionSignaturesForOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
1516
- getCompressionSignaturesForTokenOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
1517
- getLatestNonVotingSignatures(limit?: number): Promise<LatestNonVotingSignatures>;
1540
+ getCompressionSignaturesForAddress(address: PublicKey, options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
1541
+ getCompressionSignaturesForOwner(owner: PublicKey, options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
1542
+ getCompressionSignaturesForTokenOwner(owner: PublicKey, options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
1543
+ getLatestNonVotingSignatures(limit?: number, cursor?: string): Promise<LatestNonVotingSignatures>;
1518
1544
  getLatestCompressionSignatures(cursor?: string, limit?: number): Promise<LatestNonVotingSignaturesPaginated>;
1519
1545
  getIndexerHealth(): Promise<string>;
1520
1546
  getIndexerSlot(): Promise<number>;
@@ -1640,13 +1666,17 @@ declare class Rpc extends Connection implements CompressionApiInterface {
1640
1666
  amount: BN;
1641
1667
  }>;
1642
1668
  /**
1669
+ * @deprecated use {@link getCompressedTokenBalancesByOwnerV2} instead.
1670
+ *
1643
1671
  * Fetch all the compressed token balances owned by the specified public
1644
- * key. Can filter by mint
1672
+ * key. Can filter by mint. Returns without context.
1645
1673
  */
1646
- getCompressedTokenBalancesByOwner(owner: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<{
1647
- balance: BN;
1648
- mint: PublicKey;
1649
- }[]>>;
1674
+ getCompressedTokenBalancesByOwner(owner: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<TokenBalance[]>>;
1675
+ /**
1676
+ * Fetch the compressed token balances owned by the specified public
1677
+ * key. Paginated. Can filter by mint. Returns with context.
1678
+ */
1679
+ getCompressedTokenBalancesByOwnerV2(owner: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithContext<WithCursor<TokenBalance[]>>>;
1650
1680
  /**
1651
1681
  * Returns confirmed compression signatures for transactions involving the specified
1652
1682
  * account hash forward in time from genesis to the most recent confirmed
@@ -1666,7 +1696,7 @@ declare class Rpc extends Connection implements CompressionApiInterface {
1666
1696
  *
1667
1697
  * @param address queried compressed account address
1668
1698
  */
1669
- getCompressionSignaturesForAddress(address: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
1699
+ getCompressionSignaturesForAddress(address: PublicKey, options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
1670
1700
  /**
1671
1701
  * Returns confirmed signatures for compression transactions involving the
1672
1702
  * specified account owner forward in time from genesis to the
@@ -1674,13 +1704,13 @@ declare class Rpc extends Connection implements CompressionApiInterface {
1674
1704
  *
1675
1705
  * @param owner queried owner public key
1676
1706
  */
1677
- getCompressionSignaturesForOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
1707
+ getCompressionSignaturesForOwner(owner: PublicKey, options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
1678
1708
  /**
1679
1709
  * Returns confirmed signatures for compression transactions involving the
1680
1710
  * specified token account owner forward in time from genesis to the most
1681
1711
  * recent confirmed block
1682
1712
  */
1683
- getCompressionSignaturesForTokenOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
1713
+ getCompressionSignaturesForTokenOwner(owner: PublicKey, options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
1684
1714
  /**
1685
1715
  * Fetch the current indexer health status
1686
1716
  */
@@ -1693,7 +1723,10 @@ declare class Rpc extends Connection implements CompressionApiInterface {
1693
1723
  * Fetch the current slot that the node is processing
1694
1724
  */
1695
1725
  getIndexerSlot(): Promise<number>;
1696
- getCompressedMintTokenHolders(mint: PublicKey, options?: GetCompressedMintTokenHoldersOptions): Promise<WithContext<WithCursor<CompressedMintTokenHolders[]>>>;
1726
+ /**
1727
+ * Fetch all the compressed token holders for a given mint. Paginated.
1728
+ */
1729
+ getCompressedMintTokenHolders(mint: PublicKey, options?: PaginatedOptions): Promise<WithContext<WithCursor<CompressedMintTokenHolders[]>>>;
1697
1730
  /**
1698
1731
  * Fetch the latest compression signatures on the cluster. Results are
1699
1732
  * paginated.
@@ -1702,7 +1735,7 @@ declare class Rpc extends Connection implements CompressionApiInterface {
1702
1735
  /**
1703
1736
  * Fetch all non-voting signatures
1704
1737
  */
1705
- getLatestNonVotingSignatures(limit?: number): Promise<LatestNonVotingSignatures>;
1738
+ getLatestNonVotingSignatures(limit?: number, cursor?: string): Promise<LatestNonVotingSignatures>;
1706
1739
  /**
1707
1740
  * Fetch the latest address proofs for new unique addresses specified by an
1708
1741
  * array of addresses.
@@ -6952,128 +6985,23 @@ type LightCompressedToken = {
6952
6985
  errors: [
6953
6986
  {
6954
6987
  code: 6000;
6955
- name: 'PublicKeyAmountMissmatch';
6956
- msg: 'public keys and amounts must be of same length';
6988
+ name: 'SignerCheckFailed';
6989
+ msg: 'Signer check failed';
6957
6990
  },
6958
6991
  {
6959
6992
  code: 6001;
6960
- name: 'ComputeInputSumFailed';
6961
- msg: 'ComputeInputSumFailed';
6993
+ name: 'CreateTransferInstructionFailed';
6994
+ msg: 'Create transfer instruction failed';
6962
6995
  },
6963
6996
  {
6964
6997
  code: 6002;
6965
- name: 'ComputeOutputSumFailed';
6966
- msg: 'ComputeOutputSumFailed';
6998
+ name: 'AccountNotFound';
6999
+ msg: 'Account not found';
6967
7000
  },
6968
7001
  {
6969
7002
  code: 6003;
6970
- name: 'ComputeCompressSumFailed';
6971
- msg: 'ComputeCompressSumFailed';
6972
- },
6973
- {
6974
- code: 6004;
6975
- name: 'ComputeDecompressSumFailed';
6976
- msg: 'ComputeDecompressSumFailed';
6977
- },
6978
- {
6979
- code: 6005;
6980
- name: 'SumCheckFailed';
6981
- msg: 'SumCheckFailed';
6982
- },
6983
- {
6984
- code: 6006;
6985
- name: 'DecompressRecipientUndefinedForDecompress';
6986
- msg: 'DecompressRecipientUndefinedForDecompress';
6987
- },
6988
- {
6989
- code: 6007;
6990
- name: 'CompressedPdaUndefinedForDecompress';
6991
- msg: 'CompressedPdaUndefinedForDecompress';
6992
- },
6993
- {
6994
- code: 6008;
6995
- name: 'DeCompressAmountUndefinedForDecompress';
6996
- msg: 'DeCompressAmountUndefinedForDecompress';
6997
- },
6998
- {
6999
- code: 6009;
7000
- name: 'CompressedPdaUndefinedForCompress';
7001
- msg: 'CompressedPdaUndefinedForCompress';
7002
- },
7003
- {
7004
- code: 6010;
7005
- name: 'DeCompressAmountUndefinedForCompress';
7006
- msg: 'DeCompressAmountUndefinedForCompress';
7007
- },
7008
- {
7009
- code: 6011;
7010
- name: 'DelegateSignerCheckFailed';
7011
- msg: 'DelegateSignerCheckFailed';
7012
- },
7013
- {
7014
- code: 6012;
7015
- name: 'MintTooLarge';
7016
- msg: 'Minted amount greater than u64::MAX';
7017
- },
7018
- {
7019
- code: 6013;
7020
- name: 'SplTokenSupplyMismatch';
7021
- msg: 'SplTokenSupplyMismatch';
7022
- },
7023
- {
7024
- code: 6014;
7025
- name: 'HeapMemoryCheckFailed';
7026
- msg: 'HeapMemoryCheckFailed';
7027
- },
7028
- {
7029
- code: 6015;
7030
- name: 'InstructionNotCallable';
7031
- msg: 'The instruction is not callable';
7032
- },
7033
- {
7034
- code: 6016;
7035
- name: 'ArithmeticUnderflow';
7036
- msg: 'ArithmeticUnderflow';
7037
- },
7038
- {
7039
- code: 6017;
7040
- name: 'HashToFieldError';
7041
- msg: 'HashToFieldError';
7042
- },
7043
- {
7044
- code: 6018;
7045
- name: 'InvalidAuthorityMint';
7046
- msg: 'Expected the authority to be also a mint authority';
7047
- },
7048
- {
7049
- code: 6019;
7050
- name: 'InvalidFreezeAuthority';
7051
- msg: 'Provided authority is not the freeze authority';
7052
- },
7053
- {
7054
- code: 6020;
7055
- name: 'InvalidDelegateIndex';
7056
- },
7057
- {
7058
- code: 6021;
7059
- name: 'TokenPoolPdaUndefined';
7060
- },
7061
- {
7062
- code: 6022;
7063
- name: 'IsTokenPoolPda';
7064
- msg: 'Compress or decompress recipient is the same account as the token pool pda.';
7065
- },
7066
- {
7067
- code: 6023;
7068
- name: 'InvalidTokenPoolPda';
7069
- },
7070
- {
7071
- code: 6024;
7072
- name: 'NoInputTokenAccountsProvided';
7073
- },
7074
- {
7075
- code: 6025;
7076
- name: 'NoInputsProvided';
7003
+ name: 'SerializationError';
7004
+ msg: 'Serialization error';
7077
7005
  }
7078
7006
  ];
7079
7007
  };
@@ -7602,13 +7530,19 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
7602
7530
  amount: BN;
7603
7531
  }>;
7604
7532
  /**
7533
+ * @deprecated use {@link getCompressedTokenBalancesByOwnerV2}.
7605
7534
  * Fetch all the compressed token balances owned by the specified public
7606
- * key. Can filter by mint
7535
+ * key. Can filter by mint.
7607
7536
  */
7608
7537
  getCompressedTokenBalancesByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<{
7609
7538
  balance: BN;
7610
7539
  mint: PublicKey;
7611
7540
  }[]>>;
7541
+ /**
7542
+ * Fetch all the compressed token balances owned by the specified public
7543
+ * key. Can filter by mint. Uses context.
7544
+ */
7545
+ getCompressedTokenBalancesByOwnerV2(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithContext<WithCursor<TokenBalance[]>>>;
7612
7546
  /**
7613
7547
  * Returns confirmed signatures for transactions involving the specified
7614
7548
  * account hash forward in time from genesis to the most recent confirmed
@@ -7616,12 +7550,12 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
7616
7550
  *
7617
7551
  * @param hash queried account hash
7618
7552
  */
7619
- getCompressionSignaturesForAccount(hash: BN254): Promise<SignatureWithMetadata[]>;
7553
+ getCompressionSignaturesForAccount(_hash: BN254): Promise<SignatureWithMetadata[]>;
7620
7554
  /**
7621
7555
  * Fetch a confirmed or finalized transaction from the cluster. Return with
7622
7556
  * CompressionInfo
7623
7557
  */
7624
- getTransactionWithCompressionInfo(signature: string): Promise<CompressedTransaction | null>;
7558
+ getTransactionWithCompressionInfo(_signature: string): Promise<CompressedTransaction | null>;
7625
7559
  /**
7626
7560
  * Returns confirmed signatures for transactions involving the specified
7627
7561
  * address forward in time from genesis to the most recent confirmed
@@ -7629,7 +7563,7 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
7629
7563
  *
7630
7564
  * @param address queried compressed account address
7631
7565
  */
7632
- getCompressionSignaturesForAddress(_address: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
7566
+ getCompressionSignaturesForAddress(_address: PublicKey, _options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
7633
7567
  /**
7634
7568
  * Returns confirmed signatures for compression transactions involving the
7635
7569
  * specified account owner forward in time from genesis to the
@@ -7637,13 +7571,13 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
7637
7571
  *
7638
7572
  * @param owner queried owner public key
7639
7573
  */
7640
- getCompressionSignaturesForOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
7574
+ getCompressionSignaturesForOwner(_owner: PublicKey, _options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
7641
7575
  /**
7642
7576
  * Returns confirmed signatures for compression transactions involving the
7643
7577
  * specified token account owner forward in time from genesis to the most
7644
7578
  * recent confirmed block
7645
7579
  */
7646
- getCompressionSignaturesForTokenOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
7580
+ getCompressionSignaturesForTokenOwner(_owner: PublicKey, _options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
7647
7581
  /**
7648
7582
  * Fetch the current indexer health status
7649
7583
  */
@@ -7661,7 +7595,7 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
7661
7595
  * @returns Array of validity proofs for new addresses
7662
7596
  */
7663
7597
  getMultipleNewAddressProofs(addresses: BN254[]): Promise<MerkleContextWithNewAddressProof[]>;
7664
- getCompressedMintTokenHolders(_mint: PublicKey, _options?: GetCompressedMintTokenHoldersOptions): Promise<WithContext<WithCursor<CompressedMintTokenHolders[]>>>;
7598
+ getCompressedMintTokenHolders(_mint: PublicKey, _options?: PaginatedOptions): Promise<WithContext<WithCursor<CompressedMintTokenHolders[]>>>;
7665
7599
  /**
7666
7600
  * Advanced usage of getValidityProof: fetches ZKP directly from a custom
7667
7601
  * non-rpcprover. Note: This uses the proverEndpoint specified in the
@@ -7881,4 +7815,4 @@ declare function getParsedEvents(rpc: Rpc): Promise<PublicTransactionEvent[]>;
7881
7815
  declare const parseEvents: <T>(indexerEventsTransactions: (ParsedTransactionWithMeta | null)[], deserializeFn: Deserializer<T>) => NonNullable<T>[];
7882
7816
  declare const parsePublicTransactionEventWithIdl: (data: Buffer) => PublicTransactionEvent | null;
7883
7817
 
7884
- export { ADDRESS_QUEUE_ROLLOVER_FEE, ADDRESS_TREE_NETWORK_FEE, ALICE, type AccountCompression, IDL$3 as AccountCompressionIDL, AccountProofResult, type AddressWithTree, type BN254, BOB, BalanceResult, CHARLIE, type CompressedAccount, type CompressedAccountData, CompressedAccountResult, type CompressedAccountWithMerkleContext, CompressedAccountsByOwnerResult, type CompressedMintTokenHolders, CompressedMintTokenHoldersResult, 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 GetCompressedAccountsByOwnerConfig, type GetCompressedAccountsConfig, type GetCompressedAccountsFilter, type GetCompressedMintTokenHoldersOptions, type GetCompressedTokenAccountsByOwnerOrDelegateOptions, HIGHEST_ADDRESS_PLUS_ONE, HashError, HashErrorCode, type HashWithTree, 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, deriveAddressSeed, encodeBN254toBase58, getAccountCompressionAuthority, getConnection, getIndexOrAdd, getParsedEvents, getRegisteredProgramPda, getTestKeypair, getTestRpc, hashToBn254FieldSizeBe, hashvToBn254FieldSizeBe, 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 };
7818
+ export { ADDRESS_QUEUE_ROLLOVER_FEE, ADDRESS_TREE_NETWORK_FEE, ALICE, type AccountCompression, IDL$3 as AccountCompressionIDL, AccountProofResult, type AddressWithTree, type BN254, BOB, BalanceResult, CHARLIE, type CompressedAccount, type CompressedAccountData, CompressedAccountResult, type CompressedAccountWithMerkleContext, CompressedAccountsByOwnerResult, type CompressedMintTokenHolders, CompressedMintTokenHoldersResult, 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 GetCompressedAccountsByOwnerConfig, type GetCompressedAccountsConfig, type GetCompressedAccountsFilter, type GetCompressedTokenAccountsByOwnerOrDelegateOptions, HIGHEST_ADDRESS_PLUS_ONE, HashError, HashErrorCode, type HashWithTree, 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 PaginatedOptions, 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, type TokenBalance, TokenBalanceListResult, TokenBalanceListResultV2, 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, deriveAddressSeed, encodeBN254toBase58, getAccountCompressionAuthority, getConnection, getIndexOrAdd, getParsedEvents, getRegisteredProgramPda, getTestKeypair, getTestRpc, hashToBn254FieldSizeBe, hashvToBn254FieldSizeBe, 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.14.4",
3
+ "version": "0.15.1",
4
4
  "description": "JavaScript API for Light and ZK Compression",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/node/index.cjs",