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

wrap/v0 package

Overview

Package wrap is version 0 of the "wrapping versions" upgrade pattern (pattern A of the exploration; see ../README.md).

Nothing here knows that a successor exists. v0 keeps its own counter and stays writable forever: callers pinned to this path keep working, and keep diverging from whatever the newer version reports.

Function

Get

func Get() int
Ask AI Claude ChatGPT

Get returns this version's counter. Non-crossing on purpose: a successor reads it without entering this realm as a writer.

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/upgrade/wrap/v0.Get()"

Result