Description:
The contract tracks referral counts per referral code (at lib.rs:915-920). When a freelancer submits an invoice with a referral code, the count for that code is incremented. The CLI has no command to query these counts.
The CLI command should:
- Accept
--code (required) — hex-encoded 32-byte referral code
- Display the referral count
Why it matters: Referrers need to track their performance.
Acceptance Criteria:
Relevant Files: contracts/invoice_liquidity/src/lib.rs:915-920, cli/src/index.ts
Description:
The contract tracks referral counts per referral code (at
lib.rs:915-920). When a freelancer submits an invoice with a referral code, the count for that code is incremented. The CLI has no command to query these counts.The CLI command should:
--code(required) — hex-encoded 32-byte referral codeWhy it matters: Referrers need to track their performance.
Acceptance Criteria:
cli/src/commands/referral.ts--codeparameter (hex string)cli/src/index.tsasiln referralRelevant Files:
contracts/invoice_liquidity/src/lib.rs:915-920,cli/src/index.ts