474 lines
14 KiB
JSON
474 lines
14 KiB
JSON
{
|
|
"contractName": "ERC20Basic",
|
|
"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": "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\n/**\n * @title ERC20Basic\n * @dev Simpler version of ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/179\n */\ncontract ERC20Basic {\n uint256 public totalSupply;\n function balanceOf(address who) public constant 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": "zeppelin-solidity/contracts/token/ERC20Basic.sol",
|
|
"ast": {
|
|
"attributes": {
|
|
"absolutePath": "zeppelin-solidity/contracts/token/ERC20Basic.sol",
|
|
"exportedSymbols": {
|
|
"ERC20Basic": [
|
|
594
|
|
]
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.4",
|
|
".11"
|
|
]
|
|
},
|
|
"id": 567,
|
|
"name": "PragmaDirective",
|
|
"src": "0:24:4"
|
|
},
|
|
{
|
|
"attributes": {
|
|
"baseContracts": [
|
|
null
|
|
],
|
|
"contractDependencies": [
|
|
null
|
|
],
|
|
"contractKind": "contract",
|
|
"documentation": "@title ERC20Basic\n@dev Simpler version of ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/179",
|
|
"fullyImplemented": false,
|
|
"linearizedBaseContracts": [
|
|
594
|
|
],
|
|
"name": "ERC20Basic",
|
|
"scope": 595
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"constant": false,
|
|
"name": "totalSupply",
|
|
"scope": 594,
|
|
"stateVariable": true,
|
|
"storageLocation": "default",
|
|
"type": "uint256",
|
|
"value": null,
|
|
"visibility": "public"
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"name": "uint256",
|
|
"type": "uint256"
|
|
},
|
|
"id": 568,
|
|
"name": "ElementaryTypeName",
|
|
"src": "179:7:4"
|
|
}
|
|
],
|
|
"id": 569,
|
|
"name": "VariableDeclaration",
|
|
"src": "179:26:4"
|
|
},
|
|
{
|
|
"attributes": {
|
|
"body": null,
|
|
"constant": true,
|
|
"implemented": false,
|
|
"isConstructor": false,
|
|
"modifiers": [
|
|
null
|
|
],
|
|
"name": "balanceOf",
|
|
"payable": false,
|
|
"scope": 594,
|
|
"stateMutability": "view",
|
|
"superFunction": null,
|
|
"visibility": "public"
|
|
},
|
|
"children": [
|
|
{
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"constant": false,
|
|
"name": "who",
|
|
"scope": 576,
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"type": "address",
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"name": "address",
|
|
"type": "address"
|
|
},
|
|
"id": 570,
|
|
"name": "ElementaryTypeName",
|
|
"src": "228:7:4"
|
|
}
|
|
],
|
|
"id": 571,
|
|
"name": "VariableDeclaration",
|
|
"src": "228:11:4"
|
|
}
|
|
],
|
|
"id": 572,
|
|
"name": "ParameterList",
|
|
"src": "227:13:4"
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"constant": false,
|
|
"name": "",
|
|
"scope": 576,
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"type": "uint256",
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"name": "uint256",
|
|
"type": "uint256"
|
|
},
|
|
"id": 573,
|
|
"name": "ElementaryTypeName",
|
|
"src": "266:7:4"
|
|
}
|
|
],
|
|
"id": 574,
|
|
"name": "VariableDeclaration",
|
|
"src": "266:7:4"
|
|
}
|
|
],
|
|
"id": 575,
|
|
"name": "ParameterList",
|
|
"src": "265:9:4"
|
|
}
|
|
],
|
|
"id": 576,
|
|
"name": "FunctionDefinition",
|
|
"src": "209:66:4"
|
|
},
|
|
{
|
|
"attributes": {
|
|
"body": null,
|
|
"constant": false,
|
|
"implemented": false,
|
|
"isConstructor": false,
|
|
"modifiers": [
|
|
null
|
|
],
|
|
"name": "transfer",
|
|
"payable": false,
|
|
"scope": 594,
|
|
"stateMutability": "nonpayable",
|
|
"superFunction": null,
|
|
"visibility": "public"
|
|
},
|
|
"children": [
|
|
{
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"constant": false,
|
|
"name": "to",
|
|
"scope": 585,
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"type": "address",
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"name": "address",
|
|
"type": "address"
|
|
},
|
|
"id": 577,
|
|
"name": "ElementaryTypeName",
|
|
"src": "296:7:4"
|
|
}
|
|
],
|
|
"id": 578,
|
|
"name": "VariableDeclaration",
|
|
"src": "296:10:4"
|
|
},
|
|
{
|
|
"attributes": {
|
|
"constant": false,
|
|
"name": "value",
|
|
"scope": 585,
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"type": "uint256",
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"name": "uint256",
|
|
"type": "uint256"
|
|
},
|
|
"id": 579,
|
|
"name": "ElementaryTypeName",
|
|
"src": "308:7:4"
|
|
}
|
|
],
|
|
"id": 580,
|
|
"name": "VariableDeclaration",
|
|
"src": "308:13:4"
|
|
}
|
|
],
|
|
"id": 581,
|
|
"name": "ParameterList",
|
|
"src": "295:27:4"
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"constant": false,
|
|
"name": "",
|
|
"scope": 585,
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"type": "bool",
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"name": "bool",
|
|
"type": "bool"
|
|
},
|
|
"id": 582,
|
|
"name": "ElementaryTypeName",
|
|
"src": "339:4:4"
|
|
}
|
|
],
|
|
"id": 583,
|
|
"name": "VariableDeclaration",
|
|
"src": "339:4:4"
|
|
}
|
|
],
|
|
"id": 584,
|
|
"name": "ParameterList",
|
|
"src": "338:6:4"
|
|
}
|
|
],
|
|
"id": 585,
|
|
"name": "FunctionDefinition",
|
|
"src": "278:67:4"
|
|
},
|
|
{
|
|
"attributes": {
|
|
"anonymous": false,
|
|
"name": "Transfer"
|
|
},
|
|
"children": [
|
|
{
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"constant": false,
|
|
"indexed": true,
|
|
"name": "from",
|
|
"scope": 593,
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"type": "address",
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"name": "address",
|
|
"type": "address"
|
|
},
|
|
"id": 586,
|
|
"name": "ElementaryTypeName",
|
|
"src": "363:7:4"
|
|
}
|
|
],
|
|
"id": 587,
|
|
"name": "VariableDeclaration",
|
|
"src": "363:20:4"
|
|
},
|
|
{
|
|
"attributes": {
|
|
"constant": false,
|
|
"indexed": true,
|
|
"name": "to",
|
|
"scope": 593,
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"type": "address",
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"name": "address",
|
|
"type": "address"
|
|
},
|
|
"id": 588,
|
|
"name": "ElementaryTypeName",
|
|
"src": "385:7:4"
|
|
}
|
|
],
|
|
"id": 589,
|
|
"name": "VariableDeclaration",
|
|
"src": "385:18:4"
|
|
},
|
|
{
|
|
"attributes": {
|
|
"constant": false,
|
|
"indexed": false,
|
|
"name": "value",
|
|
"scope": 593,
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"type": "uint256",
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"name": "uint256",
|
|
"type": "uint256"
|
|
},
|
|
"id": 590,
|
|
"name": "ElementaryTypeName",
|
|
"src": "405:7:4"
|
|
}
|
|
],
|
|
"id": 591,
|
|
"name": "VariableDeclaration",
|
|
"src": "405:13:4"
|
|
}
|
|
],
|
|
"id": 592,
|
|
"name": "ParameterList",
|
|
"src": "362:57:4"
|
|
}
|
|
],
|
|
"id": 593,
|
|
"name": "EventDefinition",
|
|
"src": "348:72:4"
|
|
}
|
|
],
|
|
"id": 594,
|
|
"name": "ContractDefinition",
|
|
"src": "155:267:4"
|
|
}
|
|
],
|
|
"id": 595,
|
|
"name": "SourceUnit",
|
|
"src": "0:423:4"
|
|
},
|
|
"compiler": {
|
|
"name": "solc",
|
|
"version": "0.4.18+commit.9cf6e910.Emscripten.clang"
|
|
},
|
|
"networks": {},
|
|
"schemaVersion": "1.0.1",
|
|
"updatedAt": "2017-11-10T02:14:36.625Z"
|
|
} |