Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Contract Storage Layout:
- {
- "storage": [
- {
- "astId": 141,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "myStorage",
- "offset": 0,
- "slot": "0",
- "type": "t_struct(AppStorage)138_storage"
- }
- ],
- "types": {
- "t_address": {
- "encoding": "inplace",
- "label": "address",
- "numberOfBytes": "20"
- },
- "t_array(t_bytes32)dyn_storage": {
- "base": "t_bytes32",
- "encoding": "dynamic_array",
- "label": "bytes32[]",
- "numberOfBytes": "32"
- },
- "t_array(t_uint256)dyn_storage": {
- "base": "t_uint256",
- "encoding": "dynamic_array",
- "label": "uint256[]",
- "numberOfBytes": "32"
- },
- "t_bool": {
- "encoding": "inplace",
- "label": "bool",
- "numberOfBytes": "1"
- },
- "t_bytes32": {
- "encoding": "inplace",
- "label": "bytes32",
- "numberOfBytes": "32"
- },
- "t_contract(IERC20Extended)895": {
- "encoding": "inplace",
- "label": "contract IERC20Extended",
- "numberOfBytes": "20"
- },
- "t_contract(IERC721Extended)1010": {
- "encoding": "inplace",
- "label": "contract IERC721Extended",
- "numberOfBytes": "20"
- },
- "t_mapping(t_bytes32,t_bytes32)": {
- "encoding": "mapping",
- "key": "t_bytes32",
- "label": "mapping(bytes32 => bytes32)",
- "numberOfBytes": "32",
- "value": "t_bytes32"
- },
- "t_mapping(t_bytes32,t_uint256)": {
- "encoding": "mapping",
- "key": "t_bytes32",
- "label": "mapping(bytes32 => uint256)",
- "numberOfBytes": "32",
- "value": "t_uint256"
- },
- "t_mapping(t_uint256,t_array(t_uint256)dyn_storage)": {
- "encoding": "mapping",
- "key": "t_uint256",
- "label": "mapping(uint256 => uint256[])",
- "numberOfBytes": "32",
- "value": "t_array(t_uint256)dyn_storage"
- },
- "t_mapping(t_uint256,t_bool)": {
- "encoding": "mapping",
- "key": "t_uint256",
- "label": "mapping(uint256 => bool)",
- "numberOfBytes": "32",
- "value": "t_bool"
- },
- "t_mapping(t_uint256,t_mapping(t_uint256,t_uint256))": {
- "encoding": "mapping",
- "key": "t_uint256",
- "label": "mapping(uint256 => mapping(uint256 => uint256))",
- "numberOfBytes": "32",
- "value": "t_mapping(t_uint256,t_uint256)"
- },
- "t_mapping(t_uint256,t_string_storage)": {
- "encoding": "mapping",
- "key": "t_uint256",
- "label": "mapping(uint256 => string)",
- "numberOfBytes": "32",
- "value": "t_string_storage"
- },
- "t_mapping(t_uint256,t_struct(UintToUintMap)1272_storage)": {
- "encoding": "mapping",
- "key": "t_uint256",
- "label": "mapping(uint256 => struct EnumerableMap.UintToUintMap)",
- "numberOfBytes": "32",
- "value": "t_struct(UintToUintMap)1272_storage"
- },
- "t_mapping(t_uint256,t_uint256)": {
- "encoding": "mapping",
- "key": "t_uint256",
- "label": "mapping(uint256 => uint256)",
- "numberOfBytes": "32",
- "value": "t_uint256"
- },
- "t_string_storage": {
- "encoding": "bytes",
- "label": "string",
- "numberOfBytes": "32"
- },
- "t_struct(AppStorage)138_storage": {
- "encoding": "inplace",
- "label": "struct AppStorage",
- "members": [
- {
- "astId": 11,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "diamondInitialized",
- "offset": 0,
- "slot": "0",
- "type": "t_bool"
- },
- {
- "astId": 14,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "token",
- "offset": 1,
- "slot": "0",
- "type": "t_contract(IERC20Extended)895"
- },
- {
- "astId": 17,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "nft",
- "offset": 0,
- "slot": "1",
- "type": "t_contract(IERC721Extended)1010"
- },
- {
- "astId": 19,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "DIAMOND_ADDRESS",
- "offset": 0,
- "slot": "2",
- "type": "t_address"
- },
- {
- "astId": 21,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "duration",
- "offset": 0,
- "slot": "3",
- "type": "t_uint256"
- },
- {
- "astId": 23,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "minPrice",
- "offset": 0,
- "slot": "4",
- "type": "t_uint256"
- },
- {
- "astId": 25,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "startingPrice",
- "offset": 0,
- "slot": "5",
- "type": "t_uint256"
- },
- {
- "astId": 27,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "startAt",
- "offset": 0,
- "slot": "6",
- "type": "t_uint256"
- },
- {
- "astId": 29,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "discountRate",
- "offset": 0,
- "slot": "7",
- "type": "t_uint256"
- },
- {
- "astId": 34,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "petDna",
- "offset": 0,
- "slot": "8",
- "type": "t_mapping(t_uint256,t_array(t_uint256)dyn_storage)"
- },
- {
- "astId": 38,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "itemPrice",
- "offset": 0,
- "slot": "9",
- "type": "t_mapping(t_uint256,t_uint256)"
- },
- {
- "astId": 42,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "itemPoints",
- "offset": 0,
- "slot": "10",
- "type": "t_mapping(t_uint256,t_uint256)"
- },
- {
- "astId": 46,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "itemName",
- "offset": 0,
- "slot": "11",
- "type": "t_mapping(t_uint256,t_string_storage)"
- },
- {
- "astId": 50,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "itemTimeExtension",
- "offset": 0,
- "slot": "12",
- "type": "t_mapping(t_uint256,t_uint256)"
- },
- {
- "astId": 54,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "itemDelta",
- "offset": 0,
- "slot": "13",
- "type": "t_mapping(t_uint256,t_uint256)"
- },
- {
- "astId": 58,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "itemEquipExpires",
- "offset": 0,
- "slot": "14",
- "type": "t_mapping(t_uint256,t_uint256)"
- },
- {
- "astId": 62,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "itemIsSellable",
- "offset": 0,
- "slot": "15",
- "type": "t_mapping(t_uint256,t_bool)"
- },
- {
- "astId": 68,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "petItemExpires",
- "offset": 0,
- "slot": "16",
- "type": "t_mapping(t_uint256,t_mapping(t_uint256,t_uint256))"
- },
- {
- "astId": 72,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "itemSupply",
- "offset": 0,
- "slot": "17",
- "type": "t_mapping(t_uint256,t_uint256)"
- },
- {
- "astId": 77,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "itemsOwned",
- "offset": 0,
- "slot": "18",
- "type": "t_mapping(t_uint256,t_struct(UintToUintMap)1272_storage)"
- },
- {
- "astId": 79,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "PRECISION",
- "offset": 0,
- "slot": "19",
- "type": "t_uint256"
- },
- {
- "astId": 81,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "_tokenIds",
- "offset": 0,
- "slot": "20",
- "type": "t_uint256"
- },
- {
- "astId": 83,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "_itemIds",
- "offset": 0,
- "slot": "21",
- "type": "t_uint256"
- },
- {
- "astId": 85,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "la",
- "offset": 0,
- "slot": "22",
- "type": "t_uint256"
- },
- {
- "astId": 87,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "lb",
- "offset": 0,
- "slot": "23",
- "type": "t_uint256"
- },
- {
- "astId": 91,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "petName",
- "offset": 0,
- "slot": "24",
- "type": "t_mapping(t_uint256,t_string_storage)"
- },
- {
- "astId": 95,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "timeUntilStarving",
- "offset": 0,
- "slot": "25",
- "type": "t_mapping(t_uint256,t_uint256)"
- },
- {
- "astId": 99,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "petScore",
- "offset": 0,
- "slot": "26",
- "type": "t_mapping(t_uint256,t_uint256)"
- },
- {
- "astId": 103,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "timePetBorn",
- "offset": 0,
- "slot": "27",
- "type": "t_mapping(t_uint256,t_uint256)"
- },
- {
- "astId": 107,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "lastAttackUsed",
- "offset": 0,
- "slot": "28",
- "type": "t_mapping(t_uint256,t_uint256)"
- },
- {
- "astId": 111,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "lastAttacked",
- "offset": 0,
- "slot": "29",
- "type": "t_mapping(t_uint256,t_uint256)"
- },
- {
- "astId": 115,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "stars",
- "offset": 0,
- "slot": "30",
- "type": "t_mapping(t_uint256,t_uint256)"
- },
- {
- "astId": 119,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "ethOwed",
- "offset": 0,
- "slot": "31",
- "type": "t_mapping(t_uint256,t_uint256)"
- },
- {
- "astId": 123,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "petRewardDebt",
- "offset": 0,
- "slot": "32",
- "type": "t_mapping(t_uint256,t_uint256)"
- },
- {
- "astId": 125,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "ethAccPerShare",
- "offset": 0,
- "slot": "33",
- "type": "t_uint256"
- },
- {
- "astId": 127,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "totalScores",
- "offset": 0,
- "slot": "34",
- "type": "t_uint256"
- },
- {
- "astId": 131,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "petMigrated",
- "offset": 0,
- "slot": "35",
- "type": "t_mapping(t_uint256,t_bool)"
- },
- {
- "astId": 133,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "hasTheDiamond",
- "offset": 0,
- "slot": "36",
- "type": "t_uint256"
- },
- {
- "astId": 137,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "itemBought",
- "offset": 0,
- "slot": "37",
- "type": "t_mapping(t_uint256,t_uint256)"
- }
- ],
- "numberOfBytes": "1216"
- },
- "t_struct(Bytes32Set)2518_storage": {
- "encoding": "inplace",
- "label": "struct EnumerableSet.Bytes32Set",
- "members": [
- {
- "astId": 2517,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "_inner",
- "offset": 0,
- "slot": "0",
- "type": "t_struct(Set)2324_storage"
- }
- ],
- "numberOfBytes": "64"
- },
- "t_struct(Bytes32ToBytes32Map)1026_storage": {
- "encoding": "inplace",
- "label": "struct EnumerableMap.Bytes32ToBytes32Map",
- "members": [
- {
- "astId": 1021,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "_keys",
- "offset": 0,
- "slot": "0",
- "type": "t_struct(Bytes32Set)2518_storage"
- },
- {
- "astId": 1025,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "_values",
- "offset": 0,
- "slot": "2",
- "type": "t_mapping(t_bytes32,t_bytes32)"
- }
- ],
- "numberOfBytes": "96"
- },
- "t_struct(Set)2324_storage": {
- "encoding": "inplace",
- "label": "struct EnumerableSet.Set",
- "members": [
- {
- "astId": 2319,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "_values",
- "offset": 0,
- "slot": "0",
- "type": "t_array(t_bytes32)dyn_storage"
- },
- {
- "astId": 2323,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "_indexes",
- "offset": 0,
- "slot": "1",
- "type": "t_mapping(t_bytes32,t_uint256)"
- }
- ],
- "numberOfBytes": "64"
- },
- "t_struct(UintToUintMap)1272_storage": {
- "encoding": "inplace",
- "label": "struct EnumerableMap.UintToUintMap",
- "members": [
- {
- "astId": 1271,
- "contract": "LibAppStorage.sol:MyContract",
- "label": "_inner",
- "offset": 0,
- "slot": "0",
- "type": "t_struct(Bytes32ToBytes32Map)1026_storage"
- }
- ],
- "numberOfBytes": "96"
- },
- "t_uint256": {
- "encoding": "inplace",
- "label": "uint256",
- "numberOfBytes": "32"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment