bsc-evm-compatible-bridge-core

command module
v0.0.0-...-ef390af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 24 Imported by: 0

README

bsc-evm-compatible-bridge-core

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].

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 bsc-evm-compatible-bridge-contract
    2. Write the two contract address to erc_721_swap_agent_addr and erc_1155_swap_agent_addr for each chain config.
  4. Config start height

    Get the latest height for both BSC and ETH, and write them to start_height for each chain config.

Start

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

Specification

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
agent
token

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL