Smart contract for ChainDev Market Place designed by Infosec Lab., PKU. and ChainMap.
Post a challenge on the blockchain. More details.
- Parameters: address, challengeId, challengeLevel, challenge, timeEstimation
- Return: null
Save an answer on the blockchain.More details.
- Parameters: address, challengeId, answerId, answer
- Return: null
Get the information about a challenge from blockchain.
- Parameters: challengeId
- Return: Challenge Info
Vote answer on the blcokchain. More details.
- Parameters: address, challengeId, answerId, result
- Return: null
Reward a challenge, its answers and related voter.
- Parameters: challengeId
- return: null
More details about functions.
Get the name of this project.
- Parameters: null
- return: "ChainMap"
Get the name of this project.
- Parameters: null
- return: "ChainMap"
Get the symbol of our token.
- Parameters: null
- return: "CMAP"
Get the total number of our token.
- Parameters: null
- return: "CMAP"
Transfer token from one account to another.
- Parameters: to, value
- return: null
Get the balance of the account.
- Parameters: owner
- return: balance