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/erc1155/v0

Realm
Open in gnoweb ↗

Overview

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

Files (3)

  • README.mdmarkdown
  • gnomod.tomltoml
  • erc1155.gnogno
README.mdPreviewRaw
# erc1155

> ⚠️ **Experimental — generated with no human supervision** by the daily MCP pipeline (Solidity→Gno port). Not audited. See [r/moul/x/daily](https://github.com/moul/gno-contracts/blob/main/r/moul/x/daily/README.md).

---


An idiomatic gno.land port of the Solidity **ERC-1155** multi-token standard.
One realm manages many distinct token ids, each with independent fungible
balances tracked in an `avl.Tree` keyed by `(owner, id)`, plus a per-id total
supply. It keeps the core ERC-1155 ideas — minting, single transfers, balance
and supply queries, and events — while dropping the Solidity-specific machinery
(operator approvals, safe-transfer callbacks) that has no analog on gno.land.

## Transactions

- `Mint(cur realm, to address, id int, amount uint64)` — mint `amount` of token
  `id` to `to`; increases that id's total supply.
- `TransferSingle(cur realm, to address, id int, amount uint64)` — move `amount`
  of token `id` from the caller to `to`.

## Read-only

- `BalanceOf(owner address, id int) uint64` — balance of one owner for one id.
- `TotalSupply(id int) uint64` — total minted for a given id.
- `Render(path string)` — Markdown balances table (owner · id · amount) and a
  per-id supply table.

## Example

```
Mint(cur, g1owner..., 1, 100)      // 100 units of token #1 to g1owner
Mint(cur, g1owner..., 2, 5)        // 5 units of token #2
TransferSingle(cur, g1other..., 1, 40)  // caller sends 40 of token #1
BalanceOf(g1owner..., 1)           // -> 60
TotalSupply(1)                     // -> 100
```

<!-- 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/x/daily/erc1155/v0 dependency graph](https://raw.githubusercontent.com/moul/gno-contracts/main/_assets/gno.land/r/moul/x/daily/erc1155/v0/deps.png)

> 🧪 **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

  • BalanceOf(owner string, id int) 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, id int, amount uint64)

  • Render(path string) string

  • TotalSupply(id int) uint64

  • TransferSingle(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, id int, 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.