Skip to content

A complete BSC-ETH bridge package from frontend, backend to the contracts

Notifications You must be signed in to change notification settings

Sam44323/BSC-ETH-Bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BSC - ETH Bridge

Solidity Yarn Git Ts-node Binance Ethereum React Typescript Node Express Fontawesome

This repo contains the entire bridging app from frontend to the backend and surely the contracts


These are the things that you'll get:

  • ETK (Token on ethereum chain)
  • BTK (Token on binance chain)
  • ETHBridge (Bridge on ethereum chain)
  • BSCBridge (Bridge on binance chain)

Tech-stack

Prerequisites

  • git
  • yarn
  • npx

Bridge-Contracts Folder


  • Solidity
  • Hardhat
  • Typescript
  • Eslint
  • Chai
  • Prettier
  • Typechain
  • Openzeppelin
  • Ethers
  • Waffle
  • Solhint

Bridge-Frontend Folder


  • Typescript
  • ReactJS
  • Toast
  • Jest
  • Axios
  • Usedapp
  • Fontawesome

Bridge-Backend Folder


  • Typescript
  • dotenv
  • Winston
  • express
  • ts-node
  • typechain
  • cors

Scripts

Wanna contribute? Cool! Fork the repo and run the following commands for the following folders based on which part you want to contribute for


Bridge-Contracts Folder


Install the dependencies

yarn

Compile the contracts

yarn compile

Run the test suite

yarn test

Run the entire coverage test

yarn coverage

Testing a specific file

yarn test test/<test-file-name>

Bridge-Frontend Folder


Install the dependencies

yarn

Start the dev server

yarn start

Running tests for components

yarn test

Create a prod build

yarn build

Bridge-Backend Folder


Install the dependencies

yarn

Start the dev server

yarn dev

Creating a build set

yarn build

Starting the build server

yarn start

Generating the types based on abis

yarn generate

Utility Script Inside Bridge-Contracts


Note: The following script copies the abis from contracts folder to backend and frontend respectively. When you want to generate types based on the abis, make sure to extract out the json file


Copying the abi's

cd Bridge-Contracts
ts-node fileTransfer.ts

About

A complete BSC-ETH bridge package from frontend, backend to the contracts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages