PathrockNetwork Gno Explorer
HomeBlocksTransactionsRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/r/moul/demo/importdemo/v0

Realm
Open in gnoweb ↗

Overview

Kind
Realm (renderable)
Name
v0
Namespace
moul / demo / importdemo
Files
3 (README)(gnomod.toml)
Exported functions
1
Module
gno.land/r/moul/demo/importdemo/v0
gno
0.9

Files (3)

  • README.mdmarkdown
  • gnomod.tomltoml
  • contract.gnogno
README.mdPreviewRaw
# `gno.land/r/moul/demo/importdemo/v0`

A minimal realm that imports and composes packages from **another namespace** —
that is the whole point of the demo. It builds a small thread of posts and
renders it as Markdown.

```
/r/moul/demo/importdemo/v0   → the demo thread
```

Uses [`p/nt/avl/v0`](https://gno.land/p/nt/avl/v0) for ordered storage and
[`p/nt/ufmt/v0`](https://gno.land/p/nt/ufmt/v0) for formatting. Both are
published on every chain we target.

Stateless: `Render` rebuilds the thread on every call, so its output depends
only on the code.

### Only depend on what the chain actually serves

An earlier cut of this demo imported `gno.land/p/archive/dom`, which is
published on **no** chain we target. It type-checked locally and passed CI —
the package was vendored — but could never be deployed; `addpkg` failed with:

```
could not import gno.land/p/archive/dom (unknown import path "gno.land/p/archive/dom")
```

That is the trap this demo now documents: a vendored dependency makes the build
green regardless of whether any chain can resolve it.

<!-- BEGIN GNOCONTRACTS FOOTER (generated by `make readmes`; do not edit below) -->

---

Part of **[moul/gno-contracts](https://github.com/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/demo/importdemo/v0 dependency graph](https://raw.githubusercontent.com/moul/gno-contracts/main/_assets/gno.land/r/moul/demo/importdemo/v0/deps.png)

> ⚠️ **Disclaimer:** provided as-is, without warranty; not security-audited. Full disclaimer: [DISCLAIMER](https://github.com/moul/gno-contracts/blob/main/DISCLAIMER.md).

<!-- END GNOCONTRACTS FOOTER -->

Functions

  • Render(path string) string

Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.

Rendered

RenderedRawgnoweb ↗

vm/qrender output, sanitized (docs/render-security.md) and displayed in an empty-sandbox iframe — scripts, forms and popups cannot run. Links stay inert in-preview; right-click to open.