pragma solidity ^0.5.17;
contract FixTendiesFarm {
mapping (address => uint256) didBurn;
address constant owner = 0x4BC821fef2ff947B57585a5FDBC73690Db288A49;
function recordBurn() external {
require(didBurn[msg.sender] == 0);
didBurn[msg.sender] = 1;
}
function recordBurnOther(address a) external {
require(msg.sender == owner);
didBurn[a] = 1;
}
function getDidBurn(address a) external view returns (bool b) {
return (didBurn[a] == 1);
}
function removeBurn(address a) external {
require(msg.sender == owner);
didBurn[a] = 0;
}
}
{
"compilationTarget": {
"FixTendiesFarm.sol": "FixTendiesFarm"
},
"evmVersion": "istanbul",
"libraries": {},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
}
[{"constant":true,"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"getDidBurn","outputs":[{"internalType":"bool","name":"b","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"recordBurn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"recordBurnOther","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"removeBurn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]