Crypto Governance

2 variants

DAO governance pages: a proposals overview with live tallies and a proposal page with the full text, results, timeline, and voting.

Proposals overview

A governance overview with live stats, a closing-soon proposal with a rolling countdown and per-choice results, and a searchable list whose vote splits and quorum update as votes arrive.

Governance

Vote on proposals that shape the protocol. Your voting power counts toward quorum the moment you vote.

Your voting power

12,480 HALO

New proposal
Active proposals
2
Votes cast
12.84M
Avg. participation
71%
Treasury
$4.22M
Closing soonHIP-47ActiveProtocol

Lower the swap fee on stable pairs to 0.01%

Cut the fee tier for stable-to-stable pools from 0.04% to 0.01% for a 90-day trial, with an automatic review of volume and LP returns at the end.

Proposed byKai Nakamura

Open proposal
For
1.91M53.6%
Against
1.6M44.9%
Abstain
54.1K1.5%
Quorum reached3.57M / 2.4M

3,118 voters

"use client";

import { GovernanceProposals } from "@/components/premium/crypto-governance";

export function GovernanceProposalsPreview() {
  return <GovernanceProposals />;
}

Install

$ bunx --bun shadcn add @beui-pro/governance-proposals

API Reference

Every prop is optional unless marked required. Data, copy, and colors default to the sample content.

GovernanceProposals10 props
  • proposals

    Proposals to list, read on mount. Defaults to the sample proposals.

    readonly Proposal[]
  • delegates

    Delegates used to show proposal authors. Defaults to the sample delegates.

    readonly Delegate[]
  • votingPower

    Viewer's voting power in tokens, shown in the header.

    number

    Default 12480

  • tokenSymbol

    Token symbol shown after voting power. Defaults to "HALO".

    string

    Default HALO

  • stats

    Header stats: votes cast in tokens, participation from 0 to 1, treasury in dollars.

    { votesCast: number; participation: number; treasury: number; }
  • labels

    Text overrides merged over the default labels.

    Partial<GovernanceLabels>
  • getProposalHref

    Link for each proposal's detail page.

    ((proposal: Proposal) => string)

    Default (proposal) => `#${proposal.code.toLowerCase()}`

  • newProposalHref

    Link for the new proposal button.

    string

    Default #new-proposal

  • live

    Simulate incoming votes. Turn off when streaming real tallies.

    boolean

    Default true

  • className

    Classes merged onto the root element.

    string
Types6 types

The object types these props take, field by field.

Delegate5 fields
  • idRequired

    Unique id that proposals and voters reference.

    string
  • nameRequired

    Display name shown on proposals and in the votes feed.

    string
  • handleRequired

    Short handle, such as "mira.eth", shown under the author name.

    string
  • avatarRequired

    Avatar image URL.

    string
  • powerRequired

    Voting power in tokens.

    number
Proposal17 fields
  • idRequired

    Unique id, sent back with each vote.

    string
  • codeRequired

    Short code shown before the title and matched by search, such as "HIP-42".

    string
  • titleRequired

    Proposal title.

    string
  • summaryRequired

    One-paragraph summary, used as the body when `body` is missing.

    string
  • categoryRequired

    Category tag; Treasury, Protocol, and Grants get their own colors.

    string
  • statusRequired

    Whether voting is open, passed, or failed.

    ProposalStatus
  • authorIdRequired

    Id of the delegate who wrote the proposal.

    string
  • createdOnRequired

    Display date, such as "Oct 9".

    string
  • endsIn

    Seconds left for active proposals.

    number
  • closedOn

    Display date for closed proposals, such as "Oct 12".

    string
  • votesRequired

    Tokens voted for each choice.

    Record<VoteChoice, number>
  • quorumRequired

    Tokens that must take part for the vote to count.

    number
  • voterCountRequired

    Total number of voting wallets.

    number
  • votersRequired

    Largest voters, largest first.

    ProposalVoter[]
  • body

    Body sections on the detail page. Defaults to the summary alone.

    ProposalSection[]
  • timeline

    Steps shown in the detail page timeline; hidden when missing.

    TimelineStep[]
  • myVote

    The viewer's vote, if cast.

    VoteChoice | null
