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
Eugene Kim 8cc2543c9e Move header fields into private struct; expose them using getters/setters 5 years ago
..
structs Move ShardState et al from ./core/types to ./shard 5 years ago
Faucet.go Increase faucet money 6 years ago
Faucet.sol Increase faucet money 6 years ago
Lottery.go Regen go file 6 years ago
Lottery.sol Add comments 6 years ago
Puzzle.go Increase reward to 5 6 years ago
Puzzle.sol Increase reward to 5 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 Move header fields into private struct; expose them using getters/setters 5 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