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 state

Back to all declarations

portfolioRecords

untyped bigint

Value

(10 <untyped> bigint)

chainURL

untyped string

Value

"https://gno.land"

thresholds

v0.Tree

thresholds maps tier -> minimum reputation score.

Open
OID
0a14a0…9836:4
thresholds details

Inspect ref

Threshold

func(tier string) int64

Threshold returns the minimum score required to be proposed for tier.

Open
OID
0a14a0…9836:7
Threshold details

Inspect func

Eligible

func(addr .uverse.address, tier string) (bool, string)

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

Open
OID
0a14a0…9836:8
Eligible details

Inspect func

AssertEligible

func(addr .uverse.address, tier string)

AssertEligible panics unless addr meets the reputation bar for tier.

Open
OID
0a14a0…9836:9
AssertEligible details

Inspect func

Portfolio

func(addr .uverse.address) string

Portfolio renders addr's Guildhall track record as markdown suitable for a GovDAO membership proposal.

Open
OID
0a14a0…9836:10
Portfolio details

Inspect func

NewMemberRequest

func(addr .uverse.address, tier string) dao.ProposalRequest

NewMemberRequest builds a GovDAO proposal to add addr to tier, with its Guildhall portfolio attached. It panics if addr does not meet the tier's reputation threshold. GovDAO's own rules still apply: the signer must be a member with an invitation point, and only T1 and T2 are proposal-gated.

Open
OID
0a14a0…9836:11
NewMemberRequest details

Inspect func

SetThreshold

func(tier string, min int64)

SetThreshold changes the minimum score for tier. Only the Guildhall admin (reputation.Admin) may call it: the bar is Guildhall's statement of who it vouches for, and GovDAO is free to ignore it.

Open
OID
0a14a0…9836:12
SetThreshold details

Inspect func

validateThreshold

func(tier string, min int64)
Open
OID
0a14a0…9836:13
validateThreshold details

Inspect func

Render

func(path string) string

Render shows the thresholds and, for u/\<address>, that address's eligibility and generated portfolio.

Open
OID
0a14a0…9836:14
Render details

Inspect func

renderCandidate

func(addr .uverse.address) string
Open
OID
0a14a0…9836:15
renderCandidate details

Inspect func

apiCandidate

func(addr .uverse.address) string

apiCandidate serves JSON for the web app: per-tier thresholds and whether addr meets each.

Open
OID
0a14a0…9836:16
apiCandidate details

Inspect func

gnotString

func(ugnot int64) string
Open
OID
0a14a0…9836:17
gnotString details

Inspect func
portfolioRecords : untyped bigint =(10 <untyped> bigint)
chainURL : untyped string ="https://gno.land"
thresholds : v0.Tree Inspect
init.3 : func() Inspect
Threshold : func(tier string) int64 Inspect
Eligible : func(addr .uverse.address, tier string) (bool, string) Inspect
AssertEligible : func(addr .uverse.address, tier string) Inspect
Portfolio : func(addr .uverse.address) string Inspect
NewMemberRequest : func(addr .uverse.address, tier string) dao.ProposalRequest Inspect
SetThreshold : func(tier string, min int64) Inspect
validateThreshold : func(tier string, min int64) Inspect
Render : func(path string) string Inspect
renderCandidate : func(addr .uverse.address) string Inspect
apiCandidate : func(addr .uverse.address) string Inspect
gnotString : func(ugnot int64) string Inspect