Skip to content
Verified contractPartialMIT

OPContractsManagerStandardValidator

Address0xae6153ec750dfb0871b3e2287caacc0c19f9e809
Balance

0 ETH

 

Transactions

0

 

Compiler

solc 0.8.15

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.15+commit.e14f2714
Language
solidity
Optimization
Yes, 200 runs
EVM version
london
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,480,487
Creation transaction
0xddd9a4984f…b14dee3220

50 files

The source code is large: one file is shown at a time. Choose a file in the list.

src/libraries/BridgeHookTypes.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title BridgeHookTypes
/// @notice Contains the types shared by the OptimismPortal and its bridge hook.
library BridgeHookTypes {
    /// @notice Deposit from L1 to L2, or withdrawal from L2 to L1.
    enum Direction {
        Deposit,
        Withdrawal
    }

    /// @notice The asset an item moves. ERC20 is a token transfer between the standard bridges.
    enum Asset {
        ETH,
        ERC20
    }

    /// @notice A deposit or withdrawal with the sender, target, values and data recorded by the
    ///         Portal. Its fields determine its ID, and the full item is emitted when held and
    ///         supplied again for completion.
    /// @custom:field direction  Whether the item is a deposit or a withdrawal.
    /// @custom:field asset      ERC20 when the Portal recognizes a transfer between the standard
    ///                          bridges.
    /// @custom:field from       For a deposit, the L1 sender, aliased if it is a contract. For a
    ///                          withdrawal, the L2 sender.
    /// @custom:field aliased    Whether `from` is aliased.
    /// @custom:field to         Deposit or withdrawal target.
    /// @custom:field ethAmount  A deposit's msg.value or a withdrawal's value. Zero for a token
    ///                          transfer.
    /// @custom:field l2Value    ETH value of the L2 call. Deposits only.
    /// @custom:field gasLimit   Deposit or withdrawal gas limit.
    /// @custom:field isCreation Whether the deposit creates a contract.
    /// @custom:field data       Call or contract creation data. For token transfers, includes the
    ///                          token addresses and amount.
    /// @custom:field nonce      Deposit counter or withdrawal nonce.
    struct Item {
        Direction direction;
        Asset asset;
        address from;
        bool aliased;
        address to;
        uint256 ethAmount;
        uint256 l2Value;
        uint256 gasLimit;
        bool isCreation;
        bytes data;
        uint256 nonce;
    }
}
Compiler settingsShow
{
  "viaIR": false,
  "metadata": {
    "bytecodeHash": "none",
    "useLiteralContent": false
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "london",
  "remappings": [
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "@openzeppelin/contracts-v5/=lib/openzeppelin-contracts-v5/contracts/",
    "@rari-capital/solmate/=lib/solmate/",
    "@lib-keccak/=lib/lib-keccak/contracts/lib/",
    "@solady/=lib/solady/src/",
    "forge-std/=lib/forge-std/src/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "safe-contracts/=lib/safe-contracts/contracts/",
    "kontrol-cheatcodes/=lib/kontrol-cheatcodes/src/",
    "interfaces/=interfaces/",
    "lib/lib-keccak/:solady/=lib/lib-keccak/lib/solady/",
    "lib/lib-keccak/:solady/=lib/lib-keccak/lib/solady/",
    "@solady-test/=lib/lib-keccak/lib/solady/test/",
    "erc4626-tests/=lib/openzeppelin-contracts-v5/lib/erc4626-tests/",
    "lib-keccak/=lib/lib-keccak/contracts/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts-v5/=lib/openzeppelin-contracts-v5/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "solady/=lib/solady/",
    "solmate/=lib/solmate/src/"
  ]
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.