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

v1 state

Back to all declarations

maxLabelLen

untyped bigint

Value

(63 <untyped> bigint)

maxNameLen

untyped bigint

Value

(255 <untyped> bigint)

maxDepth

untyped bigint

Value

(16 <untyped> bigint)

sep

untyped string

// index-key separator; never appears in names or bech32 addresses

Value

"|"

ModeClosed

untyped string

Registration-policy modes.

Value

"closed"

ModeOwner

untyped string

Registration-policy modes.

Value

"owner"

ModeOpen

untyped string

Registration-policy modes.

Value

"open"

ModeAllowlist

untyped string

Registration-policy modes.

Value

"allowlist"

ModePaid

untyped string

Registration-policy modes.

Value

"paid"

reservedNamespaces

map[string]bool

Reserved record namespaces (cannot be used by the generic SetRecord API).

Open
OID
0d6a9a…53c1:4
reservedNamespaces details

Inspect map

errInvalidName

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:6
errInvalidName details

Inspect pointer

errInvalidLabel

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:9
errInvalidLabel details

Inspect pointer

errNameUnavailable

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:12
errNameUnavailable details

Inspect pointer

errNameReserved

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:15
errNameReserved details

Inspect pointer

errNameExpired

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:18
errNameExpired details

Inspect pointer

errNameInGrace

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:21
errNameInGrace details

Inspect pointer

errUnauthorized

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:24
errUnauthorized details

Inspect pointer

errCommitmentMissing

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:27
errCommitmentMissing details

Inspect pointer

errCommitmentTooNew

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:30
errCommitmentTooNew details

Inspect pointer

errCommitmentExpired

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:33
errCommitmentExpired details

Inspect pointer

errCommitmentMismatch

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:36
errCommitmentMismatch details

Inspect pointer

errPriceChanged

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:39
errPriceChanged details

Inspect pointer

errInsufficientPay

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:42
errInsufficientPay details

Inspect pointer

errDurationTooShort

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:45
errDurationTooShort details

Inspect pointer

errDurationTooLong

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:48
errDurationTooLong details

Inspect pointer

errRecordTooLarge

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:51
errRecordTooLarge details

Inspect pointer

errRecordLimit

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:54
errRecordLimit details

Inspect pointer

errOperatorLimit

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:57
errOperatorLimit details

Inspect pointer

errPolicyLocked

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:60
errPolicyLocked details

Inspect pointer

errParentInvalid

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:63
errParentInvalid details

Inspect pointer

errPaused

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:66
errPaused details

Inspect pointer

errNotFound

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:69
errNotFound details

Inspect pointer

errNotUser

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:72
errNotUser details

Inspect pointer

errSpoofedRealm

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:75
errSpoofedRealm details

Inspect pointer

errEmptyAddress

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:78
errEmptyAddress details

Inspect pointer

errRegistrationClosed

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:81
errRegistrationClosed details

Inspect pointer

errBadRequest

*errors.errorString

Stable machine-readable error codes. Messages MAY add context, but client logic should depend on these codes.

Open
OID
0d6a9a…53c1:84
errBadRequest details

Inspect pointer

Permission

type

Permission enumerates the delegable operator capabilities.

Value

v1.Permission

PermManageRecords

v1.Permission

Value

<zero>

PermManageOperators

v1.Permission

Value

<zero>

PermManageSubnames

v1.Permission

Value

<zero>

PermRenew

v1.Permission

Value

<zero>

PermTransfer

v1.Permission

Value

<zero>

PermManagePolicy

v1.Permission

Value

<zero>

Permissions

type

Permissions is an operator grant. ExpiresAt == 0 means no expiry.

Value

v1.Permissions

ControlPolicy

type

ControlPolicy holds the explicit, readable ownership/parent control flags that replace ENS Name Wrapper fuses.

Value

v1.ControlPolicy

RegistrationPolicy

type

RegistrationPolicy governs how subnames of a name may be created. The realm-global config drives second-level registration.

Value

v1.RegistrationPolicy

Records

type

Records is the built-in resolver state for a single name.

Value

v1.Records

Name

type

Name is the single object the whole realm operates on.

Value

v1.Name

NameView

type

NameView is the read-only projection returned by GetName.

Value

v1.NameView

Config

type

Config is the realm-global configuration.

Value

v1.Config

PricingConfig

type

PricingConfig is the admin-settable pricing surface.

Value

v1.PricingConfig

PriceQuote

type

PriceQuote is returned by Price.

Value

v1.PriceQuote

RegisterRequest

type

RegisterRequest is the reveal payload for Register. The commitment the client submits via Commit MUST equal sha256hex(Name|Owner|Duration|Secret|RecordsHash|PolicyRevision) using the same field values. RecordsHash is an opaque client-computed hex digest of the intended initial records; it binds the reveal so a front-runner cannot change records. NativeAddress/SetPrimary are optional conveniences applied after creation.

Value

v1.RegisterRequest

RegistrationResult

type

RegistrationResult is returned by Register.

Value

v1.RegistrationResult

RenewalResult

type

RenewalResult is returned by Renew.

Value

v1.RenewalResult

SubnameOptions

type

SubnameOptions configures CreateSubname.

Value

