Skip to content

feat(cli): add dispute command (#414) - #445

Open
GBOYEE wants to merge 1 commit into
Invoice-Liquidity-Network:mainfrom
GBOYEE:gf-414-dispute-cli
Open

feat(cli): add dispute command (#414)#445
GBOYEE wants to merge 1 commit into
Invoice-Liquidity-Network:mainfrom
GBOYEE:gf-414-dispute-cli

Conversation

@GBOYEE

@GBOYEE GBOYEE commented Jul 20, 2026

Copy link
Copy Markdown

Closes #414.

Adds iln dispute CLI command following the established DI pattern (mirrors fund/cancel):

  • --invoice-id (required)
  • --reason-hash (required, validated as 64-char hex SHA-256)
  • --payer (optional, defaults to configured wallet via injected resolver)
  • --yes (skip confirmation)
  • Validates invoice state is Pending or Funded before calling contract dispute_invoice

Files: cli/src/commands/dispute.ts (new), cli/src/index.ts (register), cli/tests/e2e/dispute.test.ts (8 tests).
Full CLI suite: 152/152 passing.

Adds iln dispute with --invoice-id (required), --reason-hash (required,
64-char hex SHA-256), --payer (optional, defaults to configured wallet),
--yes (skip confirm). Validates invoice is Pending/Funded before calling
dispute_invoice. DI pattern mirrors fund/cancel. 8 new tests, full suite
152/152 green.

Closes Invoice-Liquidity-Network#414
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.

Add dispute CLI command

1 participant