Skip to content

SunTzuSpace/bsc-eth-swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BSC-ETH-SWAP

Build

make build

Configuration

  1. Generate BSC private key and ETH private key.

  2. Transfer enough BNB and ETH to the above two accounts.

  3. Config swap agent contracts

    1. Deploy contracts in eth-bsc-swap-contracts
    2. Example deployed contracts on testnet please refer to BSCSwapAgent and ETHSwapAgent
    3. Write the two contract address to eth_swap_agent_addr and bsc_swap_agent_addr.
  4. Config start height

    Get the latest height for both BSC and ETH, and write them to bsc_start_height and eth_start_height.

Start

./build/swap-backend --config-type local --config-path config/config.json

Specification

Refer to specification

About

Implementation of BSC and ETH swap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages