Skip to content

synycboom/bsc-evm-compatible-bridge-contract

Repository files navigation

bsc-evm-compatible-bridge-contract

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

Prepare configuration

Please refer to example env file

$ cat .env.example > .env

Install Dependencies

$ nvm use
$ npm ci

Deploy local chains to test the contracts locally

Need to have 3 terminals to run the scripts simultaneously

$ npm run chain1
$ npm run chain2

After 2 chains are running, deploy ERC721SwapAgent and ERC1155SwapAgent contracts

$ npm run chain1:erc721-deploy-agent
$ npm run chain1:erc1155-deploy-agent
$ npm run chain2:erc721-deploy-agent
$ npm run chain2:erc1155-deploy-agent

There are other useful commands to deploy contracts, see them in the package.json

Deploy to Rinkeby and BSC Test

$ npm run bsctest:erc721-deploy-agent
$ npm run bsctest:erc1155-deploy-agent
$ npm run rinkeby:erc721-deploy-agent
$ npm run rinkeby:erc1155-deploy-agent

The addresses of the deployed contracts will be in the chains folder which has chain ids as subfolders.

Specification

Design spec: https://github.com/synycboom/bsc-evm-compatible-bridge

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published