Starcoin cross-chain bridge Ethereum implementation.
npm install
For development
network:
Truffle will use truffle-generated accounts in this private network.
For other
networks:
The default development requires a .private_key
file in the root directory, truffle will use it as the default account[0]
account.
truffle compile
truffle migrate
depoly on Ropsten network
truffle migrate --network eth_ropsten_bifrost
truffle test
truffle test tests/stc_test.json
truffle compile后,在build/contracts/*.json中,有abi和bytecode等字段。