Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,15 @@ jobs:
- run:
name: "Checking contract versions"
command: npm run check:versioning
- run:
name: "Checking contract storage layout hasn't broken existing slots"
command: npx hardhat storage-layout --check
- run:
name: "Checking contract storage layout hasn't had additions made"
command: npx hardhat storage-layout --update && git diff --exit-code
- run:
name: "Upload function selectors to 4byte.directory"
command: npx hardhat upload-selectors
check-docker-files-build:
<<: *job_common
steps:
Expand Down
19 changes: 19 additions & 0 deletions .storage-layouts/contracts/Migrations.sol:Migrations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"storage": [
{
"astId": 2458,
"contract": "contracts/Migrations.sol:Migrations",
"label": "last_completed_migration",
"offset": 0,
"slot": "0",
"type": "t_uint256"
}
],
"types": {
"t_uint256": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"storage": [],
"types": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"storage": [
{
"astId": 50553,
"contract": "contracts/bridging/WormholeBridgeForColony.sol:WormholeBridgeForColony",
"label": "authority",
"offset": 0,
"slot": "0",
"type": "t_contract(DSAuthority)50539"
},
{
"astId": 50555,
"contract": "contracts/bridging/WormholeBridgeForColony.sol:WormholeBridgeForColony",
"label": "owner",
"offset": 0,
"slot": "1",
"type": "t_address"
},
{
"astId": 2581,
"contract": "contracts/bridging/WormholeBridgeForColony.sol:WormholeBridgeForColony",
"label": "colonyNetwork",
"offset": 0,
"slot": "2",
"type": "t_address"
},
{
"astId": 2584,
"contract": "contracts/bridging/WormholeBridgeForColony.sol:WormholeBridgeForColony",
"label": "wormhole",
"offset": 0,
"slot": "3",
"type": "t_contract(IWormhole)54429"
},
{
"astId": 2588,
"contract": "contracts/bridging/WormholeBridgeForColony.sol:WormholeBridgeForColony",
"label": "colonyBridges",
"offset": 0,
"slot": "4",
"type": "t_mapping(t_uint256,t_address)"
},
{
"astId": 2592,
"contract": "contracts/bridging/WormholeBridgeForColony.sol:WormholeBridgeForColony",
"label": "evmChainIdToWormholeChainId",
"offset": 0,
"slot": "5",
"type": "t_mapping(t_uint256,t_uint16)"
}
],
"types": {
"t_address": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
},
"t_contract(DSAuthority)50539": {
"encoding": "inplace",
"label": "contract DSAuthority",
"numberOfBytes": "20"
},
"t_contract(IWormhole)54429": {
"encoding": "inplace",
"label": "contract IWormhole",
"numberOfBytes": "20"
},
"t_mapping(t_uint256,t_address)": {
"encoding": "mapping",
"key": "t_uint256",
"label": "mapping(uint256 => address)",
"numberOfBytes": "32",
"value": "t_address"
},
"t_mapping(t_uint256,t_uint16)": {
"encoding": "mapping",
"key": "t_uint256",
"label": "mapping(uint256 => uint16)",
"numberOfBytes": "32",
"value": "t_uint16"
},
"t_uint16": {
"encoding": "inplace",
"label": "uint16",
"numberOfBytes": "2"
},
"t_uint256": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
}
}
}
Loading