Skip to main content
BountyCovenant funds a competition with a fixed prize per winner, up to maxWinners. The authority reviews submissions off-chain and co-signs each claim() with a non-zero proofHash identifying the work.

Use Cases

  • Code bounties (bug fixes, feature implementations)
  • Design or content competitions
  • Research prize pools
  • Security vulnerability disclosures

How It Works

Key Properties

PropertyDetail
PrizeFixed per winner — rewardPerWinner
WinnersUp to maxWinners. Auto-completes at limit.
ProofproofHash (non-zero bytes32) recorded per claim
AuthoritySole decision-maker on valid claims
CancelReturns remaining unclaimed prizes

NFT State

[0]:    status
[1]:    flags
[2-9]:  total_paid (uint64)
[10-13]: winners_count (uint32)
[14-18]: last_claim_timestamp (5 bytes)
[19-39]: reserved

Contract Reference

See BountyCovenant for full documentation.