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].
Please refer to example env file
$ cat .env.example > .env
$ nvm use
$ npm ci
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
$ 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.
Design spec: https://github.com/synycboom/bsc-evm-compatible-bridge