@etherisc/gif-contracts
Version:
This repository holds the GIF core contracts and tools to develop, test and deploy GIF instances.
1,147 lines (1,146 loc) • 272 kB
JSON
{
"abi": [],
"allSourcePaths": {
"62": "/home/vscode/.brownie/packages/smartcontractkit/chainlink@1.6.0/contracts/src/v0.8/vendor/BufferChainlink.sol",
"63": "/home/vscode/.brownie/packages/smartcontractkit/chainlink@1.6.0/contracts/src/v0.8/vendor/CBORChainlink.sol"
},
"ast": {
"absolutePath": "/home/vscode/.brownie/packages/smartcontractkit/chainlink@1.6.0/contracts/src/v0.8/vendor/CBORChainlink.sol",
"exportedSymbols": {
"BufferChainlink": [
28140
],
"CBORChainlink": [
28587
]
},
"id": 28588,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 28142,
"literals": [
"solidity",
">=",
"0.4",
".19"
],
"nodeType": "PragmaDirective",
"src": "32:25:63"
},
{
"absolutePath": "/home/vscode/.brownie/packages/smartcontractkit/chainlink@1.6.0/contracts/src/v0.8/vendor/BufferChainlink.sol",
"file": "./BufferChainlink.sol",
"id": 28144,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 28588,
"sourceUnit": 28141,
"src": "59:54:63",
"symbolAliases": [
{
"foreign": {
"id": 28143,
"name": "BufferChainlink",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"src": "67:15:63",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "library",
"fullyImplemented": true,
"id": 28587,
"linearizedBaseContracts": [
28587
],
"name": "CBORChainlink",
"nameLocation": "123:13:63",
"nodeType": "ContractDefinition",
"nodes": [
{
"id": 28148,
"libraryName": {
"id": 28145,
"name": "BufferChainlink",
"nodeType": "IdentifierPath",
"referencedDeclaration": 28140,
"src": "147:15:63"
},
"nodeType": "UsingForDirective",
"src": "141:49:63",
"typeName": {
"id": 28147,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28146,
"name": "BufferChainlink.buffer",
"nodeType": "IdentifierPath",
"referencedDeclaration": 27626,
"src": "167:22:63"
},
"referencedDeclaration": 27626,
"src": "167:22:63",
"typeDescriptions": {
"typeIdentifier": "t_struct$_buffer_$27626_storage_ptr",
"typeString": "struct BufferChainlink.buffer"
}
}
},
{
"constant": true,
"id": 28151,
"mutability": "constant",
"name": "MAJOR_TYPE_INT",
"nameLocation": "217:14:63",
"nodeType": "VariableDeclaration",
"scope": 28587,
"src": "194:41:63",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 28149,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "194:5:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": {
"hexValue": "30",
"id": 28150,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "234:1:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"visibility": "private"
},
{
"constant": true,
"id": 28154,
"mutability": "constant",
"name": "MAJOR_TYPE_NEGATIVE_INT",
"nameLocation": "262:23:63",
"nodeType": "VariableDeclaration",
"scope": 28587,
"src": "239:50:63",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 28152,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "239:5:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": {
"hexValue": "31",
"id": 28153,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "288:1:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
},
"visibility": "private"
},
{
"constant": true,
"id": 28157,
"mutability": "constant",
"name": "MAJOR_TYPE_BYTES",
"nameLocation": "316:16:63",
"nodeType": "VariableDeclaration",
"scope": 28587,
"src": "293:43:63",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 28155,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "293:5:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": {
"hexValue": "32",
"id": 28156,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "335:1:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_2_by_1",
"typeString": "int_const 2"
},
"value": "2"
},
"visibility": "private"
},
{
"constant": true,
"id": 28160,
"mutability": "constant",
"name": "MAJOR_TYPE_STRING",
"nameLocation": "363:17:63",
"nodeType": "VariableDeclaration",
"scope": 28587,
"src": "340:44:63",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 28158,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "340:5:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": {
"hexValue": "33",
"id": 28159,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "383:1:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_3_by_1",
"typeString": "int_const 3"
},
"value": "3"
},
"visibility": "private"
},
{
"constant": true,
"id": 28163,
"mutability": "constant",
"name": "MAJOR_TYPE_ARRAY",
"nameLocation": "411:16:63",
"nodeType": "VariableDeclaration",
"scope": 28587,
"src": "388:43:63",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 28161,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "388:5:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": {
"hexValue": "34",
"id": 28162,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "430:1:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_4_by_1",
"typeString": "int_const 4"
},
"value": "4"
},
"visibility": "private"
},
{
"constant": true,
"id": 28166,
"mutability": "constant",
"name": "MAJOR_TYPE_MAP",
"nameLocation": "458:14:63",
"nodeType": "VariableDeclaration",
"scope": 28587,
"src": "435:41:63",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 28164,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "435:5:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": {
"hexValue": "35",
"id": 28165,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "475:1:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_5_by_1",
"typeString": "int_const 5"
},
"value": "5"
},
"visibility": "private"
},
{
"constant": true,
"id": 28169,
"mutability": "constant",
"name": "MAJOR_TYPE_TAG",
"nameLocation": "503:14:63",
"nodeType": "VariableDeclaration",
"scope": 28587,
"src": "480:41:63",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 28167,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "480:5:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": {
"hexValue": "36",
"id": 28168,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "520:1:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_6_by_1",
"typeString": "int_const 6"
},
"value": "6"
},
"visibility": "private"
},
{
"constant": true,
"id": 28172,
"mutability": "constant",
"name": "MAJOR_TYPE_CONTENT_FREE",
"nameLocation": "548:23:63",
"nodeType": "VariableDeclaration",
"scope": 28587,
"src": "525:50:63",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 28170,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "525:5:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": {
"hexValue": "37",
"id": 28171,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "574:1:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_7_by_1",
"typeString": "int_const 7"
},
"value": "7"
},
"visibility": "private"
},
{
"constant": true,
"id": 28175,
"mutability": "constant",
"name": "TAG_TYPE_BIGNUM",
"nameLocation": "603:15:63",
"nodeType": "VariableDeclaration",
"scope": 28587,
"src": "580:42:63",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 28173,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "580:5:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": {
"hexValue": "32",
"id": 28174,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "621:1:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_2_by_1",
"typeString": "int_const 2"
},
"value": "2"
},
"visibility": "private"
},
{
"constant": true,
"id": 28178,
"mutability": "constant",
"name": "TAG_TYPE_NEGATIVE_BIGNUM",
"nameLocation": "649:24:63",
"nodeType": "VariableDeclaration",
"scope": 28587,
"src": "626:51:63",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 28176,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "626:5:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": {
"hexValue": "33",
"id": 28177,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "676:1:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_3_by_1",
"typeString": "int_const 3"
},
"value": "3"
},
"visibility": "private"
},
{
"body": {
"id": 28307,
"nodeType": "Block",
"src": "785:522:63",
"statements": [
{
"condition": {
"commonType": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
},
"id": 28190,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 28188,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 28185,
"src": "794:5:63",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
}
},
"nodeType": "BinaryOperation",
"operator": "<=",
"rightExpression": {
"hexValue": "3233",
"id": 28189,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "803:2:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_23_by_1",
"typeString": "int_const 23"
},
"value": "23"
},
"src": "794:11:63",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": {
"condition": {
"commonType": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
},
"id": 28208,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 28206,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 28185,
"src": "876:5:63",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
}
},
"nodeType": "BinaryOperation",
"operator": "<=",
"rightExpression": {
"hexValue": "30784646",
"id": 28207,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "885:4:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_255_by_1",
"typeString": "int_const 255"
},
"value": "0xFF"
},
"src": "876:13:63",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": {
"condition": {
"commonType": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
},
"id": 28233,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 28231,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 28185,
"src": "988:5:63",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
}
},
"nodeType": "BinaryOperation",
"operator": "<=",
"rightExpression": {
"hexValue": "307846464646",
"id": 28232,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "997:6:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_65535_by_1",
"typeString": "int_const 65535"
},
"value": "0xFFFF"
},
"src": "988:15:63",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": {
"condition": {
"commonType": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
},
"id": 28258,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 28256,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 28185,
"src": "1102:5:63",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
}
},
"nodeType": "BinaryOperation",
"operator": "<=",
"rightExpression": {
"hexValue": "30784646464646464646",
"id": 28257,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1111:10:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_4294967295_by_1",
"typeString": "int_const 4294967295"
},
"value": "0xFFFFFFFF"
},
"src": "1102:19:63",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": {
"id": 28302,
"nodeType": "Block",
"src": "1216:87:63",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"commonType": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"id": 28291,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"components": [
{
"commonType": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"id": 28288,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 28286,
"name": "major",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 28183,
"src": "1247:5:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"nodeType": "BinaryOperation",
"operator": "<<",
"rightExpression": {
"hexValue": "35",
"id": 28287,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1256:1:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_5_by_1",
"typeString": "int_const 5"
},
"value": "5"
},
"src": "1247:10:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
}
],
"id": 28289,
"isConstant": false,
"isInlineArray": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "TupleExpression",
"src": "1246:12:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"nodeType": "BinaryOperation",
"operator": "|",
"rightExpression": {
"hexValue": "3237",
"id": 28290,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1261:2:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_27_by_1",
"typeString": "int_const 27"
},
"value": "27"
},
"src": "1246:17:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
],
"id": 28285,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1240:5:63",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_uint8_$",
"typeString": "type(uint8)"
},
"typeName": {
"id": 28284,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "1240:5:63",
"typeDescriptions": {}
}
},
"id": 28292,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1240:24:63",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
],
"expression": {
"id": 28281,
"name": "buf",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 28181,
"src": "1224:3:63",
"typeDescriptions": {
"typeIdentifier": "t_struct$_buffer_$27626_memory_ptr",
"typeString": "struct BufferChainlink.buffer memory"
}
},
"id": 28283,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "appendUint8",
"nodeType": "MemberAccess",
"referencedDeclaration": 27936,
"src": "1224:15:63",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_pure$_t_struct$_buffer_$27626_memory_ptr_$_t_uint8_$returns$_t_struct$_buffer_$27626_memory_ptr_$bound_to$_t_struct$_buffer_$27626_memory_ptr_$",
"typeString": "function (struct BufferChainlink.buffer memory,uint8) pure returns (struct BufferChainlink.buffer memory)"
}
},
"id": 28293,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1224:41:63",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_struct$_buffer_$27626_memory_ptr",
"typeString": "struct BufferChainlink.buffer memory"
}
},
"id": 28294,
"nodeType": "ExpressionStatement",
"src": "1224:41:63"
},
{
"expression": {
"arguments": [
{
"id": 28298,
"name": "value",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 28185,
"src": "1287:5:63",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
}
},
{
"hexValue": "38",
"id": 28299,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1294:1:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_8_by_1",
"typeString": "int_const 8"
},
"value": "8"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint64",
"typeString": "uint64"
},
{
"typeIdentifier": "t_rational_8_by_1",
"typeString": "int_const 8"
}
],
"expression": {
"id": 28295,
"name": "buf",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 28181,
"src": "1273:3:63",
"typeDescriptions": {
"typeIdentifier": "t_struct$_buffer_$27626_memory_ptr",
"typeString": "struct BufferChainlink.buffer memory"
}
},
"id": 28297,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "appendInt",
"nodeType": "MemberAccess",
"referencedDeclaration": 28139,
"src": "1273:13:63",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_pure$_t_struct$_buffer_$27626_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_struct$_buffer_$27626_memory_ptr_$bound_to$_t_struct$_buffer_$27626_memory_ptr_$",
"typeString": "function (struct BufferChainlink.buffer memory,uint256,uint256) pure returns (struct BufferChainlink.buffer memory)"
}
},
"id": 28300,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1273:23:63",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_struct$_buffer_$27626_memory_ptr",
"typeString": "struct BufferChainlink.buffer memory"
}
},
"id": 28301,
"nodeType": "ExpressionStatement",
"src": "1273:23:63"
}
]
},
"id": 28303,
"nodeType": "IfStatement",
"src": "1098:205:63",
"trueBody": {
"id": 28280,
"nodeType": "Block",
"src": "1123:87:63",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"commonType": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"id": 28269,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"components": [
{
"commonType": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"id": 28266,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 28264,
"name": "major",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 28183,
"src": "1154:5:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"nodeType": "BinaryOperation",
"operator": "<<",
"rightExpression": {
"hexValue": "35",
"id": 28265,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1163:1:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_5_by_1",
"typeString": "int_const 5"
},
"value": "5"
},
"src": "1154:10:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
}
],
"id": 28267,
"isConstant": false,
"isInlineArray": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "TupleExpression",
"src": "1153:12:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"nodeType": "BinaryOperation",
"operator": "|",
"rightExpression": {
"hexValue": "3236",
"id": 28268,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1168:2:63",
"typeDescriptions": {
"typeIdentifier": "t_rational_26_by_1",
"typeString": "int_const 26"
},
"value": "26"
},
"src": "1153:17:63",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
],
"id": 28263,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1147:5:63",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_uint8_$",
"typeString": "type(uint8)"
},
"typeName": {
"id": 28262,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "1147:5:63",