Skip to content

Commit

Permalink
Merge pull request #8 from NTTLuke/optimization
Browse files Browse the repository at this point in the history
Optimization
  • Loading branch information
NTTLuke authored Mar 23, 2023
2 parents fee622d + 19634c2 commit 5acebf5
Show file tree
Hide file tree
Showing 20 changed files with 5,251 additions and 24,548 deletions.
180 changes: 180 additions & 0 deletions .openzeppelin/mainnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
{
"manifestVersion": "3.2",
"admin": {
"address": "0x52D386E89E62Bf9F67126b94D730583f46D99466",
"txHash": "0x5b515f7c8babbf55ef4fccc032849c94dc3cc5e78f2b6ed0548170724bd3355e"
},
"proxies": [
{
"address": "0x6ADa73e6192a40922E926595539D768C983B836A",
"txHash": "0x6142870ca440f8e5babac80ac0d2699c6b92d131681e93882abf04eb2bfa612d",
"kind": "transparent"
}
],
"impls": {
"588042391d19db2c3b7e01bdcb9de401f473babc09b9bad6cd300d95ea5eef07": {
"address": "0x49621bE3d006f1AE3C2B27482a9216B11bbDCb66",
"txHash": "0x5af9289df747f7ab923ef15f0f17018c7a71cfdacbd64caa7f46624e0e49f827",
"layout": {
"solcVersion": "0.8.17",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin\\contracts-upgradeable\\proxy\\utils\\Initializable.sol:62",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin\\contracts-upgradeable\\proxy\\utils\\Initializable.sol:67"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin\\contracts-upgradeable\\utils\\ContextUpgradeable.sol:36"
},
{
"label": "_owner",
"offset": 0,
"slot": "51",
"type": "t_address",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin\\contracts-upgradeable\\access\\OwnableUpgradeable.sol:22"
},
{
"label": "__gap",
"offset": 0,
"slot": "52",
"type": "t_array(t_uint256)49_storage",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin\\contracts-upgradeable\\access\\OwnableUpgradeable.sol:94"
},
{
"label": "_paused",
"offset": 0,
"slot": "101",
"type": "t_bool",
"contract": "PausableUpgradeable",
"src": "@openzeppelin\\contracts-upgradeable\\security\\PausableUpgradeable.sol:29"
},
{
"label": "__gap",
"offset": 0,
"slot": "102",
"type": "t_array(t_uint256)49_storage",
"contract": "PausableUpgradeable",
"src": "@openzeppelin\\contracts-upgradeable\\security\\PausableUpgradeable.sol:116"
},
{
"label": "cfContractAdr",
"offset": 0,
"slot": "151",
"type": "t_address",
"contract": "CrazyMap",
"src": "contracts\\CrazyMap.sol:14"
},
{
"label": "cfLocationsMap",
"offset": 0,
"slot": "152",
"type": "t_mapping(t_address,t_struct(CFLocation)781_storage)",
"contract": "CrazyMap",
"src": "contracts\\CrazyMap.sol:32"
},
{
"label": "inserted",
"offset": 0,
"slot": "153",
"type": "t_mapping(t_address,t_bool)",
"contract": "CrazyMap",
"src": "contracts\\CrazyMap.sol:34"
},
{
"label": "cfAddresses",
"offset": 0,
"slot": "154",
"type": "t_array(t_address)dyn_storage",
"contract": "CrazyMap",
"src": "contracts\\CrazyMap.sol:37"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_address)dyn_storage": {
"label": "address[]",
"numberOfBytes": "32"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]",
"numberOfBytes": "1568"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]",
"numberOfBytes": "1600"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_mapping(t_address,t_bool)": {
"label": "mapping(address => bool)",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_struct(CFLocation)781_storage)": {
"label": "mapping(address => struct CrazyMap.CFLocation)",
"numberOfBytes": "32"
},
"t_string_storage": {
"label": "string",
"numberOfBytes": "32"
},
"t_struct(CFLocation)781_storage": {
"label": "struct CrazyMap.CFLocation",
"members": [
{
"label": "discordName",
"type": "t_string_storage",
"offset": 0,
"slot": "0"
},
{
"label": "geohash",
"type": "t_string_storage",
"offset": 0,
"slot": "1"
},
{
"label": "cfMemberAdr",
"type": "t_address",
"offset": 0,
"slot": "2"
}
],
"numberOfBytes": "96"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
}
}
}
}
}
180 changes: 180 additions & 0 deletions .openzeppelin/unknown-11155111.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
{
"manifestVersion": "3.2",
"admin": {
"address": "0x6ADa73e6192a40922E926595539D768C983B836A",
"txHash": "0x53449694318a8ac137aa4aeccfb17320346a64ac7e9eff5f9c05ee40ec31af35"
},
"proxies": [
{
"address": "0xe85D9D9c4A470F43b41379Df30Dca1Df4e19fB6e",
"txHash": "0x99e5974d1e379742d53c95b518e6fe7ab8c0026ce679043aef337deeafaf09ee",
"kind": "transparent"
}
],
"impls": {
"588042391d19db2c3b7e01bdcb9de401f473babc09b9bad6cd300d95ea5eef07": {
"address": "0x52D386E89E62Bf9F67126b94D730583f46D99466",
"txHash": "0x0ca5d09401bbf01bb69b0aa801d9b461c9406cf4ffa6636bf7271fbcbfccb295",
"layout": {
"solcVersion": "0.8.17",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin\\contracts-upgradeable\\proxy\\utils\\Initializable.sol:62",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin\\contracts-upgradeable\\proxy\\utils\\Initializable.sol:67"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin\\contracts-upgradeable\\utils\\ContextUpgradeable.sol:36"
},
{
"label": "_owner",
"offset": 0,
"slot": "51",
"type": "t_address",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin\\contracts-upgradeable\\access\\OwnableUpgradeable.sol:22"
},
{
"label": "__gap",
"offset": 0,
"slot": "52",
"type": "t_array(t_uint256)49_storage",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin\\contracts-upgradeable\\access\\OwnableUpgradeable.sol:94"
},
{
"label": "_paused",
"offset": 0,
"slot": "101",
"type": "t_bool",
"contract": "PausableUpgradeable",
"src": "@openzeppelin\\contracts-upgradeable\\security\\PausableUpgradeable.sol:29"
},
{
"label": "__gap",
"offset": 0,
"slot": "102",
"type": "t_array(t_uint256)49_storage",
"contract": "PausableUpgradeable",
"src": "@openzeppelin\\contracts-upgradeable\\security\\PausableUpgradeable.sol:116"
},
{
"label": "cfContractAdr",
"offset": 0,
"slot": "151",
"type": "t_address",
"contract": "CrazyMap",
"src": "contracts\\CrazyMap.sol:14"
},
{
"label": "cfLocationsMap",
"offset": 0,
"slot": "152",
"type": "t_mapping(t_address,t_struct(CFLocation)3700_storage)",
"contract": "CrazyMap",
"src": "contracts\\CrazyMap.sol:32"
},
{
"label": "inserted",
"offset": 0,
"slot": "153",
"type": "t_mapping(t_address,t_bool)",
"contract": "CrazyMap",
"src": "contracts\\CrazyMap.sol:34"
},
{
"label": "cfAddresses",
"offset": 0,
"slot": "154",
"type": "t_array(t_address)dyn_storage",
"contract": "CrazyMap",
"src": "contracts\\CrazyMap.sol:37"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_address)dyn_storage": {
"label": "address[]",
"numberOfBytes": "32"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]",
"numberOfBytes": "1568"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]",
"numberOfBytes": "1600"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_mapping(t_address,t_bool)": {
"label": "mapping(address => bool)",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_struct(CFLocation)3700_storage)": {
"label": "mapping(address => struct CrazyMap.CFLocation)",
"numberOfBytes": "32"
},
"t_string_storage": {
"label": "string",
"numberOfBytes": "32"
},
"t_struct(CFLocation)3700_storage": {
"label": "struct CrazyMap.CFLocation",
"members": [
{
"label": "discordName",
"type": "t_string_storage",
"offset": 0,
"slot": "0"
},
{
"label": "geohash",
"type": "t_string_storage",
"offset": 0,
"slot": "1"
},
{
"label": "cfMemberAdr",
"type": "t_address",
"offset": 0,
"slot": "2"
}
],
"numberOfBytes": "96"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
}
}
}
}
}
Loading

0 comments on commit 5acebf5

Please sign in to comment.