Skip to content
hugomartinez edited this page Dec 11, 2023 · 3 revisions

sales

(Single Scope: atomicmarket)

Type Name Description
uint64_t sale_id ID of the sale
name seller Seller of the sale
vector<uint64_t> asset_ids IDs of the assets being sold
int64_t offer_id -1 if no offer has been created yet, otherwise ID of the offer for this sale
asset listing_price Listing price for this sale
symbol settlement_symbol Symbol that the sale will be paid in. See Sales for more details.
name maker_marketplace Name of the marketplace facilitating the listing
name collection_name Name of the collection that all assets sold belong to
double collection_fee Collection fee as set by the collection, at the time when the listing was created

auctions

(Single Scope: atomicmarket)

Type Name Description
uint64_t auction_id ID of the auction
name seller Seller / Creator of the auction
vector<uint64_t> asset_ids IDs of the assets being auctioned
uint32_t end_time End time of the auction (seconds since epoch)
bool assets_transferred false after announcing, becomes true when the assets are transferred to the AtomicMarket account. Only then the auction is active
asset current_bid Starting bid when nobody has bid on the auction yet, otherwise the highest current bid
name current_bidder Empty when nobody has bid yet, otherwise the bidder holding the current highest bid
bool claimed_by_seller false in the beginning, becomes true when the seller claims the highest big after the auction is over
bool claimed_by_buyer false in the beginning, becomes true when the buyer (winner of the auction) claims the assets after the auction is over
name maker_marketplace Name of the marketplace facilitating the listing (creation of the auction)
name taker_marketplace Name of the marketplace facilitating the current highest bid
name collection_name Name of the collection that all assets auctioned belong to
double collection_fee Collection fee as set by the collection, at the time when the auction was created

buyoffers

(Single Scope: atomicmarket)

Type Name Description
uint64_t buyoffer_id ID of the buyoffer
name buyer Buyer of the assets
name recipient Recipient of the buyoffer and owner of the assets
asset price Price for this buyoffer
vector<uint64_t> asset_ids IDs of the assets being sold
string memo Message from the buyer to the recipient
name maker_marketplace Name of the marketplace facilitating the listing
name collection_name Name of the collection that all assets sold belong to
double collection_fee Collection fee as set by the collection, at the time when the listing was created

tbuyoffers

(Single Scope: atomicmarket)

Type Name Description
uint64_t buyoffer_id ID of the template buyoffer
name buyer Buyer of the template buyoffer
asset price Price for this buyoffer
uint64_t template_id ID of the wanted template
name maker_marketplace Name of the marketplace facilitating the listing
name collection_name Name of the collection that all assets sold belong to
double collection_fee Collection fee as set by the collection, at the time when the listing was created

marketplaces

(Single Scope: atomicmarket)

Type Name Description
name marketplace_name Name of the marketplace
name creator Creator of the marketplace. This account will receive any fees generated.

balances

(Single Scope: atomicmarket)

Note: The tokens that can be deposited to the balance are defined in the supported_tokens field of the config singleton.

Type Name Description
name owner Account of the owner
vector<asset> quantities vector containing the assets that were deposited by owner

config

Singleton

Type Name Description
string version Version of the contract
uint64_t sale_counter ID that the next sale will have
uint64_t auction_counter ID that the next auction will have
double minimum_bid_increase The minimum relative increase between two bids. new bid >= (1 + minimum_bid_increase) * current_bid
uint32_t minimum_auction_duration The minimum time in seconds that a newly announced auction must last
uint32_t maximum_auction_duration The maximum time in seconds that a newly announced auction can last
uint32_t auction_reset_duration When a bid is placed on an auction, that would end in less seconds than that, the auctions end time is adjusted to be exactly this many seconds in the future
vector<TOKEN> supported_tokens Tokens that can be deposited and used as prices for sales / auctions
vector<SYMBOLPAIR> supported_symbol_pairs Pairs of listing symbol x settlement symbol that can be used for sales. See Sales for more details.
double maker_market_fee Fee that the maker marketplace (facilitating the listing) will receive of a successful sale / auction
double taker_market_fee Fee that the taker marketplace (facilitating the purchase / bid) will receive of a successful sale / auction
name atomicassets_account Name of the account the the AtomicAssets smart contract is deployed on
name delphioracle_account Name of the account the the delphioracle smart contract is deployed on