-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: bump to 0.50.0, add getCompressedTokenBalancesByOwnerV2 (#1353)
* bump to 0.50.0, add getCompressedTokenBalancesByOwnerV2, extend rem. endpoints with opt. cursors * upd name paginatedoptions * released js * add --no-reset flag to install.sh * clean readme * upd readme * upd readme for ctoken * capitalization * bump js release, readme updates --------- Co-authored-by: Swenschaeferjohann <[email protected]>
- Loading branch information
1 parent
bb82a7e
commit 80fb05c
Showing
12 changed files
with
227 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,36 @@ | ||
# TS client for Interacting with the Compressed-Token Program | ||
<p align="center"> | ||
<img src="https://github.com/ldiego08/light-protocol/raw/main/assets/logo.svg" width="90" /> | ||
</p> | ||
|
||
<h1 align="center">@lightprotocol/compressed-token</h1> | ||
|
||
<p align="center"> | ||
<b>This is the JavaScript SDK for interacting with the Compressed Token program on Solana.</b> | ||
</p> | ||
|
||
<p align="center"> | ||
<a href="https://badge.fury.io/js/@lightprotocol%2Fcompressed-token"> | ||
<img src="https://badge.fury.io/js/@lightprotocol%2Fcompressed-token.svg" alt="package npm version" height="18" /> | ||
</a> | ||
<img src="https://img.shields.io/npm/l/%40lightprotocol%2Fcompressed-token" alt="package license" height="18"> | ||
<img src="https://img.shields.io/npm/dw/%40lightprotocol%2Fcompressed-token" alt="package weekly downloads" height="18" /> | ||
</p> | ||
|
||
Use this to interact with the compressed-token program on Solana via the | ||
Compression RPC API. | ||
|
||
### Installation | ||
|
||
**For use in Node.js or a web application** | ||
**For use in Node.js or web** | ||
|
||
```bash | ||
npm install --save \ | ||
@lightprotocol/compressed-token \ | ||
@lightprotocol/stateless.js \ | ||
@solana/web3.js \ | ||
@coral-xyz/[email protected] | ||
``` | ||
|
||
### Documentation and examples | ||
|
||
- [Latest Source code](https://github.com/lightprotocol/lightprotocol/tree/main/js/compressed-token) | ||
- Documentation and examples will be linked here soon! | ||
- [Creating and sending compressed tokens](https://www.zkcompression.com/developers/typescript-client#creating-minting-and-transferring-a-compressed-token) | ||
|
||
### Getting help | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
<img src="https://github.com/ldiego08/light-protocol/raw/main/assets/logo.svg" width="90" /> | ||
</p> | ||
|
||
<h1 align="center">Stateless.js</h1> | ||
<h1 align="center">@lightprotocol/stateless.js</h1> | ||
|
||
<p align="center"> | ||
<b>Integrate server and web applications with ZK Compression on Solana.</b> | ||
<b>This is the JavaScript SDK for building Solana applications with ZK Compression for Node and web.</b> | ||
</p> | ||
|
||
<p align="center"> | ||
|
@@ -16,37 +16,21 @@ | |
<img src="https://img.shields.io/npm/dw/%40lightprotocol%2Fstateless.js" alt="package weekly downloads" height="18" /> | ||
</p> | ||
|
||
## Overview | ||
|
||
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. | ||
|
||
> The core ZK Compression Solana programs and clients are maintained by | ||
> [Light](https://github.com/lightprotocol) as a part of the Light Protocol. The RPC API and indexer are maintained by | ||
> [Helius Labs](https://github.com/helius-labs). | ||
## Usage | ||
|
||
### Installation | ||
|
||
Install this package in your project by running the following terminal command: | ||
|
||
```bin | ||
npm install --save \ | ||
@lightprotocol/stateless.js \ | ||
@solana/web3.js \ | ||
@coral-xyz/[email protected] | ||
npm install --save @lightprotocol/stateless.js | ||
``` | ||
|
||
### Dependencies | ||
|
||
- [`@solana/web3.js`](https://www.npmjs.com/package/@solana/web3.js) — provides access to the Solana network via RPC. | ||
- [`@coral-xyz/anchor`](https://www.npmjs.com/package/@coral-xyz/anchor) — a client for [Anchor](https://www.anchor-lang.com/) Solana programs. | ||
|
||
## Documentation and Examples | ||
|
||
For a more detailed documentation on usage, please check [the respective section at the ZK Compression documentation.](https://www.zkcompression.com/developers/typescript-client) | ||
|
||
For example implementations, including web and server, refer to the respective repositories: | ||
For example implementations, including web and Node, refer to the respective repositories: | ||
|
||
- [Web application example implementation](https://github.com/Lightprotocol/example-web-client) | ||
|
||
|
@@ -55,7 +39,7 @@ For example implementations, including web and server, refer to the respective r | |
## Troubleshooting | ||
|
||
Have a question or a problem? | ||
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: | ||
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: | ||
|
||
- A detailed description or context of the issue or what you are trying to achieve. | ||
- 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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.