@lightprotocol/stateless.js 0.14.4 → 0.15.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 +95 -129
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/node/index.cjs +95 -129
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/es/browser/index.js +91 -130
- package/dist/es/browser/index.js.map +1 -1
- package/dist/types/index.d.ts +72 -141
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -454,7 +454,16 @@ interface GetCompressedTokenAccountsByOwnerOrDelegateOptions {
|
|
|
454
454
|
cursor?: string;
|
|
455
455
|
limit?: BN;
|
|
456
456
|
}
|
|
457
|
-
|
|
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?:
|
|
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
|
-
|
|
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
|
-
|
|
1648
|
-
|
|
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,7 @@ 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?:
|
|
1726
|
+
getCompressedMintTokenHolders(mint: PublicKey, options?: PaginatedOptions): Promise<WithContext<WithCursor<CompressedMintTokenHolders[]>>>;
|
|
1697
1727
|
/**
|
|
1698
1728
|
* Fetch the latest compression signatures on the cluster. Results are
|
|
1699
1729
|
* paginated.
|
|
@@ -1702,7 +1732,7 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
1702
1732
|
/**
|
|
1703
1733
|
* Fetch all non-voting signatures
|
|
1704
1734
|
*/
|
|
1705
|
-
getLatestNonVotingSignatures(limit?: number): Promise<LatestNonVotingSignatures>;
|
|
1735
|
+
getLatestNonVotingSignatures(limit?: number, cursor?: string): Promise<LatestNonVotingSignatures>;
|
|
1706
1736
|
/**
|
|
1707
1737
|
* Fetch the latest address proofs for new unique addresses specified by an
|
|
1708
1738
|
* array of addresses.
|
|
@@ -6952,128 +6982,23 @@ type LightCompressedToken = {
|
|
|
6952
6982
|
errors: [
|
|
6953
6983
|
{
|
|
6954
6984
|
code: 6000;
|
|
6955
|
-
name: '
|
|
6956
|
-
msg: '
|
|
6985
|
+
name: 'SignerCheckFailed';
|
|
6986
|
+
msg: 'Signer check failed';
|
|
6957
6987
|
},
|
|
6958
6988
|
{
|
|
6959
6989
|
code: 6001;
|
|
6960
|
-
name: '
|
|
6961
|
-
msg: '
|
|
6990
|
+
name: 'CreateTransferInstructionFailed';
|
|
6991
|
+
msg: 'Create transfer instruction failed';
|
|
6962
6992
|
},
|
|
6963
6993
|
{
|
|
6964
6994
|
code: 6002;
|
|
6965
|
-
name: '
|
|
6966
|
-
msg: '
|
|
6995
|
+
name: 'AccountNotFound';
|
|
6996
|
+
msg: 'Account not found';
|
|
6967
6997
|
},
|
|
6968
6998
|
{
|
|
6969
6999
|
code: 6003;
|
|
6970
|
-
name: '
|
|
6971
|
-
msg: '
|
|
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';
|
|
7000
|
+
name: 'SerializationError';
|
|
7001
|
+
msg: 'Serialization error';
|
|
7077
7002
|
}
|
|
7078
7003
|
];
|
|
7079
7004
|
};
|
|
@@ -7602,13 +7527,19 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
7602
7527
|
amount: BN;
|
|
7603
7528
|
}>;
|
|
7604
7529
|
/**
|
|
7530
|
+
* @deprecated use {@link getCompressedTokenBalancesByOwnerV2}.
|
|
7605
7531
|
* Fetch all the compressed token balances owned by the specified public
|
|
7606
|
-
* key. Can filter by mint
|
|
7532
|
+
* key. Can filter by mint.
|
|
7607
7533
|
*/
|
|
7608
7534
|
getCompressedTokenBalancesByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<{
|
|
7609
7535
|
balance: BN;
|
|
7610
7536
|
mint: PublicKey;
|
|
7611
7537
|
}[]>>;
|
|
7538
|
+
/**
|
|
7539
|
+
* Fetch all the compressed token balances owned by the specified public
|
|
7540
|
+
* key. Can filter by mint. Uses context.
|
|
7541
|
+
*/
|
|
7542
|
+
getCompressedTokenBalancesByOwnerV2(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithContext<WithCursor<TokenBalance[]>>>;
|
|
7612
7543
|
/**
|
|
7613
7544
|
* Returns confirmed signatures for transactions involving the specified
|
|
7614
7545
|
* account hash forward in time from genesis to the most recent confirmed
|
|
@@ -7616,12 +7547,12 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
7616
7547
|
*
|
|
7617
7548
|
* @param hash queried account hash
|
|
7618
7549
|
*/
|
|
7619
|
-
getCompressionSignaturesForAccount(
|
|
7550
|
+
getCompressionSignaturesForAccount(_hash: BN254): Promise<SignatureWithMetadata[]>;
|
|
7620
7551
|
/**
|
|
7621
7552
|
* Fetch a confirmed or finalized transaction from the cluster. Return with
|
|
7622
7553
|
* CompressionInfo
|
|
7623
7554
|
*/
|
|
7624
|
-
getTransactionWithCompressionInfo(
|
|
7555
|
+
getTransactionWithCompressionInfo(_signature: string): Promise<CompressedTransaction | null>;
|
|
7625
7556
|
/**
|
|
7626
7557
|
* Returns confirmed signatures for transactions involving the specified
|
|
7627
7558
|
* address forward in time from genesis to the most recent confirmed
|
|
@@ -7629,7 +7560,7 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
7629
7560
|
*
|
|
7630
7561
|
* @param address queried compressed account address
|
|
7631
7562
|
*/
|
|
7632
|
-
getCompressionSignaturesForAddress(_address: PublicKey): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
7563
|
+
getCompressionSignaturesForAddress(_address: PublicKey, _options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
7633
7564
|
/**
|
|
7634
7565
|
* Returns confirmed signatures for compression transactions involving the
|
|
7635
7566
|
* specified account owner forward in time from genesis to the
|
|
@@ -7637,13 +7568,13 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
7637
7568
|
*
|
|
7638
7569
|
* @param owner queried owner public key
|
|
7639
7570
|
*/
|
|
7640
|
-
getCompressionSignaturesForOwner(
|
|
7571
|
+
getCompressionSignaturesForOwner(_owner: PublicKey, _options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
7641
7572
|
/**
|
|
7642
7573
|
* Returns confirmed signatures for compression transactions involving the
|
|
7643
7574
|
* specified token account owner forward in time from genesis to the most
|
|
7644
7575
|
* recent confirmed block
|
|
7645
7576
|
*/
|
|
7646
|
-
getCompressionSignaturesForTokenOwner(
|
|
7577
|
+
getCompressionSignaturesForTokenOwner(_owner: PublicKey, _options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
7647
7578
|
/**
|
|
7648
7579
|
* Fetch the current indexer health status
|
|
7649
7580
|
*/
|
|
@@ -7661,7 +7592,7 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
7661
7592
|
* @returns Array of validity proofs for new addresses
|
|
7662
7593
|
*/
|
|
7663
7594
|
getMultipleNewAddressProofs(addresses: BN254[]): Promise<MerkleContextWithNewAddressProof[]>;
|
|
7664
|
-
getCompressedMintTokenHolders(_mint: PublicKey, _options?:
|
|
7595
|
+
getCompressedMintTokenHolders(_mint: PublicKey, _options?: PaginatedOptions): Promise<WithContext<WithCursor<CompressedMintTokenHolders[]>>>;
|
|
7665
7596
|
/**
|
|
7666
7597
|
* Advanced usage of getValidityProof: fetches ZKP directly from a custom
|
|
7667
7598
|
* non-rpcprover. Note: This uses the proverEndpoint specified in the
|
|
@@ -7881,4 +7812,4 @@ declare function getParsedEvents(rpc: Rpc): Promise<PublicTransactionEvent[]>;
|
|
|
7881
7812
|
declare const parseEvents: <T>(indexerEventsTransactions: (ParsedTransactionWithMeta | null)[], deserializeFn: Deserializer<T>) => NonNullable<T>[];
|
|
7882
7813
|
declare const parsePublicTransactionEventWithIdl: (data: Buffer) => PublicTransactionEvent | null;
|
|
7883
7814
|
|
|
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
|
|
7815
|
+
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 };
|