pragma solidity ^0.6.2;
contract ClaimLog {
event Claim(bytes32 indexed file, bytes32 hash);
function registerClaim(bytes32[] memory files, bytes32[] memory hashes) public {
for (uint i=0; i<files.length; i++) {
emit Claim(files[uint(i)],hashes[uint(i)]);
}
}
}
{
"compilationTarget": {
"browser/v2.sol": "ClaimLog"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
}
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"file","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"hash","type":"bytes32"}],"name":"Claim","type":"event"},{"inputs":[{"internalType":"bytes32[]","name":"files","type":"bytes32[]"},{"internalType":"bytes32[]","name":"hashes","type":"bytes32[]"}],"name":"registerClaim","outputs":[],"stateMutability":"nonpayable","type":"function"}]