@alice-network/zos-lib
Version:
JavaScript library for the ZeppelinOS smart contract platform
1,335 lines • 186 kB
JSON
{
"contractName": "StorageMockWithMappings",
"abi": [
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"name": "my_mapping",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b506101c8806100206000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631b8268d514610046575b600080fd5b34801561005257600080fd5b50610071600480360381019080803590602001909291905050506100ec565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100b1578082015181840152602081019050610096565b50505050905090810190601f1680156100de5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60006020528060005260406000206000915090508054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156101945780601f1061016957610100808354040283529160200191610194565b820191906000526020600020905b81548152906001019060200180831161017757829003601f168201915b5050505050815600a165627a7a72305820d7e92b60bd4a0b34e2898e568c04986c8e04832a5b49a69f1d23f3584b6638840029",
"deployedBytecode": "0x608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631b8268d514610046575b600080fd5b34801561005257600080fd5b50610071600480360381019080803590602001909291905050506100ec565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100b1578082015181840152602081019050610096565b50505050905090810190601f1680156100de5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60006020528060005260406000206000915090508054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156101945780601f1061016957610100808354040283529160200191610194565b820191906000526020600020905b81548152906001019060200180831161017757829003601f168201915b5050505050815600a165627a7a72305820d7e92b60bd4a0b34e2898e568c04986c8e04832a5b49a69f1d23f3584b6638840029",
"sourceMap": "1018:222:16:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1018:222:16;;;;;;;",
"deployedSourceMap": "1018:222:16:-;;;;;;;;;;;;;;;;;;;;;;;;1055:44;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1055:44:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1055:44:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o",
"source": "pragma solidity ^0.4.24;\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, string)[] 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": "/Users/yoonjae/WebstormProjects/zos/packages/lib/contracts/mocks/StorageMocks.sol",
"ast": {
"absolutePath": "/Users/yoonjae/WebstormProjects/zos/packages/lib/contracts/mocks/StorageMocks.sol",
"exportedSymbols": {
"SimpleStorageMock": [
2115
],
"StorageMockMixed": [
2299
],
"StorageMockWithArrays": [
2154
],
"StorageMockWithBytes": [
2122
],
"StorageMockWithComplexStructs": [
2282
],
"StorageMockWithConstants": [
2132
],
"StorageMockWithContracts": [
2229
],
"StorageMockWithEnums": [
2267
],
"StorageMockWithFunctions": [
2204
],
"StorageMockWithMappings": [
2170
],
"StorageMockWithRecursiveStructs": [
2292
],
"StorageMockWithStructs": [
2250
]
},
"id": 2300,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 2099,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:16"
},
{
"absolutePath": "/Users/yoonjae/WebstormProjects/zos/packages/lib/contracts/mocks/StorageMocks3.sol",
"file": "./StorageMocks3.sol",
"id": 2100,
"nodeType": "ImportDirective",
"scope": 2300,
"sourceUnit": 2374,
"src": "72:29:16",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 2115,
"linearizedBaseContracts": [
2115
],
"name": "SimpleStorageMock",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 2102,
"name": "my_public_uint256",
"nodeType": "VariableDeclaration",
"scope": 2115,
"src": "134:32:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2101,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "134:7:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 2104,
"name": "my_internal_string",
"nodeType": "VariableDeclaration",
"scope": 2115,
"src": "170:34:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage",
"typeString": "string"
},
"typeName": {
"id": 2103,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "170:6:16",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2106,
"name": "my_private_uint8",
"nodeType": "VariableDeclaration",
"scope": 2115,
"src": "208:30:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 2105,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "208:5:16",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 2108,
"name": "my_private_uint16",
"nodeType": "VariableDeclaration",
"scope": 2115,
"src": "242:30:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int8",
"typeString": "int8"
},
"typeName": {
"id": 2107,
"name": "int8",
"nodeType": "ElementaryTypeName",
"src": "242:4:16",
"typeDescriptions": {
"typeIdentifier": "t_int8",
"typeString": "int8"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 2110,
"name": "my_private_bool",
"nodeType": "VariableDeclaration",
"scope": 2115,
"src": "276:28:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 2109,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "276:4:16",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 2112,
"name": "my_private_uint",
"nodeType": "VariableDeclaration",
"scope": 2115,
"src": "308:28:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2111,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "308:4:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 2114,
"name": "my_private_address",
"nodeType": "VariableDeclaration",
"scope": 2115,
"src": "340:34:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2113,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "340:7:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "private"
}
],
"scope": 2300,
"src": "103:274:16"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 2122,
"linearizedBaseContracts": [
2122
],
"name": "StorageMockWithBytes",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 2117,
"name": "my_bytes",
"nodeType": "VariableDeclaration",
"scope": 2122,
"src": "413:23:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage",
"typeString": "bytes"
},
"typeName": {
"id": 2116,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "413:5:16",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2119,
"name": "my_bytes8",
"nodeType": "VariableDeclaration",
"scope": 2122,
"src": "440:25:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes8",
"typeString": "bytes8"
},
"typeName": {
"id": 2118,
"name": "bytes8",
"nodeType": "ElementaryTypeName",
"src": "440:6:16",
"typeDescriptions": {
"typeIdentifier": "t_bytes8",
"typeString": "bytes8"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2121,
"name": "my_bytes32",
"nodeType": "VariableDeclaration",
"scope": 2122,
"src": "469:27:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 2120,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "469:7:16",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"scope": 2300,
"src": "379:120:16"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 2132,
"linearizedBaseContracts": [
2132
],
"name": "StorageMockWithConstants",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 2125,
"name": "my_public_uint256",
"nodeType": "VariableDeclaration",
"scope": 2132,
"src": "539:47:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2123,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "539:7:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": {
"argumentTypes": null,
"hexValue": "323536",
"id": 2124,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "583:3:16",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_256_by_1",
"typeString": "int_const 256"
},
"value": "256"
},
"visibility": "public"
},
{
"constant": true,
"id": 2128,
"name": "my_internal_string",
"nodeType": "VariableDeclaration",
"scope": 2132,
"src": "590:51:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string"
},
"typeName": {
"id": 2126,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "590:6:16",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": {
"argumentTypes": null,
"hexValue": "666f6f",
"id": 2127,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "636:5:16",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_41b1a0649752af1b28b3dc29a1556eee781e4a4c3a1f7f53f90fa834de098c4d",
"typeString": "literal_string \"foo\""
},
"value": "foo"
},
"visibility": "internal"
},
{
"constant": true,
"id": 2131,
"name": "my_private_uint8",
"nodeType": "VariableDeclaration",
"scope": 2132,
"src": "645:43:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 2129,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "645:5:16",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": {
"argumentTypes": null,
"hexValue": "38",
"id": 2130,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "687:1:16",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_8_by_1",
"typeString": "int_const 8"
},
"value": "8"
},
"visibility": "private"
}
],
"scope": 2300,
"src": "501:190:16"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 2154,
"linearizedBaseContracts": [
2154
],
"name": "StorageMockWithArrays",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 2135,
"name": "my_public_uint256_dynarray",
"nodeType": "VariableDeclaration",
"scope": 2154,
"src": "728:43:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 2133,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "728:7:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 2134,
"length": null,
"nodeType": "ArrayTypeName",
"src": "728:9:16",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 2138,
"name": "my_internal_string_dynarray",
"nodeType": "VariableDeclaration",
"scope": 2154,
"src": "775:45:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_string_storage_$dyn_storage",
"typeString": "string[]"
},
"typeName": {
"baseType": {
"id": 2136,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "775:6:16",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"id": 2137,
"length": null,
"nodeType": "ArrayTypeName",
"src": "775:8:16",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr",
"typeString": "string[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2141,
"name": "my_private_address_dynarray",
"nodeType": "VariableDeclaration",
"scope": 2154,
"src": "824:45:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage",
"typeString": "address[]"
},
"typeName": {
"baseType": {
"id": 2139,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "824:7:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 2140,
"length": null,
"nodeType": "ArrayTypeName",
"src": "824:9:16",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 2145,
"name": "my_public_int8_staticarray",
"nodeType": "VariableDeclaration",
"scope": 2154,
"src": "873:42:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_int8_$10_storage",
"typeString": "int8[10]"
},
"typeName": {
"baseType": {
"id": 2142,
"name": "int8",
"nodeType": "ElementaryTypeName",
"src": "873:4:16",
"typeDescriptions": {
"typeIdentifier": "t_int8",
"typeString": "int8"
}
},
"id": 2144,
"length": {
"argumentTypes": null,
"hexValue": "3130",
"id": 2143,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "878:2:16",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
},
"value": "10"
},
"nodeType": "ArrayTypeName",
"src": "873:8:16",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_int8_$10_storage_ptr",
"typeString": "int8[10]"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 2149,
"name": "my_internal_bool_staticarray",
"nodeType": "VariableDeclaration",
"scope": 2154,
"src": "919:46:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bool_$20_storage",
"typeString": "bool[20]"
},
"typeName": {
"baseType": {
"id": 2146,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "919:4:16",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 2148,
"length": {
"argumentTypes": null,
"hexValue": "3230",
"id": 2147,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "924:2:16",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
},
"value": "20"
},
"nodeType": "ArrayTypeName",
"src": "919:8:16",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bool_$20_storage_ptr",
"typeString": "bool[20]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2153,
"name": "my_private_uint_staticarray",
"nodeType": "VariableDeclaration",
"scope": 2154,
"src": "969:44:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$30_storage",
"typeString": "uint256[30]"
},
"typeName": {
"baseType": {
"id": 2150,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "969:4:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 2152,
"length": {
"argumentTypes": null,
"hexValue": "3330",
"id": 2151,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "974:2:16",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
},
"value": "30"
},
"nodeType": "ArrayTypeName",
"src": "969:8:16",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$30_storage_ptr",
"typeString": "uint256[30]"
}
},
"value": null,
"visibility": "private"
}
],
"scope": 2300,
"src": "693:323:16"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 2170,
"linearizedBaseContracts": [
2170
],
"name": "StorageMockWithMappings",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 2158,
"name": "my_mapping",
"nodeType": "VariableDeclaration",
"scope": 2170,
"src": "1055:44:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_uint256_$_t_string_storage_$",
"typeString": "mapping(uint256 => string)"
},
"typeName": {
"id": 2157,
"keyType": {
"id": 2155,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1063:7:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Mapping",
"src": "1055:26:16",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_uint256_$_t_string_storage_$",
"typeString": "mapping(uint256 => string)"
},
"valueType": {
"id": 2156,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1074:6:16",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 2164,
"name": "my_nested_mapping",
"nodeType": "VariableDeclaration",
"scope": 2170,
"src": "1103:73:16",
"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": 2163,
"keyType": {
"id": 2159,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1111:7:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Mapping",
"src": "1103:46:16",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_uint256_$_t_mapping$_t_string_memory_$_t_address_$_$",
"typeString": "mapping(uint256 => mapping(string => address))"
},
"valueType": {
"id": 2162,
"keyType": {
"id": 2160,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1130:6:16",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"nodeType": "Mapping",
"src": "1122:26:16",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$",
"typeString": "mapping(string => address)"
},
"valueType": {
"id": 2161,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1140:7:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2169,
"name": "my_mapping_with_arrays",
"nodeType": "VariableDeclaration",
"scope": 2170,
"src": "1180:57:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_uint256_$_t_array$_t_bool_$dyn_storage_$",
"typeString": "mapping(uint256 => bool[])"
},
"typeName": {
"id": 2168,
"keyType": {
"id": 2165,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1188:7:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Mapping",
"src": "1180:26:16",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_uint256_$_t_array$_t_bool_$dyn_storage_$",
"typeString": "mapping(uint256 => bool[])"
},
"valueType": {
"baseType": {
"id": 2166,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1199:4:16",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 2167,
"length": null,
"nodeType": "ArrayTypeName",
"src": "1199:6:16",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bool_$dyn_storage_ptr",
"typeString": "bool[]"
}
}
},
"value": null,
"visibility": "private"
}
],
"scope": 2300,
"src": "1018:222:16"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 2204,
"linearizedBaseContracts": [
2204
],
"name": "StorageMockWithFunctions",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 2176,
"name": "my_fun",
"nodeType": "VariableDeclaration",
"scope": 2204,
"src": "1280:30:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256)"
},
"typeName": {
"id": 2175,
"isDeclaredConst": false,
"nodeType": "FunctionTypeName",
"parameterTypes": {
"id": 2173,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2172,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2204,
"src": "1289:4:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2171,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1289:4:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1288:6:16"
},
"payable": false,
"returnParameterTypes": {
"id": 2174,
"nodeType": "ParameterList",
"parameters": [],
"src": "1304:0:16"
},
"src": "1280:30:16",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256)"
},
"visibility": "internal"
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2185,
"name": "my_fun_dynarray",
"nodeType": "VariableDeclaration",
"scope": 2204,
"src": "1314:51:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_function_internal_nonpayable$_t_string_storage_ptr_$_t_string_storage_ptr_$returns$__$_$dyn_storage",
"typeString": "function (string,string)[]"
},
"typeName": {
"baseType": {
"id": 2183,
"isDeclaredConst": false,
"nodeType": "FunctionTypeName",
"parameterTypes": {
"id": 2181,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2178,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2204,
"src": "1323:6:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
},
"typeName": {
"id": 2177,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1323:6:16",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2180,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2204,
"src": "1331:6:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
},
"typeName": {
"id": 2179,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1331:6:16",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1322:16:16"
},
"payable": false,
"returnParameterTypes": {
"id": 2182,
"nodeType": "ParameterList",
"parameters": [],
"src": "1338:0:16"
},
"src": "1314:25:16",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_string_storage_ptr_$_t_string_storage_ptr_$returns$__$",
"typeString": "function (string,string)"
},
"visibility": "internal"
},
"id": 2184,
"length": null,
"nodeType": "ArrayTypeName",
"src": "1314:26:16",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_function_internal_nonpayable$_t_string_storage_ptr_$_t_string_storage_ptr_$returns$__$_$dyn_storage_ptr",
"typeString": "function (string,string)[]"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2195,
"name": "my_fun_staticarray",
"nodeType": "VariableDeclaration",
"scope": 2204,
"src": "1369:64:16",
"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": 2192,
"isDeclaredConst": false,
"nodeType": "FunctionTypeName",
"parameterTypes": {
"id": 2188,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2187,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2204,
"src": "1378:4:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2186,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1378:4:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1377:6:16"
},
"payable": false,
"returnParameterTypes": {
"id": 2191,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2190,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2204,
"src": "1393:7:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2189,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1393:7:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1392:9:16"
},
"src": "1369:33:16",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$_t_address_$",
"typeString": "function (uint256) returns (address)"
},
"visibility": "internal"
},
"id": 2194,
"length": {
"argumentTypes": null,
"hexValue": "3130",
"id": 2193,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1402:2:16",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
},
"value": "10"
},
"nodeType": "ArrayTypeName",
"src": "1369:36:16",
"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": 2203,
"name": "my_fun_mapping",
"nodeType": "VariableDeclaration",
"scope": 2204,
"src": "1437:58:16",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_uint256_$_t_function_internal_nonpayable$_t_bool_$returns$__$_$",
"typeString": "mapping(uint256 => function (bool))"
},
"typeName": {
"id": 2202,
"keyType": {
"id": 2196,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1445:7:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Mapping",
"src": "1437:34:16",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_uint256_$_t_function_internal_nonpayable$_t_bool_$re