Skip to content

Commit

Permalink
evm: uptick solc 0.8.22; fix .gas-snapshot-current
Browse files Browse the repository at this point in the history
  • Loading branch information
a5-pickle committed Dec 20, 2023
1 parent 3648134 commit 967f0dc
Show file tree
Hide file tree
Showing 29 changed files with 60 additions and 60 deletions.
64 changes: 32 additions & 32 deletions evm/.gas-snapshot-current
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
CircleIntegrationComparison:test_Composed__RedeemUsdc(uint256,bytes32,bytes32) (runs: 256, μ: 271959, ~: 271835)
CircleIntegrationComparison:test_Composed__TransferUsdc(uint256,bytes32,bytes32) (runs: 256, μ: 393812, ~: 393808)
CircleIntegrationComparison:test_Control__RedeemTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 73879, ~: 73746)
CircleIntegrationComparison:test_Control__TransferTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 211909, ~: 211921)
CircleIntegrationComparison:test_Fork__RedeemTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 278944, ~: 278895)
CircleIntegrationComparison:test_Fork__TransferTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 369996, ~: 369998)
CircleIntegrationComparison:test_Inherited__RedeemUsdc(uint256,bytes32,bytes32) (runs: 256, μ: 230401, ~: 230271)
CircleIntegrationComparison:test_Inherited__TransferUsdc(uint256,bytes32,bytes32) (runs: 256, μ: 345229, ~: 345220)
CircleIntegrationComparison:test_Latest__RedeemTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 255620, ~: 255666)
CircleIntegrationComparison:test_Latest__TransferTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 361165, ~: 361164)
CircleIntegrationComparison:test_Composed__RedeemUsdc(uint256,bytes32,bytes32) (runs: 256, μ: 271983, ~: 271924)
CircleIntegrationComparison:test_Composed__TransferUsdc(uint256,bytes32,bytes32) (runs: 256, μ: 389671, ~: 389667)
CircleIntegrationComparison:test_Control__RedeemTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 73879, ~: 73749)
CircleIntegrationComparison:test_Control__TransferTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 207779, ~: 207783)
CircleIntegrationComparison:test_Fork__RedeemTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 278942, ~: 278898)
CircleIntegrationComparison:test_Fork__TransferTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 365857, ~: 365857)
CircleIntegrationComparison:test_Inherited__RedeemUsdc(uint256,bytes32,bytes32) (runs: 256, μ: 230381, ~: 230322)
CircleIntegrationComparison:test_Inherited__TransferUsdc(uint256,bytes32,bytes32) (runs: 256, μ: 341198, ~: 341198)
CircleIntegrationComparison:test_Latest__RedeemTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 255627, ~: 255566)
CircleIntegrationComparison:test_Latest__TransferTokensWithPayload(uint256,bytes32,bytes32) (runs: 256, μ: 357032, ~: 357028)
CircleIntegrationTest:test_CannotRedeemTokensWithPayloadCallerMustBeMintRecipient(address) (runs: 256, μ: 76122, ~: 76122)
CircleIntegrationTest:test_CannotRedeemTokensWithPayloadInvalidMessagePair() (gas: 95754)
CircleIntegrationTest:test_CannotRedeemTokensWithPayloadMintTokenNotSupported(bytes32) (runs: 256, μ: 143314, ~: 143314)
CircleIntegrationTest:test_CannotRedeemTokensWithPayloadUnknownEmitter(bytes32) (runs: 256, μ: 206424, ~: 206417)
CircleIntegrationTest:test_CannotTransferTokensWithPayloadInvalidMintRecipient() (gas: 247193)
CircleIntegrationTest:test_CannotTransferTokensWithPayloadInvalidToken() (gas: 250248)
CircleIntegrationTest:test_CannotTransferTokensWithPayloadTargetContractNotRegistered() (gas: 199868)
CircleIntegrationTest:test_CannotTransferTokensWithPayloadZeroAmount() (gas: 55797)
CircleIntegrationTest:test_RedeemTokensWithPayload() (gas: 244194)
CircleIntegrationTest:test_TransferTokensWithPayload(uint256,bytes32) (runs: 256, μ: 491809, ~: 491772)
GovernanceTest:test_CannotConsumeGovernanceMessageInvalidAction(uint8,uint8) (runs: 256, μ: 80055, ~: 80055)
GovernanceTest:test_CannotConsumeGovernanceMessageInvalidGovernanceChainId(uint16,uint8) (runs: 256, μ: 77936, ~: 77936)
GovernanceTest:test_CannotConsumeGovernanceMessageInvalidGovernanceContract(bytes32,uint8) (runs: 256, μ: 77665, ~: 77665)
GovernanceTest:test_CannotConsumeGovernanceMessageInvalidModule(bytes32,uint8) (runs: 256, μ: 79779, ~: 79779)
GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidDomain(uint16,bytes32) (runs: 256, μ: 113833, ~: 113833)
GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidEmitterAddress(uint16,uint32) (runs: 256, μ: 114714, ~: 114714)
GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidForeignChain(bytes32,uint32) (runs: 256, μ: 187311, ~: 187311)
CircleIntegrationTest:test_CannotRedeemTokensWithPayloadInvalidMessagePair() (gas: 95728)
CircleIntegrationTest:test_CannotRedeemTokensWithPayloadMintTokenNotSupported(bytes32) (runs: 256, μ: 143305, ~: 143298)
CircleIntegrationTest:test_CannotRedeemTokensWithPayloadUnknownEmitter(bytes32) (runs: 256, μ: 206423, ~: 206415)
CircleIntegrationTest:test_CannotTransferTokensWithPayloadInvalidMintRecipient() (gas: 243114)
CircleIntegrationTest:test_CannotTransferTokensWithPayloadInvalidToken() (gas: 247595)
CircleIntegrationTest:test_CannotTransferTokensWithPayloadTargetContractNotRegistered() (gas: 195787)
CircleIntegrationTest:test_CannotTransferTokensWithPayloadZeroAmount() (gas: 55800)
CircleIntegrationTest:test_RedeemTokensWithPayload() (gas: 244219)
CircleIntegrationTest:test_TransferTokensWithPayload(uint256,bytes32) (runs: 256, μ: 487769, ~: 487727)
GovernanceTest:test_CannotConsumeGovernanceMessageInvalidAction(uint8,uint8) (runs: 256, μ: 80052, ~: 80052)
GovernanceTest:test_CannotConsumeGovernanceMessageInvalidGovernanceChainId(uint16,uint8) (runs: 256, μ: 77927, ~: 77927)
GovernanceTest:test_CannotConsumeGovernanceMessageInvalidGovernanceContract(bytes32,uint8) (runs: 256, μ: 77662, ~: 77662)
GovernanceTest:test_CannotConsumeGovernanceMessageInvalidModule(bytes32,uint8) (runs: 256, μ: 79776, ~: 79776)
GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidDomain(uint16,bytes32) (runs: 256, μ: 113836, ~: 113836)
GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidEmitterAddress(uint16,uint32) (runs: 256, μ: 114711, ~: 114711)
GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidForeignChain(bytes32,uint32) (runs: 256, μ: 187305, ~: 187305)
GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidLength(uint16,bytes32,uint32) (runs: 256, μ: 115441, ~: 115441)
GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidTargetChain(uint16,uint16,bytes32,uint32) (runs: 256, μ: 115162, ~: 115162)
GovernanceTest:test_CannotUpdateWormholeFinalityUnsupportedGovernanceAction(uint8) (runs: 256, μ: 52501, ~: 52501)
GovernanceTest:test_CannotUpgradeContractInvalidImplementation(bytes12,address) (runs: 256, μ: 237166, ~: 237166)
GovernanceTest:test_RegisterEmitterAndDomain(uint16,bytes32,uint32) (runs: 256, μ: 260950, ~: 260950)
GovernanceTest:test_CannotRegisterEmitterAndDomainInvalidTargetChain(uint16,uint16,bytes32,uint32) (runs: 256, μ: 115159, ~: 115159)
GovernanceTest:test_CannotUpdateWormholeFinalityUnsupportedGovernanceAction(uint8) (runs: 256, μ: 52498, ~: 52498)
GovernanceTest:test_CannotUpgradeContractInvalidImplementation(bytes12,address) (runs: 256, μ: 237112, ~: 237112)
GovernanceTest:test_RegisterEmitterAndDomain(uint16,bytes32,uint32) (runs: 256, μ: 260947, ~: 260947)
GovernanceTest:test_RegisterEmitterAndDomainNoTarget() (gas: 196350)
GovernanceTest:test_UpgradeContract() (gas: 2387383)
InheritingWormholeCctpTest:test_TransferUsdc(uint256,bytes32) (runs: 256, μ: 364187, ~: 364148)
GovernanceTest:test_UpgradeContract() (gas: 2372528)
InheritingWormholeCctpTest:test_TransferUsdc(uint256,bytes32) (runs: 256, μ: 360180, ~: 360142)
MessagesTest:test_DepositWithPayloadSerde(bytes32,uint256,uint32,uint32,uint64,bytes32,bytes32,bytes) (runs: 256, μ: 7871, ~: 7706)
2 changes: 1 addition & 1 deletion evm/forge/scripts/deploy_contracts.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import "forge-std/Script.sol";
import "forge-std/console2.sol";
Expand Down
2 changes: 1 addition & 1 deletion evm/forge/scripts/deploy_implementation_only.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import "forge-std/Script.sol";
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion evm/forge/scripts/deploy_mock_contracts.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import "forge-std/Script.sol";
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion evm/forge/scripts/read_governance_variables.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import "forge-std/Script.sol";
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion evm/forge/scripts/submit_testnet_registration.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import "forge-std/Script.sol";
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion evm/forge/tests/CircleIntegration.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache 2
pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import "forge-std/Test.sol";
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion evm/forge/tests/Governance.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache 2
pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import "forge-std/Test.sol";
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion evm/forge/tests/InheritingWormholeCctp.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache 2
pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import "forge-std/Test.sol";
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion evm/forge/tests/WormholeCctpMessages.t.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import "forge-std/Test.sol";
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion evm/forge/tests/gas/CircleIntegrationComparison.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache 2
pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import "forge-std/Test.sol";
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion evm/forge/tests/helpers/IUSDC.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

