Skip to content

Commit

Permalink
chore: storage layout
Browse files Browse the repository at this point in the history
  • Loading branch information
TuDo1403 committed Jan 13, 2025
1 parent 4e6b548 commit d706388
Show file tree
Hide file tree
Showing 10 changed files with 295 additions and 99 deletions.
275 changes: 184 additions & 91 deletions logs/contract-code-sizes.log

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions logs/storage/AssetMigration.sol:AssetMigration.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src/extensions/AssetMigration.sol:AssetMigration:_roles (storage_slot: 0) (offset: 0) (type: mapping(bytes32 => struct AccessControl.RoleData)) (numberOfBytes: 32)
src/extensions/AssetMigration.sol:AssetMigration:_roleMembers (storage_slot: 1) (offset: 0) (type: mapping(bytes32 => struct EnumerableSet.AddressSet)) (numberOfBytes: 32)
5 changes: 5 additions & 0 deletions logs/storage/LegacyTokenMigrator.sol:LegacyTokenMigrator.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
src/ronin/migration/LegacyTokenMigrator.sol:LegacyTokenMigrator:_initialized (storage_slot: 0) (offset: 0) (type: uint8) (numberOfBytes: 1)
src/ronin/migration/LegacyTokenMigrator.sol:LegacyTokenMigrator:_initializing (storage_slot: 0) (offset: 1) (type: bool) (numberOfBytes: 1)
src/ronin/migration/LegacyTokenMigrator.sol:LegacyTokenMigrator:_roles (storage_slot: 1) (offset: 0) (type: mapping(bytes32 => struct AccessControl.RoleData)) (numberOfBytes: 32)
src/ronin/migration/LegacyTokenMigrator.sol:LegacyTokenMigrator:_roleMembers (storage_slot: 2) (offset: 0) (type: mapping(bytes32 => struct EnumerableSet.AddressSet)) (numberOfBytes: 32)
src/ronin/migration/LegacyTokenMigrator.sol:LegacyTokenMigrator:_tokenMap (storage_slot: 3) (offset: 0) (type: mapping(address => address)) (numberOfBytes: 32)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:_paused (storage_slot: 0) (offset: 0) (type: bool) (numberOfBytes: 1)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:_num (storage_slot: 1) (offset: 0) (type: uint256) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:_denom (storage_slot: 2) (offset: 0) (type: uint256) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:______deprecated (storage_slot: 3) (offset: 0) (type: address) (numberOfBytes: 20)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:nonce (storage_slot: 4) (offset: 0) (type: uint256) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:emergencyPauser (storage_slot: 5) (offset: 0) (type: address) (numberOfBytes: 20)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:______gap (storage_slot: 6) (offset: 0) (type: uint256[49]) (numberOfBytes: 1568)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:_highTierVWNum (storage_slot: 55) (offset: 0) (type: uint256) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:_highTierVWDenom (storage_slot: 56) (offset: 0) (type: uint256) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:highTierThreshold (storage_slot: 57) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:lockedThreshold (storage_slot: 58) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:unlockFeePercentages (storage_slot: 59) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:dailyWithdrawalLimit (storage_slot: 60) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:lastSyncedWithdrawal (storage_slot: 61) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:lastDateSynced (storage_slot: 62) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:______gap (storage_slot: 63) (offset: 0) (type: uint256[50]) (numberOfBytes: 1600)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:_initialized (storage_slot: 113) (offset: 0) (type: uint8) (numberOfBytes: 1)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:_initializing (storage_slot: 113) (offset: 1) (type: bool) (numberOfBytes: 1)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:_roles (storage_slot: 114) (offset: 0) (type: mapping(bytes32 => struct AccessControl.RoleData)) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:_roleMembers (storage_slot: 115) (offset: 0) (type: mapping(bytes32 => struct EnumerableSet.AddressSet)) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:wrappedNativeToken (storage_slot: 116) (offset: 0) (type: contract IWETH) (numberOfBytes: 20)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:roninChainId (storage_slot: 117) (offset: 0) (type: uint256) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:depositCount (storage_slot: 118) (offset: 0) (type: uint256) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:_domainSeparator (storage_slot: 119) (offset: 0) (type: bytes32) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:_roninToken (storage_slot: 120) (offset: 0) (type: mapping(address => struct MappedTokenConsumer.MappedToken)) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:withdrawalHash (storage_slot: 121) (offset: 0) (type: mapping(uint256 => bytes32)) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:withdrawalLocked (storage_slot: 122) (offset: 0) (type: mapping(uint256 => bool)) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:______deprecatedBridgeOperatorAddedBlock (storage_slot: 123) (offset: 0) (type: uint256) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:______deprecatedBridgeOperators (storage_slot: 124) (offset: 0) (type: uint256) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:_totalOperatorWeight (storage_slot: 125) (offset: 0) (type: uint96) (numberOfBytes: 12)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:_operatorWeight (storage_slot: 126) (offset: 0) (type: mapping(address => uint96)) (numberOfBytes: 32)
src/mainchain/MainchainGatewayV3_initialize.sol:MainchainGatewayV3_initialize:______deprecatedWethUnwrapper (storage_slot: 127) (offset: 0) (type: uint256) (numberOfBytes: 32)
1 change: 1 addition & 0 deletions logs/storage/Ownable.sol:Ownable.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies/@fdk-0.3.5-rc/dependencies/openzeppelin-v5-5.1.0/contracts/access/Ownable.sol:Ownable:_owner (storage_slot: 0) (offset: 0) (type: address) (numberOfBytes: 20)
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:stdstore (storage_slot: 0) (offset: 0) (type: struct StdStorage) (numberOfBytes: 256)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:stdChainsInitialized (storage_slot: 8) (offset: 0) (type: bool) (numberOfBytes: 1)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:chains (storage_slot: 9) (offset: 0) (type: mapping(string => struct StdChains.Chain)) (numberOfBytes: 32)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:defaultRpcUrls (storage_slot: 10) (offset: 0) (type: mapping(string => string)) (numberOfBytes: 32)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:idToAlias (storage_slot: 11) (offset: 0) (type: mapping(uint256 => string)) (numberOfBytes: 32)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:fallbackToDefaultRpcUrls (storage_slot: 12) (offset: 0) (type: bool) (numberOfBytes: 1)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:gasMeteringOff (storage_slot: 12) (offset: 1) (type: bool) (numberOfBytes: 1)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:IS_SCRIPT (storage_slot: 12) (offset: 2) (type: bool) (numberOfBytes: 1)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:_failed (storage_slot: 12) (offset: 3) (type: bool) (numberOfBytes: 1)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:_originForkBlockNumber (storage_slot: 13) (offset: 0) (type: uint256) (numberOfBytes: 32)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:_overriddenArgs (storage_slot: 14) (offset: 0) (type: bytes) (numberOfBytes: 32)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:_deployScript (storage_slot: 15) (offset: 0) (type: mapping(TContract => contract IMigrationScript)) (numberOfBytes: 32)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:seed (storage_slot: 16) (offset: 0) (type: uint256) (numberOfBytes: 32)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:brSl (storage_slot: 17) (offset: 0) (type: address payable) (numberOfBytes: 20)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:brRw (storage_slot: 18) (offset: 0) (type: address payable) (numberOfBytes: 20)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:brTk (storage_slot: 19) (offset: 0) (type: address payable) (numberOfBytes: 20)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:ronBM (storage_slot: 20) (offset: 0) (type: address payable) (numberOfBytes: 20)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:ronGW (storage_slot: 21) (offset: 0) (type: address payable) (numberOfBytes: 20)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:ethGW (storage_slot: 22) (offset: 0) (type: address payable) (numberOfBytes: 20)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:ethBM (storage_slot: 23) (offset: 0) (type: address payable) (numberOfBytes: 20)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:cheatGv (storage_slot: 24) (offset: 0) (type: address) (numberOfBytes: 20)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:cheatOp (storage_slot: 25) (offset: 0) (type: address) (numberOfBytes: 20)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:mockGvs (storage_slot: 26) (offset: 0) (type: address[]) (numberOfBytes: 32)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:mockOps (storage_slot: 27) (offset: 0) (type: address[]) (numberOfBytes: 32)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:gwDomainHash (storage_slot: 28) (offset: 0) (type: bytes32) (numberOfBytes: 32)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:user (storage_slot: 29) (offset: 0) (type: address) (numberOfBytes: 20)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:quantity (storage_slot: 30) (offset: 0) (type: uint256) (numberOfBytes: 32)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:depositReq (storage_slot: 31) (offset: 0) (type: struct Transfer.Request) (numberOfBytes: 160)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:withdrawReq (storage_slot: 36) (offset: 0) (type: struct Transfer.Request) (numberOfBytes: 160)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:ronERC20 (storage_slot: 41) (offset: 0) (type: contract MockERC20) (numberOfBytes: 20)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:ronERC721 (storage_slot: 42) (offset: 0) (type: contract MockERC721) (numberOfBytes: 20)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:ethERC20 (storage_slot: 43) (offset: 0) (type: contract MockERC20) (numberOfBytes: 20)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:ethERC721 (storage_slot: 44) (offset: 0) (type: contract MockERC721) (numberOfBytes: 20)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:ronTokens (storage_slot: 45) (offset: 0) (type: address[]) (numberOfBytes: 32)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:ethTokens (storage_slot: 46) (offset: 0) (type: address[]) (numberOfBytes: 32)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:standards (storage_slot: 47) (offset: 0) (type: enum TokenStandard[]) (numberOfBytes: 32)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:ronChainId (storage_slot: 48) (offset: 0) (type: uint256) (numberOfBytes: 32)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:ethChainId (storage_slot: 49) (offset: 0) (type: uint256) (numberOfBytes: 32)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:ethWETH (storage_slot: 50) (offset: 0) (type: contract IWETH) (numberOfBytes: 20)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:ronWETH (storage_slot: 51) (offset: 0) (type: contract MockERC20) (numberOfBytes: 20)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:currNetwork (storage_slot: 52) (offset: 0) (type: TNetwork) (numberOfBytes: 32)
script/20241217-migrate-assets/postcheck/PostCheck_Gateway_DepositAndWithdraw_AfterRestrict.sol:PostCheck_Gateway_DepositAndWithdraw_AfterRestrict:companionNetwork (storage_slot: 53) (offset: 0) (type: TNetwork) (numberOfBytes: 32)
1 change: 1 addition & 0 deletions logs/storage/ProxyAdmin.sol:ProxyAdmin.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dependencies/@fdk-0.3.5-rc/dependencies/openzeppelin-v5-5.1.0/contracts/proxy/transparent/ProxyAdmin.sol:ProxyAdmin:_owner (storage_slot: 0) (offset: 0) (type: address) (numberOfBytes: 20)
Loading

0 comments on commit d706388

Please sign in to comment.