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 source realm

Functions 6

func AddMember

crossing Action
1func AddMember(cur realm)
source

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

func Execute

crossing Action
1func Execute(cur realm, proposalID uint64)
source

Triggers the implementation of a proposal's actions

func ProposeAddMember

crossing Action
1func ProposeAddMember(cur realm, address address, roles string)
source

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. Parameters:

  • address: The std.Address of the member to be added
  • roles: Comma-separated roles (e.g., "public-relationships,finance-officer" or "finance-officer")

func Render

1func Render(path string) string
source

Generates a UI representation of the DAO's state

func Vote

crossing Action
1func Vote(cur realm, proposalID uint64, vote daocond.Vote)
source

Allows DAO members to cast their vote on a specific proposal

Imports 9

Source Files 3