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.

edcol state

Back to all declarations

nativeDenom

untyped string

Value

"ugnot"

maxSupply

int64

Value

1000000000

maxNameLen

untyped bigint

Value

(64 <untyped> bigint)

maxImageLen

untyped bigint

Value

(200 <untyped> bigint)

edition

type

Value

edcol.edition

listing

type

Value

edcol.listing

inited

bool

Value

true

creator

.uverse.address

Value

<gnolang.StringValue>

self

.uverse.address

Value

<gnolang.StringValue>

name_

string

Value

"Prints"

symbol

string

Value

"PRINT"

cover

string

Value

"https://nomaq.xyz/bazaar-mark.svg"

royalty

int64

Value

500

copies

int64

Value

4

Init

func(name string, symbol_ string, cover_ string, royaltyBps int64)
Open
OID
066249…18d7:16
Init details

Inspect func

Create

func(id string, name string, image string, max int64, mintPrice int64)

Create opens an edition. Only the creator can call it. max is the copy cap. mintPrice 0 means only the creator can mint.

Open
OID
066249…18d7:18
Create details

Inspect func

Mint

func(id string, to .uverse.address, amount int64)

Mint adds copies. The creator mints without payment. Anyone else pays mintPrice each.

Open
OID
066249…18d7:19
Mint details

Inspect func

List

func(id string, amount int64, unitPrice int64)

List escrows amount of id at a unit price. One open listing per seller and id.

Open
OID
066249…18d7:20
List details

Inspect func

Buy

func(seller .uverse.address, id string, amount int64)

Buy takes amount copies from seller's listing. Payment is unit price times amount.

Open
OID
066249…18d7:22
Buy details

Inspect func

Transfer

func(to .uverse.address, id string, amount int64)
Open
OID
066249…18d7:23
Transfer details

Inspect func

BalanceOf

func(addr string, id string) int64
Open
OID
066249…18d7:24
BalanceOf details

Inspect func

Listing

func(seller string, id string) string
Open
OID
066249…18d7:27
Listing details

Inspect func

Editions

func() string

Editions is id|name|image|max|minted|mintPrice, one edition per line.

Open
OID
066249…18d7:30
Editions details

Inspect func

OpenListings

func() string

OpenListings is seller|id|amount|unitPrice, one listing per line.

Open
OID
066249…18d7:31
OpenListings details

Inspect func

requireUser

func() .uverse.address
Open
OID
066249…18d7:32
requireUser details

Inspect func

mustEdition

func(id string) *edcol.edition
Open
OID
066249…18d7:33
mustEdition details

Inspect func

listKey

func(seller .uverse.address, id string) string
Open
OID
066249…18d7:34
listKey details

Inspect func

split

func(price int64) (sellerAmt int64, royal int64, sinkAmt int64)
Open
OID
066249…18d7:35
split details

Inspect func

pay

func(seller .uverse.address, sellerAmt int64, royal int64, sinkAmt int64)
Open
OID
066249…18d7:36
pay details

Inspect func

parseAddr

func(raw string) (.uverse.address, bool)
Open
OID
066249…18d7:39
parseAddr details

Inspect func

validName

func(name string) bool
Open
OID
066249…18d7:41
validName details

Inspect func

validSymbol

func(s string) bool
Open
OID
066249…18d7:42
validSymbol details

Inspect func

validImage

func(u string) bool
Open
OID
066249…18d7:43
validImage details

Inspect func
nativeDenom : untyped string ="ugnot"
maxSupply : int64 =1000000000
maxNameLen : untyped bigint =(64 <untyped> bigint)
maxImageLen : untyped bigint =(200 <untyped> bigint)
edition : type =edcol.edition
listing : type =edcol.listing
inited : bool =true
creator : .uverse.address =<gnolang.StringValue>
self : .uverse.address =<gnolang.StringValue>
name_ : string ="Prints"
symbol : string ="PRINT"
cover : string ="https://nomaq.xyz/bazaar-mark.svg"
royalty : int64 =500
copies : int64 =4
ledger : *v0.Ledger Inspect
editions : v0.Tree Inspect
listings : v0.Tree Inspect
Init : func(name string, symbol_ string, cover_ string, royaltyBps int64) Inspect
Create : func(id string, name string, image string, max int64, mintPrice int64) Inspect
Mint : func(id string, to .uverse.address, amount int64) Inspect
List : func(id string, amount int64, unitPrice int64) Inspect
Cancel : func(id string) Inspect
Buy : func(seller .uverse.address, id string, amount int64) Inspect
Transfer : func(to .uverse.address, id string, amount int64) Inspect
BalanceOf : func(addr string, id string) int64 Inspect
Supply : func(id string) int64 Inspect
TokenURI : func(id string) string Inspect
Listing : func(seller string, id string) string Inspect
Name : func() string Inspect
Symbol : func() string Inspect
Editions : func() string Inspect
OpenListings : func() string Inspect
requireUser : func() .uverse.address Inspect
mustEdition : func(id string) *edcol.edition Inspect
listKey : func(seller .uverse.address, id string) string Inspect
split : func(price int64) (sellerAmt int64, royal int64, sinkAmt int64) Inspect
pay : func(seller .uverse.address, sellerAmt int64, royal int64, sinkAmt int64) Inspect
takeExact : func(want int64) Inspect
mul : func(a int64, b int64) int64 Inspect
parseAddr : func(raw string) (.uverse.address, bool) Inspect
validID : func(id string) bool Inspect
validName : func(name string) bool Inspect
validSymbol : func(s string) bool Inspect
validImage : func(u string) bool Inspect
jsonStr : func(s string) string Inspect
pctURI : func(s string) string Inspect