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 state

Back to all declarations

maxImageLen

untyped bigint

Value

(200 <untyped> bigint)

maxTidLen

untyped bigint

Value

(64 <untyped> bigint)

saleCap

untyped bigint

Value

(100 <untyped> bigint)

pageMax

untyped bigint

Value

(50 <untyped> bigint)

tokenSeq

v0.ID

Value

<zero>

creator

.uverse.address

Value

<gnolang.StringValue>

ready

bool

Value

true

saleN

int

Value

1

listing

type

Value

market.listing

sale

type

Value

market.sale

Init

func(name string, symbol string)

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

Open
OID
04a1c3…5b64:116
Init details

Inspect func

Mint

func(tid string, name string, image string)

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

Open
OID
04a1c3…5b64:118
Mint details

Inspect func

Transfer

func(to .uverse.address, tid string)

Transfer moves a token the caller owns.

Open
OID
04a1c3…5b64:119
Transfer details

Inspect func

requireUser

func() .uverse.address
Open
OID
04a1c3…5b64:121
requireUser details

Inspect func

parseTid

func(tid string) v0.TokenID
Open
OID
04a1c3…5b64:122
parseTid details

Inspect func

ownerOf

func(tid v0.TokenID) .uverse.address
Open
OID
04a1c3…5b64:125
ownerOf details

Inspect func

metaNameImage

func(tid v0.TokenID) (string, string)
Open
OID
04a1c3…5b64:126
metaNameImage details

Inspect func

page

func(offset int, limit int) (int, int)
Open
OID
04a1c3…5b64:127
page details

Inspect func

List

func(tid string, price int64)

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.

Open
OID
04a1c3…5b64:130
List details

Inspect func

Cancel

func(tid string)

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

Open
OID
04a1c3…5b64:132
Cancel details

Inspect func

Buy

func(tid string)

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

Open
OID
04a1c3…5b64:133
Buy details

Inspect func

mustListing

func(id v0.TokenID) market.listing
Open
OID
04a1c3…5b64:134
mustListing details

Inspect func

InfoJSON

func() string

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

Open
OID
04a1c3…5b64:136
InfoJSON details

Inspect func

ListingsJSON

func(offset int, limit int) string

ListingsJSON returns one page of listings, oldest key first.

Open
OID
04a1c3…5b64:138
ListingsJSON details

Inspect func

ListingJSON

func(tid string) string

ListingJSON returns one listing or "null".

Open
OID
04a1c3…5b64:139
ListingJSON details

Inspect func

TokenJSON

func(tid string) string

TokenJSON returns one token, listed or not.

Open
OID
04a1c3…5b64:140
TokenJSON details

Inspect func

TokensJSON

func(owner .uverse.address, offset int, limit int) string

TokensJSON lists tokens owned by owner.

Open
OID
04a1c3…5b64:141
TokensJSON details

Inspect func

SalesJSON

func(offset int, limit int) string

SalesJSON returns the newest sales first.

Open
OID
04a1c3…5b64:142
SalesJSON details

Inspect func

lotJSON

func(tid string, lot market.listing) string
Open
OID
04a1c3…5b64:143
lotJSON details

Inspect func
maxImageLen : untyped bigint =(200 <untyped> bigint)
maxTidLen : untyped bigint =(64 <untyped> bigint)
saleCap : untyped bigint =(100 <untyped> bigint)
pageMax : untyped bigint =(50 <untyped> bigint)
token : *v0.Token Inspect
ledger : *v0.PrivateLedger Inspect
metaView : *v0.Metadata Inspect
metaLed : *v0.Ledger Inspect
enumView : *v0.Enumerable Inspect
tokenSeq : v0.ID =<zero>
creator : .uverse.address =<gnolang.StringValue>
ready : bool =true
listings : v0.Tree Inspect
sales : [100]market.sale Inspect
saleN : int =1
listing : type =market.listing
sale : type =market.sale
Init : func(name string, symbol string) Inspect
Mint : func(tid string, name string, image string) Inspect
Transfer : func(to .uverse.address, tid string) Inspect
requireReady : func() Inspect
requireUser : func() .uverse.address Inspect
parseTid : func(tid string) v0.TokenID Inspect
httpsURL : func(s string) bool Inspect
ascii : func(s string) bool Inspect
ownerOf : func(tid v0.TokenID) .uverse.address Inspect
metaNameImage : func(tid v0.TokenID) (string, string) Inspect
page : func(offset int, limit int) (int, int) Inspect
quote : func(s string) string Inspect
i64 : func(n int64) string Inspect
List : func(tid string, price int64) Inspect
Cancel : func(tid string) Inspect
Buy : func(tid string) Inspect
mustListing : func(id v0.TokenID) market.listing Inspect
pushSale : func(s market.sale) Inspect
InfoJSON : func() string Inspect
ListingsJSON : func(offset int, limit int) string Inspect
ListingJSON : func(tid string) string Inspect
TokenJSON : func(tid string) string Inspect
TokensJSON : func(owner .uverse.address, offset int, limit int) string Inspect
SalesJSON : func(offset int, limit int) string Inspect
lotJSON : func(tid string, lot market.listing) string Inspect
boolJSON : func(v bool) string Inspect
join : func(parts []string) string Inspect
Render : func(path string) string Inspect