feat: implement CLI command structure, testing framework, and Stellar… - #774
Open
A-one-tech wants to merge 1 commit into
Open
feat: implement CLI command structure, testing framework, and Stellar…#774A-one-tech wants to merge 1 commit into
A-one-tech wants to merge 1 commit into
Conversation
… congestion monitoring integration
|
@A-one-tech Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Collaborator
|
Hi @A-one-tech , please kindly run npm build and push back |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#Closes
#727
Implementation Plan - BridgeWise CLI Commands Module (
apps/cli/src/commands/)Implement a multi-command CLI tool for BridgeWise in
apps/cli/src/commands/that supports checking bridge status, route compare, liquidity monitoring, transaction history, and Stellar congestion monitoring.Proposed Changes
CLI Application Infrastructure (
apps/cli/)[NEW] package.json
@bridgewise/clipackage with dependencies, build scripts, and executable bin mapping.[NEW] tsconfig.json
[NEW] jest.config.js
nodetest environment for unit tests.Command Module & Handlers (
apps/cli/src/commands/)[NEW] types.ts
CLICommand,CommandOption,CommandResult,CLIContext,CommandExecutionOptions).[NEW] history.command.ts
HistoryCommand: Retrieves and formats Stellar and EVM bridge transaction history by account, status filter, and sort order.[NEW] liquidity.command.ts
LiquidityCommand: Queries cross-bridge token liquidity and checks route viability between source and destination chains.[NEW] congestion.command.ts
CongestionCommand: Monitors Stellar route latency, queue depth, throughput, failure rates, and status alerts usingStellarCongestionMonitor.[NEW] compare.command.ts
CompareCommand: Compares bridge routes by cost, liquidity, and latency to surface recommended cross-chain paths.[NEW] status.command.ts
StatusCommand: Queries bridge provider and chain status for target chain ID or route ID.[NEW] help.command.ts
HelpCommand: Renders formatted usage instructions, available commands, and argument descriptions.[NEW] command-runner.ts
[NEW] commands.module.ts
[NEW] index.ts
[NEW] main.ts
Unit Tests (
apps/cli/src/commands/__tests__/)[NEW] command-runner.spec.ts
[NEW] history.command.spec.ts
[NEW] liquidity.command.spec.ts
[NEW] congestion.command.spec.ts
[NEW] compare.command.spec.ts
[NEW] status.command.spec.ts
Verification Plan
Automated Tests
npx jest --config apps/cli/jest.config.jsto execute unit tests for all CLI commands.Manual Verification
--format jsonand standard text output formatting.