v1.SubnameOptions

RecordQuery

type

RecordQuery selects which record Resolve should return.

Value

v1.RecordQuery

ResolveMode

type

ResolveMode selects exact vs inherited resolution.

Value

v1.ResolveMode

Exact

v1.ResolveMode

Value

<zero>

NearestAncestor

v1.ResolveMode

Value

<zero>

ResolveResult

type

ResolveResult is returned by Resolve.

Value

v1.ResolveResult

Event

type

Event is an append-only change record for indexers.

Value

v1.Event

EvNameRegistered

untyped string

Event types.

Value

"NameRegistered"

EvNameRenewed

untyped string

Event types.

Value

"NameRenewed"

EvNameTransferred

untyped string

Event types.

Value

"NameTransferred"

EvNameExpired

untyped string

Event types.

Value

"NameExpired"

EvNameDeleted

untyped string

Event types.

Value

"NameDeleted"

EvSubnameCreated

untyped string

Event types.

Value

"SubnameCreated"

EvPolicyChanged

untyped string

Event types.

Value

"PolicyChanged"

EvOperatorChanged

untyped string

Event types.

Value

"OperatorChanged"

EvRecordChanged

untyped string

Event types.

Value

"RecordChanged"

EvPrimaryNameChange

untyped string

Event types.

Value

"PrimaryNameChanged"

EvConfigChanged

untyped string

Event types.

Value

"ConfigChanged"

EvPaused

untyped string

Event types.

Value

"Paused"

EvUnpaused

untyped string

Event types.

Value

"Unpaused"

StringPage

type

Paged result types (gno avoids generics; concrete types keep it simple).

Value

v1.StringPage

OperatorView

type

Value

v1.OperatorView

OperatorPage

type

Value

v1.OperatorPage

EventPage

type

Value

v1.EventPage

NameStatus

type

NameStatus mirrors the lifecycle states.

Value

v1.NameStatus

StatusAvailable

v1.NameStatus

Value

<gnolang.StringValue>

StatusCommitted

v1.NameStatus

Value

<gnolang.StringValue>

StatusActive

v1.NameStatus

Value

<gnolang.StringValue>

StatusGrace

v1.NameStatus

Value

<gnolang.StringValue>

StatusExpired

v1.NameStatus

Value

<gnolang.StringValue>

StatusDeleted

v1.NameStatus

Value

<gnolang.StringValue>

StatusReserved

v1.NameStatus

Value

<gnolang.StringValue>

CommitmentView

type

CommitmentView is the read projection of a pending commitment.

Value

v1.CommitmentView

commitment

type

commitment is the stored commit record.

Value

v1.commitment

commitments

*v0.Tree

// commitment hex -> \*commitment

Open
OID
0d6a9a…53c1:94
commitments details

Inspect pointer

reverse

*v0.Tree

// address string -> canonical (primary name)

Open
OID
0d6a9a…53c1:97
reverse details

Inspect pointer

byOwner

*v0.Tree

// "owner|canonical" -> canonical

Open
OID
0d6a9a…53c1:103
byOwner details

Inspect pointer

byParent

*v0.Tree

// "parent|canonical" -> canonical

Open
OID
0d6a9a…53c1:106
byParent details

Inspect pointer

nextEventID

uint64

Value

0

Normalize

func(name string) (string, .uverse.error)

Normalize canonicalizes a name: lowercases ASCII, validates every label, and enforces length/depth limits. Non-ASCII input is rejected outright.

Open
OID
0d6a9a…53c1:110
Normalize details

Inspect func

validateLabel

func(l string) .uverse.error
Open
OID
0d6a9a…53c1:111
validateLabel details

Inspect func

mustNormalize

func(name string) string
Open
OID
0d6a9a…53c1:112
mustNormalize details

Inspect func

splitLabel

func(canonical string) (string, string)

splitLabel returns (label, parent) for a canonical name.

Open
OID
0d6a9a…53c1:113
splitLabel details

Inspect func

depthOf

func(canonical string) uint8
Open
OID
0d6a9a…53c1:114
depthOf details

Inspect func

MakeCommitment

func(name string, owner .uverse.address, duration int64, secret string, recordsHash string, policyRevision uint64) (string, .uverse.error)

MakeCommitment is the public helper clients use to derive the commitment hex to pass to Commit. It normalizes the name first so the value matches what Register recomputes at reveal. Returns an error if the name is invalid.

Open
OID
0d6a9a…53c1:115
MakeCommitment details

Inspect func

computeCommitment

func(name string, owner .uverse.address, duration int64, secret string, recordsHash string, policyRev uint64) string

computeCommitment derives the canonical commitment hex string. Clients MUST compute it identically (see RegisterRequest docs).

Open
OID
0d6a9a…53c1:116
computeCommitment details

Inspect func

digest

func(b []uint8) string

digest returns a short hex digest of a byte value, for event payloads (never store full record values in events).

Open
OID
0d6a9a…53c1:117
digest details

Inspect func

digestStr

func(s string) string
Open
OID
0d6a9a…53c1:118
digestStr details

Inspect func

statusOf

func(n *v1.Name) v1.NameStatus

statusOf computes the lifecycle status of a (possibly nil) name.

