Skip to content

Commit

Permalink
fix: bump semvers on new contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
maurelian committed Oct 29, 2024
1 parent e6a4ddd commit 382cc0a
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 58 deletions.
3 changes: 1 addition & 2 deletions op-chain-ops/foundry/testdata/srcmaps/src/SimpleStorage.sol
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;
pragma solidity 0.8.25;

import {StorageLibrary} from "./StorageLibrary.sol";

// @notice SimpleStorage is a contract to test Go <> foundry integration.
// @dev uses a dependency, to test source-mapping with multiple sources.
contract SimpleStorage {

// @dev example getter
function getExampleData() public pure returns (uint256) {
return StorageLibrary.addData(42);
Expand Down
5 changes: 1 addition & 4 deletions op-chain-ops/foundry/testdata/srcmaps/src/StorageLibrary.sol
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;
pragma solidity 0.8.25;

// @notice StorageLibrary is an example library used for integration testing.
library StorageLibrary {

function addData(uint256 _data) internal pure returns (uint256) {
return _data + 123;
}

}

2 changes: 1 addition & 1 deletion op-chain-ops/script/testdata/scripts/ScriptExample.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;
pragma solidity 0.8.25;

// Vm is a minimal interface to the forge cheatcode precompile
interface Vm {
Expand Down
20 changes: 10 additions & 10 deletions packages/contracts-bedrock/.gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ GasBenchMark_L1BlockInterop_SetValuesInterop:test_setL1BlockValuesInterop_benchm
GasBenchMark_L1BlockInterop_SetValuesInterop_Warm:test_setL1BlockValuesInterop_benchmark() (gas: 5094)
GasBenchMark_L1Block_SetValuesEcotone:test_setL1BlockValuesEcotone_benchmark() (gas: 158515)
GasBenchMark_L1Block_SetValuesEcotone_Warm:test_setL1BlockValuesEcotone_benchmark() (gas: 7592)
GasBenchMark_L1CrossDomainMessenger:test_sendMessage_benchmark_0() (gas: 367377)
GasBenchMark_L1CrossDomainMessenger:test_sendMessage_benchmark_1() (gas: 2965582)
GasBenchMark_L1StandardBridge_Deposit:test_depositERC20_benchmark_0() (gas: 561705)
GasBenchMark_L1StandardBridge_Deposit:test_depositERC20_benchmark_1() (gas: 4073772)
GasBenchMark_L1StandardBridge_Deposit:test_depositETH_benchmark_0() (gas: 464792)
GasBenchMark_L1StandardBridge_Deposit:test_depositETH_benchmark_1() (gas: 3510517)
GasBenchMark_L1StandardBridge_Finalize:test_finalizeETHWithdrawal_benchmark() (gas: 72339)
GasBenchMark_L1CrossDomainMessenger:test_sendMessage_benchmark_0() (gas: 367393)
GasBenchMark_L1CrossDomainMessenger:test_sendMessage_benchmark_1() (gas: 2965598)
GasBenchMark_L1StandardBridge_Deposit:test_depositERC20_benchmark_0() (gas: 561716)
GasBenchMark_L1StandardBridge_Deposit:test_depositERC20_benchmark_1() (gas: 4073962)
GasBenchMark_L1StandardBridge_Deposit:test_depositETH_benchmark_0() (gas: 465031)
GasBenchMark_L1StandardBridge_Deposit:test_depositETH_benchmark_1() (gas: 3510756)
GasBenchMark_L1StandardBridge_Finalize:test_finalizeETHWithdrawal_benchmark() (gas: 72385)
GasBenchMark_L2OutputOracle:test_proposeL2Output_benchmark() (gas: 92975)
GasBenchMark_OptimismPortal:test_depositTransaction_benchmark() (gas: 68513)
GasBenchMark_OptimismPortal:test_depositTransaction_benchmark_1() (gas: 68980)
GasBenchMark_OptimismPortal:test_proveWithdrawalTransaction_benchmark() (gas: 155467)
GasBenchMark_OptimismPortal:test_depositTransaction_benchmark() (gas: 68399)
GasBenchMark_OptimismPortal:test_depositTransaction_benchmark_1() (gas: 68866)
GasBenchMark_OptimismPortal:test_proveWithdrawalTransaction_benchmark() (gas: 155467)
77 changes: 39 additions & 38 deletions packages/contracts-bedrock/semver-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"sourceCodeHash": "0x9abb816a309c2c371596d58a5b2e295e114aa72965e34510414e3db0c858112e"
},
"src/L1/L1ERC721Bridge.sol": {
"initCodeHash": "0x400ee4065dc90f3e388110870518d643bc06d7c2853ab9841523446cdbde1d61",
"sourceCodeHash": "0x16e24d6b62ce0a154427efadbeda80c61ce7d4e2f510a2b09c531eefce5c8302"
"initCodeHash": "0xc3413337f3ae098a9246452d34a47d6d16724d929155b4adf15cf5c02124b277",
"sourceCodeHash": "0x172d247c34377af5596389720637f70c2cdede65e570e6cec4aeeae277c58723"
},
"src/L1/L1StandardBridge.sol": {
"initCodeHash": "0x135c6b5e6d7bd92a3d9501d11d0f14b43beaa5ebc50a15835b79e482be1246d7",
Expand All @@ -29,15 +29,15 @@
},
"src/L1/OptimismPortal.sol": {
"initCodeHash": "0xe581fd43e3052580c3a700b147a841c03f800599a3ef687d5d99f854e9b43cdf",
"sourceCodeHash": "0xc652cfe405f40cd1b6e1aea5892f914778c52417aba20569f06e4d5c6f4cf6c8"
"sourceCodeHash": "0xab7603cd1fe700aae54e3ee4ec893855e997df1d031c89defdbb6095b909fb93"
},
"src/L1/OptimismPortal2.sol": {
"initCodeHash": "0xb9a347e8e494afe4bc17a8d7e59082d83e0bc806ad0c80dfe3a2a318cc599fd2",
"sourceCodeHash": "0x92be5cb34340e6b60895133fa1fbfc7580a92c98fd5ec606dfbec3a073c052b9"
"sourceCodeHash": "0xe448d0da10449e918ab0734dbc381683678edadadcf8e2ef77399004fdfb537f"
},
"src/L1/OptimismPortalInterop.sol": {
"initCodeHash": "0x88e6ffcebe56c81e88eb4e2eb0ba7d38edc91cf2fc1e958e58b90f3be2b421ba",
"sourceCodeHash": "0x78387c76149261deff36b33fdddb17139b90abfc00bf341c95b1f8301d97948e"
"sourceCodeHash": "0x7f89009cbc669918ce7d40f2720f88cd3024f4eb9d3c73165443355ab1b28926"
},
"src/L1/ProtocolVersions.sol": {
"initCodeHash": "0x0b1feb2bab4eaff5ea004766dab858f483cca1b3395b37fcd36954f6a142ed07",
Expand All @@ -48,12 +48,12 @@
"sourceCodeHash": "0x5fc002cce7a30fec2886de95ae38c35b6ac67fad340adc9a2096a35b14581d75"
},
"src/L1/SystemConfig.sol": {
"initCodeHash": "0xc8a09b6055e1b676b184648bdf5c1189b23f16de4fb86fe0157b2eb3dbdc9a0b",
"sourceCodeHash": "0x7fc4841e36cc9f7935ba74f06e65ce7ca1eb69fccffd4ad95312dea9ae7fd175"
"initCodeHash": "0x98939fc8ecfba7740a75e1b6b03b583eade9c002e48917f6d46c9e37a02a04bf",
"sourceCodeHash": "0xfcccb5ade2b76730de4924ecfac4e7f69e2db4f1e223a073014332f98a729a44"
},
"src/L1/SystemConfigInterop.sol": {
"initCodeHash": "0x5af4709d55e6497dde35941c0c9bcfa5cc725a2a357111a67a5befab03190a6d",
"sourceCodeHash": "0xb65990d47c2d94ccae20fc5232822c6e4ca56cea3e7e81fa339dec0e8e150b10"
"initCodeHash": "0x8059922f629b06e1c0fc439b47afd1b20e84fad18ce9d9b572e6ff94c0a37088",
"sourceCodeHash": "0x16eeef811c21ac6e802b3dc22420d9b41e5ac00f69794d6a8e3ef7aeece5ece7"
},
"src/L2/BaseFeeVault.sol": {
"initCodeHash": "0x6b6c62791660e87912ec757091cedf516466d1b1bb0eb12ba52a3915bf72909a",
Expand All @@ -69,15 +69,15 @@
},
"src/L2/GasPriceOracle.sol": {
"initCodeHash": "0x5469b0af37cdec207152f35c90b3e3581aeead4062f754375808b2ef9d8295a4",
"sourceCodeHash": "0xaea210c892a11d6027307397e34b8d6b6f762cd34c7381e67eded639957a6b96"
"sourceCodeHash": "0xa64143d2f37aff3e117ff3956995d7db27176ad564927f2db79ded14ddc6827f"
},
"src/L2/L1Block.sol": {
"initCodeHash": "0x90405cc9e1cef8239140608483c3dcde6883bc59dc71c584752f0ca3bceda2d7",
"sourceCodeHash": "0x94939cc71c52fdff31d280d45c687d3cac65253f9ee2008bd76141699e5d9201"
"sourceCodeHash": "0x933768955dea3519e9b66405d599bc5f89f581341b3666db9dcbc960bfce3cfd"
},
"src/L2/L1BlockInterop.sol": {
"initCodeHash": "0x145e549d512e960261941ef33bcf600f5b5ecfc2d349a0ce9409ee7ead5ec901",
"sourceCodeHash": "0x16065dd0d217bbe17ca62c8be331ec64a42792541bc3230b33c6ce6ac4b16b12"
"initCodeHash": "0xeafc95bd6a41ce3579458d267003a642bec11d5a695c30d4083c03840eb0dd89",
"sourceCodeHash": "0x4fefe0ff1fd99a7bb998a95abc4ada6e1c41e4c0515bd3167c5b9a217283ca1b"
},
"src/L2/L1FeeVault.sol": {
"initCodeHash": "0x6b6c62791660e87912ec757091cedf516466d1b1bb0eb12ba52a3915bf72909a",
Expand All @@ -88,16 +88,16 @@
"sourceCodeHash": "0x9d0f389c47591a8c2def7921f17c39e4c9d31e6f73e66957e55fb9cf33e476a8"
},
"src/L2/L2ERC721Bridge.sol": {
"initCodeHash": "0x84420e76f00a8f6738028f8b2ccb97cea3a17e4f3ca0efe2fb666ed77621048b",
"sourceCodeHash": "0x7f6d8e3f39b3aa7a0c272d862080fc63f5fe212954e0ae3747511835198eb849"
"initCodeHash": "0xe25e83e9a7a8d359c0ddb54bfc94234ae9fad9ca6036bd9ae54b6e4c0bc1b1d2",
"sourceCodeHash": "0x4e1aabe885b4b879bca10c62c48d7841b1fb4270c52d7bcca3aea253bee758fa"
},
"src/L2/L2StandardBridge.sol": {
"initCodeHash": "0x411fa1947151d870b45f748caba9fb82a6a53a33b9e9f674367df92657a3cf20",
"sourceCodeHash": "0x8e0f72e6226c83f3b574fa716d28180d853ad58692eec9fb149f3a0ce0aeaa64"
},
"src/L2/L2StandardBridgeInterop.sol": {
"initCodeHash": "0x0ba52bcaad1b79d7c0015a0b127b12f221a6dbec92cf8e4f55465bce9608219b",
"sourceCodeHash": "0x68256ed6279f14879ecddf0e8566dec2607d3a6bcebb4871848379a691792688"
"initCodeHash": "0xdac84e6e11607fd60bea7ca477a890d3e1d6bc61fc26d248a219a958206cbf12",
"sourceCodeHash": "0x9c7ad3ce723fd1aa97d76922e7f3cbbcaa483d54a37e19a17a582fcaa7bdfc10"
},
"src/L2/L2ToL1MessagePasser.sol": {
"initCodeHash": "0x5ae622bd451e4c9c538bd6492f6b211c9c46b456a48cb7ede4f1bd799792f477",
Expand All @@ -112,8 +112,8 @@
"sourceCodeHash": "0xcb705d26e63e733051c8bd442ea69ce637a00c16d646ccc37b687b20941366fe"
},
"src/L2/OptimismSuperchainERC20Beacon.sol": {
"initCodeHash": "0x701f32d2ce2c4331b0ffa813a036efe3066e6550015749495be8a4a56bbb2a9d",
"sourceCodeHash": "0x67c7a5d1598db414f790f056373511a9ca5dbd3be725298ec759865bcbb83f03"
"initCodeHash": "0xa13c0c387a4f2190873f480233535dcd901bb46335d9da5a2b06209d4ace8725",
"sourceCodeHash": "0x81e989a760ece44b32f1d1388cfa7cc048bc2e62b3d3aeb3020c8962e39d0996"
},
"src/L2/OptimismSuperchainERC20Factory.sol": {
"initCodeHash": "0x18a362c57f08b611db98dfde96121385e938f995c84e3547c1c03fd49f9db2fd",
Expand All @@ -132,40 +132,40 @@
"sourceCodeHash": "0x4f539e9d9096d31e861982b8f751fa2d7de0849590523375cf92e175294d1036"
},
"src/L2/SuperchainWETH.sol": {
"initCodeHash": "0xa9efbcf1ac5e115de19839c43cd23393a3e822690b41681864b0d1926e902852",
"sourceCodeHash": "0xf4cd10aa5534d3b7a0ed7b4dff838b77dd080742858f79a0f21ff6d40b4dc019"
"initCodeHash": "0x0b6bf8765051dca78456040b9cd2c459038d78ec58215f4798938ade9e65ce34",
"sourceCodeHash": "0xe6ca9d3b28acfe3266b07a5415ca8ccf7c5447e5a783d90b93b78929a9247adf"
},
"src/L2/WETH.sol": {
"initCodeHash": "0x4dc837b23e5cce5491343b13ba554a5efaf75fea3cc12d0a63c8527c412bb941",
"initCodeHash": "0x787afa5a96d266a4ef22fe24bcd75ea05b8b723b06acda1997a34aefc54fdcea",
"sourceCodeHash": "0x1e2238f1dd927964d4a734e1e55ee4be5cca89e6caf027d458706bacc42b8c90"
},
"src/cannon/MIPS.sol": {
"initCodeHash": "0x74c65255ae1e44d40114cf4cc6f6cc835df7a3fee0e4f0914afe733c313898df",
"sourceCodeHash": "0xc942af60145a3225f72d1fc4da653f872ef7bac45b4e0d258b17c87b9bc6f779"
"initCodeHash": "0x3669d93644f627f607e84ca7588e75f1c4a93fc53f0002be1761ba41a82aa179",
"sourceCodeHash": "0xb07cd5ec001306fc03d5069b444238e0864d7a60406fe7454df47ab109bc4da4"
},
"src/cannon/MIPS2.sol": {
"initCodeHash": "0xcca20017a308fcad02f9923c6166f98d7c0c3470b842898bbb7d3badb527bd76",
"sourceCodeHash": "0x509136c295e277b9573c1e281028a067a7aa2bab744117ed68b4f1a3e0076f00"
"initCodeHash": "0x87045163c762347dfe4920456afb169c56b263207bc3cf4fe69e76aaff10d465",
"sourceCodeHash": "0xbd9dc5dcf59ea173823474aa61e8478fb128a4f8a946a0b4454ee673402c761a"
},
"src/cannon/PreimageOracle.sol": {
"initCodeHash": "0x232bf1001231a8fb5c308c52635f37db4844f3cd9a3de0016d020712c946b2d5",
"sourceCodeHash": "0x5efd661ff603f18831ea51a5ebdc84d8fc8a372b0a51c3151fe3d635a8efbc1a"
"sourceCodeHash": "0x8eaa4ae13f6ee56e37655fdd9774b1f5c4e5206269584d9c9362ae8fa3ce8145"
},
"src/dispute/AnchorStateRegistry.sol": {
"initCodeHash": "0xc29a6c0948e22bf8073293102159cb6ce91b3cde73037eb49f05a1c5419d05e4",
"sourceCodeHash": "0x0b2977b8cb3d73b8e05d8611ec08838fd51f7e95dd37bf927b54686bc4354ae4"
"sourceCodeHash": "0x7dcaa1ad0cd6b7b0dcd130bc0c8129d166729abf00559ebed13271db1150bacb"
},
"src/dispute/DelayedWETH.sol": {
"initCodeHash": "0xdd023ffc9dc40649053a058d10b4b4c5bdd5077f4c77eaa39e80bb93830f7ad8",
"sourceCodeHash": "0x2a2c50f77fbf5529e074413929432b78d58b4409d93fb260e88f91cfea4c80f6"
"initCodeHash": "0x1bb1fc4dddaffd8dbb987ff602ca89e62dbd1016efa4c7b07b86dbeea9fcdc6d",
"sourceCodeHash": "0x515ca8dc1c42adda3d603e7e46f5f8c50b626cdb4f090151be25cdfbc72696bc"
},
"src/dispute/DisputeGameFactory.sol": {
"initCodeHash": "0xeacc306ba71f2e05ccead297d6272366fb6cecd871e6f8c321236eeb51bb33eb",
"sourceCodeHash": "0x2bf3766954b8b7995ca8c0b0595a0e4a5f8302200b7434e04fd7a1114705f957"
"sourceCodeHash": "0xfb2ad088df5b86b42edaaa776397fa038ae82cf8f63c23851816512f30b42b1e"
},
"src/dispute/FaultDisputeGame.sol": {
"initCodeHash": "0x43673c060896d5016e18370f96b21a75b5fe33dd8ae15947d9653525bab25e93",
"sourceCodeHash": "0xf215c06ae4de0357f4af7222a18ab33426454ad47563220986fb48c507172da5"
"initCodeHash": "0x5775bf37ae59938cfb5bc56831971b44dd47b2a961a7fa508daab526d0c745e2",
"sourceCodeHash": "0x204bbfe718af65181720ea2d11ed684edcbb876f14a2d961d968a2c59ccb04a8"
},
"src/legacy/DeployerWhitelist.sol": {
"initCodeHash": "0xe70fdbbc28258b6a8a8efbff65ea09cf66088a0e04cb1b761ae764ce3df2e525",
Expand Down Expand Up @@ -197,7 +197,7 @@
},
"src/safe/DeputyGuardianModule.sol": {
"initCodeHash": "0xbce44eeec1dfee3de1151d508620f9b3acbbe7adf7ebb2eb85e1b53481c9dcf2",
"sourceCodeHash": "0xff5373c18a3ad6bbac2f598522e03986d1c1c8f5e3626899391b7d4192dba52e"
"sourceCodeHash": "0x7c2f3d198714a9d54444a773a82ef9ef1fef9ed88b59c27c10b48c3ac1bb5753"
},
"src/safe/LivenessGuard.sol": {
"initCodeHash": "0xf82b33e3d7caef8e4e53811c7fe44b7af1f4211280e2b7b62ace275320083fff",
Expand All @@ -209,18 +209,18 @@
},
"src/universal/OptimismMintableERC20.sol": {
"initCodeHash": "0xa708a1709eba4e9c3f059788303346712e65a79d521911bff13d2542749096e9",
"sourceCodeHash": "0x1867b4973c089c0faaa382bda194a4c5c3fce63b20c0e193594859876d506089"
"sourceCodeHash": "0x8ab3c5b13a8346202eae6c0202e7eba358378e3f0a9bb79dfa74409ac41ca76a"
},
"src/universal/OptimismMintableERC20Factory.sol": {
"initCodeHash": "0x1f47930c9ec30f3710ca31620e2569d1555ede2ff7c7bd1b956b5b5c34049e53",
"sourceCodeHash": "0x1401ebe62da2a30cc8f732394e22695800c6d9769ca9f227063306a15dee6f91"
},
"src/universal/OptimismMintableERC721.sol": {
"initCodeHash": "0x8eb2b84d5b4b4cf99e02121dd371a172c4d29d6842fc5cfd9d9711b006cb465f",
"sourceCodeHash": "0xa6aa94554b4a63a743b3335efabacb4c8ef5268b90174ce282301ebdc3fe3041"
"initCodeHash": "0xee7d06795d0838fd50656ab5969a8d20e8d9a29080e2ff95ccccf71530737513",
"sourceCodeHash": "0xcc278a9272bc526237cfbca9167537d2c55490b1ce3e143caa9567c00c660778"
},
"src/universal/OptimismMintableERC721Factory.sol": {
"initCodeHash": "0xf91339c031723e85b26251473acd616d5594d82c242961167509101cd7035ae2",
"initCodeHash": "0x8c792484a4feb906d4904fd3d182c7d840916d5513646ed36a9201ce09869e5a",
"sourceCodeHash": "0x699714ca7d599e932970426021ed2fdba2aaa2fafbbcb6df5937555f544bdd08"
},
"src/universal/StorageSetter.sol": {
Expand All @@ -235,3 +235,4 @@
"initCodeHash": "0xac1bceaa3cb471af950b806edb86bf05ac8b5e4463b617a3f529cc206d7c0e79",
"sourceCodeHash": "0x4a02c5f2cb4f30a037d326a23a62485095c76836caa3c1d7a52765bcf394bcc1"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;
pragma solidity 0.8.25;

// Testing utilities
import { Bridge_Initializer } from "test/setup/Bridge_Initializer.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;
pragma solidity 0.8.25;

// Testing utilities
import { Bridge_Initializer } from "test/setup/Bridge_Initializer.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;
pragma solidity 0.8.25;

// Testing utilities
import { Bridge_Initializer } from "test/setup/Bridge_Initializer.sol";
Expand Down

0 comments on commit 382cc0a

Please sign in to comment.