Labels: complexity: high
Expose the contract's rollover_invoice function through a typed SDK method. When an invoice expires without full funding, callers should be able to roll it over into a new invoice preserving all settings.
Acceptance criteria:
rolloverInvoice(invoiceId, newDeadline, caller) builds and submits the rollover transaction
- Returns the new invoice ID from the contract return value
- Validates
newDeadline > Date.now() / 1000 before submission
- Preserves all original invoice options automatically
Labels: complexity: high
Expose the contract's
rollover_invoicefunction through a typed SDK method. When an invoice expires without full funding, callers should be able to roll it over into a new invoice preserving all settings.Acceptance criteria:
rolloverInvoice(invoiceId, newDeadline, caller)builds and submits the rollover transactionnewDeadline > Date.now() / 1000before submission