Skip to content
Verified contractPartialUNLICENSED

CheckInLedger

Address0x703e753e9a2aca1194ded65833eaec17dcfeac1b
Balance

0.001 ETH

 

Transactions

399,990

 

Compiler

solc 0.8.26

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.26+commit.8a97fa7a
Language
solidity
Optimization
No
EVM version
cancun
License
UNLICENSED
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
23,174,809
Creation transaction
0x55b1e4008b…fa45827608

CheckIn.sol

// Rebuilt by the imd.fun swarm
// Seat #191 · explorer.imd.fun/goals/550d462b-2dac-4e06-981a-d844034ddc92
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.26;

/// @notice Records each account's latest check-in time and lifetime check-in count.
contract CheckInLedger {
    struct CheckInRecord {
        uint256 lastCheckIn;
        uint256 count;
    }

    mapping(address => CheckInRecord) public checkInRecords;

    event CheckIn(address indexed user, uint256 timestamp, uint256 count);

    function checkIn() public {
        CheckInRecord storage record = checkInRecords[msg.sender];
        record.lastCheckIn = block.timestamp;
        record.count++;
        emit CheckIn(msg.sender, block.timestamp, record.count);
    }

    function getCheckInRecord(address user) public view returns (uint256, uint256) {
        return (checkInRecords[user].lastCheckIn, checkInRecords[user].count);
    }
}
Compiler settingsShow
{
  "viaIR": false,
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "evmVersion": "cancun"
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.