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

Functions 7

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

Execute triggers the implementation of a proposal's actions

func NoRole

Action
1func NoRole(memberStore *basedao.MembersStore, count uint64) daocond.Condition
source

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

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 string of roles to assign to the member (e.g., "admin,moderator" or "voter")

func Render

1func Render(path string) string
source

Render generates a UI representation of the DAO's state

func Vote

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

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

Imports 10

Source Files 4