Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: upgrade service manager on mainnet #163

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

neutiyoo
Copy link
Contributor

@neutiyoo neutiyoo commented Jun 18, 2024

This PR documents the upgrade of the Mach service manager on mainnet.

Implementation contract address: 0x00f6dd9a3abe4b64988c007f9eaa188e3971ad7b

@github-actions github-actions bot added documentation Improvements or additions to documentation M labels Jun 18, 2024
@neutiyoo
Copy link
Contributor Author

Storage Layout

Before

Name Type Slot Offset Bytes Value Hex Value Contract
_messageHashes struct EnumerableSet.Bytes32Set 0 0 64 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
_operators struct EnumerableSet.AddressSet 2 0 64 42 0x000000000000000000000000000000000000000000000000000000000000002a src/core/MachServiceManager.sol:MachServiceManager
allowlist mapping(address => bool) 4 0 32 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
alertConfirmer address 5 0 20 724413839445103019856722020316162435998521239973 0x0000000000000000000000007ee3d70bd021204955a6c3605a4b8b76ac8829a5 src/core/MachServiceManager.sol:MachServiceManager
allowlistEnabled bool 5 20 1 1 0x0000000000000000000000000000000000000000000000000000000000000001 src/core/MachServiceManager.sol:MachServiceManager
quorumThresholdPercentage uint8 5 21 1 66 0x0000000000000000000000000000000000000000000000000000000000000042 src/core/MachServiceManager.sol:MachServiceManager
_resolvedMessageHashes struct EnumerableSet.Bytes32Set 6 0 64 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
whitelister address 8 0 20 159686764356472438736248912989199679580634881218 0x0000000000000000000000001bf89a27815bdc2b845d6064dab21b4487f81cc2 src/core/MachServiceManager.sol:MachServiceManager
__GAP uint256[44] 9 0 1408 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
_initialized uint8 53 0 1 1 0x0000000000000000000000000000000000000000000000000000000000000001 src/core/MachServiceManager.sol:MachServiceManager
_initializing bool 53 1 1 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
__gap uint256[50] 54 0 1600 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
_owner address 104 0 20 448773466334380356210209688208282702215107355675 0x0000000000000000000000004e9bb2be300005a6dfd80645afa6be58c4f0a41b src/core/MachServiceManager.sol:MachServiceManager
__gap uint256[49] 105 0 1568 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
__GAP uint256[50] 154 0 1600 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
staleStakesForbidden bool 204 0 1 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
__GAP uint256[49] 205 0 1568 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
pauserRegistry contract IPauserRegistry 254 0 20 1169053243596769734062874843244514832225573065393 0x000000000000000000000000ccc62915256c7137aad62d5e4385fc737264d2b1 src/core/MachServiceManager.sol:MachServiceManager
_paused uint256 255 0 32 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
__gap uint256[48] 256 0 1536 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager

After

Name Type Slot Offset Bytes Value Hex Value Contract
rollupChainIDs mapping(uint256 => bool) 0 0 32 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
_messageHashes mapping(uint256 => struct EnumerableSet.Bytes32Set) 1 0 32 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
_operators struct EnumerableSet.AddressSet 2 0 64 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
allowlist mapping(address => bool) 4 0 32 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
alertConfirmer address 5 0 20 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
allowlistEnabled bool 5 20 1 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
quorumThresholdPercentage uint8 5 21 1 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
_resolvedMessageHashes mapping(uint256 => struct EnumerableSet.Bytes32Set) 6 0 32 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
__DEPRECATED_SLOT7 bytes32 7 0 32 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
whitelister address 8 0 20 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
__GAP uint256[44] 9 0 1408 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
_initialized uint8 53 0 1 255 0x00000000000000000000000000000000000000000000000000000000000000ff src/core/MachServiceManager.sol:MachServiceManager
_initializing bool 53 1 1 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
__gap uint256[50] 54 0 1600 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
_owner address 104 0 20 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
__gap uint256[49] 105 0 1568 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
__GAP uint256[50] 154 0 1600 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
staleStakesForbidden bool 204 0 1 1 0x0000000000000000000000000000000000000000000000000000000000000001 src/core/MachServiceManager.sol:MachServiceManager
__GAP uint256[49] 205 0 1568 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
pauserRegistry contract IPauserRegistry 254 0 20 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
_paused uint256 255 0 32 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager
__gap uint256[48] 256 0 1536 0 0x0000000000000000000000000000000000000000000000000000000000000000 src/core/MachServiceManager.sol:MachServiceManager

@neutiyoo neutiyoo marked this pull request as ready for review June 18, 2024 04:18
@neutiyoo neutiyoo requested review from bb111189 and renlulu June 18, 2024 04:19
@neutiyoo neutiyoo merged commit ce6b6d9 into m2-dev Jun 24, 2024
2 checks passed
@neutiyoo neutiyoo deleted the docs/upgrade-mainnet-service-manager branch June 24, 2024 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant