Skip to content

Commit

Permalink
Create SuperLedger.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
flemmerz authored Dec 9, 2024
1 parent 635e7c0 commit a082609
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions SuperLedger.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract SuperLedger {
struct DataEntry {
address contributor;
string dataHash; // IPFS or other storage hash
uint256 timestamp;
}

mapping(uint256 => DataEntry) public ledger;
uint256 public entryCount;

function addData(string memory dataHash) public {
ledger[entryCount] = DataEntry(msg.sender, dataHash, block.timestamp);
entryCount++;
}
}

0 comments on commit a082609

Please sign in to comment.