-
-
Save nyxynyx/0c48280e5e881b62409047eedc0d2919 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"contractName": "Foo", | |
"abi": [ | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "x", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"name": "_myContractAddress", | |
"type": "address" | |
} | |
], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ | |
"constant": false, | |
"inputs": [], | |
"name": "baz", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
} | |
], | |
"bytecode": "0x608060405234801561001057600080fd5b506040516020806102758339810180604052810190808051906020019092919050505080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506101f1806100846000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630c55699c14610051578063a7916fac1461007c575b600080fd5b34801561005d57600080fd5b50610066610093565b6040518082815260200191505060405180910390f35b34801561008857600080fd5b50610091610099565b005b60005481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a7916fac6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561018257600080fd5b505af1158015610196573d6000803e3d6000fd5b505050506040513d60208110156101ac57600080fd5b81019080805190602001909291905050506000819055505600a165627a7a723058208324b0fd83bcca28d43bd0dcdd73dd6e39e514f99d2a67f03ed64866d6d311520029", | |
"deployedBytecode": "0x60806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630c55699c14610051578063a7916fac1461007c575b600080fd5b34801561005d57600080fd5b50610066610093565b6040518082815260200191505060405180910390f35b34801561008857600080fd5b50610091610099565b005b60005481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a7916fac6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561018257600080fd5b505af1158015610196573d6000803e3d6000fd5b505050506040513d60208110156101ac57600080fd5b81019080805190602001909291905050506000819055505600a165627a7a723058208324b0fd83bcca28d43bd0dcdd73dd6e39e514f99d2a67f03ed64866d6d311520029", | |
"sourceMap": "58:438:0:-;;;294:95;8:9:-1;5:2;;;30:1;27;20:12;5:2;294:95:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;366:18;346:17;;:38;;;;;;;;;;;;;;;;;;294:95;58:438;;;;;;", | |
"deployedSourceMap": "58:438:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75:16;;8:9:-1;5:2;;;30:1;27;20:12;5:2;75:16:0;;;;;;;;;;;;;;;;;;;;;;;394:99;;8:9:-1;5:2;;;30:1;27;20:12;5:2;394:99:0;;;;;;75:16;;;;:::o;394:99::-;445:17;;;;;;;;;;;421:10;;:42;;;;;;;;;;;;;;;;;;472:10;;;;;;;;;;;:14;;;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;472:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;472:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;472:16:0;;;;;;;;;;;;;;;;468:1;:20;;;;394:99::o", | |
"source": "pragma solidity ^0.4.18;\r\n\r\nimport './MyContract.sol';\r\n\r\ncontract Foo {\r\n\tuint256 public x;\r\n\tMyContract myContract;\r\n\taddress myContractAddress;\r\n\r\n\t// function initialize(uint256 _myContractAddress) isInitializer(\"Foo\", \"0\") public {\r\n\t// \tmyContractAddress = _myContractAddress;\r\n\t// }\r\n\r\n\tconstructor(address _myContractAddress) public {\r\n\t\tmyContractAddress = _myContractAddress;\r\n\t}\r\n\r\n\tfunction baz() public {\r\n\t\tmyContract = MyContract(myContractAddress);\r\n\t\tx = myContract.baz();\r\n\t}\r\n}", | |
"sourcePath": "C:\\Users\\y\\test\\contracts\\Foo.sol", | |
"ast": { | |
"absolutePath": "/C/Users/y/test/contracts/Foo.sol", | |
"exportedSymbols": { | |
"Foo": [ | |
35 | |
] | |
}, | |
"id": 36, | |
"nodeType": "SourceUnit", | |
"nodes": [ | |
{ | |
"id": 1, | |
"literals": [ | |
"solidity", | |
"^", | |
"0.4", | |
".18" | |
], | |
"nodeType": "PragmaDirective", | |
"src": "0:24:0" | |
}, | |
{ | |
"absolutePath": "/C/Users/y/test/contracts/MyContract.sol", | |
"file": "./MyContract.sol", | |
"id": 2, | |
"nodeType": "ImportDirective", | |
"scope": 36, | |
"sourceUnit": 85, | |
"src": "28:26:0", | |
"symbolAliases": [], | |
"unitAlias": "" | |
}, | |
{ | |
"baseContracts": [], | |
"contractDependencies": [], | |
"contractKind": "contract", | |
"documentation": null, | |
"fullyImplemented": true, | |
"id": 35, | |
"linearizedBaseContracts": [ | |
35 | |
], | |
"name": "Foo", | |
"nodeType": "ContractDefinition", | |
"nodes": [ | |
{ | |
"constant": false, | |
"id": 4, | |
"name": "x", | |
"nodeType": "VariableDeclaration", | |
"scope": 35, | |
"src": "75:16:0", | |
"stateVariable": true, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 3, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "75:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"value": null, | |
"visibility": "public" | |
}, | |
{ | |
"constant": false, | |
"id": 6, | |
"name": "myContract", | |
"nodeType": "VariableDeclaration", | |
"scope": 35, | |
"src": "95:21:0", | |
"stateVariable": true, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_contract$_MyContract_$84", | |
"typeString": "contract MyContract" | |
}, | |
"typeName": { | |
"contractScope": null, | |
"id": 5, | |
"name": "MyContract", | |
"nodeType": "UserDefinedTypeName", | |
"referencedDeclaration": 84, | |
"src": "95:10:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_contract$_MyContract_$84", | |
"typeString": "contract MyContract" | |
} | |
}, | |
"value": null, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 8, | |
"name": "myContractAddress", | |
"nodeType": "VariableDeclaration", | |
"scope": 35, | |
"src": "120:25:0", | |
"stateVariable": true, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 7, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "120:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"value": null, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 17, | |
"nodeType": "Block", | |
"src": "341:48:0", | |
"statements": [ | |
{ | |
"expression": { | |
"argumentTypes": null, | |
"id": 15, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"argumentTypes": null, | |
"id": 13, | |
"name": "myContractAddress", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 8, | |
"src": "346:17:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"argumentTypes": null, | |
"id": 14, | |
"name": "_myContractAddress", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 10, | |
"src": "366:18:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"src": "346:38:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"id": 16, | |
"nodeType": "ExpressionStatement", | |
"src": "346:38:0" | |
} | |
] | |
}, | |
"documentation": null, | |
"id": 18, | |
"implemented": true, | |
"isConstructor": true, | |
"isDeclaredConst": false, | |
"modifiers": [], | |
"name": "", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 11, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 10, | |
"name": "_myContractAddress", | |
"nodeType": "VariableDeclaration", | |
"scope": 18, | |
"src": "306:26:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 9, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "306:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"value": null, | |
"visibility": "internal" | |
} | |
], | |
"src": "305:28:0" | |
}, | |
"payable": false, | |
"returnParameters": { | |
"id": 12, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "341:0:0" | |
}, | |
"scope": 35, | |
"src": "294:95:0", | |
"stateMutability": "nonpayable", | |
"superFunction": null, | |
"visibility": "public" | |
}, | |
{ | |
"body": { | |
"id": 33, | |
"nodeType": "Block", | |
"src": "416:77:0", | |
"statements": [ | |
{ | |
"expression": { | |
"argumentTypes": null, | |
"id": 25, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"argumentTypes": null, | |
"id": 21, | |
"name": "myContract", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 6, | |
"src": "421:10:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_contract$_MyContract_$84", | |
"typeString": "contract MyContract" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"argumentTypes": null, | |
"arguments": [ | |
{ | |
"argumentTypes": null, | |
"id": 23, | |
"name": "myContractAddress", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 8, | |
"src": "445:17:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
], | |
"id": 22, | |
"name": "MyContract", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 84, | |
"src": "434:10:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_contract$_MyContract_$84_$", | |
"typeString": "type(contract MyContract)" | |
} | |
}, | |
"id": 24, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "434:29:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_contract$_MyContract_$84", | |
"typeString": "contract MyContract" | |
} | |
}, | |
"src": "421:42:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_contract$_MyContract_$84", | |
"typeString": "contract MyContract" | |
} | |
}, | |
"id": 26, | |
"nodeType": "ExpressionStatement", | |
"src": "421:42:0" | |
}, | |
{ | |
"expression": { | |
"argumentTypes": null, | |
"id": 31, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"argumentTypes": null, | |
"id": 27, | |
"name": "x", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 4, | |
"src": "468:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"argumentTypes": null, | |
"arguments": [], | |
"expression": { | |
"argumentTypes": [], | |
"expression": { | |
"argumentTypes": null, | |
"id": 28, | |
"name": "myContract", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 6, | |
"src": "472:10:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_contract$_MyContract_$84", | |
"typeString": "contract MyContract" | |
} | |
}, | |
"id": 29, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"memberName": "baz", | |
"nodeType": "MemberAccess", | |
"referencedDeclaration": 67, | |
"src": "472:14:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_external_nonpayable$__$returns$_t_uint256_$", | |
"typeString": "function () external returns (uint256)" | |
} | |
}, | |
"id": 30, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "472:16:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "468:20:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 32, | |
"nodeType": "ExpressionStatement", | |
"src": "468:20:0" | |
} | |
] | |
}, | |
"documentation": null, | |
"id": 34, | |
"implemented": true, | |
"isConstructor": false, | |
"isDeclaredConst": false, | |
"modifiers": [], | |
"name": "baz", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 19, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "406:2:0" | |
}, | |
"payable": false, | |
"returnParameters": { | |
"id": 20, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "416:0:0" | |
}, | |
"scope": 35, | |
"src": "394:99:0", | |
"stateMutability": "nonpayable", | |
"superFunction": null, | |
"visibility": "public" | |
} | |
], | |
"scope": 36, | |
"src": "58:438:0" | |
} | |
], | |
"src": "0:496:0" | |
}, | |
"legacyAST": { | |
"absolutePath": "/C/Users/y/test/contracts/Foo.sol", | |
"exportedSymbols": { | |
"Foo": [ | |
35 | |
] | |
}, | |
"id": 36, | |
"nodeType": "SourceUnit", | |
"nodes": [ | |
{ | |
"id": 1, | |
"literals": [ | |
"solidity", | |
"^", | |
"0.4", | |
".18" | |
], | |
"nodeType": "PragmaDirective", | |
"src": "0:24:0" | |
}, | |
{ | |
"absolutePath": "/C/Users/y/test/contracts/MyContract.sol", | |
"file": "./MyContract.sol", | |
"id": 2, | |
"nodeType": "ImportDirective", | |
"scope": 36, | |
"sourceUnit": 85, | |
"src": "28:26:0", | |
"symbolAliases": [], | |
"unitAlias": "" | |
}, | |
{ | |
"baseContracts": [], | |
"contractDependencies": [], | |
"contractKind": "contract", | |
"documentation": null, | |
"fullyImplemented": true, | |
"id": 35, | |
"linearizedBaseContracts": [ | |
35 | |
], | |
"name": "Foo", | |
"nodeType": "ContractDefinition", | |
"nodes": [ | |
{ | |
"constant": false, | |
"id": 4, | |
"name": "x", | |
"nodeType": "VariableDeclaration", | |
"scope": 35, | |
"src": "75:16:0", | |
"stateVariable": true, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 3, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "75:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"value": null, | |
"visibility": "public" | |
}, | |
{ | |
"constant": false, | |
"id": 6, | |
"name": "myContract", | |
"nodeType": "VariableDeclaration", | |
"scope": 35, | |
"src": "95:21:0", | |
"stateVariable": true, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_contract$_MyContract_$84", | |
"typeString": "contract MyContract" | |
}, | |
"typeName": { | |
"contractScope": null, | |
"id": 5, | |
"name": "MyContract", | |
"nodeType": "UserDefinedTypeName", | |
"referencedDeclaration": 84, | |
"src": "95:10:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_contract$_MyContract_$84", | |
"typeString": "contract MyContract" | |
} | |
}, | |
"value": null, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 8, | |
"name": "myContractAddress", | |
"nodeType": "VariableDeclaration", | |
"scope": 35, | |
"src": "120:25:0", | |
"stateVariable": true, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 7, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "120:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"value": null, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 17, | |
"nodeType": "Block", | |
"src": "341:48:0", | |
"statements": [ | |
{ | |
"expression": { | |
"argumentTypes": null, | |
"id": 15, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"argumentTypes": null, | |
"id": 13, | |
"name": "myContractAddress", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 8, | |
"src": "346:17:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"argumentTypes": null, | |
"id": 14, | |
"name": "_myContractAddress", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 10, | |
"src": "366:18:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"src": "346:38:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"id": 16, | |
"nodeType": "ExpressionStatement", | |
"src": "346:38:0" | |
} | |
] | |
}, | |
"documentation": null, | |
"id": 18, | |
"implemented": true, | |
"isConstructor": true, | |
"isDeclaredConst": false, | |
"modifiers": [], | |
"name": "", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 11, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 10, | |
"name": "_myContractAddress", | |
"nodeType": "VariableDeclaration", | |
"scope": 18, | |
"src": "306:26:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 9, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "306:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"value": null, | |
"visibility": "internal" | |
} | |
], | |
"src": "305:28:0" | |
}, | |
"payable": false, | |
"returnParameters": { | |
"id": 12, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "341:0:0" | |
}, | |
"scope": 35, | |
"src": "294:95:0", | |
"stateMutability": "nonpayable", | |
"superFunction": null, | |
"visibility": "public" | |
}, | |
{ | |
"body": { | |
"id": 33, | |
"nodeType": "Block", | |
"src": "416:77:0", | |
"statements": [ | |
{ | |
"expression": { | |
"argumentTypes": null, | |
"id": 25, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"argumentTypes": null, | |
"id": 21, | |
"name": "myContract", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 6, | |
"src": "421:10:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_contract$_MyContract_$84", | |
"typeString": "contract MyContract" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"argumentTypes": null, | |
"arguments": [ | |
{ | |
"argumentTypes": null, | |
"id": 23, | |
"name": "myContractAddress", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 8, | |
"src": "445:17:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
], | |
"id": 22, | |
"name": "MyContract", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 84, | |
"src": "434:10:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_contract$_MyContract_$84_$", | |
"typeString": "type(contract MyContract)" | |
} | |
}, | |
"id": 24, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "434:29:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_contract$_MyContract_$84", | |
"typeString": "contract MyContract" | |
} | |
}, | |
"src": "421:42:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_contract$_MyContract_$84", | |
"typeString": "contract MyContract" | |
} | |
}, | |
"id": 26, | |
"nodeType": "ExpressionStatement", | |
"src": "421:42:0" | |
}, | |
{ | |
"expression": { | |
"argumentTypes": null, | |
"id": 31, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"argumentTypes": null, | |
"id": 27, | |
"name": "x", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 4, | |
"src": "468:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"argumentTypes": null, | |
"arguments": [], | |
"expression": { | |
"argumentTypes": [], | |
"expression": { | |
"argumentTypes": null, | |
"id": 28, | |
"name": "myContract", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 6, | |
"src": "472:10:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_contract$_MyContract_$84", | |
"typeString": "contract MyContract" | |
} | |
}, | |
"id": 29, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"memberName": "baz", | |
"nodeType": "MemberAccess", | |
"referencedDeclaration": 67, | |
"src": "472:14:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_external_nonpayable$__$returns$_t_uint256_$", | |
"typeString": "function () external returns (uint256)" | |
} | |
}, | |
"id": 30, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "472:16:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "468:20:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 32, | |
"nodeType": "ExpressionStatement", | |
"src": "468:20:0" | |
} | |
] | |
}, | |
"documentation": null, | |
"id": 34, | |
"implemented": true, | |
"isConstructor": false, | |
"isDeclaredConst": false, | |
"modifiers": [], | |
"name": "baz", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 19, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "406:2:0" | |
}, | |
"payable": false, | |
"returnParameters": { | |
"id": 20, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "416:0:0" | |
}, | |
"scope": 35, | |
"src": "394:99:0", | |
"stateMutability": "nonpayable", | |
"superFunction": null, | |
"visibility": "public" | |
} | |
], | |
"scope": 36, | |
"src": "58:438:0" | |
} | |
], | |
"src": "0:496:0" | |
}, | |
"compiler": { | |
"name": "solc", | |
"version": "0.4.24+commit.e67f0147.Emscripten.clang" | |
}, | |
"networks": {}, | |
"schemaVersion": "2.0.0", | |
"updatedAt": "2018-06-14T15:36:16.740Z" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment