@josojo/tokenized-events
Version:
tokenized events for pm markets
1,512 lines (1,511 loc) • 61.7 kB
JSON
{
"contractName": "Token",
"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"
},
{
"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"
},
{
"constant": false,
"inputs": [
{
"name": "to",
"type": "address"
},
{
"name": "value",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"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"
},
{
"constant": true,
"inputs": [
{
"name": "owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"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"
},
{
"constant": true,
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "/// Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md\npragma solidity ^0.4.15;\n\n\n/// @title Abstract token contract - Functions to be implemented by token contracts\ncontract Token {\n\n /*\n * Events\n */\n event Transfer(address indexed from, address indexed to, uint value);\n event Approval(address indexed owner, address indexed spender, uint value);\n\n /*\n * Public functions\n */\n function transfer(address to, uint value) public returns (bool);\n function transferFrom(address from, address to, uint value) public returns (bool);\n function approve(address spender, uint value) public returns (bool);\n function balanceOf(address owner) public constant returns (uint);\n function allowance(address owner, address spender) public constant returns (uint);\n function totalSupply() public constant returns (uint);\n}\n",
"sourcePath": "@gnosis.pm/pm-contracts/contracts/Tokens/Token.sol",
"ast": {
"absolutePath": "@gnosis.pm/pm-contracts/contracts/Tokens/Token.sol",
"exportedSymbols": {
"Token": [
2703
]
},
"id": 2704,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 2636,
"literals": [
"solidity",
"^",
"0.4",
".15"
],
"nodeType": "PragmaDirective",
"src": "113:24:10"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": "@title Abstract token contract - Functions to be implemented by token contracts",
"fullyImplemented": false,
"id": 2703,
"linearizedBaseContracts": [
2703
],
"name": "Token",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 2644,
"name": "Transfer",
"nodeType": "EventDefinition",
"parameters": {
"id": 2643,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2638,
"indexed": true,
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 2644,
"src": "291:20:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2637,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "291:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2640,
"indexed": true,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 2644,
"src": "313:18:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2639,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "313:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2642,
"indexed": false,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 2644,
"src": "333:10:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2641,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "333:4:10",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "290:54:10"
},
"src": "276:69:10"
},
{
"anonymous": false,
"documentation": null,
"id": 2652,
"name": "Approval",
"nodeType": "EventDefinition",
"parameters": {
"id": 2651,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2646,
"indexed": true,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 2652,
"src": "365:21:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2645,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "365:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2648,
"indexed": true,
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 2652,
"src": "388:23:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2647,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "388:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2650,
"indexed": false,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 2652,
"src": "413:10:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2649,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "413:4:10",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "364:60:10"
},
"src": "350:75:10"
},
{
"body": null,
"documentation": null,
"id": 2661,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2657,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2654,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 2661,
"src": "489:10:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2653,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "489:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2656,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 2661,
"src": "501:10:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2655,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "501:4:10",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "488:24:10"
},
"payable": false,
"returnParameters": {
"id": 2660,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2659,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2661,
"src": "529:4:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 2658,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "529:4:10",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "528:6:10"
},
"scope": 2703,
"src": "471:64:10",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 2672,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transferFrom",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2668,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2663,
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 2672,
"src": "562:12:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2662,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "562:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2665,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 2672,
"src": "576:10:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2664,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "576:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2667,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 2672,
"src": "588:10:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2666,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "588:4:10",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "561:38:10"
},
"payable": false,
"returnParameters": {
"id": 2671,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2670,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2672,
"src": "616:4:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 2669,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "616:4:10",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "615:6:10"
},
"scope": 2703,
"src": "540:82:10",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 2681,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "approve",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2677,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2674,
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 2681,
"src": "644:15:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2673,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "644:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2676,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 2681,
"src": "661:10:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2675,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "661:4:10",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "643:29:10"
},
"payable": false,
"returnParameters": {
"id": 2680,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2679,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2681,
"src": "689:4:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 2678,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "689:4:10",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "688:6:10"
},
"scope": 2703,
"src": "627:68:10",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 2688,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2684,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2683,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 2688,
"src": "719:13:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2682,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "719:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "718:15:10"
},
"payable": false,
"returnParameters": {
"id": 2687,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2686,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2688,
"src": "759:4:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2685,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "759:4:10",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "758:6:10"
},
"scope": 2703,
"src": "700:65:10",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 2697,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "allowance",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2693,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2690,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 2697,
"src": "789:13:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2689,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "789:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2692,
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 2697,
"src": "804:15:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2691,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "804:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "788:32:10"
},
"payable": false,
"returnParameters": {
"id": 2696,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2695,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2697,
"src": "846:4:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2694,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "846:4:10",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "845:6:10"
},
"scope": 2703,
"src": "770:82:10",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 2702,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "totalSupply",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2698,
"nodeType": "ParameterList",
"parameters": [],
"src": "877:2:10"
},
"payable": false,
"returnParameters": {
"id": 2701,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2700,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2702,
"src": "905:4:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2699,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "905:4:10",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "904:6:10"
},
"scope": 2703,
"src": "857:54:10",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
"scope": 2704,
"src": "224:689:10"
}
],
"src": "113:801:10"
},
"legacyAST": {
"absolutePath": "@gnosis.pm/pm-contracts/contracts/Tokens/Token.sol",
"exportedSymbols": {
"Token": [
2703
]
},
"id": 2704,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 2636,
"literals": [
"solidity",
"^",
"0.4",
".15"
],
"nodeType": "PragmaDirective",
"src": "113:24:10"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": "@title Abstract token contract - Functions to be implemented by token contracts",
"fullyImplemented": false,
"id": 2703,
"linearizedBaseContracts": [
2703
],
"name": "Token",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 2644,
"name": "Transfer",
"nodeType": "EventDefinition",
"parameters": {
"id": 2643,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2638,
"indexed": true,
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 2644,
"src": "291:20:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2637,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "291:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2640,
"indexed": true,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 2644,
"src": "313:18:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2639,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "313:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2642,
"indexed": false,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 2644,
"src": "333:10:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2641,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "333:4:10",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "290:54:10"
},
"src": "276:69:10"
},
{
"anonymous": false,
"documentation": null,
"id": 2652,
"name": "Approval",
"nodeType": "EventDefinition",
"parameters": {
"id": 2651,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2646,
"indexed": true,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 2652,
"src": "365:21:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2645,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "365:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2648,
"indexed": true,
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 2652,
"src": "388:23:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2647,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "388:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2650,
"indexed": false,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 2652,
"src": "413:10:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2649,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "413:4:10",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "364:60:10"
},
"src": "350:75:10"
},
{
"body": null,
"documentation": null,
"id": 2661,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2657,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2654,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 2661,
"src": "489:10:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2653,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "489:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2656,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 2661,
"src": "501:10:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2655,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "501:4:10",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "488:24:10"
},
"payable": false,
"returnParameters": {
"id": 2660,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2659,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2661,
"src": "529:4:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 2658,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "529:4:10",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "528:6:10"
},
"scope": 2703,
"src": "471:64:10",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 2672,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transferFrom",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2668,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2663,
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 2672,
"src": "562:12:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2662,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "562:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2665,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 2672,
"src": "576:10:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2664,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "576:7:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2667,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 2672,
"src": "588:10:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2666,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "588:4:10",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "561:38:10"
},
"payable": false,
"returnParameters": {
"id": 2671,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2670,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2672,
"src": "616:4:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 2669,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "616:4:10",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "615:6:10"
},
"scope": 2703,
"src": "540:82:10",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
"id": 2681,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "approve",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2677,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2674,
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 2681,
"src": "644:15:10",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {