@lightprotocol/stateless.js 0.8.0 → 0.9.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.
@@ -433,6 +433,12 @@ type WithContext<T> = {
433
433
  /** response value */
434
434
  value: T;
435
435
  };
436
+ type WithCursor<T> = {
437
+ /** context */
438
+ cursor: string | null;
439
+ /** response value */
440
+ items: T;
441
+ };
436
442
  /**
437
443
  * @internal
438
444
  */
@@ -696,7 +702,7 @@ declare const CompressedAccountsByOwnerResult: Struct<{
696
702
  tree: PublicKey;
697
703
  slotCreated: BN;
698
704
  }[];
699
- cursor: PublicKey | null;
705
+ cursor: string | null;
700
706
  }, {
701
707
  items: Struct<{
702
708
  owner: PublicKey;
@@ -745,7 +751,7 @@ declare const CompressedAccountsByOwnerResult: Struct<{
745
751
  seq: Struct<BN | null, null>;
746
752
  slotCreated: Struct<BN, null>;
747
753
  }>>;
748
- cursor: Struct<PublicKey | null, null>;
754
+ cursor: Struct<string | null, null>;
749
755
  }>;
750
756
  /**
751
757
  * @internal
@@ -775,7 +781,7 @@ declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
775
781
  slotCreated: BN;
776
782
  };
777
783
  }[];
778
- cursor: PublicKey | null;
784
+ cursor: string | null;
779
785
  }, {
780
786
  items: Struct<{
781
787
  tokenData: {
@@ -871,7 +877,7 @@ declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
871
877
  slotCreated: Struct<BN, null>;
872
878
  }>;
873
879
  }>>;
874
- cursor: Struct<PublicKey | null, null>;
880
+ cursor: Struct<string | null, null>;
875
881
  }>;
876
882
  /**
877
883
  * @internal
@@ -1049,7 +1055,7 @@ declare const TokenBalanceResult: Struct<{
1049
1055
  mint: Struct<PublicKey, null>;
1050
1056
  }>;
1051
1057
  declare const TokenBalanceListResult: Struct<{
1052
- cursor: PublicKey | null;
1058
+ cursor: string | null;
1053
1059
  tokenBalances: {
1054
1060
  mint: PublicKey;
1055
1061
  balance: BN;
@@ -1065,7 +1071,7 @@ declare const TokenBalanceListResult: Struct<{
1065
1071
  balance: Struct<BN, null>;
1066
1072
  mint: Struct<PublicKey, null>;
1067
1073
  }>>;
1068
- cursor: Struct<PublicKey | null, null>;
1074
+ cursor: Struct<string | null, null>;
1069
1075
  }>;
1070
1076
  declare const AccountProofResult: Struct<{
1071
1077
  proof: number[][];
@@ -1104,7 +1110,7 @@ declare const SignatureListWithCursorResult: Struct<{
1104
1110
  slot: number;
1105
1111
  blockTime: number;
1106
1112
  }[];
1107
- cursor: PublicKey | null;
1113
+ cursor: string | null;
1108
1114
  }, {
1109
1115
  items: Struct<{
1110
1116
  signature: string;
@@ -1119,7 +1125,7 @@ declare const SignatureListWithCursorResult: Struct<{
1119
1125
  signature: Struct<string, null>;
1120
1126
  slot: Struct<number, null>;
1121
1127
  }>>;
1122
- cursor: Struct<PublicKey | null, null>;
1128
+ cursor: Struct<string | null, null>;
1123
1129
  }>;
1124
1130
  declare const CompressedTransactionResult: Struct<{
1125
1131
  compressionInfo: {
@@ -1424,21 +1430,21 @@ interface CompressionApiInterface {
1424
1430
  getMultipleCompressedAccountProofs(hashes: BN254[]): Promise<MerkleContextWithMerkleProof[]>;
1425
1431
  getValidityProof(hashes: BN254[], newAddresses: BN254[]): Promise<CompressedProofWithContext>;
1426
1432
  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[]>;
1433
+ getCompressedAccountsByOwner(owner: PublicKey): Promise<WithCursor<CompressedAccountWithMerkleContext[]>>;
1434
+ getCompressedTokenAccountsByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
1435
+ getCompressedTokenAccountsByDelegate(delegate: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
1430
1436
  getCompressedTokenAccountBalance(hash: BN254): Promise<{
1431
1437
  amount: BN;
1432
1438
  }>;
1433
- getCompressedTokenBalancesByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<{
1439
+ getCompressedTokenBalancesByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<{
1434
1440
  balance: BN;
1435
1441
  mint: PublicKey;
1436
- }[]>;
1442
+ }[]>>;
1437
1443
  getTransactionWithCompressionInfo(signature: string): Promise<CompressedTransaction | null>;
1438
1444
  getCompressionSignaturesForAccount(hash: BN254): Promise<SignatureWithMetadata[]>;
1439
- getCompressionSignaturesForAddress(address: PublicKey): Promise<SignatureWithMetadata[]>;
1440
- getCompressionSignaturesForOwner(owner: PublicKey): Promise<SignatureWithMetadata[]>;
1441
- getCompressionSignaturesForTokenOwner(owner: PublicKey): Promise<SignatureWithMetadata[]>;
1445
+ getCompressionSignaturesForAddress(address: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
1446
+ getCompressionSignaturesForOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
1447
+ getCompressionSignaturesForTokenOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
1442
1448
  getLatestNonVotingSignatures(limit?: number): Promise<LatestNonVotingSignatures>;
1443
1449
  getLatestCompressionSignatures(cursor?: string, limit?: number): Promise<LatestNonVotingSignaturesPaginated>;
1444
1450
  getIndexerHealth(): Promise<string>;
@@ -1547,16 +1553,16 @@ declare class Rpc extends Connection implements CompressionApiInterface {
1547
1553
  * Fetch all the compressed accounts owned by the specified public key.
1548
1554
  * Owner can be a program or user account
1549
1555
  */
1550
- getCompressedAccountsByOwner(owner: PublicKey): Promise<CompressedAccountWithMerkleContext[]>;
1556
+ getCompressedAccountsByOwner(owner: PublicKey): Promise<WithCursor<CompressedAccountWithMerkleContext[]>>;
1551
1557
  /**
1552
1558
  * Fetch all the compressed token accounts owned by the specified public
1553
1559
  * key. Owner can be a program or user account
1554
1560
  */
1555
- getCompressedTokenAccountsByOwner(owner: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<ParsedTokenAccount[]>;
1561
+ getCompressedTokenAccountsByOwner(owner: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
1556
1562
  /**
1557
1563
  * Fetch all the compressed accounts delegated to the specified public key.
1558
1564
  */
1559
- getCompressedTokenAccountsByDelegate(delegate: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<ParsedTokenAccount[]>;
1565
+ getCompressedTokenAccountsByDelegate(delegate: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
1560
1566
  /**
1561
1567
  * Fetch the compressed token balance for the specified account hash
1562
1568
  */
@@ -1567,10 +1573,10 @@ declare class Rpc extends Connection implements CompressionApiInterface {
1567
1573
  * Fetch all the compressed token balances owned by the specified public
1568
1574
  * key. Can filter by mint
1569
1575
  */
1570
- getCompressedTokenBalancesByOwner(owner: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<{
1576
+ getCompressedTokenBalancesByOwner(owner: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<{
1571
1577
  balance: BN;
1572
1578
  mint: PublicKey;
1573
- }[]>;
1579
+ }[]>>;
1574
1580
  /**
1575
1581
  * Returns confirmed compression signatures for transactions involving the specified
1576
1582
  * account hash forward in time from genesis to the most recent confirmed
@@ -1590,7 +1596,7 @@ declare class Rpc extends Connection implements CompressionApiInterface {
1590
1596
  *
1591
1597
  * @param address queried compressed account address
1592
1598
  */
1593
- getCompressionSignaturesForAddress(address: PublicKey): Promise<SignatureWithMetadata[]>;
1599
+ getCompressionSignaturesForAddress(address: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
1594
1600
  /**
1595
1601
  * Returns confirmed signatures for compression transactions involving the
1596
1602
  * specified account owner forward in time from genesis to the
@@ -1598,13 +1604,13 @@ declare class Rpc extends Connection implements CompressionApiInterface {
1598
1604
  *
1599
1605
  * @param owner queried owner public key
1600
1606
  */
1601
- getCompressionSignaturesForOwner(owner: PublicKey): Promise<SignatureWithMetadata[]>;
1607
+ getCompressionSignaturesForOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
1602
1608
  /**
1603
1609
  * Returns confirmed signatures for compression transactions involving the
1604
1610
  * specified token account owner forward in time from genesis to the most
1605
1611
  * recent confirmed block
1606
1612
  */
1607
- getCompressionSignaturesForTokenOwner(owner: PublicKey): Promise<SignatureWithMetadata[]>;
1613
+ getCompressionSignaturesForTokenOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
1608
1614
  /**
1609
1615
  * Fetch the current indexer health status
1610
1616
  */
@@ -7482,7 +7488,7 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
7482
7488
  * Fetch all the compressed accounts owned by the specified public key.
7483
7489
  * Owner can be a program or user account
7484
7490
  */
7485
- getCompressedAccountsByOwner(owner: PublicKey): Promise<CompressedAccountWithMerkleContext[]>;
7491
+ getCompressedAccountsByOwner(owner: PublicKey): Promise<WithCursor<CompressedAccountWithMerkleContext[]>>;
7486
7492
  /**
7487
7493
  * Fetch the latest compression signatures on the cluster. Results are
7488
7494
  * paginated.
@@ -7497,11 +7503,11 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
7497
7503
  * Fetch all the compressed token accounts owned by the specified public
7498
7504
  * key. Owner can be a program or user account
7499
7505
  */
7500
- getCompressedTokenAccountsByOwner(owner: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<ParsedTokenAccount[]>;
7506
+ getCompressedTokenAccountsByOwner(owner: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
7501
7507
  /**
7502
7508
  * Fetch all the compressed accounts delegated to the specified public key.
7503
7509
  */
7504
- getCompressedTokenAccountsByDelegate(delegate: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<ParsedTokenAccount[]>;
7510
+ getCompressedTokenAccountsByDelegate(delegate: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
7505
7511
  /**
7506
7512
  * Fetch the compressed token balance for the specified account hash
7507
7513
  */
@@ -7512,10 +7518,10 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
7512
7518
  * Fetch all the compressed token balances owned by the specified public
7513
7519
  * key. Can filter by mint
7514
7520
  */
7515
- getCompressedTokenBalancesByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<{
7521
+ getCompressedTokenBalancesByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<{
7516
7522
  balance: BN;
7517
7523
  mint: PublicKey;
7518
- }[]>;
7524
+ }[]>>;
7519
7525
  /**
7520
7526
  * Returns confirmed signatures for transactions involving the specified
7521
7527
  * account hash forward in time from genesis to the most recent confirmed
@@ -7536,7 +7542,7 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
7536
7542
  *
7537
7543
  * @param address queried compressed account address
7538
7544
  */
7539
- getCompressionSignaturesForAddress(_address: PublicKey): Promise<SignatureWithMetadata[]>;
7545
+ getCompressionSignaturesForAddress(_address: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
7540
7546
  /**
7541
7547
  * Returns confirmed signatures for compression transactions involving the
7542
7548
  * specified account owner forward in time from genesis to the
@@ -7544,13 +7550,13 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
7544
7550
  *
7545
7551
  * @param owner queried owner public key
7546
7552
  */
7547
- getCompressionSignaturesForOwner(owner: PublicKey): Promise<SignatureWithMetadata[]>;
7553
+ getCompressionSignaturesForOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
7548
7554
  /**
7549
7555
  * Returns confirmed signatures for compression transactions involving the
7550
7556
  * specified token account owner forward in time from genesis to the most
7551
7557
  * recent confirmed block
7552
7558
  */
7553
- getCompressionSignaturesForTokenOwner(owner: PublicKey): Promise<SignatureWithMetadata[]>;
7559
+ getCompressionSignaturesForTokenOwner(owner: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
7554
7560
  /**
7555
7561
  * Fetch the current indexer health status
7556
7562
  */
@@ -7781,4 +7787,4 @@ declare function getParsedEvents(rpc: Rpc): Promise<PublicTransactionEvent[]>;
7781
7787
  declare const parseEvents: <T>(indexerEventsTransactions: (ParsedTransactionWithMeta | null)[], deserializeFn: Deserializer<T>) => NonNullable<T>[];
7782
7788
  declare const parsePublicTransactionEventWithIdl: (data: Buffer) => PublicTransactionEvent | null;
7783
7789
 
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 };
7790
+ 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.8.0",
3
+ "version": "0.9.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/hasher.rs": "0.2.0",
76
- "@lightprotocol/programs": "0.3.0"
75
+ "@lightprotocol/programs": "0.3.0",
76
+ "@lightprotocol/hasher.rs": "0.2.0"
77
77
  },
78
78
  "nx": {
79
79
  "targets": {