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

eggling source realm

Package eggling is an on-chain egg incubator and creature collector. Plant an egg, let it incubate for a minimum numb...

Overview

Package eggling is an on-chain egg incubator and creature collector. Plant an egg, let it incubate for a minimum number of blocks, then Hatch it: the longer you waited (and a little luck, seeded from the egg's own history) decides the rarity of the creature you get. Train hatched creatures to level them up. Unlike a tamagotchi there's nothing to feed or lose to neglect — eggling is about patience and the luck of the hatch, not survival.

Functions 5

func Hatch

crossing Action
1func Hatch(cur realm, id string) string
source

Hatch hatches an incubated egg the caller owns.

func PlantEgg

crossing Action
1func PlantEgg(cur realm) string
source

PlantEgg starts incubating a new egg for the caller. Returns its ID.

func Rename

crossing Action
1func Rename(cur realm, id string, name string) string
source

Rename gives a hatched creature the caller owns a custom name.

func Render

1func Render(path string) string
source

Render shows the full egg list at "", a single egg's detail when path is a numeric ID, or one owner's eggs when path is a bech32 address.

func Train

crossing Action
1func Train(cur realm, id string) string
source

Train gives a hatched creature the caller owns some experience, leveling it up every 50 XP.

Imports 7

Source Files 2