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
Rongjian Lan b3f56a5bd2 Migrate faucet contract to abi 6 years ago
..
Faucet.go Migrate faucet contract to abi 6 years ago
Faucet.sol Migrate faucet contract to abi 6 years ago
README.md Use solc generated abi and binary 6 years ago
StakeLockContract.go Add install_solc.sh 6 years ago
StakeLockContract.sol Update CurrentStake by querying stake contract 6 years ago
contract_caller.go Use solc generated abi and binary 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