Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

aaabbb/v0 package

Overview

Realm aaabbb is ONE AMM pair, AAA/BBB, and nothing else.

This is the whole instance half of the instance-per-realm pattern, and it is meant to be read in full in one screen: two configuration constants, an init that builds the pair and announces it to the registry, and one-line re-exports that forward the realm's own `cur` into the shared logic in p/moul/x/pair/v0. Every instance in the ecosystem is byte-identical to this file except for the two constants, which is what makes verifying an unknown instance a two-line diff.

The re-exports cannot be factored away: MsgCall addresses a realm path and a function name, so anything a user calls has to be declared here.

State and funds belong to THIS realm: the pair struct is its variable, the tokens sit at its own package address, and its creator paid its storage deposit. A bug in one instance cannot touch another.

Pattern, and why an AMM is the contested case for it: see the README of gno.land/p/nym-moultest123/x/pair/v0.

Function

SharesOf

func SharesOf(owner address) int64
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/nym-moultest123/x/pairs/aaabbb/v0.SharesOf()"

Result