A decentralized platform for secure genome data management and CRISPR gene editing research built on Base blockchain.
This application provides a blockchain-based solution for tracking and managing genome data, experimental results, and CRISPR research. The smart contracts enable:
- Sample provenance tracking for genetic samples
- Experimental data auditing for CRISPR gene editing
- Access control and permissions for sensitive genetic data
- Workflow automation for research approval processes
- Intellectual property protection for genetic discoveries
base_hackhazards/
├── src/
│ ├── app/ # Next.js app routes
│ ├── components/ # React components
│ ├── contracts/ # Smart contracts and deployment
│ │ ├── solidity/ # Solidity smart contracts
│ │ ├── abis/ # Contract ABIs (generated)
│ │ ├── artifacts/ # Contract artifacts (generated)
│ │ ├── compile.js # Contract compilation script
│ │ ├── deploy.js # Contract deployment script
│ │ └── deploy-contracts.js # Main deployment workflow
│ ├── lib/ # Utility functions
│ └── providers/ # React context providers
└── public/ # Static assets
Tracks the origin, chain of custody, and ownership history of genome data samples. This contract ensures that the complete history of a sample is recorded immutably on the blockchain, providing proof of authenticity and traceability.
Records experimental data and test results related to CRISPR gene editing. This contract creates an immutable audit trail of all data collected during experiments, ensuring data integrity and providing cryptographic proof that data hasn't been tampered with.
Manages permissions and access rights to specific genome data records. This contract implements role-based access control to ensure that only authorized personnel can access or modify sensitive genetic information.
Automates key workflows and approval processes related to genome data management. This contract implements business logic for approval chains, event triggers, and compliance workflows related to genetic research.
Protects intellectual property rights related to genetic research data and methodologies. This contract provides timestamped proof of discovery and innovation, which can be crucial for patent applications and IP disputes.
- Node.js 18+ and npm/yarn
- MetaMask or other Web3 wallet
- Base Sepolia ETH (for deployment and testing)
-
Clone the repository:
git clone https://github.com/yourusername/geneforge.git cd geneforge -
Install dependencies:
npm install
-
Set up your environment variables:
cp .env.example .env
Edit the
.envfile to add your private key and other settings:PRIVATE_KEY=your_private_key_without_0x_prefix BASE_SEPOLIA_RPC_URL=your_base_sepolia_rpc_url
-
Compile the smart contracts:
node src/contracts/compile.js
-
Deploy contracts to Base Sepolia:
node src/contracts/deploy-contracts.js
-
Once deployment completes, the contract addresses will be saved to
src/contracts/contract-addresses.json
Start the development server:
npm run devVisit http://localhost:3000 in your browser and connect your wallet to interact with the application.
- Connect your Web3 wallet (MetaMask, etc.)
- Navigate to the "Data" section to register genetic samples, experimental data, or IP records
- Use the different tabs to manage various aspects of your genetic research data
- All transactions will be recorded on the Base blockchain, providing immutable proof
The application follows a streamlined approach for blockchain interaction:
- User inputs genomic data or research results in the frontend forms
- Data is sent to the smart contracts via the contract service
- Transactions are confirmed in your wallet
- Data is permanently stored on Base blockchain
- Data can be retrieved and displayed from the contracts
- Role-based access control for sensitive genetic data
- Immutable audit trails for all research activities
- Cryptographic verification of data integrity
- Secure intellectual property protection
Contributions are welcome! Please feel free to submit a Pull Request.