Bridge Backend: https://github.com/ilchovski98/ERC20-bridge-backend Bridge Smart Contract: https://github.com/ilchovski98/ERC20-bridge-smart-contract
Project uses React.js and it's bootstraped via Create React app.
Folders and files
.vscode
- Some VSCode settingspublic
- Public folder for assets like fonts and imagessrc
- Source code for the app, here is all the logic and functionalitiesabi
- Compiled json files by the contracts, used for contract interaction withethers.js
components
- React.js component files containing logic for specific behaviours, see more detials belowhooks
- React hooks containing functionalities that will be used on multiple places across the app and provide easy interfacepages
- Pages components defining the high level app information architectureservices
- Ready methods for the interaction with api endpoints and gathering blockchain datastyle
-scss
styling files, see more details belowutils
- some helpers functionsconfig.js
- hardcoded values for the used chains and ERC20 tokensindex.js
- initial point for boostraping the react.js project
For styling the app, we use sightly extended Bootstrap 5 version with scss. All the needed style variables are in src/style/_variables.scss
and new styles can be added in src/style/components
- Create .env file according to the .env.example
- Add your desired hardcoded values in src/config.js for your desired tokens and chains
- Run yarn start