Summary
Both index methods return the full array. For power users with many invoices this could be large.
Proposal
Add optional slice params:
async getInvoicesByCreator(creator: string, opts?: { offset?: number; limit?: number }): Promise<number[]>
Slice the returned array client-side (contract returns full list — slicing is in the SDK).
Acceptance criteria
Summary
Both index methods return the full array. For power users with many invoices this could be large.
Proposal
Add optional slice params:
Slice the returned array client-side (contract returns full list — slicing is in the SDK).
Acceptance criteria
offsetandlimit