Verified contractExactMIT
TokenActivityRecorder
Address0x0ad0321a679876d3db70824e81b78bfca43ac90f
- Balance
0 ETH
- Transactions
2
- Compiler
solc 0.8.20
- Same code
Only this contract
Details
- Compiler
- solc 0.8.20+commit.a1b79de6
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,342,233
- Creation transaction
- 0xb76926c940…275ea41ca1
TokenActivityRecorder.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract TokenActivityRecorder {
address public owner;
event TokenActivityRecorded(
address indexed from,
address indexed to,
uint256 amount,
string description
);
constructor() {
owner = msg.sender;
}
function recordActivity(
address from,
address to,
uint256 amount,
string calldata description
) external {
require(msg.sender == owner, "Not owner");
emit TokenActivityRecorded(
from,
to,
amount,
description
);
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.