localDAO
*basedao.daoPublic// Local interface for maketx call
- OID
- 04d1a1…ddb8:17
localDAO details
daoPrivate
*basedao.DAOPrivate// Full access to internal DAO state
- OID
- 04d1a1…ddb8:19
daoPrivate details
init.2
func()- OID
- 04d1a1…ddb8:5
init.2 details
Propose
func(req daokit.ProposalRequest)Creates a new proposal To execute this function, you must use a MsgRun \`gnokey 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
- 04d1a1…ddb8:7
Propose details
Vote
func(proposalID uint64, vote daocond.Vote)Allows DAO members to cast their vote on a specific proposal
- OID
- 04d1a1…ddb8:8
Vote details
Execute
func(proposalID uint64)Triggers the implementation of a proposal's actions
- OID
- 04d1a1…ddb8:9
Execute details
Render
func(path string) stringGenerates a UI representation of the DAO's state
- OID
- 04d1a1…ddb8:10
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
- 04d1a1…ddb8:11
setImplem details
initProposals
func(nb int)Creates a number of initial proposals and votes. It divides the proposals into 4 parts: AddMember, RemoveMember, AssignRole, EditProfile. It initializes votes for each proposal type.
- OID
- 04d1a1…ddb8:12
initProposals 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
- 04d1a1…ddb8:14
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 roles (e.g., "public-relationships,finance-officer" or "finance-officer")
- OID
- 04d1a1…ddb8:15
ProposeAddMember details
renderDemo
func() string- OID
- 04d1a1…ddb8:16