safe-react/safe-contracts/build/contracts/test/Owned.json

14264 lines
554 KiB
JSON
Raw Normal View History

{
"contractName": "Owned",
"abi": [
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "newOwner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_from",
"type": "address"
},
{
"indexed": true,
"name": "_to",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"name": "_newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "acceptOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610424806100606000396000f300608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806379ba5097146100675780638da5cb5b1461007e578063d4ee1d90146100d5578063f2fde38b1461012c575b600080fd5b34801561007357600080fd5b5061007c61016f565b005b34801561008a57600080fd5b5061009361030e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610333565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b5061016d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610359565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156101cb57600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156103b457600080fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a7230582057ddc5cc13a1eca45f4149a4f2748fc00bc0fc8b38da47cbd54fabc1f1a3286f0029",
"deployedBytecode": "0x608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806379ba5097146100675780638da5cb5b1461007e578063d4ee1d90146100d5578063f2fde38b1461012c575b600080fd5b34801561007357600080fd5b5061007c61016f565b005b34801561008a57600080fd5b5061009361030e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610333565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b5061016d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610359565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156101cb57600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156103b457600080fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a7230582057ddc5cc13a1eca45f4149a4f2748fc00bc0fc8b38da47cbd54fabc1f1a3286f0029",
2018-09-26 09:19:53 +00:00
"sourceMap": "2663:595:26:-;;;2817:56;8:9:-1;5:2;;;30:1;27;20:12;5:2;2817:56:26;2856:10;2848:5;;:18;;;;;;;;;;;;;;;;;;2663:595;;;;;;",
"deployedSourceMap": "2663:595:26:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3065:191;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3065:191:26;;;;;;2684:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2684:20:26;;;;;;;;;;;;;;;;;;;;;;;;;;;2710:23;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2710:23:26;;;;;;;;;;;;;;;;;;;;;;;;;;;2960:100;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2960:100:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;3065:191;3131:8;;;;;;;;;;;3117:22;;:10;:22;;;3109:31;;;;;;;;3183:8;;;;;;;;;;;3155:37;;3176:5;;;;;;;;;;;3155:37;;;;;;;;;;;;3210:8;;;;;;;;;;;3202:5;;:16;;;;;;;;;;;;;;;;;;3247:1;3228:8;;:21;;;;;;;;;;;;;;;;;;3065:191::o;2684:20::-;;;;;;;;;;;;;:::o;2710:23::-;;;;;;;;;;;;;:::o;2960:100::-;2930:5;;;;;;;;;;;2916:19;;:10;:19;;;2908:28;;;;;;;;3044:9;3033:8;;:20;;;;;;;;;;;;;;;;;;2960:100;:::o",
"source": "pragma solidity ^0.4.24;\n\n// ----------------------------------------------------------------------------\n// 'FIXED' 'Example Fixed Supply Token' token contract\n//\n// Symbol : FIXED\n// Name : Example Fixed Supply Token\n// Total supply: 1,000,000.000000000000000000\n// Decimals : 18\n//\n// Enjoy.\n//\n// (c) BokkyPooBah / Bok Consulting Pty Ltd 2018. The MIT Licence.\n// ----------------------------------------------------------------------------\n\n\n// ----------------------------------------------------------------------------\n// Safe maths\n// ----------------------------------------------------------------------------\nlibrary SafeMath {\n function add(uint a, uint b) internal pure returns (uint c) {\n c = a + b;\n require(c >= a);\n }\n function sub(uint a, uint b) internal pure returns (uint c) {\n require(b <= a);\n c = a - b;\n }\n function mul(uint a, uint b) internal pure returns (uint c) {\n c = a * b;\n require(a == 0 || c / a == b);\n }\n function div(uint a, uint b) internal pure returns (uint c) {\n require(b > 0);\n c = a / b;\n }\n}\n\n\n// ----------------------------------------------------------------------------\n// ERC Token Standard #20 Interface\n// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md\n// ----------------------------------------------------------------------------\ncontract ERC20Interface {\n function totalSupply() public constant returns (uint);\n function balanceOf(address tokenOwner) public constant returns (uint balance);\n function allowance(address tokenOwner, address spender) public constant returns (uint remaining);\n function transfer(address to, uint tokens) public returns (bool success);\n function approve(address spender, uint tokens) public returns (bool success);\n function transferFrom(address from, address to, uint tokens) public returns (bool success);\n\n event Transfer(address indexed from, address indexed to, uint tokens);\n event Approval(address indexed tokenOwner, address indexed spender, uint tokens);\n}\n\n\n// ----------------------------------------------------------------------------\n// Contract function to receive approval and execute function in one call\n//\n// Borrowed from MiniMeToken\n// ----------------------------------------------------------------------------\ncontract ApproveAndCallFallBack {\n function receiveApproval(address from, uint256 tokens, address token, bytes data) public;\n}\n\n\n// ----------------------------------------------------------------------------\n// Owned contract\n// ----------------------------------------------------------------------------\ncontract Owned {\n address public owner;\n address public newOwner;\n\n event OwnershipTransferred(address indexed _from, address indexed _to);\n\n constructor() public {\n owner = msg.sender;\n }\n\n modifier onlyOwner {\n require(msg.sender == owner);\n _;\n }\n\n function transferOwnership(address _newOwner) public onlyOwner {\n newOwner = _newOwner;\n }\n function acceptOwnership() public {\n require(msg.sender == newOwner);\n emit OwnershipTransferred(owner, newOwner);\n owner = newOwner;\n newOwner = address(0);\n }\n}\n\n\n// ----------------------------------------------------------------------------\n// ERC20 Token, with the addition of symbol, name and decimals and a\n// fixed supply\n// ----------------------------------------------------------------------------\ncontract TestToken is ERC20Interface, Owned {\n using SafeMath for uint;\n\n string public symbol;\n string public name;\n uint8 public decimals;\n uint _totalSupply;\n\n mapping(address => uint) balances;\n mapping(address => mapping(address => uint)) allowed;\n\n\n // ------------------------------------------------------------------------\n // Constructor\n // ------------------------------------------------------------------------\n c
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/test/TestToken.sol",
"ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/test/TestToken.sol",
"exportedSymbols": {
"ApproveAndCallFallBack": [
2018-09-26 09:19:53 +00:00
3591
],
"ERC20Interface": [
2018-09-26 09:19:53 +00:00
3579
],
"Owned": [
2018-09-26 09:19:53 +00:00
3660
],
"SafeMath": [
2018-09-26 09:19:53 +00:00
3512
],
"TestToken": [
2018-09-26 09:19:53 +00:00
3967
]
},
2018-09-26 09:19:53 +00:00
"id": 3968,
"nodeType": "SourceUnit",
"nodes": [
{
2018-09-26 09:19:53 +00:00
"id": 3417,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
2018-09-26 09:19:53 +00:00
"src": "0:24:26"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "library",
"documentation": null,
"fullyImplemented": true,
2018-09-26 09:19:53 +00:00
"id": 3512,
"linearizedBaseContracts": [
2018-09-26 09:19:53 +00:00
3512
],
"name": "SafeMath",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3438,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "719:51:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3430,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3426,
"name": "c",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3424,
"src": "729:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3429,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3427,
"name": "a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3419,
"src": "733:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "+",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3428,
"name": "b",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3421,
"src": "737:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "733:5:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "729:9:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3431,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "729:9:26"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3435,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3433,
"name": "c",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3424,
"src": "756:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": ">=",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3434,
"name": "a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3419,
"src": "761:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "756:6:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-09-26 09:19:53 +00:00
"id": 3432,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-09-26 09:19:53 +00:00
4494,
4495
],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4494,
"src": "748:7:26",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 3436,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "748:15:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3437,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "748:15:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3439,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "add",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3422,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3419,
"name": "a",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3439,
"src": "672:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3418,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "672:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3421,
"name": "b",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3439,
"src": "680:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3420,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "680:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "671:16:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3425,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3424,
"name": "c",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3439,
"src": "711:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3423,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "711:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "710:8:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3512,
"src": "659:111:26",
"stateMutability": "pure",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3460,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "835:51:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3451,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3449,
"name": "b",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3443,
"src": "853:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<=",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3450,
"name": "a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3441,
"src": "858:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "853:6:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-09-26 09:19:53 +00:00
"id": 3448,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-09-26 09:19:53 +00:00
4494,
4495
],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4494,
"src": "845:7:26",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 3452,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "845:15:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3453,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "845:15:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3458,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3454,
"name": "c",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3446,
"src": "870:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3457,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3455,
"name": "a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3441,
"src": "874:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "-",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3456,
"name": "b",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3443,
"src": "878:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "874:5:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "870:9:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3459,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "870:9:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3461,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "sub",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3444,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3441,
"name": "a",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3461,
"src": "788:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3440,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "788:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3443,
"name": "b",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3461,
"src": "796:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3442,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "796:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "787:16:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3447,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3446,
"name": "c",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3461,
"src": "827:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3445,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "827:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "826:8:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3512,
"src": "775:111:26",
"stateMutability": "pure",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3488,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "951:65:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3474,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3470,
"name": "c",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3468,
"src": "961:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3473,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3471,
"name": "a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3463,
"src": "965:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "*",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3472,
"name": "b",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3465,
"src": "969:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "965:5:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "961:9:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3475,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "961:9:26"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
2018-09-26 09:19:53 +00:00
"id": 3485,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3479,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3477,
"name": "a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3463,
"src": "988:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 3478,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "993:1:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-09-26 09:19:53 +00:00
"src": "988:6:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "||",
"rightExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3484,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3482,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3480,
"name": "c",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3468,
"src": "998:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "/",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3481,
"name": "a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3463,
"src": "1002:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "998:5:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3483,
"name": "b",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3465,
"src": "1007:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "998:10:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
2018-09-26 09:19:53 +00:00
"src": "988:20:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-09-26 09:19:53 +00:00
"id": 3476,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-09-26 09:19:53 +00:00
4494,
4495
],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4494,
"src": "980:7:26",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 3486,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "980:29:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3487,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "980:29:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3489,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "mul",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3466,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3463,
"name": "a",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3489,
"src": "904:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3462,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "904:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3465,
"name": "b",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3489,
"src": "912:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3464,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "912:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "903:16:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3469,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3468,
"name": "c",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3489,
"src": "943:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3467,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "943:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "942:8:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3512,
"src": "891:125:26",
"stateMutability": "pure",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3510,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "1081:50:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3501,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3499,
"name": "b",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3493,
"src": "1099:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": ">",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 3500,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "1103:1:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-09-26 09:19:53 +00:00
"src": "1099:5:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-09-26 09:19:53 +00:00
"id": 3498,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-09-26 09:19:53 +00:00
4494,
4495
],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4494,
"src": "1091:7:26",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 3502,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "1091:14:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3503,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "1091:14:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3508,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3504,
"name": "c",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3496,
"src": "1115:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3507,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3505,
"name": "a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3491,
"src": "1119:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "/",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3506,
"name": "b",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3493,
"src": "1123:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "1119:5:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "1115:9:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3509,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "1115:9:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3511,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "div",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3494,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3491,
"name": "a",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3511,
"src": "1034:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3490,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1034:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3493,
"name": "b",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3511,
"src": "1042:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3492,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1042:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1033:16:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3497,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3496,
"name": "c",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3511,
"src": "1073:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3495,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1073:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1072:8:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3512,
"src": "1021:110:26",
"stateMutability": "pure",
"superFunction": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"scope": 3968,
"src": "636:497:26"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": false,
2018-09-26 09:19:53 +00:00
"id": 3579,
"linearizedBaseContracts": [
2018-09-26 09:19:53 +00:00
3579
],
"name": "ERC20Interface",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3517,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "totalSupply",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3513,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "1445:2:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3516,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3515,
"name": "",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3517,
"src": "1473:4:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3514,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1473:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1472:6:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3579,
"src": "1425:54:26",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3524,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3520,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3519,
"name": "tokenOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3524,
"src": "1503:18:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3518,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1503:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1502:20:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3523,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3522,
"name": "balance",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3524,
"src": "1548:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3521,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1548:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1547:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3579,
"src": "1484:78:26",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3533,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "allowance",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3529,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3526,
"name": "tokenOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3533,
"src": "1586:18:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3525,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1586:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3528,
"name": "spender",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3533,
"src": "1606:15:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3527,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1606:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1585:37:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3532,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3531,
"name": "remaining",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3533,
"src": "1648:14:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3530,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1648:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1647:16:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3579,
"src": "1567:97:26",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3542,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3538,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3535,
"name": "to",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3542,
"src": "1687:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3534,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1687:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3537,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3542,
"src": "1699:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3536,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1699:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1686:25:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3541,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3540,
"name": "success",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3542,
"src": "1728:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3539,
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1728:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1727:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3579,
"src": "1669:73:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3551,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "approve",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3547,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3544,
"name": "spender",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3551,
"src": "1764:15:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3543,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1764:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3546,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3551,
"src": "1781:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3545,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1781:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1763:30:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3550,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3549,
"name": "success",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3551,
"src": "1810:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3548,
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1810:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1809:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3579,
"src": "1747:77:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3562,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transferFrom",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3558,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3553,
"name": "from",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3562,
"src": "1851:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3552,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1851:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3555,
"name": "to",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3562,
"src": "1865:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3554,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1865:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3557,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3562,
"src": "1877:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3556,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1877:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1850:39:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3561,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3560,
"name": "success",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3562,
"src": "1906:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3559,
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1906:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1905:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3579,
"src": "1829:91:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"anonymous": false,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3570,
"name": "Transfer",
"nodeType": "EventDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3569,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3564,
"indexed": true,
"name": "from",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3570,
"src": "1941:20:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3563,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1941:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3566,
"indexed": true,
"name": "to",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3570,
"src": "1963:18:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3565,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1963:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3568,
"indexed": false,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3570,
"src": "1983:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3567,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1983:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1940:55:26"
},
2018-09-26 09:19:53 +00:00
"src": "1926:70:26"
},
{
"anonymous": false,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3578,
"name": "Approval",
"nodeType": "EventDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3577,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3572,
"indexed": true,
"name": "tokenOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3578,
"src": "2016:26:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3571,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2016:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3574,
"indexed": true,
"name": "spender",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3578,
"src": "2044:23:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3573,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2044:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3576,
"indexed": false,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3578,
"src": "2069:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3575,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2069:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "2015:66:26"
},
2018-09-26 09:19:53 +00:00
"src": "2001:81:26"
}
],
2018-09-26 09:19:53 +00:00
"scope": 3968,
"src": "1395:689:26"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": false,
2018-09-26 09:19:53 +00:00
"id": 3591,
"linearizedBaseContracts": [
2018-09-26 09:19:53 +00:00
3591
],
"name": "ApproveAndCallFallBack",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3590,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "receiveApproval",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3588,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3581,
"name": "from",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3590,
"src": "2416:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3580,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2416:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3583,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3590,
"src": "2430:14:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3582,
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2430:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3585,
"name": "token",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3590,
"src": "2446:13:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3584,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2446:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3587,
"name": "data",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3590,
"src": "2461:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3586,
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2461:5:26",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "2415:57:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3589,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "2479:0:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3591,
"src": "2391:89:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
2018-09-26 09:19:53 +00:00
"scope": 3968,
"src": "2353:129:26"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
2018-09-26 09:19:53 +00:00
"id": 3660,
"linearizedBaseContracts": [
2018-09-26 09:19:53 +00:00
3660
],
"name": "Owned",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3593,
"name": "owner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3660,
"src": "2684:20:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3592,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2684:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3595,
"name": "newOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3660,
"src": "2710:23:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3594,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2710:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "public"
},
{
"anonymous": false,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3601,
"name": "OwnershipTransferred",
"nodeType": "EventDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3600,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3597,
"indexed": true,
"name": "_from",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3601,
"src": "2767:21:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3596,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2767:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3599,
"indexed": true,
"name": "_to",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3601,
"src": "2790:19:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3598,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2790:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "2766:44:26"
},
2018-09-26 09:19:53 +00:00
"src": "2740:71:26"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3609,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "2838:35:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3607,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3604,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3593,
"src": "2848:5:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3605,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "2856:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3606,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "2856:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "2848:18:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"id": 3608,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "2848:18:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3610,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3602,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "2828:2:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3603,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "2838:0:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3660,
"src": "2817:56:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3620,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "2898:56:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
2018-09-26 09:19:53 +00:00
"id": 3616,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3613,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "2916:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3614,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "2916:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3615,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3593,
"src": "2930:5:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "2916:19:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-09-26 09:19:53 +00:00
"id": 3612,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-09-26 09:19:53 +00:00
4494,
4495
],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4494,
"src": "2908:7:26",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 3617,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2908:28:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3618,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "2908:28:26"
},
{
2018-09-26 09:19:53 +00:00
"id": 3619,
"nodeType": "PlaceholderStatement",
2018-09-26 09:19:53 +00:00
"src": "2946:1:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3621,
"name": "onlyOwner",
"nodeType": "ModifierDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3611,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "2898:0:26"
},
2018-09-26 09:19:53 +00:00
"src": "2879:75:26",
"visibility": "internal"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3632,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "3023:37:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3630,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3628,
"name": "newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3595,
"src": "3033:8:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3629,
"name": "_newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3623,
"src": "3044:9:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "3033:20:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"id": 3631,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "3033:20:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3633,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
2018-09-26 09:19:53 +00:00
"id": 3626,
"modifierName": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3625,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3621,
"src": "3013:9:26",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
2018-09-26 09:19:53 +00:00
"src": "3013:9:26"
}
],
"name": "transferOwnership",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3624,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3623,
"name": "_newOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3633,
"src": "2987:17:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3622,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2987:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "2986:19:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3627,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "3023:0:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3660,
"src": "2960:100:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3658,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "3099:157:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
2018-09-26 09:19:53 +00:00
"id": 3640,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3637,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "3117:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3638,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "3117:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3639,
"name": "newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3595,
"src": "3131:8:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "3117:22:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-09-26 09:19:53 +00:00
"id": 3636,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-09-26 09:19:53 +00:00
4494,
4495
],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4494,
"src": "3109:7:26",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 3641,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "3109:31:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3642,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "3109:31:26"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3644,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3593,
"src": "3176:5:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3645,
"name": "newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3595,
"src": "3183:8:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
2018-09-26 09:19:53 +00:00
"id": 3643,
"name": "OwnershipTransferred",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3601,
"src": "3155:20:26",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
"typeString": "function (address,address)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3646,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "3155:37:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3647,
"nodeType": "EmitStatement",
2018-09-26 09:19:53 +00:00
"src": "3150:42:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3650,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3648,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3593,
"src": "3202:5:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3649,
"name": "newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3595,
"src": "3210:8:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "3202:16:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"id": 3651,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "3202:16:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3656,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3652,
"name": "newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3595,
"src": "3228:8:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 3654,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "3247:1:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
2018-09-26 09:19:53 +00:00
"id": 3653,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
2018-09-26 09:19:53 +00:00
"src": "3239:7:26",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
2018-09-26 09:19:53 +00:00
"id": 3655,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "3239:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "3228:21:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"id": 3657,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "3228:21:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3659,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "acceptOwnership",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3634,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "3089:2:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3635,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "3099:0:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3660,
"src": "3065:191:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
2018-09-26 09:19:53 +00:00
"scope": 3968,
"src": "2663:595:26"
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-09-26 09:19:53 +00:00
"id": 3661,
"name": "ERC20Interface",
"nodeType": "UserDefinedTypeName",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3579,
"src": "3528:14:26",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_ERC20Interface_$3579",
"typeString": "contract ERC20Interface"
}
},
2018-09-26 09:19:53 +00:00
"id": 3662,
"nodeType": "InheritanceSpecifier",
2018-09-26 09:19:53 +00:00
"src": "3528:14:26"
},
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-09-26 09:19:53 +00:00
"id": 3663,
"name": "Owned",
"nodeType": "UserDefinedTypeName",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3660,
"src": "3544:5:26",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_Owned_$3660",
"typeString": "contract Owned"
}
},
2018-09-26 09:19:53 +00:00
"id": 3664,
"nodeType": "InheritanceSpecifier",
2018-09-26 09:19:53 +00:00
"src": "3544:5:26"
}
],
"contractDependencies": [
2018-09-26 09:19:53 +00:00
3579,
3660
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
2018-09-26 09:19:53 +00:00
"id": 3967,
"linearizedBaseContracts": [
2018-09-26 09:19:53 +00:00
3967,
3660,
3579
],
"name": "TestToken",
"nodeType": "ContractDefinition",
"nodes": [
{
2018-09-26 09:19:53 +00:00
"id": 3667,
"libraryName": {
"contractScope": null,
2018-09-26 09:19:53 +00:00
"id": 3665,
"name": "SafeMath",
"nodeType": "UserDefinedTypeName",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3512,
"src": "3562:8:26",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_SafeMath_$3512",
"typeString": "library SafeMath"
}
},
"nodeType": "UsingForDirective",
2018-09-26 09:19:53 +00:00
"src": "3556:24:26",
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3666,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3575:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3669,
"name": "symbol",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "3586:20:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3668,
"name": "string",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3586:6:26",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3671,
"name": "name",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "3612:19:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3670,
"name": "string",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3612:6:26",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3673,
"name": "decimals",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "3637:21:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3672,
"name": "uint8",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3637:5:26",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3675,
"name": "_totalSupply",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "3664:17:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3674,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3664:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3679,
"name": "balances",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "3688:33:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3678,
"keyType": {
2018-09-26 09:19:53 +00:00
"id": 3676,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3696:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
2018-09-26 09:19:53 +00:00
"src": "3688:24:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
},
"valueType": {
2018-09-26 09:19:53 +00:00
"id": 3677,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3707:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3685,
"name": "allowed",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "3727:52:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(address => mapping(address => uint256))"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3684,
"keyType": {
2018-09-26 09:19:53 +00:00
"id": 3680,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3735:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
2018-09-26 09:19:53 +00:00
"src": "3727:44:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(address => mapping(address => uint256))"
},
"valueType": {
2018-09-26 09:19:53 +00:00
"id": 3683,
"keyType": {
2018-09-26 09:19:53 +00:00
"id": 3681,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3754:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
2018-09-26 09:19:53 +00:00
"src": "3746:24:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
},
"valueType": {
2018-09-26 09:19:53 +00:00
"id": 3682,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3765:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3724,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "3987:235:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3690,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3688,
"name": "symbol",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3669,
"src": "3997:6:26",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "544b4e",
2018-09-26 09:19:53 +00:00
"id": 3689,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "4006:5:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_9ee187a325c80a9ca820b4f297a58770bf5a85fede3756f8e7e9d14ff37d7b66",
"typeString": "literal_string \"TKN\""
},
"value": "TKN"
},
2018-09-26 09:19:53 +00:00
"src": "3997:14:26",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
2018-09-26 09:19:53 +00:00
"id": 3691,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "3997:14:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3694,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3692,
"name": "name",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3671,
"src": "4021:4:26",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "546f6b656e204578616d706c65",
2018-09-26 09:19:53 +00:00
"id": 3693,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "4028:15:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_e57db44f555e20abcea99743d90b2c763b40df4478f8c8195ecabb23fc906e9a",
"typeString": "literal_string \"Token Example\""
},
"value": "Token Example"
},
2018-09-26 09:19:53 +00:00
"src": "4021:22:26",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
2018-09-26 09:19:53 +00:00
"id": 3695,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "4021:22:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3698,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3696,
"name": "decimals",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3673,
"src": "4053:8:26",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "3138",
2018-09-26 09:19:53 +00:00
"id": 3697,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "4064:2:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_18_by_1",
"typeString": "int_const 18"
},
"value": "18"
},
2018-09-26 09:19:53 +00:00
"src": "4053:13:26",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
2018-09-26 09:19:53 +00:00
"id": 3699,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "4053:13:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3708,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3700,
"name": "_totalSupply",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3675,
"src": "4076:12:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3707,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"hexValue": "31303030303030",
2018-09-26 09:19:53 +00:00
"id": 3701,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "4091:7:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1000000_by_1",
"typeString": "int_const 1000000"
},
"value": "1000000"
},
"nodeType": "BinaryOperation",
"operator": "*",
"rightExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3706,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"hexValue": "3130",
2018-09-26 09:19:53 +00:00
"id": 3702,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "4101:2:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_10_by_1",
"typeString": "int_const 10"
},
"value": "10"
},
"nodeType": "BinaryOperation",
"operator": "**",
"rightExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3704,
"name": "decimals",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3673,
"src": "4110:8:26",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
],
2018-09-26 09:19:53 +00:00
"id": 3703,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
2018-09-26 09:19:53 +00:00
"src": "4105:4:26",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_uint256_$",
"typeString": "type(uint256)"
},
"typeName": "uint"
},
2018-09-26 09:19:53 +00:00
"id": 3705,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "4105:14:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "4101:18:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "4091:28:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "4076:43:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3709,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "4076:43:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3714,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3710,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "4129:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3712,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3711,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3593,
"src": "4138:5:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "4129:15:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3713,
"name": "_totalSupply",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3675,
"src": "4147:12:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "4129:30:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3715,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "4129:30:26"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 3718,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "4191:1:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
2018-09-26 09:19:53 +00:00
"id": 3717,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
2018-09-26 09:19:53 +00:00
"src": "4183:7:26",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
2018-09-26 09:19:53 +00:00
"id": 3719,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "4183:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3720,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3593,
"src": "4195:5:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3721,
"name": "_totalSupply",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3675,
"src": "4202:12:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
2018-09-26 09:19:53 +00:00
"id": 3716,
"name": "Transfer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3570,
"src": "4174:8:26",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
"typeString": "function (address,address,uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3722,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "4174:41:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3723,
"nodeType": "EmitStatement",
2018-09-26 09:19:53 +00:00
"src": "4169:46:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3725,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3686,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "3977:2:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3687,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "3987:0:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "3966:256:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3739,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "4459:62:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3732,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "4493:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3736,
"indexExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 3734,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "4510:1:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
2018-09-26 09:19:53 +00:00
"id": 3733,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
2018-09-26 09:19:53 +00:00
"src": "4502:7:26",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
2018-09-26 09:19:53 +00:00
"id": 3735,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "4502:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "4493:20:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3730,
"name": "_totalSupply",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3675,
"src": "4476:12:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3731,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sub",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3461,
"src": "4476:16:26",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
"typeString": "function (uint256,uint256) pure returns (uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3737,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "4476:38:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 3729,
"id": 3738,
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "4469:45:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3740,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "totalSupply",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3726,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "4429:2:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3729,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3728,
"name": "",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3740,
"src": "4453:4:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3727,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "4453:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "4452:6:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "4409:112:26",
"stateMutability": "view",
2018-09-26 09:19:53 +00:00
"superFunction": 3517,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3751,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "4816:44:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3747,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "4833:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3749,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3748,
"name": "tokenOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3742,
"src": "4842:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "4833:20:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 3746,
"id": 3750,
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "4826:27:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3752,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3743,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3742,
"name": "tokenOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3752,
"src": "4761:18:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3741,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "4761:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "4760:20:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3746,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3745,
"name": "balance",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3752,
"src": "4802:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3744,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "4802:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "4801:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "4742:118:26",
"stateMutability": "view",
2018-09-26 09:19:53 +00:00
"superFunction": 3524,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3794,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "5276:189:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3772,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3761,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "5286:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3764,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3762,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "5295:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3763,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "5295:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "5286:20:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3770,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3756,
"src": "5334:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3765,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "5309:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3768,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3766,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "5318:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3767,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "5318:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "5309:20:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3769,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sub",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3461,
"src": "5309:24:26",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
"typeString": "function (uint256,uint256) pure returns (uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3771,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "5309:32:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "5286:55:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3773,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "5286:55:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3783,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3774,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "5351:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3776,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3775,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3754,
"src": "5360:2:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "5351:12:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3781,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3756,
"src": "5383:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3777,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "5366:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3779,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3778,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3754,
"src": "5375:2:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "5366:12:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3780,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "add",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3439,
"src": "5366:16:26",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
"typeString": "function (uint256,uint256) pure returns (uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3782,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "5366:24:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "5351:39:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3784,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "5351:39:26"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3786,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "5414:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3787,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "5414:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3788,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3754,
"src": "5426:2:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3789,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3756,
"src": "5430:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
2018-09-26 09:19:53 +00:00
"id": 3785,
"name": "Transfer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3570,
"src": "5405:8:26",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
"typeString": "function (address,address,uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3790,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "5405:32:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3791,
"nodeType": "EmitStatement",
2018-09-26 09:19:53 +00:00
"src": "5400:37:26"
},
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
2018-09-26 09:19:53 +00:00
"id": 3792,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "5454:4:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 3760,
"id": 3793,
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "5447:11:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3795,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3757,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3754,
"name": "to",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3795,
"src": "5221:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3753,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "5221:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3756,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3795,
"src": "5233:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3755,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "5233:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "5220:25:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3760,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3759,
"name": "success",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3795,
"src": "5262:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3758,
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "5262:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "5261:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "5203:262:26",
"stateMutability": "nonpayable",
2018-09-26 09:19:53 +00:00
"superFunction": 3542,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3822,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "6048:127:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3811,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3804,
"name": "allowed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3685,
"src": "6058:7:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(address => mapping(address => uint256))"
}
},
2018-09-26 09:19:53 +00:00
"id": 3808,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3805,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "6066:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3806,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "6066:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6058:19:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3809,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3807,
"name": "spender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3797,
"src": "6078:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6058:28:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3810,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3799,
"src": "6089:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "6058:37:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3812,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "6058:37:26"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3814,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "6119:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3815,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "6119:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3816,
"name": "spender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3797,
"src": "6131:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3817,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3799,
"src": "6140:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
2018-09-26 09:19:53 +00:00
"id": 3813,
"name": "Approval",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3578,
"src": "6110:8:26",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
"typeString": "function (address,address,uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3818,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "6110:37:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3819,
"nodeType": "EmitStatement",
2018-09-26 09:19:53 +00:00
"src": "6105:42:26"
},
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
2018-09-26 09:19:53 +00:00
"id": 3820,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "6164:4:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 3803,
"id": 3821,
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "6157:11:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3823,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "approve",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3800,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3797,
"name": "spender",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3823,
"src": "5988:15:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3796,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "5988:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3799,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3823,
"src": "6005:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3798,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "6005:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "5987:30:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3803,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3802,
"name": "success",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3823,
"src": "6034:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3801,
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "6034:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "6033:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "5971:204:26",
"stateMutability": "nonpayable",
2018-09-26 09:19:53 +00:00
"superFunction": 3551,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3881,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "6798:246:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3843,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3834,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "6808:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3836,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3835,
"name": "from",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3825,
"src": "6817:4:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6808:14:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3841,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3829,
"src": "6844:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3837,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "6825:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3839,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3838,
"name": "from",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3825,
"src": "6834:4:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6825:14:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3840,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sub",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3461,
"src": "6825:18:26",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
"typeString": "function (uint256,uint256) pure returns (uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3842,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "6825:26:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "6808:43:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3844,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "6808:43:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3860,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3845,
"name": "allowed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3685,
"src": "6861:7:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(address => mapping(address => uint256))"
}
},
2018-09-26 09:19:53 +00:00
"id": 3849,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3846,
"name": "from",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3825,
"src": "6869:4:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6861:13:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3850,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3847,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "6875:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3848,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "6875:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6861:25:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3858,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3829,
"src": "6919:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3851,
"name": "allowed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3685,
"src": "6889:7:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(address => mapping(address => uint256))"
}
},
2018-09-26 09:19:53 +00:00
"id": 3853,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3852,
"name": "from",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3825,
"src": "6897:4:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6889:13:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3856,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3854,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "6903:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3855,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "6903:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6889:25:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3857,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sub",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3461,
"src": "6889:29:26",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
"typeString": "function (uint256,uint256) pure returns (uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3859,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "6889:37:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "6861:65:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3861,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "6861:65:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3871,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3862,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "6936:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3864,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3863,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3827,
"src": "6945:2:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6936:12:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3869,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3829,
"src": "6968:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3865,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "6951:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3867,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3866,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3827,
"src": "6960:2:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6951:12:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3868,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "add",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3439,
"src": "6951:16:26",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
"typeString": "function (uint256,uint256) pure returns (uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3870,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "6951:24:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "6936:39:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3872,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "6936:39:26"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3874,
"name": "from",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3825,
"src": "6999:4:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3875,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3827,
"src": "7005:2:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3876,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3829,
"src": "7009:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
2018-09-26 09:19:53 +00:00
"id": 3873,
"name": "Transfer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3570,
"src": "6990:8:26",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
"typeString": "function (address,address,uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3877,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "6990:26:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3878,
"nodeType": "EmitStatement",
2018-09-26 09:19:53 +00:00
"src": "6985:31:26"
},
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
2018-09-26 09:19:53 +00:00
"id": 3879,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "7033:4:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 3833,
"id": 3880,
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "7026:11:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3882,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transferFrom",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3830,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3825,
"name": "from",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3882,
"src": "6729:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3824,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "6729:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3827,
"name": "to",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3882,
"src": "6743:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3826,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "6743:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3829,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3882,
"src": "6755:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3828,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "6755:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "6728:39:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3833,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3832,
"name": "success",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3882,
"src": "6784:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3831,
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "6784:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "6783:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "6707:337:26",
"stateMutability": "nonpayable",
2018-09-26 09:19:53 +00:00
"superFunction": 3562,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3897,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "7418:52:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3891,
"name": "allowed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3685,
"src": "7435:7:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(address => mapping(address => uint256))"
}
},
2018-09-26 09:19:53 +00:00
"id": 3893,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3892,
"name": "tokenOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3884,
"src": "7443:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "7435:19:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3895,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3894,
"name": "spender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3886,
"src": "7455:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "7435:28:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 3890,
"id": 3896,
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "7428:35:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3898,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "allowance",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3887,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3884,
"name": "tokenOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3898,
"src": "7344:18:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3883,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "7344:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3886,
"name": "spender",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3898,
"src": "7364:15:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3885,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "7364:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "7343:37:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3890,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3889,
"name": "remaining",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3898,
"src": "7402:14:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3888,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "7402:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "7401:16:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "7325:145:26",
"stateMutability": "view",
2018-09-26 09:19:53 +00:00
"superFunction": 3533,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3938,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "7926:216:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3916,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3909,
"name": "allowed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3685,
"src": "7936:7:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(address => mapping(address => uint256))"
}
},
2018-09-26 09:19:53 +00:00
"id": 3913,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3910,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "7944:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3911,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "7944:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "7936:19:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3914,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3912,
"name": "spender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3900,
"src": "7956:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "7936:28:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3915,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3902,
"src": "7967:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "7936:37:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3917,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "7936:37:26"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3919,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "7997:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3920,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "7997:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3921,
"name": "spender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3900,
"src": "8009:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3922,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3902,
"src": "8018:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
2018-09-26 09:19:53 +00:00
"id": 3918,
"name": "Approval",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3578,
"src": "7988:8:26",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
"typeString": "function (address,address,uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3923,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "7988:37:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3924,
"nodeType": "EmitStatement",
2018-09-26 09:19:53 +00:00
"src": "7983:42:26"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3929,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "8083:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3930,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "8083:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3931,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3902,
"src": "8095:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3932,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4574,
"src": "8103:4:26",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_TestToken_$3967",
"typeString": "contract TestToken"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3933,
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3904,
"src": "8109:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_TestToken_$3967",
"typeString": "contract TestToken"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3926,
"name": "spender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3900,
"src": "8058:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
2018-09-26 09:19:53 +00:00
"id": 3925,
"name": "ApproveAndCallFallBack",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3591,
"src": "8035:22:26",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_type$_t_contract$_ApproveAndCallFallBack_$3591_$",
"typeString": "type(contract ApproveAndCallFallBack)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3927,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "8035:31:26",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_ApproveAndCallFallBack_$3591",
"typeString": "contract ApproveAndCallFallBack"
}
},
2018-09-26 09:19:53 +00:00
"id": 3928,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "receiveApproval",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3590,
"src": "8035:47:26",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$_t_address_$_t_bytes_memory_ptr_$returns$__$",
"typeString": "function (address,uint256,address,bytes memory) external"
}
},
2018-09-26 09:19:53 +00:00
"id": 3934,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "8035:79:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3935,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "8035:79:26"
},
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
2018-09-26 09:19:53 +00:00
"id": 3936,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "8131:4:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 3908,
"id": 3937,
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "8124:11:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3939,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "approveAndCall",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3905,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3900,
"name": "spender",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3939,
"src": "7854:15:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3899,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "7854:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3902,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3939,
"src": "7871:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3901,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "7871:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3904,
"name": "data",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3939,
"src": "7884:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3903,
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "7884:5:26",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "7853:42:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3908,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3907,
"name": "success",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3939,
"src": "7912:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3906,
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "7912:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "7911:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "7830:312:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3945,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "8360:25:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
2018-09-26 09:19:53 +00:00
"id": 3942,
"name": "revert",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-09-26 09:19:53 +00:00
4496,
4497
],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4496,
"src": "8370:6:26",
"typeDescriptions": {
"typeIdentifier": "t_function_revert_pure$__$returns$__$",
"typeString": "function () pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 3943,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "8370:8:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3944,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "8370:8:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3946,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3940,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "8342:2:26"
},
"payable": true,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3941,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "8360:0:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "8333:52:26",
"stateMutability": "payable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3965,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "8723:76:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3961,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3593,
"src": "8778:5:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3962,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3950,
"src": "8785:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3958,
"name": "tokenAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3948,
"src": "8755:12:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
2018-09-26 09:19:53 +00:00
"id": 3957,
"name": "ERC20Interface",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3579,
"src": "8740:14:26",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_type$_t_contract$_ERC20Interface_$3579_$",
"typeString": "type(contract ERC20Interface)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3959,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "8740:28:26",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_ERC20Interface_$3579",
"typeString": "contract ERC20Interface"
}
},
2018-09-26 09:19:53 +00:00
"id": 3960,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "transfer",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3542,
"src": "8740:37:26",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,uint256) external returns (bool)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3963,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "8740:52:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 3956,
"id": 3964,
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "8733:59:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3966,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
2018-09-26 09:19:53 +00:00
"id": 3953,
"modifierName": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3952,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3621,
"src": "8690:9:26",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
2018-09-26 09:19:53 +00:00
"src": "8690:9:26"
}
],
"name": "transferAnyERC20Token",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3951,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3948,
"name": "tokenAddress",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3966,
"src": "8648:20:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3947,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "8648:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3950,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3966,
"src": "8670:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3949,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "8670:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "8647:35:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3956,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3955,
"name": "success",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3966,
"src": "8709:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3954,
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "8709:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "8708:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "8617:182:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
2018-09-26 09:19:53 +00:00
"scope": 3968,
"src": "3506:5295:26"
}
],
2018-09-26 09:19:53 +00:00
"src": "0:8801:26"
},
"legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/test/TestToken.sol",
"exportedSymbols": {
"ApproveAndCallFallBack": [
2018-09-26 09:19:53 +00:00
3591
],
"ERC20Interface": [
2018-09-26 09:19:53 +00:00
3579
],
"Owned": [
2018-09-26 09:19:53 +00:00
3660
],
"SafeMath": [
2018-09-26 09:19:53 +00:00
3512
],
"TestToken": [
2018-09-26 09:19:53 +00:00
3967
]
},
2018-09-26 09:19:53 +00:00
"id": 3968,
"nodeType": "SourceUnit",
"nodes": [
{
2018-09-26 09:19:53 +00:00
"id": 3417,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
2018-09-26 09:19:53 +00:00
"src": "0:24:26"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "library",
"documentation": null,
"fullyImplemented": true,
2018-09-26 09:19:53 +00:00
"id": 3512,
"linearizedBaseContracts": [
2018-09-26 09:19:53 +00:00
3512
],
"name": "SafeMath",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3438,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "719:51:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3430,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3426,
"name": "c",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3424,
"src": "729:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3429,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3427,
"name": "a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3419,
"src": "733:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "+",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3428,
"name": "b",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3421,
"src": "737:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "733:5:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "729:9:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3431,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "729:9:26"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3435,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3433,
"name": "c",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3424,
"src": "756:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": ">=",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3434,
"name": "a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3419,
"src": "761:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "756:6:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-09-26 09:19:53 +00:00
"id": 3432,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-09-26 09:19:53 +00:00
4494,
4495
],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4494,
"src": "748:7:26",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 3436,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "748:15:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3437,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "748:15:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3439,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "add",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3422,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3419,
"name": "a",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3439,
"src": "672:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3418,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "672:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3421,
"name": "b",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3439,
"src": "680:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3420,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "680:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "671:16:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3425,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3424,
"name": "c",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3439,
"src": "711:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3423,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "711:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "710:8:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3512,
"src": "659:111:26",
"stateMutability": "pure",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3460,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "835:51:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3451,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3449,
"name": "b",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3443,
"src": "853:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<=",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3450,
"name": "a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3441,
"src": "858:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "853:6:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-09-26 09:19:53 +00:00
"id": 3448,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-09-26 09:19:53 +00:00
4494,
4495
],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4494,
"src": "845:7:26",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 3452,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "845:15:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3453,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "845:15:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3458,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3454,
"name": "c",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3446,
"src": "870:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3457,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3455,
"name": "a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3441,
"src": "874:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "-",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3456,
"name": "b",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3443,
"src": "878:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "874:5:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "870:9:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3459,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "870:9:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3461,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "sub",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3444,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3441,
"name": "a",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3461,
"src": "788:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3440,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "788:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3443,
"name": "b",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3461,
"src": "796:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3442,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "796:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "787:16:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3447,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3446,
"name": "c",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3461,
"src": "827:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3445,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "827:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "826:8:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3512,
"src": "775:111:26",
"stateMutability": "pure",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3488,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "951:65:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3474,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3470,
"name": "c",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3468,
"src": "961:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3473,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3471,
"name": "a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3463,
"src": "965:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "*",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3472,
"name": "b",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3465,
"src": "969:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "965:5:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "961:9:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3475,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "961:9:26"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
2018-09-26 09:19:53 +00:00
"id": 3485,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3479,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3477,
"name": "a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3463,
"src": "988:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 3478,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "993:1:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-09-26 09:19:53 +00:00
"src": "988:6:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "||",
"rightExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3484,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3482,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3480,
"name": "c",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3468,
"src": "998:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "/",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3481,
"name": "a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3463,
"src": "1002:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "998:5:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3483,
"name": "b",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3465,
"src": "1007:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "998:10:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
2018-09-26 09:19:53 +00:00
"src": "988:20:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-09-26 09:19:53 +00:00
"id": 3476,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-09-26 09:19:53 +00:00
4494,
4495
],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4494,
"src": "980:7:26",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 3486,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "980:29:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3487,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "980:29:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3489,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "mul",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3466,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3463,
"name": "a",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3489,
"src": "904:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3462,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "904:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3465,
"name": "b",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3489,
"src": "912:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3464,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "912:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "903:16:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3469,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3468,
"name": "c",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3489,
"src": "943:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3467,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "943:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "942:8:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3512,
"src": "891:125:26",
"stateMutability": "pure",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3510,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "1081:50:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3501,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3499,
"name": "b",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3493,
"src": "1099:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": ">",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 3500,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "1103:1:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
2018-09-26 09:19:53 +00:00
"src": "1099:5:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-09-26 09:19:53 +00:00
"id": 3498,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-09-26 09:19:53 +00:00
4494,
4495
],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4494,
"src": "1091:7:26",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 3502,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "1091:14:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3503,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "1091:14:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3508,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3504,
"name": "c",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3496,
"src": "1115:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3507,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3505,
"name": "a",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3491,
"src": "1119:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "/",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3506,
"name": "b",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3493,
"src": "1123:1:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "1119:5:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "1115:9:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3509,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "1115:9:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3511,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "div",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3494,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3491,
"name": "a",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3511,
"src": "1034:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3490,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1034:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3493,
"name": "b",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3511,
"src": "1042:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3492,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1042:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1033:16:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3497,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3496,
"name": "c",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3511,
"src": "1073:6:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3495,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1073:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1072:8:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3512,
"src": "1021:110:26",
"stateMutability": "pure",
"superFunction": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"scope": 3968,
"src": "636:497:26"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": false,
2018-09-26 09:19:53 +00:00
"id": 3579,
"linearizedBaseContracts": [
2018-09-26 09:19:53 +00:00
3579
],
"name": "ERC20Interface",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3517,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "totalSupply",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3513,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "1445:2:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3516,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3515,
"name": "",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3517,
"src": "1473:4:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3514,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1473:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1472:6:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3579,
"src": "1425:54:26",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3524,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3520,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3519,
"name": "tokenOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3524,
"src": "1503:18:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3518,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1503:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1502:20:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3523,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3522,
"name": "balance",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3524,
"src": "1548:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3521,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1548:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1547:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3579,
"src": "1484:78:26",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3533,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "allowance",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3529,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3526,
"name": "tokenOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3533,
"src": "1586:18:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3525,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1586:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3528,
"name": "spender",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3533,
"src": "1606:15:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3527,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1606:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1585:37:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3532,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3531,
"name": "remaining",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3533,
"src": "1648:14:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3530,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1648:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1647:16:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3579,
"src": "1567:97:26",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3542,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3538,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3535,
"name": "to",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3542,
"src": "1687:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3534,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1687:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3537,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3542,
"src": "1699:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3536,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1699:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1686:25:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3541,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3540,
"name": "success",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3542,
"src": "1728:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3539,
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1728:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1727:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3579,
"src": "1669:73:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3551,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "approve",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3547,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3544,
"name": "spender",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3551,
"src": "1764:15:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3543,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1764:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3546,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3551,
"src": "1781:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3545,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1781:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1763:30:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3550,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3549,
"name": "success",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3551,
"src": "1810:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3548,
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1810:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1809:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3579,
"src": "1747:77:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": null,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3562,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transferFrom",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3558,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3553,
"name": "from",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3562,
"src": "1851:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3552,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1851:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3555,
"name": "to",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3562,
"src": "1865:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3554,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1865:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3557,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3562,
"src": "1877:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3556,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1877:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1850:39:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3561,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3560,
"name": "success",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3562,
"src": "1906:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3559,
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1906:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1905:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3579,
"src": "1829:91:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"anonymous": false,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3570,
"name": "Transfer",
"nodeType": "EventDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3569,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3564,
"indexed": true,
"name": "from",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3570,
"src": "1941:20:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3563,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1941:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3566,
"indexed": true,
"name": "to",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3570,
"src": "1963:18:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3565,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1963:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3568,
"indexed": false,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3570,
"src": "1983:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3567,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "1983:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "1940:55:26"
},
2018-09-26 09:19:53 +00:00
"src": "1926:70:26"
},
{
"anonymous": false,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3578,
"name": "Approval",
"nodeType": "EventDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3577,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3572,
"indexed": true,
"name": "tokenOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3578,
"src": "2016:26:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3571,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2016:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3574,
"indexed": true,
"name": "spender",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3578,
"src": "2044:23:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3573,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2044:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3576,
"indexed": false,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3578,
"src": "2069:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3575,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2069:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "2015:66:26"
},
2018-09-26 09:19:53 +00:00
"src": "2001:81:26"
}
],
2018-09-26 09:19:53 +00:00
"scope": 3968,
"src": "1395:689:26"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": false,
2018-09-26 09:19:53 +00:00
"id": 3591,
"linearizedBaseContracts": [
2018-09-26 09:19:53 +00:00
3591
],
"name": "ApproveAndCallFallBack",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3590,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "receiveApproval",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3588,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3581,
"name": "from",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3590,
"src": "2416:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3580,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2416:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3583,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3590,
"src": "2430:14:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3582,
"name": "uint256",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2430:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3585,
"name": "token",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3590,
"src": "2446:13:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3584,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2446:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3587,
"name": "data",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3590,
"src": "2461:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3586,
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2461:5:26",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "2415:57:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3589,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "2479:0:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3591,
"src": "2391:89:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
2018-09-26 09:19:53 +00:00
"scope": 3968,
"src": "2353:129:26"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
2018-09-26 09:19:53 +00:00
"id": 3660,
"linearizedBaseContracts": [
2018-09-26 09:19:53 +00:00
3660
],
"name": "Owned",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3593,
"name": "owner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3660,
"src": "2684:20:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3592,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2684:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3595,
"name": "newOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3660,
"src": "2710:23:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3594,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2710:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "public"
},
{
"anonymous": false,
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3601,
"name": "OwnershipTransferred",
"nodeType": "EventDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3600,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3597,
"indexed": true,
"name": "_from",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3601,
"src": "2767:21:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3596,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2767:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3599,
"indexed": true,
"name": "_to",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3601,
"src": "2790:19:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3598,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2790:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "2766:44:26"
},
2018-09-26 09:19:53 +00:00
"src": "2740:71:26"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3609,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "2838:35:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3607,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3604,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3593,
"src": "2848:5:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3605,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "2856:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3606,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "2856:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "2848:18:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"id": 3608,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "2848:18:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3610,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3602,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "2828:2:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3603,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "2838:0:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3660,
"src": "2817:56:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3620,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "2898:56:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
2018-09-26 09:19:53 +00:00
"id": 3616,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3613,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "2916:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3614,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "2916:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3615,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3593,
"src": "2930:5:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "2916:19:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-09-26 09:19:53 +00:00
"id": 3612,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-09-26 09:19:53 +00:00
4494,
4495
],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4494,
"src": "2908:7:26",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 3617,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "2908:28:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3618,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "2908:28:26"
},
{
2018-09-26 09:19:53 +00:00
"id": 3619,
"nodeType": "PlaceholderStatement",
2018-09-26 09:19:53 +00:00
"src": "2946:1:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3621,
"name": "onlyOwner",
"nodeType": "ModifierDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3611,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "2898:0:26"
},
2018-09-26 09:19:53 +00:00
"src": "2879:75:26",
"visibility": "internal"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3632,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "3023:37:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3630,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3628,
"name": "newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3595,
"src": "3033:8:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3629,
"name": "_newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3623,
"src": "3044:9:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "3033:20:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"id": 3631,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "3033:20:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3633,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
2018-09-26 09:19:53 +00:00
"id": 3626,
"modifierName": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3625,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3621,
"src": "3013:9:26",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
2018-09-26 09:19:53 +00:00
"src": "3013:9:26"
}
],
"name": "transferOwnership",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3624,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3623,
"name": "_newOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3633,
"src": "2987:17:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3622,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "2987:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "2986:19:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3627,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "3023:0:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3660,
"src": "2960:100:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3658,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "3099:157:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
2018-09-26 09:19:53 +00:00
"id": 3640,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3637,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "3117:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3638,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "3117:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3639,
"name": "newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3595,
"src": "3131:8:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "3117:22:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
2018-09-26 09:19:53 +00:00
"id": 3636,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-09-26 09:19:53 +00:00
4494,
4495
],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4494,
"src": "3109:7:26",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 3641,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "3109:31:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3642,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "3109:31:26"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3644,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3593,
"src": "3176:5:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3645,
"name": "newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3595,
"src": "3183:8:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
2018-09-26 09:19:53 +00:00
"id": 3643,
"name": "OwnershipTransferred",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3601,
"src": "3155:20:26",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
"typeString": "function (address,address)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3646,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "3155:37:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3647,
"nodeType": "EmitStatement",
2018-09-26 09:19:53 +00:00
"src": "3150:42:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3650,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3648,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3593,
"src": "3202:5:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3649,
"name": "newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3595,
"src": "3210:8:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "3202:16:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"id": 3651,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "3202:16:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3656,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3652,
"name": "newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3595,
"src": "3228:8:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 3654,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "3247:1:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
2018-09-26 09:19:53 +00:00
"id": 3653,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
2018-09-26 09:19:53 +00:00
"src": "3239:7:26",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
2018-09-26 09:19:53 +00:00
"id": 3655,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "3239:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"src": "3228:21:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-09-26 09:19:53 +00:00
"id": 3657,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "3228:21:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3659,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "acceptOwnership",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3634,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "3089:2:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3635,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "3099:0:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3660,
"src": "3065:191:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
2018-09-26 09:19:53 +00:00
"scope": 3968,
"src": "2663:595:26"
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-09-26 09:19:53 +00:00
"id": 3661,
"name": "ERC20Interface",
"nodeType": "UserDefinedTypeName",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3579,
"src": "3528:14:26",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_ERC20Interface_$3579",
"typeString": "contract ERC20Interface"
}
},
2018-09-26 09:19:53 +00:00
"id": 3662,
"nodeType": "InheritanceSpecifier",
2018-09-26 09:19:53 +00:00
"src": "3528:14:26"
},
{
"arguments": null,
"baseName": {
"contractScope": null,
2018-09-26 09:19:53 +00:00
"id": 3663,
"name": "Owned",
"nodeType": "UserDefinedTypeName",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3660,
"src": "3544:5:26",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_Owned_$3660",
"typeString": "contract Owned"
}
},
2018-09-26 09:19:53 +00:00
"id": 3664,
"nodeType": "InheritanceSpecifier",
2018-09-26 09:19:53 +00:00
"src": "3544:5:26"
}
],
"contractDependencies": [
2018-09-26 09:19:53 +00:00
3579,
3660
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
2018-09-26 09:19:53 +00:00
"id": 3967,
"linearizedBaseContracts": [
2018-09-26 09:19:53 +00:00
3967,
3660,
3579
],
"name": "TestToken",
"nodeType": "ContractDefinition",
"nodes": [
{
2018-09-26 09:19:53 +00:00
"id": 3667,
"libraryName": {
"contractScope": null,
2018-09-26 09:19:53 +00:00
"id": 3665,
"name": "SafeMath",
"nodeType": "UserDefinedTypeName",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3512,
"src": "3562:8:26",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_SafeMath_$3512",
"typeString": "library SafeMath"
}
},
"nodeType": "UsingForDirective",
2018-09-26 09:19:53 +00:00
"src": "3556:24:26",
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3666,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3575:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3669,
"name": "symbol",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "3586:20:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3668,
"name": "string",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3586:6:26",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3671,
"name": "name",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "3612:19:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3670,
"name": "string",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3612:6:26",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3673,
"name": "decimals",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "3637:21:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3672,
"name": "uint8",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3637:5:26",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3675,
"name": "_totalSupply",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "3664:17:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3674,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3664:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3679,
"name": "balances",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "3688:33:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3678,
"keyType": {
2018-09-26 09:19:53 +00:00
"id": 3676,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3696:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
2018-09-26 09:19:53 +00:00
"src": "3688:24:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
},
"valueType": {
2018-09-26 09:19:53 +00:00
"id": 3677,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3707:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3685,
"name": "allowed",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "3727:52:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(address => mapping(address => uint256))"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3684,
"keyType": {
2018-09-26 09:19:53 +00:00
"id": 3680,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3735:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
2018-09-26 09:19:53 +00:00
"src": "3727:44:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(address => mapping(address => uint256))"
},
"valueType": {
2018-09-26 09:19:53 +00:00
"id": 3683,
"keyType": {
2018-09-26 09:19:53 +00:00
"id": 3681,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3754:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
2018-09-26 09:19:53 +00:00
"src": "3746:24:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
},
"valueType": {
2018-09-26 09:19:53 +00:00
"id": 3682,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "3765:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
}
},
"value": null,
"visibility": "internal"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3724,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "3987:235:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3690,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3688,
"name": "symbol",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3669,
"src": "3997:6:26",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "544b4e",
2018-09-26 09:19:53 +00:00
"id": 3689,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "4006:5:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_9ee187a325c80a9ca820b4f297a58770bf5a85fede3756f8e7e9d14ff37d7b66",
"typeString": "literal_string \"TKN\""
},
"value": "TKN"
},
2018-09-26 09:19:53 +00:00
"src": "3997:14:26",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
2018-09-26 09:19:53 +00:00
"id": 3691,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "3997:14:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3694,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3692,
"name": "name",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3671,
"src": "4021:4:26",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "546f6b656e204578616d706c65",
2018-09-26 09:19:53 +00:00
"id": 3693,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "4028:15:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_e57db44f555e20abcea99743d90b2c763b40df4478f8c8195ecabb23fc906e9a",
"typeString": "literal_string \"Token Example\""
},
"value": "Token Example"
},
2018-09-26 09:19:53 +00:00
"src": "4021:22:26",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string storage ref"
}
},
2018-09-26 09:19:53 +00:00
"id": 3695,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "4021:22:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3698,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3696,
"name": "decimals",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3673,
"src": "4053:8:26",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "3138",
2018-09-26 09:19:53 +00:00
"id": 3697,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "4064:2:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_18_by_1",
"typeString": "int_const 18"
},
"value": "18"
},
2018-09-26 09:19:53 +00:00
"src": "4053:13:26",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
2018-09-26 09:19:53 +00:00
"id": 3699,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "4053:13:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3708,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3700,
"name": "_totalSupply",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3675,
"src": "4076:12:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3707,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"hexValue": "31303030303030",
2018-09-26 09:19:53 +00:00
"id": 3701,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "4091:7:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1000000_by_1",
"typeString": "int_const 1000000"
},
"value": "1000000"
},
"nodeType": "BinaryOperation",
"operator": "*",
"rightExpression": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
2018-09-26 09:19:53 +00:00
"id": 3706,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"hexValue": "3130",
2018-09-26 09:19:53 +00:00
"id": 3702,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "4101:2:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_10_by_1",
"typeString": "int_const 10"
},
"value": "10"
},
"nodeType": "BinaryOperation",
"operator": "**",
"rightExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3704,
"name": "decimals",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3673,
"src": "4110:8:26",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
],
2018-09-26 09:19:53 +00:00
"id": 3703,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
2018-09-26 09:19:53 +00:00
"src": "4105:4:26",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_uint256_$",
"typeString": "type(uint256)"
},
"typeName": "uint"
},
2018-09-26 09:19:53 +00:00
"id": 3705,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "4105:14:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "4101:18:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "4091:28:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "4076:43:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3709,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "4076:43:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3714,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3710,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "4129:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3712,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3711,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3593,
"src": "4138:5:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "4129:15:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3713,
"name": "_totalSupply",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3675,
"src": "4147:12:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "4129:30:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3715,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "4129:30:26"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 3718,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "4191:1:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
2018-09-26 09:19:53 +00:00
"id": 3717,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
2018-09-26 09:19:53 +00:00
"src": "4183:7:26",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
2018-09-26 09:19:53 +00:00
"id": 3719,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "4183:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3720,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3593,
"src": "4195:5:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3721,
"name": "_totalSupply",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3675,
"src": "4202:12:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
2018-09-26 09:19:53 +00:00
"id": 3716,
"name": "Transfer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3570,
"src": "4174:8:26",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
"typeString": "function (address,address,uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3722,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "4174:41:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3723,
"nodeType": "EmitStatement",
2018-09-26 09:19:53 +00:00
"src": "4169:46:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3725,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3686,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "3977:2:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3687,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "3987:0:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "3966:256:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3739,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "4459:62:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3732,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "4493:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3736,
"indexExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
2018-09-26 09:19:53 +00:00
"id": 3734,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "4510:1:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
2018-09-26 09:19:53 +00:00
"id": 3733,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
2018-09-26 09:19:53 +00:00
"src": "4502:7:26",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
2018-09-26 09:19:53 +00:00
"id": 3735,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "4502:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "4493:20:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3730,
"name": "_totalSupply",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3675,
"src": "4476:12:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3731,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sub",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3461,
"src": "4476:16:26",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
"typeString": "function (uint256,uint256) pure returns (uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3737,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "4476:38:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 3729,
"id": 3738,
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "4469:45:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3740,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "totalSupply",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3726,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "4429:2:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3729,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3728,
"name": "",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3740,
"src": "4453:4:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3727,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "4453:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "4452:6:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "4409:112:26",
"stateMutability": "view",
2018-09-26 09:19:53 +00:00
"superFunction": 3517,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3751,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "4816:44:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3747,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "4833:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3749,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3748,
"name": "tokenOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3742,
"src": "4842:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "4833:20:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 3746,
"id": 3750,
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "4826:27:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3752,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3743,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3742,
"name": "tokenOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3752,
"src": "4761:18:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3741,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "4761:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "4760:20:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3746,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3745,
"name": "balance",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3752,
"src": "4802:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3744,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "4802:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "4801:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "4742:118:26",
"stateMutability": "view",
2018-09-26 09:19:53 +00:00
"superFunction": 3524,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3794,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "5276:189:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3772,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3761,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "5286:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3764,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3762,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "5295:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3763,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "5295:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "5286:20:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3770,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3756,
"src": "5334:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3765,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "5309:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3768,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3766,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "5318:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3767,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "5318:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "5309:20:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3769,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sub",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3461,
"src": "5309:24:26",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
"typeString": "function (uint256,uint256) pure returns (uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3771,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "5309:32:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "5286:55:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3773,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "5286:55:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3783,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3774,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "5351:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3776,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3775,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3754,
"src": "5360:2:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "5351:12:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3781,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3756,
"src": "5383:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3777,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "5366:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3779,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3778,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3754,
"src": "5375:2:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "5366:12:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3780,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "add",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3439,
"src": "5366:16:26",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
"typeString": "function (uint256,uint256) pure returns (uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3782,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "5366:24:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "5351:39:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3784,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "5351:39:26"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3786,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "5414:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3787,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "5414:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3788,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3754,
"src": "5426:2:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3789,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3756,
"src": "5430:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
2018-09-26 09:19:53 +00:00
"id": 3785,
"name": "Transfer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3570,
"src": "5405:8:26",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
"typeString": "function (address,address,uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3790,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "5405:32:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3791,
"nodeType": "EmitStatement",
2018-09-26 09:19:53 +00:00
"src": "5400:37:26"
},
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
2018-09-26 09:19:53 +00:00
"id": 3792,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "5454:4:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 3760,
"id": 3793,
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "5447:11:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3795,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3757,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3754,
"name": "to",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3795,
"src": "5221:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3753,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "5221:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3756,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3795,
"src": "5233:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3755,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "5233:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "5220:25:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3760,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3759,
"name": "success",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3795,
"src": "5262:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3758,
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "5262:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "5261:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "5203:262:26",
"stateMutability": "nonpayable",
2018-09-26 09:19:53 +00:00
"superFunction": 3542,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3822,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "6048:127:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3811,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3804,
"name": "allowed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3685,
"src": "6058:7:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(address => mapping(address => uint256))"
}
},
2018-09-26 09:19:53 +00:00
"id": 3808,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3805,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "6066:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3806,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "6066:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6058:19:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3809,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3807,
"name": "spender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3797,
"src": "6078:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6058:28:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3810,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3799,
"src": "6089:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "6058:37:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3812,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "6058:37:26"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3814,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "6119:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3815,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "6119:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3816,
"name": "spender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3797,
"src": "6131:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3817,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3799,
"src": "6140:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
2018-09-26 09:19:53 +00:00
"id": 3813,
"name": "Approval",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3578,
"src": "6110:8:26",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
"typeString": "function (address,address,uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3818,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "6110:37:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3819,
"nodeType": "EmitStatement",
2018-09-26 09:19:53 +00:00
"src": "6105:42:26"
},
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
2018-09-26 09:19:53 +00:00
"id": 3820,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "6164:4:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 3803,
"id": 3821,
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "6157:11:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3823,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "approve",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3800,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3797,
"name": "spender",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3823,
"src": "5988:15:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3796,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "5988:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3799,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3823,
"src": "6005:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3798,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "6005:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "5987:30:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3803,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3802,
"name": "success",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3823,
"src": "6034:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3801,
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "6034:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "6033:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "5971:204:26",
"stateMutability": "nonpayable",
2018-09-26 09:19:53 +00:00
"superFunction": 3551,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3881,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "6798:246:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3843,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3834,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "6808:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3836,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3835,
"name": "from",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3825,
"src": "6817:4:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6808:14:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3841,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3829,
"src": "6844:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3837,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "6825:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3839,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3838,
"name": "from",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3825,
"src": "6834:4:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6825:14:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3840,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sub",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3461,
"src": "6825:18:26",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
"typeString": "function (uint256,uint256) pure returns (uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3842,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "6825:26:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "6808:43:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3844,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "6808:43:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3860,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3845,
"name": "allowed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3685,
"src": "6861:7:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(address => mapping(address => uint256))"
}
},
2018-09-26 09:19:53 +00:00
"id": 3849,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3846,
"name": "from",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3825,
"src": "6869:4:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6861:13:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3850,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3847,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "6875:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3848,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "6875:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6861:25:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3858,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3829,
"src": "6919:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3851,
"name": "allowed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3685,
"src": "6889:7:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(address => mapping(address => uint256))"
}
},
2018-09-26 09:19:53 +00:00
"id": 3853,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3852,
"name": "from",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3825,
"src": "6897:4:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6889:13:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3856,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3854,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "6903:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3855,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "6903:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6889:25:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3857,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sub",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3461,
"src": "6889:29:26",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
"typeString": "function (uint256,uint256) pure returns (uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3859,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "6889:37:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "6861:65:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3861,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "6861:65:26"
},
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3871,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3862,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "6936:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3864,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3863,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3827,
"src": "6945:2:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6936:12:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3869,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3829,
"src": "6968:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3865,
"name": "balances",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3679,
"src": "6951:8:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3867,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3866,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3827,
"src": "6960:2:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "6951:12:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3868,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "add",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3439,
"src": "6951:16:26",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
"typeString": "function (uint256,uint256) pure returns (uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3870,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "6951:24:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "6936:39:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3872,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "6936:39:26"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3874,
"name": "from",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3825,
"src": "6999:4:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3875,
"name": "to",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3827,
"src": "7005:2:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3876,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3829,
"src": "7009:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
2018-09-26 09:19:53 +00:00
"id": 3873,
"name": "Transfer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3570,
"src": "6990:8:26",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
"typeString": "function (address,address,uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3877,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "6990:26:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3878,
"nodeType": "EmitStatement",
2018-09-26 09:19:53 +00:00
"src": "6985:31:26"
},
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
2018-09-26 09:19:53 +00:00
"id": 3879,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "7033:4:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 3833,
"id": 3880,
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "7026:11:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3882,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transferFrom",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3830,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3825,
"name": "from",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3882,
"src": "6729:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3824,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "6729:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3827,
"name": "to",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3882,
"src": "6743:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3826,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "6743:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3829,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3882,
"src": "6755:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3828,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "6755:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "6728:39:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3833,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3832,
"name": "success",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3882,
"src": "6784:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3831,
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "6784:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "6783:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "6707:337:26",
"stateMutability": "nonpayable",
2018-09-26 09:19:53 +00:00
"superFunction": 3562,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3897,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "7418:52:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3891,
"name": "allowed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3685,
"src": "7435:7:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(address => mapping(address => uint256))"
}
},
2018-09-26 09:19:53 +00:00
"id": 3893,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3892,
"name": "tokenOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3884,
"src": "7443:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "7435:19:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3895,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3894,
"name": "spender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3886,
"src": "7455:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "7435:28:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 3890,
"id": 3896,
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "7428:35:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3898,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "allowance",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3887,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3884,
"name": "tokenOwner",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3898,
"src": "7344:18:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3883,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "7344:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3886,
"name": "spender",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3898,
"src": "7364:15:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3885,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "7364:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "7343:37:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3890,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3889,
"name": "remaining",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3898,
"src": "7402:14:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3888,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "7402:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "7401:16:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "7325:145:26",
"stateMutability": "view",
2018-09-26 09:19:53 +00:00
"superFunction": 3533,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3938,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "7926:216:26",
"statements": [
{
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3916,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3909,
"name": "allowed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3685,
"src": "7936:7:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
"typeString": "mapping(address => mapping(address => uint256))"
}
},
2018-09-26 09:19:53 +00:00
"id": 3913,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3910,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "7944:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3911,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "7944:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "7936:19:26",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
"typeString": "mapping(address => uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3914,
"indexExpression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3912,
"name": "spender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3900,
"src": "7956:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
2018-09-26 09:19:53 +00:00
"src": "7936:28:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3915,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3902,
"src": "7967:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"src": "7936:37:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
2018-09-26 09:19:53 +00:00
"id": 3917,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "7936:37:26"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3919,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "7997:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3920,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "7997:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3921,
"name": "spender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3900,
"src": "8009:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3922,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3902,
"src": "8018:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
2018-09-26 09:19:53 +00:00
"id": 3918,
"name": "Approval",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3578,
"src": "7988:8:26",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
"typeString": "function (address,address,uint256)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3923,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "7988:37:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3924,
"nodeType": "EmitStatement",
2018-09-26 09:19:53 +00:00
"src": "7983:42:26"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3929,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4491,
"src": "8083:3:26",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
2018-09-26 09:19:53 +00:00
"id": 3930,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
2018-09-26 09:19:53 +00:00
"src": "8083:10:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3931,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3902,
"src": "8095:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3932,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4574,
"src": "8103:4:26",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_TestToken_$3967",
"typeString": "contract TestToken"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3933,
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3904,
"src": "8109:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_TestToken_$3967",
"typeString": "contract TestToken"
},
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3926,
"name": "spender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3900,
"src": "8058:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
2018-09-26 09:19:53 +00:00
"id": 3925,
"name": "ApproveAndCallFallBack",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3591,
"src": "8035:22:26",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_type$_t_contract$_ApproveAndCallFallBack_$3591_$",
"typeString": "type(contract ApproveAndCallFallBack)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3927,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "8035:31:26",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_ApproveAndCallFallBack_$3591",
"typeString": "contract ApproveAndCallFallBack"
}
},
2018-09-26 09:19:53 +00:00
"id": 3928,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "receiveApproval",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3590,
"src": "8035:47:26",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$_t_address_$_t_bytes_memory_ptr_$returns$__$",
"typeString": "function (address,uint256,address,bytes memory) external"
}
},
2018-09-26 09:19:53 +00:00
"id": 3934,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "8035:79:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3935,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "8035:79:26"
},
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
2018-09-26 09:19:53 +00:00
"id": 3936,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
2018-09-26 09:19:53 +00:00
"src": "8131:4:26",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 3908,
"id": 3937,
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "8124:11:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3939,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "approveAndCall",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3905,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3900,
"name": "spender",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3939,
"src": "7854:15:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3899,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "7854:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3902,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3939,
"src": "7871:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3901,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "7871:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3904,
"name": "data",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3939,
"src": "7884:10:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3903,
"name": "bytes",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "7884:5:26",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "7853:42:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3908,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3907,
"name": "success",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3939,
"src": "7912:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3906,
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "7912:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "7911:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "7830:312:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3945,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "8360:25:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
2018-09-26 09:19:53 +00:00
"id": 3942,
"name": "revert",
"nodeType": "Identifier",
"overloadedDeclarations": [
2018-09-26 09:19:53 +00:00
4496,
4497
],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 4496,
"src": "8370:6:26",
"typeDescriptions": {
"typeIdentifier": "t_function_revert_pure$__$returns$__$",
"typeString": "function () pure"
}
},
2018-09-26 09:19:53 +00:00
"id": 3943,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "8370:8:26",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
2018-09-26 09:19:53 +00:00
"id": 3944,
"nodeType": "ExpressionStatement",
2018-09-26 09:19:53 +00:00
"src": "8370:8:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3946,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3940,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "8342:2:26"
},
"payable": true,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3941,
"nodeType": "ParameterList",
"parameters": [],
2018-09-26 09:19:53 +00:00
"src": "8360:0:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "8333:52:26",
"stateMutability": "payable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
2018-09-26 09:19:53 +00:00
"id": 3965,
"nodeType": "Block",
2018-09-26 09:19:53 +00:00
"src": "8723:76:26",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3961,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3593,
"src": "8778:5:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3962,
"name": "tokens",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3950,
"src": "8785:6:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3958,
"name": "tokenAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3948,
"src": "8755:12:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
2018-09-26 09:19:53 +00:00
"id": 3957,
"name": "ERC20Interface",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3579,
"src": "8740:14:26",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_type$_t_contract$_ERC20Interface_$3579_$",
"typeString": "type(contract ERC20Interface)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3959,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "8740:28:26",
"typeDescriptions": {
2018-09-26 09:19:53 +00:00
"typeIdentifier": "t_contract$_ERC20Interface_$3579",
"typeString": "contract ERC20Interface"
}
},
2018-09-26 09:19:53 +00:00
"id": 3960,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "transfer",
"nodeType": "MemberAccess",
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3542,
"src": "8740:37:26",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,uint256) external returns (bool)"
}
},
2018-09-26 09:19:53 +00:00
"id": 3963,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
2018-09-26 09:19:53 +00:00
"src": "8740:52:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
2018-09-26 09:19:53 +00:00
"functionReturnParameters": 3956,
"id": 3964,
"nodeType": "Return",
2018-09-26 09:19:53 +00:00
"src": "8733:59:26"
}
]
},
"documentation": null,
2018-09-26 09:19:53 +00:00
"id": 3966,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
2018-09-26 09:19:53 +00:00
"id": 3953,
"modifierName": {
"argumentTypes": null,
2018-09-26 09:19:53 +00:00
"id": 3952,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
2018-09-26 09:19:53 +00:00
"referencedDeclaration": 3621,
"src": "8690:9:26",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
2018-09-26 09:19:53 +00:00
"src": "8690:9:26"
}
],
"name": "transferAnyERC20Token",
"nodeType": "FunctionDefinition",
"parameters": {
2018-09-26 09:19:53 +00:00
"id": 3951,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3948,
"name": "tokenAddress",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3966,
"src": "8648:20:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3947,
"name": "address",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "8648:7:26",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3950,
"name": "tokens",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3966,
"src": "8670:11:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3949,
"name": "uint",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "8670:4:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "8647:35:26"
},
"payable": false,
"returnParameters": {
2018-09-26 09:19:53 +00:00
"id": 3956,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
2018-09-26 09:19:53 +00:00
"id": 3955,
"name": "success",
"nodeType": "VariableDeclaration",
2018-09-26 09:19:53 +00:00
"scope": 3966,
"src": "8709:12:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
2018-09-26 09:19:53 +00:00
"id": 3954,
"name": "bool",
"nodeType": "ElementaryTypeName",
2018-09-26 09:19:53 +00:00
"src": "8709:4:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
2018-09-26 09:19:53 +00:00
"src": "8708:14:26"
},
2018-09-26 09:19:53 +00:00
"scope": 3967,
"src": "8617:182:26",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
2018-09-26 09:19:53 +00:00
"scope": 3968,
"src": "3506:5295:26"
}
],
2018-09-26 09:19:53 +00:00
"src": "0:8801:26"
},
"compiler": {
"name": "solc",
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
},
"networks": {},
"schemaVersion": "2.0.0",
2018-09-26 09:19:53 +00:00
"updatedAt": "2018-09-26T08:32:07.660Z"
}