noRoleCountCond
typeImplements a custom DAO condition requiring votes from members with no assigned roles
Value
custom_condition.noRoleCountCond
NoRole
func(memberStore *basedao.MembersStore, count uint64) daocond.ConditionNoRole creates a new condition requiring votes from members with no roles
- OID
- 074f33…2ee8:3
NoRole details
hasNoRole
func(memberStore *basedao.MembersStore, memberId string) boolChecks if a member has no assigned roles
- OID
- 074f33…2ee8:5
hasNoRole details
localDAO
*basedao.daoPublic- OID
- 074f33…2ee8:20
localDAO details
daoPrivate
*basedao.DAOPrivate- OID
- 074f33…2ee8:22
daoPrivate details
init.5
func()- OID
- 074f33…2ee8:8
init.5 details
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)
- OID
- 074f33…2ee8:10
Propose details
Vote
func(proposalID uint64, vote daocond.Vote)Vote allows DAO members to cast their vote on a specific proposal
- OID
- 074f33…2ee8:11
Vote details
Execute
func(proposalID uint64)Execute triggers the implementation of a proposal's actions
- OID
- 074f33…2ee8:12
Execute details
Render
func(path string) stringDisplays the condition requirements for UI purposes
- OID
- 074f33…2ee8:13
Render details
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.
- OID
- 074f33…2ee8:14
setImplem details
initDemoProposals
func()initDemoProposals creates initial proposals to demonstrate custom condition functionality
- OID
- 074f33…2ee8:15
initDemoProposals details
AddMember
func()Bypass limitation by adding yourself to the DAO. It is necessary to be part of the DAO to create a Proposal.
- OID
- 074f33…2ee8:17
AddMember details
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")
- OID
- 074f33…2ee8:18
ProposeAddMember details
renderDemo
func() string- OID
- 074f33…2ee8:19