Description:
The CLI has commands for submitting, funding, canceling, and paying invoices, but no command to file an appeal against a defaulted invoice. The appeal_default contract function allows a payer to contest an unfair default ruling within 30 days.
The CLI command should:
- Accept
--invoice-id (required) — the invoice to appeal
- Accept
--evidence-hash (required) — SHA-256 hash of off-chain evidence
- Accept
--payer (optional) — payer address (defaults to configured wallet)
- Call the contract's
appeal_default function
- Display the transaction result
The command should follow the pattern established by existing commands like cli/src/commands/submit.ts.
Why it matters: Payers need a simple way to file appeals without writing code. The CLI is the primary interface for non-developer users.
Acceptance Criteria:
Relevant Files: cli/src/index.ts, cli/src/commands/submit.ts (pattern reference), contracts/invoice_liquidity/src/lib.rs (appeal functions)
Description:
The CLI has commands for submitting, funding, canceling, and paying invoices, but no command to file an appeal against a defaulted invoice. The
appeal_defaultcontract function allows a payer to contest an unfair default ruling within 30 days.The CLI command should:
--invoice-id(required) — the invoice to appeal--evidence-hash(required) — SHA-256 hash of off-chain evidence--payer(optional) — payer address (defaults to configured wallet)appeal_defaultfunctionThe command should follow the pattern established by existing commands like
cli/src/commands/submit.ts.Why it matters: Payers need a simple way to file appeals without writing code. The CLI is the primary interface for non-developer users.
Acceptance Criteria:
cli/src/commands/appeal.tsfollowing the pattern ofsubmit.ts--invoice-idand--evidence-hashparameterscli/src/index.tsasiln appealcli/tests/Relevant Files:
cli/src/index.ts,cli/src/commands/submit.ts(pattern reference),contracts/invoice_liquidity/src/lib.rs(appeal functions)