interface IUSDC {
function mint(address to, uint256 amount) external;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache 2
pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import {ICircleIntegration} from "src/interfaces/ICircleIntegration.sol";
import {IMessageTransmitter} from "src/interfaces/IMessageTransmitter.sol";
Expand Down
2 changes: 1 addition & 1 deletion evm/forge/tests/helpers/libraries/WormholeOverride.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache 2
pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import {IWormhole} from "src/interfaces/IWormhole.sol";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion evm/forge/tests/integrations/InheritingWormholeCctp.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import {IWormhole} from "src/interfaces/IWormhole.sol";

Expand Down
2 changes: 1 addition & 1 deletion evm/foundry-test.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[profile.default]
solc_version = "0.8.19"
solc_version = "0.8.22"
optimizer = true
optimizer_runs = 200
evm_version = "paris"
Expand Down
2 changes: 1 addition & 1 deletion evm/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
line_length=100

[profile.default]
solc_version = "0.8.19"
solc_version = "0.8.22"
optimizer = true
optimizer_runs = 200
evm_version = "paris"
Expand Down
2 changes: 1 addition & 1 deletion evm/modules/src/WormholeSimulator.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache 2
pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import {IWormhole} from "src/interfaces/IWormhole.sol";
import {BytesParsing} from "src/libraries/BytesParsing.sol";
Expand Down
2 changes: 1 addition & 1 deletion evm/src/contracts/CircleIntegration/Governance.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache 2
pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import {ERC1967Upgrade} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol";

Expand Down
2 changes: 1 addition & 1 deletion evm/src/contracts/CircleIntegration/Implementation.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache 2
pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import {ERC1967Upgrade} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol";

Expand Down
2 changes: 1 addition & 1 deletion evm/src/contracts/CircleIntegration/Logic.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import {IWormhole} from "src/interfaces/IWormhole.sol";
import {IMessageTransmitter} from "src/interfaces/IMessageTransmitter.sol";
Expand Down
2 changes: 1 addition & 1 deletion evm/src/contracts/CircleIntegration/Setup.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache 2
pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import {ERC1967Upgrade} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol";
import {Context} from "@openzeppelin/contracts/utils/Context.sol";
Expand Down
2 changes: 1 addition & 1 deletion evm/src/contracts/CircleIntegration/State.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import {WormholeCctp} from "src/contracts/WormholeCctp.sol";

Expand Down
2 changes: 1 addition & 1 deletion evm/src/contracts/CircleIntegration/Storage.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

/**
* struct State {
Expand Down
2 changes: 1 addition & 1 deletion evm/src/contracts/WormholeCctp.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion evm/src/libraries/BytesParsing.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

library BytesParsing {
uint256 private constant freeMemoryPtr = 0x40;
Expand Down
2 changes: 1 addition & 1 deletion evm/src/libraries/Utils.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

library Utils {
error AddressOverflow(bytes32 addr);
Expand Down
2 changes: 1 addition & 1 deletion evm/src/libraries/WormholeCctpMessages.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.19;
pragma solidity ^0.8.22;

import {IWormhole} from "src/interfaces/IWormhole.sol";

Expand Down

0 comments on commit 967f0dc

Please sign in to comment.