Carbon is a decentralized platform for sharing, selling, and purchasing scientific datasets using blockchain technology. Built on Polygon and utilizing Filecoin for storage, Carbon aims to revolutionize how researchers access and monetize scientific data.
Key Features:
- Decentralized data storage using Filecoin
- Smart contracts on Polygon for transactions and access control
- NFT representation of datasets
- Peer-review system for data verification
- User-friendly marketplace interface
- Frontend: Next.js, React
- Styling: Tailwindcss, Flowbite, Shadcn
- Smart Contracts: Solidity
- Blockchain: Polygon
- Storage: Filecoin/IPFS
- Wallet Connnect: Wagmi, Wallet Connect
- Authentication: Web3 wallets (e.g., MetaMask)
To set up the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/4rjunc/carbon.git cd carbon
-
Install dependencies:
npm install
-
Create a
.env.local
file in the root directory and add necessary environment variables:NEXT_PUBLIC_POLYGON_RPC_URL=your_polygon_rpc_url NEXT_PUBLIC_FILECOIN_API_KEY=your_filecoin_api_key
-
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser to see the application.
-
Install Hardhat (if not already included in project dependencies):
npm install --save-dev hardhat
-
Compile contracts:
npx hardhat compile
-
Deploy to Polygon testnet (Mumbai):
npx hardhat run scripts/deploy.js --network mumbai
Remember to update the deployed contract address in your .env.local
file.
We welcome contributions to the Carbon project! Please read our CONTRIBUTING.md file for guidelines on how to make contributions.
This project is licensed under the MIT License - see the LICENSE.md file for details.