@lightprotocol/stateless.js 0.22.1-alpha.1 → 0.22.1-alpha.2
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/README.md +4 -1
- package/dist/cjs/browser/constants.d.ts +22 -3
- 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 +96 -2
- package/dist/cjs/browser/rpc.d.ts +80 -3
- package/dist/cjs/browser/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +0 -2
- package/dist/cjs/browser/test-helpers/test-rpc/test-rpc.d.ts +6 -0
- package/dist/cjs/browser/utils/get-state-tree-infos.d.ts +15 -0
- package/dist/cjs/browser/utils/index.d.ts +1 -0
- package/dist/cjs/browser/utils/pack-decompress.d.ts +31 -0
- package/dist/cjs/node/constants.d.ts +22 -3
- 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 +96 -2
- package/dist/cjs/node/rpc.d.ts +80 -3
- package/dist/cjs/node/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +0 -2
- package/dist/cjs/node/test-helpers/test-rpc/test-rpc.d.ts +6 -0
- package/dist/cjs/node/utils/get-state-tree-infos.d.ts +15 -0
- package/dist/cjs/node/utils/index.d.ts +1 -0
- package/dist/cjs/node/utils/pack-decompress.d.ts +31 -0
- package/dist/es/browser/constants.d.ts +22 -3
- package/dist/es/browser/index.js +1 -1
- package/dist/es/browser/index.js.map +1 -1
- package/dist/es/browser/rpc-interface.d.ts +96 -2
- package/dist/es/browser/rpc.d.ts +80 -3
- package/dist/es/browser/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +0 -2
- package/dist/es/browser/test-helpers/test-rpc/test-rpc.d.ts +6 -0
- package/dist/es/browser/utils/get-state-tree-infos.d.ts +15 -0
- package/dist/es/browser/utils/index.d.ts +1 -0
- package/dist/es/browser/utils/pack-decompress.d.ts +31 -0
- package/dist/types/index.d.ts +243 -6
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
</a>
|
|
15
15
|
<img src="https://img.shields.io/npm/l/%40lightprotocol%2Fstateless.js" alt="package license" height="18">
|
|
16
16
|
<img src="https://img.shields.io/npm/dw/%40lightprotocol%2Fstateless.js" alt="package weekly downloads" height="18" />
|
|
17
|
+
<a href="https://deepwiki.com/Lightprotocol/light-protocol/3.1-javascripttypescript-sdks">
|
|
18
|
+
<img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki" height="18" />
|
|
19
|
+
</a>
|
|
17
20
|
</p>
|
|
18
21
|
|
|
19
22
|
## Usage
|
|
@@ -33,8 +36,8 @@ For a more detailed documentation on usage, please check [the respective section
|
|
|
33
36
|
For example implementations, including web and Node, refer to the respective repositories:
|
|
34
37
|
|
|
35
38
|
- [Web application example implementation](https://github.com/Lightprotocol/example-web-client)
|
|
36
|
-
|
|
37
39
|
- [Node server example implementation](https://github.com/Lightprotocol/example-nodejs-client)
|
|
40
|
+
- [Other Libraries](https://lightprotocol.github.io/light-protocol/)
|
|
38
41
|
|
|
39
42
|
## Troubleshooting
|
|
40
43
|
|
|
@@ -61,10 +61,24 @@ export declare const isLocalTest: (url: string) => boolean;
|
|
|
61
61
|
* @internal
|
|
62
62
|
*/
|
|
63
63
|
export declare const localTestActiveStateTreeInfos: () => TreeInfo[];
|
|
64
|
+
export declare const getDefaultAddressSpace: () => {
|
|
65
|
+
tree: PublicKey;
|
|
66
|
+
queue: PublicKey;
|
|
67
|
+
cpiContext: undefined;
|
|
68
|
+
treeType: TreeType;
|
|
69
|
+
nextTreeInfo: null;
|
|
70
|
+
};
|
|
64
71
|
export declare const getDefaultAddressTreeInfo: () => {
|
|
65
72
|
tree: PublicKey;
|
|
66
73
|
queue: PublicKey;
|
|
67
|
-
cpiContext:
|
|
74
|
+
cpiContext: undefined;
|
|
75
|
+
treeType: TreeType;
|
|
76
|
+
nextTreeInfo: null;
|
|
77
|
+
};
|
|
78
|
+
export declare const getBatchAddressTreeInfo: () => {
|
|
79
|
+
tree: PublicKey;
|
|
80
|
+
queue: PublicKey;
|
|
81
|
+
cpiContext: undefined;
|
|
68
82
|
treeType: TreeType;
|
|
69
83
|
nextTreeInfo: null;
|
|
70
84
|
};
|
|
@@ -89,6 +103,7 @@ export declare const defaultTestStateTreeAccounts2: () => {
|
|
|
89
103
|
merkleTree2: PublicKey;
|
|
90
104
|
};
|
|
91
105
|
export declare const COMPRESSED_TOKEN_PROGRAM_ID: PublicKey;
|
|
106
|
+
export declare const CTOKEN_PROGRAM_ID: PublicKey;
|
|
92
107
|
export declare const stateTreeLookupTableMainnet = "7i86eQs3GSqHjN47WdWLTCGMW6gde1q96G2EVnUyK2st";
|
|
93
108
|
export declare const nullifiedStateTreeLookupTableMainnet = "H9QD4u1fG7KmkAzn2tDXhheushxFe1EcrjGGyEFXeMqT";
|
|
94
109
|
export declare const stateTreeLookupTableDevnet = "Dk9mNkbiZXJZ4By8DfSP6HEE4ojZzRvucwpawLeuwq8q";
|
|
@@ -152,6 +167,10 @@ export declare const ADDRESS_QUEUE_ROLLOVER_FEE: BN;
|
|
|
152
167
|
*/
|
|
153
168
|
export declare const STATE_MERKLE_TREE_NETWORK_FEE: BN;
|
|
154
169
|
/**
|
|
155
|
-
* Is charged
|
|
170
|
+
* Is charged per address the transaction creates.
|
|
171
|
+
*/
|
|
172
|
+
export declare const ADDRESS_TREE_NETWORK_FEE_V1: BN;
|
|
173
|
+
/**
|
|
174
|
+
* Is charged per address the transaction creates.
|
|
156
175
|
*/
|
|
157
|
-
export declare const
|
|
176
|
+
export declare const ADDRESS_TREE_NETWORK_FEE_V2: BN;
|