An app that lets users purchase your ERC20 token, transfer it, and sell it back to the vendor
- Node (v18 LTS)
- Yarn (v1 or v2+)
- Git
To get started, clone the repository to your local machine:
git clone https://github.com/dianakocsis/token-vendor
-
Navigate to the cloned directory:
cd token-vendor
-
Copy the .env.example files to create a new .env file and fill in the necessary details:
cp .env.example .env
cd frontend cp .env.example .env
-
Install Dependencies
To install project dependencies, run the following commands:
yarn install cd frontend && yarn install cd ..
-
Start Local Blockchain
In a new terminal, start the local blockchain:
yarn chain
-
Deploy Contracts (In another tab)
Open another terminal tab and deploy the contracts:
yarn deploy
-
Start the Aplication (In another tab)
Finally, in a new terminal tab, start the application:
yarn start
Contract | Address Etherscan Link |
---|---|
YourToken | https://sepolia.etherscan.io/address/0xd7257Dc312a20de02343A6322655103aF2D093d5 |
Vendor | https://sepolia.etherscan.io/address/0xe94fdc7D103B3Dd7b6A152b5a455855BE41262F2 |