Skip to content Search Apps Documentation Source Content Run Reset Eval Playground 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.

livery source realm

Package livery is a Cellar challenge about the difference between the realm that is acting and the code that is running.

Overview

Package livery is a Cellar challenge about the difference between the realm that is acting and the code that is running.

Constants 1

const StewardPath

1const StewardPath = "gno.land/r/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/steward"
source

StewardPath is the only realm allowed to hand out the livery.

Functions 5

func Dress

Action
1func Dress(guest address)
source

Dress puts guest in the house livery. The wardrobe only obeys the steward: it checks that the steward is the realm currently acting.

func Enter

crossing Action
1func Enter(cur realm)
source

Enter lets a guest in livery into the private cellar, where the flag is.

func InLivery

Action
1func InLivery(addr address) bool
source

InLivery reports whether addr wears the livery.

func Render

1func Render(_ string) string
source

Render shows who wears the livery.

Dependencies

Source Files 5