Core bridge for evm compatible chains which is based on https://github.com/binance-chain/bsc-eth-swap.
This project is part of Binance Smart Chain Hackathon : Build NFT Bridge Between EVM Compatible Chains hackathon [https://gitcoin.co/issue/binance-chain/grant-projects/2/100026811].
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 bsc-evm-compatible-bridge-contract
- Write the two contract address to
erc_721_swap_agent_addr
anderc_1155_swap_agent_addr
for each chain config.
-
Config start height
Get the latest height for both BSC and ETH, and write them to
start_height
for each chain config.
./build/swap-backend --config-type local --config-path config/config.json
Design spec: https://github.com/synycboom/bsc-evm-compatible-bridge
It has similar design spec as https://github.com/binance-chain/bsc-eth-swap/blob/main/docs/spec.md