Open
OID
0d6a9a…53c1:121
statusOf details

Inspect func

parentChainValid

func(n *v1.Name) bool

parentChainValid verifies every ancestor exists, is active, and matches the stored ParentGeneration (recycling safety, invariant 16 & recycling).

Open
OID
0d6a9a…53c1:123
parentChainValid details

Inspect func

available

func(canonical string) bool

available reports whether a name may be registered now.

Open
OID
0d6a9a…53c1:124
available details

Inspect func

lengthMultiplier

func(label string) int64
Open
OID
0d6a9a…53c1:125
lengthMultiplier details

Inspect func

priceFor

func(canonical string, duration int64) (int64, .uverse.error)

priceFor computes the deterministic, overflow-checked price.

Open
OID
0d6a9a…53c1:126
priceFor details

Inspect func

mulChecked

func(a int64, b int64) (int64, .uverse.error)
Open
OID
0d6a9a…53c1:127
mulChecked details

Inspect func

Price

func(name string, duration int64) (v1.PriceQuote, .uverse.error)

Price returns a price quote for registering/renewing name for duration.

Open
OID
0d6a9a…53c1:128
Price details

Inspect func

callerUser

func() .uverse.address
Open
OID
0d6a9a…53c1:130
callerUser details

Inspect func

authorize

func(callerAddr .uverse.address, n *v1.Name, perm v1.Permission) .uverse.error

authorize is the single gate for all name mutations. Authority order: 1. admin — NOT here (admin has no routine power over user names); 2. direct owner of an active name; 3. active operator with the matching permission; 4. parent authority, when the child policy allows.

Open
OID
0d6a9a…53c1:131
authorize details

Inspect func

mustAuthorize

func(callerAddr .uverse.address, n *v1.Name, perm v1.Permission)
Open
OID
0d6a9a…53c1:132
mustAuthorize details

Inspect func

parentAuthorized

func(callerAddr .uverse.address, n *v1.Name, perm v1.Permission) bool

parentAuthorized checks whether callerAddr controls the parent AND the child's policy grants the parent that specific power.

Open
OID
0d6a9a…53c1:133
parentAuthorized details

Inspect func

Commit

func(commit string)

Commit stores a registration commitment. The commitment hides the intended name; only its hash is recorded together with the committer and timestamp.

Open
OID
0d6a9a…53c1:134
Commit details

Inspect func

Register

func(request v1.RegisterRequest) v1.RegistrationResult

Register reveals and consumes a commitment to create a second-level name.

Open
OID
0d6a9a…53c1:135
Register details

Inspect func

collectPayment

func(price int64) (paid int64, refunded int64)

collectPayment reads the attached ugnot, requires it to cover price, and forwards price to the treasury while refunding any overpayment.

Open
OID
0d6a9a…53c1:136
collectPayment details

Inspect func

Renew

func(name string, duration int64) v1.RenewalResult

Renew extends a name's expiry. Anyone may pay to renew (a socially useful property: third parties can prevent expiry but gain no authority). Renewal is allowed while Active or in Grace, never once fully Expired.

Open
OID
0d6a9a…53c1:137
Renew details

Inspect func

Transfer

func(name string, newOwner .uverse.address, clearOperators bool, clearRecords bool)

Transfer moves ownership of a name.

Open
OID
0d6a9a…53c1:138
Transfer details

Inspect func

CreateSubname

func(parent string, label string, owner .uverse.address, options v1.SubnameOptions)

CreateSubname creates label.parent according to the parent registration policy.

Open
OID
0d6a9a…53c1:139
CreateSubname details

Inspect func

DeleteSubname

func(name string)

DeleteSubname removes a subname. Callable by the owner, or by the parent when ParentCanDelete is set.

Open
OID
0d6a9a…53c1:140
DeleteSubname details

Inspect func

SetRegistrationPolicy

func(name string, policy v1.RegistrationPolicy)

SetRegistrationPolicy sets the subname-issuance policy for a name.

Open
OID
0d6a9a…53c1:141
SetRegistrationPolicy details

Inspect func

LockPolicy

func(name string, restrictions v1.ControlPolicy)

LockPolicy makes a name's control policy strictly more restrictive (emancipation). Flags may only move true->false; once Permanent, no field may be relaxed. Only the owner may lock.

Open
OID
0d6a9a…53c1:142
LockPolicy details

Inspect func

mergeRestrictive

func(cur v1.ControlPolicy, req v1.ControlPolicy) v1.ControlPolicy

mergeRestrictive returns a policy where each boolean can only go from permissive (true) to restrictive (false); Permanent can only be turned on.

Open
OID
0d6a9a…53c1:143
mergeRestrictive details

Inspect func

SetOperator

func(name string, operator .uverse.address, permissions v1.Permissions)

SetOperator grants (or updates) an operator's permissions on a name.

Open
OID
0d6a9a…53c1:144
SetOperator details

Inspect func

RemoveOperator

func(name string, operator .uverse.address)

RemoveOperator revokes an operator.

Open
OID
0d6a9a…53c1:145
RemoveOperator details

Inspect func

mustAuthorizeOwnerOrOp

func(c .uverse.address, n *v1.Name, perm v1.Permission)

