Description:
The SDK needs a method to file an appeal against a defaulted invoice. This involves:
- Validating the invoice exists and is in Defaulted status
- Checking the appeal window (30 days from default) has not expired
- Calling the contract's
appeal_default function with the invoice ID and evidence hash
- Handling the
AlreadyAppealed, AppealWindowClosed, and NotDefaulted error codes
The appeal flow is: payer files appeal → governance reviews → appeal upheld or rejected.
Why it matters: Appeals are a critical fairness mechanism. Without SDK support, frontends cannot implement appeal features.
Acceptance Criteria:
Relevant Files: contracts/invoice_liquidity/src/lib.rs (appeal functions), sdk/src/index.ts
Description:
The SDK needs a method to file an appeal against a defaulted invoice. This involves:
appeal_defaultfunction with the invoice ID and evidence hashAlreadyAppealed,AppealWindowClosed, andNotDefaultederror codesThe appeal flow is: payer files appeal → governance reviews → appeal upheld or rejected.
Why it matters: Appeals are a critical fairness mechanism. Without SDK support, frontends cannot implement appeal features.
Acceptance Criteria:
appealInvoice(client, invoiceId, evidenceHash)methodRelevant Files:
contracts/invoice_liquidity/src/lib.rs(appeal functions),sdk/src/index.ts