Smart contracts that powers the PoS (proof-of-stake) based bridge mechanism for Bttc Network. A cross-chain bridge based on pos consensus, which has both security and ease of use.
RootChainManager: Responsible for the logic of deposit and withdrawChildChainManager: Responsible map token between mainnet and childnet, also mint the token on child chain when token locked on mainnetERC20Predicate: the tokens that user deposit will be locked in the proxy of this contractMintableERC20Predicate: likeERC20Predicate, also responsible for mint token on mainnet for the token which can be minted on child chainDummyERC20: template for ERC20 token in mainnetChildERC20: template for ERC20 token in childnet
- require node version: v11
npm install
npm run truffle:compile
node scripts/flatten-contracts.js