Skip to content

Instantly share code, notes, and snippets.

@LakshaRavi
LakshaRavi / .deps...npm....resolution-index.json
Created April 4, 2026 08:37
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.19+commit.7dd6d404.js&optimize=undefined&runs=200&gist=
{
"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\