Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

govdao package

Overview

Package govdao is an optional, one-way adapter from Guildhall reputation to GovDAO membership. Guildhall does not depend on it and GovDAO has no authority over it or over any other Guildhall realm; it only reads reputation and builds proposals that GovDAO members may choose to submit.

It turns a contributor's on-chain work records into two inputs for GovDAO:

  • an eligibility check: a minimum reputation score per tier, and
  • a portfolio: a summary of the contributor's paid, reviewed work, with links to every record, generated from chain state rather than written by hand.

GovDAO only accepts proposals created directly by a member's transaction, so this realm never creates proposals itself. It builds the request; the member submits it from a `gnokey maketx run` script:

Example
 1package main
 2
 3import (
 4	"gno.land/r/gov/dao"
 5	guild "gno.land/r/g1lnkytfqcjwllws63gvf0mv9yt04aswy4y9amhm/guildhall/govdao"
 6)
 7
 8func main(cur realm) {
 9	req := guild.NewMemberRequest(cross(cur), "g1candidate...", "T2")
10	dao.MustCreateProposal(cross(cur), req)
11}

The thresholds are set by the Guildhall admin with SetThreshold. They are Guildhall's bar for the candidates it vouches for; GovDAO's vote decides.

Function

Eligible

func Eligible(addr address, tier string) (bool, string)
Ask AI Claude ChatGPT

Eligible reports whether addr meets the reputation bar for tier and, if not, why.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1lnkytfqcjwllws63gvf0mv9yt04aswy4y9amhm/guildhall/govdao.Eligible(,)"

Result