@lightprotocol/stateless.js 0.19.0 → 0.20.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/constants.d.ts +30 -16
- package/dist/cjs/browser/index.cjs +1 -1
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/browser/rpc-interface.d.ts +107 -107
- package/dist/cjs/browser/rpc.d.ts +8 -9
- package/dist/cjs/browser/state/types.d.ts +24 -0
- package/dist/cjs/browser/test-helpers/test-rpc/test-rpc.d.ts +5 -6
- package/dist/cjs/browser/utils/get-light-state-tree-info.d.ts +11 -9
- package/dist/cjs/node/constants.d.ts +30 -16
- package/dist/cjs/node/index.cjs +1 -1
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/cjs/node/rpc-interface.d.ts +107 -107
- package/dist/cjs/node/rpc.d.ts +8 -9
- package/dist/cjs/node/state/types.d.ts +24 -0
- package/dist/cjs/node/test-helpers/test-rpc/test-rpc.d.ts +5 -6
- package/dist/cjs/node/utils/get-light-state-tree-info.d.ts +11 -9
- package/dist/types/index.d.ts +75 -39
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { AddressWithTree, CompressedMintTokenHolders, CompressedTransaction, Get
|
|
|
4
4
|
import { CompressedProofWithContext, CompressionApiInterface, GetCompressedTokenAccountsByOwnerOrDelegateOptions, ParsedTokenAccount, TokenBalance } from '../../rpc-interface';
|
|
5
5
|
import { BN254, CompressedAccountWithMerkleContext, MerkleContextWithMerkleProof } from '../../state';
|
|
6
6
|
import { MerkleContextWithNewAddressProof } from '../../rpc';
|
|
7
|
-
import {
|
|
7
|
+
import { ActiveTreeBundle } from '../../state/types';
|
|
8
8
|
export interface TestRpcConfig {
|
|
9
9
|
/**
|
|
10
10
|
* Address of the state tree to index. Default: public default test state
|
|
@@ -75,8 +75,7 @@ export declare class TestRpc extends Connection implements CompressionApiInterfa
|
|
|
75
75
|
lightWasm: LightWasm;
|
|
76
76
|
depth: number;
|
|
77
77
|
log: boolean;
|
|
78
|
-
activeStateTreeInfo:
|
|
79
|
-
fetchStateTreePromise: Promise<ActiveStateTreeAddresses> | null;
|
|
78
|
+
activeStateTreeInfo: ActiveTreeBundle[] | null;
|
|
80
79
|
/**
|
|
81
80
|
* Establish a Compression-compatible JSON RPC mock-connection
|
|
82
81
|
*
|
|
@@ -93,15 +92,15 @@ export declare class TestRpc extends Connection implements CompressionApiInterfa
|
|
|
93
92
|
/**
|
|
94
93
|
* Manually set state tree addresses
|
|
95
94
|
*/
|
|
96
|
-
setStateTreeInfo(info:
|
|
95
|
+
setStateTreeInfo(info: ActiveTreeBundle[]): void;
|
|
97
96
|
/**
|
|
98
97
|
* Returns local test state trees.
|
|
99
98
|
*/
|
|
100
|
-
getCachedActiveStateTreeInfo(): Promise<
|
|
99
|
+
getCachedActiveStateTreeInfo(): Promise<ActiveTreeBundle[]>;
|
|
101
100
|
/**
|
|
102
101
|
* Returns local test state trees.
|
|
103
102
|
*/
|
|
104
|
-
getLatestActiveStateTreeInfo(): Promise<
|
|
103
|
+
getLatestActiveStateTreeInfo(): Promise<ActiveTreeBundle[]>;
|
|
105
104
|
/**
|
|
106
105
|
* Fetch the compressed account for the specified account hash
|
|
107
106
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Connection, Keypair, PublicKey } from '@solana/web3.js';
|
|
2
|
+
import { ActiveTreeBundle } from '../state/types';
|
|
2
3
|
/**
|
|
3
4
|
* Create two lookup tables storing all public state tree and queue addresses
|
|
4
5
|
* returns lookup table addresses and txId
|
|
@@ -25,14 +26,16 @@ export declare function createStateTreeLookupTable({ connection, payer, authorit
|
|
|
25
26
|
* @param tableAddress - Address of the lookup table to extend
|
|
26
27
|
* @param newStateTreeAddresses - Addresses of the new state trees to add
|
|
27
28
|
* @param newQueueAddresses - Addresses of the new queues to add
|
|
29
|
+
* @param newCpiContextAddresses - Addresses of the new cpi contexts to add
|
|
28
30
|
* @param payer - Keypair of the payer
|
|
29
31
|
* @param authority - Keypair of the authority
|
|
30
32
|
*/
|
|
31
|
-
export declare function extendStateTreeLookupTable({ connection, tableAddress, newStateTreeAddresses, newQueueAddresses, payer, authority, }: {
|
|
33
|
+
export declare function extendStateTreeLookupTable({ connection, tableAddress, newStateTreeAddresses, newQueueAddresses, newCpiContextAddresses, payer, authority, }: {
|
|
32
34
|
connection: Connection;
|
|
33
35
|
tableAddress: PublicKey;
|
|
34
36
|
newStateTreeAddresses: PublicKey[];
|
|
35
37
|
newQueueAddresses: PublicKey[];
|
|
38
|
+
newCpiContextAddresses: PublicKey[];
|
|
36
39
|
payer: Keypair;
|
|
37
40
|
authority: Keypair;
|
|
38
41
|
}): Promise<{
|
|
@@ -40,12 +43,15 @@ export declare function extendStateTreeLookupTable({ connection, tableAddress, n
|
|
|
40
43
|
txId: string;
|
|
41
44
|
}>;
|
|
42
45
|
/**
|
|
43
|
-
* Adds
|
|
46
|
+
* Adds state tree address to lookup table. Acts as nullifier lookup for rolled
|
|
47
|
+
* over state trees.
|
|
44
48
|
* @internal
|
|
45
49
|
* @param connection - Connection to the Solana network
|
|
46
50
|
* @param stateTreeAddress - Address of the state tree to nullify
|
|
47
|
-
* @param nullifyTableAddress - Address nullifier lookup table to store
|
|
48
|
-
*
|
|
51
|
+
* @param nullifyTableAddress - Address of the nullifier lookup table to store
|
|
52
|
+
* address in
|
|
53
|
+
* @param stateTreeLookupTableAddress - lookup table storing all state tree
|
|
54
|
+
* addresses
|
|
49
55
|
* @param payer - Keypair of the payer
|
|
50
56
|
* @param authority - Keypair of the authority
|
|
51
57
|
*/
|
|
@@ -59,10 +65,6 @@ export declare function nullifyLookupTable({ connection, fullStateTreeAddress, n
|
|
|
59
65
|
}): Promise<{
|
|
60
66
|
txId: string;
|
|
61
67
|
}>;
|
|
62
|
-
export type ActiveStateTreeAddresses = {
|
|
63
|
-
activeStateTrees: PublicKey[];
|
|
64
|
-
activeQueues: PublicKey[];
|
|
65
|
-
};
|
|
66
68
|
/**
|
|
67
69
|
* Get most recent , active state tree data
|
|
68
70
|
* we store in lookup table for each public state tree
|
|
@@ -71,4 +73,4 @@ export declare function getLightStateTreeInfo({ connection, stateTreeLookupTable
|
|
|
71
73
|
connection: Connection;
|
|
72
74
|
stateTreeLookupTableAddress: PublicKey;
|
|
73
75
|
nullifyTableAddress: PublicKey;
|
|
74
|
-
}): Promise<
|
|
76
|
+
}): Promise<ActiveTreeBundle[]>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -230,14 +230,16 @@ declare function createStateTreeLookupTable({ connection, payer, authority, rece
|
|
|
230
230
|
* @param tableAddress - Address of the lookup table to extend
|
|
231
231
|
* @param newStateTreeAddresses - Addresses of the new state trees to add
|
|
232
232
|
* @param newQueueAddresses - Addresses of the new queues to add
|
|
233
|
+
* @param newCpiContextAddresses - Addresses of the new cpi contexts to add
|
|
233
234
|
* @param payer - Keypair of the payer
|
|
234
235
|
* @param authority - Keypair of the authority
|
|
235
236
|
*/
|
|
236
|
-
declare function extendStateTreeLookupTable({ connection, tableAddress, newStateTreeAddresses, newQueueAddresses, payer, authority, }: {
|
|
237
|
+
declare function extendStateTreeLookupTable({ connection, tableAddress, newStateTreeAddresses, newQueueAddresses, newCpiContextAddresses, payer, authority, }: {
|
|
237
238
|
connection: Connection;
|
|
238
239
|
tableAddress: PublicKey;
|
|
239
240
|
newStateTreeAddresses: PublicKey[];
|
|
240
241
|
newQueueAddresses: PublicKey[];
|
|
242
|
+
newCpiContextAddresses: PublicKey[];
|
|
241
243
|
payer: Keypair;
|
|
242
244
|
authority: Keypair;
|
|
243
245
|
}): Promise<{
|
|
@@ -245,12 +247,15 @@ declare function extendStateTreeLookupTable({ connection, tableAddress, newState
|
|
|
245
247
|
txId: string;
|
|
246
248
|
}>;
|
|
247
249
|
/**
|
|
248
|
-
* Adds
|
|
250
|
+
* Adds state tree address to lookup table. Acts as nullifier lookup for rolled
|
|
251
|
+
* over state trees.
|
|
249
252
|
* @internal
|
|
250
253
|
* @param connection - Connection to the Solana network
|
|
251
254
|
* @param stateTreeAddress - Address of the state tree to nullify
|
|
252
|
-
* @param nullifyTableAddress - Address nullifier lookup table to store
|
|
253
|
-
*
|
|
255
|
+
* @param nullifyTableAddress - Address of the nullifier lookup table to store
|
|
256
|
+
* address in
|
|
257
|
+
* @param stateTreeLookupTableAddress - lookup table storing all state tree
|
|
258
|
+
* addresses
|
|
254
259
|
* @param payer - Keypair of the payer
|
|
255
260
|
* @param authority - Keypair of the authority
|
|
256
261
|
*/
|
|
@@ -264,10 +269,6 @@ declare function nullifyLookupTable({ connection, fullStateTreeAddress, nullifyT
|
|
|
264
269
|
}): Promise<{
|
|
265
270
|
txId: string;
|
|
266
271
|
}>;
|
|
267
|
-
type ActiveStateTreeAddresses = {
|
|
268
|
-
activeStateTrees: PublicKey[];
|
|
269
|
-
activeQueues: PublicKey[];
|
|
270
|
-
};
|
|
271
272
|
/**
|
|
272
273
|
* Get most recent , active state tree data
|
|
273
274
|
* we store in lookup table for each public state tree
|
|
@@ -276,8 +277,32 @@ declare function getLightStateTreeInfo({ connection, stateTreeLookupTableAddress
|
|
|
276
277
|
connection: Connection;
|
|
277
278
|
stateTreeLookupTableAddress: PublicKey;
|
|
278
279
|
nullifyTableAddress: PublicKey;
|
|
279
|
-
}): Promise<
|
|
280
|
+
}): Promise<ActiveTreeBundle[]>;
|
|
280
281
|
|
|
282
|
+
declare enum TreeType {
|
|
283
|
+
/**
|
|
284
|
+
* v1 state merkle tree
|
|
285
|
+
*/
|
|
286
|
+
State = 0,
|
|
287
|
+
/**
|
|
288
|
+
* v1 address merkle tree
|
|
289
|
+
*/
|
|
290
|
+
Address = 1,
|
|
291
|
+
/**
|
|
292
|
+
* v2 state merkle tree
|
|
293
|
+
*/
|
|
294
|
+
BatchedState = 2,
|
|
295
|
+
/**
|
|
296
|
+
* v2 address merkle tree
|
|
297
|
+
*/
|
|
298
|
+
BatchedAddress = 3
|
|
299
|
+
}
|
|
300
|
+
type ActiveTreeBundle = {
|
|
301
|
+
tree: PublicKey;
|
|
302
|
+
queue: PublicKey | null;
|
|
303
|
+
cpiContext: PublicKey | null;
|
|
304
|
+
treeType: TreeType;
|
|
305
|
+
};
|
|
281
306
|
interface PackedCompressedAccountWithMerkleContext {
|
|
282
307
|
compressedAccount: CompressedAccount;
|
|
283
308
|
merkleContext: PackedMerkleContext;
|
|
@@ -1638,8 +1663,7 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
1638
1663
|
lightWasm: LightWasm;
|
|
1639
1664
|
depth: number;
|
|
1640
1665
|
log: boolean;
|
|
1641
|
-
activeStateTreeInfo:
|
|
1642
|
-
fetchStateTreePromise: Promise<ActiveStateTreeAddresses> | null;
|
|
1666
|
+
activeStateTreeInfo: ActiveTreeBundle[] | null;
|
|
1643
1667
|
/**
|
|
1644
1668
|
* Establish a Compression-compatible JSON RPC mock-connection
|
|
1645
1669
|
*
|
|
@@ -1656,15 +1680,15 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
1656
1680
|
/**
|
|
1657
1681
|
* Manually set state tree addresses
|
|
1658
1682
|
*/
|
|
1659
|
-
setStateTreeInfo(info:
|
|
1683
|
+
setStateTreeInfo(info: ActiveTreeBundle[]): void;
|
|
1660
1684
|
/**
|
|
1661
1685
|
* Returns local test state trees.
|
|
1662
1686
|
*/
|
|
1663
|
-
getCachedActiveStateTreeInfo(): Promise<
|
|
1687
|
+
getCachedActiveStateTreeInfo(): Promise<ActiveTreeBundle[]>;
|
|
1664
1688
|
/**
|
|
1665
1689
|
* Returns local test state trees.
|
|
1666
1690
|
*/
|
|
1667
|
-
getLatestActiveStateTreeInfo(): Promise<
|
|
1691
|
+
getLatestActiveStateTreeInfo(): Promise<ActiveTreeBundle[]>;
|
|
1668
1692
|
/**
|
|
1669
1693
|
* Fetch the compressed account for the specified account hash
|
|
1670
1694
|
*/
|
|
@@ -2141,7 +2165,7 @@ declare function getPublicInputHash(accountProofs: MerkleContextWithMerkleProof[
|
|
|
2141
2165
|
* @param tree - The tree to get the queue for
|
|
2142
2166
|
* @returns The queue for the given tree, or undefined if not found
|
|
2143
2167
|
*/
|
|
2144
|
-
declare function getQueueForTree(info:
|
|
2168
|
+
declare function getQueueForTree(info: ActiveTreeBundle[], tree: PublicKey): PublicKey;
|
|
2145
2169
|
/**
|
|
2146
2170
|
* Get the tree for a given queue
|
|
2147
2171
|
*
|
|
@@ -2149,7 +2173,7 @@ declare function getQueueForTree(info: ActiveStateTreeAddresses, tree: PublicKey
|
|
|
2149
2173
|
* @param queue - The queue to get the tree for
|
|
2150
2174
|
* @returns The tree for the given queue, or undefined if not found
|
|
2151
2175
|
*/
|
|
2152
|
-
declare function getTreeForQueue(info:
|
|
2176
|
+
declare function getTreeForQueue(info: ActiveTreeBundle[], queue: PublicKey): PublicKey;
|
|
2153
2177
|
/**
|
|
2154
2178
|
* Get a random tree and queue from the active state tree addresses.
|
|
2155
2179
|
*
|
|
@@ -2158,7 +2182,7 @@ declare function getTreeForQueue(info: ActiveStateTreeAddresses, queue: PublicKe
|
|
|
2158
2182
|
* @param info - The active state tree addresses
|
|
2159
2183
|
* @returns A random tree and queue
|
|
2160
2184
|
*/
|
|
2161
|
-
declare function pickRandomTreeAndQueue(info:
|
|
2185
|
+
declare function pickRandomTreeAndQueue(info: ActiveTreeBundle[]): {
|
|
2162
2186
|
tree: PublicKey;
|
|
2163
2187
|
queue: PublicKey;
|
|
2164
2188
|
};
|
|
@@ -2168,22 +2192,21 @@ declare function pickRandomTreeAndQueue(info: ActiveStateTreeAddresses): {
|
|
|
2168
2192
|
declare class Rpc extends Connection implements CompressionApiInterface {
|
|
2169
2193
|
compressionApiEndpoint: string;
|
|
2170
2194
|
proverEndpoint: string;
|
|
2171
|
-
activeStateTreeInfo:
|
|
2172
|
-
fetchStateTreePromise: Promise<ActiveStateTreeAddresses> | null;
|
|
2195
|
+
activeStateTreeInfo: ActiveTreeBundle[] | null;
|
|
2173
2196
|
constructor(endpoint: string, compressionApiEndpoint: string, proverEndpoint: string, config?: ConnectionConfig);
|
|
2174
2197
|
/**
|
|
2175
2198
|
* Manually set state tree addresses
|
|
2176
2199
|
*/
|
|
2177
|
-
setStateTreeInfo(info:
|
|
2200
|
+
setStateTreeInfo(info: ActiveTreeBundle[]): void;
|
|
2178
2201
|
/**
|
|
2179
2202
|
* Get the active state tree addresses from the cluster.
|
|
2180
2203
|
* If not already cached, fetches from the cluster.
|
|
2181
2204
|
*/
|
|
2182
|
-
getCachedActiveStateTreeInfo(): Promise<
|
|
2205
|
+
getCachedActiveStateTreeInfo(): Promise<ActiveTreeBundle[]>;
|
|
2183
2206
|
/**
|
|
2184
2207
|
* Fetch the latest state tree addresses from the cluster.
|
|
2185
2208
|
*/
|
|
2186
|
-
getLatestActiveStateTreeInfo(): Promise<
|
|
2209
|
+
getLatestActiveStateTreeInfo(): Promise<ActiveTreeBundle[]>;
|
|
2187
2210
|
/**
|
|
2188
2211
|
* Fetch the compressed account for the specified account address or hash
|
|
2189
2212
|
*/
|
|
@@ -2755,21 +2778,29 @@ declare const defaultStaticAccountsStruct: () => {
|
|
|
2755
2778
|
accountCompressionAuthority: PublicKey;
|
|
2756
2779
|
cpiSignatureAccount: null;
|
|
2757
2780
|
};
|
|
2781
|
+
type StateTreeLUTPair = {
|
|
2782
|
+
stateTreeLookupTable: PublicKey;
|
|
2783
|
+
nullifyTable: PublicKey;
|
|
2784
|
+
};
|
|
2785
|
+
/**
|
|
2786
|
+
* Returns the Default Public State Tree LUTs for Devnet and Mainnet-Beta.
|
|
2787
|
+
*/
|
|
2758
2788
|
declare const defaultStateTreeLookupTables: () => {
|
|
2759
|
-
mainnet:
|
|
2760
|
-
|
|
2761
|
-
nullifyTable: PublicKey;
|
|
2762
|
-
};
|
|
2763
|
-
devnet: {
|
|
2764
|
-
stateTreeLookupTable: PublicKey;
|
|
2765
|
-
nullifyTable: PublicKey;
|
|
2766
|
-
};
|
|
2789
|
+
mainnet: StateTreeLUTPair[];
|
|
2790
|
+
devnet: StateTreeLUTPair[];
|
|
2767
2791
|
};
|
|
2792
|
+
/**
|
|
2793
|
+
* @internal
|
|
2794
|
+
*/
|
|
2768
2795
|
declare const isLocalTest: (url: string) => boolean;
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2796
|
+
/**
|
|
2797
|
+
* @internal
|
|
2798
|
+
*/
|
|
2799
|
+
declare const localTestActiveStateTreeInfo: () => ActiveTreeBundle[];
|
|
2800
|
+
/**
|
|
2801
|
+
* Use only with Localnet testing.
|
|
2802
|
+
* For public networks, fetch via {@link defaultStateTreeLookupTables} and {@link getLightStateTreeInfo}.
|
|
2803
|
+
*/
|
|
2773
2804
|
declare const defaultTestStateTreeAccounts: () => {
|
|
2774
2805
|
nullifierQueue: PublicKey;
|
|
2775
2806
|
merkleTree: PublicKey;
|
|
@@ -2777,20 +2808,25 @@ declare const defaultTestStateTreeAccounts: () => {
|
|
|
2777
2808
|
addressTree: PublicKey;
|
|
2778
2809
|
addressQueue: PublicKey;
|
|
2779
2810
|
};
|
|
2811
|
+
/**
|
|
2812
|
+
* @internal testing only
|
|
2813
|
+
*/
|
|
2780
2814
|
declare const defaultTestStateTreeAccounts2: () => {
|
|
2781
2815
|
nullifierQueue2: PublicKey;
|
|
2782
2816
|
merkleTree2: PublicKey;
|
|
2783
2817
|
};
|
|
2784
|
-
declare const stateTreeLookupTableMainnet = "
|
|
2785
|
-
declare const nullifiedStateTreeLookupTableMainnet = "
|
|
2786
|
-
declare const stateTreeLookupTableDevnet = "
|
|
2787
|
-
declare const nullifiedStateTreeLookupTableDevnet = "
|
|
2818
|
+
declare const stateTreeLookupTableMainnet = "7i86eQs3GSqHjN47WdWLTCGMW6gde1q96G2EVnUyK2st";
|
|
2819
|
+
declare const nullifiedStateTreeLookupTableMainnet = "H9QD4u1fG7KmkAzn2tDXhheushxFe1EcrjGGyEFXeMqT";
|
|
2820
|
+
declare const stateTreeLookupTableDevnet = "8n8rH2bFRVA6cSGNDpgqcKHCndbFCT1bXxAQG89ejVsh";
|
|
2821
|
+
declare const nullifiedStateTreeLookupTableDevnet = "5dhaJLBjnVBQFErr8oiCJmcVsx3Zj6xDekGB2zULPsnP";
|
|
2788
2822
|
declare const nullifierQueuePubkey = "nfq1NvQDJ2GEgnS8zt9prAe8rjjpAW1zFkrvZoBR148";
|
|
2823
|
+
declare const cpiContextPubkey = "cpi1uHzrEhBG733DoEJNgHCyRS3XmmyVNZx5fonubE4";
|
|
2789
2824
|
declare const merkletreePubkey = "smt1NamzXdq4AMqS2fS2F1i5KTYPZRhoHgWx38d8WsT";
|
|
2790
2825
|
declare const addressTree = "amt1Ayt45jfbdw5YSo7iz6WZxUmnZsQTYXy82hVwyC2";
|
|
2791
2826
|
declare const addressQueue = "aq1S9z4reTSQAdgWHGD2zDaS39sjGrAxbR31vxJ2F4F";
|
|
2792
2827
|
declare const merkleTree2Pubkey = "smt2rJAFdyJJupwMKAqTNAJwvjhmiZ4JYGZmbVRw1Ho";
|
|
2793
2828
|
declare const nullifierQueue2Pubkey = "nfq2hgS7NYemXsFaFUCe3EMXSDSfnZnAe27jC6aPP1X";
|
|
2829
|
+
declare const cpiContext2Pubkey = "cpi2cdhkH5roePvcudTgUL8ppEBfTay1desGh8G8QxK";
|
|
2794
2830
|
declare const confirmConfig: ConfirmOptions;
|
|
2795
2831
|
declare const DEFAULT_MERKLE_TREE_HEIGHT = 26;
|
|
2796
2832
|
declare const DEFAULT_MERKLE_TREE_ROOTS = 2800;
|
|
@@ -3921,4 +3957,4 @@ type LightSystemProgram = {
|
|
|
3921
3957
|
};
|
|
3922
3958
|
declare const IDL: LightSystemProgram;
|
|
3923
3959
|
|
|
3924
|
-
export { ADDRESS_QUEUE_ROLLOVER_FEE, ADDRESS_TREE_NETWORK_FEE, ALICE, AccountProofResult, type
|
|
3960
|
+
export { ADDRESS_QUEUE_ROLLOVER_FEE, ADDRESS_TREE_NETWORK_FEE, ALICE, AccountProofResult, type ActiveTreeBundle, type AddressWithTree, type BN254, BOB, BalanceResult, CHARLIE, type ClientSubscriptionId, type CompressedAccount, type CompressedAccountData, CompressedAccountLayout, CompressedAccountResult, type CompressedAccountWithMerkleContext, CompressedAccountsByOwnerResult, type CompressedMintTokenHolders, CompressedMintTokenHoldersResult, type CompressedProof, type CompressedProofWithContext, CompressedTokenAccountResult, CompressedTokenAccountsByOwnerOrDelegateResult, type CompressedTransaction, CompressedTransactionResult, type CompressionApiInterface, CreateUtxoError, CreateUtxoErrorCode, DAVE, DEFAULT_MERKLE_TREE_HEIGHT, DEFAULT_MERKLE_TREE_ROOTS, DEFAULT_ZERO, type EventWithParsedTokenTlvData, 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, IDL, INVOKE_DISCRIMINATOR, IndexedArray, IndexedElement, IndexedElementBundle, type InputTokenDataWithContext, type InstructionDataInvoke, InstructionDataInvokeLayout, type LatestNonVotingSignatures, type LatestNonVotingSignaturesPaginated, LatestNonVotingSignaturesResult, LatestNonVotingSignaturesResultPaginated, LightSystemProgram$1 as LightSystemProgram, type LightSystemProgram as LightSystemProgramIDL, type LightWasm, LookupTableError, LookupTableErrorCode, MerkeProofResult, type MerkleContext, MerkleContextLayout, type MerkleContextWithMerkleProof, type MerkleContextWithNewAddressProof, MerkleTree, MerkleTreeError, MerkleTreeErrorCode, type MerkleTreeSequenceNumber, MultipleCompressedAccountsResult, MultipleMerkleProofsResult, NativeBalanceResult, type NewAddressParams, NewAddressParamsLayout, type NewAddressParamsPacked, NewAddressProofResult, type NonInclusionJsonStruct, type NonInclusionMerkleProofInputs, type OutputCompressedAccountWithPackedContext, type PackedCompressedAccountWithMerkleContext, type PackedMerkleContext, type PaginatedOptions, type ParsedTokenAccount, ProofError, ProofErrorCode, type PublicTransactionEvent, PublicTransactionEventLayout, type QueueIndex, Rpc, RpcError, RpcErrorCode, type RpcResult, type RpcResultError, type RpcResultSuccess, STATE_MERKLE_TREE_NETWORK_FEE, STATE_MERKLE_TREE_ROLLOVER_FEE, SelectInUtxosError, SelectInUtxosErrorCode, SignatureListResult, SignatureListWithCursorResult, type SignatureWithMetadata, SlotResult, type StateTreeLUTPair, TRANSACTION_MERKLE_TREE_ROLLOVER_THRESHOLD, TestRpc, type TestRpcConfig, type TokenBalance, TokenBalanceListResult, TokenBalanceListResultV2, TokenBalanceResult, type TokenData$1 as TokenData, TokenDataLayout, TokenDataResult, TreeType, UTXO_MERGE_MAXIMUM, UTXO_MERGE_THRESHOLD, UtilsError, UtilsErrorCode, UtxoError, UtxoErrorCode, ValidityProofResult, type WithContext, type WithCursor, type WithRpcContext, accountCompressionProgram, addressQueue, addressTree, airdropSol, bn, bufToDecStr, buildAndSignTx, buildTx, byteArrayToKeypair, calculateComputeUnitPrice, checkValidityProofShape, compress, confirmConfig, confirmTransaction, confirmTx, convertMerkleProofsWithContextToHex, convertNonInclusionMerkleProofInputsToHex, cpiContext2Pubkey, cpiContextPubkey, createAccount, createAccountWithLamports, createBN254, createCompressedAccount, createCompressedAccountWithMerkleContext, createMerkleContext, createRpc, createRpcResult, createStateTreeLookupTable, decodeInstructionDataInvoke, decodePublicTransactionEvent, decompress, dedupeSigner, deepEqual, defaultStateTreeLookupTables, defaultStaticAccounts, defaultStaticAccountsStruct, defaultTestStateTreeAccounts, defaultTestStateTreeAccounts2, deriveAddress, deriveAddressSeed, encodeBN254toBase58, encodeInstructionDataInvoke, encodePublicTransactionEvent, extendStateTreeLookupTable, getAccountCompressionAuthority, getCompressedTokenAccountByHashTest, getCompressedTokenAccounts, getCompressedTokenAccountsByDelegateTest, getCompressedTokenAccountsByOwnerTest, getConnection, getIndexOrAdd, getLightStateTreeInfo, getParsedEvents, getPublicInputHash, getQueueForTree, getRegisteredProgramPda, getTestKeypair, getTestRpc, getTreeForQueue, hashToBn254FieldSizeBe, hashvToBn254FieldSizeBe, invokeAccountsLayout, type invokeAccountsLayoutParams, isLocalTest, jsonRpcResult, jsonRpcResultAndContext, lightProgram, localTestActiveStateTreeInfo, merkleTree2Pubkey, merkletreePubkey, negateAndCompressProof, newAccountWithLamports, noopProgram, nullifiedStateTreeLookupTableDevnet, nullifiedStateTreeLookupTableMainnet, nullifierQueue2Pubkey, nullifierQueuePubkey, nullifyLookupTable, packCompressedAccounts, packNewAddressParams, padOutputStateMerkleTrees, parseAccountData, parseEvents, parsePublicTransactionEventWithIdl, parseTokenLayoutWithIdl, pickRandomTreeAndQueue, pipe, placeholderValidityProof, proofFromJsonStruct, proverRequest, pushUniqueItems, rpcRequest, selectMinCompressedSolAccountsForTransfer, sendAndConfirmTx, sleep, stateTreeLookupTableDevnet, stateTreeLookupTableMainnet, sumUpLamports, toAccountMetas, toArray, toCamelCase, toHex, toUnixTimestamp, transfer, validateSameOwner, validateSufficientBalance };
|