This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "contracts/MedicineTracker.sol": { | |
| "__sources__": { | |
| "contracts/MedicineTracker.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\r\npragma solidity 0.8.19;\r\n\r\n/**\r\n * @title MedicineTracker\r\n * @dev Smart contract for tracking medicine authenticity on blockchain\r\n * @notice This contract stores medicine details and transfer history immutably\r\n *\r\n * BLOCKCHAIN CONCEPT: Smart Contract\r\n * A smart contract is self-executing code stored on blockchain.\r\n * Once deployed, it cannot be changed (immutability).\r\n * It runs automatically when conditions are met (trustless execution).\r\n */\r\ncontract MedicineTracker {\r\n\r\n // ============================================================\r\n // STRUCTS (Data Structures)\r\n // ============================================================\r\n\r\n /**\r\n * @dev Medicine struct stores all details of a registered medicine batch\r\n * BLOCKCHAIN CONCEPT: Struct - a custom data type that groups related data\ |