buyMiner(uint64) :
Buy the Miner, buyer pay for the price and target the buyer as new owner of the Miner in the contract and transfer the money to seller.
- minerId: Miner ID
cancelList(uint64) :
Cancel the listed on sale Miner order
- minerId: Miner ID
changePrice(uint64,uint256) :
Edit the price of listed Miner
- minerId: Miner ID
- newPrice: New sale price
confirmTransferMinerIntoSPex(uint64,bytes,uint256) :
Validate if it’s the true owner of the Miner that sign. If yes, accept the Miner and transfer it into the contract and internally record that the Miner belongs to the current message sender.
- minerId: Miner ID
- sign: Use the old owner adress to sign the content that the miner id already executed the Hex transformation.
getListMinerById(uint64) :
check owner info of the listed Miner via Miner ID
- minerId: Miner ID
getOwnerById(uint64) :
Check owner info of the Miner via Miner ID
- minerId: Miner ID
listMiner(uint64,uint256) :
Designate Miner & price and list the Miner on sale
- minerId: Miner ID
- price: Sale price