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 state

Back to all declarations

owner

.uverse.address

Value

<gnolang.StringValue>

prefix

untyped string

prefix bounds who may even nominate itself. Accepting is still a separate, owner-gated decision.

Value

"gno.land/r/moul/x/upgrade/adminreg/impl/"

Impl

type

Impl is the contract an implementation realm must satisfy.

Value

v0.Impl

StageOpen

untyped bigint

// anything under the prefix may propose, the owner may accept any candidate

Value

(0 <untyped> bigint)

StageClosed

untyped bigint

// no new candidates; the owner may still accept among those already proposed

Value

(1 <untyped> bigint)

StageFrozen

untyped bigint

// nothing may be accepted again, whatever is live is final

Value

(2 <untyped> bigint)

stage

int

Value

0

live

<nil>

Value

nil

livePath

string

Value

""

Propose

func(impl v0.Impl)

Propose nominates the calling realm. Called from the implementation's init, so deploying makes a candidate and nothing more.

Open
OID
03a7bc…59bf:12
Propose details

Inspect func

Accept

func(pkgPath string)

Accept promotes a proposed path to live. Owner-gated, and it takes a STRING, so it is callable straight from a wallet.

Open
OID
03a7bc…59bf:14
Accept details

Inspect func

Close

func()

Close stops new candidates. The owner may still accept among those already proposed, so a rollback stays possible while new code does not.

Open
OID
03a7bc…59bf:15
Close details

Inspect func

Freeze

func()

Freeze ends this realm's upgradeability, forever. There is no rung above it and nothing takes it back: that is the whole point, and it is the only way out of every caller trusting the owner rather than the code.

Open
OID
03a7bc…59bf:16
Freeze details

Inspect func

tighten

func(to int)

tighten is the ratchet. Owner-gated, and it refuses to loosen: the stage is the one piece of state here that a later owner cannot undo.

Open
OID
03a7bc…59bf:17
tighten details

Inspect func

Stage

func() int

Stage is the rung this realm is on. It only ever goes up.

Open
OID
03a7bc…59bf:18
Stage details

Inspect func

StageName

func() string

StageName is Stage as the word a caller reads in Render.

Open
OID
03a7bc…59bf:19
StageName details

Inspect func

Live

func() string

Live is the package path currently serving, or "" before the first Accept.

Open
OID
03a7bc…59bf:20
Live details

Inspect func

Candidates

func() []string

Candidates lists every path that has nominated itself, in order.

Open
OID
03a7bc…59bf:21
Candidates details

Inspect func

Greet

func(name string) string

Greet forwards to the accepted implementation.

Open
OID
03a7bc…59bf:22
Greet details

Inspect func

Version

func() string

Version reports the accepted implementation's own version string.

Open
OID
03a7bc…59bf:23
Version details

Inspect func
owner : .uverse.address =<gnolang.StringValue>
prefix : untyped string ="gno.land/r/moul/x/upgrade/adminreg/impl/"
Impl : type =v0.Impl
StageOpen : untyped bigint =(0 <untyped> bigint)
StageClosed : untyped bigint =(1 <untyped> bigint)
StageFrozen : untyped bigint =(2 <untyped> bigint)
Ownable : *v0.Ownable Inspect
stage : int =0
candidates : *v0.Tree Inspect
live : <nil> =nil
livePath : string =""
Propose : func(impl v0.Impl) Inspect
Accept : func(pkgPath string) Inspect
Close : func() Inspect
Freeze : func() Inspect
tighten : func(to int) Inspect
Stage : func() int Inspect
StageName : func() string Inspect
Live : func() string Inspect
Candidates : func() []string Inspect
Greet : func(name string) string Inspect
Version : func() string Inspect
assertLive : func() Inspect
Render : func(string) string Inspect