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 logic is version 0 of the logic realm of the "state realm + swappable logic" upgrade pattern (pattern C of th...

Readme View source

gno.land/r/moul/x/upgrade/store/logic/v0

Version 0 of the logic realm of pattern C. Owns no state: every write lands in root/v0. Step is 1.

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/store/logic/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 logic is version 0 of the logic realm of the "state realm + swappable logic" upgrade pattern (pattern C of the exploration; see ../../README.md).

It owns no state at all. Everything it writes lands in the root data realm, which is what makes replacing this realm cheap: there is nothing here to migrate.

Constants 1

const Step

1const Step = 1
source

Step is this version's business rule: one call, one unit.

Functions 3

func Get

Action
1func Get() int
source

Get reads the shared counter. Same number every version sees.

func Inc

crossing Action
1func Inc(cur realm) int
source

Inc applies this version's rule to the shared counter.

Imports 2

Source Files 4