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

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/moul/x/pair/v0.

Function

Keys

func Keys() (string, string)

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/pairs/aaabbb/v0.Keys()"

Result