Smart Contract (exchange)¶
The dGoods standard also has a built in exchange.
Actions¶
-
class
dgoods
-
ACTION
listsalenft
(eosio::name seller, vector<uint64_t> dgood_ids, eosio::asset net_sale_amount)¶
[source] Used to list nfts for sale in the token contract itself. Callable only by
owner
, if sellable is true and token not locked, creates sale listing in the token contract, marks token as not transferable while listed for sale. An array ofdgood_ids
is required.
-
ACTION
Tables¶
-
class
dgoods
-
TABLE
asks
¶
[source] // scope is self uint64_t batch_id; vector<uint64_t> dgood_ids; eosio::name seller; eosio::asset amount; eosio::time_point_sec expiration; uint64_t primary_key() const { return batch_id; } uint64_t get_seller() const { return seller.value; }
Holds listings for sale in the built in decentralized exchange (DEX)
-
TABLE