mustAuthorizeOwnerOrOp allows the active owner directly or an operator with the given permission (used for record/operator management).

Open
OID
0d6a9a…53c1:146
mustAuthorizeOwnerOrOp details

Inspect func

requireRecordsMutable

func(n *v1.Name)
Open
OID
0d6a9a…53c1:147
requireRecordsMutable details

Inspect func

bumpRecords

func(n *v1.Name)
Open
OID
0d6a9a…53c1:148
bumpRecords details

Inspect func

recordMutation

func(name string) (*v1.Name, .uverse.address)

recordMutation is the shared preamble for every typed record setter: pause gate, caller authentication, name resolution, record-management authority, and records-mutable check. Returns the name and the caller address.

Open
OID
0d6a9a…53c1:149
recordMutation details

Inspect func

SetAddress

func(name string, addr string)

SetAddress sets the native address record.

Open
OID
0d6a9a…53c1:150
SetAddress details

Inspect func

setNativeAddressInternal

func(n *v1.Name, addr string)
Open
OID
0d6a9a…53c1:151
setNativeAddressInternal details

Inspect func

Address

func(name string) (string, bool)

Address returns the native address record.

Open
OID
0d6a9a…53c1:152
Address details

Inspect func

SetCoinAddress

func(name string, coinType string, value []uint8)

SetCoinAddress sets a multichain address for coinType (decimal string).

Open
OID
0d6a9a…53c1:153
SetCoinAddress details

Inspect func

CoinAddress

func(name string, coinType string) ([]uint8, bool)

CoinAddress returns a multichain address.

Open
OID
0d6a9a…53c1:154
CoinAddress details

Inspect func

SetText

func(name string, key string, value string)

SetText sets a text record; empty value deletes it (physical removal).

Open
OID
0d6a9a…53c1:155
SetText details

Inspect func

Text

func(name string, key string) (string, bool)

Text returns a text record.

Open
OID
0d6a9a…53c1:156
Text details

Inspect func

SetContentHash

func(name string, value []uint8)

SetContentHash sets the content hash record.

Open
OID
0d6a9a…53c1:157
SetContentHash details

Inspect func

ContentHash

func(name string) ([]uint8, bool)

ContentHash returns the content hash record.

Open
OID
0d6a9a…53c1:158
ContentHash details

Inspect func

SetPublicKey

func(name string, value []uint8)

SetPublicKey sets the public key record.

Open
OID
0d6a9a…53c1:159
SetPublicKey details

Inspect func

PublicKey

func(name string) ([]uint8, bool)

PublicKey returns the public key record.

Open
OID
0d6a9a…53c1:160
PublicKey details

Inspect func

SetABI

func(name string, contentType string, value []uint8)

SetABI sets an ABI blob by content type.

Open
OID
0d6a9a…53c1:161
SetABI details

Inspect func

ABI

func(name string, contentType string) ([]uint8, bool)

ABI returns an ABI blob.

Open
OID
0d6a9a…53c1:162
ABI details

Inspect func

SetInterface

func(name string, interfaceID string, target string)

SetInterface sets an interface target by interface ID.

Open
OID
0d6a9a…53c1:163
SetInterface details

Inspect func

Interface

func(name string, interfaceID string) (string, bool)

Interface returns an interface target.

Open
OID
0d6a9a…53c1:164
Interface details

Inspect func

SetRecord

func(name string, namespace string, key string, value []uint8)

SetRecord sets an arbitrary namespaced record. Reserved namespaces are rejected; use the typed setters for those.

Open
OID
0d6a9a…53c1:165
SetRecord details

Inspect func

Record

func(name string, namespace string, key string) ([]uint8, bool)

Record returns an arbitrary namespaced record.

Open
OID
0d6a9a…53c1:166
Record details

Inspect func

SetTTL

func(name string, ttl uint64)

SetTTL sets the name's TTL metadata.

Open
OID
0d6a9a…53c1:167
SetTTL details

Inspect func

guardBinary

func(value []uint8)
Open
OID
0d6a9a…53c1:168
guardBinary details

Inspect func

Resolve

func(name string, query v1.RecordQuery, mode v1.ResolveMode) v1.ResolveResult

Resolve returns a record either at the exact name or from the nearest valid ancestor (wildcard-style). Inheritance is explicit, never implicit in the primitive getters.

Open
OID
0d6a9a…53c1:169
Resolve details

Inspect func

lookupRecord

func(n *v1.Name, q v1.RecordQuery) ([]uint8, bool)
Open
OID
0d6a9a…53c1:170
lookupRecord details

Inspect func

SetPrimaryName

func(name string)

SetPrimaryName sets the caller's primary (reverse) name. The name must be active and forward-resolve (Address) to the caller.

Open
OID
0d6a9a…53c1:171
SetPrimaryName details

Inspect func

PrimaryName

func(addr string) (string, bool)

PrimaryName returns the verified primary name for an address, checking that (1) a reverse record exists, (2) the name is active, and (3) forward resolution still matches. Any failure returns not-found.

Open
OID
0d6a9a…53c1:172
PrimaryName details

Inspect func

ClearPrimaryName

func()

ClearPrimaryName clears the caller's reverse record.

