Skip to content

Commit

Permalink
build: remove --force in pre-push ci
Browse files Browse the repository at this point in the history
  • Loading branch information
huyhuynh3103 committed Jan 18, 2024
1 parent 9c971d1 commit 30c1900
Show file tree
Hide file tree
Showing 17 changed files with 54 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ stashed=true
if [[ $output == *"No local changes to save"* ]]; then
stashed=false
fi
forge build --force --skip test script --sizes 2>&1 | sed -n '/Contract/,$p' > logs/contract-code-sizes.log
forge build --skip test script --sizes 2>&1 | sed -n '/Contract/,$p' > logs/contract-code-sizes.log
.husky/generate-layout.sh

git add logs
Expand Down
2 changes: 2 additions & 0 deletions logs/storage/Initializable.sol:Initializable 2.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lib/openzeppelin-contracts/contracts/proxy/utils/Initializable.sol:Initializable:_initialized (storage_slot: 0) (offset: 0) (type: uint8) (numberOfBytes: 1)
lib/openzeppelin-contracts/contracts/proxy/utils/Initializable.sol:Initializable:_initializing (storage_slot: 0) (offset: 1) (type: bool) (numberOfBytes: 1)
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
src/mainchain/MainchainBridgeManager.sol:MainchainBridgeManager:round (storage_slot: 0) (offset: 0) (type: mapping(uint256 => uint256)) (numberOfBytes: 32)
src/mainchain/MainchainBridgeManager.sol:MainchainBridgeManager:vote (storage_slot: 1) (offset: 0) (type: mapping(uint256 => mapping(uint256 => struct CoreGovernance.ProposalVote))) (numberOfBytes: 32)
src/mainchain/MainchainBridgeManager.sol:MainchainBridgeManager:_proposalExpiryDuration (storage_slot: 2) (offset: 0) (type: uint256) (numberOfBytes: 32)
src/mainchain/MainchainBridgeManager.sol:MainchainBridgeManager:_targetOptionsMap (storage_slot: 3) (offset: 0) (type: mapping(enum GlobalProposal.TargetOption => address)) (numberOfBytes: 32)
2 changes: 2 additions & 0 deletions logs/storage/MinimumWithdrawal.sol:MinimumWithdrawal 2.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src/extensions/MinimumWithdrawal.sol:MinimumWithdrawal:minimumThreshold (storage_slot: 0) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
src/extensions/MinimumWithdrawal.sol:MinimumWithdrawal:______gap (storage_slot: 1) (offset: 0) (type: uint256[50]) (numberOfBytes: 1600)
2 changes: 2 additions & 0 deletions logs/storage/MockBridge.sol:MockBridge 2.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src/mocks/MockBridge.sol:MockBridge:bridgeOperatorAddedBlock (storage_slot: 0) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
src/mocks/MockBridge.sol:MockBridge:bridgeOperators (storage_slot: 1) (offset: 0) (type: address[]) (numberOfBytes: 32)
2 changes: 2 additions & 0 deletions logs/storage/MockBridgeReward.sol:MockBridgeReward 2.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src/mocks/ronin/MockBridgeReward.sol:MockBridgeReward:_initialized (storage_slot: 0) (offset: 0) (type: uint8) (numberOfBytes: 1)
src/mocks/ronin/MockBridgeReward.sol:MockBridgeReward:_initializing (storage_slot: 0) (offset: 1) (type: bool) (numberOfBytes: 1)
1 change: 1 addition & 0 deletions logs/storage/MockBridgeSlash.sol:MockBridgeSlash 2.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test/mocks/MockBridgeSlash.sol:MockBridgeSlash:_slashMap (storage_slot: 0) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test/mocks/MockBridgeTracking.sol:MockBridgeTracking:_tracks (storage_slot: 0) (offset: 0) (type: mapping(uint256 => struct MockBridgeTracking.PeriodTracking)) (numberOfBytes: 32)
10 changes: 10 additions & 0 deletions logs/storage/MockERC20.sol:MockERC20 2.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:name (storage_slot: 0) (offset: 0) (type: string) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:symbol (storage_slot: 1) (offset: 0) (type: string) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:decimals (storage_slot: 2) (offset: 0) (type: uint8) (numberOfBytes: 1)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:totalSupply (storage_slot: 3) (offset: 0) (type: uint256) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:balanceOf (storage_slot: 4) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:allowance (storage_slot: 5) (offset: 0) (type: mapping(address => mapping(address => uint256))) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:INITIAL_CHAIN_ID (storage_slot: 6) (offset: 0) (type: uint256) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:INITIAL_DOMAIN_SEPARATOR (storage_slot: 7) (offset: 0) (type: bytes32) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:nonces (storage_slot: 8) (offset: 0) (type: mapping(address => uint256)) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/mocks/MockERC20.sol:MockERC20:initialized (storage_slot: 9) (offset: 0) (type: bool) (numberOfBytes: 1)
4 changes: 4 additions & 0 deletions logs/storage/NetworkConfig.sol:NetworkConfig 2.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
lib/foundry-deployment-kit/script/configs/NetworkConfig.sol:NetworkConfig:_deploymentRoot (storage_slot: 0) (offset: 0) (type: string) (numberOfBytes: 32)
lib/foundry-deployment-kit/script/configs/NetworkConfig.sol:NetworkConfig:_isForkModeEnabled (storage_slot: 1) (offset: 0) (type: bool) (numberOfBytes: 1)
lib/foundry-deployment-kit/script/configs/NetworkConfig.sol:NetworkConfig:_networkDataMap (storage_slot: 2) (offset: 0) (type: mapping(TNetwork => struct INetworkConfig.NetworkData)) (numberOfBytes: 32)
lib/foundry-deployment-kit/script/configs/NetworkConfig.sol:NetworkConfig:_networkMap (storage_slot: 3) (offset: 0) (type: mapping(uint256 => TNetwork)) (numberOfBytes: 32)
6 changes: 6 additions & 0 deletions logs/storage/PauseEnforcer.sol:PauseEnforcer 2.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
src/ronin/gateway/PauseEnforcer.sol:PauseEnforcer:_roles (storage_slot: 0) (offset: 0) (type: mapping(bytes32 => struct AccessControl.RoleData)) (numberOfBytes: 32)
src/ronin/gateway/PauseEnforcer.sol:PauseEnforcer:_roleMembers (storage_slot: 1) (offset: 0) (type: mapping(bytes32 => struct EnumerableSet.AddressSet)) (numberOfBytes: 32)
src/ronin/gateway/PauseEnforcer.sol:PauseEnforcer:_initialized (storage_slot: 2) (offset: 0) (type: uint8) (numberOfBytes: 1)
src/ronin/gateway/PauseEnforcer.sol:PauseEnforcer:_initializing (storage_slot: 2) (offset: 1) (type: bool) (numberOfBytes: 1)
src/ronin/gateway/PauseEnforcer.sol:PauseEnforcer:target (storage_slot: 2) (offset: 2) (type: contract IPauseTarget) (numberOfBytes: 20)
src/ronin/gateway/PauseEnforcer.sol:PauseEnforcer:emergency (storage_slot: 2) (offset: 22) (type: bool) (numberOfBytes: 1)
1 change: 1 addition & 0 deletions logs/storage/ProxyAdmin.sol:ProxyAdmin 2.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/foundry-deployment-kit/lib/openzeppelin-contracts/contracts/proxy/transparent/ProxyAdmin.sol:ProxyAdmin:_owner (storage_slot: 0) (offset: 0) (type: address) (numberOfBytes: 20)
8 changes: 8 additions & 0 deletions logs/storage/Script.sol:Script 2.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
lib/foundry-deployment-kit/lib/forge-std/src/Script.sol:Script:stdstore (storage_slot: 0) (offset: 0) (type: struct StdStorage) (numberOfBytes: 224)
lib/foundry-deployment-kit/lib/forge-std/src/Script.sol:Script:stdChainsInitialized (storage_slot: 7) (offset: 0) (type: bool) (numberOfBytes: 1)
lib/foundry-deployment-kit/lib/forge-std/src/Script.sol:Script:chains (storage_slot: 8) (offset: 0) (type: mapping(string => struct StdChains.Chain)) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/Script.sol:Script:defaultRpcUrls (storage_slot: 9) (offset: 0) (type: mapping(string => string)) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/Script.sol:Script:idToAlias (storage_slot: 10) (offset: 0) (type: mapping(uint256 => string)) (numberOfBytes: 32)
lib/foundry-deployment-kit/lib/forge-std/src/Script.sol:Script:fallbackToDefaultRpcUrls (storage_slot: 11) (offset: 0) (type: bool) (numberOfBytes: 1)
lib/foundry-deployment-kit/lib/forge-std/src/Script.sol:Script:gasMeteringOff (storage_slot: 11) (offset: 1) (type: bool) (numberOfBytes: 1)
lib/foundry-deployment-kit/lib/forge-std/src/Script.sol:Script:IS_SCRIPT (storage_slot: 11) (offset: 2) (type: bool) (numberOfBytes: 1)
5 changes: 5 additions & 0 deletions logs/storage/StdChains.sol:StdChains 2.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
lib/forge-std/src/StdChains.sol:StdChains:stdChainsInitialized (storage_slot: 0) (offset: 0) (type: bool) (numberOfBytes: 1)
lib/forge-std/src/StdChains.sol:StdChains:chains (storage_slot: 1) (offset: 0) (type: mapping(string => struct StdChains.Chain)) (numberOfBytes: 32)
lib/forge-std/src/StdChains.sol:StdChains:defaultRpcUrls (storage_slot: 2) (offset: 0) (type: mapping(string => string)) (numberOfBytes: 32)
lib/forge-std/src/StdChains.sol:StdChains:idToAlias (storage_slot: 3) (offset: 0) (type: mapping(uint256 => string)) (numberOfBytes: 32)
lib/forge-std/src/StdChains.sol:StdChains:fallbackToDefaultRpcUrls (storage_slot: 4) (offset: 0) (type: bool) (numberOfBytes: 1)
2 changes: 2 additions & 0 deletions logs/storage/StdCheats.sol:StdCheats 2.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lib/forge-std/src/StdCheats.sol:StdCheats:gasMeteringOff (storage_slot: 0) (offset: 0) (type: bool) (numberOfBytes: 1)
lib/forge-std/src/StdCheats.sol:StdCheats:stdstore (storage_slot: 1) (offset: 0) (type: struct StdStorage) (numberOfBytes: 224)
1 change: 1 addition & 0 deletions logs/storage/StdCheats.sol:StdCheatsSafe 2.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/forge-std/src/StdCheats.sol:StdCheatsSafe:gasMeteringOff (storage_slot: 0) (offset: 0) (type: bool) (numberOfBytes: 1)
2 changes: 2 additions & 0 deletions logs/storage/test.sol:DSTest 2.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lib/forge-std/lib/ds-test/src/test.sol:DSTest:IS_TEST (storage_slot: 0) (offset: 0) (type: bool) (numberOfBytes: 1)
lib/forge-std/lib/ds-test/src/test.sol:DSTest:_failed (storage_slot: 0) (offset: 1) (type: bool) (numberOfBytes: 1)

0 comments on commit 30c1900

Please sign in to comment.