@lightprotocol/zk-compression-cli 0.20.4 → 0.21.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.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -98,23 +98,15 @@
98
98
  "index.js"
99
99
  ]
100
100
  },
101
- "compress-spl": {
101
+ "compress-sol": {
102
102
  "aliases": [],
103
103
  "args": {},
104
104
  "examples": [
105
- "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
105
+ "$ light compress-sol --to PublicKey --amount 10"
106
106
  ],
107
107
  "flags": {
108
- "mint": {
109
- "description": "Specify the mint address.",
110
- "name": "mint",
111
- "required": true,
112
- "hasDynamicHelp": false,
113
- "multiple": false,
114
- "type": "option"
115
- },
116
108
  "to": {
117
- "description": "Specify the recipient address (owner of destination compressed token account).",
109
+ "description": "Specify the recipient address.",
118
110
  "name": "to",
119
111
  "required": true,
120
112
  "hasDynamicHelp": false,
@@ -122,7 +114,7 @@
122
114
  "type": "option"
123
115
  },
124
116
  "amount": {
125
- "description": "Amount to compress, in tokens.",
117
+ "description": "Amount to compress, in lamports.",
126
118
  "name": "amount",
127
119
  "required": true,
128
120
  "hasDynamicHelp": false,
@@ -132,30 +124,38 @@
132
124
  },
133
125
  "hasDynamicHelp": false,
134
126
  "hiddenAliases": [],
135
- "id": "compress-spl",
127
+ "id": "compress-sol",
136
128
  "pluginAlias": "@lightprotocol/zk-compression-cli",
137
129
  "pluginName": "@lightprotocol/zk-compression-cli",
138
130
  "pluginType": "core",
139
131
  "strict": true,
140
- "summary": "Compress SPL tokens.",
132
+ "summary": "Compress SOL.",
141
133
  "enableJsonFlag": false,
142
134
  "isESM": false,
143
135
  "relativePath": [
144
136
  "dist",
145
137
  "commands",
146
- "compress-spl",
138
+ "compress-sol",
147
139
  "index.js"
148
140
  ]
149
141
  },
150
- "compress-sol": {
142
+ "compress-spl": {
151
143
  "aliases": [],
152
144
  "args": {},
153
145
  "examples": [
154
- "$ light compress-sol --to PublicKey --amount 10"
146
+ "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
155
147
  ],
156
148
  "flags": {
149
+ "mint": {
150
+ "description": "Specify the mint address.",
151
+ "name": "mint",
152
+ "required": true,
153
+ "hasDynamicHelp": false,
154
+ "multiple": false,
155
+ "type": "option"
156
+ },
157
157
  "to": {
158
- "description": "Specify the recipient address.",
158
+ "description": "Specify the recipient address (owner of destination compressed token account).",
159
159
  "name": "to",
160
160
  "required": true,
161
161
  "hasDynamicHelp": false,
@@ -163,7 +163,7 @@
163
163
  "type": "option"
164
164
  },
165
165
  "amount": {
166
- "description": "Amount to compress, in lamports.",
166
+ "description": "Amount to compress, in tokens.",
167
167
  "name": "amount",
168
168
  "required": true,
169
169
  "hasDynamicHelp": false,
@@ -173,18 +173,18 @@
173
173
  },
174
174
  "hasDynamicHelp": false,
175
175
  "hiddenAliases": [],
176
- "id": "compress-sol",
176
+ "id": "compress-spl",
177
177
  "pluginAlias": "@lightprotocol/zk-compression-cli",
178
178
  "pluginName": "@lightprotocol/zk-compression-cli",
179
179
  "pluginType": "core",
180
180
  "strict": true,
181
- "summary": "Compress SOL.",
181
+ "summary": "Compress SPL tokens.",
182
182
  "enableJsonFlag": false,
183
183
  "isESM": false,
184
184
  "relativePath": [
185
185
  "dist",
186
186
  "commands",
187
- "compress-sol",
187
+ "compress-spl",
188
188
  "index.js"
189
189
  ]
190
190
  },
@@ -873,5 +873,5 @@
873
873
  ]
874
874
  }
875
875
  },
876
- "version": "0.20.4"
876
+ "version": "0.21.0"
877
877
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightprotocol/zk-compression-cli",
3
- "version": "0.20.4",
3
+ "version": "0.21.0",
4
4
  "description": "ZK Compression: Secure Scaling on Solana",
5
5
  "maintainers": [
6
6
  {
@@ -41,7 +41,7 @@
41
41
  "@oclif/plugin-not-found": "^3.1.2",
42
42
  "@oclif/plugin-plugins": "^5.0.7",
43
43
  "@solana-developers/helpers": "^1.5.1",
44
- "@solana/web3.js": "^1.95.3",
44
+ "@solana/web3.js": "1.95.3",
45
45
  "axios": "^1.6.8",
46
46
  "case-anything": "^2.1.13",
47
47
  "cli-progress": "^3.12.0",
@@ -55,9 +55,9 @@
55
55
  "tweetnacl": "^1.0.3",
56
56
  "wait-on": "^7.2.0",
57
57
  "which": "^4.0.0",
58
- "@lightprotocol/compressed-token": "0.15.4",
58
+ "@lightprotocol/compressed-token": "0.16.0",
59
59
  "@lightprotocol/hasher.rs": "0.2.0",
60
- "@lightprotocol/stateless.js": "0.15.4"
60
+ "@lightprotocol/stateless.js": "0.16.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@oclif/test": "2.3.9",
@@ -69,10 +69,10 @@
69
69
  "@types/node": "^20.12.8",
70
70
  "@types/tar": "^6.1.12",
71
71
  "@types/which": "^3.0.3",
72
- "@typescript-eslint/eslint-plugin": "^7.6.0",
73
- "@typescript-eslint/parser": "^7.6.0",
72
+ "@typescript-eslint/eslint-plugin": "^7.0.0",
73
+ "@typescript-eslint/parser": "^7.0.0",
74
74
  "chai": "^4.4.1",
75
- "eslint": "8.57.0",
75
+ "eslint": "^8.56.0",
76
76
  "eslint-config-oclif": "5.1.1",
77
77
  "eslint-config-oclif-typescript": "3.1.4",
78
78
  "eslint-config-prettier": "9.1.0",
@@ -130,19 +130,19 @@
130
130
  "format:check": "pnpm prettier \"src/**/*{ts,js}\" \"test/**/*.{ts,js}\" --check",
131
131
  "lint": "eslint . --ext .ts",
132
132
  "lint:fix": "eslint . --fix",
133
- "test-utils": "mocha ./test/utils/index.test.ts -t 10000000 --exit",
134
- "test-config": "mocha ./test/commands/config/index.test.ts -t 10000000 --exit",
135
- "test-create-mint": "mocha ./test/commands/create-mint/index.test.ts -t 10000000 --exit",
136
- "test-merge-token-accounts": "mocha ./test/commands/merge-token-accounts/index.test.ts -t 10000000 --exit",
137
- "test-create-token-pool": "mocha ./test/commands/create-token-pool/index.test.ts -t 10000000 --exit",
138
- "test-approve-and-mint-to": "mocha ./test/commands/approve-and-mint-to/index.test.ts -t 10000000 --exit",
139
- "test-mint-to": "mocha ./test/commands/mint-to/index.test.ts -t 10000000 --exit",
140
- "test-transfer": "mocha ./test/commands/transfer/index.test.ts -t 10000000 --exit",
141
- "test-balance": "mocha ./test/commands/balance/index.test.ts -t 10000000 --exit",
142
- "test-compress-sol": "mocha ./test/commands/compress-sol/index.test.ts -t 10000000 --exit",
143
- "test-decompress-sol": "mocha ./test/commands/decompress-sol/index.test.ts -t 10000000 --exit",
144
- "test-compress-spl": "mocha ./test/commands/compress-spl/index.test.ts -t 10000000 --exit",
145
- "test-decompress-spl": "mocha ./test/commands/decompress-spl/index.test.ts -t 10000000 --exit",
133
+ "test-utils": "mocha test/utils/index.test.ts -t 10000000 --exit",
134
+ "test-config": "mocha test/commands/config/index.test.ts -t 10000000 --exit",
135
+ "test-create-mint": "mocha test/commands/create-mint/index.test.ts -t 10000000 --exit",
136
+ "test-merge-token-accounts": "mocha test/commands/merge-token-accounts/index.test.ts -t 10000000 --exit",
137
+ "test-create-token-pool": "mocha test/commands/create-token-pool/index.test.ts -t 10000000 --exit",
138
+ "test-approve-and-mint-to": "mocha test/commands/approve-and-mint-to/index.test.ts -t 10000000 --exit",
139
+ "test-mint-to": "mocha test/commands/mint-to/index.test.ts -t 10000000 --exit",
140
+ "test-transfer": "mocha test/commands/transfer/index.test.ts -t 10000000 --exit",
141
+ "test-balance": "mocha test/commands/balance/index.test.ts -t 10000000 --exit",
142
+ "test-compress-sol": "mocha test/commands/compress-sol/index.test.ts -t 10000000 --exit",
143
+ "test-decompress-sol": "mocha test/commands/decompress-sol/index.test.ts -t 10000000 --exit",
144
+ "test-compress-spl": "mocha test/commands/compress-spl/index.test.ts -t 10000000 --exit",
145
+ "test-decompress-spl": "mocha test/commands/decompress-spl/index.test.ts -t 10000000 --exit",
146
146
  "kill": "killall solana-test-validator || true && killall solana-test-val || true && sleep 1",
147
147
  "test-cli": "pnpm test-config && pnpm kill",
148
148
  "test": "pnpm kill && pnpm test-cli && pnpm test-utils && pnpm test-create-mint && pnpm test-mint-to && pnpm test-transfer && pnpm test-merge-token-accounts && pnpm test-create-token-pool && pnpm test-compress-spl && pnpm test-decompress-spl && pnpm test-balance && pnpm test-compress-sol && pnpm test-decompress-sol && pnpm test-approve-and-mint-to",