Open
OID
0d6a9a…53c1:173
ClearPrimaryName details

Inspect func

invalidateReverseFor

func(oldOwner .uverse.address, canonical string)

invalidateReverseFor lazily clears a reverse record if the just-changed name no longer forward-verifies for the old owner. PrimaryName also re-verifies, so this is best-effort cleanup.

Open
OID
0d6a9a…53c1:174
invalidateReverseFor details

Inspect func

capLimit

func(limit uint16) int
Open
OID
0d6a9a…53c1:175
capLimit details

Inspect func

NamesByOwner

func(owner string, cursor string, limit uint16) v1.StringPage

NamesByOwner lists canonical names owned by owner.

Open
OID
0d6a9a…53c1:176
NamesByOwner details

Inspect func

Subnames

func(parent string, cursor string, limit uint16) v1.StringPage

Subnames lists direct subnames of parent.

Open
OID
0d6a9a…53c1:177
Subnames details

Inspect func

TextKeys

func(name string, cursor string, limit uint16) v1.StringPage

TextKeys lists text-record keys for a name.

Open
OID
0d6a9a…53c1:178
TextKeys details

Inspect func

CoinTypes

func(name string, cursor string, limit uint16) v1.StringPage

CoinTypes lists multichain coin types set for a name.

Open
OID
0d6a9a…53c1:179
CoinTypes details

Inspect func

Operators

func(name string, cursor string, limit uint16) v1.OperatorPage

Operators lists operators and their permissions for a name.

Open
OID
0d6a9a…53c1:180
Operators details

Inspect func

treeKeys

func(tree *v0.Tree, cursor string, limit uint16) v1.StringPage
Open
OID
0d6a9a…53c1:181
treeKeys details

Inspect func

eventKey

func(id uint64) string
Open
OID
0d6a9a…53c1:182
eventKey details

Inspect func

recordEvent

func(e *v1.Event)
Open
OID
0d6a9a…53c1:183
recordEvent details

Inspect func

emit

func(typ string, name string, actor .uverse.address, owner interface{...}, key string)
Open
OID
0d6a9a…53c1:184
emit details

Inspect func

emitOwner

func(typ string, n *v1.Name)
Open
OID
0d6a9a…53c1:185
emitOwner details

Inspect func

emitRecord

func(typ string, n *v1.Name, actor .uverse.address, key string, newDigest string)
Open
OID
0d6a9a…53c1:186
emitRecord details

Inspect func

EventsAfter

func(id uint64, limit uint16) v1.EventPage

EventsAfter returns events with ID strictly greater than id.

Open
OID
0d6a9a…53c1:187
EventsAfter details

Inspect func

EventsForName

func(name string, after uint64, limit uint16) v1.EventPage

EventsForName returns events for a specific name with ID greater than after.

Open
OID
0d6a9a…53c1:188
EventsForName details

Inspect func

requireAdmin

func() .uverse.address
Open
OID
0d6a9a…53c1:189
requireAdmin details

Inspect func

requireNotPaused

func()
Open
OID
0d6a9a…53c1:190
requireNotPaused details

Inspect func

SetPaused

func(paused bool)

SetPaused toggles the global pause. Paused blocks registration, subname creation, transfers and record mutation; reads, renewals and primary-name clearing remain available. It never confiscates or mutates ownership.

Open
OID
0d6a9a…53c1:191
SetPaused details

Inspect func

SetRegistrationOpen

func(open bool)

SetRegistrationOpen toggles whether new second-level registrations are open.

Open
OID
0d6a9a…53c1:192
SetRegistrationOpen details

Inspect func

SetPricing

func(pricing v1.PricingConfig)

SetPricing updates future pricing and bumps the policy revision so pending commitments that priced against the old rules are rejected at reveal.

Open
OID
0d6a9a…53c1:193
SetPricing details

Inspect func

SetTreasury

func(treasury .uverse.address)

SetTreasury updates the treasury address.

Open
OID
0d6a9a…53c1:194
SetTreasury details

Inspect func

ReserveName

func(name string, reserved bool)

ReserveName reserves (or unreserves) an unregistered name so it cannot be publicly registered. Admin may not reserve an actively-owned name.

Open
OID
0d6a9a…53c1:195
ReserveName details

Inspect func

TransferAdmin

func(next .uverse.address)

TransferAdmin begins a two-step admin handover.

Open
OID
0d6a9a…53c1:196
TransferAdmin details

Inspect func

AcceptAdmin

func()

AcceptAdmin completes the two-step admin handover.

Open
OID
0d6a9a…53c1:197
AcceptAdmin details

Inspect func

SetLimits

func(maxRecords uint16, maxOperators uint16, maxText uint32, maxBinary uint32)

SetLimits updates operational storage/abuse limits (future registrations and mutations). Existing names are unaffected until next mutation.

Open
OID
0d6a9a…53c1:198
SetLimits details

Inspect func

Status

func(name string) v1.NameStatus

Status returns the lifecycle status of a name.

Open
OID
0d6a9a…53c1:199
Status details

Inspect func

Exists

func(name string) bool

Exists reports whether a name currently resolves to a live registration.

Open
OID
0d6a9a…53c1:200
Exists details

Inspect func

