v0 source pure
View source
gno.land/p/moul/xdao
🚧 Partial implementation. 7 of the 14 functions
panic("not implemented"),Renderreturns the literal string"TODO". The constructor and the admin list work; nothing that touches proposals does.
WhitelistDAO implements p/moul/udao's DAO interface with the
simplest possible governance: a flat list of trusted admins.
1var _ udao.DAO = (*WhitelistDAO)(nil)
2
3func NewWhitelistDAO() *WhitelistDAO // seeds admins with the calling realm
4func (d WhitelistDAO) ListAdmins() []address
Everything else (Propose, Execute, GetProposal, GetProposalStatus,
AddAdmin, DelAdmin) panics.
Why a "DAO" that is not decentralized
Two honest uses, both stated in the source:
- Bootstrapping. A realm designed to be DAO-governed needs something to govern it on day one. A whitelist satisfies the interface, so the realm can ship, and the whitelist can later replace itself with a real DAO through the same interface. No migration, no second code path.
- One person, several keys. Someone holding keys on different machines can present as a single entity without a multisig ceremony for each action.
It is not a DAO, and the name says so.
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:

⚠️ Disclaimer: provided as-is, without warranty; not security-audited. Full disclaimer: DISCLAIMER.
1
1
type WhitelistDAO
structDAO 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 WhitelistDAOfunc DelAdmin
method on WhitelistDAOfunc Execute
method on WhitelistDAOfunc GetProposal
method on WhitelistDAOfunc GetProposalStatus
method on WhitelistDAOfunc ListAdmins
method on WhitelistDAOfunc Propose
method on WhitelistDAOfunc Render
method on WhitelistDAO2
- chain/runtime/unsafe stdlib
- gno.land/p/moul/udao/v0 package