This project is a decentralized TaskToken economy platform built on Ethereum. It includes smart contracts for managing jobs, freelancers, and reputation, as well as a front-end interface for users to interact with the platform.
The platform allows freelancers to register, complete jobs, and receive ratings. Clients can post jobs and rate freelancers based on their performance. The reputation of freelancers is tracked on the blockchain.
The smart contracts are written in Solidity and include the following:
Escrow.sol: Manages payment escrow between clients and freelancers.Identity.sol: Manages user identities.Job.sol: Manages job postings and assignments.Lock.sol: Example contract for locking funds.Reputation.sol: Manages freelancer ratings and reputation.
The front end is built using React and allows users to interact with the smart contracts. Users can:
- Register as a freelancer or client.
- Post and manage jobs.
- Assign jobs to freelancers.
- Rate freelancers upon job completion.
- Node.js
- npm
- Hardhat
- MetaMask (for interacting with the Ethereum network)
-
Clone the repository:
git clone https://github.com/bharat3645/TaskToken.git cd TaskToken -
Install dependencies:
npm install
-
Create a .env file in the root directory and add your environment variables:
ALCHEMY_SEPOLIA_URL=https://sepolia.infura.io/v3/your-infura-project-id
PRIVATE_KEY=your-private-key
Deploying Smart Contracts
-
Compile the contracts:
npx hardhat compile
-
Deploy the contracts to the Sepolia network:
npx hardhat run scripts/deploy.js --network sepolia
- Running the Front End:
npm run dev
- Open your browser and navigate to http://localhost:3000
-
To run the tests, use the following command:
npx hardhat test
This project is licensed under the MIT License.