@lightprotocol/compressed-token 0.20.9 → 0.22.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/cjs/browser/index.cjs +1 -1
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/node/index.cjs +1 -1
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/types/index.d.ts +1411 -846
- package/package.json +23 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/compressed-token",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.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.22.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@coral-xyz/borsh": "^0.29.0",
|
|
@@ -96,27 +96,40 @@
|
|
|
96
96
|
},
|
|
97
97
|
"scripts": {
|
|
98
98
|
"test": "pnpm test:e2e:all",
|
|
99
|
+
"test:v1": "LIGHT_PROTOCOL_VERSION=V1 pnpm test",
|
|
100
|
+
"test:v2": "LIGHT_PROTOCOL_VERSION=V2 pnpm test",
|
|
99
101
|
"test-all": "vitest run",
|
|
100
102
|
"test:unit:all": "EXCLUDE_E2E=true vitest run",
|
|
103
|
+
"test:unit:all:v1": "LIGHT_PROTOCOL_VERSION=V1 vitest run tests/unit --reporter=verbose",
|
|
104
|
+
"test:unit:all:v2": "LIGHT_PROTOCOL_VERSION=V2 vitest run tests/unit --reporter=verbose",
|
|
101
105
|
"test-all:verbose": "vitest run --reporter=verbose",
|
|
102
|
-
"test-validator": "./../../cli/test_bin/run test-validator
|
|
106
|
+
"test-validator": "./../../cli/test_bin/run test-validator",
|
|
107
|
+
"test-validator-skip-prover": "./../../cli/test_bin/run test-validator --skip-prover",
|
|
103
108
|
"test:e2e:create-mint": "pnpm test-validator && NODE_OPTIONS='--trace-deprecation' vitest run tests/e2e/create-mint.test.ts --reporter=verbose",
|
|
104
|
-
"test:e2e:layout": "vitest run tests/e2e/layout.test.ts --reporter=verbose",
|
|
109
|
+
"test:e2e:layout": "vitest run tests/e2e/layout.test.ts --reporter=verbose --bail=1",
|
|
105
110
|
"test:e2e:select-accounts": "vitest run tests/e2e/select-accounts.test.ts --reporter=verbose",
|
|
106
111
|
"test:e2e:create-token-pool": "pnpm test-validator && vitest run tests/e2e/create-token-pool.test.ts",
|
|
107
|
-
"test:e2e:mint-to": "pnpm test-validator && vitest run tests/e2e/mint-to.test.ts --reporter=verbose",
|
|
108
|
-
"test:e2e:approve-and-mint-to": "pnpm test-validator && vitest run tests/e2e/approve-and-mint-to.test.ts --reporter=verbose",
|
|
112
|
+
"test:e2e:mint-to": "pnpm test-validator && vitest run tests/e2e/mint-to.test.ts --reporter=verbose --bail=1",
|
|
113
|
+
"test:e2e:approve-and-mint-to": "pnpm test-validator && vitest run tests/e2e/approve-and-mint-to.test.ts --reporter=verbose --bail=1",
|
|
109
114
|
"test:e2e:merge-token-accounts": "pnpm test-validator && vitest run tests/e2e/merge-token-accounts.test.ts --reporter=verbose",
|
|
110
|
-
"test:e2e:transfer": "pnpm test-validator && vitest run tests/e2e/transfer.test.ts --reporter=verbose",
|
|
115
|
+
"test:e2e:transfer": "pnpm test-validator && vitest run tests/e2e/transfer.test.ts --reporter=verbose --bail=1",
|
|
116
|
+
"test:e2e:delegate": "pnpm test-validator && vitest run tests/e2e/delegate.test.ts --reporter=verbose --bail=1",
|
|
117
|
+
"test:e2e:transfer-delegated": "pnpm test-validator && vitest run tests/e2e/transfer-delegated.test.ts --reporter=verbose --bail=1",
|
|
111
118
|
"test:e2e:compress": "pnpm test-validator && vitest run tests/e2e/compress.test.ts --reporter=verbose",
|
|
112
119
|
"test:e2e:compress-spl-token-account": "pnpm test-validator && vitest run tests/e2e/compress-spl-token-account.test.ts --reporter=verbose",
|
|
113
120
|
"test:e2e:decompress": "pnpm test-validator && vitest run tests/e2e/decompress.test.ts --reporter=verbose",
|
|
121
|
+
"test:e2e:decompress-delegated": "pnpm test-validator && vitest run tests/e2e/decompress-delegated.test.ts --reporter=verbose",
|
|
114
122
|
"test:e2e:rpc-token-interop": "pnpm test-validator && vitest run tests/e2e/rpc-token-interop.test.ts --reporter=verbose",
|
|
115
123
|
"test:e2e:rpc-multi-trees": "pnpm test-validator && vitest run tests/e2e/rpc-multi-trees.test.ts --reporter=verbose",
|
|
116
|
-
"test:e2e:
|
|
124
|
+
"test:e2e:multi-pool": "pnpm test-validator && vitest run tests/e2e/multi-pool.test.ts --reporter=verbose",
|
|
125
|
+
"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/delegate.test.ts && vitest run tests/e2e/transfer-delegated.test.ts && vitest run tests/e2e/multi-pool.test.ts && vitest run tests/e2e/decompress-delegated.test.ts && pnpm test-validator-skip-prover && 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 && vitest run tests/e2e/select-accounts.test.ts",
|
|
117
126
|
"pull-idl": "../../scripts/push-compressed-token-idl.sh",
|
|
118
|
-
"build": "
|
|
119
|
-
"build:bundle": "rollup -c",
|
|
127
|
+
"build": "if [ \"$LIGHT_PROTOCOL_VERSION\" = \"V2\" ]; then LIGHT_PROTOCOL_VERSION=V2 pnpm build:bundle; else LIGHT_PROTOCOL_VERSION=V1 pnpm build:bundle; fi",
|
|
128
|
+
"build:bundle": "rimraf dist && rollup -c",
|
|
129
|
+
"build:v1": "LIGHT_PROTOCOL_VERSION=V1 pnpm build:stateless:v1 && LIGHT_PROTOCOL_VERSION=V1 pnpm build:bundle",
|
|
130
|
+
"build:v2": "LIGHT_PROTOCOL_VERSION=V2 pnpm build:stateless:v2 && LIGHT_PROTOCOL_VERSION=V2 pnpm build:bundle",
|
|
131
|
+
"build:stateless:v1": "cd ../stateless.js && pnpm build:v1",
|
|
132
|
+
"build:stateless:v2": "cd ../stateless.js && pnpm build:v2",
|
|
120
133
|
"format": "prettier --write .",
|
|
121
134
|
"lint": "eslint ."
|
|
122
135
|
}
|