CLI: add new --show option for miden-client tx
- 主要语言
- Rust
- 星标
- 78
- 派生
- 129
- 平均合并
- 4 天 11 小时
- 30 天内合并 PR
- 52
描述
miden-client txis the only place where you can look at a transaction after it has been submitted, and it is only where you can track transaction from the CLI. It looks like:
ID | Status | Account ID | Script Root | Input Notes | Output Notes
-- | -- | -- | -- | -- | --
0x0c97... | Committed (Block: 52) | 0xb753... | 0x09e1... | 0 | 1
0xbdd8... | Pending | 0xb753... | 0x09e1... | 0 | 1
New tx --show <id> should print metadata about single transaction: transaction ID, status, account ID, script root, notes IDs, block number, block height, transaction status with the expiration block in case of "Pending" status, creation time, and the account state commitment before and after. A private note that isn't yours can't be resolved at all, instead of the ID we mark it as private.
贡献指南
调研方向
查看现有的 `miden-client tx` 命令实现,以了解交易数据的获取和显示方式。新的 `--show ` 选项应扩展此功能,以输出单个交易的详细元数据。首先检查 CLI 命令结构和交易数据模型,然后为指定字段实现格式化。通过使用已知的交易 ID 运行命令进行测试。
由索引模型根据 Issue 内容生成。
评估
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 描述清楚
- 新手友好度
- 65/100