Skip to content

Add the corner-store reference CLI#30

Open
heijiLee wants to merge 7 commits into
feature/anvil-e2efrom
feature/cli
Open

Add the corner-store reference CLI#30
heijiLee wants to merge 7 commits into
feature/anvil-e2efrom
feature/cli

Conversation

@heijiLee

@heijiLee heijiLee commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Stacked on #29 (CLI-001 + CLI-002). Interactive terminal client for driving the deployed stack — the CLI counterpart to the scripted demo.

Core (CLI-001): status, onboard, manifest, attest, investor-setup, kyc, buy (AMM/RFQ), rfq-quote, rfq-cancel, maker, reason

  • Every ComplianceRejected revert auto-decoded to a human-readable cause (reason table verified bit-exact against the engine's encoding); failures exit nonzero
  • Reuses services/rfq's EIP-712 signer; ERC-3643 KYC delegated to script/KycInvestor.s.sol on the shared TREXCore

v2 (CLI-002): check — per-element preflight matrix + engine verdict without trading (flagship); sell; balances; watch — live decoded event tail; faucet; snapshot/restore (Anvil demo resets); quote-inspect — RFQ quote validation

No src/ changes (only script/KycInvestor.s.sol). Suite 238/238; CLI smoke green (incl. tampered-signature FAIL path); both command sets verified against a live Anvil node with full walkthrough transcripts. Usage: scripts/e2e-anvil.sh --keep then services/cli/README.md.

@0xMuang

0xMuang commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

CLI package와 smoke test가 추가됐으니 scripts/check.sh에도 services/cli install/test 단계를 포함해 주세요.

현재는 services/cli/test/smoke.ts가 있어도 repo-level check에서 실행되지 않아서 CLI compile/smoke regression을 놓칠 수 있습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants