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

README.md

1.58 Kb · 34 lines

gno.land/r/moul/x/pairs/aaabbb/v0

One AMM pair, AAA/BBB, and nothing else: the worked example of an instance realm.

Read the file, it is the point. Two constants, an init that builds the pair and registers it, and one-line re-exports forwarding cur into p/moul/x/pair/v0. It is tools/pairgen output, differing only in its doc comment and in two blank imports that force the in-repo test tokens to initialise first (an instance deployed against already-deployed tokens needs neither).

1go -C tools run ./pairgen gno.land/r/moul/x/pairs/aaa/v0.AAA \
2    gno.land/r/moul/x/pairs/bbb/v0.BBB -o /tmp/out -namespace moul/x/pairs
3diff /tmp/out/aaabbb/aaabbb.gno r/moul/x/pairs/aaabbb/aaabbb.gno

Trades against the two throwaway faucet tokens r/moul/x/pairs/aaa/v0 and r/moul/x/pairs/bbb/v0. Neither has any value.


Part of 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/pairs/aaabbb/v0 dependency graph

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