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

custom_condition state

Back to all declarations

noRoleCountCond

type

Implements a custom DAO condition requiring votes from members with no assigned roles

Value

custom_condition.noRoleCountCond

NoRole

func(memberStore *basedao.MembersStore, count uint64) daocond.Condition

NoRole creates a new condition requiring votes from members with no roles

Open
OID
074f33…2ee8:3
NoRole details

Inspect func

hasNoRole

func(memberStore *basedao.MembersStore, memberId string) bool

Checks if a member has no assigned roles

Open
OID
074f33…2ee8:5
hasNoRole details

Inspect func

Propose

func(req daokit.ProposalRequest)

Propose creates a new proposal To execute this function, you must use a MsgRun (maketx run) See why it is necessary in Gno Documentation: [https://docs.gno.land/users/interact-with-gnokey#run](https://docs.gno.land/users/interact-with-gnokey#run)

Open
OID
074f33…2ee8:10
Propose details

Inspect func

Vote

func(proposalID uint64, vote daocond.Vote)

Vote allows DAO members to cast their vote on a specific proposal

Open
OID
074f33…2ee8:11
Vote details

Inspect func

Execute

func(proposalID uint64)

Execute triggers the implementation of a proposal's actions

Open
OID
074f33…2ee8:12
Execute details

Inspect func

Render

func(path string) string

Displays the condition requirements for UI purposes

Open
OID
074f33…2ee8:13
Render details

Inspect func

setImplem

func(newLocalDAO daokit.DAO)

Updates the DAO implementation when governance proposals change it. This allows the DAO to upgrade itself through proposals that modify its core logic.

Open
OID
074f33…2ee8:14
setImplem details

Inspect func

initDemoProposals

func()

initDemoProposals creates initial proposals to demonstrate custom condition functionality

Open
OID
074f33…2ee8:15
initDemoProposals details

Inspect func

AddMember

func()

Bypass limitation by adding yourself to the DAO. It is necessary to be part of the DAO to create a Proposal.

Open
OID
074f33…2ee8:17
AddMember details

Inspect func

ProposeAddMember

func(address .uverse.address, roles string)

Creates a Proposal to add a new member to the DAO with specified roles. This function exist to let users try the userflow of daokit with a simple MsgCall (maketx call) instead of a MsgRun. See why a run is necessary for creating a proposal -> [https://docs.gno.land/users/interact-with-gnokey#run](https://docs.gno.land/users/interact-with-gnokey#run). Parameters: - address: The std.Address of the member to be added - roles: Comma-separated string of roles to assign to the member (e.g., "admin,moderator" or "voter")

Open
OID
074f33…2ee8:18
ProposeAddMember details

Inspect func
noRoleCountCond : type =custom_condition.noRoleCountCond
NoRole : func(memberStore *basedao.MembersStore, count uint64) daocond.Condition Inspect
hasNoRole : func(memberStore *basedao.MembersStore, memberId string) bool Inspect
localDAO : *basedao.daoPublic Inspect
daoPrivate : *basedao.DAOPrivate Inspect
init.5 : func() Inspect
Propose : func(req daokit.ProposalRequest) Inspect
Vote : func(proposalID uint64, vote daocond.Vote) Inspect
Execute : func(proposalID uint64) Inspect
Render : func(path string) string Inspect
setImplem : func(newLocalDAO daokit.DAO) Inspect
initDemoProposals : func() Inspect
AddMember : func() Inspect
ProposeAddMember : func(address .uverse.address, roles string) Inspect
renderDemo : func() string Inspect