From 2be839cf4d6c722d74d77e1a82efb122fad83aae Mon Sep 17 00:00:00 2001 From: Kolby Moroz Liebl <31669092+KolbyML@users.noreply.github.com> Date: Thu, 16 Oct 2025 15:54:33 -0600 Subject: [PATCH 1/2] ArbDebug: add overwriteContractCode interface --- ArbDebug.sol | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ArbDebug.sol b/ArbDebug.sol index ac42b4d..c39ed7c 100644 --- a/ArbDebug.sol +++ b/ArbDebug.sol @@ -12,6 +12,12 @@ interface ArbDebug { /// @notice Caller becomes a chain owner function becomeChainOwner() external; + /// @notice Overwrite an existing contract's code + function overwriteContractCode( + address target, + bytes calldata newCode + ) external returns (bytes memory oldCode); + /// @notice Emit events with values based on the args provided function events(bool flag, bytes32 value) external payable returns (address, uint256); From c7b5bf44de99207de2b9db881e7cef0359276929 Mon Sep 17 00:00:00 2001 From: Kolby Moroz Liebl <31669092+KolbyML@users.noreply.github.com> Date: Thu, 16 Oct 2025 16:16:46 -0600 Subject: [PATCH 2/2] fix ci failing --- ArbAggregator.sol | 10 ++++++++-- ArbDebug.sol | 5 ++++- ArbFunctionTable.sol | 5 ++++- ArbOwner.sol | 10 ++++++++-- ArbStatistics.sol | 5 +---- 5 files changed, 25 insertions(+), 10 deletions(-) diff --git a/ArbAggregator.sol b/ArbAggregator.sol index 03dd42d..b538bc8 100644 --- a/ArbAggregator.sol +++ b/ArbAggregator.sol @@ -41,7 +41,10 @@ interface ArbAggregator { /// This reverts unless called by the batch poster, its fee collector, or a chain owner /// @param batchPoster The batch poster to set the fee collector for /// @param newFeeCollector The new fee collector to set - function setFeeCollector(address batchPoster, address newFeeCollector) external; + function setFeeCollector( + address batchPoster, + address newFeeCollector + ) external; /// @notice Deprecated, always returns zero /// @notice Get the tx base fee (in approximate L1 gas) for aggregator @@ -56,5 +59,8 @@ interface ArbAggregator { /// Revert if feeInL1Gas is outside the chain's allowed bounds /// @param aggregator The aggregator to set the fee for /// @param feeInL1Gas The base fee in L1 gas - function setTxBaseFee(address aggregator, uint256 feeInL1Gas) external; + function setTxBaseFee( + address aggregator, + uint256 feeInL1Gas + ) external; } diff --git a/ArbDebug.sol b/ArbDebug.sol index c39ed7c..d9be082 100644 --- a/ArbDebug.sol +++ b/ArbDebug.sol @@ -19,7 +19,10 @@ interface ArbDebug { ) external returns (bytes memory oldCode); /// @notice Emit events with values based on the args provided - function events(bool flag, bytes32 value) external payable returns (address, uint256); + function events( + bool flag, + bytes32 value + ) external payable returns (address, uint256); /// @notice Tries (and fails) to emit logs in a view context function eventsView() external view; diff --git a/ArbFunctionTable.sol b/ArbFunctionTable.sol index be2b30e..9d9c207 100644 --- a/ArbFunctionTable.sol +++ b/ArbFunctionTable.sol @@ -22,5 +22,8 @@ interface ArbFunctionTable { ) external view returns (uint256); /// @notice No-op - function get(address addr, uint256 index) external view returns (uint256, bool, uint256); + function get( + address addr, + uint256 index + ) external view returns (uint256, bool, uint256); } diff --git a/ArbOwner.sol b/ArbOwner.sol index ac6963a..29e1165 100644 --- a/ArbOwner.sol +++ b/ArbOwner.sol @@ -121,7 +121,10 @@ interface ArbOwner { ) external; /// @notice Upgrades ArbOS to the requested version at the requested timestamp - function scheduleArbOSUpgrade(uint64 newVersion, uint64 timestamp) external; + function scheduleArbOSUpgrade( + uint64 newVersion, + uint64 timestamp + ) external; /// @notice Sets equilibration units parameter for L1 price adjustment algorithm function setL1PricingEquilibrationUnits( @@ -217,7 +220,10 @@ interface ArbOwner { /// @notice Available in ArbOS version 30 and above /// @param gas amount of gas paid in increments of 256 when not the program is not cached /// @param cached amount of gas paid in increments of 64 when the program is cached - function setWasmMinInitGas(uint8 gas, uint16 cached) external; + function setWasmMinInitGas( + uint8 gas, + uint16 cached + ) external; /// @notice Sets the linear adjustment made to program init costs. /// @notice Available in ArbOS version 30 and above diff --git a/ArbStatistics.sol b/ArbStatistics.sol index f5ae31c..0238f52 100644 --- a/ArbStatistics.sol +++ b/ArbStatistics.sol @@ -15,8 +15,5 @@ interface ArbStatistics { /// Number of transaction receipt issued, /// Number of contracts created, /// ) - function getStats() - external - view - returns (uint256, uint256, uint256, uint256, uint256, uint256); + function getStats() external view returns (uint256, uint256, uint256, uint256, uint256, uint256); }