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 661a090a67 add gen.sh 6 years ago
..
structs put StakeInfo into the calcualtion of shard state 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 add loterry contract 6 years ago
Lottery.sol add loterry contract 6 years ago
README.md Use solc generated abi and binary 6 years ago
StakeLockContract.go Add Bls Key into staking contract; Let new node to read hard-coded keys 6 years ago
StakeLockContract.sol Add Bls Key into staking contract; Let new node to read hard-coded keys 6 years ago
contract_caller.go Use solc generated abi and binary 6 years ago
gen.sh add gen.sh 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