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.

v1 source realm

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

Readme View source

gno.land/r/nym-moultest123/x/upgrade/wrap/v1

Version 1 of the wrapping versions upgrade pattern (pattern A). Keeps its own counter and adds v0's on read. Both versions stay writable, so the two paths report different totals and neither is authoritative.

z_wrap_filetest.gno walks that divergence step by step.

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/nym-moultest123/x/upgrade/wrap/v1 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 1 of the "wrapping versions" upgrade pattern (pattern A of the exploration; see ../README.md).

v1 owns a counter of its own and ADDS v0's on read. Both versions stay live and independently writable, so the two paths report different totals and neither is authoritative. That is the pattern's defining trade-off: no migration, no downtime, no coordination, and no single answer either.

Functions 3

func Get

Action
1func Get() int
source

Get returns v0's counter plus this version's own. Reading across the version boundary is a plain non-crossing call: no realm is entered as a writer, so this stays queryable from vm/qeval and from Render.

func Inc

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

Inc adds n to this version's own counter. It does NOT touch v0.

Dependencies

Source Files 4