@lightprotocol/stateless.js 0.18.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 +39 -0
- package/dist/cjs/browser/idl.d.ts +4 -0
- package/dist/cjs/browser/index.cjs +1 -1
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/browser/instruction/pack-compressed-accounts.d.ts +17 -1
- package/dist/cjs/browser/rpc-interface.d.ts +107 -107
- package/dist/cjs/browser/rpc.d.ts +47 -8
- package/dist/cjs/browser/state/types.d.ts +24 -0
- package/dist/cjs/browser/test-helpers/index.d.ts +1 -0
- package/dist/cjs/browser/test-helpers/test-rpc/test-rpc.d.ts +14 -0
- package/dist/cjs/browser/utils/get-light-state-tree-info.d.ts +76 -0
- package/dist/cjs/browser/utils/index.d.ts +1 -1
- package/dist/cjs/node/constants.d.ts +39 -0
- package/dist/cjs/node/idl.d.ts +4 -0
- package/dist/cjs/node/index.cjs +1 -1
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/cjs/node/instruction/pack-compressed-accounts.d.ts +17 -1
- package/dist/cjs/node/rpc-interface.d.ts +107 -107
- package/dist/cjs/node/rpc.d.ts +47 -8
- package/dist/cjs/node/state/types.d.ts +24 -0
- package/dist/cjs/node/test-helpers/index.d.ts +1 -0
- package/dist/cjs/node/test-helpers/test-rpc/test-rpc.d.ts +14 -0
- package/dist/cjs/node/utils/get-light-state-tree-info.d.ts +76 -0
- package/dist/cjs/node/utils/index.d.ts +1 -1
- package/dist/types/index.d.ts +247 -40
- package/package.json +3 -2
- /package/dist/cjs/browser/{utils → test-helpers}/test-utils.d.ts +0 -0
- /package/dist/cjs/node/{utils → test-helpers}/test-utils.d.ts +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import BN from 'bn.js';
|
|
2
2
|
import { Buffer } from 'buffer';
|
|
3
3
|
import { ConfirmOptions, PublicKey } from '@solana/web3.js';
|
|
4
|
+
import { ActiveTreeBundle } from './state/types';
|
|
4
5
|
export declare const FIELD_SIZE: BN;
|
|
5
6
|
export declare const HIGHEST_ADDRESS_PLUS_ONE: BN;
|
|
6
7
|
export declare const INVOKE_DISCRIMINATOR: Buffer;
|
|
@@ -17,6 +18,29 @@ export declare const defaultStaticAccountsStruct: () => {
|
|
|
17
18
|
accountCompressionAuthority: PublicKey;
|
|
18
19
|
cpiSignatureAccount: null;
|
|
19
20
|
};
|
|
21
|
+
export type StateTreeLUTPair = {
|
|
22
|
+
stateTreeLookupTable: PublicKey;
|
|
23
|
+
nullifyTable: PublicKey;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Returns the Default Public State Tree LUTs for Devnet and Mainnet-Beta.
|
|
27
|
+
*/
|
|
28
|
+
export declare const defaultStateTreeLookupTables: () => {
|
|
29
|
+
mainnet: StateTreeLUTPair[];
|
|
30
|
+
devnet: StateTreeLUTPair[];
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
export declare const isLocalTest: (url: string) => boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
export declare const localTestActiveStateTreeInfo: () => ActiveTreeBundle[];
|
|
40
|
+
/**
|
|
41
|
+
* Use only with Localnet testing.
|
|
42
|
+
* For public networks, fetch via {@link defaultStateTreeLookupTables} and {@link getLightStateTreeInfo}.
|
|
43
|
+
*/
|
|
20
44
|
export declare const defaultTestStateTreeAccounts: () => {
|
|
21
45
|
nullifierQueue: PublicKey;
|
|
22
46
|
merkleTree: PublicKey;
|
|
@@ -24,10 +48,25 @@ export declare const defaultTestStateTreeAccounts: () => {
|
|
|
24
48
|
addressTree: PublicKey;
|
|
25
49
|
addressQueue: PublicKey;
|
|
26
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* @internal testing only
|
|
53
|
+
*/
|
|
54
|
+
export declare const defaultTestStateTreeAccounts2: () => {
|
|
55
|
+
nullifierQueue2: PublicKey;
|
|
56
|
+
merkleTree2: PublicKey;
|
|
57
|
+
};
|
|
58
|
+
export declare const stateTreeLookupTableMainnet = "7i86eQs3GSqHjN47WdWLTCGMW6gde1q96G2EVnUyK2st";
|
|
59
|
+
export declare const nullifiedStateTreeLookupTableMainnet = "H9QD4u1fG7KmkAzn2tDXhheushxFe1EcrjGGyEFXeMqT";
|
|
60
|
+
export declare const stateTreeLookupTableDevnet = "8n8rH2bFRVA6cSGNDpgqcKHCndbFCT1bXxAQG89ejVsh";
|
|
61
|
+
export declare const nullifiedStateTreeLookupTableDevnet = "5dhaJLBjnVBQFErr8oiCJmcVsx3Zj6xDekGB2zULPsnP";
|
|
27
62
|
export declare const nullifierQueuePubkey = "nfq1NvQDJ2GEgnS8zt9prAe8rjjpAW1zFkrvZoBR148";
|
|
63
|
+
export declare const cpiContextPubkey = "cpi1uHzrEhBG733DoEJNgHCyRS3XmmyVNZx5fonubE4";
|
|
28
64
|
export declare const merkletreePubkey = "smt1NamzXdq4AMqS2fS2F1i5KTYPZRhoHgWx38d8WsT";
|
|
29
65
|
export declare const addressTree = "amt1Ayt45jfbdw5YSo7iz6WZxUmnZsQTYXy82hVwyC2";
|
|
30
66
|
export declare const addressQueue = "aq1S9z4reTSQAdgWHGD2zDaS39sjGrAxbR31vxJ2F4F";
|
|
67
|
+
export declare const merkleTree2Pubkey = "smt2rJAFdyJJupwMKAqTNAJwvjhmiZ4JYGZmbVRw1Ho";
|
|
68
|
+
export declare const nullifierQueue2Pubkey = "nfq2hgS7NYemXsFaFUCe3EMXSDSfnZnAe27jC6aPP1X";
|
|
69
|
+
export declare const cpiContext2Pubkey = "cpi2cdhkH5roePvcudTgUL8ppEBfTay1desGh8G8QxK";
|
|
31
70
|
export declare const confirmConfig: ConfirmOptions;
|
|
32
71
|
export declare const DEFAULT_MERKLE_TREE_HEIGHT = 26;
|
|
33
72
|
export declare const DEFAULT_MERKLE_TREE_ROOTS = 2800;
|