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.

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.

On mainnet: deployment status transactions unique callers deployed revision

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.

Dependencies

Imports 1

/r/g1magld5ptgzaktqcexxq0pgq5lmdf0kz6re8hlv/x/upgrade/wrap/v0

Imported by indexer

Source Files 4