产品与价值
Rust 命令行入口,统一浏览预测市场、管理钱包、下单交易、链上操作与脚本化 JSON 输出。
代码与规则片段
CODE
Read-only market browsing works without wallet
Trading path requires wallet + signatures + approvals
Output modes: table and json for human/script dual usage
Interactive shell provides REPL on top of same command tree
PLAIN ENGLISH
这一段是项目最值得先读懂的能力边界。
先确认主链路,再决定扩展与改造路径。
应用测验
第一次接手这个项目,哪一步最该优先完成?
角色与模块协作
从责任边界观察系统复杂度。
群聊动画
关键配置片段
CODE
install via brew tap or shell script or cargo install --path .
quick start: polymarket markets list/search/get
wallet setup: polymarket setup / wallet create / approve set
auth source priority: CLI flag -> env -> config.json
PLAIN ENGLISH
这些配置通常决定部署方式与集成成本。
数据流动画
输入到输出的主链路拆解。
消息流
User
Entry
Core
UI
点击 Next Step 开始
核心实现片段
CODE
src/main.rs (CLI entry and clap parsing)
src/auth.rs (wallet resolution and CLOB auth)
src/config.rs (~/.config/polymarket/config.json)
src/commands + src/output modular command rendering
PLAIN ENGLISH
这里是判断性能、扩展性与可维护性的关键入口。
落地与风险
稳定运行和风险边界同样是产品能力的一部分。
代码与规则片段
CODE
Marked early experimental; APIs and behavior may change
On-chain actions require MATIC gas on Polygon
Private key handling is central security boundary
Always verify transaction details before confirmation
PLAIN ENGLISH
这一段是项目最值得先读懂的能力边界。
先确认主链路,再决定扩展与改造路径。