@newos/upgrades
Version:
Core JavaScript library for the NewOS
1,395 lines (1,394 loc) • 93.4 kB
JSON
{
"fileName": "StorageMocks.sol",
"contractName": "StorageMockWithComplexStructs",
"source": "pragma solidity ^0.5.0;\n\n// Added just for having a circular reference\nimport \"./StorageMocks3.sol\";\n\ncontract SimpleStorageMock {\n uint256 public my_public_uint256;\n string internal my_internal_string;\n uint8 private my_private_uint8;\n int8 private my_private_uint16;\n bool private my_private_bool;\n uint private my_private_uint;\n address private my_private_address;\n}\n\ncontract StorageMockWithBytes {\n bytes internal my_bytes;\n bytes8 internal my_bytes8;\n bytes32 internal my_bytes32;\n}\n\ncontract StorageMockWithConstants {\n uint256 public constant my_public_uint256 = 256;\n string internal constant my_internal_string = \"foo\";\n uint8 private constant my_private_uint8 = 8;\n}\n\ncontract StorageMockWithArrays {\n uint256[] public my_public_uint256_dynarray;\n string[] internal my_internal_string_dynarray;\n address[] private my_private_address_dynarray;\n int8[10] public my_public_int8_staticarray;\n bool[20] internal my_internal_bool_staticarray;\n uint[30] private my_private_uint_staticarray;\n}\n\ncontract StorageMockWithMappings {\n mapping(uint256 => string) public my_mapping;\n mapping(uint256 => mapping(string => address)) internal my_nested_mapping;\n mapping(uint256 => bool[]) private my_mapping_with_arrays;\n}\n\ncontract StorageMockWithFunctions {\n function(uint) internal my_fun;\n function(string memory, string memory)[] internal my_fun_dynarray;\n function(uint) returns (address)[10] internal my_fun_staticarray;\n mapping(uint256 => function(bool)) internal my_fun_mapping;\n}\n\ncontract StorageMockWithContracts {\n SimpleStorageMock public my_contract;\n SimpleStorageMock[] private my_contract_dynarray;\n SimpleStorageMock[10] internal my_contract_staticarray;\n mapping(uint256 => SimpleStorageMock) private my_contract_mapping;\n mapping(uint256 => SimpleStorageMock[]) private my_contract_dynarray_mapping;\n mapping(uint256 => SimpleStorageMock[10]) private my_contract_staticarray_mapping;\n}\n\ncontract StorageMockWithStructs {\n struct MyStruct {\n uint256 struct_uint256;\n string struct_string;\n address struct_address;\n } \n\n MyStruct internal my_struct;\n MyStruct[] private my_struct_dynarray;\n MyStruct[10] internal my_struct_staticarray;\n mapping(uint256 => MyStruct) private my_struct_mapping;\n}\n\ncontract StorageMockWithEnums {\n enum MyEnum { State1, State2 }\n \n MyEnum public my_enum;\n MyEnum[] internal my_enum_dynarray;\n MyEnum[10] internal my_enum_staticarray;\n mapping(uint256 => MyEnum) private my_enum_mapping;\n}\n\ncontract StorageMockWithComplexStructs {\n struct MyStruct {\n uint256[] uint256_dynarray;\n mapping(string => StorageMockWithEnums.MyEnum) mapping_enums;\n StorageMockWithStructs.MyStruct other_struct;\n }\n\n MyStruct internal my_struct;\n StorageMockWithStructs.MyStruct internal my_other_struct;\n}\n\ncontract StorageMockWithRecursiveStructs {\n struct MyStruct {\n OtherStruct[] other_structs;\n }\n\n struct OtherStruct {\n MyStruct my_struct;\n }\n\n MyStruct internal my_struct;\n}\n\ncontract StorageMockMixed is StorageMockWithStructs, StorageMockWithEnums, SimpleStorageMock {\n}\n",
"sourcePath": "contracts/mocks/StorageMocks.sol",
"sourceMap": "2489:306:18:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2489:306:18;;;;;;;",
"deployedSourceMap": "2489:306:18:-;;;;;",
"abi": [],
"ast": {
"absolutePath": "contracts/mocks/StorageMocks.sol",
"exportedSymbols": {
"SimpleStorageMock": [
4380
],
"StorageMockMixed": [
4564
],
"StorageMockWithArrays": [
4419
],
"StorageMockWithBytes": [
4387
],
"StorageMockWithComplexStructs": [
4547
],
"StorageMockWithConstants": [
4397
],
"StorageMockWithContracts": [
4494
],
"StorageMockWithEnums": [
4532
],
"StorageMockWithFunctions": [
4469
],
"StorageMockWithMappings": [
4435
],
"StorageMockWithRecursiveStructs": [
4557
],
"StorageMockWithStructs": [
4515
]
},
"id": 4565,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 4364,
"literals": [
"solidity",
"^",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:23:18"
},
{
"absolutePath": "contracts/mocks/StorageMocks3.sol",
"file": "./StorageMocks3.sol",
"id": 4365,
"nodeType": "ImportDirective",
"scope": 4565,
"sourceUnit": 4639,
"src": "71:29:18",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 4380,
"linearizedBaseContracts": [
4380
],
"name": "SimpleStorageMock",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 4367,
"name": "my_public_uint256",
"nodeType": "VariableDeclaration",
"scope": 4380,
"src": "133:32:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4366,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "133:7:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 4369,
"name": "my_internal_string",
"nodeType": "VariableDeclaration",
"scope": 4380,
"src": "169:34:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string"
},
"typeName": {
"id": 4368,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "169:6:18",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4371,
"name": "my_private_uint8",
"nodeType": "VariableDeclaration",
"scope": 4380,
"src": "207:30:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 4370,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "207:5:18",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 4373,
"name": "my_private_uint16",
"nodeType": "VariableDeclaration",
"scope": 4380,
"src": "241:30:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int8",
"typeString": "int8"
},
"typeName": {
"id": 4372,
"name": "int8",
"nodeType": "ElementaryTypeName",
"src": "241:4:18",
"typeDescriptions": {
"typeIdentifier": "t_int8",
"typeString": "int8"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 4375,
"name": "my_private_bool",
"nodeType": "VariableDeclaration",
"scope": 4380,
"src": "275:28:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 4374,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "275:4:18",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 4377,
"name": "my_private_uint",
"nodeType": "VariableDeclaration",
"scope": 4380,
"src": "307:28:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4376,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "307:4:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 4379,
"name": "my_private_address",
"nodeType": "VariableDeclaration",
"scope": 4380,
"src": "339:34:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4378,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "339:7:18",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "private"
}
],
"scope": 4565,
"src": "102:274:18"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 4387,
"linearizedBaseContracts": [
4387
],
"name": "StorageMockWithBytes",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 4382,
"name": "my_bytes",
"nodeType": "VariableDeclaration",
"scope": 4387,
"src": "412:23:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage",
"typeString": "bytes"
},
"typeName": {
"id": 4381,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "412:5:18",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4384,
"name": "my_bytes8",
"nodeType": "VariableDeclaration",
"scope": 4387,
"src": "439:25:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes8",
"typeString": "bytes8"
},
"typeName": {
"id": 4383,
"name": "bytes8",
"nodeType": "ElementaryTypeName",
"src": "439:6:18",
"typeDescriptions": {
"typeIdentifier": "t_bytes8",
"typeString": "bytes8"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4386,
"name": "my_bytes32",
"nodeType": "VariableDeclaration",
"scope": 4387,
"src": "468:27:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 4385,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "468:7:18",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"scope": 4565,
"src": "378:120:18"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 4397,
"linearizedBaseContracts": [
4397
],
"name": "StorageMockWithConstants",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 4390,
"name": "my_public_uint256",
"nodeType": "VariableDeclaration",
"scope": 4397,
"src": "538:47:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4388,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "538:7:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": {
"argumentTypes": null,
"hexValue": "323536",
"id": 4389,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "582:3:18",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_256_by_1",
"typeString": "int_const 256"
},
"value": "256"
},
"visibility": "public"
},
{
"constant": true,
"id": 4393,
"name": "my_internal_string",
"nodeType": "VariableDeclaration",
"scope": 4397,
"src": "589:51:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
"id": 4391,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "589:6:18",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "666f6f",
"id": 4392,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "635:5:18",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_41b1a0649752af1b28b3dc29a1556eee781e4a4c3a1f7f53f90fa834de098c4d",
"typeString": "literal_string \"foo\""
},
"value": "foo"
},
"visibility": "internal"
},
{
"constant": true,
"id": 4396,
"name": "my_private_uint8",
"nodeType": "VariableDeclaration",
"scope": 4397,
"src": "644:43:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 4394,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "644:5:18",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": {
"argumentTypes": null,
"hexValue": "38",
"id": 4395,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "686:1:18",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_8_by_1",
"typeString": "int_const 8"
},
"value": "8"
},
"visibility": "private"
}
],
"scope": 4565,
"src": "500:190:18"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 4419,
"linearizedBaseContracts": [
4419
],
"name": "StorageMockWithArrays",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 4400,
"name": "my_public_uint256_dynarray",
"nodeType": "VariableDeclaration",
"scope": 4419,
"src": "727:43:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 4398,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "727:7:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 4399,
"length": null,
"nodeType": "ArrayTypeName",
"src": "727:9:18",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 4403,
"name": "my_internal_string_dynarray",
"nodeType": "VariableDeclaration",
"scope": 4419,
"src": "774:45:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_string_storage_$dyn_storage",
"typeString": "string[]"
},
"typeName": {
"baseType": {
"id": 4401,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "774:6:18",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"id": 4402,
"length": null,
"nodeType": "ArrayTypeName",
"src": "774:8:18",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr",
"typeString": "string[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4406,
"name": "my_private_address_dynarray",
"nodeType": "VariableDeclaration",
"scope": 4419,
"src": "823:45:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage",
"typeString": "address[]"
},
"typeName": {
"baseType": {
"id": 4404,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "823:7:18",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 4405,
"length": null,
"nodeType": "ArrayTypeName",
"src": "823:9:18",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 4410,
"name": "my_public_int8_staticarray",
"nodeType": "VariableDeclaration",
"scope": 4419,
"src": "872:42:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_int8_$10_storage",
"typeString": "int8[10]"
},
"typeName": {
"baseType": {
"id": 4407,
"name": "int8",
"nodeType": "ElementaryTypeName",
"src": "872:4:18",
"typeDescriptions": {
"typeIdentifier": "t_int8",
"typeString": "int8"
}
},
"id": 4409,
"length": {
"argumentTypes": null,
"hexValue": "3130",
"id": 4408,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "877:2:18",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
},
"value": "10"
},
"nodeType": "ArrayTypeName",
"src": "872:8:18",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_int8_$10_storage_ptr",
"typeString": "int8[10]"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 4414,
"name": "my_internal_bool_staticarray",
"nodeType": "VariableDeclaration",
"scope": 4419,
"src": "918:46:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bool_$20_storage",
"typeString": "bool[20]"
},
"typeName": {
"baseType": {
"id": 4411,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "918:4:18",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 4413,
"length": {
"argumentTypes": null,
"hexValue": "3230",
"id": 4412,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "923:2:18",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
},
"value": "20"
},
"nodeType": "ArrayTypeName",
"src": "918:8:18",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bool_$20_storage_ptr",
"typeString": "bool[20]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4418,
"name": "my_private_uint_staticarray",
"nodeType": "VariableDeclaration",
"scope": 4419,
"src": "968:44:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$30_storage",
"typeString": "uint256[30]"
},
"typeName": {
"baseType": {
"id": 4415,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "968:4:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 4417,
"length": {
"argumentTypes": null,
"hexValue": "3330",
"id": 4416,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "973:2:18",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
},
"value": "30"
},
"nodeType": "ArrayTypeName",
"src": "968:8:18",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$30_storage_ptr",
"typeString": "uint256[30]"
}
},
"value": null,
"visibility": "private"
}
],
"scope": 4565,
"src": "692:323:18"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 4435,
"linearizedBaseContracts": [
4435
],
"name": "StorageMockWithMappings",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 4423,
"name": "my_mapping",
"nodeType": "VariableDeclaration",
"scope": 4435,
"src": "1054:44:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_uint256_$_t_string_storage_$",
"typeString": "mapping(uint256 => string)"
},
"typeName": {
"id": 4422,
"keyType": {
"id": 4420,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1062:7:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Mapping",
"src": "1054:26:18",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_uint256_$_t_string_storage_$",
"typeString": "mapping(uint256 => string)"
},
"valueType": {
"id": 4421,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1073:6:18",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 4429,
"name": "my_nested_mapping",
"nodeType": "VariableDeclaration",
"scope": 4435,
"src": "1102:73:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_uint256_$_t_mapping$_t_string_memory_$_t_address_$_$",
"typeString": "mapping(uint256 => mapping(string => address))"
},
"typeName": {
"id": 4428,
"keyType": {
"id": 4424,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1110:7:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Mapping",
"src": "1102:46:18",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_uint256_$_t_mapping$_t_string_memory_$_t_address_$_$",
"typeString": "mapping(uint256 => mapping(string => address))"
},
"valueType": {
"id": 4427,
"keyType": {
"id": 4425,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1129:6:18",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"nodeType": "Mapping",
"src": "1121:26:18",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$",
"typeString": "mapping(string => address)"
},
"valueType": {
"id": 4426,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1139:7:18",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4434,
"name": "my_mapping_with_arrays",
"nodeType": "VariableDeclaration",
"scope": 4435,
"src": "1179:57:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_uint256_$_t_array$_t_bool_$dyn_storage_$",
"typeString": "mapping(uint256 => bool[])"
},
"typeName": {
"id": 4433,
"keyType": {
"id": 4430,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1187:7:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Mapping",
"src": "1179:26:18",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_uint256_$_t_array$_t_bool_$dyn_storage_$",
"typeString": "mapping(uint256 => bool[])"
},
"valueType": {
"baseType": {
"id": 4431,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1198:4:18",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 4432,
"length": null,
"nodeType": "ArrayTypeName",
"src": "1198:6:18",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bool_$dyn_storage_ptr",
"typeString": "bool[]"
}
}
},
"value": null,
"visibility": "private"
}
],
"scope": 4565,
"src": "1017:222:18"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 4469,
"linearizedBaseContracts": [
4469
],
"name": "StorageMockWithFunctions",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 4441,
"name": "my_fun",
"nodeType": "VariableDeclaration",
"scope": 4469,
"src": "1279:30:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256)"
},
"typeName": {
"id": 4440,
"nodeType": "FunctionTypeName",
"parameterTypes": {
"id": 4438,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4437,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 4440,
"src": "1288:4:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4436,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1288:4:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1287:6:18"
},
"returnParameterTypes": {
"id": 4439,
"nodeType": "ParameterList",
"parameters": [],
"src": "1303:0:18"
},
"src": "1279:30:18",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256)"
},
"visibility": "internal"
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4450,
"name": "my_fun_dynarray",
"nodeType": "VariableDeclaration",
"scope": 4469,
"src": "1313:65:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_function_internal_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$_$dyn_storage",
"typeString": "function (string,string)[]"
},
"typeName": {
"baseType": {
"id": 4448,
"nodeType": "FunctionTypeName",
"parameterTypes": {
"id": 4446,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4443,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 4448,
"src": "1322:13:18",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 4442,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1322:6:18",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4445,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 4448,
"src": "1337:13:18",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 4444,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1337:6:18",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1321:30:18"
},
"returnParameterTypes": {
"id": 4447,
"nodeType": "ParameterList",
"parameters": [],
"src": "1351:0:18"
},
"src": "1313:39:18",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (string,string)"
},
"visibility": "internal"
},
"id": 4449,
"length": null,
"nodeType": "ArrayTypeName",
"src": "1313:40:18",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_function_internal_nonpayable$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$__$_$dyn_storage_ptr",
"typeString": "function (string,string)[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4460,
"name": "my_fun_staticarray",
"nodeType": "VariableDeclaration",
"scope": 4469,
"src": "1382:64:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_function_internal_nonpayable$_t_uint256_$returns$_t_address_$_$10_storage",
"typeString": "function (uint256) returns (address)[10]"
},
"typeName": {
"baseType": {
"id": 4457,
"nodeType": "FunctionTypeName",
"parameterTypes": {
"id": 4453,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4452,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 4457,
"src": "1391:4:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4451,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1391:4:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1390:6:18"
},
"returnParameterTypes": {
"id": 4456,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4455,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 4457,
"src": "1406:7:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4454,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1406:7:18",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1405:9:18"
},
"src": "1382:33:18",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$_t_address_$",
"typeString": "function (uint256) returns (address)"
},
"visibility": "internal"
},
"id": 4459,
"length": {
"argumentTypes": null,
"hexValue": "3130",
"id": 4458,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1415:2:18",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
},
"value": "10"
},
"nodeType": "ArrayTypeName",
"src": "1382:36:18",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_function_internal_nonpayable$_t_uint256_$returns$_t_address_$_$10_storage_ptr",
"typeString": "function (uint256) returns (address)[10]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4468,
"name": "my_fun_mapping",
"nodeType": "VariableDeclaration",
"scope": 4469,
"src": "1450:58:18",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_uint256_$_t_function_internal_nonpayable$_t_bool_$returns$__$_$",
"typeString": "mapping(uint256 => function (bool))"
},
"typeName": {
"id": 4467,
"keyType": {
"id": 4461,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1458:7:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Mapping",
"src": "1450:34:18",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_uint256_$_t_function_internal_nonpayable$_t_bool_$returns$__$_$",
"typeString": "mapping(uint256 => function (bool))"
},
"valueType": {
"id": 4466,
"nodeType": "FunctionTypeName",
"parameterTypes": {
"id": 4464,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4463,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 4466,
"src": "1478:4:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 4462,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1478:4:18",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1477:6:18"
},
"returnParameterTypes": {
"id": 4465,
"nodeType": "ParameterList",
"parameters": [],
"src": "1483:0:18"
},
"src": "1469:15:18",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bool_$returns$__$",
"typeString": "function (bool)"
},
"visibility": "internal"
}
},
"value": null,
"visibility": "internal"
}
],
"scope": 4565,
"src": "1241:270:18"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 4494,
"linearizedBaseContracts": [
4494
],
"name": "StorageMockWithContracts",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 4471,
"name": "my_contract",
"nodeType": "VariableDeclaration",
"scope": 4494,
"src": "1551:36:18",
"stateVariable": true,
"storageLocation": "default",