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
| { | |
| "HelpPinoyDonations.sol": { | |
| "__sources__": { | |
| "HelpPinoyDonations.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\r\npragma solidity ^0.8.19;\r\n\r\ncontract DonationContract {\r\n\r\n address public owner;\r\n\r\n constructor() {\r\n owner = msg.sender;\r\n }\r\n\r\n modifier onlyOwner() {\r\n require(msg.sender == owner, \"Not authorized\");\r\n _;\r\n }\r\n\r\n struct Donation {\r\n string txid;\r\n string hash;\r\n uint256 timestamp;\r\n }\r\n\r\n struct Disbursement {\r\n string txid;\r\n string hash;\r\n uint256 timestamp;\r\n }\r\n\r\n // Donation storage\r\n mapping(string => Donation) private donationRecords;\r\n mapping(string => bool) private donationExists;\r\n\r\n // Disbursement storage\r\n mapping(string => Disbursement) private disbursementRecords;\r\n mapping(string => bool) private disbursementExists;\r\n\r\n event DonationAdded(string txid, string hash, uin |