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

market source realm

Functions 13

func Buy

crossing Action
1func Buy(cur realm, tid string)
source

Buy pays the listing price in ugnot and takes the token. The attached send must be exactly the price, one ugnot coin.

func Cancel

crossing Action
1func Cancel(cur realm, tid string)
source

Cancel removes the caller's listing, or a listing whose seller no longer owns the token.

func InfoJSON

Action
1func InfoJSON() string
source

InfoJSON is the collection header. ready is false until Init.

func Init

crossing Action
1func Init(cur realm, name, symbol string)
source

Init creates the collection once. The caller becomes the only minter.

func List

crossing Action
1func List(cur realm, tid string, price int64)
source

List puts tid on sale for price ugnot. The token stays with the owner. A dead listing (the recorded seller no longer owns it) is replaced.

func ListingsJSON

Action
1func ListingsJSON(offset, limit int) string
source

ListingsJSON returns one page of listings, oldest key first.

func Mint

crossing Action
1func Mint(cur realm, tid, name, image string)
source

Mint issues one token to the creator. image is an https URL.

func TokensJSON

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

TokensJSON lists tokens owned by owner.

func Transfer

crossing Action
1func Transfer(cur realm, to address, tid string)
source

Transfer moves a token the caller owns.

Dependencies

Source Files 4