README.md
gno.land/r/moul/releases/v0
The registry every version of a project asks "am I the latest?". One
p/moul/releases project per name, owned by the
address that opened it, each served as a stage homepage:
| path | page |
|---|---|
"" |
every project, its latest version, its owner |
"<project>" |
the stage: latest up front, every version with its status and whether it still takes writes, the changelog |
"<project>/<version>" |
one release |
The three-line integration
import (
"chain/runtime/unsafe"
reg "gno.land/r/moul/releases/v0"
)
var self = unsafe.CurrentRealm().PkgPath() // once, at init
func Render(path string) string { return reg.Banner("myproject", self) + body(path) }
func Post(cur realm, s string) { reg.AssertWritable("myproject", self); ... }
The getters (Status, IsLatest, Latest, State, AssertWritable,
Banner, Owner, StageURL) take no realm and are called without crossing.
r/moul/demo/render is the first realm wired this way.
Every lookup is scoped by project name, which the version hard-codes. A
path is only judged by the project that names it, so nobody can pause someone
else's realm by listing its path as yanked in a project of their own. That is
why it is Status(project, path) and not Status(path).
Writes
Crossing, owner only: NewProject (first come, first served, the caller
owns it), AddRelease, SetStatus, Deprecate(version, reason, sunset),
Yank, SetSuccessor, SetDescription, TransferProject. A status is a
word: draft, prerelease, supported, deprecated, yanked,
vulnerable; latest is computed and refused.
Seeded
init lists the r/moul realms that already ship two versions, owned by moul:
config, faucet and render, each with v0 deprecated (no sunset) and v1
latest. The x/ experiments are left out on purpose.
Public, on purpose
Every guarded version imports this realm, and a private realm cannot be imported. So its code is frozen at the first deploy, and the API is kept to what a version needs. The state stays writable.
Known limit
A version already on chain is immutable and cannot gain the import. It is listed and labelled here, and only the stage page and the newer versions say it is old.
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:

⚠️ Disclaimer: provided as-is, without warranty; not security-audited. Full disclaimer: DISCLAIMER.