Skip to content

Add referral CLI command #421

Description

@Levi-Ojukwu

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:

  • Create cli/src/commands/referral.ts
  • Accept --code parameter (hex string)
  • Validate code format (64 hex characters)
  • Display referral count
  • Register in cli/src/index.ts as iln referral

Relevant Files: contracts/invoice_liquidity/src/lib.rs:915-920, cli/src/index.ts


Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions