@aragon/apps-payroll
Version:
_**Code in Github:**_ [aragon-apps/apps/payroll](https://github.com/aragon/aragon-apps/tree/master/future-apps/payroll)
1,436 lines • 66.8 kB
JSON
{
"contractName": "UnstructuredStorage",
"abi": [],
"bytecode": "0x604c602c600b82828239805160001a60731460008114601c57601e565bfe5b5030600052607381538281f30073000000000000000000000000000000000000000030146080604052600080fd00a165627a7a7230582059951c4ea4ad0729c8b98938c05da52bc085e55fa2b49fa743a395846748eb1b0029",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fd00a165627a7a7230582059951c4ea4ad0729c8b98938c05da52bc085e55fa2b49fa743a395846748eb1b0029",
"sourceMap": "71:1078:39:-;;132:2:-1;166:7;155:9;146:7;137:37;252:7;246:14;243:1;238:23;232:4;229:33;270:1;265:20;;;;222:63;;265:20;274:9;222:63;;298:9;295:1;288:20;328:4;319:7;311:22;352:7;343;336:24",
"deployedSourceMap": "71:1078:39:-;;;;;;;;",
"source": "/*\n * SPDX-License-Identitifer: MIT\n */\n\npragma solidity ^0.4.24;\n\n\nlibrary UnstructuredStorage {\n function getStorageBool(bytes32 position) internal view returns (bool data) {\n assembly { data := sload(position) }\n }\n\n function getStorageAddress(bytes32 position) internal view returns (address data) {\n assembly { data := sload(position) }\n }\n\n function getStorageBytes32(bytes32 position) internal view returns (bytes32 data) {\n assembly { data := sload(position) }\n }\n\n function getStorageUint256(bytes32 position) internal view returns (uint256 data) {\n assembly { data := sload(position) }\n }\n\n function setStorageBool(bytes32 position, bool data) internal {\n assembly { sstore(position, data) }\n }\n\n function setStorageAddress(bytes32 position, address data) internal {\n assembly { sstore(position, data) }\n }\n\n function setStorageBytes32(bytes32 position, bytes32 data) internal {\n assembly { sstore(position, data) }\n }\n\n function setStorageUint256(bytes32 position, uint256 data) internal {\n assembly { sstore(position, data) }\n }\n}\n",
"sourcePath": "@aragon/os/contracts/common/UnstructuredStorage.sol",
"ast": {
"absolutePath": "@aragon/os/contracts/common/UnstructuredStorage.sol",
"exportedSymbols": {
"UnstructuredStorage": [
11306
]
},
"id": 11307,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 11233,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "44:24:39"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "library",
"documentation": null,
"fullyImplemented": true,
"id": 11306,
"linearizedBaseContracts": [
11306
],
"name": "UnstructuredStorage",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 11241,
"nodeType": "Block",
"src": "181:52:39",
"statements": [
{
"externalReferences": [
{
"data": {
"declaration": 11238,
"isOffset": false,
"isSlot": false,
"src": "202:4:39",
"valueSize": 1
}
},
{
"position": {
"declaration": 11235,
"isOffset": false,
"isSlot": false,
"src": "216:8:39",
"valueSize": 1
}
}
],
"id": 11240,
"nodeType": "InlineAssembly",
"operations": "{\n data := sload(position)\n}",
"src": "191:42:39"
}
]
},
"documentation": null,
"id": 11242,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getStorageBool",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 11236,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11235,
"name": "position",
"nodeType": "VariableDeclaration",
"scope": 11242,
"src": "129:16:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 11234,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "129:7:39",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "128:18:39"
},
"payable": false,
"returnParameters": {
"id": 11239,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11238,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 11242,
"src": "170:9:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 11237,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "170:4:39",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "169:11:39"
},
"scope": 11306,
"src": "105:128:39",
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 11250,
"nodeType": "Block",
"src": "321:52:39",
"statements": [
{
"externalReferences": [
{
"data": {
"declaration": 11247,
"isOffset": false,
"isSlot": false,
"src": "342:4:39",
"valueSize": 1
}
},
{
"position": {
"declaration": 11244,
"isOffset": false,
"isSlot": false,
"src": "356:8:39",
"valueSize": 1
}
}
],
"id": 11249,
"nodeType": "InlineAssembly",
"operations": "{\n data := sload(position)\n}",
"src": "331:42:39"
}
]
},
"documentation": null,
"id": 11251,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getStorageAddress",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 11245,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11244,
"name": "position",
"nodeType": "VariableDeclaration",
"scope": 11251,
"src": "266:16:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 11243,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "266:7:39",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "265:18:39"
},
"payable": false,
"returnParameters": {
"id": 11248,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11247,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 11251,
"src": "307:12:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 11246,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "307:7:39",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "306:14:39"
},
"scope": 11306,
"src": "239:134:39",
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 11259,
"nodeType": "Block",
"src": "461:52:39",
"statements": [
{
"externalReferences": [
{
"data": {
"declaration": 11256,
"isOffset": false,
"isSlot": false,
"src": "482:4:39",
"valueSize": 1
}
},
{
"position": {
"declaration": 11253,
"isOffset": false,
"isSlot": false,
"src": "496:8:39",
"valueSize": 1
}
}
],
"id": 11258,
"nodeType": "InlineAssembly",
"operations": "{\n data := sload(position)\n}",
"src": "471:42:39"
}
]
},
"documentation": null,
"id": 11260,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getStorageBytes32",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 11254,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11253,
"name": "position",
"nodeType": "VariableDeclaration",
"scope": 11260,
"src": "406:16:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 11252,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "406:7:39",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "405:18:39"
},
"payable": false,
"returnParameters": {
"id": 11257,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11256,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 11260,
"src": "447:12:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 11255,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "447:7:39",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "446:14:39"
},
"scope": 11306,
"src": "379:134:39",
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 11268,
"nodeType": "Block",
"src": "601:52:39",
"statements": [
{
"externalReferences": [
{
"data": {
"declaration": 11265,
"isOffset": false,
"isSlot": false,
"src": "622:4:39",
"valueSize": 1
}
},
{
"position": {
"declaration": 11262,
"isOffset": false,
"isSlot": false,
"src": "636:8:39",
"valueSize": 1
}
}
],
"id": 11267,
"nodeType": "InlineAssembly",
"operations": "{\n data := sload(position)\n}",
"src": "611:42:39"
}
]
},
"documentation": null,
"id": 11269,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getStorageUint256",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 11263,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11262,
"name": "position",
"nodeType": "VariableDeclaration",
"scope": 11269,
"src": "546:16:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 11261,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "546:7:39",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "545:18:39"
},
"payable": false,
"returnParameters": {
"id": 11266,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11265,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 11269,
"src": "587:12:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 11264,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "587:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "586:14:39"
},
"scope": 11306,
"src": "519:134:39",
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 11277,
"nodeType": "Block",
"src": "721:51:39",
"statements": [
{
"externalReferences": [
{
"position": {
"declaration": 11271,
"isOffset": false,
"isSlot": false,
"src": "749:8:39",
"valueSize": 1
}
},
{
"data": {
"declaration": 11273,
"isOffset": false,
"isSlot": false,
"src": "759:4:39",
"valueSize": 1
}
}
],
"id": 11276,
"nodeType": "InlineAssembly",
"operations": "{\n sstore(position, data)\n}",
"src": "731:41:39"
}
]
},
"documentation": null,
"id": 11278,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setStorageBool",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 11274,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11271,
"name": "position",
"nodeType": "VariableDeclaration",
"scope": 11278,
"src": "683:16:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 11270,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "683:7:39",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 11273,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 11278,
"src": "701:9:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 11272,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "701:4:39",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "682:29:39"
},
"payable": false,
"returnParameters": {
"id": 11275,
"nodeType": "ParameterList",
"parameters": [],
"src": "721:0:39"
},
"scope": 11306,
"src": "659:113:39",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 11286,
"nodeType": "Block",
"src": "846:51:39",
"statements": [
{
"externalReferences": [
{
"position": {
"declaration": 11280,
"isOffset": false,
"isSlot": false,
"src": "874:8:39",
"valueSize": 1
}
},
{
"data": {
"declaration": 11282,
"isOffset": false,
"isSlot": false,
"src": "884:4:39",
"valueSize": 1
}
}
],
"id": 11285,
"nodeType": "InlineAssembly",
"operations": "{\n sstore(position, data)\n}",
"src": "856:41:39"
}
]
},
"documentation": null,
"id": 11287,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setStorageAddress",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 11283,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11280,
"name": "position",
"nodeType": "VariableDeclaration",
"scope": 11287,
"src": "805:16:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 11279,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "805:7:39",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 11282,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 11287,
"src": "823:12:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 11281,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "823:7:39",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "804:32:39"
},
"payable": false,
"returnParameters": {
"id": 11284,
"nodeType": "ParameterList",
"parameters": [],
"src": "846:0:39"
},
"scope": 11306,
"src": "778:119:39",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 11295,
"nodeType": "Block",
"src": "971:51:39",
"statements": [
{
"externalReferences": [
{
"position": {
"declaration": 11289,
"isOffset": false,
"isSlot": false,
"src": "999:8:39",
"valueSize": 1
}
},
{
"data": {
"declaration": 11291,
"isOffset": false,
"isSlot": false,
"src": "1009:4:39",
"valueSize": 1
}
}
],
"id": 11294,
"nodeType": "InlineAssembly",
"operations": "{\n sstore(position, data)\n}",
"src": "981:41:39"
}
]
},
"documentation": null,
"id": 11296,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setStorageBytes32",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 11292,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11289,
"name": "position",
"nodeType": "VariableDeclaration",
"scope": 11296,
"src": "930:16:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 11288,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "930:7:39",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 11291,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 11296,
"src": "948:12:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 11290,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "948:7:39",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "929:32:39"
},
"payable": false,
"returnParameters": {
"id": 11293,
"nodeType": "ParameterList",
"parameters": [],
"src": "971:0:39"
},
"scope": 11306,
"src": "903:119:39",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 11304,
"nodeType": "Block",
"src": "1096:51:39",
"statements": [
{
"externalReferences": [
{
"position": {
"declaration": 11298,
"isOffset": false,
"isSlot": false,
"src": "1124:8:39",
"valueSize": 1
}
},
{
"data": {
"declaration": 11300,
"isOffset": false,
"isSlot": false,
"src": "1134:4:39",
"valueSize": 1
}
}
],
"id": 11303,
"nodeType": "InlineAssembly",
"operations": "{\n sstore(position, data)\n}",
"src": "1106:41:39"
}
]
},
"documentation": null,
"id": 11305,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setStorageUint256",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 11301,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11298,
"name": "position",
"nodeType": "VariableDeclaration",
"scope": 11305,
"src": "1055:16:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 11297,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1055:7:39",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 11300,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 11305,
"src": "1073:12:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 11299,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1073:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1054:32:39"
},
"payable": false,
"returnParameters": {
"id": 11302,
"nodeType": "ParameterList",
"parameters": [],
"src": "1096:0:39"
},
"scope": 11306,
"src": "1028:119:39",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
}
],
"scope": 11307,
"src": "71:1078:39"
}
],
"src": "44:1106:39"
},
"legacyAST": {
"absolutePath": "@aragon/os/contracts/common/UnstructuredStorage.sol",
"exportedSymbols": {
"UnstructuredStorage": [
11306
]
},
"id": 11307,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 11233,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "44:24:39"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "library",
"documentation": null,
"fullyImplemented": true,
"id": 11306,
"linearizedBaseContracts": [
11306
],
"name": "UnstructuredStorage",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 11241,
"nodeType": "Block",
"src": "181:52:39",
"statements": [
{
"externalReferences": [
{
"data": {
"declaration": 11238,
"isOffset": false,
"isSlot": false,
"src": "202:4:39",
"valueSize": 1
}
},
{
"position": {
"declaration": 11235,
"isOffset": false,
"isSlot": false,
"src": "216:8:39",
"valueSize": 1
}
}
],
"id": 11240,
"nodeType": "InlineAssembly",
"operations": "{\n data := sload(position)\n}",
"src": "191:42:39"
}
]
},
"documentation": null,
"id": 11242,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getStorageBool",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 11236,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11235,
"name": "position",
"nodeType": "VariableDeclaration",
"scope": 11242,
"src": "129:16:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 11234,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "129:7:39",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "128:18:39"
},
"payable": false,
"returnParameters": {
"id": 11239,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11238,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 11242,
"src": "170:9:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 11237,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "170:4:39",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "169:11:39"
},
"scope": 11306,
"src": "105:128:39",
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 11250,
"nodeType": "Block",
"src": "321:52:39",
"statements": [
{
"externalReferences": [
{
"data": {
"declaration": 11247,
"isOffset": false,
"isSlot": false,
"src": "342:4:39",
"valueSize": 1
}
},
{
"position": {
"declaration": 11244,
"isOffset": false,
"isSlot": false,
"src": "356:8:39",
"valueSize": 1
}
}
],
"id": 11249,
"nodeType": "InlineAssembly",
"operations": "{\n data := sload(position)\n}",
"src": "331:42:39"
}
]
},
"documentation": null,
"id": 11251,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getStorageAddress",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 11245,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11244,
"name": "position",
"nodeType": "VariableDeclaration",
"scope": 11251,
"src": "266:16:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 11243,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "266:7:39",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "265:18:39"
},
"payable": false,
"returnParameters": {
"id": 11248,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11247,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 11251,
"src": "307:12:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 11246,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "307:7:39",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "306:14:39"
},
"scope": 11306,
"src": "239:134:39",
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 11259,
"nodeType": "Block",
"src": "461:52:39",
"statements": [
{
"externalReferences": [
{
"data": {
"declaration": 11256,
"isOffset": false,
"isSlot": false,
"src": "482:4:39",
"valueSize": 1
}
},
{
"position": {
"declaration": 11253,
"isOffset": false,
"isSlot": false,
"src": "496:8:39",
"valueSize": 1
}
}
],
"id": 11258,
"nodeType": "InlineAssembly",
"operations": "{\n data := sload(position)\n}",
"src": "471:42:39"
}
]
},
"documentation": null,
"id": 11260,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getStorageBytes32",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 11254,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11253,
"name": "position",
"nodeType": "VariableDeclaration",
"scope": 11260,
"src": "406:16:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 11252,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "406:7:39",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "405:18:39"
},
"payable": false,
"returnParameters": {
"id": 11257,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11256,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 11260,
"src": "447:12:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 11255,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "447:7:39",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "446:14:39"
},
"scope": 11306,
"src": "379:134:39",
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 11268,
"nodeType": "Block",
"src": "601:52:39",
"statements": [
{
"externalReferences": [
{
"data": {
"declaration": 11265,
"isOffset": false,
"isSlot": false,
"src": "622:4:39",
"valueSize": 1
}
},
{
"position": {
"declaration": 11262,
"isOffset": false,
"isSlot": false,
"src": "636:8:39",
"valueSize": 1
}
}
],
"id": 11267,
"nodeType": "InlineAssembly",
"operations": "{\n data := sload(position)\n}",
"src": "611:42:39"
}
]
},
"documentation": null,
"id": 11269,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getStorageUint256",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 11263,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11262,
"name": "position",
"nodeType": "VariableDeclaration",
"scope": 11269,
"src": "546:16:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 11261,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "546:7:39",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "545:18:39"
},
"payable": false,
"returnParameters": {
"id": 11266,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11265,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 11269,
"src": "587:12:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_ui