Skip to content

Actions

Jona edited this page Jun 17, 2020 · 8 revisions

init

Parameters:

None

Description:

Initializes the config table if it hasn't been initialized before, otherwise does nothing. Has to be called once after deploying the contract.

Required Authorization:

atomicmarket account.


setminbidinc

Parameters:

Type Name Description
double minimum_bid_increase New minimum bid increase

Description:

Set the minimum bid increase that will be stored in the config table.

Required Authorization:

atomicmarket account.


setversion

Parameters:

Type Name Description
string new_version New version

Description:

Updates the version in the config table.

Required Authorization:

atomicmarket account.


addconftoken

Parameters:

Type Name Description
name token_contract Contract that the token is stored in
symbol token_symbol Symbol of the token

Description:

Adds a new TOKEN to the supported_tokens vector in the config.

Required Authorization:

atomicmarket account.


adddelphi

Parameters:

Type Name Description
name delphi_pair_name Name of the pair in the delphioracle account
bool invert_delphi_pair If true, the price coming from the delphioracle is inverted
symbol listing_symbol Symbol that the sales using this pair will be listed for
symbol settlement_symbol Symbol that the sales using this pair will be paid in

Description:

Adds a new SYMBOLPAIR to the supported_symbol_pairs vector in the config. See Sales for more details.

Required Authorization:

atomicmarket account.


setmarketfee

Parameters:

Type Name Description
double maker_market_fee Fee that the market market of a sale / auction will receive
double taker_market_fee Fee that the market market of a sale / auction will receive

Description:

Sets the maker_market_fee and taker_market_fee values in the config.

Required Authorization:

atomicmarket account.


regmarket

Parameters:

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

Description:

Creates a new marketplace. See Creating a marketplace for more details.

Required Authorization:

<creator>


withdraw

Parameters:

Type Name Description
name owner Account to withdraw balance from
asset token_to_withdraw The token and amount to withdraw

Description:

Withdraws a token from owner's balance

Required Authorization:

<owner>