Contract 0xcf73231f28b7331bbe3124b907840a94851f9f11

Contract Overview

Balance:
0 MATIC
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xf2809d71bdbc417120ed44a476bd4cf0b970ff0d15a0584c6927def76dcb86acSet Fx Root291854722022-11-16 16:42:1110 days 22 hrs ago0x698c514c49c3e1c4285fc87674de84cd56a72646 IN  0xcf73231f28b7331bbe3124b907840a94851f9f110 MATIC0.000035742 1.50000001
0x254713105987aaad223009d6b249c6e645240a1bf6be52efeba3ed1df1dec8d7On State Receive253015632022-02-27 9:41:19273 days 5 hrs ago0xc6afcd96c220c79a478ff2a3443df8404ac59069 IN  0xcf73231f28b7331bbe3124b907840a94851f9f110 MATIC0.000031110567 1.250475014
0x8d8c666d87cd7c77d705d97721c4261b66346c5c18e0facde66c982521e2b526On State Receive253015632022-02-27 9:41:19273 days 5 hrs ago0xc6afcd96c220c79a478ff2a3443df8404ac59069 IN  0xcf73231f28b7331bbe3124b907840a94851f9f110 MATIC0.000031110567 1.250475019
0xe1ca7ff3ef2fb0ee14707d33853b8df2661deae82799e2b170d37e8570613900Withdraw184700732021-09-03 19:17:09449 days 19 hrs ago0x263504a350149a8115c69389af9c2bdd65dd2839 IN  0xcf73231f28b7331bbe3124b907840a94851f9f110 MATIC0.0192708900
0x5a11f1174ce7bef66692101b753527f1ff805f7bbd55347bbe68c92d8af5bc08On State Receive114137292021-03-10 17:04:43626 days 21 hrs ago0x825ae6fb177186e9551ab1cdd6d4ab10b22a0dba IN  0xcf73231f28b7331bbe3124b907840a94851f9f110 MATIC0.0000263951
0x255af869ead662f401804d128da8166d2deced267ff73edf99194fb1edb94eb1Set Fx Root94717922021-01-17 14:23:15679 days 40 mins ago0xfd71dc9721d9ddcf0480a582927c3dcd42f3064c IN  0xcf73231f28b7331bbe3124b907840a94851f9f110 MATIC0.0000434011
0xad158eb071b3a9cdbb55681ea3ab4706ef900d99f2c0f1229415e114aacf969e0x6080604094717792021-01-17 14:22:49679 days 41 mins ago0xfd71dc9721d9ddcf0480a582927c3dcd42f3064c IN  Create: FxChild0 MATIC0.0003654831
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FxChild

Compiler Version
v0.7.3+commit.9bfce1f6

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at polygonscan.com on 2021-07-14
*/

// SPDX-License-Identifier: MIT
pragma solidity 0.7.3;

// IStateReceiver represents interface to receive state
interface IStateReceiver {
    function onStateReceive(uint256 stateId, bytes calldata data) external;
}

// IFxMessageProcessor represents interface to process message
interface IFxMessageProcessor {
    function processMessageFromRoot(uint256 stateId, address rootMessageSender, bytes calldata data) external;
}

/**
 * @title FxChild child contract for state receiver
 */
contract FxChild is IStateReceiver {
    address public fxRoot;

    event NewFxMessage(address rootMessageSender, address receiver, bytes data);

    function setFxRoot(address _fxRoot) public {
        require(fxRoot == address(0x0));
        fxRoot = _fxRoot;
    }

    function onStateReceive(uint256 stateId, bytes calldata _data) external override {
        require(msg.sender == address(0x0000000000000000000000000000000000001001), "Invalid sender");
        (address rootMessageSender, address receiver, bytes memory data) = abi.decode(_data, (address, address, bytes));
        emit NewFxMessage(rootMessageSender, receiver, data);
        IFxMessageProcessor(receiver).processMessageFromRoot(stateId, rootMessageSender, data);
    }
}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"rootMessageSender","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"NewFxMessage","type":"event"},{"inputs":[],"name":"fxRoot","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"stateId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"onStateReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fxRoot","type":"address"}],"name":"setFxRoot","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506105a9806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806326c53bea146100465780634c8ff99e146100c9578063de9b771f1461010d575b600080fd5b6100c76004803603604081101561005c57600080fd5b81019080803590602001909291908035906020019064010000000081111561008357600080fd5b82018360208201111561009557600080fd5b803590602001918460018302840111640100000000831117156100b757600080fd5b9091929391929390505050610141565b005b61010b600480360360208110156100df57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506104b3565b005b61011561054f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61100173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f496e76616c69642073656e64657200000000000000000000000000000000000081525060200191505060405180910390fd5b6000806060848460608110156101f957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561025657600080fd5b82018360208201111561026857600080fd5b8035906020019184600183028401116401000000008311171561028a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050509250925092507ff091cd9cbbaff01426d8183042dff452ef18e6690f19816d5dd114e00761e0e8838383604051808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561037957808201518184015260208101905061035e565b50505050905090810190601f1680156103a65780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a18173ffffffffffffffffffffffffffffffffffffffff16639a7c4b718785846040518463ffffffff1660e01b8152600401808481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561044557808201518184015260208101905061042a565b50505050905090810190601f1680156104725780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b15801561049357600080fd5b505af11580156104a7573d6000803e3d6000fd5b50505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461050c57600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff168156fea26469706673582212200bdcfd65315e64d5f0ec860741e1cc6695c5e01920326ec06cadc7f8a48e45ff64736f6c63430007030033

Deployed ByteCode Sourcemap

503:761:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;787:474;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;659:120;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;545:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;787:474;909:42;887:65;;:10;:65;;;879:92;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;983:25;1010:16;1028:17;1060:5;;1049:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;982:111;;;;;;1109:47;1122:17;1141:8;1151:4;1109:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1187:8;1167:52;;;1220:7;1229:17;1248:4;1167:86;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;787:474;;;;;;:::o;659:120::-;739:3;721:22;;:6;;;;;;;;;;:22;;;713:31;;;;;;764:7;755:6;;:16;;;;;;;;;;;;;;;;;;659:120;:::o;545:21::-;;;;;;;;;;;;:::o

Swarm Source

ipfs://0bdcfd65315e64d5f0ec860741e1cc6695c5e01920326ec06cadc7f8a48e45ff
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading