Skip to content

Feature/bridgewise status cli - #836

Open
A-one-tech wants to merge 2 commits into
MDTechLabs:mainfrom
A-one-tech:feature/bridgewise-status-cli
Open

Feature/bridgewise status cli#836
A-one-tech wants to merge 2 commits into
MDTechLabs:mainfrom
A-one-tech:feature/bridgewise-status-cli

Conversation

@A-one-tech

Copy link
Copy Markdown

#Closes
#727

Pull Request Documentation
PR Title: feat(cli): add bridgewise status command and SDK cross-chain status checker

PR Description:

markdown

Description

Implements the bridgewise status CLI command and an SDK StatusChecker module to query destination chains and display real-time cross-chain transaction lifecycle status (Pending, Committed, Relayed, Failed) across source and destination chains.

Changes Made

  • SDK Status Checker Component (libs/sdk/src/status-checker.ts):
    • Implemented StatusChecker class to query transaction lifecycle milestones (Source Lock -> Relayer Verification -> Destination Mint/Release).
    • Added input validation for transaction hashes (EVM 0x-prefixed & Stellar 64-char hex hashes) and source chain verification against supported networks (Ethereum, Stellar, Polygon, Arbitrum, Optimism, Avalanche, BSC, Base, Solana).
    • Created unit test suite in libs/sdk/src/__tests__/status-checker.spec.ts.
  • CLI Status Command (apps/cli/src/commands/status.command.ts & status.ts):
    • Implemented StatusCommand to process positional transaction hash arguments (bridgewise status <txHash>) and --source-chain / -s option flags.
    • Added colorized terminal ASCII table output formatting for human-readable summaries and preserved --format json support.
    • Implemented error handling for missing transaction hashes, invalid hash formats, and unsupported source chains.
  • CLI Testing & Integration:
    • Updated apps/cli/src/commands/__tests__/status.command.spec.ts to test flag processing, lifecycle queries, and error states.
    • Updated apps/cli/src/commands/__tests__/run-all-tests.ts to include status command assertions in the test suite runner.

Acceptance Criteria Met

  • bridgewise status 0x... correctly queries and displays real-time cross-chain transaction lifecycle status.
  • Supports optional --source-chain flag.
  • Renders colorized terminal table status summary for lifecycle milestones.
  • Handles invalid hashes and unsupported chain errors gracefully.
  • 21/21 CLI and SDK unit tests passing cleanly.
    Saved to

PR_STATUS_COMMAND.md
in the repository root.

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