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

simple_dao state

Back to all declarations

localDAO

*basedao.daoPublic

// Local interface for maketx call

Open
OID
04d1a1…ddb8:17
localDAO details

Inspect pointer

daoPrivate

*basedao.DAOPrivate

// Full access to internal DAO state

Open
OID
04d1a1…ddb8:19
daoPrivate details

Inspect pointer

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)

Open
OID
04d1a1…ddb8:7
Propose details

Inspect func

Vote

func(proposalID uint64, vote daocond.Vote)

Allows DAO members to cast their vote on a specific proposal

Open
OID
04d1a1…ddb8:8
Vote details

Inspect func

Execute

func(proposalID uint64)

Triggers the implementation of a proposal's actions

Open
OID
04d1a1…ddb8:9
Execute details

Inspect func

Render

func(path string) string

Generates a UI representation of the DAO's state

Open
OID
04d1a1…ddb8:10
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
04d1a1…ddb8:11
setImplem details

Inspect func

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.

Open
OID
04d1a1…ddb8:12
initProposals 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
04d1a1…ddb8:14
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 roles (e.g., "public-relationships,finance-officer" or "finance-officer")

Open
OID
04d1a1…ddb8:15
ProposeAddMember details

Inspect func
localDAO : *basedao.daoPublic Inspect
daoPrivate : *basedao.DAOPrivate Inspect
init.2 : 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
initProposals : func(nb int) Inspect
AddMember : func() Inspect
ProposeAddMember : func(address .uverse.address, roles string) Inspect
renderDemo : func() string Inspect