@lightprotocol/compressed-token 0.1.3 → 0.3.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/package.json CHANGED
@@ -1,93 +1,118 @@
1
1
  {
2
- "name": "@lightprotocol/compressed-token",
3
- "version": "0.1.3",
4
- "description": "JS client to interact with the compressed-token program",
5
- "sideEffects": false,
6
- "type": "module",
7
- "main": "dist/cjs/node/index.cjs",
8
- "module": "dist/es/node/index.js",
9
- "browser": {
10
- "./dist/cjs/node/index.cjs": "./dist/cjs/browser/index.cjs",
11
- "./dist/es/node/index.js": "./dist/es/browser/index.js"
12
- },
13
- "types": "dist/types/index.d.ts",
14
- "exports": {
15
- ".": {
16
- "import": "./dist/es/node/index.js",
17
- "require": "./dist/cjs/node/index.cjs",
18
- "browser": {
19
- "import": "./dist/es/browser/index.js",
20
- "require": "./dist/cjs/browser/index.cjs"
21
- },
22
- "types": "./dist/types/index.d.ts",
23
- "default": "./dist/cjs/node/index.cjs"
24
- }
25
- },
26
- "files": [
27
- "dist"
28
- ],
29
- "scripts": {
30
- "test": "pnpm test:e2e:all",
31
- "test-all": "vitest run",
32
- "test:unit:all": "EXCLUDE_E2E=true vitest run",
33
- "test-all:verbose": "vitest run --reporter=verbose",
34
- "test-validator": "./../../cli/test_bin/run test-validator",
35
- "test:e2e:create-mint": "pnpm test-validator && vitest run tests/e2e/create-mint.test.ts",
36
- "test:e2e:mint-to": "pnpm test-validator && vitest run tests/e2e/mint-to.test.ts --reporter=verbose",
37
- "test:e2e:transfer": "pnpm test-validator && vitest run tests/e2e/transfer.test.ts --reporter=verbose",
38
- "test:e2e:compress": "pnpm test-validator && vitest run tests/e2e/compress.test.ts --reporter=verbose",
39
- "test:e2e:decompress": "pnpm test-validator && vitest run tests/e2e/decompress.test.ts --reporter=verbose",
40
- "test:e2e:rpc-token-interop": "pnpm test-validator && vitest run tests/e2e/rpc-token-interop.test.ts --reporter=verbose",
41
- "test:e2e:all": "pnpm test-validator && vitest run tests/e2e/*.test.ts",
42
- "pull-idl": "../../scripts/push-compressed-token-idl.sh",
43
- "build": "rimraf dist && pnpm run pull-idl && pnpm build:bundle",
44
- "build:bundle": "rollup -c",
45
- "format": "prettier --write .",
46
- "lint": "eslint ."
47
- },
48
- "keywords": [
49
- "zk",
50
- "compression",
51
- "zk-compression",
52
- "stateless",
53
- "solana"
54
- ],
55
- "author": "",
56
- "license": "Apache-2.0",
57
- "dependencies": {
58
- "@coral-xyz/anchor": "^0.29.0",
59
- "@solana/web3.js": "^1.87.6",
60
- "@lightprotocol/stateless.js": "0.2.2",
61
- "@solana/spl-token": "^0.3.7",
62
- "buffer": "^6.0.3",
63
- "tweetnacl": "^1.0.3"
64
- },
65
- "devDependencies": {
66
- "@types/node": "^20.10.2",
67
- "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
68
- "@rollup/plugin-babel": "^6.0.4",
69
- "@rollup/plugin-commonjs": "^25.0.7",
70
- "@rollup/plugin-json": "^6.1.0",
71
- "@rollup/plugin-node-resolve": "^15.2.3",
72
- "@rollup/plugin-replace": "^5.0.5",
73
- "@rollup/plugin-terser": "^0.4.4",
74
- "@rollup/plugin-typescript": "^11.1.5",
75
- "@typescript-eslint/eslint-plugin": "^6.7.3",
76
- "eslint": "^8.50.0",
77
- "eslint-config-standard-with-typescript": "^39.1.0",
78
- "eslint-plugin-import": "^2.25.2",
79
- "eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
80
- "eslint-plugin-promise": "^6.0.0",
81
- "eslint-plugin-vitest": "^0.3.26",
82
- "prettier": "^3.0.3",
83
- "rimraf": "^5.0.5",
84
- "rollup": "^4.6.1",
85
- "rollup-plugin-copy": "^3.5.0",
86
- "rollup-plugin-dts": "^6.1.0",
87
- "rollup-plugin-polyfill-node": "^0.13.0",
88
- "ts-node": "^10.9.1",
89
- "tslib": "^2.6.2",
90
- "typescript": "5.3.2",
91
- "vitest": "^0.34.6"
2
+ "name": "@lightprotocol/compressed-token",
3
+ "version": "0.3.0",
4
+ "description": "JS client to interact with the compressed-token program",
5
+ "sideEffects": false,
6
+ "type": "module",
7
+ "main": "dist/cjs/node/index.cjs",
8
+ "module": "dist/es/node/index.js",
9
+ "browser": {
10
+ "./dist/cjs/node/index.cjs": "./dist/cjs/browser/index.cjs",
11
+ "./dist/es/node/index.js": "./dist/es/browser/index.js"
12
+ },
13
+ "types": "dist/types/index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/es/node/index.js",
17
+ "require": "./dist/cjs/node/index.cjs",
18
+ "browser": {
19
+ "import": "./dist/es/browser/index.js",
20
+ "require": "./dist/cjs/browser/index.cjs"
21
+ },
22
+ "types": "./dist/types/index.d.ts",
23
+ "default": "./dist/cjs/node/index.cjs"
92
24
  }
93
- }
25
+ },
26
+ "files": [
27
+ "dist"
28
+ ],
29
+ "keywords": [
30
+ "zk",
31
+ "compression",
32
+ "light",
33
+ "stateless",
34
+ "solana"
35
+ ],
36
+ "maintainers": [
37
+ {
38
+ "name": "Light Protocol Maintainers",
39
+ "email": "friends@lightprotocol.com"
40
+ }
41
+ ],
42
+ "license": "Apache-2.0",
43
+ "peerDependencies": {
44
+ "@solana/web3.js": "^1.91.8",
45
+ "@lightprotocol/stateless.js": "0.4.0"
46
+ },
47
+ "dependencies": {
48
+ "@coral-xyz/anchor": "0.29.0",
49
+ "@solana/spl-token": "^0.3.11",
50
+ "buffer": "^6.0.3",
51
+ "tweetnacl": "^1.0.3"
52
+ },
53
+ "devDependencies": {
54
+ "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
55
+ "@rollup/plugin-alias": "^5.1.0",
56
+ "@rollup/plugin-babel": "^6.0.4",
57
+ "@rollup/plugin-commonjs": "^25.0.7",
58
+ "@rollup/plugin-json": "^6.1.0",
59
+ "@rollup/plugin-node-resolve": "^15.2.3",
60
+ "@rollup/plugin-replace": "^5.0.5",
61
+ "@rollup/plugin-terser": "^0.4.4",
62
+ "@rollup/plugin-typescript": "^11.1.5",
63
+ "@types/node": "^20.12.8",
64
+ "@typescript-eslint/eslint-plugin": "^7.6.0",
65
+ "add": "^2.0.6",
66
+ "crypto-browserify": "^3.12.0",
67
+ "eslint": "8.57.0",
68
+ "eslint-plugin-import": "^2.25.2",
69
+ "eslint-plugin-n": "^15.0.0 || ^16.0.0",
70
+ "eslint-plugin-promise": "^6.0.0",
71
+ "eslint-plugin-vitest": "^0.5.4",
72
+ "prettier": "^3.3.2",
73
+ "rimraf": "^5.0.7",
74
+ "rollup": "^4.6.1",
75
+ "rollup-plugin-copy": "^3.5.0",
76
+ "rollup-plugin-dts": "^6.1.0",
77
+ "rollup-plugin-polyfill-node": "^0.13.0",
78
+ "rollup-plugin-visualizer": "^5.12.0",
79
+ "ts-node": "^10.9.2",
80
+ "tslib": "^2.6.2",
81
+ "typescript": "^5.4.5",
82
+ "vitest": "^1.6.0",
83
+ "@lightprotocol/hasher.rs": "0.2.0",
84
+ "@lightprotocol/programs": "0.3.0"
85
+ },
86
+ "nx": {
87
+ "targets": {
88
+ "build": {
89
+ "inputs": [
90
+ "{workspaceRoot}/cli",
91
+ "{workspaceRoot}/target/idl",
92
+ "{workspaceRoot}/target/types"
93
+ ]
94
+ }
95
+ }
96
+ },
97
+ "scripts": {
98
+ "test": "pnpm test:e2e:all",
99
+ "test-all": "vitest run",
100
+ "test:unit:all": "EXCLUDE_E2E=true vitest run",
101
+ "test-all:verbose": "vitest run --reporter=verbose",
102
+ "test-validator": "./../../cli/test_bin/run test-validator",
103
+ "test:e2e:create-mint": "pnpm test-validator && vitest run tests/e2e/create-mint.test.ts",
104
+ "test:e2e:register-mint": "pnpm test-validator && vitest run tests/e2e/register-mint.test.ts",
105
+ "test:e2e:mint-to": "pnpm test-validator && vitest run tests/e2e/mint-to.test.ts --reporter=verbose",
106
+ "test:e2e:approve-and-mint-to": "pnpm test-validator && vitest run tests/e2e/approve-and-mint-to.test.ts --reporter=verbose",
107
+ "test:e2e:transfer": "pnpm test-validator && vitest run tests/e2e/transfer.test.ts --reporter=verbose",
108
+ "test:e2e:compress": "pnpm test-validator && vitest run tests/e2e/compress.test.ts --reporter=verbose",
109
+ "test:e2e:decompress": "pnpm test-validator && vitest run tests/e2e/decompress.test.ts --reporter=verbose",
110
+ "test:e2e:rpc-token-interop": "pnpm test-validator && vitest run tests/e2e/rpc-token-interop.test.ts --reporter=verbose",
111
+ "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/decompress.test.ts && vitest run tests/e2e/register-mint.test.ts && vitest run tests/e2e/approve-and-mint-to.test.ts && vitest run tests/e2e/rpc-token-interop.test.ts",
112
+ "pull-idl": "../../scripts/push-compressed-token-idl.sh",
113
+ "build": "rimraf dist && pnpm pull-idl && pnpm build:bundle",
114
+ "build:bundle": "rollup -c",
115
+ "format": "prettier --write .",
116
+ "lint": "eslint ."
117
+ }
118
+ }