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.

board source realm

Package board is the public OTC board of Trade Window.

Overview

Package board is the public OTC board of Trade Window.

A listing says what its owner gives and what they want, in their own words. It holds no assets and promises nothing: a deal happens only when both parties open a room in gno.land/r/tradewindow/rooms (or wherever that realm is deployed) and lock the same version of it. Contact details never belong here; everything in this realm is public forever.

Constants 1

Functions 6

func Close

crossing Action
1func Close(cur realm, id uint64)
source

Close takes a listing down. Only its owner can close it.

func ListingsOfJSON

Action
1func ListingsOfJSON(owner string, offset, limit int) string
source

ListingsOfJSON lists every listing of one owner, newest first.

func OpenJSON

Action
1func OpenJSON(side string, offset, limit int) string
source

OpenJSON lists open listings, newest first. side filters by buy, sell or swap; "" means all.

func Post

crossing Action
1func Post(cur realm, side, give, want, note string, days int) uint64
source

Post publishes a listing and returns its id. side is buy, sell or swap; give and want are short phrases such as "50,000 GNOT"; note is optional. days is how long the listing stays up: 0 means 7, the most is 30.

func Render

1func Render(path string) string
source

Render shows open listings on gnoweb, and one listing at listing/<id>.

Dependencies

Source Files 4