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 source realm

Package edcol is an edition collection. One id is one print run. List escrows an amount on this realm. Buy can take p...

Overview

Package edcol is an edition collection. One id is one print run. List escrows an amount on this realm. Buy can take part of that amount. The book is efactory, not bazaarv5. Copies do not enter perk2.

Functions 15

func Buy

crossing Action
1func Buy(cur realm, seller address, id string, amount int64)
source

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

func Create

crossing Action
1func Create(cur realm, id, name, image string, max, mintPrice int64)
source

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

func Editions

Action
1func Editions() string
source

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

func Init

crossing Action
1func Init(cur realm, name, symbol_, cover_ string, royaltyBps int64)
source

func List

crossing Action
1func List(cur realm, id string, amount, unitPrice int64)
source

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

func Mint

crossing Action
1func Mint(cur realm, id string, to address, amount int64)
source

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

Dependencies

Source Files 2