GovernanceLabels28 fields
  • titleRequired

    Page heading and the section's accessible name on the proposals list.

    string
  • descriptionRequired

    Intro text under the proposals list heading.

    string
  • votingPowerRequired

    Caption above the viewer's voting power.

    string
  • newProposalRequired

    New proposal button text.

    string
  • closingSoonRequired

    Tag on the featured proposal that closes first.

    string
  • openProposalRequired

    Link text on the featured proposal card.

    string
  • allProposalsRequired

    Back link text on the proposal detail page.

    string
  • searchRequired

    Placeholder and accessible name of the search field.

    string
  • activeProposalsRequired

    Stat label for the number of active proposals.

    string
  • votesCastRequired

    Stat label for total votes cast.

    string
  • participationRequired

    Stat label for average participation.

    string
  • treasuryRequired

    Stat label for the treasury balance.

    string
  • quorumRequired

    Quorum meter label and the quorum column header.

    string
  • quorumReachedRequired

    Quorum meter label once quorum is reached.

    string
  • votersRequired

    Word shown after the voter count, such as "voters".

    string
  • proposedByRequired

    Text before the author's name.

    string
  • resultsRequired

    Heading of the results panel.

    string
  • timelineRequired

    Heading of the timeline on the detail page.

    string
  • votesRequired

    Heading of the votes feed.

    string
  • yourVoteRequired

    Text before the viewer's choice once they have voted.

    string
  • castVoteRequired

    Heading of the vote form and button text before a choice is picked.

    string
  • reasonRequired

    Label of the reason field.

    string
  • reasonPlaceholderRequired

    Placeholder of the reason field.

    string
  • submitRequired

    Builds the vote button text from the choice and formatted power.

    (choice: string, power: string) => string
  • confirmingRequired

    Vote button text while the vote is confirming.

    string
  • votedRequired

    Vote button text after the vote is cast.

    string
  • votingClosedRequired

    Message shown in place of the vote form on closed proposals.

    string
  • emptyRequired

    Message shown when no proposals match the filter or search.

    string
ProposalVoter3 fields
  • delegateIdRequired

    Id of the delegate who voted. Unknown ids are skipped.

    string
  • choiceRequired

    Choice the delegate voted for.

    VoteChoice
  • reason

    Optional public reason shown in the votes feed.

    string
ProposalSection3 fields
  • headingRequired

    Section heading in the proposal body.

    string
  • paragraphs

    Paragraphs shown under the heading.

    string[]
  • bullets

    Bullet points shown after the paragraphs.

    string[]
TimelineStep3 fields
  • labelRequired

    Step name, also used as its list key.

    string
  • dateRequired

    Display date, such as "Oct 9".

    string
  • stateRequired

    Whether the step is finished, in progress, or still ahead.

    "done" | "current" | "upcoming"

Proposal page

A proposal page with the author, a live countdown, the proposal text, a timeline that draws to the current step, a feed of votes with delegates' reasons, and a sticky results column where members cast their vote.

All proposals
HIP-48ActiveTreasury

Fund a 12-month security retainer for core contracts

Proposed byMira Okaformira.eth · Oct 9

Voting ends in

Summary

Retain two independent audit firms for twelve months to review every change to the core and bridge contracts before it ships, instead of commissioning one-off audits per release.

Motivation

We shipped nine contract upgrades this year and audited four of them. The bridge carries most of the protocol's value, and its last full review is seven months old.

A standing retainer gives reviewers context across releases, shortens turnaround to days, and costs less than buying audits one at a time.

Specification

  • 420,000 USDC from the treasury, paid in four quarterly tranches.
  • Each tranche releases only after the firms publish that quarter's report.
  • Every core or bridge upgrade needs sign-off from at least one firm before execution.
  • The security council can end the retainer early with 30 days' notice.

Timeline

  1. Proposal created

    Oct 9

  2. Voting opened

    Oct 11

  3. Voting ends

    Oct 21

  4. Timelock

    Oct 21 – 23

  5. Execution

    Oct 23

Votes

  • Mira OkaforFor412K · 38m ago

    “Point-in-time audits miss upgrades shipped between them. A retainer closes that gap.”

  • Jonas HalvorsenFor365.5K · 1h ago

    “Quarterly payments tied to public reports keep this accountable.”

  • Theo BrandtAgainst241.8K · 2h ago

    “Support the goal, but I would rather run a competitive bid first.”

  • Ines MoreauFor188.4K · 2h ago
  • Amara OseiAbstain120.3K · 3h ago

    “Conflict of interest: I advise one of the shortlisted firms.”

"use client";

import { GovernanceProposalDetail } from "@/components/premium/crypto-governance";

export function GovernanceProposalDetailPreview() {
  return <GovernanceProposalDetail />;
}

Install

$ bunx --bun shadcn add @beui-pro/governance-proposal-detail

API Reference

Every prop is optional unless marked required. Data, copy, and colors default to the sample content.

GovernanceProposalDetail9 props
  • proposal

    Proposal to show, read on mount. Defaults to the first sample proposal.

    Proposal

    Default PROPOSALS[0]

  • delegates

    Delegates used to show the author and voters. Defaults to the sample delegates.

    readonly Delegate[]
  • votingPower

    Viewer's voting power in tokens, cast with their vote.

    number

    Default 12480

  • tokenSymbol

    Token symbol shown after voting power. Defaults to "HALO".

    string

    Default HALO

  • labels

    Text overrides merged over the default labels.

    Partial<GovernanceLabels>
  • backHref

    Link back to the proposals list.

    string

    Default #proposals

  • live

    Simulate incoming votes. Turn off when streaming real tallies.

    boolean

    Default true

  • onCastVote

    Called before the simulated confirmation; return a promise to hold the button.

    ((request: CastVoteRequest) => unknown)
  • className

    Classes merged onto the root element.

    string
