@netvote/elections-solidity
Version:
Elections Contracts
745 lines • 22.2 kB
JSON
{
"contractName": "ERC20",
"abi": [
{
"constant": false,
"inputs": [
{
"name": "spender",
"type": "address"
},
{
"name": "value",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "totalSupply",
"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": 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"
},
{
"constant": true,
"inputs": [
{
"name": "owner",
"type": "address"
},
{
"name": "spender",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"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"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity ^0.4.11;\n\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) public constant returns (uint256);\n function transferFrom(address from, address to, uint256 value) public returns (bool);\n function approve(address spender, uint256 value) public returns (bool);\n event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n",
"sourcePath": "zeppelin-solidity/contracts/token/ERC20.sol",
"ast": {
"attributes": {
"absolutePath": "zeppelin-solidity/contracts/token/ERC20.sol",
"exportedSymbols": {
"ERC20": [
2875
]
}
},
"children": [
{
"attributes": {
"literals": [
"solidity",
"^",
"0.4",
".11"
]
},
"id": 2834,
"name": "PragmaDirective",
"src": "0:24:24"
},
{
"attributes": {
"SourceUnit": 2905,
"absolutePath": "zeppelin-solidity/contracts/token/ERC20Basic.sol",
"file": "./ERC20Basic.sol",
"scope": 2876,
"symbolAliases": [
null
],
"unitAlias": ""
},
"id": 2835,
"name": "ImportDirective",
"src": "27:26:24"
},
{
"attributes": {
"contractDependencies": [
2904
],
"contractKind": "contract",
"documentation": "@title ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/20",
"fullyImplemented": false,
"linearizedBaseContracts": [
2875,
2904
],
"name": "ERC20",
"scope": 2876
},
"children": [
{
"attributes": {
"arguments": [
null
]
},
"children": [
{
"attributes": {
"contractScope": null,
"name": "ERC20Basic",
"referencedDeclaration": 2904,
"type": "contract ERC20Basic"
},
"id": 2836,
"name": "UserDefinedTypeName",
"src": "163:10:24"
}
],
"id": 2837,
"name": "InheritanceSpecifier",
"src": "163:10:24"
},
{
"attributes": {
"body": null,
"constant": true,
"implemented": false,
"isConstructor": false,
"modifiers": [
null
],
"name": "allowance",
"payable": false,
"scope": 2875,
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "owner",
"scope": 2846,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"type": "address"
},
"id": 2838,
"name": "ElementaryTypeName",
"src": "197:7:24"
}
],
"id": 2839,
"name": "VariableDeclaration",
"src": "197:13:24"
},
{
"attributes": {
"constant": false,
"name": "spender",
"scope": 2846,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"type": "address"
},
"id": 2840,
"name": "ElementaryTypeName",
"src": "212:7:24"
}
],
"id": 2841,
"name": "VariableDeclaration",
"src": "212:15:24"
}
],
"id": 2842,
"name": "ParameterList",
"src": "196:32:24"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "",
"scope": 2846,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint256",
"type": "uint256"
},
"id": 2843,
"name": "ElementaryTypeName",
"src": "254:7:24"
}
],
"id": 2844,
"name": "VariableDeclaration",
"src": "254:7:24"
}
],
"id": 2845,
"name": "ParameterList",
"src": "253:9:24"
}
],
"id": 2846,
"name": "FunctionDefinition",
"src": "178:85:24"
},
{
"attributes": {
"body": null,
"constant": false,
"implemented": false,
"isConstructor": false,
"modifiers": [
null
],
"name": "transferFrom",
"payable": false,
"scope": 2875,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "from",
"scope": 2857,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"type": "address"
},
"id": 2847,
"name": "ElementaryTypeName",
"src": "288:7:24"
}
],
"id": 2848,
"name": "VariableDeclaration",
"src": "288:12:24"
},
{
"attributes": {
"constant": false,
"name": "to",
"scope": 2857,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"type": "address"
},
"id": 2849,
"name": "ElementaryTypeName",
"src": "302:7:24"
}
],
"id": 2850,
"name": "VariableDeclaration",
"src": "302:10:24"
},
{
"attributes": {
"constant": false,
"name": "value",
"scope": 2857,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint256",
"type": "uint256"
},
"id": 2851,
"name": "ElementaryTypeName",
"src": "314:7:24"
}
],
"id": 2852,
"name": "VariableDeclaration",
"src": "314:13:24"
}
],
"id": 2853,
"name": "ParameterList",
"src": "287:41:24"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "",
"scope": 2857,
"stateVariable": false,
"storageLocation": "default",
"type": "bool",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "bool",
"type": "bool"
},
"id": 2854,
"name": "ElementaryTypeName",
"src": "345:4:24"
}
],
"id": 2855,
"name": "VariableDeclaration",
"src": "345:4:24"
}
],
"id": 2856,
"name": "ParameterList",
"src": "344:6:24"
}
],
"id": 2857,
"name": "FunctionDefinition",
"src": "266:85:24"
},
{
"attributes": {
"body": null,
"constant": false,
"implemented": false,
"isConstructor": false,
"modifiers": [
null
],
"name": "approve",
"payable": false,
"scope": 2875,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "spender",
"scope": 2866,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"type": "address"
},
"id": 2858,
"name": "ElementaryTypeName",
"src": "371:7:24"
}
],
"id": 2859,
"name": "VariableDeclaration",
"src": "371:15:24"
},
{
"attributes": {
"constant": false,
"name": "value",
"scope": 2866,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint256",
"type": "uint256"
},
"id": 2860,
"name": "ElementaryTypeName",
"src": "388:7:24"
}
],
"id": 2861,
"name": "VariableDeclaration",
"src": "388:13:24"
}
],
"id": 2862,
"name": "ParameterList",
"src": "370:32:24"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "",
"scope": 2866,
"stateVariable": false,
"storageLocation": "default",
"type": "bool",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "bool",
"type": "bool"
},
"id": 2863,
"name": "ElementaryTypeName",
"src": "419:4:24"
}
],
"id": 2864,
"name": "VariableDeclaration",
"src": "419:4:24"
}
],
"id": 2865,
"name": "ParameterList",
"src": "418:6:24"
}
],
"id": 2866,
"name": "FunctionDefinition",
"src": "354:71:24"
},
{
"attributes": {
"anonymous": false,
"name": "Approval"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"indexed": true,
"name": "owner",
"scope": 2874,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"type": "address"
},
"id": 2867,
"name": "ElementaryTypeName",
"src": "443:7:24"
}
],
"id": 2868,
"name": "VariableDeclaration",
"src": "443:21:24"
},
{
"attributes": {
"constant": false,
"indexed": true,
"name": "spender",
"scope": 2874,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"type": "address"
},
"id": 2869,
"name": "ElementaryTypeName",
"src": "466:7:24"
}
],
"id": 2870,
"name": "VariableDeclaration",
"src": "466:23:24"
},
{
"attributes": {
"constant": false,
"indexed": false,
"name": "value",
"scope": 2874,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint256",
"type": "uint256"
},
"id": 2871,
"name": "ElementaryTypeName",
"src": "491:7:24"
}
],
"id": 2872,
"name": "VariableDeclaration",
"src": "491:13:24"
}
],
"id": 2873,
"name": "ParameterList",
"src": "442:63:24"
}
],
"id": 2874,
"name": "EventDefinition",
"src": "428:78:24"
}
],
"id": 2875,
"name": "ContractDefinition",
"src": "145:363:24"
}
],
"id": 2876,
"name": "SourceUnit",
"src": "0:509:24"
},
"compiler": {
"name": "solc",
"version": "0.4.18+commit.9cf6e910.Emscripten.clang"
},
"networks": {},
"schemaVersion": "1.0.1",
"updatedAt": "2018-03-26T15:46:12.499Z"
}