Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

/r/nym-moultest123/config/v0

Directory · 4 Files
README.md Open

gno.land/r/nym-moultest123/config

The manager list for moul's realms: one place that answers "may this address administer my contracts", so the other realms do not each carry their own whitelist.

It is a thin realm around p/moul/authz. All state is the single Authorizer.

1func AddManager(cur realm, addr address) error
2func RemoveManager(cur realm, addr address) error
3func TransferManagement(cur realm, newAuthority authz.Authority) error
4func ListManagers(cur realm) []address
5func HasManager(cur realm, addr address) bool

init refuses to run unless the caller is an EOA (cur.Previous().IsUserCall()) and seeds the authority with that address. AddManager and RemoveManager only work while the authority is a MemberAuthority; once TransferManagement hands control to something else (a DAO, a contract), they return an error rather than silently bypassing the new authority.

Consumers should call HasManager and gate on the result. It is a read, so it costs nothing beyond the cross-realm call.


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/r/nym-moultest123/config/v0 dependency graph

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