This is a 0x project, it will be used to help user transfer ERC20 token or other homogenous token(ERC721). now this is total initalization version, v0.0.1. we plan complement the project ASAP.
This project is intended to be used with the
Hardhat Beginners Tutorial, but you should be
able to follow it by yourself by reading the README and exploring its
contracts
, tests
, scripts
and frontend
directories.
The first things you need to do are cloning this repository and installing its dependencies:
git clone https://github.com/NomicFoundation/hardhat-boilerplate.git
cd hardhat-boilerplate
npm install
Once installed, let's run Hardhat's testing network:
npx hardhat node
Then, on a new terminal, go to the repository's root folder and run this to deploy your contract:
npx hardhat run scripts/deploy.js --network localhost
Finally, we can run the frontend with:
cd frontend
npm install
npm start
Open http://localhost:3000/ to see your Dapp. You will
need to have Coinbase Wallet or Metamask installed and listening to
localhost 8545
.
You can find detailed instructions on using this repository and many tips in its documentation.
- Writing and compiling contracts
- Setting up the environment
- Testing Contracts
- Setting up your wallet
- Hardhat's full documentation
For a complete introduction to Hardhat, refer to this guide.
Frontend: frontend file included interface. the ui plugin we choose material ui, hope u like it. bro Test: test file, use hardhat syntax to test contracts Contracts: base contract, future we can use api interact with 0x. That's all, hope u enjoy coding travel. i'll back ASAP.
Hardhat for Visual Studio Code is the official Hardhat extension that adds advanced support for Solidity to VSCode. If you use Visual Studio Code, give it a try!