Skip to content

Instantly share code, notes, and snippets.

@zone117x
Created May 31, 2018 03:18
Show Gist options
  • Save zone117x/b275bf9188dc833ff500463ec2765138 to your computer and use it in GitHub Desktop.
Save zone117x/b275bf9188dc833ff500463ec2765138 to your computer and use it in GitHub Desktop.
{
"attributes": {
"absolutePath": "TestContracts\/ExampleContract.sol",
"exportedSymbols": {
"ExampleContract": [
311
]
}
},
"children": [
{
"attributes": {
"literals": [
"solidity",
"^",
"0.4",
".21"
]
},
"id": 1,
"name": "PragmaDirective",
"src": "0:24:0"
},
{
"attributes": {
"baseContracts": [
null
],
"contractDependencies": [
null
],
"contractKind": "contract",
"documentation": "@title An example contract title\r\n @author Matthew Little\r\n @notice This is a test contract\r\n @dev Hello dev\r",
"fullyImplemented": true,
"linearizedBaseContracts": [
311
],
"name": "ExampleContract",
"scope": 312
},
"children": [
{
"attributes": {
"constant": false,
"name": "balances",
"scope": 311,
"stateVariable": true,
"storageLocation": "default",
"type": "mapping(address => uint256)",
"value": null,
"visibility": "public"
},
"children": [
{
"attributes": {
"type": "mapping(address => uint256)"
},
"children": [
{
"attributes": {
"name": "address",
"type": "address"
},
"id": 2,
"name": "ElementaryTypeName",
"src": "285:7:0"
},
{
"attributes": {
"name": "uint256",
"type": "uint256"
},
"id": 3,
"name": "ElementaryTypeName",
"src": "296:7:0"
}
],
"id": 4,
"name": "Mapping",
"src": "276:28:0"
}
],
"id": 5,
"name": "VariableDeclaration",
"src": "276:44:0"
},
{
"attributes": {
"anonymous": false,
"documentation": "@notice A test event\r",
"name": "TestEvent"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"indexed": true,
"name": "_addr",
"scope": 13,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"type": "address"
},
"id": 6,
"name": "ElementaryTypeName",
"src": "375:7:0"
}
],
"id": 7,
"name": "VariableDeclaration",
"src": "375:21:0"
},
{
"attributes": {
"constant": false,
"indexed": true,
"name": "_id",
"scope": 13,
"stateVariable": false,
"storageLocation": "default",
"type": "uint64",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint64",
"type": "uint64"
},
"id": 8,
"name": "ElementaryTypeName",
"src": "398:6:0"
}
],
"id": 9,
"name": "VariableDeclaration",
"src": "398:18:0"
},
{
"attributes": {
"constant": false,
"indexed": false,
"name": "_val",
"scope": 13,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 10,
"name": "ElementaryTypeName",
"src": "418:4:0"
}
],
"id": 11,
"name": "VariableDeclaration",
"src": "418:9:0"
}
],
"id": 12,
"name": "ParameterList",
"src": "374:54:0"
}
],
"id": 13,
"name": "EventDefinition",
"src": "359:70:0"
},
{
"attributes": {
"anonymous": false,
"documentation": null,
"name": "EmptyEvent"
},
"children": [
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 14,
"name": "ParameterList",
"src": "453:2:0"
}
],
"id": 15,
"name": "EventDefinition",
"src": "437:19:0"
},
{
"attributes": {
"constant": false,
"name": "givenName",
"scope": 311,
"stateVariable": true,
"storageLocation": "default",
"type": "string",
"value": null,
"visibility": "public"
},
"children": [
{
"attributes": {
"name": "string",
"type": "string"
},
"id": 16,
"name": "ElementaryTypeName",
"src": "461:6:0"
}
],
"id": 17,
"name": "VariableDeclaration",
"src": "461:23:0"
},
{
"attributes": {
"constant": false,
"name": "enabledThing",
"scope": 311,
"stateVariable": true,
"storageLocation": "default",
"type": "bool",
"value": null,
"visibility": "public"
},
"children": [
{
"attributes": {
"name": "bool",
"type": "bool"
},
"id": 18,
"name": "ElementaryTypeName",
"src": "488:4:0"
}
],
"id": 19,
"name": "VariableDeclaration",
"src": "488:24:0"
},
{
"attributes": {
"constant": false,
"name": "last",
"scope": 311,
"stateVariable": true,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "public"
},
"children": [
{
"attributes": {
"name": "uint256",
"type": "uint256"
},
"id": 20,
"name": "ElementaryTypeName",
"src": "516:7:0"
}
],
"id": 21,
"name": "VariableDeclaration",
"src": "516:19:0"
},
{
"attributes": {
"constant": false,
"documentation": "@notice The constructor\r",
"implemented": true,
"isConstructor": true,
"modifiers": [
null
],
"name": "",
"payable": false,
"scope": 311,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "_name",
"scope": 43,
"stateVariable": false,
"storageLocation": "default",
"type": "string",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "string",
"type": "string"
},
"id": 22,
"name": "ElementaryTypeName",
"src": "589:6:0"
}
],
"id": 23,
"name": "VariableDeclaration",
"src": "589:12:0"
},
{
"attributes": {
"constant": false,
"name": "_enableThing",
"scope": 43,
"stateVariable": false,
"storageLocation": "default",
"type": "bool",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "bool",
"type": "bool"
},
"id": 24,
"name": "ElementaryTypeName",
"src": "603:4:0"
}
],
"id": 25,
"name": "VariableDeclaration",
"src": "603:17:0"
},
{
"attributes": {
"constant": false,
"name": "_last",
"scope": 43,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint256",
"type": "uint256"
},
"id": 26,
"name": "ElementaryTypeName",
"src": "622:7:0"
}
],
"id": 27,
"name": "VariableDeclaration",
"src": "622:13:0"
}
],
"id": 28,
"name": "ParameterList",
"src": "588:48:0"
},
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 29,
"name": "ParameterList",
"src": "644:0:0"
},
{
"children": [
{
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "=",
"type": "string storage ref"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 17,
"type": "string storage ref",
"value": "givenName"
},
"id": 30,
"name": "Identifier",
"src": "649:9:0"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 23,
"type": "string memory",
"value": "_name"
},
"id": 31,
"name": "Identifier",
"src": "661:5:0"
}
],
"id": 32,
"name": "Assignment",
"src": "649:17:0"
}
],
"id": 33,
"name": "ExpressionStatement",
"src": "649:17:0"
},
{
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "=",
"type": "bool"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 19,
"type": "bool",
"value": "enabledThing"
},
"id": 34,
"name": "Identifier",
"src": "671:12:0"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 25,
"type": "bool",
"value": "_enableThing"
},
"id": 35,
"name": "Identifier",
"src": "686:12:0"
}
],
"id": 36,
"name": "Assignment",
"src": "671:27:0"
}
],
"id": 37,
"name": "ExpressionStatement",
"src": "671:27:0"
},
{
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "=",
"type": "uint256"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 21,
"type": "uint256",
"value": "last"
},
"id": 38,
"name": "Identifier",
"src": "703:4:0"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 27,
"type": "uint256",
"value": "_last"
},
"id": 39,
"name": "Identifier",
"src": "710:5:0"
}
],
"id": 40,
"name": "Assignment",
"src": "703:12:0"
}
],
"id": 41,
"name": "ExpressionStatement",
"src": "703:12:0"
}
],
"id": 42,
"name": "Block",
"src": "644:79:0"
}
],
"id": 43,
"name": "FunctionDefinition",
"src": "577:146:0"
},
{
"attributes": {
"constant": false,
"documentation": null,
"implemented": true,
"isConstructor": false,
"modifiers": [
null
],
"name": "getArrayStatic",
"payable": false,
"scope": 311,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 44,
"name": "ParameterList",
"src": "751:2:0"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "",
"scope": 84,
"stateVariable": false,
"storageLocation": "default",
"type": "int16[4]",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"type": "int16[4]"
},
"children": [
{
"attributes": {
"name": "int16",
"type": "int16"
},
"id": 45,
"name": "ElementaryTypeName",
"src": "770:5:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "34",
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": null,
"value": "4"
},
"id": 46,
"name": "Literal",
"src": "776:1:0"
}
],
"id": 47,
"name": "ArrayTypeName",
"src": "770:8:0"
}
],
"id": 48,
"name": "VariableDeclaration",
"src": "770:8:0"
}
],
"id": 49,
"name": "ParameterList",
"src": "769:10:0"
},
{
"children": [
{
"attributes": {
"assignments": [
null
],
"initialValue": null
},
"children": [
{
"attributes": {
"constant": false,
"name": "arr",
"scope": 84,
"stateVariable": false,
"storageLocation": "default",
"type": "int16[4]",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"type": "int16[4]"
},
"children": [
{
"attributes": {
"name": "int16",
"type": "int16"
},
"id": 52,
"name": "ElementaryTypeName",
"src": "785:5:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "34",
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": null,
"value": "4"
},
"id": 51,
"name": "Literal",
"src": "791:1:0"
}
],
"id": 53,
"name": "ArrayTypeName",
"src": "785:8:0"
}
],
"id": 54,
"name": "VariableDeclaration",
"src": "785:12:0"
}
],
"id": 55,
"name": "VariableDeclarationStatement",
"src": "785:12:0"
},
{
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "=",
"type": "int16"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"type": "int16"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 54,
"type": "int16[4] storage pointer",
"value": "arr"
},
"id": 56,
"name": "Identifier",
"src": "802:3:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "30",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 0",
"value": "0"
},
"id": 57,
"name": "Literal",
"src": "806:1:0"
}
],
"id": 58,
"name": "IndexAccess",
"src": "802:6:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "31",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 1",
"value": "1"
},
"id": 59,
"name": "Literal",
"src": "811:1:0"
}
],
"id": 60,
"name": "Assignment",
"src": "802:10:0"
}
],
"id": 61,
"name": "ExpressionStatement",
"src": "802:10:0"
},
{
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "=",
"type": "int16"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"type": "int16"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 54,
"type": "int16[4] storage pointer",
"value": "arr"
},
"id": 62,
"name": "Identifier",
"src": "817:3:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "31",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 1",
"value": "1"
},
"id": 63,
"name": "Literal",
"src": "821:1:0"
}
],
"id": 64,
"name": "IndexAccess",
"src": "817:6:0"
},
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"operator": "-",
"prefix": true,
"type": "int_const -2"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"hexvalue": "32",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 2",
"value": "2"
},
"id": 65,
"name": "Literal",
"src": "827:1:0"
}
],
"id": 66,
"name": "UnaryOperation",
"src": "826:2:0"
}
],
"id": 67,
"name": "Assignment",
"src": "817:11:0"
}
],
"id": 68,
"name": "ExpressionStatement",
"src": "817:11:0"
},
{
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "=",
"type": "int16"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"type": "int16"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 54,
"type": "int16[4] storage pointer",
"value": "arr"
},
"id": 69,
"name": "Identifier",
"src": "833:3:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "32",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 2",
"value": "2"
},
"id": 70,
"name": "Literal",
"src": "837:1:0"
}
],
"id": 71,
"name": "IndexAccess",
"src": "833:6:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "3239",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 29",
"value": "29"
},
"id": 72,
"name": "Literal",
"src": "842:2:0"
}
],
"id": 73,
"name": "Assignment",
"src": "833:11:0"
}
],
"id": 74,
"name": "ExpressionStatement",
"src": "833:11:0"
},
{
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "=",
"type": "int16"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"type": "int16"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 54,
"type": "int16[4] storage pointer",
"value": "arr"
},
"id": 75,
"name": "Identifier",
"src": "849:3:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "33",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 3",
"value": "3"
},
"id": 76,
"name": "Literal",
"src": "853:1:0"
}
],
"id": 77,
"name": "IndexAccess",
"src": "849:6:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "333939",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 399",
"value": "399"
},
"id": 78,
"name": "Literal",
"src": "858:3:0"
}
],
"id": 79,
"name": "Assignment",
"src": "849:12:0"
}
],
"id": 80,
"name": "ExpressionStatement",
"src": "849:12:0"
},
{
"attributes": {
"functionReturnParameters": 49
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 54,
"type": "int16[4] storage pointer",
"value": "arr"
},
"id": 81,
"name": "Identifier",
"src": "873:3:0"
}
],
"id": 82,
"name": "Return",
"src": "866:10:0"
}
],
"id": 83,
"name": "Block",
"src": "780:101:0"
}
],
"id": 84,
"name": "FunctionDefinition",
"src": "728:153:0"
},
{
"attributes": {
"constant": false,
"documentation": null,
"implemented": true,
"isConstructor": false,
"modifiers": [
null
],
"name": "getArrayDynamic",
"payable": false,
"scope": 311,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 85,
"name": "ParameterList",
"src": "910:2:0"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "",
"scope": 129,
"stateVariable": false,
"storageLocation": "default",
"type": "int16[]",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"length": null,
"type": "int16[]"
},
"children": [
{
"attributes": {
"name": "int16",
"type": "int16"
},
"id": 86,
"name": "ElementaryTypeName",
"src": "929:5:0"
}
],
"id": 87,
"name": "ArrayTypeName",
"src": "929:7:0"
}
],
"id": 88,
"name": "VariableDeclaration",
"src": "929:7:0"
}
],
"id": 89,
"name": "ParameterList",
"src": "928:9:0"
},
{
"children": [
{
"attributes": {
"assignments": [
null
],
"initialValue": null
},
"children": [
{
"attributes": {
"constant": false,
"name": "arr",
"scope": 129,
"stateVariable": false,
"storageLocation": "default",
"type": "int16[]",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"length": null,
"type": "int16[]"
},
"children": [
{
"attributes": {
"name": "int16",
"type": "int16"
},
"id": 91,
"name": "ElementaryTypeName",
"src": "943:5:0"
}
],
"id": 92,
"name": "ArrayTypeName",
"src": "943:7:0"
}
],
"id": 93,
"name": "VariableDeclaration",
"src": "943:11:0"
}
],
"id": 94,
"name": "VariableDeclarationStatement",
"src": "943:11:0"
},
{
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "=",
"type": "uint256"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"member_name": "length",
"referencedDeclaration": null,
"type": "uint256"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 93,
"type": "int16[] storage pointer",
"value": "arr"
},
"id": 95,
"name": "Identifier",
"src": "965:3:0"
}
],
"id": 97,
"name": "MemberAccess",
"src": "965:10:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "34",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 4",
"value": "4"
},
"id": 98,
"name": "Literal",
"src": "978:1:0"
}
],
"id": 99,
"name": "Assignment",
"src": "965:14:0"
}
],
"id": 100,
"name": "ExpressionStatement",
"src": "965:14:0"
},
{
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "=",
"type": "int16"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"type": "int16"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 93,
"type": "int16[] storage pointer",
"value": "arr"
},
"id": 101,
"name": "Identifier",
"src": "984:3:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "30",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 0",
"value": "0"
},
"id": 102,
"name": "Literal",
"src": "988:1:0"
}
],
"id": 103,
"name": "IndexAccess",
"src": "984:6:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "31",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 1",
"value": "1"
},
"id": 104,
"name": "Literal",
"src": "993:1:0"
}
],
"id": 105,
"name": "Assignment",
"src": "984:10:0"
}
],
"id": 106,
"name": "ExpressionStatement",
"src": "984:10:0"
},
{
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "=",
"type": "int16"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"type": "int16"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 93,
"type": "int16[] storage pointer",
"value": "arr"
},
"id": 107,
"name": "Identifier",
"src": "999:3:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "31",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 1",
"value": "1"
},
"id": 108,
"name": "Literal",
"src": "1003:1:0"
}
],
"id": 109,
"name": "IndexAccess",
"src": "999:6:0"
},
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"operator": "-",
"prefix": true,
"type": "int_const -2"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"hexvalue": "32",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 2",
"value": "2"
},
"id": 110,
"name": "Literal",
"src": "1009:1:0"
}
],
"id": 111,
"name": "UnaryOperation",
"src": "1008:2:0"
}
],
"id": 112,
"name": "Assignment",
"src": "999:11:0"
}
],
"id": 113,
"name": "ExpressionStatement",
"src": "999:11:0"
},
{
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "=",
"type": "int16"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"type": "int16"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 93,
"type": "int16[] storage pointer",
"value": "arr"
},
"id": 114,
"name": "Identifier",
"src": "1015:3:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "32",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 2",
"value": "2"
},
"id": 115,
"name": "Literal",
"src": "1019:1:0"
}
],
"id": 116,
"name": "IndexAccess",
"src": "1015:6:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "3239",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 29",
"value": "29"
},
"id": 117,
"name": "Literal",
"src": "1024:2:0"
}
],
"id": 118,
"name": "Assignment",
"src": "1015:11:0"
}
],
"id": 119,
"name": "ExpressionStatement",
"src": "1015:11:0"
},
{
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "=",
"type": "int16"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"type": "int16"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 93,
"type": "int16[] storage pointer",
"value": "arr"
},
"id": 120,
"name": "Identifier",
"src": "1031:3:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "33",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 3",
"value": "3"
},
"id": 121,
"name": "Literal",
"src": "1035:1:0"
}
],
"id": 122,
"name": "IndexAccess",
"src": "1031:6:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "333939",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 399",
"value": "399"
},
"id": 123,
"name": "Literal",
"src": "1040:3:0"
}
],
"id": 124,
"name": "Assignment",
"src": "1031:12:0"
}
],
"id": 125,
"name": "ExpressionStatement",
"src": "1031:12:0"
},
{
"attributes": {
"functionReturnParameters": 89
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 93,
"type": "int16[] storage pointer",
"value": "arr"
},
"id": 126,
"name": "Identifier",
"src": "1055:3:0"
}
],
"id": 127,
"name": "Return",
"src": "1048:10:0"
}
],
"id": 128,
"name": "Block",
"src": "938:125:0"
}
],
"id": 129,
"name": "FunctionDefinition",
"src": "886:177:0"
},
{
"attributes": {
"constant": false,
"documentation": null,
"implemented": true,
"isConstructor": false,
"modifiers": [
null
],
"name": "echoArrayDynamic",
"payable": false,
"scope": 311,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "input",
"scope": 141,
"stateVariable": false,
"storageLocation": "default",
"type": "uint24[]",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"length": null,
"type": "uint24[]"
},
"children": [
{
"attributes": {
"name": "uint24",
"type": "uint24"
},
"id": 130,
"name": "ElementaryTypeName",
"src": "1097:6:0"
}
],
"id": 131,
"name": "ArrayTypeName",
"src": "1097:8:0"
}
],
"id": 132,
"name": "VariableDeclaration",
"src": "1097:14:0"
}
],
"id": 133,
"name": "ParameterList",
"src": "1096:16:0"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "result",
"scope": 141,
"stateVariable": false,
"storageLocation": "default",
"type": "uint24[]",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"length": null,
"type": "uint24[]"
},
"children": [
{
"attributes": {
"name": "uint24",
"type": "uint24"
},
"id": 134,
"name": "ElementaryTypeName",
"src": "1122:6:0"
}
],
"id": 135,
"name": "ArrayTypeName",
"src": "1122:8:0"
}
],
"id": 136,
"name": "VariableDeclaration",
"src": "1122:15:0"
}
],
"id": 137,
"name": "ParameterList",
"src": "1121:17:0"
},
{
"children": [
{
"attributes": {
"functionReturnParameters": 137
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 132,
"type": "uint24[] memory",
"value": "input"
},
"id": 138,
"name": "Identifier",
"src": "1157:5:0"
}
],
"id": 139,
"name": "Return",
"src": "1150:12:0"
}
],
"id": 140,
"name": "Block",
"src": "1139:31:0"
}
],
"id": 141,
"name": "FunctionDefinition",
"src": "1071:99:0"
},
{
"attributes": {
"constant": false,
"documentation": null,
"implemented": true,
"isConstructor": false,
"modifiers": [
null
],
"name": "echoArrayStatic",
"payable": false,
"scope": 311,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "input",
"scope": 155,
"stateVariable": false,
"storageLocation": "default",
"type": "uint24[5]",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"type": "uint24[5]"
},
"children": [
{
"attributes": {
"name": "uint24",
"type": "uint24"
},
"id": 142,
"name": "ElementaryTypeName",
"src": "1203:6:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "35",
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": null,
"value": "5"
},
"id": 143,
"name": "Literal",
"src": "1210:1:0"
}
],
"id": 144,
"name": "ArrayTypeName",
"src": "1203:9:0"
}
],
"id": 145,
"name": "VariableDeclaration",
"src": "1203:15:0"
}
],
"id": 146,
"name": "ParameterList",
"src": "1202:17:0"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "result",
"scope": 155,
"stateVariable": false,
"storageLocation": "default",
"type": "uint24[5]",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"type": "uint24[5]"
},
"children": [
{
"attributes": {
"name": "uint24",
"type": "uint24"
},
"id": 147,
"name": "ElementaryTypeName",
"src": "1229:6:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "35",
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": null,
"value": "5"
},
"id": 148,
"name": "Literal",
"src": "1236:1:0"
}
],
"id": 149,
"name": "ArrayTypeName",
"src": "1229:9:0"
}
],
"id": 150,
"name": "VariableDeclaration",
"src": "1229:16:0"
}
],
"id": 151,
"name": "ParameterList",
"src": "1228:18:0"
},
{
"children": [
{
"attributes": {
"functionReturnParameters": 151
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 145,
"type": "uint24[5] memory",
"value": "input"
},
"id": 152,
"name": "Identifier",
"src": "1265:5:0"
}
],
"id": 153,
"name": "Return",
"src": "1258:12:0"
}
],
"id": 154,
"name": "Block",
"src": "1247:31:0"
}
],
"id": 155,
"name": "FunctionDefinition",
"src": "1178:100:0"
},
{
"attributes": {
"constant": false,
"documentation": null,
"implemented": true,
"isConstructor": false,
"modifiers": [
null
],
"name": "echoMultipleStatic",
"payable": false,
"scope": 311,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "p1",
"scope": 176,
"stateVariable": false,
"storageLocation": "default",
"type": "uint32",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint32",
"type": "uint32"
},
"id": 156,
"name": "ElementaryTypeName",
"src": "1314:6:0"
}
],
"id": 157,
"name": "VariableDeclaration",
"src": "1314:9:0"
},
{
"attributes": {
"constant": false,
"name": "p2",
"scope": 176,
"stateVariable": false,
"storageLocation": "default",
"type": "bool",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "bool",
"type": "bool"
},
"id": 158,
"name": "ElementaryTypeName",
"src": "1325:4:0"
}
],
"id": 159,
"name": "VariableDeclaration",
"src": "1325:7:0"
},
{
"attributes": {
"constant": false,
"name": "p3",
"scope": 176,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"type": "address"
},
"id": 160,
"name": "ElementaryTypeName",
"src": "1334:7:0"
}
],
"id": 161,
"name": "VariableDeclaration",
"src": "1334:10:0"
}
],
"id": 162,
"name": "ParameterList",
"src": "1313:32:0"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "r1",
"scope": 176,
"stateVariable": false,
"storageLocation": "default",
"type": "uint32",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint32",
"type": "uint32"
},
"id": 163,
"name": "ElementaryTypeName",
"src": "1362:6:0"
}
],
"id": 164,
"name": "VariableDeclaration",
"src": "1362:9:0"
},
{
"attributes": {
"constant": false,
"name": "r2",
"scope": 176,
"stateVariable": false,
"storageLocation": "default",
"type": "bool",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "bool",
"type": "bool"
},
"id": 165,
"name": "ElementaryTypeName",
"src": "1373:4:0"
}
],
"id": 166,
"name": "VariableDeclaration",
"src": "1373:7:0"
},
{
"attributes": {
"constant": false,
"name": "r3",
"scope": 176,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"type": "address"
},
"id": 167,
"name": "ElementaryTypeName",
"src": "1382:7:0"
}
],
"id": 168,
"name": "VariableDeclaration",
"src": "1382:10:0"
}
],
"id": 169,
"name": "ParameterList",
"src": "1361:32:0"
},
{
"children": [
{
"attributes": {
"functionReturnParameters": 169
},
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isInlineArray": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"type": "tuple(uint32,bool,address)"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 157,
"type": "uint32",
"value": "p1"
},
"id": 170,
"name": "Identifier",
"src": "1413:2:0"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 159,
"type": "bool",
"value": "p2"
},
"id": 171,
"name": "Identifier",
"src": "1417:2:0"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 161,
"type": "address",
"value": "p3"
},
"id": 172,
"name": "Identifier",
"src": "1421:2:0"
}
],
"id": 173,
"name": "TupleExpression",
"src": "1412:12:0"
}
],
"id": 174,
"name": "Return",
"src": "1405:19:0"
}
],
"id": 175,
"name": "Block",
"src": "1394:38:0"
}
],
"id": 176,
"name": "FunctionDefinition",
"src": "1286:146:0"
},
{
"attributes": {
"constant": false,
"documentation": null,
"implemented": true,
"isConstructor": false,
"modifiers": [
null
],
"name": "echoMultipleDynamic",
"payable": false,
"scope": 311,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "p1",
"scope": 197,
"stateVariable": false,
"storageLocation": "default",
"type": "string",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "string",
"type": "string"
},
"id": 177,
"name": "ElementaryTypeName",
"src": "1469:6:0"
}
],
"id": 178,
"name": "VariableDeclaration",
"src": "1469:9:0"
},
{
"attributes": {
"constant": false,
"name": "p2",
"scope": 197,
"stateVariable": false,
"storageLocation": "default",
"type": "string",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "string",
"type": "string"
},
"id": 179,
"name": "ElementaryTypeName",
"src": "1480:6:0"
}
],
"id": 180,
"name": "VariableDeclaration",
"src": "1480:9:0"
},
{
"attributes": {
"constant": false,
"name": "p3",
"scope": 197,
"stateVariable": false,
"storageLocation": "default",
"type": "string",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "string",
"type": "string"
},
"id": 181,
"name": "ElementaryTypeName",
"src": "1491:6:0"
}
],
"id": 182,
"name": "VariableDeclaration",
"src": "1491:9:0"
}
],
"id": 183,
"name": "ParameterList",
"src": "1468:33:0"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "r1",
"scope": 197,
"stateVariable": false,
"storageLocation": "default",
"type": "string",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "string",
"type": "string"
},
"id": 184,
"name": "ElementaryTypeName",
"src": "1518:6:0"
}
],
"id": 185,
"name": "VariableDeclaration",
"src": "1518:9:0"
},
{
"attributes": {
"constant": false,
"name": "r2",
"scope": 197,
"stateVariable": false,
"storageLocation": "default",
"type": "string",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "string",
"type": "string"
},
"id": 186,
"name": "ElementaryTypeName",
"src": "1529:6:0"
}
],
"id": 187,
"name": "VariableDeclaration",
"src": "1529:9:0"
},
{
"attributes": {
"constant": false,
"name": "r3",
"scope": 197,
"stateVariable": false,
"storageLocation": "default",
"type": "string",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "string",
"type": "string"
},
"id": 188,
"name": "ElementaryTypeName",
"src": "1540:6:0"
}
],
"id": 189,
"name": "VariableDeclaration",
"src": "1540:9:0"
}
],
"id": 190,
"name": "ParameterList",
"src": "1517:33:0"
},
{
"children": [
{
"attributes": {
"functionReturnParameters": 190
},
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isInlineArray": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"type": "tuple(string memory,string memory,string memory)"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 178,
"type": "string memory",
"value": "p1"
},
"id": 191,
"name": "Identifier",
"src": "1570:2:0"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 180,
"type": "string memory",
"value": "p2"
},
"id": 192,
"name": "Identifier",
"src": "1574:2:0"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 182,
"type": "string memory",
"value": "p3"
},
"id": 193,
"name": "Identifier",
"src": "1578:2:0"
}
],
"id": 194,
"name": "TupleExpression",
"src": "1569:12:0"
}
],
"id": 195,
"name": "Return",
"src": "1562:19:0"
}
],
"id": 196,
"name": "Block",
"src": "1551:38:0"
}
],
"id": 197,
"name": "FunctionDefinition",
"src": "1440:149:0"
},
{
"attributes": {
"constant": false,
"documentation": null,
"implemented": true,
"isConstructor": false,
"modifiers": [
null
],
"name": "boat",
"payable": false,
"scope": 311,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "p1",
"scope": 239,
"stateVariable": false,
"storageLocation": "default",
"type": "bool",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "bool",
"type": "bool"
},
"id": 198,
"name": "ElementaryTypeName",
"src": "1611:4:0"
}
],
"id": 199,
"name": "VariableDeclaration",
"src": "1611:7:0"
},
{
"attributes": {
"constant": false,
"name": "p2",
"scope": 239,
"stateVariable": false,
"storageLocation": "default",
"type": "string",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "string",
"type": "string"
},
"id": 200,
"name": "ElementaryTypeName",
"src": "1620:6:0"
}
],
"id": 201,
"name": "VariableDeclaration",
"src": "1620:9:0"
},
{
"attributes": {
"constant": false,
"name": "p3",
"scope": 239,
"stateVariable": false,
"storageLocation": "default",
"type": "int56",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "int56",
"type": "int56"
},
"id": 202,
"name": "ElementaryTypeName",
"src": "1631:5:0"
}
],
"id": 203,
"name": "VariableDeclaration",
"src": "1631:8:0"
},
{
"attributes": {
"constant": false,
"name": "p4",
"scope": 239,
"stateVariable": false,
"storageLocation": "default",
"type": "address[]",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"length": null,
"type": "address[]"
},
"children": [
{
"attributes": {
"name": "address",
"type": "address"
},
"id": 204,
"name": "ElementaryTypeName",
"src": "1641:7:0"
}
],
"id": 205,
"name": "ArrayTypeName",
"src": "1641:9:0"
}
],
"id": 206,
"name": "VariableDeclaration",
"src": "1641:12:0"
},
{
"attributes": {
"constant": false,
"name": "p5",
"scope": 239,
"stateVariable": false,
"storageLocation": "default",
"type": "uint8",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint8",
"type": "uint8"
},
"id": 207,
"name": "ElementaryTypeName",
"src": "1655:5:0"
}
],
"id": 208,
"name": "VariableDeclaration",
"src": "1655:8:0"
},
{
"attributes": {
"constant": false,
"name": "p6",
"scope": 239,
"stateVariable": false,
"storageLocation": "default",
"type": "uint64[3]",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"type": "uint64[3]"
},
"children": [
{
"attributes": {
"name": "uint64",
"type": "uint64"
},
"id": 209,
"name": "ElementaryTypeName",
"src": "1665:6:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "33",
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": null,
"value": "3"
},
"id": 210,
"name": "Literal",
"src": "1672:1:0"
}
],
"id": 211,
"name": "ArrayTypeName",
"src": "1665:9:0"
}
],
"id": 212,
"name": "VariableDeclaration",
"src": "1665:12:0"
}
],
"id": 213,
"name": "ParameterList",
"src": "1610:68:0"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "r1",
"scope": 239,
"stateVariable": false,
"storageLocation": "default",
"type": "bool",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "bool",
"type": "bool"
},
"id": 214,
"name": "ElementaryTypeName",
"src": "1704:4:0"
}
],
"id": 215,
"name": "VariableDeclaration",
"src": "1704:7:0"
},
{
"attributes": {
"constant": false,
"name": "r2",
"scope": 239,
"stateVariable": false,
"storageLocation": "default",
"type": "string",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "string",
"type": "string"
},
"id": 216,
"name": "ElementaryTypeName",
"src": "1713:6:0"
}
],
"id": 217,
"name": "VariableDeclaration",
"src": "1713:9:0"
},
{
"attributes": {
"constant": false,
"name": "r3",
"scope": 239,
"stateVariable": false,
"storageLocation": "default",
"type": "int56",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "int56",
"type": "int56"
},
"id": 218,
"name": "ElementaryTypeName",
"src": "1724:5:0"
}
],
"id": 219,
"name": "VariableDeclaration",
"src": "1724:8:0"
},
{
"attributes": {
"constant": false,
"name": "r4",
"scope": 239,
"stateVariable": false,
"storageLocation": "default",
"type": "address[]",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"length": null,
"type": "address[]"
},
"children": [
{
"attributes": {
"name": "address",
"type": "address"
},
"id": 220,
"name": "ElementaryTypeName",
"src": "1734:7:0"
}
],
"id": 221,
"name": "ArrayTypeName",
"src": "1734:9:0"
}
],
"id": 222,
"name": "VariableDeclaration",
"src": "1734:12:0"
},
{
"attributes": {
"constant": false,
"name": "r5",
"scope": 239,
"stateVariable": false,
"storageLocation": "default",
"type": "uint8",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint8",
"type": "uint8"
},
"id": 223,
"name": "ElementaryTypeName",
"src": "1748:5:0"
}
],
"id": 224,
"name": "VariableDeclaration",
"src": "1748:8:0"
},
{
"attributes": {
"constant": false,
"name": "r6",
"scope": 239,
"stateVariable": false,
"storageLocation": "default",
"type": "uint64[3]",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"type": "uint64[3]"
},
"children": [
{
"attributes": {
"name": "uint64",
"type": "uint64"
},
"id": 225,
"name": "ElementaryTypeName",
"src": "1758:6:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "33",
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": null,
"value": "3"
},
"id": 226,
"name": "Literal",
"src": "1765:1:0"
}
],
"id": 227,
"name": "ArrayTypeName",
"src": "1758:9:0"
}
],
"id": 228,
"name": "VariableDeclaration",
"src": "1758:12:0"
}
],
"id": 229,
"name": "ParameterList",
"src": "1703:68:0"
},
{
"children": [
{
"attributes": {
"functionReturnParameters": 229
},
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isInlineArray": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"type": "tuple(bool,string memory,int56,address[] memory,uint8,uint64[3] memory)"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 199,
"type": "bool",
"value": "p1"
},
"id": 230,
"name": "Identifier",
"src": "1795:2:0"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 201,
"type": "string memory",
"value": "p2"
},
"id": 231,
"name": "Identifier",
"src": "1799:2:0"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 203,
"type": "int56",
"value": "p3"
},
"id": 232,
"name": "Identifier",
"src": "1803:2:0"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 206,
"type": "address[] memory",
"value": "p4"
},
"id": 233,
"name": "Identifier",
"src": "1807:2:0"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 208,
"type": "uint8",
"value": "p5"
},
"id": 234,
"name": "Identifier",
"src": "1811:2:0"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 212,
"type": "uint64[3] memory",
"value": "p6"
},
"id": 235,
"name": "Identifier",
"src": "1815:2:0"
}
],
"id": 236,
"name": "TupleExpression",
"src": "1794:24:0"
}
],
"id": 237,
"name": "Return",
"src": "1787:31:0"
}
],
"id": 238,
"name": "Block",
"src": "1772:54:0"
}
],
"id": 239,
"name": "FunctionDefinition",
"src": "1597:229:0"
},
{
"attributes": {
"constant": true,
"documentation": "@author Unknown author\r\n @notice This is a test function\r\n @dev Hi dev\r\n @param _num What number\r\n @return true if _num is 9\r",
"implemented": true,
"isConstructor": false,
"modifiers": [
null
],
"name": "myFunc",
"payable": false,
"scope": 311,
"stateMutability": "pure",
"superFunction": null,
"visibility": "external"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "_num",
"scope": 251,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint256",
"type": "uint256"
},
"id": 240,
"name": "ElementaryTypeName",
"src": "2012:7:0"
}
],
"id": 241,
"name": "VariableDeclaration",
"src": "2012:12:0"
}
],
"id": 242,
"name": "ParameterList",
"src": "2011:14:0"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "isNine",
"scope": 251,
"stateVariable": false,
"storageLocation": "default",
"type": "bool",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "bool",
"type": "bool"
},
"id": 243,
"name": "ElementaryTypeName",
"src": "2049:4:0"
}
],
"id": 244,
"name": "VariableDeclaration",
"src": "2049:11:0"
}
],
"id": 245,
"name": "ParameterList",
"src": "2048:13:0"
},
{
"children": [
{
"attributes": {
"functionReturnParameters": 245
},
"children": [
{
"attributes": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "==",
"type": "bool"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 241,
"type": "uint256",
"value": "_num"
},
"id": 246,
"name": "Identifier",
"src": "2080:4:0"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "39",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 9",
"value": "9"
},
"id": 247,
"name": "Literal",
"src": "2088:1:0"
}
],
"id": 248,
"name": "BinaryOperation",
"src": "2080:9:0"
}
],
"id": 249,
"name": "Return",
"src": "2073:16:0"
}
],
"id": 250,
"name": "Block",
"src": "2062:35:0"
}
],
"id": 251,
"name": "FunctionDefinition",
"src": "1996:101:0"
},
{
"attributes": {
"constant": false,
"documentation": null,
"implemented": true,
"isConstructor": false,
"modifiers": [
null
],
"name": "echoString",
"payable": false,
"scope": 311,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "val",
"scope": 261,
"stateVariable": false,
"storageLocation": "default",
"type": "string",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "string",
"type": "string"
},
"id": 252,
"name": "ElementaryTypeName",
"src": "2122:6:0"
}
],
"id": 253,
"name": "VariableDeclaration",
"src": "2122:10:0"
}
],
"id": 254,
"name": "ParameterList",
"src": "2121:12:0"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "",
"scope": 261,
"stateVariable": false,
"storageLocation": "default",
"type": "string",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "string",
"type": "string"
},
"id": 255,
"name": "ElementaryTypeName",
"src": "2150:6:0"
}
],
"id": 256,
"name": "VariableDeclaration",
"src": "2150:6:0"
}
],
"id": 257,
"name": "ParameterList",
"src": "2149:8:0"
},
{
"children": [
{
"attributes": {
"functionReturnParameters": 257
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 253,
"type": "string memory",
"value": "val"
},
"id": 258,
"name": "Identifier",
"src": "2170:3:0"
}
],
"id": 259,
"name": "Return",
"src": "2163:10:0"
}
],
"id": 260,
"name": "Block",
"src": "2158:20:0"
}
],
"id": 261,
"name": "FunctionDefinition",
"src": "2102:76:0"
},
{
"attributes": {
"constant": false,
"documentation": null,
"implemented": true,
"isConstructor": false,
"modifiers": [
null
],
"name": "echoAddress",
"payable": false,
"scope": 311,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "val",
"scope": 271,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"type": "address"
},
"id": 262,
"name": "ElementaryTypeName",
"src": "2204:7:0"
}
],
"id": 263,
"name": "VariableDeclaration",
"src": "2204:11:0"
}
],
"id": 264,
"name": "ParameterList",
"src": "2203:13:0"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "",
"scope": 271,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"type": "address"
},
"id": 265,
"name": "ElementaryTypeName",
"src": "2233:7:0"
}
],
"id": 266,
"name": "VariableDeclaration",
"src": "2233:7:0"
}
],
"id": 267,
"name": "ParameterList",
"src": "2232:9:0"
},
{
"children": [
{
"attributes": {
"functionReturnParameters": 267
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 263,
"type": "address",
"value": "val"
},
"id": 268,
"name": "Identifier",
"src": "2254:3:0"
}
],
"id": 269,
"name": "Return",
"src": "2247:10:0"
}
],
"id": 270,
"name": "Block",
"src": "2242:20:0"
}
],
"id": 271,
"name": "FunctionDefinition",
"src": "2183:79:0"
},
{
"attributes": {
"constant": false,
"documentation": null,
"implemented": true,
"isConstructor": false,
"modifiers": [
null
],
"name": "echoMany",
"payable": false,
"scope": 311,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "addr",
"scope": 292,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"type": "address"
},
"id": 272,
"name": "ElementaryTypeName",
"src": "2285:7:0"
}
],
"id": 273,
"name": "VariableDeclaration",
"src": "2285:12:0"
},
{
"attributes": {
"constant": false,
"name": "num",
"scope": 292,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint256",
"type": "uint256"
},
"id": 274,
"name": "ElementaryTypeName",
"src": "2299:7:0"
}
],
"id": 275,
"name": "VariableDeclaration",
"src": "2299:11:0"
},
{
"attributes": {
"constant": false,
"name": "str",
"scope": 292,
"stateVariable": false,
"storageLocation": "default",
"type": "string",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "string",
"type": "string"
},
"id": 276,
"name": "ElementaryTypeName",
"src": "2312:6:0"
}
],
"id": 277,
"name": "VariableDeclaration",
"src": "2312:10:0"
}
],
"id": 278,
"name": "ParameterList",
"src": "2284:39:0"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "",
"scope": 292,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"type": "address"
},
"id": 279,
"name": "ElementaryTypeName",
"src": "2340:7:0"
}
],
"id": 280,
"name": "VariableDeclaration",
"src": "2340:7:0"
},
{
"attributes": {
"constant": false,
"name": "",
"scope": 292,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint256",
"type": "uint256"
},
"id": 281,
"name": "ElementaryTypeName",
"src": "2349:7:0"
}
],
"id": 282,
"name": "VariableDeclaration",
"src": "2349:7:0"
},
{
"attributes": {
"constant": false,
"name": "",
"scope": 292,
"stateVariable": false,
"storageLocation": "default",
"type": "string",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "string",
"type": "string"
},
"id": 283,
"name": "ElementaryTypeName",
"src": "2358:6:0"
}
],
"id": 284,
"name": "VariableDeclaration",
"src": "2358:6:0"
}
],
"id": 285,
"name": "ParameterList",
"src": "2339:26:0"
},
{
"children": [
{
"attributes": {
"functionReturnParameters": 285
},
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isInlineArray": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"type": "tuple(address,uint256,string memory)"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 273,
"type": "address",
"value": "addr"
},
"id": 286,
"name": "Identifier",
"src": "2379:4:0"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 275,
"type": "uint256",
"value": "num"
},
"id": 287,
"name": "Identifier",
"src": "2385:3:0"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 277,
"type": "string memory",
"value": "str"
},
"id": 288,
"name": "Identifier",
"src": "2390:3:0"
}
],
"id": 289,
"name": "TupleExpression",
"src": "2378:16:0"
}
],
"id": 290,
"name": "Return",
"src": "2371:23:0"
}
],
"id": 291,
"name": "Block",
"src": "2366:33:0"
}
],
"id": 292,
"name": "FunctionDefinition",
"src": "2267:132:0"
},
{
"attributes": {
"constant": false,
"documentation": null,
"implemented": true,
"isConstructor": false,
"modifiers": [
null
],
"name": "echoInt24",
"payable": false,
"scope": 311,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "_num",
"scope": 302,
"stateVariable": false,
"storageLocation": "default",
"type": "int24",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "int24",
"type": "int24"
},
"id": 293,
"name": "ElementaryTypeName",
"src": "2426:5:0"
}
],
"id": 294,
"name": "VariableDeclaration",
"src": "2426:10:0"
}
],
"id": 295,
"name": "ParameterList",
"src": "2425:12:0"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "_result",
"scope": 302,
"stateVariable": false,
"storageLocation": "default",
"type": "int24",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "int24",
"type": "int24"
},
"id": 296,
"name": "ElementaryTypeName",
"src": "2454:5:0"
}
],
"id": 297,
"name": "VariableDeclaration",
"src": "2454:13:0"
}
],
"id": 298,
"name": "ParameterList",
"src": "2453:15:0"
},
{
"children": [
{
"attributes": {
"functionReturnParameters": 298
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 294,
"type": "int24",
"value": "_num"
},
"id": 299,
"name": "Identifier",
"src": "2487:4:0"
}
],
"id": 300,
"name": "Return",
"src": "2480:11:0"
}
],
"id": 301,
"name": "Block",
"src": "2469:30:0"
}
],
"id": 302,
"name": "FunctionDefinition",
"src": "2407:92:0"
},
{
"attributes": {
"constant": false,
"documentation": null,
"implemented": true,
"isConstructor": false,
"modifiers": [
null
],
"name": "noopFunc",
"payable": false,
"scope": 311,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 303,
"name": "ParameterList",
"src": "2524:2:0"
},
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 304,
"name": "ParameterList",
"src": "2534:0:0"
},
{
"attributes": {
"statements": [
null
]
},
"children": [],
"id": 305,
"name": "Block",
"src": "2534:18:0"
}
],
"id": 306,
"name": "FunctionDefinition",
"src": "2507:45:0"
},
{
"attributes": {
"constant": false,
"documentation": "@notice The fallback function\r",
"implemented": true,
"isConstructor": false,
"modifiers": [
null
],
"name": "",
"payable": false,
"scope": 311,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 307,
"name": "ParameterList",
"src": "2607:2:0"
},
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 308,
"name": "ParameterList",
"src": "2617:0:0"
},
{
"attributes": {
"statements": [
null
]
},
"children": [],
"id": 309,
"name": "Block",
"src": "2617:10:0"
}
],
"id": 310,
"name": "FunctionDefinition",
"src": "2599:28:0"
}
],
"id": 311,
"name": "ContractDefinition",
"src": "151:2481:0"
}
],
"id": 312,
"name": "SourceUnit",
"src": "0:2632:0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment