ModeBook - An OrderBook application on the Mode Blockchain
Frontend: ModeBook
Smart contracts: Github
Test tokens (WETH & USDM): Faucets
ModeBook has utilized SFS as for all smart contracts, more details can be found here.
ModeBook is a fully on-chain Orderbook application; therefore, all interactions will connect to smart contracts directly. We use Solidity and Hardhat to develop smart contracts. For the front-end development, we use NextJS and Wagmi.
To understand source code, you should have basic knowlege of:
- Sepolia.Mode testnet.
- Solidity
- Hardhat
- NodeJS
- React
- Next JS
- Wagmi
- Linux commands.
Step 1: Install Dev environment
- Install NodeJS (16+)
- Install VisualCode studio.
- Install Solidity & Hardhat addons for VisualCode.
Step 2: Install libraries
- Go to each folder
cd frontend
->npm i
cd contracts
->npm i
Step 3: Deploy smart contracts
Read this file README.md for more details.
Step 4: Setup .env
Setup ENV file in each folder: Frontend, Contracts.
cp .env.example .env
and change variable values.
- To run Backend and Frontend applications in Production mode, use this command:
npm run build
andpm2 run npm --name "your app name" -- run start
Read this file README.md for more details.`
We welcome any ideas or suggestions to help us make ModeBook better. Please do not hesitate to contact us via email at levi@a2n.finance.
This package is released under the BSL 1.1 License.