OwnerOf

func(name string) (string, bool)

OwnerOf returns the owner of an active/grace name.

Open
OID
0d6a9a…53c1:201
OwnerOf details

Inspect func

GetName

func(name string) (v1.NameView, bool)

GetName returns a read-only view of a name.

Open
OID
0d6a9a…53c1:202
GetName details

Inspect func

CommitmentStatus

func(commit string) v1.CommitmentView

CommitmentStatus returns the state of a pending commitment.

Open
OID
0d6a9a…53c1:203
CommitmentStatus details

Inspect func

Render

func(path string) string

Render is a human-readable explorer. It never mutates state.

Open
OID
0d6a9a…53c1:204
Render details

Inspect func

renderName

func(name string) string
Open
OID
0d6a9a…53c1:206
renderName details

Inspect func

renderAddress

func(addr string) string
Open
OID
0d6a9a…53c1:207
renderAddress details

Inspect func

renderAvailable

func(name string) string
Open
OID
0d6a9a…53c1:208
renderAvailable details

Inspect func

coins

func(denom string, amount int64) chain.Coins
Open
OID
0d6a9a…53c1:211
coins details

Inspect func

treeGet

func(t *v0.Tree, key string) (interface{...}, bool)

treeGet adapts the avl v0 API (Get returns a single value; existence is via Has) to the (value, ok) idiom used throughout this file.

Open
OID
0d6a9a…53c1:212
treeGet details

Inspect func

getRaw

func(canonical string) *v1.Name
Open
OID
0d6a9a…53c1:213
getRaw details

Inspect func

resolvableName

func(name string) *v1.Name

resolvableName returns the name only if it is currently Active (records resolve only for active names).

Open
OID
0d6a9a…53c1:214
resolvableName details

Inspect func

mustName

func(name string) *v1.Name

mustName returns an existing name or panics with not\_found.

Open
OID
0d6a9a…53c1:215
mustName details

Inspect func

ownerKey

func(owner .uverse.address, canonical string) string
Open
OID
0d6a9a…53c1:218
ownerKey details

Inspect func

getCommitment

func(key string) (*v1.commitment, bool)
Open
OID
0d6a9a…53c1:219
getCommitment details

Inspect func

getOperator

func(n *v1.Name, addr .uverse.address) (v1.Permissions, bool)
Open
OID
0d6a9a…53c1:220
getOperator details

Inspect func

allowlistHas

func(tree *v0.Tree, addr .uverse.address) bool
Open
OID
0d6a9a…53c1:221
allowlistHas details

Inspect func

collectPaymentDenom

func(price int64, denom string, treasury .uverse.address)
Open
OID
0d6a9a…53c1:222
collectPaymentDenom details

Inspect func

prefixEnd

func(prefix string) string
Open
OID
0d6a9a…53c1:223
prefixEnd details

