@lightprotocol/stateless.js 0.15.0 → 0.15.1

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 CHANGED
@@ -2,10 +2,10 @@
2
2
  <img src="https://github.com/ldiego08/light-protocol/raw/main/assets/logo.svg" width="90" />
3
3
  </p>
4
4
 
5
- <h1 align="center">Stateless.js</h1>
5
+ <h1 align="center">@lightprotocol/stateless.js</h1>
6
6
 
7
7
  <p align="center">
8
- <b>Integrate server and web applications with ZK Compression on Solana.</b>
8
+ <b>This is the JavaScript SDK for building Solana applications with ZK Compression for Node and web.</b>
9
9
  </p>
10
10
 
11
11
  <p align="center">
@@ -16,14 +16,6 @@
16
16
  <img src="https://img.shields.io/npm/dw/%40lightprotocol%2Fstateless.js" alt="package weekly downloads" height="18" />
17
17
  </p>
18
18
 
19
- ## Overview
20
-
21
- This package provides server and web applications with clients, utilities, and types to leverage the power of [ZK Compression](https://www.zkcompression.com/) on Solana via the Compression RPC API.
22
-
23
- > The core ZK Compression Solana programs and clients are maintained by
24
- > [Light](https://github.com/lightprotocol) as a part of the Light Protocol. The RPC API and indexer are maintained by
25
- > [Helius Labs](https://github.com/helius-labs).
26
-
27
19
  ## Usage
28
20
 
29
21
  ### Installation
@@ -31,22 +23,14 @@ This package provides server and web applications with clients, utilities, and t
31
23
  Install this package in your project by running the following terminal command:
32
24
 
33
25
  ```bin
34
- npm install --save \
35
- @lightprotocol/stateless.js \
36
- @solana/web3.js \
37
- @coral-xyz/anchor@0.29
26
+ npm install --save @lightprotocol/stateless.js
38
27
  ```
39
28
 
40
- ### Dependencies
41
-
42
- - [`@solana/web3.js`](https://www.npmjs.com/package/@solana/web3.js) — provides access to the Solana network via RPC.
43
- - [`@coral-xyz/anchor`](https://www.npmjs.com/package/@coral-xyz/anchor) — a client for [Anchor](https://www.anchor-lang.com/) Solana programs.
44
-
45
29
  ## Documentation and Examples
46
30
 
47
31
  For a more detailed documentation on usage, please check [the respective section at the ZK Compression documentation.](https://www.zkcompression.com/developers/typescript-client)
48
32
 
49
- For example implementations, including web and server, refer to the respective repositories:
33
+ For example implementations, including web and Node, refer to the respective repositories:
50
34
 
51
35
  - [Web application example implementation](https://github.com/Lightprotocol/example-web-client)
52
36
 
@@ -55,7 +39,7 @@ For example implementations, including web and server, refer to the respective r
55
39
  ## Troubleshooting
56
40
 
57
41
  Have a question or a problem?
58
- Feel free to ask in the [Light](https://discord.gg/CYvjBgzRFP) and [Helius](https://discord.gg/Uzzf6a7zKr) developer Discord servers. Please, include the following information to better be able to respond:
42
+ Feel free to ask in the [Light](https://discord.gg/CYvjBgzRFP) and [Helius](https://discord.gg/Uzzf6a7zKr) developer Discord servers. Please, include the following information:
59
43
 
60
44
  - A detailed description or context of the issue or what you are trying to achieve.
61
45
  - A code example that we can use to test and debug (if possible). Use [CodeSandbox](https://codesandbox.io/p/sandbox/vanilla-ts) or any other live environment provider.
@@ -13224,6 +13224,9 @@ class Rpc extends web3_js.Connection {
13224
13224
  }
13225
13225
  return res.result;
13226
13226
  }
13227
+ /**
13228
+ * Fetch all the compressed token holders for a given mint. Paginated.
13229
+ */
13227
13230
  async getCompressedMintTokenHolders(mint, options) {
13228
13231
  var _a;
13229
13232
  const unsafeRes = await rpcRequest(this.compressionApiEndpoint, 'getCompressedMintTokenHolders', {