@lightprotocol/compressed-token 0.8.0 → 0.10.0

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.
@@ -1858,8 +1858,9 @@ type CompressParams = {
1858
1858
  source: PublicKey;
1859
1859
  /**
1860
1860
  * owner of the compressed token account.
1861
+ * To compress to a batch of recipients, pass an array of PublicKeys.
1861
1862
  */
1862
- toAddress: PublicKey;
1863
+ toAddress: PublicKey | PublicKey[];
1863
1864
  /**
1864
1865
  * Mint address of the token to compress.
1865
1866
  */
@@ -1867,7 +1868,7 @@ type CompressParams = {
1867
1868
  /**
1868
1869
  * amount of tokens to compress.
1869
1870
  */
1870
- amount: number | BN;
1871
+ amount: number | BN | number[] | BN[];
1871
1872
  /**
1872
1873
  * The state tree that the tx output should be inserted into. Defaults to a
1873
1874
  * public state tree if unspecified.
@@ -2166,7 +2167,7 @@ declare function approveAndMintTo(rpc: Rpc, payer: Signer, mint: PublicKey, dest
2166
2167
  *
2167
2168
  * @return Signature of the confirmed transaction
2168
2169
  */
2169
- declare function compress(rpc: Rpc, payer: Signer, mint: PublicKey, amount: number | BN, owner: Signer, sourceTokenAccount: PublicKey, toAddress: PublicKey, merkleTree?: PublicKey, confirmOptions?: ConfirmOptions): Promise<TransactionSignature>;
2170
+ declare function compress(rpc: Rpc, payer: Signer, mint: PublicKey, amount: number | BN | number[] | BN[], owner: Signer, sourceTokenAccount: PublicKey, toAddress: PublicKey | Array<PublicKey>, merkleTree?: PublicKey, confirmOptions?: ConfirmOptions): Promise<TransactionSignature>;
2170
2171
 
2171
2172
  /**
2172
2173
  * Decompress compressed tokens
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightprotocol/compressed-token",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "JS client to interact with the compressed-token program",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/node/index.cjs",
@@ -37,7 +37,7 @@
37
37
  "license": "Apache-2.0",
38
38
  "peerDependencies": {
39
39
  "@solana/web3.js": "^1.95.0",
40
- "@lightprotocol/stateless.js": "0.9.0"
40
+ "@lightprotocol/stateless.js": "0.10.0"
41
41
  },
42
42
  "dependencies": {
43
43
  "@coral-xyz/anchor": "0.29.0",