Inspect func
maxLabelLen : untyped bigint =(63 <untyped> bigint)
maxNameLen : untyped bigint =(255 <untyped> bigint)
maxDepth : untyped bigint =(16 <untyped> bigint)
sep : untyped string ="|"
ModeClosed : untyped string ="closed"
ModeOwner : untyped string ="owner"
ModeOpen : untyped string ="open"
ModeAllowlist : untyped string ="allowlist"
ModePaid : untyped string ="paid"
reservedNamespaces : map[string]bool Inspect
errInvalidName : *errors.errorString Inspect
errInvalidLabel : *errors.errorString Inspect
errNameUnavailable : *errors.errorString Inspect
errNameReserved : *errors.errorString Inspect
errNameExpired : *errors.errorString Inspect
errNameInGrace : *errors.errorString Inspect
errUnauthorized : *errors.errorString Inspect
errCommitmentMissing : *errors.errorString Inspect
errCommitmentTooNew : *errors.errorString Inspect
errCommitmentExpired : *errors.errorString Inspect
errCommitmentMismatch : *errors.errorString Inspect
errPriceChanged : *errors.errorString Inspect
errInsufficientPay : *errors.errorString Inspect
errDurationTooShort : *errors.errorString Inspect
errDurationTooLong : *errors.errorString Inspect
errRecordTooLarge : *errors.errorString Inspect
errRecordLimit : *errors.errorString Inspect
errOperatorLimit : *errors.errorString Inspect
errPolicyLocked : *errors.errorString Inspect
errParentInvalid : *errors.errorString Inspect
errPaused : *errors.errorString Inspect
errNotFound : *errors.errorString Inspect
errNotUser : *errors.errorString Inspect
errSpoofedRealm : *errors.errorString Inspect
errEmptyAddress : *errors.errorString Inspect
errRegistrationClosed : *errors.errorString Inspect
errBadRequest : *errors.errorString Inspect
Permission : type =v1.Permission
PermManageRecords : v1.Permission =<zero>
PermManageOperators : v1.Permission =<zero>
PermManageSubnames : v1.Permission =<zero>
PermRenew : v1.Permission =<zero>
PermTransfer : v1.Permission =<zero>
PermManagePolicy : v1.Permission =<zero>
Permissions : type =v1.Permissions
ControlPolicy : type =v1.ControlPolicy
RegistrationPolicy : type =v1.RegistrationPolicy
Records : type =v1.Records
newRecords : func() *v1.Records Inspect
Name : type =v1.Name
NameView : type =v1.NameView
Config : type =v1.Config
PricingConfig : type =v1.PricingConfig
PriceQuote : type =v1.PriceQuote
RegisterRequest : type =v1.RegisterRequest
RegistrationResult : type =v1.RegistrationResult
RenewalResult : type =v1.RenewalResult
SubnameOptions : type =v1.SubnameOptions
RecordQuery : type =v1.RecordQuery
ResolveMode : type =v1.ResolveMode
Exact : v1.ResolveMode =<zero>
NearestAncestor : v1.ResolveMode =<zero>
ResolveResult : type =v1.ResolveResult
Event : type =v1.Event
EvNameRegistered : untyped string ="NameRegistered"
EvNameRenewed : untyped string ="NameRenewed"
EvNameTransferred : untyped string ="NameTransferred"
EvNameExpired : untyped string ="NameExpired"
EvNameDeleted : untyped string ="NameDeleted"
EvSubnameCreated : untyped string ="SubnameCreated"
EvPolicyChanged : untyped string ="PolicyChanged"
EvOperatorChanged : untyped string ="OperatorChanged"
EvRecordChanged : untyped string ="RecordChanged"
EvPrimaryNameChange : untyped string ="PrimaryNameChanged"
EvConfigChanged : untyped string ="ConfigChanged"
EvPaused : untyped string ="Paused"
EvUnpaused : untyped string ="Unpaused"
StringPage : type =v1.StringPage
OperatorView : type =v1.OperatorView
OperatorPage : type =v1.OperatorPage
EventPage : type =v1.EventPage
NameStatus : type =v1.NameStatus
StatusAvailable : v1.NameStatus =<gnolang.StringValue>
StatusCommitted : v1.NameStatus =<gnolang.StringValue>
StatusActive : v1.NameStatus =<gnolang.StringValue>
StatusGrace : v1.NameStatus =<gnolang.StringValue>
StatusExpired : v1.NameStatus =<gnolang.StringValue>
StatusDeleted : v1.NameStatus =<gnolang.StringValue>
StatusReserved : v1.NameStatus =<gnolang.StringValue>
CommitmentView : type =v1.CommitmentView
commitment : type =v1.commitment
config : v1.Config Inspect
names : *v0.Tree Inspect
commitments : *v0.Tree Inspect
reverse : *v0.Tree Inspect
events : *v0.Tree Inspect
byOwner : *v0.Tree Inspect
byParent : *v0.Tree Inspect
nextEventID : uint64 =0
init.99 : func() Inspect
Normalize : func(name string) (string, .uverse.error) Inspect
validateLabel : func(l string) .uverse.error Inspect
mustNormalize : func(name string) string Inspect
splitLabel : func(canonical string) (string, string) Inspect
depthOf : func(canonical string) uint8 Inspect
MakeCommitment : func(name string, owner .uverse.address, duration int64, secret string, recordsHash string, policyRevision uint64) (string, .uverse.error) Inspect
computeCommitment : func(name string, owner .uverse.address, duration int64, secret string, recordsHash string, policyRev uint64) string Inspect
digest : func(b []uint8) string Inspect
digestStr : func(s string) string Inspect
now : func() int64 Inspect
height : func() int64 Inspect
statusOf : func(n *v1.Name) v1.NameStatus Inspect
isActive : func(n *v1.Name) bool Inspect
parentChainValid : func(n *v1.Name) bool Inspect
available : func(canonical string) bool Inspect
lengthMultiplier : func(label string) int64 Inspect
priceFor : func(canonical string, duration int64) (int64, .uverse.error) Inspect
mulChecked : func(a int64, b int64) (int64, .uverse.error) Inspect
Price : func(name string, duration int64) (v1.PriceQuote, .uverse.error) Inspect
caller : func() .uverse.address Inspect
callerUser : func() .uverse.address Inspect
authorize : func(callerAddr .uverse.address, n *v1.Name, perm v1.Permission) .uverse.error Inspect
mustAuthorize : func(callerAddr .uverse.address, n *v1.Name, perm v1.Permission) Inspect
parentAuthorized : func(callerAddr .uverse.address, n *v1.Name, perm v1.Permission) bool Inspect
Commit : func(commit string) Inspect
Register : func(request v1.RegisterRequest) v1.RegistrationResult Inspect
collectPayment : func(price int64) (paid int64, refunded int64) Inspect
Renew : func(name string, duration int64) v1.RenewalResult Inspect
Transfer : func(name string, newOwner .uverse.address, clearOperators bool, clearRecords bool) Inspect
CreateSubname : func(parent string, label string, owner .uverse.address, options v1.SubnameOptions) Inspect
DeleteSubname : func(name string) Inspect
SetRegistrationPolicy : func(name string, policy v1.RegistrationPolicy) Inspect
LockPolicy : func(name string, restrictions v1.ControlPolicy) Inspect
mergeRestrictive : func(cur v1.ControlPolicy, req v1.ControlPolicy) v1.ControlPolicy Inspect
SetOperator : func(name string, operator .uverse.address, permissions v1.Permissions) Inspect
RemoveOperator : func(name string, operator .uverse.address) Inspect
mustAuthorizeOwnerOrOp : func(c .uverse.address, n *v1.Name, perm v1.Permission) Inspect
requireRecordsMutable : func(n *v1.Name) Inspect
bumpRecords : func(n *v1.Name) Inspect
recordMutation : func(name string) (*v1.Name, .uverse.address) Inspect
SetAddress : func(name string, addr string) Inspect
setNativeAddressInternal : func(n *v1.Name, addr string) Inspect
Address : func(name string) (string, bool) Inspect
SetCoinAddress : func(name string, coinType string, value []uint8) Inspect
CoinAddress : func(name string, coinType string) ([]uint8, bool) Inspect
SetText : func(name string, key string, value string) Inspect
Text : func(name string, key string) (string, bool) Inspect
SetContentHash : func(name string, value []uint8) Inspect
ContentHash : func(name string) ([]uint8, bool) Inspect
SetPublicKey : func(name string, value []uint8) Inspect
PublicKey : func(name string) ([]uint8, bool) Inspect
SetABI : func(name string, contentType string, value []uint8) Inspect
ABI : func(name string, contentType string) ([]uint8, bool) Inspect
SetInterface : func(name string, interfaceID string, target string) Inspect
Interface : func(name string, interfaceID string) (string, bool) Inspect
SetRecord : func(name string, namespace string, key string, value []uint8) Inspect
Record : func(name string, namespace string, key string) ([]uint8, bool) Inspect
SetTTL : func(name string, ttl uint64) Inspect
guardBinary : func(value []uint8) Inspect
Resolve : func(name string, query v1.RecordQuery, mode v1.ResolveMode) v1.ResolveResult Inspect
lookupRecord : func(n *v1.Name, q v1.RecordQuery) ([]uint8, bool) Inspect
SetPrimaryName : func(name string) Inspect
PrimaryName : func(addr string) (string, bool) Inspect
ClearPrimaryName : func() Inspect
invalidateReverseFor : func(oldOwner .uverse.address, canonical string) Inspect
capLimit : func(limit uint16) int Inspect
NamesByOwner : func(owner string, cursor string, limit uint16) v1.StringPage Inspect
Subnames : func(parent string, cursor string, limit uint16) v1.StringPage Inspect
TextKeys : func(name string, cursor string, limit uint16) v1.StringPage Inspect
CoinTypes : func(name string, cursor string, limit uint16) v1.StringPage Inspect
Operators : func(name string, cursor string, limit uint16) v1.OperatorPage Inspect
treeKeys : func(tree *v0.Tree, cursor string, limit uint16) v1.StringPage Inspect
eventKey : func(id uint64) string Inspect
recordEvent : func(e *v1.Event) Inspect
emit : func(typ string, name string, actor .uverse.address, owner interface{...}, key string) Inspect
emitOwner : func(typ string, n *v1.Name) Inspect
emitRecord : func(typ string, n *v1.Name, actor .uverse.address, key string, newDigest string) Inspect
EventsAfter : func(id uint64, limit uint16) v1.EventPage Inspect
EventsForName : func(name string, after uint64, limit uint16) v1.EventPage Inspect
requireAdmin : func() .uverse.address Inspect
requireNotPaused : func() Inspect
SetPaused : func(paused bool) Inspect
SetRegistrationOpen : func(open bool) Inspect
SetPricing : func(pricing v1.PricingConfig) Inspect
SetTreasury : func(treasury .uverse.address) Inspect
ReserveName : func(name string, reserved bool) Inspect
TransferAdmin : func(next .uverse.address) Inspect
AcceptAdmin : func() Inspect
SetLimits : func(maxRecords uint16, maxOperators uint16, maxText uint32, maxBinary uint32) Inspect
Status : func(name string) v1.NameStatus Inspect
Exists : func(name string) bool Inspect
OwnerOf : func(name string) (string, bool) Inspect
GetName : func(name string) (v1.NameView, bool) Inspect
CommitmentStatus : func(commit string) v1.CommitmentView Inspect
Render : func(path string) string Inspect
renderHome : func() string Inspect
renderName : func(name string) string Inspect
renderAddress : func(addr string) string Inspect
renderAvailable : func(name string) string Inspect
renderEvents : func() string Inspect
renderHelp : func() string Inspect
coins : func(denom string, amount int64) chain.Coins Inspect
treeGet : func(t *v0.Tree, key string) (interface{...}, bool) Inspect
getRaw : func(canonical string) *v1.Name Inspect
resolvableName : func(name string) *v1.Name Inspect
mustName : func(name string) *v1.Name Inspect
putName : func(n *v1.Name) Inspect
deleteName : func(n *v1.Name) Inspect
ownerKey : func(owner .uverse.address, canonical string) string Inspect
getCommitment : func(key string) (*v1.commitment, bool) Inspect
getOperator : func(n *v1.Name, addr .uverse.address) (v1.Permissions, bool) Inspect
allowlistHas : func(tree *v0.Tree, addr .uverse.address) bool Inspect
collectPaymentDenom : func(price int64, denom string, treasury .uverse.address) Inspect
prefixEnd : func(prefix string) string Inspect