make build
-
Generate BSC private key and ETH private key.
-
Transfer enough BNB and ETH to the above two accounts.
-
Config swap agent contracts
- Deploy contracts in eth-bsc-swap-contracts
- Example deployed contracts on testnet please refer to BSCSwapAgent and ETHSwapAgent
- Write the two contract address to
eth_swap_agent_addr
andbsc_swap_agent_addr
.
-
Config start height
Get the latest height for both BSC and ETH, and write them to
bsc_start_height
andeth_start_height
.
./build/swap-backend --config-type local --config-path config/config.json
Refer to specification