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

valopers package

Overview

Package valopers is designed around the permissionless lifecycle of valoper profiles.

Function

Auth

func Auth() string

Auth returns a read-only description of the realm's current governance authority (for rendering / inspection). It renders as

Example
1contract_authority[contract=gno.land/r/gov/dao,proposer=contract-identity]

i.e. "GovDAO governs this realm, and only GovDAO may drive it" — a statement an on-chain reader can act on. The proposer half is load-bearing: without it the string is byte-identical whether the authority is gated or wide open (see ContractAuthority.String).

It deliberately does NOT return the live *authz.Authorizer: an exported handle to the authority would let any realm reach its mutators (Transfer, DoByPrevious, ...) directly. Returning a description instead of the handle keeps that surface unreachable from here in the first place. Valoper.AuthOwner follows the same rule for per-operator auth lists.

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/gnops/valopers.Auth()"

Result