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.

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.onyx.testnets.gno.land" -data "gno.land/r/g1magld5ptgzaktqcexxq0pgq5lmdf0kz6re8hlv/x/upgrade/wrap/v0.Get()"

Result