BSC-ETH-SWAP
Build
make build
Configuration
-
Generate TSS accounts
Run TestKeygen to generate tss account for BSC and ETH. Then write the two addresses to
bsc_account_addr
andeth_account_addr
. -
Transfer enough BNB and ETH to the two tss accounts.
-
Config swap agent contracts
- Deploy contracts in eth-bsc-swap-contracts
- For 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 lastest height for both BSC and ETH, and write them to
bsc_start_height
andeth_start_height
.
Start
./build/swap-backend --config-type local --config-path config/config.json