[][src]Crate marketplace

marketplace contract

Seller publishing process

seller only need invoke dtoken_seller_publish method to publish products

Buyer purchase and use process

first of all, buyers should invoke buy_dtoken method to buy the released products

Second, buyer invoke the use_token method to consume token

Functions

buy_dtoken

buy dtoken

buy_dtoken_from_reseller

buy dtoken from reseller

buy_dtoken_reward

buy_dtoken_reward

buy_dtokens

Buy more than one dtoken at a time

delete
dtoken_seller_publish

seller publish product, need seller signature

dtoken_seller_publish_inner
get_dtoken_contract

query the default dtoken contract address

get_seller_item_info
init

init contract set dtoken and split contract address

invoke
set_dtoken_contract

set dtoken contract address as the default dtoken contract address, marketplace contract will invoke dtoken contract to pay the fee need admin signature new_addr is the new dtoken contract address

set_split_policy_contract

set split contract address as the default split contract address,

update