@lightprotocol/compressed-token 0.1.0 → 0.1.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 +85 -63
- package/dist/cjs/browser/index.cjs +63 -8726
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/node/index.cjs +73 -5755
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/es/browser/index.js +3 -8666
- package/dist/es/browser/index.js.map +1 -1
- package/dist/es/node/index.js +10 -5692
- package/dist/es/node/index.js.map +1 -1
- package/package.json +91 -92
- package/LICENSE +0 -674
package/README.md
CHANGED
|
@@ -1,63 +1,85 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
1
|
+
# TS client for Interacting with the Compressed-Token Program
|
|
2
|
+
|
|
3
|
+
Use this to interact with the compressed-token program on Solana via the
|
|
4
|
+
Compression RPC API.
|
|
5
|
+
|
|
6
|
+
### Installation
|
|
7
|
+
|
|
8
|
+
**For use in Node.js or a web application**
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install --save \
|
|
12
|
+
@lightprotocol/compressed-token \
|
|
13
|
+
@lightprotocol/stateless.js \
|
|
14
|
+
@solana/web3.js \
|
|
15
|
+
@coral-xyz/anchor
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Documentation and examples
|
|
19
|
+
|
|
20
|
+
- [Latest Source code](https://github.com/lightprotocol/lightprotocol/tree/main/js/compressed-token)
|
|
21
|
+
- Documentation and examples will be linked here soon!
|
|
22
|
+
|
|
23
|
+
### Getting help
|
|
24
|
+
|
|
25
|
+
Have a question or a problem?
|
|
26
|
+
Check out the [Light](https://discord.gg/CYvjBgzRFP) and [Helius](https://discord.gg/Uzzf6a7zKr) Developer Discord servers!
|
|
27
|
+
|
|
28
|
+
When asking for help, please include:
|
|
29
|
+
|
|
30
|
+
- A detailed description of what you're trying to achieve
|
|
31
|
+
- Source code, if possible
|
|
32
|
+
- The text of any errors you encountered, with stacktraces if available
|
|
33
|
+
|
|
34
|
+
### Contributing
|
|
35
|
+
|
|
36
|
+
The ZK Compression system programs and clients are maintained by
|
|
37
|
+
[Light](https://github.com/lightprotocol) as a part of the Light Protocol.
|
|
38
|
+
|
|
39
|
+
The ZK Compression RPC API and its indexer implementation is maintained by
|
|
40
|
+
[Helius Labs](https://github.com/helius-labs).
|
|
41
|
+
|
|
42
|
+
Light and ZK Compression are open protocols and contributions are welcome. If
|
|
43
|
+
you have a contribution, please open a PR on the respective repository.
|
|
44
|
+
|
|
45
|
+
If you found a bug or would like to request a feature, please file an
|
|
46
|
+
[issue](https://github.com/lightprotocol/lightprotocol/issues/new).
|
|
47
|
+
|
|
48
|
+
If you found a security vulnerability, please follow the [security policy](https://github.com/Lightprotocol/light-protocol/blob/main/SECURITY.md).
|
|
49
|
+
|
|
50
|
+
### Disclaimer
|
|
51
|
+
|
|
52
|
+
All claims, content, designs, algorithms, estimates, roadmaps, specifications,
|
|
53
|
+
and performance measurements described in this project are done with Light
|
|
54
|
+
Protocol Labs' ("Labs") best efforts. It is up to the reader to check and
|
|
55
|
+
validate their accuracy and truthfulness. Furthermore nothing in this project
|
|
56
|
+
constitutes a solicitation for investment.
|
|
57
|
+
|
|
58
|
+
Any content produced by Labs or developer resources that Labs provides, are for
|
|
59
|
+
educational and inspiration purposes only. Labs does not encourage, induce or
|
|
60
|
+
sanction the deployment, integration or use of any such applications (including
|
|
61
|
+
the code comprising the Light blockchain protocol) in violation of applicable
|
|
62
|
+
laws or regulations and hereby prohibits any such deployment, integration or
|
|
63
|
+
use. This includes use of any such applications by the reader (a) in violation
|
|
64
|
+
of export control or sanctions laws of the United States or any other applicable
|
|
65
|
+
jurisdiction, (b) if the reader is located in or ordinarily resident in a
|
|
66
|
+
country or territory subject to comprehensive sanctions administered by the U.S.
|
|
67
|
+
Office of Foreign Assets Control (OFAC), or (c) if the reader is or is working
|
|
68
|
+
on behalf of a Specially Designated National (SDN) or a person subject to
|
|
69
|
+
similar blocking or denied party prohibitions.
|
|
70
|
+
|
|
71
|
+
The reader should be aware that U.S. export control and sanctions laws prohibit
|
|
72
|
+
U.S. persons (and other persons that are subject to such laws) from transacting
|
|
73
|
+
with persons in certain countries and territories or that are on the SDN list.
|
|
74
|
+
As a project based primarily on open-source software, it is possible that such
|
|
75
|
+
sanctioned persons may nevertheless bypass prohibitions, obtain the code
|
|
76
|
+
comprising the Light blockchain protocol (or other project code or applications)
|
|
77
|
+
and deploy, integrate, or otherwise use it. Accordingly, there is a risk to
|
|
78
|
+
individuals that other persons using the Light blockchain protocol may be
|
|
79
|
+
sanctioned persons and that transactions with such persons would be a violation
|
|
80
|
+
of U.S. export controls and sanctions law. This risk applies to individuals,
|
|
81
|
+
organizations, and other ecosystem participants that deploy, integrate, or use
|
|
82
|
+
the Light blockchain protocol code directly (e.g., as a node operator), and
|
|
83
|
+
individuals that transact on the Light blockchain protocol implementation
|
|
84
|
+
through clients, other kinds of nodes, third party interfaces, and/or wallet
|
|
85
|
+
software.
|