Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x28658fAE...98B906E90 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
MessageRelayMock
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;
import {IMessageRelay} from "../hashi/interfaces/IMessageRelay.sol";
contract MessageRelayMock is IMessageRelay {
event MessageRelayed(address indexed emitter, uint256 indexed messageId);
function relayMessages(
uint256[] memory messageIds,
address adapter
) external payable returns (bytes32 receipts) {
for (uint256 i = 0; i < messageIds.length; i++) {
emit MessageRelayed(address(this), messageIds[i]);
}
return keccak256(abi.encode(messageIds, adapter));
}
}// SPDX-License-Identifier: LGPL-3.0-only
pragma solidity ^0.8.17;
interface IMessageRelay {
function relayMessages(
uint256[] memory messageIds,
address adapter
) external payable returns (bytes32 receipts);
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"viaIR": true,
"evmVersion": "paris",
"libraries": {}
}Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"emitter","type":"address"},{"indexed":true,"internalType":"uint256","name":"messageId","type":"uint256"}],"name":"MessageRelayed","type":"event"},{"inputs":[{"internalType":"uint256[]","name":"messageIds","type":"uint256[]"},{"internalType":"address","name":"adapter","type":"address"}],"name":"relayMessages","outputs":[{"internalType":"bytes32","name":"receipts","type":"bytes32"}],"stateMutability":"payable","type":"function"}]Contract Creation Code
0x6080806040523461001657610214908161001c8239f35b600080fdfe608060409080825260048036101561001657600080fd5b600090813560e01c638781247a1461002d57600080fd5b836003193601126101a25780359267ffffffffffffffff9081851161019e573660238601121561019e578483013591821161018b57600582811b96602093610077858a01856101a6565b835283830196876024809a83010191368311610187578a879101915b8383106101775750505088356001600160a01b03811698915088900361017357865b845181101561010e578581851b86010151307f1ec56558159131145cca16f5f6dfa0cb00baed662a177d318d8bcb00b751820d8a80a360001981146100fc576001016100b5565b634e487b7160e01b8852601187528988fd5b858386848b8d8451928391878301956060840190888852518091526080840192945b8982821061015c5750505061015293508683015203601f1981018352826101a6565b5190209051908152f35b865185529586019587955090930192600101610130565b8680fd5b8235815291810191879101610093565b8880fd5b634e487b7160e01b845260418352602484fd5b8380fd5b5080fd5b90601f8019910116810190811067ffffffffffffffff8211176101c857604052565b634e487b7160e01b600052604160045260246000fdfea26469706673582212205c5d54cb8b782b3b6a7f127d25216f5ae5f62fd5e0ef388e0bce023cf89edb3664736f6c63430008140033
Deployed Bytecode
0x608060409080825260048036101561001657600080fd5b600090813560e01c638781247a1461002d57600080fd5b836003193601126101a25780359267ffffffffffffffff9081851161019e573660238601121561019e578483013591821161018b57600582811b96602093610077858a01856101a6565b835283830196876024809a83010191368311610187578a879101915b8383106101775750505088356001600160a01b03811698915088900361017357865b845181101561010e578581851b86010151307f1ec56558159131145cca16f5f6dfa0cb00baed662a177d318d8bcb00b751820d8a80a360001981146100fc576001016100b5565b634e487b7160e01b8852601187528988fd5b858386848b8d8451928391878301956060840190888852518091526080840192945b8982821061015c5750505061015293508683015203601f1981018352826101a6565b5190209051908152f35b865185529586019587955090930192600101610130565b8680fd5b8235815291810191879101610093565b8880fd5b634e487b7160e01b845260418352602484fd5b8380fd5b5080fd5b90601f8019910116810190811067ffffffffffffffff8211176101c857604052565b634e487b7160e01b600052604160045260246000fdfea26469706673582212205c5d54cb8b782b3b6a7f127d25216f5ae5f62fd5e0ef388e0bce023cf89edb3664736f6c63430008140033
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.