TRON & Ethereum & BSC smart contracts that power the Bttc Network. Bttc contracts support multi-chain interoperability, as well as security and ease of use. Currently, it supports cross-chain transfer of assets and messages among TRON, Ethereum, BSC and Btcc, and will be connected to more mainstream blockchains in the future. The contract of this project contains functions such as staking and reward.
StakeManager
: Responsible for the logic of Staking, Reward, and Checkpoint verificationRootChain
: store the CheckpointsValidatorShare
: Responsible for the logic of delegate stakeStakingInfo
: recording the event logs for Staking contractsStateSender
: deliver the state transmission logs to bttc bridgeMRC20
: template of BTT token contract on the mainnetBTT
: template of BTT token contract on the childnetBTT_exchange
: Responsible for exchange TRC10 BTT to TRC20 BTT
- require node version: v11
npm install
npm run truffle:compile