The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/contracts
Minh Doan cc32242962 add puzzle contract 6 years ago
..
structs Add account address to StakeInfo 6 years ago
Faucet.go Migrate faucet contract to abi 6 years ago
Faucet.sol Migrate faucet contract to abi 6 years ago
Lottery.go migrate bls identity from address to public key 6 years ago
Lottery.sol change lottery smart contract 6 years ago
Puzzle.go add puzzle contract 6 years ago
Puzzle.sol add puzzle contract 6 years ago
README.md Use solc generated abi and binary 6 years ago
StakeLockContract.go migrate bls identity from address to public key 6 years ago
StakeLockContract.sol migrate bls identity from address to public key 6 years ago
contract_caller.go Use solc generated abi and binary 6 years ago
gen.sh add puzzle contract 6 years ago

README.md

The smart contract files in this folder contains protocol-level smart contracts that are critical to the overall operation of Harmony protocol:

  • Faucet.sol is the smart contract to dispense free test tokens in our testnet.
  • StakeLockContract.sol is the staking smart contract that receives and locks stakes. The stakes are used for the POS and sharding protocol.

Solc is needed to recompile the contracts into ABI and bytecode. Please follow https://solidity.readthedocs.io/en/v0.5.3/installing-solidity.html for the installation.

Example command to compile a contract file into golang ABI.


abigen -sol contracts/StakeLockContract.sol -pkg contracts -out contracts/StakeLockContract.go