@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.
Files changed (33) hide show
  1. package/README.md +4 -1
  2. package/dist/cjs/browser/constants.d.ts +22 -3
  3. package/dist/cjs/browser/index.cjs +1 -1
  4. package/dist/cjs/browser/index.cjs.map +1 -1
  5. package/dist/cjs/browser/rpc-interface.d.ts +96 -2
  6. package/dist/cjs/browser/rpc.d.ts +80 -3
  7. package/dist/cjs/browser/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +0 -2
  8. package/dist/cjs/browser/test-helpers/test-rpc/test-rpc.d.ts +6 -0
  9. package/dist/cjs/browser/utils/get-state-tree-infos.d.ts +15 -0
  10. package/dist/cjs/browser/utils/index.d.ts +1 -0
  11. package/dist/cjs/browser/utils/pack-decompress.d.ts +31 -0
  12. package/dist/cjs/node/constants.d.ts +22 -3
  13. package/dist/cjs/node/index.cjs +1 -1
  14. package/dist/cjs/node/index.cjs.map +1 -1
  15. package/dist/cjs/node/rpc-interface.d.ts +96 -2
  16. package/dist/cjs/node/rpc.d.ts +80 -3
  17. package/dist/cjs/node/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +0 -2
  18. package/dist/cjs/node/test-helpers/test-rpc/test-rpc.d.ts +6 -0
  19. package/dist/cjs/node/utils/get-state-tree-infos.d.ts +15 -0
  20. package/dist/cjs/node/utils/index.d.ts +1 -0
  21. package/dist/cjs/node/utils/pack-decompress.d.ts +31 -0
  22. package/dist/es/browser/constants.d.ts +22 -3
  23. package/dist/es/browser/index.js +1 -1
  24. package/dist/es/browser/index.js.map +1 -1
  25. package/dist/es/browser/rpc-interface.d.ts +96 -2
  26. package/dist/es/browser/rpc.d.ts +80 -3
  27. package/dist/es/browser/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +0 -2
  28. package/dist/es/browser/test-helpers/test-rpc/test-rpc.d.ts +6 -0
  29. package/dist/es/browser/utils/get-state-tree-infos.d.ts +15 -0
  30. package/dist/es/browser/utils/index.d.ts +1 -0
  31. package/dist/es/browser/utils/pack-decompress.d.ts +31 -0
  32. package/dist/types/index.d.ts +243 -6
  33. 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: null;
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 if the transaction creates at least one address.
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 ADDRESS_TREE_NETWORK_FEE: BN;
176
+ export declare const ADDRESS_TREE_NETWORK_FEE_V2: BN;