pragma solidity ^0.6.0;
contract DefisaverLogger {
event LogEvent(
address indexed contractAddress,
address indexed caller,
string indexed logName,
bytes data
);
// solhint-disable-next-line func-name-mixedcase
function Log(address _contract, address _caller, string memory _logName, bytes memory _data)
public
{
emit LogEvent(_contract, _caller, _logName, _data);
}
}
{
"compilationTarget": {
"DefisaverLogger.sol": "DefisaverLogger"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 20000
},
"remappings": []
}
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"string","name":"logName","type":"string"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogEvent","type":"event"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"address","name":"_caller","type":"address"},{"internalType":"string","name":"_logName","type":"string"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"Log","outputs":[],"stateMutability":"nonpayable","type":"function"}]