PharmaChain envisions a world where the pharmaceutical supply chain is fully transparent, secure, and tamper-proof. By leveraging blockchain technology, PharmaChain ensures that pharmaceutical products are tracked in real time from the point of production to the point of sale, preventing counterfeit drugs, improving traceability, and building trust within the industry. Our goal is to revolutionize supply chain management by providing an immutable record of every transaction, ensuring the authenticity and integrity of pharmaceutical products globally.
PharmaChain is a decentralized supply chain management platform built on blockchain technology. It is designed to securely track the movement of pharmaceutical products from manufacturers to pharmacies or hospitals. The project leverages the Bitfinity Testnet to ensure transparency, immutability, and verifiability of drug shipments using smart contracts.
By utilizing blockchain, the project aims to:
Tech Stack
Installation
Prerequisites
Ensure you have the following tools installed on your system:
Steps
Clone the Repository:
git clone https://github.com/hatim85/Supply-chain.git
cd Supply-chain
Install Dependencies: npm install
Install Frontend Dependencies: cd ICP-Frontend npm install
Set Up Environment Variables: Create a .env file and add the following: VITE_APP_INFURA_PROJECT_ID=your_infura_project_id VITE_APP_CONTRACT_ADDRESS=your_deployed_contract_address_on_bitfinity_testnet
Run the Application: To start the frontend: npm run dev
Usage
Connect Wallet: Ensure MetaMask is installed and connected to the Bitfinity Testnet. You can then interact with the PharmaChain application to: Track drug shipments from manufacturers to distributors. Approve transfer requests. View transaction histories and drug movement data.
Managing Supply Chain: Use the frontend interface to create new drug batches, approve requests, and transfer drugs across different participants (e.g., manufacturers, distributors).
Track Shipments: The smart contracts ensure that all transaction data is recorded on the blockchain, making it easy to track the movement of each batch of drugs.
Smart Contract Deployment The PharmaChain smart contracts have been deployed on the Bitfinity Testnet.
Deployment on Bitfinity Testnet To deploy the contracts on the Bitfinity Testnet, follow these steps:
0x${process.env.PRIVATE_KEY}
], }, }, solidity: “0.8.19”, };Offers 4 roles to sign in as Manufacturer, Wholesaler, Distributor or as a Hospital Authority.
Post a transfer Request as Manufacturer or Approve the results:
Request Drugs from Wholesaler, Accept the delivery from Distributor or Accept delivery request from Wholesaler
PharmaChain leverages blockchain technology to enhance transparency and security in the pharmaceutical supply chain, preventing fraud and ensuring the authenticity of drugs. By utilizing smart contracts on the Bitfinity Testnet, the platform provides a secure, verifiable method to track drug movements from manufacturers to distributors. This innovation offers a more efficient and trustworthy approach to managing pharmaceutical logistics.