@lightprotocol/compressed-token 0.18.0 → 0.20.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.
package/dist/types/index.d.ts
CHANGED
|
@@ -598,7 +598,7 @@ declare class CompressedTokenProgram {
|
|
|
598
598
|
* @param authority Minting authority
|
|
599
599
|
* @param amount Amount to mint
|
|
600
600
|
* @param merkleTree State tree account that the compressed tokens should be
|
|
601
|
-
* part of. Defaults to
|
|
601
|
+
* part of. Defaults to random public state tree account.
|
|
602
602
|
* @param confirmOptions Options for confirming the transaction
|
|
603
603
|
*
|
|
604
604
|
* @return Signature of the confirmed transaction
|
|
@@ -654,11 +654,15 @@ declare function decompress(rpc: Rpc, payer: Signer, mint: PublicKey, amount: nu
|
|
|
654
654
|
* @param decimals Location of the decimal place
|
|
655
655
|
* @param keypair Optional keypair, defaulting to a new random one
|
|
656
656
|
* @param confirmOptions Options for confirming the transaction
|
|
657
|
-
* @param
|
|
657
|
+
* @param tokenProgramId Program ID for the token. Defaults to
|
|
658
|
+
* TOKEN_PROGRAM_ID. You can pass in a boolean to
|
|
659
|
+
* automatically resolve to TOKEN_2022_PROGRAM_ID if
|
|
660
|
+
* true, or TOKEN_PROGRAM_ID if false.
|
|
661
|
+
* @param freezeAuthority Account that will control freeze and thaw. Defaults to null.
|
|
658
662
|
*
|
|
659
663
|
* @return Address of the new mint and the transaction signature
|
|
660
664
|
*/
|
|
661
|
-
declare function createMint(rpc: Rpc, payer: Signer, mintAuthority: PublicKey, decimals: number, keypair?: Keypair, confirmOptions?: ConfirmOptions,
|
|
665
|
+
declare function createMint(rpc: Rpc, payer: Signer, mintAuthority: PublicKey, decimals: number, keypair?: Keypair, confirmOptions?: ConfirmOptions, tokenProgramId?: PublicKey | boolean, freezeAuthority?: PublicKey): Promise<{
|
|
662
666
|
mint: PublicKey;
|
|
663
667
|
transactionSignature: TransactionSignature;
|
|
664
668
|
}>;
|
|
@@ -921,7 +925,7 @@ type LightCompressedToken = {
|
|
|
921
925
|
];
|
|
922
926
|
args: [
|
|
923
927
|
{
|
|
924
|
-
name: '
|
|
928
|
+
name: 'tokenPoolIndex';
|
|
925
929
|
type: 'u8';
|
|
926
930
|
}
|
|
927
931
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/compressed-token",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@solana/spl-token": ">=0.3.9",
|
|
33
33
|
"@solana/web3.js": ">=1.73.5",
|
|
34
|
-
"@lightprotocol/stateless.js": "0.
|
|
34
|
+
"@lightprotocol/stateless.js": "0.20.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@coral-xyz/borsh": "^0.29.0",
|
|
@@ -111,7 +111,8 @@
|
|
|
111
111
|
"test:e2e:compress-spl-token-account": "pnpm test-validator && vitest run tests/e2e/compress-spl-token-account.test.ts --reporter=verbose",
|
|
112
112
|
"test:e2e:decompress": "pnpm test-validator && vitest run tests/e2e/decompress.test.ts --reporter=verbose",
|
|
113
113
|
"test:e2e:rpc-token-interop": "pnpm test-validator && vitest run tests/e2e/rpc-token-interop.test.ts --reporter=verbose",
|
|
114
|
-
"test:e2e:
|
|
114
|
+
"test:e2e:rpc-multi-trees": "pnpm test-validator && vitest run tests/e2e/rpc-multi-trees.test.ts --reporter=verbose",
|
|
115
|
+
"test:e2e:all": "pnpm test-validator && vitest run tests/e2e/create-mint.test.ts && vitest run tests/e2e/mint-to.test.ts && vitest run tests/e2e/transfer.test.ts && vitest run tests/e2e/compress.test.ts && vitest run tests/e2e/compress-spl-token-account.test.ts && vitest run tests/e2e/decompress.test.ts && vitest run tests/e2e/create-token-pool.test.ts && vitest run tests/e2e/approve-and-mint-to.test.ts && vitest run tests/e2e/rpc-token-interop.test.ts && vitest run tests/e2e/rpc-multi-trees.test.ts && vitest run tests/e2e/layout.test.ts",
|
|
115
116
|
"pull-idl": "../../scripts/push-compressed-token-idl.sh",
|
|
116
117
|
"build": "rimraf dist && pnpm build:bundle",
|
|
117
118
|
"build:bundle": "rollup -c",
|