@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 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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -98,33 +98,34 @@
98
98
  "index.js"
99
99
  ]
100
100
  },
101
- "compress-spl": {
101
+ "create-mint": {
102
102
  "aliases": [],
103
103
  "args": {},
104
104
  "examples": [
105
- "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
105
+ "$ light create-mint --mint-decimals 5"
106
106
  ],
107
107
  "flags": {
108
- "mint": {
109
- "description": "Specify the mint address.",
110
- "name": "mint",
111
- "required": true,
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
- "to": {
117
- "description": "Specify the recipient address (owner of destination compressed token account).",
118
- "name": "to",
119
- "required": true,
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
- "amount": {
125
- "description": "Amount to compress, in tokens.",
126
- "name": "amount",
127
- "required": true,
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": "compress-spl",
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": "Compress SPL tokens.",
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
- "compress-spl",
147
+ "create-mint",
147
148
  "index.js"
148
149
  ]
149
150
  },
@@ -294,34 +295,33 @@
294
295
  "index.js"
295
296
  ]
296
297
  },
297
- "create-mint": {
298
+ "compress-spl": {
298
299
  "aliases": [],
299
300
  "args": {},
300
301
  "examples": [
301
- "$ light create-mint --mint-decimals 5"
302
+ "$ light compress-spl --mint PublicKey --to PublicKey --amount 10"
302
303
  ],
303
304
  "flags": {
304
- "mint-keypair": {
305
- "description": "Provide a path to a mint keypair file. Defaults to a random keypair",
306
- "name": "mint-keypair",
307
- "required": false,
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
- "mint-authority": {
313
- "description": "Address of the mint authority. Defaults to the fee payer",
314
- "name": "mint-authority",
315
- "required": false,
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
- "mint-decimals": {
321
- "description": "Number of base 10 digits to the right of the decimal place [default: 9]",
322
- "name": "mint-decimals",
323
- "required": false,
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": "create-mint",
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": "Create a new compressed token mint",
337
+ "summary": "Compress SPL tokens.",
338
338
  "enableJsonFlag": false,
339
339
  "isESM": false,
340
340
  "relativePath": [
341
341
  "dist",
342
342
  "commands",
343
- "create-mint",
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.2"
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.2",
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.0",
47
+ "@lightprotocol/compressed-token": "0.3.1",
48
48
  "@lightprotocol/hasher.rs": "0.2.0",
49
- "@lightprotocol/stateless.js": "0.4.0"
49
+ "@lightprotocol/stateless.js": "0.4.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@oclif/test": "2.3.9",