owner
.uverse.addressValue
<gnolang.StringValue>
prefix
untyped stringprefix bounds who may even nominate itself. Accepting is still a separate, owner-gated decision.
Value
"gno.land/r/moul/x/upgrade/adminreg/impl/"
Impl
typeImpl 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)
Ownable
*v0.Ownable- OID
- 03a7bc…59bf:4
Ownable details
stage
intValue
0
candidates
*v0.Tree// pkgpath -> Impl
- OID
- 03a7bc…59bf:8
candidates details
live
<nil>Value
nil
livePath
stringValue
""
Propose
func(impl v0.Impl)Propose nominates the calling realm. Called from the implementation's init, so deploying makes a candidate and nothing more.
- OID
- 03a7bc…59bf:12
Propose details
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.
- OID
- 03a7bc…59bf:14
Accept details
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.
- OID
- 03a7bc…59bf:15
Close details
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.
- OID
- 03a7bc…59bf:16
Freeze details
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.
- OID
- 03a7bc…59bf:17
tighten details
Stage
func() intStage is the rung this realm is on. It only ever goes up.
- OID
- 03a7bc…59bf:18
Stage details
StageName
func() stringStageName is Stage as the word a caller reads in Render.
- OID
- 03a7bc…59bf:19
StageName details
Live
func() stringLive is the package path currently serving, or "" before the first Accept.
- OID
- 03a7bc…59bf:20
Live details
Candidates
func() []stringCandidates lists every path that has nominated itself, in order.
- OID
- 03a7bc…59bf:21
Candidates details
Greet
func(name string) stringGreet forwards to the accepted implementation.
- OID
- 03a7bc…59bf:22
Greet details
Version
func() stringVersion reports the accepted implementation's own version string.
- OID
- 03a7bc…59bf:23
Version details
assertLive
func()- OID
- 03a7bc…59bf:24
assertLive details
Render
func(string) string- OID
- 03a7bc…59bf:25