kleros-interaction-2
Version:
Smart contracts interacting with Kleros.
866 lines • 28.2 kB
JSON
{
"contractName": "ERC20Basic",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "from",
"type": "address"
},
{
"indexed": true,
"name": "to",
"type": "address"
},
{
"indexed": false,
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"constant": true,
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_who",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_to",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity ^0.4.24;\n\n\n/**\n * @title ERC20Basic\n * @dev Simpler version of ERC20 interface\n * See https://github.com/ethereum/EIPs/issues/179\n */\ncontract ERC20Basic {\n function totalSupply() public view returns (uint256);\n function balanceOf(address _who) public view returns (uint256);\n function transfer(address _to, uint256 _value) public returns (bool);\n event Transfer(address indexed from, address indexed to, uint256 value);\n}\n",
"sourcePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol",
"ast": {
"absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol",
"exportedSymbols": {
"ERC20Basic": [
20103
]
},
"id": 20104,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 20073,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:65"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": "@title ERC20Basic\n@dev Simpler version of ERC20 interface\nSee https://github.com/ethereum/EIPs/issues/179",
"fullyImplemented": false,
"id": 20103,
"linearizedBaseContracts": [
20103
],
"name": "ERC20Basic",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 20078,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "totalSupply",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20074,
"nodeType": "ParameterList",
"parameters": [],
"src": "194:2:65"
},
"payable": false,
"returnParameters": {
"id": 20077,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20076,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20078,
"src": "218:7:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20075,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "218:7:65",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "217:9:65"
},
"scope": 20103,
"src": "174:53:65",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 20085,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20081,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20080,
"name": "_who",
"nodeType": "VariableDeclaration",
"scope": 20085,
"src": "249:12:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20079,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "249:7:65",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "248:14:65"
},
"payable": false,
"returnParameters": {
"id": 20084,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20083,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20085,
"src": "284:7:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20082,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "284:7:65",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "283:9:65"
},
"scope": 20103,
"src": "230:63:65",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 20094,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20090,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20087,
"name": "_to",
"nodeType": "VariableDeclaration",
"scope": 20094,
"src": "314:11:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20086,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "314:7:65",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20089,
"name": "_value",
"nodeType": "VariableDeclaration",
"scope": 20094,
"src": "327:14:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20088,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "327:7:65",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "313:29:65"
},
"payable": false,
"returnParameters": {
"id": 20093,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20092,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20094,
"src": "359:4:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 20091,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "359:4:65",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "358:6:65"
},
"scope": 20103,
"src": "296:69:65",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"anonymous": false,
"documentation": null,
"id": 20102,
"name": "Transfer",
"nodeType": "EventDefinition",
"parameters": {
"id": 20101,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20096,
"indexed": true,
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 20102,
"src": "383:20:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20095,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "383:7:65",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20098,
"indexed": true,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 20102,
"src": "405:18:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20097,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "405:7:65",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20100,
"indexed": false,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 20102,
"src": "425:13:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20099,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "425:7:65",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "382:57:65"
},
"src": "368:72:65"
}
],
"scope": 20104,
"src": "150:292:65"
}
],
"src": "0:443:65"
},
"legacyAST": {
"absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol",
"exportedSymbols": {
"ERC20Basic": [
20103
]
},
"id": 20104,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 20073,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:65"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": "@title ERC20Basic\n@dev Simpler version of ERC20 interface\nSee https://github.com/ethereum/EIPs/issues/179",
"fullyImplemented": false,
"id": 20103,
"linearizedBaseContracts": [
20103
],
"name": "ERC20Basic",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 20078,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "totalSupply",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20074,
"nodeType": "ParameterList",
"parameters": [],
"src": "194:2:65"
},
"payable": false,
"returnParameters": {
"id": 20077,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20076,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20078,
"src": "218:7:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20075,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "218:7:65",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "217:9:65"
},
"scope": 20103,
"src": "174:53:65",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 20085,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20081,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20080,
"name": "_who",
"nodeType": "VariableDeclaration",
"scope": 20085,
"src": "249:12:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20079,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "249:7:65",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "248:14:65"
},
"payable": false,
"returnParameters": {
"id": 20084,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20083,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20085,
"src": "284:7:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20082,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "284:7:65",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "283:9:65"
},
"scope": 20103,
"src": "230:63:65",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 20094,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20090,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20087,
"name": "_to",
"nodeType": "VariableDeclaration",
"scope": 20094,
"src": "314:11:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20086,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "314:7:65",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20089,
"name": "_value",
"nodeType": "VariableDeclaration",
"scope": 20094,
"src": "327:14:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20088,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "327:7:65",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "313:29:65"
},
"payable": false,
"returnParameters": {
"id": 20093,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20092,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20094,
"src": "359:4:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 20091,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "359:4:65",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "358:6:65"
},
"scope": 20103,
"src": "296:69:65",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"anonymous": false,
"documentation": null,
"id": 20102,
"name": "Transfer",
"nodeType": "EventDefinition",
"parameters": {
"id": 20101,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20096,
"indexed": true,
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 20102,
"src": "383:20:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20095,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "383:7:65",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20098,
"indexed": true,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 20102,
"src": "405:18:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20097,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "405:7:65",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20100,
"indexed": false,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 20102,
"src": "425:13:65",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20099,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "425:7:65",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "382:57:65"
},
"src": "368:72:65"
}
],
"scope": 20104,
"src": "150:292:65"
}
],
"src": "0:443:65"
},
"compiler": {
"name": "solc",
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
},
"networks": {},
"schemaVersion": "2.0.1",
"updatedAt": "2018-11-02T14:04:11.103Z"
}