POL Price: $0.318339 (-1.74%)
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FxChildExecutor

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
london EvmVersion
File 1 of 1 : FxChildExecutor.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IFxMessageProcessor {
    function processMessageFromRoot(uint256 stateId, address rootMessageSender, bytes calldata data)
        external;
}

contract FxChildExecutor is IFxMessageProcessor {
    address public immutable fxChild;

    event Executed(bool success, bytes data);

    error InvalidSender();

    constructor(address _fxChild) {
        fxChild = _fxChild;
    }

    function processMessageFromRoot(uint256, address rootMessageSender, bytes calldata data)
        external
    {
        if (msg.sender != fxChild) revert InvalidSender();
        (bool success, bytes memory result) = rootMessageSender.call(data);
        emit Executed(success, result);
    }
}

Settings
{
  "remappings": [
    "account-abstraction/=lib/account-abstraction/contracts/",
    "erc6551/=lib/erc6551/src/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "multicall-authenticated/=lib/multicall-authenticated/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin/=lib/openzeppelin-contracts/contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_fxChild","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidSender","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"success","type":"bool"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Executed","type":"event"},{"inputs":[],"name":"fxChild","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"rootMessageSender","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"processMessageFromRoot","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405234801561001057600080fd5b5060405161034438038061034483398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b6080516102b46100906000396000818160400152609e01526102b46000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063450d11f01461003b5780639a7c4b711461007e575b600080fd5b6100627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b61009161008c366004610181565b610093565b005b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146100dc57604051636edaef2f60e11b815260040160405180910390fd5b600080846001600160a01b031684846040516100f9929190610216565b6000604051808303816000865af19150503d8060008114610136576040519150601f19603f3d011682016040523d82523d6000602084013e61013b565b606091505b50915091507f0fb6775dc1981e714851ec9511c68453c509a3e8c85f97a4f4d1185bf2bdbf7a8282604051610171929190610226565b60405180910390a1505050505050565b6000806000806060858703121561019757600080fd5b8435935060208501356001600160a01b03811681146101b557600080fd5b9250604085013567ffffffffffffffff808211156101d257600080fd5b818701915087601f8301126101e657600080fd5b8135818111156101f557600080fd5b88602082850101111561020757600080fd5b95989497505060200194505050565b8183823760009101908152919050565b821515815260006020604081840152835180604085015260005b8181101561025c57858101830151858201606001528201610240565b506000606082860101526060601f19601f83011685010192505050939250505056fea26469706673582212208c48430a46cf45c5383e6b70f933473735a4519afcb5de2687b576d6dc7f5e3764736f6c634300081100330000000000000000000000008397259c983751daf40400790063935a11afa28a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063450d11f01461003b5780639a7c4b711461007e575b600080fd5b6100627f0000000000000000000000008397259c983751daf40400790063935a11afa28a81565b6040516001600160a01b03909116815260200160405180910390f35b61009161008c366004610181565b610093565b005b336001600160a01b037f0000000000000000000000008397259c983751daf40400790063935a11afa28a16146100dc57604051636edaef2f60e11b815260040160405180910390fd5b600080846001600160a01b031684846040516100f9929190610216565b6000604051808303816000865af19150503d8060008114610136576040519150601f19603f3d011682016040523d82523d6000602084013e61013b565b606091505b50915091507f0fb6775dc1981e714851ec9511c68453c509a3e8c85f97a4f4d1185bf2bdbf7a8282604051610171929190610226565b60405180910390a1505050505050565b6000806000806060858703121561019757600080fd5b8435935060208501356001600160a01b03811681146101b557600080fd5b9250604085013567ffffffffffffffff808211156101d257600080fd5b818701915087601f8301126101e657600080fd5b8135818111156101f557600080fd5b88602082850101111561020757600080fd5b95989497505060200194505050565b8183823760009101908152919050565b821515815260006020604081840152835180604085015260005b8181101561025c57858101830151858201606001528201610240565b506000606082860101526060601f19601f83011685010192505050939250505056fea26469706673582212208c48430a46cf45c5383e6b70f933473735a4519afcb5de2687b576d6dc7f5e3764736f6c63430008110033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000008397259c983751daf40400790063935a11afa28a

-----Decoded View---------------
Arg [0] : _fxChild (address): 0x8397259c983751DAf40400790063935a11afa28a

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008397259c983751daf40400790063935a11afa28a


Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits

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.