Skip to content

Commit

Permalink
Update storage-layouts for proxy contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
area committed Aug 28, 2024
1 parent 903ab0a commit cf7abee
Show file tree
Hide file tree
Showing 78 changed files with 5,397 additions and 3,630 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"storage": [
{
"contract": "contracts/bridging/ProxyColony.sol:ProxyColony",
"label": "authority",
"offset": 0,
"slot": "0",
"type": {
"encoding": "inplace",
"label": "contract DSAuthority",
"numberOfBytes": "20"
}
},
{
"contract": "contracts/bridging/ProxyColony.sol:ProxyColony",
"label": "owner",
"offset": 0,
"slot": "1",
"type": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
}
},
{
"contract": "contracts/bridging/ProxyColony.sol:ProxyColony",
"label": "resolver",
"offset": 0,
"slot": "2",
"type": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
}
},
{
"contract": "contracts/bridging/ProxyColony.sol:ProxyColony",
"label": "metatransactionNonces",
"offset": 0,
"slot": "3",
"type": {
"encoding": "mapping",
"key": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
},
"label": "mapping(address => uint256)",
"numberOfBytes": "32",
"value": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
}
}
},
{
"contract": "contracts/bridging/ProxyColony.sol:ProxyColony",
"label": "tokenBalances",
"offset": 0,
"slot": "4",
"type": {
"encoding": "mapping",
"key": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
},
"label": "mapping(address => uint256)",
"numberOfBytes": "32",
"value": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
}
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"storage": [
{
"contract": "contracts/bridging/ProxyColonyNetwork.sol:ProxyColonyNetwork",
"label": "authority",
"offset": 0,
"slot": "0",
"type": {
"encoding": "inplace",
"label": "contract DSAuthority",
"numberOfBytes": "20"
}
},
{
"contract": "contracts/bridging/ProxyColonyNetwork.sol:ProxyColonyNetwork",
"label": "owner",
"offset": 0,
"slot": "1",
"type": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
}
},
{
"contract": "contracts/bridging/ProxyColonyNetwork.sol:ProxyColonyNetwork",
"label": "resolver",
"offset": 0,
"slot": "2",
"type": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
}
},
{
"contract": "contracts/bridging/ProxyColonyNetwork.sol:ProxyColonyNetwork",
"label": "colonyBridgeAddress",
"offset": 0,
"slot": "3",
"type": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
}
},
{
"contract": "contracts/bridging/ProxyColonyNetwork.sol:ProxyColonyNetwork",
"label": "homeChainId",
"offset": 0,
"slot": "4",
"type": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
}
},
{
"contract": "contracts/bridging/ProxyColonyNetwork.sol:ProxyColonyNetwork",
"label": "proxyColonyResolverAddress",
"offset": 0,
"slot": "5",
"type": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
}
},
{
"contract": "contracts/bridging/ProxyColonyNetwork.sol:ProxyColonyNetwork",
"label": "shellColonies",
"offset": 0,
"slot": "6",
"type": {
"encoding": "mapping",
"key": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
},
"label": "mapping(address => bool)",
"numberOfBytes": "32",
"value": {
"encoding": "inplace",
"label": "bool",
"numberOfBytes": "1"
}
}
}
]
}
115 changes: 114 additions & 1 deletion .storage-layouts-normalized/contracts/colony/Colony.sol:Colony.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,71 @@
"label": "uint256",
"numberOfBytes": "32"
}
},
{
"contract": "contracts/colony/Colony.sol:Colony",
"label": "chainBalances",
"offset": 0,
"slot": "5",
"type": {
"encoding": "mapping",
"key": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
},
"label": "mapping(uint256 => mapping(address => uint256))",
"numberOfBytes": "32",
"value": {
"encoding": "mapping",
"key": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
},
"label": "mapping(address => uint256)",
"numberOfBytes": "32",
"value": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
}
}
}
},
{
"contract": "contracts/colony/Colony.sol:Colony",
"label": "chainPayouts",
"offset": 0,
"slot": "6",
"type": {
"encoding": "mapping",
"key": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
},
"label": "mapping(uint256 => mapping(address => uint256))",
"numberOfBytes": "32",
"value": {
"encoding": "mapping",
"key": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
},
"label": "mapping(address => uint256)",
"numberOfBytes": "32",
"value": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
}
}
}
}
],
"numberOfBytes": "160"
"numberOfBytes": "224"
}
}
},
Expand Down Expand Up @@ -1353,6 +1415,57 @@
"numberOfBytes": "1"
}
}
},
{
"contract": "contracts/colony/Colony.sol:Colony",
"label": "expenditureSlotChainPayouts",
"offset": 0,
"slot": "38",
"type": {
"encoding": "mapping",
"key": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
},
"label": "mapping(uint256 => mapping(uint256 => mapping(uint256 => mapping(address => uint256))))",
"numberOfBytes": "32",
"value": {
"encoding": "mapping",
"key": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
},
"label": "mapping(uint256 => mapping(uint256 => mapping(address => uint256)))",
"numberOfBytes": "32",
"value": {
"encoding": "mapping",
"key": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
},
"label": "mapping(uint256 => mapping(address => uint256))",
"numberOfBytes": "32",
"value": {
"encoding": "mapping",
"key": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
},
"label": "mapping(address => uint256)",
"numberOfBytes": "32",
"value": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
}
}
}
}
}
}
]
}
Loading

0 comments on commit cf7abee

Please sign in to comment.