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.

lock/v0 package

Overview

untrusted-render: successor is the only stored string Render echoes, and Retire validates it with assertPkgPath before storing it.

Package lock is version 0 of the "retire the predecessor" upgrade pattern (pattern B of the exploration; see ../README.md).

Unlike pattern A, this version knows it can be superseded. Retire() freezes it and names its successor, and the freeze is one-way: once a successor has absorbed this version's total, re-opening it here would double-count.

Function

Successor

func Successor() string
Ask AI Claude ChatGPT

Successor is the path callers should move to, or "" while this version is live.

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1magld5ptgzaktqcexxq0pgq5lmdf0kz6re8hlv/x/upgrade/lock/v0.Successor()"

Result