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/x/daily/erc20/v0

Realm
Open in gnoweb ↗

Overview

Kind
Realm (renderable)
Name
v0
Namespace
moul / x / daily / erc20
Files
3 (README)(gnomod.toml)
Exported functions
10
Module
gno.land/r/moul/x/daily/erc20/v0
gno
0.9

Files (3)

  • README.mdmarkdown
  • gnomod.tomltoml
  • erc20.gnogno
README.mdPreviewRaw
# MiniToken (ERC-20)

> ⚠️ **Experimental — generated with no human supervision.** This realm was
> produced automatically by an MCP-driven agent to exercise the gno MCP server
> and tooling, and to generate test content for gno compilers, linters and
> formatters. **Not audited. Not for production.** Full context & folder README:
> [r/moul/x/daily](https://github.com/moul/gno-contracts/blob/main/r/moul/x/daily/README.md)

---


A minimal fungible-token realm for gno.land (gno 0.9 / sapphire), porting the
classic Solidity ERC-20 idea. It keeps package-level state — a balances map, a
total supply, and per-owner allowances — behind gno 0.9 crossing functions that
authenticate the caller via `cur.IsCurrent()` + `cur.Previous()`. `Render`
returns a Markdown dashboard with the token metadata and a table of holders.

**Realm path:** `gno.land/r/REPLACE_ADDR/erc20` (deploy address injected at deploy time).

## Exported API

- `Mint(cur realm, to address, amount uint64)` — create new tokens for `to`.
- `Transfer(cur realm, to address, amount uint64)` — send tokens from the caller.
- `Approve(cur realm, spender address, amount uint64)` — grant a spending allowance.
- `TransferFrom(cur realm, from, to address, amount uint64)` — spend an allowance.
- `BalanceOf(holder address) uint64` · `Allowance(owner, spender address) uint64`
- `TotalSupply() uint64` · `Name() string` · `Symbol() string`
- `Render(path string) string` — Markdown view for gnoweb.

## Example calls

```sh
# Mint 1000 MINI to yourself
gnokey maketx call -pkgpath "gno.land/r/REPLACE_ADDR/erc20" \
  -func Mint -args "<your-addr>" -args 1000 \
  -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid sapphire-1 <key>

# Transfer 250 MINI to another account
gnokey maketx call -pkgpath "gno.land/r/REPLACE_ADDR/erc20" \
  -func Transfer -args "<recipient-addr>" -args 250 \
  -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid sapphire-1 <key>
```

View the token dashboard at `https://gno.land/r/REPLACE_ADDR/erc20` on gnoweb.

<!-- 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.

> 🧪 **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](https://github.com/moul/gno-contracts/blob/main/DISCLAIMER.md).

<!-- END GNOCONTRACTS FOOTER -->

Functions

  • Allowance(owner string, spender string) uint64

  • Approve(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, spender string, amount uint64)

  • BalanceOf(holder string) uint64

  • Mint(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, to string, amount uint64)

  • Name() string

  • Render(path string) string

  • Symbol() string

  • TotalSupply() uint64

  • Transfer(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, to string, amount uint64)

  • TransferFrom(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, from string, to string, amount uint64)

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.