UNPKG

kleros-interaction-2

Version:
1,237 lines 39.7 kB
{ "contractName": "ERC20", "abi": [ { "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" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "owner", "type": "address" }, { "indexed": true, "name": "spender", "type": "address" }, { "indexed": false, "name": "value", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "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": "_owner", "type": "address" }, { "name": "_spender", "type": "address" } ], "name": "allowance", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_spender", "type": "address" }, { "name": "_value", "type": "uint256" } ], "name": "approve", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.4.24;\n\nimport \"./ERC20Basic.sol\";\n\n\n/**\n * @title ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/20\n */\ncontract ERC20 is ERC20Basic {\n function allowance(address _owner, address _spender)\n public view returns (uint256);\n\n function transferFrom(address _from, address _to, uint256 _value)\n public returns (bool);\n\n function approve(address _spender, uint256 _value) public returns (bool);\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n}\n", "sourcePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", "ast": { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", "exportedSymbols": { "ERC20": [ 20071 ] }, "id": 20072, "nodeType": "SourceUnit", "nodes": [ { "id": 20030, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:64" }, { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol", "file": "./ERC20Basic.sol", "id": 20031, "nodeType": "ImportDirective", "scope": 20072, "sourceUnit": 20104, "src": "26:26:64", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 20032, "name": "ERC20Basic", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 20103, "src": "162:10:64", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC20Basic_$20103", "typeString": "contract ERC20Basic" } }, "id": 20033, "nodeType": "InheritanceSpecifier", "src": "162:10:64" } ], "contractDependencies": [ 20103 ], "contractKind": "contract", "documentation": "@title ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/20", "fullyImplemented": false, "id": 20071, "linearizedBaseContracts": [ 20071, 20103 ], "name": "ERC20", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 20042, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { "id": 20038, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20035, "name": "_owner", "nodeType": "VariableDeclaration", "scope": 20042, "src": "196:14:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 20034, "name": "address", "nodeType": "ElementaryTypeName", "src": "196:7:64", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 20037, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 20042, "src": "212:16:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 20036, "name": "address", "nodeType": "ElementaryTypeName", "src": "212:7:64", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "195:34:64" }, "payable": false, "returnParameters": { "id": 20041, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20040, "name": "", "nodeType": "VariableDeclaration", "scope": 20042, "src": "255:7:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20039, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "255:7:64", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "254:9:64" }, "scope": 20071, "src": "177:87:64", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 20053, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 20049, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20044, "name": "_from", "nodeType": "VariableDeclaration", "scope": 20053, "src": "290:13:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 20043, "name": "address", "nodeType": "ElementaryTypeName", "src": "290:7:64", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 20046, "name": "_to", "nodeType": "VariableDeclaration", "scope": 20053, "src": "305:11:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 20045, "name": "address", "nodeType": "ElementaryTypeName", "src": "305:7:64", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 20048, "name": "_value", "nodeType": "VariableDeclaration", "scope": 20053, "src": "318:14:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20047, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "318:7:64", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "289:44:64" }, "payable": false, "returnParameters": { "id": 20052, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20051, "name": "", "nodeType": "VariableDeclaration", "scope": 20053, "src": "354:4:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 20050, "name": "bool", "nodeType": "ElementaryTypeName", "src": "354:4:64", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "353:6:64" }, "scope": 20071, "src": "268:92:64", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 20062, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 20058, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20055, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 20062, "src": "381:16:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 20054, "name": "address", "nodeType": "ElementaryTypeName", "src": "381:7:64", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 20057, "name": "_value", "nodeType": "VariableDeclaration", "scope": 20062, "src": "399:14:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20056, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "399:7:64", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "380:34:64" }, "payable": false, "returnParameters": { "id": 20061, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20060, "name": "", "nodeType": "VariableDeclaration", "scope": 20062, "src": "431:4:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 20059, "name": "bool", "nodeType": "ElementaryTypeName", "src": "431:4:64", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "430:6:64" }, "scope": 20071, "src": "364:73:64", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "anonymous": false, "documentation": null, "id": 20070, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 20069, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20064, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 20070, "src": "460:21:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 20063, "name": "address", "nodeType": "ElementaryTypeName", "src": "460:7:64", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 20066, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", "scope": 20070, "src": "487:23:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 20065, "name": "address", "nodeType": "ElementaryTypeName", "src": "487:7:64", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 20068, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 20070, "src": "516:13:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20067, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "516:7:64", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "454:79:64" }, "src": "440:94:64" } ], "scope": 20072, "src": "144:392:64" } ], "src": "0:537:64" }, "legacyAST": { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol", "exportedSymbols": { "ERC20": [ 20071 ] }, "id": 20072, "nodeType": "SourceUnit", "nodes": [ { "id": 20030, "literals": [ "solidity", "^", "0.4", ".24" ], "nodeType": "PragmaDirective", "src": "0:24:64" }, { "absolutePath": "openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol", "file": "./ERC20Basic.sol", "id": 20031, "nodeType": "ImportDirective", "scope": 20072, "sourceUnit": 20104, "src": "26:26:64", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 20032, "name": "ERC20Basic", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 20103, "src": "162:10:64", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC20Basic_$20103", "typeString": "contract ERC20Basic" } }, "id": 20033, "nodeType": "InheritanceSpecifier", "src": "162:10:64" } ], "contractDependencies": [ 20103 ], "contractKind": "contract", "documentation": "@title ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/20", "fullyImplemented": false, "id": 20071, "linearizedBaseContracts": [ 20071, 20103 ], "name": "ERC20", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 20042, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { "id": 20038, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20035, "name": "_owner", "nodeType": "VariableDeclaration", "scope": 20042, "src": "196:14:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 20034, "name": "address", "nodeType": "ElementaryTypeName", "src": "196:7:64", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 20037, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 20042, "src": "212:16:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 20036, "name": "address", "nodeType": "ElementaryTypeName", "src": "212:7:64", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "195:34:64" }, "payable": false, "returnParameters": { "id": 20041, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20040, "name": "", "nodeType": "VariableDeclaration", "scope": 20042, "src": "255:7:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20039, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "255:7:64", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "254:9:64" }, "scope": 20071, "src": "177:87:64", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 20053, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 20049, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20044, "name": "_from", "nodeType": "VariableDeclaration", "scope": 20053, "src": "290:13:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 20043, "name": "address", "nodeType": "ElementaryTypeName", "src": "290:7:64", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 20046, "name": "_to", "nodeType": "VariableDeclaration", "scope": 20053, "src": "305:11:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 20045, "name": "address", "nodeType": "ElementaryTypeName", "src": "305:7:64", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 20048, "name": "_value", "nodeType": "VariableDeclaration", "scope": 20053, "src": "318:14:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20047, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "318:7:64", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "289:44:64" }, "payable": false, "returnParameters": { "id": 20052, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20051, "name": "", "nodeType": "VariableDeclaration", "scope": 20053, "src": "354:4:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 20050, "name": "bool", "nodeType": "ElementaryTypeName", "src": "354:4:64", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "353:6:64" }, "scope": 20071, "src": "268:92:64", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": null, "id": 20062, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 20058, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20055, "name": "_spender", "nodeType": "VariableDeclaration", "scope": 20062, "src": "381:16:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 20054, "name": "address", "nodeType": "ElementaryTypeName", "src": "381:7:64", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 20057, "name": "_value", "nodeType": "VariableDeclaration", "scope": 20062, "src": "399:14:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20056, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "399:7:64", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "380:34:64" }, "payable": false, "returnParameters": { "id": 20061, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20060, "name": "", "nodeType": "VariableDeclaration", "scope": 20062, "src": "431:4:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 20059, "name": "bool", "nodeType": "ElementaryTypeName", "src": "431:4:64", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "430:6:64" }, "scope": 20071, "src": "364:73:64", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "anonymous": false, "documentation": null, "id": 20070, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 20069, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20064, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 20070, "src": "460:21:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 20063, "name": "address", "nodeType": "ElementaryTypeName", "src": "460:7:64", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 20066, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", "scope": 20070, "src": "487:23:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 20065, "name": "address", "nodeType": "ElementaryTypeName", "src": "487:7:64", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 20068, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 20070, "src": "516:13:64", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20067, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "516:7:64", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "454:79:64" }, "src": "440:94:64" } ], "scope": 20072, "src": "144:392:64" } ], "src": "0:537:64" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2018-11-02T14:04:11.102Z" }