跳至主要内容

HashDice,The first Open Source Platform on Tron Network!!!

In the world of Blockchain, We firmly believe in WE DON'T NEED TO TRUST ANYTHING BUT THE CODE !!!
“Code is law”, it does not lie, blockchain developers can't break this baseline. So our motivation moving forward is transparency being the best decision for Hashdice future, we shall be releasing our source code for all to view, let the Code do the talking.
Although Tron doesn't provide the same verification tool currently used by Ethereum on Etherscan, it's no excuse for Dapp developers to centralize / manipulate the system. The core difference between decentralized apps and centralized apps is clear for all to see, we're dedicated to being an open and transparent decentralized application.
The Hashdice team has decided to lead the way by providing the verification tool linked to our Open Smart Contract Source Code. Instructions below should make this facility accessible to all.


Code Verification Method

Instructions below should make this facility accessible to all.
1. Install node.js and npm.
a) NodeJs official website: https://nodejs.org
b) Requires NodeJS 5.0+. Check version:
node -v  
2. Install the tronbox
npm install -g tronbox  
3. Download the source from github
a) Create a new directory called hashdice and enter the directory.
b) git clone https://github.com/hashdice/tron.git.
git clone https://github.com/hashdice/tron.git  
4. Deploy smart contracts on the shasta test chain.
a) Open tronbox.js and using your address and private key replace the comment.
    shasta: {  
      from: 'your address',  
      privateKey: 'your private key'
    }
b) Run tronbox migrate command.
tronbox migrate –-reset –-network shasta.  
c) Record the smart contract address deployed at Https://shasta.tronscan.org/#/contract/’contract address’ View contract abi and bytecode.
5. Compare the formal contract with the api and bytecode of the contract you're deploying. Due to the differences in the Tronbox versions, bytecode may have subtle differences for individual user but should not have any affect on the substantive functionality.
The official HashDice contract has been deployed at the following addresses:



评论

此博客中的热门博文

HashDice Mining Guide

This passage will introduce you with the basic rule and bonus mechanism of HashDice mining. 1. The basic mining rules Betting is mining. Players bet in the game and get HDT token according to the amount of betting. In the game, there are 2 mines, let’s say mine A and mine B. And in each mine, there are 0.8 billion HDT. Another 0.4 billion HDT fall under the two mines and the distribution ratio is unknown. Player can bet with TRX on mine A and VENA on mine B. Between the two mines, one of them will be first done, let’s say mine A for example. After mine A is done, the treasure on mine A will be distributed to miners of mine A according to the proportion of mining, and the treasure of mine B will be destroyed. And the undone part of mine B will be distributed to miners of mine B. 2. The mining bonus mechanism (1) Proof of work buff The mining progress above will be in three steps, with proportion of 10%, 65%, 25%. After the first step, buff will be offered to miners for ...