Types7 types

The object types these props take, field by field.

Delegate5 fields
  • idRequired

    Unique id that proposals and voters reference.

    string
  • nameRequired

    Display name shown on proposals and in the votes feed.

    string
  • handleRequired

    Short handle, such as "mira.eth", shown under the author name.

    string
  • avatarRequired

    Avatar image URL.

    string
  • powerRequired

    Voting power in tokens.

    number
Proposal17 fields
  • idRequired

    Unique id, sent back with each vote.

    string
  • codeRequired

    Short code shown before the title and matched by search, such as "HIP-42".

    string
  • titleRequired

    Proposal title.

    string
  • summaryRequired

    One-paragraph summary, used as the body when `body` is missing.

    string
  • categoryRequired

    Category tag; Treasury, Protocol, and Grants get their own colors.

    string
  • statusRequired

    Whether voting is open, passed, or failed.

    ProposalStatus
  • authorIdRequired

    Id of the delegate who wrote the proposal.

    string
  • createdOnRequired

    Display date, such as "Oct 9".

    string
  • endsIn

    Seconds left for active proposals.

    number
  • closedOn

    Display date for closed proposals, such as "Oct 12".

    string
  • votesRequired

    Tokens voted for each choice.

    Record<VoteChoice, number>
  • quorumRequired

    Tokens that must take part for the vote to count.

    number
  • voterCountRequired

    Total number of voting wallets.

    number
  • votersRequired

    Largest voters, largest first.

    ProposalVoter[]
  • body

    Body sections on the detail page. Defaults to the summary alone.

    ProposalSection[]
  • timeline

    Steps shown in the detail page timeline; hidden when missing.

    TimelineStep[]
  • myVote

    The viewer's vote, if cast.

    VoteChoice | null
CastVoteRequest4 fields
  • proposalIdRequired

    Id of the proposal being voted on.

    string
  • choiceRequired

    Choice the viewer picked.

    VoteChoice
  • reasonRequired

    Trimmed reason the viewer typed, or an empty string.

    string
  • powerRequired

    Voting power cast, in tokens.

    number
GovernanceLabels28 fields
  • titleRequired

    Page heading and the section's accessible name on the proposals list.

    string
  • descriptionRequired

    Intro text under the proposals list heading.

    string
  • votingPowerRequired

    Caption above the viewer's voting power.

    string
  • newProposalRequired

    New proposal button text.

    string
  • closingSoonRequired

    Tag on the featured proposal that closes first.

    string
  • openProposalRequired

    Link text on the featured proposal card.

    string
  • allProposalsRequired

    Back link text on the proposal detail page.

    string
  • searchRequired

    Placeholder and accessible name of the search field.

    string
  • activeProposalsRequired

    Stat label for the number of active proposals.

    string
  • votesCastRequired

    Stat label for total votes cast.

    string
  • participationRequired

    Stat label for average participation.

    string
  • treasuryRequired

    Stat label for the treasury balance.

    string
  • quorumRequired

    Quorum meter label and the quorum column header.

    string
  • quorumReachedRequired

    Quorum meter label once quorum is reached.

    string
  • votersRequired

    Word shown after the voter count, such as "voters".

    string
  • proposedByRequired

    Text before the author's name.

    string
  • resultsRequired

    Heading of the results panel.

    string
  • timelineRequired

    Heading of the timeline on the detail page.

    string
  • votesRequired

    Heading of the votes feed.

    string
  • yourVoteRequired

    Text before the viewer's choice once they have voted.

    string
  • castVoteRequired

    Heading of the vote form and button text before a choice is picked.

    string
  • reasonRequired

    Label of the reason field.

    string
  • reasonPlaceholderRequired

    Placeholder of the reason field.

    string
  • submitRequired

    Builds the vote button text from the choice and formatted power.

    (choice: string, power: string) => string
  • confirmingRequired

    Vote button text while the vote is confirming.

    string
  • votedRequired

    Vote button text after the vote is cast.

    string
  • votingClosedRequired

    Message shown in place of the vote form on closed proposals.

    string
  • emptyRequired

    Message shown when no proposals match the filter or search.

    string
ProposalVoter3 fields
  • delegateIdRequired

    Id of the delegate who voted. Unknown ids are skipped.

    string
  • choiceRequired

    Choice the delegate voted for.

    VoteChoice
  • reason

    Optional public reason shown in the votes feed.

    string
ProposalSection3 fields
  • headingRequired

    Section heading in the proposal body.

    string
  • paragraphs

    Paragraphs shown under the heading.

    string[]
  • bullets

    Bullet points shown after the paragraphs.

    string[]
TimelineStep3 fields
  • labelRequired

    Step name, also used as its list key.

    string
  • dateRequired

    Display date, such as "Oct 9".

    string
  • stateRequired

    Whether the step is finished, in progress, or still ahead.

    "done" | "current" | "upcoming"