You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cmd): add status command with ckb-tui v0.1.3 (#449)
* feat(cmd): add status command with ckb-tui v0.1.3
Integrates ckb-tui to provide a terminal UI for monitoring CKB network status from a local node.
Changes:
- Add CKBTui class with automatic binary download/install for v0.1.3
- Add status command with RPC port connectivity check
- Update settings schema with tools.rootFolder and ckbTui.version
- Register status command in CLI with network validation
Closes RET-161
* fix: address review feedback (round 1)
- Replace execSync shell interpolation with spawnSync array args (CRIT #1)
- Add path validation for tools.rootFolder bounded to dataPath (CRIT #3)
- Add SHA-256 checksum verification for downloaded binaries (CRIT #2)
- Use -fsSL flags on curl, add timeouts, use fs.chmodSync, findFileInFolder
- Fix deepMerge mutation by cloning defaultSettings before merge
- Add settings validation for tools.rootFolder, ckbTui.version, proxy types
- Fix status help text typo and use validateNetworkOpt() consistently
- Replace nested ternary with lookup table, propagate exit code
* fix: add non-TTY guard to status command to prevent CI/pipe hangs (round 2)
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,7 @@ Commands:
82
82
transfer-all [options] [toAddress] Transfer All CKB tokens to address, only devnet and testnet
83
83
balance [options] [toAddress] Check account balance, only devnet and testnet
84
84
debugger Port of the raw CKB Standalone Debugger
85
+
status [options] Show ckb-tui status interface
85
86
config <action> [item] [value] do a configuration action
86
87
help [command] display helpforcommand
87
88
```
@@ -169,6 +170,10 @@ offckb node --network <testnet or mainnet>
169
170
```
170
171
Using a proxy RPC server for Testnet/Mainnet is especially helpful for debugging transactions, since failed transactions are dumped automatically.
171
172
173
+
**Watch Network with TUI**
174
+
175
+
Once you start the CKB Node, you can use `offckb status --network devnet/testnet/mainnet` to start a CKB-TUI interface to monitor the CKB network from your node.
176
+
172
177
### 2. Create a New Contract Project {#create-project}
173
178
174
179
Generate a ready-to-use smart-contract project in JS/TS using templates:
0 commit comments