Skip to content

Smart Contracts

High-level references for the escrow system that powers programs on FlareHub.

Registry

  • Purpose — orchestrates creation, upgrades, and permissions across escrow instances.
  • Governance — changes move through the same review path as other program updates, keeping sponsors and ops aligned.
  • Operators — optional co-signers who help pause, resume, or double-check sensitive actions.

Bounty escrow

  • Designed for one-to-many rewards where multiple contributors share a funding pool.
  • Sponsors lock funds, define success signals, and review the final distribution before it goes live.
  • Claimants use the app to prove eligibility; unclaimed balances can be rolled back when the timeline expires.

Contract escrow (milestones)

  • Supports deeper engagements that unfold over milestones with staged funding.
  • Sponsors top up individual milestones as work progresses and approve releases after reviews.
  • Optional co-signers add extra assurance for high-value steps, keeping payouts gated until all criteria are met.

Approvals & signatures

  • Structured signing keeps milestone approvals auditable while preventing replayed requests.
  • Direct-release paths exist for moments when both sides agree to fast-track payment without extra ceremony.

Safety considerations

  • Pause controls stop movement when issues surface and resume once resolved.
  • Allowlisted assets and access guards protect against unsupported tokens or stale requests.
  • Transparent ledgers ensure every action can be traced during governance or compliance reviews.

Contributor experience

  • The app abstracts contract interactions behind plain-language workflows and dashboards.
  • Sponsors and talent stay focused on outcomes while the system manages the on-chain mechanics in the background.