Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v0 source realm

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

Readme View source

gno.land/r/moul/x/upgrade/wrap/v0

Version 0 of the wrapping versions upgrade pattern (pattern A). A plain counter that knows nothing about any successor and stays writable forever.

See the pattern and the exploration.


Part of moul/gno-contracts — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.

Dependency graph:

gno.land/r/moul/x/upgrade/wrap/v0 dependency graph

🧪 Highly experimental — potentially vibe-coded. Not audited; may break, change, or be removed at any time. Do not use with anything of value. Full disclaimer: DISCLAIMER.

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.

Functions 3

func Get

Action
1func Get() int
source

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

func Inc

crossing Action
1func Inc(cur realm, n int)
source

Inc adds n to this version's own counter.

Imports 1

Source Files 4