Skip to content

Commit

Permalink
fix: unused import and visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
gzeoneth committed Aug 15, 2024
1 parent 9e8f24d commit f2a20c1
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 18 deletions.
1 change: 0 additions & 1 deletion src/bridge/AbsInbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
InsufficientSubmissionCost,
L1Forked,
NotAllowedOrigin,
NotOrigin,
NotRollupOrOwner,
RetryableData
} from "../libraries/Error.sol";
Expand Down
2 changes: 0 additions & 2 deletions src/bridge/Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import "./IEthBridge.sol";
import "./Messages.sol";
import "../libraries/DelegateCallAware.sol";

import {L1MessageType_batchPostingReport} from "../libraries/MessageTypes.sol";

/**
* @title Staging ground for incoming and outgoing messages
* @notice It is also the ETH escrow for value sent with these messages.
Expand Down
1 change: 0 additions & 1 deletion src/bridge/ERC20Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
CallNotAllowed,
NativeTokenDecimalsTooLarge
} from "../libraries/Error.sol";
import {DecimalsConverterHelper} from "../libraries/DecimalsConverterHelper.sol";
import {MAX_ALLOWED_NATIVE_TOKEN_DECIMALS} from "../libraries/Constants.sol";

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
Expand Down
6 changes: 0 additions & 6 deletions src/bridge/Inbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ pragma solidity ^0.8.4;

import {
NotOrigin,
DataTooLarge,
InsufficientValue,
InsufficientSubmissionCost,
RetryableData,
L1Forked,
NotForked,
GasLimitTooLarge
} from "../libraries/Error.sol";
Expand All @@ -22,7 +17,6 @@ import "../libraries/AddressAliasHelper.sol";
import {
L2_MSG,
L1MessageType_L2FundedByL1,
L1MessageType_submitRetryableTx,
L1MessageType_ethDeposit,
L2MessageType_unsignedEOATx,
L2MessageType_unsignedContractTx
Expand Down
2 changes: 0 additions & 2 deletions src/bridge/SequencerInbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ pragma solidity ^0.8.0;
import {
AlreadyInit,
HadZeroInit,
BadPostUpgradeInit,
NotOrigin,
DataTooLarge,
DelayedBackwards,
Expand Down Expand Up @@ -45,7 +44,6 @@ import "../precompiles/ArbGasInfo.sol";
import "../precompiles/ArbSys.sol";
import "../libraries/IReader4844.sol";

import {L1MessageType_batchPostingReport} from "../libraries/MessageTypes.sol";
import "../libraries/DelegateCallAware.sol";
import {IGasRefunder} from "../libraries/IGasRefunder.sol";
import {GasRefundEnabled} from "../libraries/GasRefundEnabled.sol";
Expand Down
3 changes: 1 addition & 2 deletions src/chain/CacheManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ contract CacheManager is Initializable, DelegateCallAware {
/// @notice Sends all revenue to the network fee account.
function sweepFunds() external {
(bool success, bytes memory data) =
// solhint-disable-next-line avoid-low-level-calls
ARB_OWNER_PUBLIC.getNetworkFeeAccount().call{value: address(this).balance}("");
ARB_OWNER_PUBLIC.getNetworkFeeAccount().call{value: address(this).balance}("");
if (!success) {
assembly {
revert(add(data, 32), mload(data))
Expand Down
2 changes: 0 additions & 2 deletions src/libraries/DecimalsConverterHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

pragma solidity ^0.8.0;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";

library DecimalsConverterHelper {
/// @notice generic function for mapping amount from one decimal denomination to another
/// @dev Ie. let's say amount is 752. If token has 16 decimals and is being adjusted to
Expand Down
1 change: 0 additions & 1 deletion src/rollup/AbsRollupEventInbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import "../precompiles/ArbGasInfo.sol";
import "../libraries/ArbitrumChecker.sol";
import "../bridge/IDelayedMessageProvider.sol";
import "../libraries/DelegateCallAware.sol";
import {INITIALIZATION_MSG_TYPE} from "../libraries/MessageTypes.sol";
import {AlreadyInit, HadZeroInit, RollupNotChanged} from "../libraries/Error.sol";

/**
Expand Down
1 change: 0 additions & 1 deletion src/rollup/RollupUserLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {IRollupUser} from "./IRollupLogic.sol";
import "../libraries/UUPSNotUpgradeable.sol";
import "./RollupCore.sol";
import "./IRollupLogic.sol";
import {ETH_POS_BLOCK_TIME} from "../libraries/Constants.sol";

contract RollupUserLogic is RollupCore, UUPSNotUpgradeable, IRollupUser {
using AssertionNodeLib for AssertionNode;
Expand Down

0 comments on commit f2a20c1

Please sign in to comment.