pragma solidity ^0.5.11;
contract AlephSync{
event SyncEvent(uint256 timestamp, address addr, string message);
event MessageEvent(uint256 timestamp, address addr, string msgtype, string msgcontent);
function doEmit(string memory message) public {
emit SyncEvent(block.timestamp, msg.sender, message);
}
function doMessage(string memory msgtype, string memory msgcontent) public {
emit MessageEvent(block.timestamp, msg.sender, msgtype, msgcontent);
}
}
{
"compilationTarget": {
"AlephSync.sol": "AlephSync"
},
"evmVersion": "istanbul",
"libraries": {},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
}
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"string","name":"msgtype","type":"string"},{"indexed":false,"internalType":"string","name":"msgcontent","type":"string"}],"name":"MessageEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"string","name":"message","type":"string"}],"name":"SyncEvent","type":"event"},{"constant":false,"inputs":[{"internalType":"string","name":"message","type":"string"}],"name":"doEmit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"msgtype","type":"string"},{"internalType":"string","name":"msgcontent","type":"string"}],"name":"doMessage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]