{ "compiler": { "version": "0.8.1+commit.df193b15" }, "language": "Solidity", "output": { "abi": [ { "inputs": [ { "internalType": "uint256", "name": "_baseDeposit", "type": "uint256" } ], "stateMutability": "payable", "type": "constructor" }, { "inputs": [], "name": "baseDeposit", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "enum Resolver.Side", "name": "_winner", "type": "uint8" } ], "name": "declareWinner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "declared", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "enum Resolver.Side", "name": "_side", "type": "uint8" } ], "name": "deposit", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "partyDeposits", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "payReward", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "reward", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "sides", "outputs": [ { "internalType": "address payable", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "winner", "outputs": [ { "internalType": "enum Resolver.Side", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" } ], "devdoc": { "kind": "dev", "methods": { "constructor": { "details": "Constructor.", "params": { "_baseDeposit": "The deposit a party has to pay. Note that it is greater than the reward." } }, "declareWinner(uint8)": { "details": "Declare the winner as an owner.", "params": { "_winner": "The party that is eligible to a reward according to owner." } }, "deposit(uint8)": { "details": "Make a deposit as one of the parties.", "params": { "_side": "A party to make a deposit as." } }, "payReward()": { "details": "Pay the reward to the winner. Reimburse the surplus deposit for both parties if there was one." } }, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }, "settings": { "compilationTarget": { "contracts/attackable.sol": "Resolver" }, "evmVersion": "istanbul", "libraries": {}, "metadata": { "bytecodeHash": "ipfs" }, "optimizer": { "enabled": false, "runs": 200 }, "remappings": [] }, "sources": { "contracts/attackable.sol": { "keccak256": "0x5fbeeb33e4335fcd468eade7cb3c935e94da426ffdf3b62565201df5b0692d33", "license": "UNLICENSED", "urls": [ "bzz-raw://4cebb2a25b2182aa14aa74faab3446286bd6ec5b1439a182e0ea43a42be31310", "dweb:/ipfs/QmckpSBtogyamrsKa2Jmx6BEuQhgQM2ue25fux82X9P4tP" ] } }, "version": 1 }