@lightprotocol/zk-compression-cli 0.4.2 → 0.4.3
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/README.md +29 -0
- package/bin/account_compression.so +0 -0
- package/bin/forester +0 -0
- package/bin/light_compressed_token.so +0 -0
- package/bin/light_registry.so +0 -0
- package/bin/light_system_program.so +0 -0
- package/bin/prover-darwin-arm64 +0 -0
- package/bin/prover-darwin-x64 +0 -0
- package/bin/prover-linux-arm64 +0 -0
- package/bin/prover-linux-x64 +0 -0
- package/bin/prover-windows-arm64.exe +0 -0
- package/bin/prover-windows-x64.exe +0 -0
- package/oclif.manifest.json +36 -36
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -88,6 +88,35 @@ solana balance
|
|
|
88
88
|
|
|
89
89
|
Now you're all set up to run CLI commands :)
|
|
90
90
|
|
|
91
|
+
#### Using ZK Testnet
|
|
92
|
+
|
|
93
|
+
By default, the CLI interacts with localnet. You can view the current config by running:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
light config --get
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
To switch to ZK Testnet, run:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
light config --indexerUrl "https://zk-testnet.helius.dev:8784" \
|
|
103
|
+
--proverUrl "https://zk-testnet.helius.dev:3001" \
|
|
104
|
+
--solanaRpcUrl "https://zk-testnet.helius.dev:8899"
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Also adjust your solana config:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
# Set config
|
|
111
|
+
solana config set --url "https://zk-testnet.helius.dev:8899"
|
|
112
|
+
|
|
113
|
+
# Airdrop 1 SOL
|
|
114
|
+
solana airdrop 1
|
|
115
|
+
|
|
116
|
+
# Print your address
|
|
117
|
+
solana address
|
|
118
|
+
```
|
|
119
|
+
|
|
91
120
|
### Commands
|
|
92
121
|
|
|
93
122
|
#### Create a compressed token mint
|
|
Binary file
|
package/bin/forester
CHANGED
|
Binary file
|
|
Binary file
|
package/bin/light_registry.so
CHANGED
|
Binary file
|
|
Binary file
|
package/bin/prover-darwin-arm64
CHANGED
|
Binary file
|
package/bin/prover-darwin-x64
CHANGED
|
Binary file
|
package/bin/prover-linux-arm64
CHANGED
|
Binary file
|
package/bin/prover-linux-x64
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/oclif.manifest.json
CHANGED
|
@@ -98,33 +98,34 @@
|
|
|
98
98
|
"index.js"
|
|
99
99
|
]
|
|
100
100
|
},
|
|
101
|
-
"
|
|
101
|
+
"create-mint": {
|
|
102
102
|
"aliases": [],
|
|
103
103
|
"args": {},
|
|
104
104
|
"examples": [
|
|
105
|
-
"$ light
|
|
105
|
+
"$ light create-mint --mint-decimals 5"
|
|
106
106
|
],
|
|
107
107
|
"flags": {
|
|
108
|
-
"mint": {
|
|
109
|
-
"description": "
|
|
110
|
-
"name": "mint",
|
|
111
|
-
"required":
|
|
108
|
+
"mint-keypair": {
|
|
109
|
+
"description": "Provide a path to a mint keypair file. Defaults to a random keypair",
|
|
110
|
+
"name": "mint-keypair",
|
|
111
|
+
"required": false,
|
|
112
112
|
"hasDynamicHelp": false,
|
|
113
113
|
"multiple": false,
|
|
114
114
|
"type": "option"
|
|
115
115
|
},
|
|
116
|
-
"
|
|
117
|
-
"description": "
|
|
118
|
-
"name": "
|
|
119
|
-
"required":
|
|
116
|
+
"mint-authority": {
|
|
117
|
+
"description": "Address of the mint authority. Defaults to the fee payer",
|
|
118
|
+
"name": "mint-authority",
|
|
119
|
+
"required": false,
|
|
120
120
|
"hasDynamicHelp": false,
|
|
121
121
|
"multiple": false,
|
|
122
122
|
"type": "option"
|
|
123
123
|
},
|
|
124
|
-
"
|
|
125
|
-
"description": "
|
|
126
|
-
"name": "
|
|
127
|
-
"required":
|
|
124
|
+
"mint-decimals": {
|
|
125
|
+
"description": "Number of base 10 digits to the right of the decimal place [default: 9]",
|
|
126
|
+
"name": "mint-decimals",
|
|
127
|
+
"required": false,
|
|
128
|
+
"default": 9,
|
|
128
129
|
"hasDynamicHelp": false,
|
|
129
130
|
"multiple": false,
|
|
130
131
|
"type": "option"
|
|
@@ -132,18 +133,18 @@
|
|
|
132
133
|
},
|
|
133
134
|
"hasDynamicHelp": false,
|
|
134
135
|
"hiddenAliases": [],
|
|
135
|
-
"id": "
|
|
136
|
+
"id": "create-mint",
|
|
136
137
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
137
138
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
138
139
|
"pluginType": "core",
|
|
139
140
|
"strict": true,
|
|
140
|
-
"summary": "
|
|
141
|
+
"summary": "Create a new compressed token mint",
|
|
141
142
|
"enableJsonFlag": false,
|
|
142
143
|
"isESM": false,
|
|
143
144
|
"relativePath": [
|
|
144
145
|
"dist",
|
|
145
146
|
"commands",
|
|
146
|
-
"
|
|
147
|
+
"create-mint",
|
|
147
148
|
"index.js"
|
|
148
149
|
]
|
|
149
150
|
},
|
|
@@ -294,34 +295,33 @@
|
|
|
294
295
|
"index.js"
|
|
295
296
|
]
|
|
296
297
|
},
|
|
297
|
-
"
|
|
298
|
+
"compress-spl": {
|
|
298
299
|
"aliases": [],
|
|
299
300
|
"args": {},
|
|
300
301
|
"examples": [
|
|
301
|
-
"$ light
|
|
302
|
+
"$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
|
|
302
303
|
],
|
|
303
304
|
"flags": {
|
|
304
|
-
"mint
|
|
305
|
-
"description": "
|
|
306
|
-
"name": "mint
|
|
307
|
-
"required":
|
|
305
|
+
"mint": {
|
|
306
|
+
"description": "Specify the mint address.",
|
|
307
|
+
"name": "mint",
|
|
308
|
+
"required": true,
|
|
308
309
|
"hasDynamicHelp": false,
|
|
309
310
|
"multiple": false,
|
|
310
311
|
"type": "option"
|
|
311
312
|
},
|
|
312
|
-
"
|
|
313
|
-
"description": "
|
|
314
|
-
"name": "
|
|
315
|
-
"required":
|
|
313
|
+
"to": {
|
|
314
|
+
"description": "Specify the recipient address (owner of destination compressed token account).",
|
|
315
|
+
"name": "to",
|
|
316
|
+
"required": true,
|
|
316
317
|
"hasDynamicHelp": false,
|
|
317
318
|
"multiple": false,
|
|
318
319
|
"type": "option"
|
|
319
320
|
},
|
|
320
|
-
"
|
|
321
|
-
"description": "
|
|
322
|
-
"name": "
|
|
323
|
-
"required":
|
|
324
|
-
"default": 9,
|
|
321
|
+
"amount": {
|
|
322
|
+
"description": "Amount to compress, in tokens.",
|
|
323
|
+
"name": "amount",
|
|
324
|
+
"required": true,
|
|
325
325
|
"hasDynamicHelp": false,
|
|
326
326
|
"multiple": false,
|
|
327
327
|
"type": "option"
|
|
@@ -329,18 +329,18 @@
|
|
|
329
329
|
},
|
|
330
330
|
"hasDynamicHelp": false,
|
|
331
331
|
"hiddenAliases": [],
|
|
332
|
-
"id": "
|
|
332
|
+
"id": "compress-spl",
|
|
333
333
|
"pluginAlias": "@lightprotocol/zk-compression-cli",
|
|
334
334
|
"pluginName": "@lightprotocol/zk-compression-cli",
|
|
335
335
|
"pluginType": "core",
|
|
336
336
|
"strict": true,
|
|
337
|
-
"summary": "
|
|
337
|
+
"summary": "Compress SPL tokens.",
|
|
338
338
|
"enableJsonFlag": false,
|
|
339
339
|
"isESM": false,
|
|
340
340
|
"relativePath": [
|
|
341
341
|
"dist",
|
|
342
342
|
"commands",
|
|
343
|
-
"
|
|
343
|
+
"compress-spl",
|
|
344
344
|
"index.js"
|
|
345
345
|
]
|
|
346
346
|
},
|
|
@@ -762,5 +762,5 @@
|
|
|
762
762
|
]
|
|
763
763
|
}
|
|
764
764
|
},
|
|
765
|
-
"version": "0.4.
|
|
765
|
+
"version": "0.4.3"
|
|
766
766
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightprotocol/zk-compression-cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "ZK Compression: Secure Scaling on Solana",
|
|
5
5
|
"maintainers": [
|
|
6
6
|
{
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"tweetnacl": "^1.0.3",
|
|
45
45
|
"wait-on": "^7.2.0",
|
|
46
46
|
"which": "^4.0.0",
|
|
47
|
-
"@lightprotocol/compressed-token": "0.3.
|
|
47
|
+
"@lightprotocol/compressed-token": "0.3.1",
|
|
48
48
|
"@lightprotocol/hasher.rs": "0.2.0",
|
|
49
|
-
"@lightprotocol/stateless.js": "0.4.
|
|
49
|
+
"@lightprotocol/stateless.js": "0.4.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@oclif/test": "2.3.9",
|