Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 5 from a total of 5 transactions
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
17444709 | 593 days ago | 0.43901281 ETH | ||||
16979342 | 659 days ago | 0.00009952 ETH | ||||
16979320 | 659 days ago | 0.00010268 ETH | ||||
16979300 | 659 days ago | 0.00010786 ETH | ||||
16979171 | 659 days ago | 0.00010673 ETH | ||||
16979110 | 659 days ago | 0.00011388 ETH | ||||
16978984 | 659 days ago | 0.00006528 ETH | ||||
16978977 | 659 days ago | 0.00006447 ETH | ||||
16978953 | 659 days ago | 0.00007038 ETH | ||||
16978932 | 659 days ago | 0.00006494 ETH | ||||
16978925 | 659 days ago | 0.00006826 ETH | ||||
16978797 | 659 days ago | 0.00007208 ETH | ||||
16978783 | 659 days ago | 0.00007245 ETH | ||||
16978635 | 659 days ago | 0.00006459 ETH | ||||
16978606 | 659 days ago | 0.00006892 ETH | ||||
16978581 | 659 days ago | 0.00007062 ETH | ||||
16978549 | 659 days ago | 0.00007096 ETH | ||||
16978471 | 659 days ago | 0.00008441 ETH | ||||
16978402 | 659 days ago | 0.00009904 ETH | ||||
16978304 | 659 days ago | 0.00006457 ETH | ||||
16978200 | 659 days ago | 0.00010104 ETH | ||||
16978177 | 659 days ago | 0.00011919 ETH | ||||
16978104 | 659 days ago | 0.0001172 ETH | ||||
16977948 | 659 days ago | 0.00009263 ETH | ||||
16977946 | 659 days ago | 0.0000996 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x8FF53dE7...9E3B0c87a The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
ArbitrumMessengerWrapper
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 50000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // @unsupported: ovm pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/access/Ownable.sol"; import "../interfaces/arbitrum/messengers/IInbox.sol"; import "../interfaces/arbitrum/messengers/IBridge.sol"; import "../interfaces/arbitrum/messengers/IOutbox.sol"; import "./MessengerWrapper.sol"; /** * @dev A MessengerWrapper for Arbitrum - https://developer.offchainlabs.com/ * @notice Deployed on layer-1 */ contract ArbitrumMessengerWrapper is MessengerWrapper, Ownable { IInbox public immutable l1MessengerAddress; address public l2BridgeAddress; constructor( address _l1BridgeAddress, address _l2BridgeAddress, IInbox _l1MessengerAddress ) public MessengerWrapper(_l1BridgeAddress) { l2BridgeAddress = _l2BridgeAddress; l1MessengerAddress = _l1MessengerAddress; } receive() external payable {} /** * @dev Sends a message to the l2BridgeAddress from layer-1 * @param _calldata The data that l2BridgeAddress will be called with */ function sendCrossDomainMessage(bytes memory _calldata) public override onlyL1Bridge { uint256 submissionFee = l1MessengerAddress.calculateRetryableSubmissionFee(_calldata.length, 0); l1MessengerAddress.unsafeCreateRetryableTicket{value: submissionFee}( l2BridgeAddress, 0, submissionFee, address(0), address(0), 0, 0, _calldata ); } function verifySender(address l1BridgeCaller, bytes memory /*_data*/) public override { // Reference: https://github.com/OffchainLabs/arbitrum/blob/5c06d89daf8fa6088bcdba292ffa6ed0c72afab2/packages/arb-bridge-peripherals/contracts/tokenbridge/ethereum/L1ArbitrumMessenger.sol#L89 IBridge arbBridge = l1MessengerAddress.bridge(); IOutbox outbox = IOutbox(arbBridge.activeOutbox()); address l2ToL1Sender = outbox.l2ToL1Sender(); require(l1BridgeCaller == address(arbBridge), "ARB_MSG_WPR: Caller is not the bridge"); require(l2ToL1Sender == l2BridgeAddress, "ARB_MSG_WPR: Invalid cross-domain sender"); } /** * @dev Claim excess funds * @param recipient The recipient to send to * @param amount The amount to claim */ function claimFunds(address payable recipient, uint256 amount) public onlyOwner { recipient.transfer(amount); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// Copyright 2021-2022, Offchain Labs, Inc. // For license information, see https://github.com/nitro/blob/master/LICENSE // SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.6.11; import "./IBridge.sol"; interface IInbox { function sendL2Message(bytes calldata messageData) external returns (uint256); function bridge() external view returns (IBridge); function unsafeCreateRetryableTicket( address to, uint256 l2CallValue, uint256 maxSubmissionCost, address excessFeeRefundAddress, address callValueRefundAddress, uint256 gasLimit, uint256 maxFeePerGas, bytes calldata data ) external payable returns (uint256); function calculateRetryableSubmissionFee(uint256 dataLength, uint256 baseFee) external returns (uint256); }
// Copyright 2021-2022, Offchain Labs, Inc. // For license information, see https://github.com/nitro/blob/master/LICENSE // SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.6.11; interface IBridge { function activeOutbox() external view returns (address); }
// Copyright 2021-2022, Offchain Labs, Inc. // For license information, see https://github.com/nitro/blob/master/LICENSE // SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.6.11; interface IOutbox { function l2ToL1Sender() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.12 <=0.8.9; pragma experimental ABIEncoderV2; import "../interfaces/IMessengerWrapper.sol"; abstract contract MessengerWrapper is IMessengerWrapper { address public immutable l1BridgeAddress; constructor(address _l1BridgeAddress) internal { l1BridgeAddress = _l1BridgeAddress; } modifier onlyL1Bridge { require(msg.sender == l1BridgeAddress, "MW: Sender must be the L1 Bridge"); _; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.12 <=0.8.9; pragma experimental ABIEncoderV2; interface IMessengerWrapper { function sendCrossDomainMessage(bytes memory _calldata) external; function verifySender(address l1BridgeCaller, bytes memory _data) external; }
{ "optimizer": { "enabled": true, "runs": 50000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_l1BridgeAddress","type":"address"},{"internalType":"address","name":"_l2BridgeAddress","type":"address"},{"internalType":"contract IInbox","name":"_l1MessengerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"l1BridgeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"l1MessengerAddress","outputs":[{"internalType":"contract IInbox","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"l2BridgeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_calldata","type":"bytes"}],"name":"sendCrossDomainMessage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"l1BridgeCaller","type":"address"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"verifySender","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Deployed Bytecode
0x60806040526004361061009a5760003560e01c8063934746a711610069578063c5deebb31161004e578063c5deebb314610152578063ed2b40ea14610167578063f2fde38b14610187576100a1565b8063934746a71461011d57806399178dd814610132576100a1565b8063419cb550146100a65780635ab2a558146100c8578063715018a6146100f35780638da5cb5b14610108576100a1565b366100a157005b600080fd5b3480156100b257600080fd5b506100c66100c1366004610aed565b6101a7565b005b3480156100d457600080fd5b506100dd6103ca565b6040516100ea9190610b40565b60405180910390f35b3480156100ff57600080fd5b506100c66103ee565b34801561011457600080fd5b506100dd6104d0565b34801561012957600080fd5b506100dd6104ec565b34801561013e57600080fd5b506100c661014d366004610a9f565b610508565b34801561015e57600080fd5b506100dd61076e565b34801561017357600080fd5b506100c6610182366004610a74565b610792565b34801561019357600080fd5b506100c66101a2366004610a35565b610848565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000b8901acb165ed027e32754e0ffe830802919727f161461021f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021690610d18565b60405180910390fd5b80516040517fa66b327d00000000000000000000000000000000000000000000000000000000815260009173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000004dbd4fc535ac27206064b68ffcf827b0a60bab3f169163a66b327d91610296918590600401610daa565b602060405180830381600087803b1580156102b057600080fd5b505af11580156102c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e89190610b28565b6001546040517f6e6e8a6a00000000000000000000000000000000000000000000000000000000815291925073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000004dbd4fc535ac27206064b68ffcf827b0a60bab3f811692636e6e8a6a92859261037392911690600090849082908190819081908d90600401610b61565b6020604051808303818588803b15801561038c57600080fd5b505af11580156103a0573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906103c59190610b28565b505050565b7f000000000000000000000000b8901acb165ed027e32754e0ffe830802919727f81565b6103f6610995565b73ffffffffffffffffffffffffffffffffffffffff166104146104d0565b73ffffffffffffffffffffffffffffffffffffffff1614610461576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021690610ce3565b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60007f0000000000000000000000004dbd4fc535ac27206064b68ffcf827b0a60bab3f73ffffffffffffffffffffffffffffffffffffffff1663e78cea926040518163ffffffff1660e01b815260040160206040518083038186803b15801561057057600080fd5b505afa158015610584573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a89190610a58565b905060008173ffffffffffffffffffffffffffffffffffffffff1663ab5d89436040518163ffffffff1660e01b815260040160206040518083038186803b1580156105f257600080fd5b505afa158015610606573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062a9190610a58565b905060008173ffffffffffffffffffffffffffffffffffffffff166380648b026040518163ffffffff1660e01b815260040160206040518083038186803b15801561067457600080fd5b505afa158015610688573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ac9190610a58565b90508273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614610713576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021690610d4d565b60015473ffffffffffffffffffffffffffffffffffffffff828116911614610767576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021690610c86565b5050505050565b7f0000000000000000000000004dbd4fc535ac27206064b68ffcf827b0a60bab3f81565b61079a610995565b73ffffffffffffffffffffffffffffffffffffffff166107b86104d0565b73ffffffffffffffffffffffffffffffffffffffff1614610805576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021690610ce3565b60405173ffffffffffffffffffffffffffffffffffffffff83169082156108fc029083906000818181858888f193505050501580156103c5573d6000803e3d6000fd5b610850610995565b73ffffffffffffffffffffffffffffffffffffffff1661086e6104d0565b73ffffffffffffffffffffffffffffffffffffffff16146108bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021690610ce3565b73ffffffffffffffffffffffffffffffffffffffff8116610908576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021690610c29565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3390565b600082601f8301126109a9578081fd5b813567ffffffffffffffff808211156109c0578283fd5b60405160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011682010181811083821117156109fe578485fd5b604052828152925082848301602001861015610a1957600080fd5b8260208601602083013760006020848301015250505092915050565b600060208284031215610a46578081fd5b8135610a5181610db8565b9392505050565b600060208284031215610a69578081fd5b8151610a5181610db8565b60008060408385031215610a86578081fd5b8235610a9181610db8565b946020939093013593505050565b60008060408385031215610ab1578182fd5b8235610abc81610db8565b9150602083013567ffffffffffffffff811115610ad7578182fd5b610ae385828601610999565b9150509250929050565b600060208284031215610afe578081fd5b813567ffffffffffffffff811115610b14578182fd5b610b2084828501610999565b949350505050565b600060208284031215610b39578081fd5b5051919050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b600061010073ffffffffffffffffffffffffffffffffffffffff808c16845260208b818601528a6040860152818a16606086015281891660808601528760a08601528660c08601528260e08601528551915081838601528392505b81831015610bdb57858301810151858401610120015291820191610bbc565b5080821115610bee578261012082860101525b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01692909201610120019a9950505050505050505050565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f4152425f4d53475f5750523a20496e76616c69642063726f73732d646f6d616960408201527f6e2073656e646572000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252818101527f4d573a2053656e646572206d75737420626520746865204c3120427269646765604082015260600190565b60208082526025908201527f4152425f4d53475f5750523a2043616c6c6572206973206e6f7420746865206260408201527f7269646765000000000000000000000000000000000000000000000000000000606082015260800190565b918252602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff81168114610dda57600080fd5b5056fea26469706673582212202f9c50258b91f62b010cb6ac4118e6f0fe9f7117979b457020fb712b93e9eaa464736f6c634300060c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.