Skip to content

FE: Winner selection + Payout (select-winners signing flow) #633

Description

@0xdevcollins

Context

Part of the Bounty Operate to Payout milestone (v1 boundless, Payout). The organizer picks winner(s) per prize tier and triggers the single select_winners op that pushes the reward(s) on-chain. On settle the bounty becomes COMPLETED automatically.

Blueprint to mirror

  • Hackathon rewards page: PublishWinnersWizard / AnnouncementStep / PreviewStep; hooks/use-hackathon-publish.ts + features/hackathons/api/use-escrow.ts (useEscrowOpRunner, organizer scope); FundingConfirmationModal / FundingProgressModal.

Tasks

  • Winner selection: assign winning submissions to prize positions (1 for single-claim; 1-3 for competition / multiple winners), validate against the bounty's prize tiers + on-chain winner distribution.
  • Payout: build the select-winners body (winners: applicantAddress + position), drive useEscrowOpRunner (organizer scope; MANAGED signs server-side, EXTERNAL signs via wallet kit) -> progress modal -> poll to COMPLETED.
  • On completion: bounty shows COMPLETED, winners + tx hash surfaced.

Acceptance criteria

  • Organizer selects winners and pays out in one signed op; bounty transitions to COMPLETED; payout tx shown. Works for single-winner and multi-winner competitions.

Depends on

  • Submissions review; bounty data layer (organizer escrow client select-winners already exists).

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions