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

v0 source pure

Readme View source

gno.land/p/moul/xdao/v0

TODO: describe this package.


Part of moul/gno-contracts — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.

Dependency graph:

gno.land/p/moul/xdao/v0 dependency graph

⚠️ Disclaimer: provided as-is, without warranty; not security-audited. Full disclaimer: DISCLAIMER.

Functions 1

Types 1

type WhitelistDAO

struct
1type WhitelistDAO struct {
2	admins []address // for the sake of simplicity and because this simple DAO implementation isn't designed to scale, we just keep a simple slice
3}
source

DAO is a whitelist system that implements the udao.DAO interface. It can allow a trusted list of addresses to share the administration of realms that are designed to be managed by "DAOs". It's not a DAO per say. But makes sense to be used to bootstrap a realm until the DAO can replace itself with a really decnetralized autonomous organization. Asan inception. It's also useful for people who manages multiple keys, like on different computers so they can simulte being a single entity while managing several addresses.

Methods on WhitelistDAO

func AddAdmin

method on WhitelistDAO
1func (d *WhitelistDAO) AddAdmin(addr address)
source

func DelAdmin

method on WhitelistDAO
1func (d *WhitelistDAO) DelAdmin(addr address)
source

func Execute

method on WhitelistDAO
1func (d *WhitelistDAO) Execute(id uint64) error
source

func GetProposal

method on WhitelistDAO
1func (d WhitelistDAO) GetProposal(id uint64) (udao.Proposal, error)
source

func GetProposalStatus

method on WhitelistDAO
1func (d WhitelistDAO) GetProposalStatus(id uint64) (udao.ProposalStatus, error)
source

func ListAdmins

method on WhitelistDAO
1func (d WhitelistDAO) ListAdmins() []address
source

func Propose

method on WhitelistDAO
1func (d *WhitelistDAO) Propose(prop udao.Proposal) (uint64, error)
source

func Render

method on WhitelistDAO
1func (d WhitelistDAO) Render(path string) string
source

Imports 2

Source Files 3