Description:
The contract has get_top_payers(limit) (at top_payers.rs:163-199) that returns up to limit top payers from the maintained heap, sorted by descending score. The SDK does not expose this method.
The function returns a Vec<TopPayerEntry> where each entry contains an address: Address and score: u32.
Why it matters: Frontend applications need to display top payers for marketplace features.
Acceptance Criteria:
Relevant Files: contracts/invoice_liquidity/src/top_payers.rs:163-199, sdk/src/index.ts
Description:
The contract has
get_top_payers(limit)(attop_payers.rs:163-199) that returns up tolimittop payers from the maintained heap, sorted by descending score. The SDK does not expose this method.The function returns a
Vec<TopPayerEntry>where each entry contains anaddress: Addressandscore: u32.Why it matters: Frontend applications need to display top payers for marketplace features.
Acceptance Criteria:
get_top_payersviewlimitparameter (default 10){ address: string, score: number }Relevant Files:
contracts/invoice_liquidity/src/top_payers.rs:163-199,sdk/src/index.ts