Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

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.gno.land" -data "gno.land/r/moul/x/upgrade/lock/v0.Successor()"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/moul/x/upgrade/lock/v0, for example a function call with arguments.