midnight-wallet-cli 0.1.2 → 0.1.4

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.
Files changed (2) hide show
  1. package/README.md +14 -15
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue?logo=typescript)](https://www.typescriptlang.org/)
7
7
  [![CI](https://github.com/nel349/midnight-wallet-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/nel349/midnight-wallet-cli/actions/workflows/ci.yml)
8
8
 
9
- A standalone CLI wallet for the Midnight blockchain. Manage wallets, check balances, transfer NIGHT tokens, and run a local devnet — all from the terminal.
9
+ A standalone CLI wallet for the Midnight blockchain. Manage wallets, check balances, transfer NIGHT tokens, and run a local network — all from the terminal.
10
10
 
11
11
  ## Install
12
12
 
@@ -14,7 +14,7 @@ A standalone CLI wallet for the Midnight blockchain. Manage wallets, check balan
14
14
  npm install -g midnight-wallet-cli
15
15
  ```
16
16
 
17
- This installs three commands: `midnight` (or `mn` for short) and `midnight-wallet-mcp`.
17
+ This installs two commands: `midnight` (or `mn` for short) and `midnight-wallet-mcp`.
18
18
 
19
19
  ## Commands
20
20
 
@@ -24,7 +24,7 @@ This installs three commands: `midnight` (or `mn` for short) and `midnight-walle
24
24
  | `midnight info` | Display wallet address, network, creation date |
25
25
  | `midnight balance [address]` | Check unshielded NIGHT balance |
26
26
  | `midnight transfer <to> <amount>` | Send NIGHT tokens to another address |
27
- | `midnight airdrop <amount>` | Fund wallet from genesis (local devnet only) |
27
+ | `midnight airdrop <amount>` | Fund wallet from genesis (undeployed network only) |
28
28
  | `midnight dust register` | Register NIGHT UTXOs for dust (fee token) generation |
29
29
  | `midnight dust status` | Check dust registration status and balance |
30
30
  | `midnight address --seed <hex>` | Derive an address from a seed |
@@ -37,29 +37,28 @@ This installs three commands: `midnight` (or `mn` for short) and `midnight-walle
37
37
  ## Quick Start
38
38
 
39
39
  ```bash
40
+ # Start local network
41
+ midnight localnet up
42
+
40
43
  # Generate a wallet
41
- midnight generate --network preprod
44
+ midnight generate --network undeployed
45
+
46
+ # Airdrop tokens and register dust
47
+ midnight airdrop 1000
48
+ midnight dust register
42
49
 
43
50
  # Check balance
44
51
  midnight balance
45
52
 
46
53
  # Transfer NIGHT
47
- midnight transfer mn_addr_preprod1... 100
48
-
49
- # Local devnet: start network, airdrop, register dust
50
- midnight localnet up
51
- midnight generate --network undeployed
52
- midnight airdrop 1000
53
- midnight dust register
54
+ midnight transfer mn_addr_undeployed1... 100
54
55
  ```
55
56
 
56
57
  ## Supported Networks
57
58
 
58
59
  | Network | Description |
59
60
  |---------|-------------|
60
- | `preprod` | Midnight pre-production testnet |
61
- | `preview` | Midnight preview testnet |
62
- | `undeployed` | Local devnet via Docker (`midnight localnet up`) |
61
+ | `undeployed` | Local network via Docker (`midnight localnet up`) |
63
62
 
64
63
  ## JSON Output for Automation
65
64
 
@@ -190,4 +189,4 @@ Once connected, your AI agent gets access to 17 tools:
190
189
 
191
190
  - Node.js >= 20
192
191
  - Docker (for `midnight localnet` commands)
193
- - A running proof server on `localhost:6300` (for transactions on local devnet)
192
+ - A running proof server on `localhost:6300` (for transactions on undeployed network)
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "midnight-wallet-cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "description": "Git-style CLI wallet for the Midnight blockchain",
6
6
  "license": "Apache-2.0",
7
7
  "bin": {
8
- "midnight": "./dist/wallet.js",
9
- "mn": "./dist/wallet.js",
10
- "midnight-wallet-cli": "./dist/wallet.js",
11
- "midnight-wallet-mcp": "./dist/mcp-server.js"
8
+ "midnight": "dist/wallet.js",
9
+ "mn": "dist/wallet.js",
10
+ "midnight-wallet-cli": "dist/wallet.js",
11
+ "midnight-wallet-mcp": "dist/mcp-server.js"
12
12
  },
13
13
  "files": [
14
14
  "dist"