bigman1208000 / bsc-eth-swap

Implementation of BSC and ETH swap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Apache License 2.0


Languages

Language:Go 99.6%Language:Dockerfile 0.2%Language:Makefile 0.1%Language:Solidity 0.1%