ETH Price: $3,248.48 (-1.62%)

Contract

0x03c545163bd114D756c65DDA1D97D37b89dA2236
 
Transaction Hash
Method
Block
From
To
Batch Transfer Q...181241502023-09-13 1:35:35485 days ago1694568935IN
0x03c54516...b89dA2236
0 ETH0.000236788.57247871
Batch Transfer Q...181241502023-09-13 1:35:35485 days ago1694568935IN
0x03c54516...b89dA2236
0 ETH0.00020547.43630904
Transfer Ownersh...178362692023-08-03 18:31:11525 days ago1691087471IN
0x03c54516...b89dA2236
0 ETH0.0009435830.56826463
Pause178134122023-07-31 13:52:47529 days ago1690811567IN
0x03c54516...b89dA2236
0 ETH0.0008187427.1268338
Batch Transfer Q...178108822023-07-31 5:24:35529 days ago1690781075IN
0x03c54516...b89dA2236
0 ETH0.0019745614.08428447
Batch Transfer Q...178105582023-07-31 4:19:11529 days ago1690777151IN
0x03c54516...b89dA2236
0 ETH0.0011840912.13042138
Batch Transfer Q...178051952023-07-30 10:16:23530 days ago1690712183IN
0x03c54516...b89dA2236
0 ETH0.0014639614.99747733
Batch Transfer Q...178015002023-07-29 21:52:47530 days ago1690667567IN
0x03c54516...b89dA2236
0 ETH0.0012986324.70482275
Batch Transfer Q...178014992023-07-29 21:52:35530 days ago1690667555IN
0x03c54516...b89dA2236
0 ETH0.0013254325.21463754
Batch Transfer Q...178014982023-07-29 21:52:23530 days ago1690667543IN
0x03c54516...b89dA2236
0 ETH0.0024841925.4460088
Batch Transfer Q...178010452023-07-29 20:21:11530 days ago1690662071IN
0x03c54516...b89dA2236
0 ETH0.0280829434.64480703
Batch Transfer Q...177979332023-07-29 9:54:59531 days ago1690624499IN
0x03c54516...b89dA2236
0 ETH0.0017511317.93933624
Batch Transfer Q...177960372023-07-29 3:32:47531 days ago1690601567IN
0x03c54516...b89dA2236
0 ETH0.001494815.31159234
Batch Transfer Q...177956002023-07-29 2:04:47531 days ago1690596287IN
0x03c54516...b89dA2236
0 ETH0.001691617.32949381
Batch Transfer Q...177953282023-07-29 1:09:47531 days ago1690592987IN
0x03c54516...b89dA2236
0 ETH0.0019223319.69085533
Batch Transfer Q...177930512023-07-28 17:30:47531 days ago1690565447IN
0x03c54516...b89dA2236
0 ETH0.0058697160.13188408
Batch Transfer Q...177825172023-07-27 6:07:59533 days ago1690438079IN
0x03c54516...b89dA2236
0 ETH0.0019362619.8359002
Batch Transfer Q...177806592023-07-26 23:53:35533 days ago1690415615IN
0x03c54516...b89dA2236
0 ETH0.001556215.94042964
Batch Transfer Q...177690862023-07-25 9:01:23535 days ago1690275683IN
0x03c54516...b89dA2236
0 ETH0.0024113924.70031096
Batch Transfer Q...177665442023-07-25 0:29:23535 days ago1690244963IN
0x03c54516...b89dA2236
0 ETH0.0027228222.64755726
Batch Transfer Q...177658952023-07-24 22:18:47535 days ago1690237127IN
0x03c54516...b89dA2236
0 ETH0.0021607322.13551628
Batch Transfer Q...177624682023-07-24 10:48:47536 days ago1690195727IN
0x03c54516...b89dA2236
0 ETH0.0022406821.87865826
Batch Transfer Q...177624502023-07-24 10:45:11536 days ago1690195511IN
0x03c54516...b89dA2236
0 ETH0.0023276423.84544645
Batch Transfer Q...177623472023-07-24 10:24:23536 days ago1690194263IN
0x03c54516...b89dA2236
0 ETH0.0078220833.5266992
Batch Transfer Q...177620822023-07-24 9:30:47536 days ago1690191047IN
0x03c54516...b89dA2236
0 ETH0.0117216229.568406
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LandTunnel

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 12 : LandTunnel.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.2;

import "fx-portal/contracts/tunnel/FxBaseRootTunnel.sol";
import "../../../common/interfaces/ILandToken.sol";
import "../../../common/interfaces/IERC721MandatoryTokenReceiver.sol";
import "../../../common/BaseWithStorage/ERC2771Handler.sol";
import "@openzeppelin/contracts-0.8/access/Ownable.sol";
import "@openzeppelin/contracts-0.8/security/Pausable.sol";

/// @title LAND bridge on L1
contract LandTunnel is FxBaseRootTunnel, IERC721MandatoryTokenReceiver, ERC2771Handler, Ownable, Pausable {
    address public immutable rootToken;
    bool internal transferringToL2;

    event Deposit(address indexed user, uint256 size, uint256 x, uint256 y, bytes data);
    event Withdraw(address indexed user, uint256 size, uint256 x, uint256 y, bytes data);

    constructor(
        address _checkpointManager,
        address _fxRoot,
        address _rootToken,
        address _trustedForwarder
    ) FxBaseRootTunnel(_checkpointManager, _fxRoot) {
        rootToken = _rootToken;
        __ERC2771Handler_initialize(_trustedForwarder);
    }

    function onERC721Received(
        address, /* operator */
        address, /* from */
        uint256, /* tokenId */
        bytes calldata /* data */
    ) external view override returns (bytes4) {
        require(transferringToL2, "LandTunnel: !BRIDGING");
        return this.onERC721Received.selector;
    }

    function onERC721BatchReceived(
        address, /* operator */
        address, /* from */
        uint256[] calldata, /* ids */
        bytes calldata /* data */
    ) external view override returns (bytes4) {
        require(transferringToL2, "LandTunnel: !BRIDGING");
        return this.onERC721BatchReceived.selector;
    }

    function supportsInterface(bytes4 interfaceId) external pure returns (bool) {
        return interfaceId == 0x5e8bf644 || interfaceId == 0x01ffc9a7;
    }

    function batchTransferQuadToL2(
        address to,
        uint256[] memory sizes,
        uint256[] memory xs,
        uint256[] memory ys,
        bytes memory data
    ) public whenNotPaused() {
        require(sizes.length == xs.length && xs.length == ys.length, "l2: invalid data");
        transferringToL2 = true;
        ILandToken(rootToken).batchTransferQuad(_msgSender(), address(this), sizes, xs, ys, data);
        transferringToL2 = false;
        for (uint256 index = 0; index < sizes.length; index++) {
            bytes memory message = abi.encode(to, sizes[index], xs[index], ys[index], data);
            _sendMessageToChild(message);
            emit Deposit(to, sizes[index], xs[index], ys[index], data);
        }
    }

    /// @dev Change the address of the trusted forwarder for meta-TX
    /// @param trustedForwarder The new trustedForwarder
    function setTrustedForwarder(address trustedForwarder) external onlyOwner {
        _trustedForwarder = trustedForwarder;
    }

    /// @dev Pauses all token transfers across bridge
    function pause() external onlyOwner {
        _pause();
    }

    /// @dev Unpauses all token transfers across bridge
    function unpause() external onlyOwner {
        _unpause();
    }

    function _processMessageFromChild(bytes memory message) internal override {
        (address to, uint256[] memory size, uint256[] memory x, uint256[] memory y, bytes memory data) =
            abi.decode(message, (address, uint256[], uint256[], uint256[], bytes));
        for (uint256 index = 0; index < x.length; index++) {
            ILandToken(rootToken).transferQuad(address(this), to, size[index], x[index], y[index], data);
            emit Withdraw(to, size[index], x[index], y[index], data);
        }
    }

    function _msgSender() internal view override(Context, ERC2771Handler) returns (address sender) {
        return ERC2771Handler._msgSender();
    }

    function _msgData() internal view override(Context, ERC2771Handler) returns (bytes calldata) {
        return ERC2771Handler._msgData();
    }
}

File 2 of 12 : FxBaseRootTunnel.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;


import {RLPReader} from "../lib/RLPReader.sol";
import {MerklePatriciaProof} from "../lib/MerklePatriciaProof.sol";
import {Merkle} from "../lib/Merkle.sol";
import "../lib/ExitPayloadReader.sol";


interface IFxStateSender {
    function sendMessageToChild(address _receiver, bytes calldata _data) external;
}

contract ICheckpointManager {
    struct HeaderBlock {
        bytes32 root;
        uint256 start;
        uint256 end;
        uint256 createdAt;
        address proposer;
    }

    /**
     * @notice mapping of checkpoint header numbers to block details
     * @dev These checkpoints are submited by plasma contracts
     */
    mapping(uint256 => HeaderBlock) public headerBlocks;
}

abstract contract FxBaseRootTunnel {
    using RLPReader for RLPReader.RLPItem;
    using Merkle for bytes32;
    using ExitPayloadReader for bytes;
    using ExitPayloadReader for ExitPayloadReader.ExitPayload;
    using ExitPayloadReader for ExitPayloadReader.Log;
    using ExitPayloadReader for ExitPayloadReader.LogTopics;
    using ExitPayloadReader for ExitPayloadReader.Receipt;

    // keccak256(MessageSent(bytes))
    bytes32 public constant SEND_MESSAGE_EVENT_SIG = 0x8c5261668696ce22758910d05bab8f186d6eb247ceac2af2e82c7dc17669b036;

    // state sender contract
    IFxStateSender public fxRoot;
    // root chain manager
    ICheckpointManager public checkpointManager;
    // child tunnel contract which receives and sends messages 
    address public fxChildTunnel;

    // storage to avoid duplicate exits
    mapping(bytes32 => bool) public processedExits;

    constructor(address _checkpointManager, address _fxRoot) {
        checkpointManager = ICheckpointManager(_checkpointManager);
        fxRoot = IFxStateSender(_fxRoot);
    }

    // set fxChildTunnel if not set already
    function setFxChildTunnel(address _fxChildTunnel) public {
        require(fxChildTunnel == address(0x0), "FxBaseRootTunnel: CHILD_TUNNEL_ALREADY_SET");
        fxChildTunnel = _fxChildTunnel;
    }

    /**
     * @notice Send bytes message to Child Tunnel
     * @param message bytes message that will be sent to Child Tunnel
     * some message examples -
     *   abi.encode(tokenId);
     *   abi.encode(tokenId, tokenMetadata);
     *   abi.encode(messageType, messageData);
     */
    function _sendMessageToChild(bytes memory message) internal {
        fxRoot.sendMessageToChild(fxChildTunnel, message);
    }

    function _validateAndExtractMessage(bytes memory inputData) internal returns (bytes memory) {
        ExitPayloadReader.ExitPayload memory payload = inputData.toExitPayload();

        bytes memory branchMaskBytes = payload.getBranchMaskAsBytes();
        uint256 blockNumber = payload.getBlockNumber();
        // checking if exit has already been processed
        // unique exit is identified using hash of (blockNumber, branchMask, receiptLogIndex)
        bytes32 exitHash = keccak256(
            abi.encodePacked(
                blockNumber,
                // first 2 nibbles are dropped while generating nibble array
                // this allows branch masks that are valid but bypass exitHash check (changing first 2 nibbles only)
                // so converting to nibble array and then hashing it
                MerklePatriciaProof._getNibbleArray(branchMaskBytes),
                payload.getReceiptLogIndex()
            )
        );
        require(
            processedExits[exitHash] == false,
            "FxRootTunnel: EXIT_ALREADY_PROCESSED"
        );
        processedExits[exitHash] = true;

        ExitPayloadReader.Receipt memory receipt = payload.getReceipt();
        ExitPayloadReader.Log memory log = receipt.getLog();

        // check child tunnel
        require(fxChildTunnel == log.getEmitter(), "FxRootTunnel: INVALID_FX_CHILD_TUNNEL");

        bytes32 receiptRoot = payload.getReceiptRoot();
        // verify receipt inclusion
        require(
            MerklePatriciaProof.verify(
                receipt.toBytes(), 
                branchMaskBytes, 
                payload.getReceiptProof(), 
                receiptRoot
            ),
            "FxRootTunnel: INVALID_RECEIPT_PROOF"
        );

        // verify checkpoint inclusion
        _checkBlockMembershipInCheckpoint(
            blockNumber,
            payload.getBlockTime(),
            payload.getTxRoot(),
            receiptRoot,
            payload.getHeaderNumber(),
            payload.getBlockProof()
        );

        ExitPayloadReader.LogTopics memory topics = log.getTopics();

        require(
            bytes32(topics.getField(0).toUint()) == SEND_MESSAGE_EVENT_SIG, // topic0 is event sig
            "FxRootTunnel: INVALID_SIGNATURE"
        );

        // received message data
        (bytes memory message) = abi.decode(log.getData(), (bytes)); // event decodes params again, so decoding bytes to get message
        return message;
    }

    function _checkBlockMembershipInCheckpoint(
        uint256 blockNumber,
        uint256 blockTime,
        bytes32 txRoot,
        bytes32 receiptRoot,
        uint256 headerNumber,
        bytes memory blockProof
    ) private view returns (uint256) {
        (
            bytes32 headerRoot,
            uint256 startBlock,
            ,
            uint256 createdAt,

        ) = checkpointManager.headerBlocks(headerNumber);

        require(
            keccak256(
                abi.encodePacked(blockNumber, blockTime, txRoot, receiptRoot)
            )
                .checkMembership(
                blockNumber-startBlock,
                headerRoot,
                blockProof
            ),
            "FxRootTunnel: INVALID_HEADER"
        );
        return createdAt;
    }

    /**
     * @notice receive message from  L2 to L1, validated by proof
     * @dev This function verifies if the transaction actually happened on child chain
     *
     * @param inputData RLP encoded data of the reference tx containing following list of fields
     *  0 - headerNumber - Checkpoint header block number containing the reference tx
     *  1 - blockProof - Proof that the block header (in the child chain) is a leaf in the submitted merkle root
     *  2 - blockNumber - Block number containing the reference tx on child chain
     *  3 - blockTime - Reference tx block time
     *  4 - txRoot - Transactions root of block
     *  5 - receiptRoot - Receipts root of block
     *  6 - receipt - Receipt of the reference transaction
     *  7 - receiptProof - Merkle proof of the reference receipt
     *  8 - branchMask - 32 bits denoting the path of receipt in merkle tree
     *  9 - receiptLogIndex - Log Index to read from the receipt
     */
    function receiveMessage(bytes memory inputData) public virtual {
        bytes memory message = _validateAndExtractMessage(inputData);
        _processMessageFromChild(message);
    }

    /**
     * @notice Process message received from Child Tunnel
     * @dev function needs to be implemented to handle message as per requirement
     * This is called by onStateReceive function.
     * Since it is called via a system call, any event will not be emitted during its execution.
     * @param message bytes message that was sent from Child Tunnel
     */
    function _processMessageFromChild(bytes memory message) virtual internal;
}

File 3 of 12 : ILandToken.sol
//SPDX-License-Identifier: MIT
pragma solidity 0.8.2;

interface ILandToken {
    function batchTransferQuad(
        address from,
        address to,
        uint256[] calldata sizes,
        uint256[] calldata xs,
        uint256[] calldata ys,
        bytes calldata data
    ) external;

    function transferQuad(
        address from,
        address to,
        uint256 size,
        uint256 x,
        uint256 y,
        bytes calldata data
    ) external;

    function batchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        bytes calldata data
    ) external;
}

File 4 of 12 : IERC721MandatoryTokenReceiver.sol
//SPDX-License-Identifier: MIT
// solhint-disable-next-line compiler-version
pragma solidity 0.8.2;

/// @dev Note: The ERC-165 identifier for this interface is 0x5e8bf644.
interface IERC721MandatoryTokenReceiver {
    function onERC721BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        bytes calldata data
    ) external returns (bytes4); // needs to return 0x4b808c46

    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4); // needs to return 0x150b7a02
}

File 5 of 12 : ERC2771Handler.sol
// SPDX-License-Identifier: MIT
// solhint-disable-next-line compiler-version
pragma solidity 0.8.2;

/// @dev minimal ERC2771 handler to keep bytecode-size down
/// based on: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.6.0/contracts/metatx/ERC2771Context.sol
/// with an initializer for proxies and a mutable forwarder

contract ERC2771Handler {
    address internal _trustedForwarder;

    function __ERC2771Handler_initialize(address forwarder) internal {
        _trustedForwarder = forwarder;
    }

    function isTrustedForwarder(address forwarder) public view returns (bool) {
        return forwarder == _trustedForwarder;
    }

    function getTrustedForwarder() external view returns (address trustedForwarder) {
        return _trustedForwarder;
    }

    function _msgSender() internal view virtual returns (address sender) {
        if (isTrustedForwarder(msg.sender)) {
            // The assembly code is more direct than the Solidity version using `abi.decode`.
            // solhint-disable-next-line no-inline-assembly
            assembly {
                sender := shr(96, calldataload(sub(calldatasize(), 20)))
            }
        } else {
            return msg.sender;
        }
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        if (isTrustedForwarder(msg.sender)) {
            return msg.data[:msg.data.length - 20];
        } else {
            return msg.data;
        }
    }
}

File 6 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 7 of 12 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 8 of 12 : RLPReader.sol
/*
* @author Hamdi Allam [email protected]
* Please reach out with any questions or concerns
*/
pragma solidity ^0.8.0;

library RLPReader {
    uint8 constant STRING_SHORT_START = 0x80;
    uint8 constant STRING_LONG_START  = 0xb8;
    uint8 constant LIST_SHORT_START   = 0xc0;
    uint8 constant LIST_LONG_START    = 0xf8;
    uint8 constant WORD_SIZE = 32;

    struct RLPItem {
        uint len;
        uint memPtr;
    }

    struct Iterator {
        RLPItem item;   // Item that's being iterated over.
        uint nextPtr;   // Position of the next item in the list.
    }

    /*
    * @dev Returns the next element in the iteration. Reverts if it has not next element.
    * @param self The iterator.
    * @return The next element in the iteration.
    */
    function next(Iterator memory self) internal pure returns (RLPItem memory) {
        require(hasNext(self));

        uint ptr = self.nextPtr;
        uint itemLength = _itemLength(ptr);
        self.nextPtr = ptr + itemLength;

        return RLPItem(itemLength, ptr);
    }

    /*
    * @dev Returns true if the iteration has more elements.
    * @param self The iterator.
    * @return true if the iteration has more elements.
    */
    function hasNext(Iterator memory self) internal pure returns (bool) {
        RLPItem memory item = self.item;
        return self.nextPtr < item.memPtr + item.len;
    }

    /*
    * @param item RLP encoded bytes
    */
    function toRlpItem(bytes memory item) internal pure returns (RLPItem memory) {
        uint memPtr;
        assembly {
            memPtr := add(item, 0x20)
        }

        return RLPItem(item.length, memPtr);
    }

    /*
    * @dev Create an iterator. Reverts if item is not a list.
    * @param self The RLP item.
    * @return An 'Iterator' over the item.
    */
    function iterator(RLPItem memory self) internal pure returns (Iterator memory) {
        require(isList(self));

        uint ptr = self.memPtr + _payloadOffset(self.memPtr);
        return Iterator(self, ptr);
    }

    /*
    * @param item RLP encoded bytes
    */
    function rlpLen(RLPItem memory item) internal pure returns (uint) {
        return item.len;
    }

    /*
    * @param item RLP encoded bytes
    */
    function payloadLen(RLPItem memory item) internal pure returns (uint) {
        return item.len - _payloadOffset(item.memPtr);
    }

    /*
    * @param item RLP encoded list in bytes
    */
    function toList(RLPItem memory item) internal pure returns (RLPItem[] memory) {
        require(isList(item));

        uint items = numItems(item);
        RLPItem[] memory result = new RLPItem[](items);

        uint memPtr = item.memPtr + _payloadOffset(item.memPtr);
        uint dataLen;
        for (uint i = 0; i < items; i++) {
            dataLen = _itemLength(memPtr);
            result[i] = RLPItem(dataLen, memPtr); 
            memPtr = memPtr + dataLen;
        }

        return result;
    }

    // @return indicator whether encoded payload is a list. negate this function call for isData.
    function isList(RLPItem memory item) internal pure returns (bool) {
        if (item.len == 0) return false;

        uint8 byte0;
        uint memPtr = item.memPtr;
        assembly {
            byte0 := byte(0, mload(memPtr))
        }

        if (byte0 < LIST_SHORT_START)
            return false;
        return true;
    }

    /*
     * @dev A cheaper version of keccak256(toRlpBytes(item)) that avoids copying memory.
     * @return keccak256 hash of RLP encoded bytes.
     */
    function rlpBytesKeccak256(RLPItem memory item) internal pure returns (bytes32) {
        uint256 ptr = item.memPtr;
        uint256 len = item.len;
        bytes32 result;
        assembly {
            result := keccak256(ptr, len)
        }
        return result;
    }

    function payloadLocation(RLPItem memory item) internal pure returns (uint, uint) {
        uint offset = _payloadOffset(item.memPtr);
        uint memPtr = item.memPtr + offset;
        uint len = item.len - offset; // data length
        return (memPtr, len);
    }

    /*
     * @dev A cheaper version of keccak256(toBytes(item)) that avoids copying memory.
     * @return keccak256 hash of the item payload.
     */
    function payloadKeccak256(RLPItem memory item) internal pure returns (bytes32) {
        (uint memPtr, uint len) = payloadLocation(item);
        bytes32 result;
        assembly {
            result := keccak256(memPtr, len)
        }
        return result;
    }

    /** RLPItem conversions into data types **/

    // @returns raw rlp encoding in bytes
    function toRlpBytes(RLPItem memory item) internal pure returns (bytes memory) {
        bytes memory result = new bytes(item.len);
        if (result.length == 0) return result;
        
        uint ptr;
        assembly {
            ptr := add(0x20, result)
        }

        copy(item.memPtr, ptr, item.len);
        return result;
    }

    // any non-zero byte is considered true
    function toBoolean(RLPItem memory item) internal pure returns (bool) {
        require(item.len == 1);
        uint result;
        uint memPtr = item.memPtr;
        assembly {
            result := byte(0, mload(memPtr))
        }

        return result == 0 ? false : true;
    }

    function toAddress(RLPItem memory item) internal pure returns (address) {
        // 1 byte for the length prefix
        require(item.len == 21);

        return address(uint160(toUint(item)));
    }

    function toUint(RLPItem memory item) internal pure returns (uint) {
        require(item.len > 0 && item.len <= 33);

        uint offset = _payloadOffset(item.memPtr);
        uint len = item.len - offset;

        uint result;
        uint memPtr = item.memPtr + offset;
        assembly {
            result := mload(memPtr)

            // shfit to the correct location if neccesary
            if lt(len, 32) {
                result := div(result, exp(256, sub(32, len)))
            }
        }

        return result;
    }

    // enforces 32 byte length
    function toUintStrict(RLPItem memory item) internal pure returns (uint) {
        // one byte prefix
        require(item.len == 33);

        uint result;
        uint memPtr = item.memPtr + 1;
        assembly {
            result := mload(memPtr)
        }

        return result;
    }

    function toBytes(RLPItem memory item) internal pure returns (bytes memory) {
        require(item.len > 0);

        uint offset = _payloadOffset(item.memPtr);
        uint len = item.len - offset; // data length
        bytes memory result = new bytes(len);

        uint destPtr;
        assembly {
            destPtr := add(0x20, result)
        }

        copy(item.memPtr + offset, destPtr, len);
        return result;
    }

    /*
    * Private Helpers
    */

    // @return number of payload items inside an encoded list.
    function numItems(RLPItem memory item) private pure returns (uint) {
        if (item.len == 0) return 0;

        uint count = 0;
        uint currPtr = item.memPtr + _payloadOffset(item.memPtr);
        uint endPtr = item.memPtr + item.len;
        while (currPtr < endPtr) {
           currPtr = currPtr + _itemLength(currPtr); // skip over an item
           count++;
        }

        return count;
    }

    // @return entire rlp item byte length
    function _itemLength(uint memPtr) private pure returns (uint) {
        uint itemLen;
        uint byte0;
        assembly {
            byte0 := byte(0, mload(memPtr))
        }

        if (byte0 < STRING_SHORT_START)
            itemLen = 1;
        
        else if (byte0 < STRING_LONG_START)
            itemLen = byte0 - STRING_SHORT_START + 1;

        else if (byte0 < LIST_SHORT_START) {
            assembly {
                let byteLen := sub(byte0, 0xb7) // # of bytes the actual length is
                memPtr := add(memPtr, 1) // skip over the first byte
                /* 32 byte word size */
                let dataLen := div(mload(memPtr), exp(256, sub(32, byteLen))) // right shifting to get the len
                itemLen := add(dataLen, add(byteLen, 1))
            }
        }

        else if (byte0 < LIST_LONG_START) {
            itemLen = byte0 - LIST_SHORT_START + 1;
        } 

        else {
            assembly {
                let byteLen := sub(byte0, 0xf7)
                memPtr := add(memPtr, 1)

                let dataLen := div(mload(memPtr), exp(256, sub(32, byteLen))) // right shifting to the correct length
                itemLen := add(dataLen, add(byteLen, 1))
            }
        }

        return itemLen;
    }

    // @return number of bytes until the data
    function _payloadOffset(uint memPtr) private pure returns (uint) {
        uint byte0;
        assembly {
            byte0 := byte(0, mload(memPtr))
        }

        if (byte0 < STRING_SHORT_START) 
            return 0;
        else if (byte0 < STRING_LONG_START || (byte0 >= LIST_SHORT_START && byte0 < LIST_LONG_START))
            return 1;
        else if (byte0 < LIST_SHORT_START)  // being explicit
            return byte0 - (STRING_LONG_START - 1) + 1;
        else
            return byte0 - (LIST_LONG_START - 1) + 1;
    }

    /*
    * @param src Pointer to source
    * @param dest Pointer to destination
    * @param len Amount of memory to copy from the source
    */
    function copy(uint src, uint dest, uint len) private pure {
        if (len == 0) return;

        // copy as many word sizes as possible
        for (; len >= WORD_SIZE; len -= WORD_SIZE) {
            assembly {
                mstore(dest, mload(src))
            }

            src += WORD_SIZE;
            dest += WORD_SIZE;
        }

        if (len == 0) return;

        // left over bytes. Mask is used to remove unwanted bytes from the word
        uint mask = 256 ** (WORD_SIZE - len) - 1;

        assembly {
            let srcpart := and(mload(src), not(mask)) // zero out src
            let destpart := and(mload(dest), mask) // retrieve the bytes
            mstore(dest, or(destpart, srcpart))
        }
    }
}

File 9 of 12 : MerklePatriciaProof.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {RLPReader} from "./RLPReader.sol";

library MerklePatriciaProof {
    /*
     * @dev Verifies a merkle patricia proof.
     * @param value The terminating value in the trie.
     * @param encodedPath The path in the trie leading to value.
     * @param rlpParentNodes The rlp encoded stack of nodes.
     * @param root The root hash of the trie.
     * @return The boolean validity of the proof.
     */
    function verify(
        bytes memory value,
        bytes memory encodedPath,
        bytes memory rlpParentNodes,
        bytes32 root
    ) internal pure returns (bool) {
        RLPReader.RLPItem memory item = RLPReader.toRlpItem(rlpParentNodes);
        RLPReader.RLPItem[] memory parentNodes = RLPReader.toList(item);

        bytes memory currentNode;
        RLPReader.RLPItem[] memory currentNodeList;

        bytes32 nodeKey = root;
        uint256 pathPtr = 0;

        bytes memory path = _getNibbleArray(encodedPath);
        if (path.length == 0) {
            return false;
        }

        for (uint256 i = 0; i < parentNodes.length; i++) {
            if (pathPtr > path.length) {
                return false;
            }

            currentNode = RLPReader.toRlpBytes(parentNodes[i]);
            if (nodeKey != keccak256(currentNode)) {
                return false;
            }
            currentNodeList = RLPReader.toList(parentNodes[i]);

            if (currentNodeList.length == 17) {
                if (pathPtr == path.length) {
                    if (
                        keccak256(RLPReader.toBytes(currentNodeList[16])) ==
                        keccak256(value)
                    ) {
                        return true;
                    } else {
                        return false;
                    }
                }

                uint8 nextPathNibble = uint8(path[pathPtr]);
                if (nextPathNibble > 16) {
                    return false;
                }
                nodeKey = bytes32(
                    RLPReader.toUintStrict(currentNodeList[nextPathNibble])
                );
                pathPtr += 1;
            } else if (currentNodeList.length == 2) {
                uint256 traversed = _nibblesToTraverse(
                    RLPReader.toBytes(currentNodeList[0]),
                    path,
                    pathPtr
                );
                if (pathPtr + traversed == path.length) {
                    //leaf node
                    if (
                        keccak256(RLPReader.toBytes(currentNodeList[1])) ==
                        keccak256(value)
                    ) {
                        return true;
                    } else {
                        return false;
                    }
                }

                //extension node
                if (traversed == 0) {
                    return false;
                }

                pathPtr += traversed;
                nodeKey = bytes32(RLPReader.toUintStrict(currentNodeList[1]));
            } else {
                return false;
            }
        }
    }

    function _nibblesToTraverse(
        bytes memory encodedPartialPath,
        bytes memory path,
        uint256 pathPtr
    ) private pure returns (uint256) {
        uint256 len = 0;
        // encodedPartialPath has elements that are each two hex characters (1 byte), but partialPath
        // and slicedPath have elements that are each one hex character (1 nibble)
        bytes memory partialPath = _getNibbleArray(encodedPartialPath);
        bytes memory slicedPath = new bytes(partialPath.length);

        // pathPtr counts nibbles in path
        // partialPath.length is a number of nibbles
        for (uint256 i = pathPtr; i < pathPtr + partialPath.length; i++) {
            bytes1 pathNibble = path[i];
            slicedPath[i - pathPtr] = pathNibble;
        }

        if (keccak256(partialPath) == keccak256(slicedPath)) {
            len = partialPath.length;
        } else {
            len = 0;
        }
        return len;
    }

    // bytes b must be hp encoded
    function _getNibbleArray(bytes memory b)
        internal
        pure
        returns (bytes memory)
    {
        bytes memory nibbles = "";
        if (b.length > 0) {
            uint8 offset;
            uint8 hpNibble = uint8(_getNthNibbleOfBytes(0, b));
            if (hpNibble == 1 || hpNibble == 3) {
                nibbles = new bytes(b.length * 2 - 1);
                bytes1 oddNibble = _getNthNibbleOfBytes(1, b);
                nibbles[0] = oddNibble;
                offset = 1;
            } else {
                nibbles = new bytes(b.length * 2 - 2);
                offset = 0;
            }

            for (uint256 i = offset; i < nibbles.length; i++) {
                nibbles[i] = _getNthNibbleOfBytes(i - offset + 2, b);
            }
        }
        return nibbles;
    }

    function _getNthNibbleOfBytes(uint256 n, bytes memory str)
        private
        pure
        returns (bytes1)
    {
        return
            bytes1(
                n % 2 == 0 ? uint8(str[n / 2]) / 0x10 : uint8(str[n / 2]) % 0x10
            );
    }
}

File 10 of 12 : Merkle.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library Merkle {
    function checkMembership(
        bytes32 leaf,
        uint256 index,
        bytes32 rootHash,
        bytes memory proof
    ) internal pure returns (bool) {
        require(proof.length % 32 == 0, "Invalid proof length");
        uint256 proofHeight = proof.length / 32;
        // Proof of size n means, height of the tree is n+1.
        // In a tree of height n+1, max #leafs possible is 2 ^ n
        require(index < 2 ** proofHeight, "Leaf index is too big");

        bytes32 proofElement;
        bytes32 computedHash = leaf;
        for (uint256 i = 32; i <= proof.length; i += 32) {
            assembly {
                proofElement := mload(add(proof, i))
            }

            if (index % 2 == 0) {
                computedHash = keccak256(
                    abi.encodePacked(computedHash, proofElement)
                );
            } else {
                computedHash = keccak256(
                    abi.encodePacked(proofElement, computedHash)
                );
            }

            index = index / 2;
        }
        return computedHash == rootHash;
    }
}

File 11 of 12 : ExitPayloadReader.sol
pragma solidity ^0.8.0;

import { RLPReader } from "./RLPReader.sol";

library ExitPayloadReader {
  using RLPReader for bytes;
  using RLPReader for RLPReader.RLPItem;

  uint8 constant WORD_SIZE = 32;

  struct ExitPayload {
    RLPReader.RLPItem[] data;
  }

  struct Receipt {
    RLPReader.RLPItem[] data;
    bytes raw;
    uint256 logIndex;
  }

  struct Log {
    RLPReader.RLPItem data;
    RLPReader.RLPItem[] list;
  }

  struct LogTopics {
    RLPReader.RLPItem[] data;
  }

  // copy paste of private copy() from RLPReader to avoid changing of existing contracts
  function copy(uint src, uint dest, uint len) private pure {
        if (len == 0) return;

        // copy as many word sizes as possible
        for (; len >= WORD_SIZE; len -= WORD_SIZE) {
            assembly {
                mstore(dest, mload(src))
            }

            src += WORD_SIZE;
            dest += WORD_SIZE;
        }

        // left over bytes. Mask is used to remove unwanted bytes from the word
        uint mask = 256 ** (WORD_SIZE - len) - 1;
        assembly {
            let srcpart := and(mload(src), not(mask)) // zero out src
            let destpart := and(mload(dest), mask) // retrieve the bytes
            mstore(dest, or(destpart, srcpart))
        }
    }

  function toExitPayload(bytes memory data)
        internal
        pure
        returns (ExitPayload memory)
    {
        RLPReader.RLPItem[] memory payloadData = data
            .toRlpItem()
            .toList();

        return ExitPayload(payloadData);
    }

    function getHeaderNumber(ExitPayload memory payload) internal pure returns(uint256) {
      return payload.data[0].toUint();
    }

    function getBlockProof(ExitPayload memory payload) internal pure returns(bytes memory) {
      return payload.data[1].toBytes();
    }

    function getBlockNumber(ExitPayload memory payload) internal pure returns(uint256) {
      return payload.data[2].toUint();
    }

    function getBlockTime(ExitPayload memory payload) internal pure returns(uint256) {
      return payload.data[3].toUint();
    }

    function getTxRoot(ExitPayload memory payload) internal pure returns(bytes32) {
      return bytes32(payload.data[4].toUint());
    }

    function getReceiptRoot(ExitPayload memory payload) internal pure returns(bytes32) {
      return bytes32(payload.data[5].toUint());
    }

    function getReceipt(ExitPayload memory payload) internal pure returns(Receipt memory receipt) {
      receipt.raw = payload.data[6].toBytes();
      RLPReader.RLPItem memory receiptItem = receipt.raw.toRlpItem();

      if (receiptItem.isList()) {
          // legacy tx
          receipt.data = receiptItem.toList();
      } else {
          // pop first byte before parsting receipt
          bytes memory typedBytes = receipt.raw;
          bytes memory result = new bytes(typedBytes.length - 1);
          uint256 srcPtr;
          uint256 destPtr;
          assembly {
              srcPtr := add(33, typedBytes)
              destPtr := add(0x20, result)
          }

          copy(srcPtr, destPtr, result.length);
          receipt.data = result.toRlpItem().toList();
      }

      receipt.logIndex = getReceiptLogIndex(payload);
      return receipt;
    }

    function getReceiptProof(ExitPayload memory payload) internal pure returns(bytes memory) {
      return payload.data[7].toBytes();
    }

    function getBranchMaskAsBytes(ExitPayload memory payload) internal pure returns(bytes memory) {
      return payload.data[8].toBytes();
    }

    function getBranchMaskAsUint(ExitPayload memory payload) internal pure returns(uint256) {
      return payload.data[8].toUint();
    }

    function getReceiptLogIndex(ExitPayload memory payload) internal pure returns(uint256) {
      return payload.data[9].toUint();
    }
    
    // Receipt methods
    function toBytes(Receipt memory receipt) internal pure returns(bytes memory) {
        return receipt.raw;
    }

    function getLog(Receipt memory receipt) internal pure returns(Log memory) {
        RLPReader.RLPItem memory logData = receipt.data[3].toList()[receipt.logIndex];
        return Log(logData, logData.toList());
    }

    // Log methods
    function getEmitter(Log memory log) internal pure returns(address) {
      return RLPReader.toAddress(log.list[0]);
    }

    function getTopics(Log memory log) internal pure returns(LogTopics memory) {
        return LogTopics(log.list[1].toList());
    }

    function getData(Log memory log) internal pure returns(bytes memory) {
        return log.list[2].toBytes();
    }

    function toRlpBytes(Log memory log) internal pure returns(bytes memory) {
      return log.data.toRlpBytes();
    }

    // LogTopics methods
    function getField(LogTopics memory topics, uint256 index) internal pure returns(RLPReader.RLPItem memory) {
      return topics.data[index];
    }
}

File 12 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^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 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) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 2000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_checkpointManager","type":"address"},{"internalType":"address","name":"_fxRoot","type":"address"},{"internalType":"address","name":"_rootToken","type":"address"},{"internalType":"address","name":"_trustedForwarder","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"size","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"x","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"y","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"size","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"x","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"y","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"SEND_MESSAGE_EVENT_SIG","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"sizes","type":"uint256[]"},{"internalType":"uint256[]","name":"xs","type":"uint256[]"},{"internalType":"uint256[]","name":"ys","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"batchTransferQuadToL2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkpointManager","outputs":[{"internalType":"contract ICheckpointManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fxChildTunnel","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fxRoot","outputs":[{"internalType":"contract IFxStateSender","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTrustedForwarder","outputs":[{"internalType":"address","name":"trustedForwarder","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"processedExits","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"inputData","type":"bytes"}],"name":"receiveMessage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rootToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_fxChildTunnel","type":"address"}],"name":"setFxChildTunnel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"trustedForwarder","type":"address"}],"name":"setTrustedForwarder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b506040516200364a3803806200364a833981016040819052620000349162000185565b600180546001600160a01b038087166001600160a01b03199283161790925560008054928616929091169190911790556200007862000072620000bc565b620000d9565b6005805460ff60a01b191690556001600160601b0319606083901b16608052600480546001600160a01b0319166001600160a01b03831617905550505050620001e1565b6000620000d36200012b60201b62000cb51760201c565b90505b90565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000620001383362000156565b156200014e575060131936013560601c620000d6565b5033620000d6565b6004546001600160a01b038281169116145b919050565b80516001600160a01b03811681146200016857600080fd5b600080600080608085870312156200019b578384fd5b620001a6856200016d565b9350620001b6602086016200016d565b9250620001c6604086016200016d565b9150620001d6606086016200016d565b905092959194509250565b60805160601c61343c6200020e60003960008181610222015281816108b701526112f3015261343c6000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c80638456cb59116100d8578063c4d168d61161008c578063de9b771f11610066578063de9b771f14610357578063f2fde38b1461036a578063f953cec71461037d57610177565b8063c4d168d614610320578063ce1b815f14610333578063da7422281461034457610177565b8063972c4928116100bd578063972c4928146102e7578063aea4e49e146102fa578063c0857ba01461030d57610177565b80638456cb59146102ce5780638da5cb5b146102d657610177565b80634b808c461161012f5780635c975abb116101145780635c975abb1461029b578063607f2d42146102a3578063715018a6146102c657610177565b80634b808c4614610266578063572b6c051461027957610177565b8063150b7a0211610160578063150b7a02146101d95780631f2d00651461021d5780633f4ba83a1461025c57610177565b806301ffc9a71461017c5780630e387de6146101a4575b600080fd5b61018f61018a366004612e7d565b610390565b60405190151581526020015b60405180910390f35b6101cb7f8c5261668696ce22758910d05bab8f186d6eb247ceac2af2e82c7dc17669b03681565b60405190815260200161019b565b6101ec6101e7366004612cfa565b61042b565b6040517fffffffff00000000000000000000000000000000000000000000000000000000909116815260200161019b565b6102447f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161019b565b6102646104c9565b005b6101ec610274366004612c3b565b61054c565b61018f610287366004612b63565b6004546001600160a01b0390811691161490565b61018f6105e6565b61018f6102b1366004612e19565b60036020526000908152604090205460ff1681565b610264610608565b61026461068b565b6005546001600160a01b0316610244565b600254610244906001600160a01b031681565b610264610308366004612b63565b61070c565b600154610244906001600160a01b031681565b61026461032e366004612d6b565b6107ba565b6004546001600160a01b0316610244565b610264610352366004612b63565b610af2565b600054610244906001600160a01b031681565b610264610378366004612b63565b610b9a565b61026461038b366004612ebd565b610c9b565b60007f5e8bf644000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316148061042357507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b90505b919050565b6005546000907501000000000000000000000000000000000000000000900460ff1661049e5760405162461bcd60e51b815260206004820152601560248201527f4c616e6454756e6e656c3a20214252494447494e47000000000000000000000060448201526064015b60405180910390fd5b507f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b6104d1610cff565b6001600160a01b03166104ec6005546001600160a01b031690565b6001600160a01b0316146105425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610495565b61054a610d0e565b565b6005546000907501000000000000000000000000000000000000000000900460ff166105ba5760405162461bcd60e51b815260206004820152601560248201527f4c616e6454756e6e656c3a20214252494447494e4700000000000000000000006044820152606401610495565b507f4b808c46000000000000000000000000000000000000000000000000000000009695505050505050565b60055474010000000000000000000000000000000000000000900460ff165b90565b610610610cff565b6001600160a01b031661062b6005546001600160a01b031690565b6001600160a01b0316146106815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610495565b61054a6000610dd0565b610693610cff565b6001600160a01b03166106ae6005546001600160a01b031690565b6001600160a01b0316146107045760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610495565b61054a610e2f565b6002546001600160a01b03161561078b5760405162461bcd60e51b815260206004820152602a60248201527f467842617365526f6f7454756e6e656c3a204348494c445f54554e4e454c5f4160448201527f4c52454144595f534554000000000000000000000000000000000000000000006064820152608401610495565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6107c26105e6565b1561080f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610495565b82518451148015610821575081518351145b61086d5760405162461bcd60e51b815260206004820152601060248201527f6c323a20696e76616c69642064617461000000000000000000000000000000006044820152606401610495565b600580547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff1675010000000000000000000000000000000000000000001790556001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663eaa5e0676108e4610cff565b30878787876040518763ffffffff1660e01b815260040161090a96959493929190612fb6565b600060405180830381600087803b15801561092457600080fd5b505af1158015610938573d6000803e3d6000fd5b5050600580547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16905550600090505b8451811015610aea5760008686838151811061099457634e487b7160e01b600052603260045260246000fd5b60200260200101518684815181106109bc57634e487b7160e01b600052603260045260246000fd5b60200260200101518685815181106109e457634e487b7160e01b600052603260045260246000fd5b602002602001015186604051602001610a01959493929190613088565b6040516020818303038152906040529050610a1b81610eec565b866001600160a01b03167f86beac9ed9e1aa4efb77b948567a4c352c177bb58b134f4c9d0d92c2c8ffbfb1878481518110610a6657634e487b7160e01b600052603260045260246000fd5b6020026020010151878581518110610a8e57634e487b7160e01b600052603260045260246000fd5b6020026020010151878681518110610ab657634e487b7160e01b600052603260045260246000fd5b602002602001015187604051610acf94939291906130c7565b60405180910390a25080610ae28161335e565b915050610968565b505050505050565b610afa610cff565b6001600160a01b0316610b156005546001600160a01b031690565b6001600160a01b031614610b6b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610495565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b610ba2610cff565b6001600160a01b0316610bbd6005546001600160a01b031690565b6001600160a01b031614610c135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610495565b6001600160a01b038116610c8f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610495565b610c9881610dd0565b50565b6000610ca682610f70565b9050610cb1816112bf565b5050565b6004546000906001600160a01b0316331415610cf857507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec36013560601c610605565b5033610605565b6000610d09610cb5565b905090565b610d166105e6565b610d625760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610495565b600580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610db3610cff565b6040516001600160a01b03909116815260200160405180910390a1565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610e376105e6565b15610e845760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610495565b600580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610db3610cff565b6000546002546040517fb47204770000000000000000000000000000000000000000000000000000000081526001600160a01b039283169263b472047792610f3b929116908590600401613066565b600060405180830381600087803b158015610f5557600080fd5b505af1158015610f69573d6000803e3d6000fd5b5050505050565b60606000610f7d836114c5565b90506000610f8a82611524565b90506000610f978361155b565b9050600081610fa584611592565b610fae866117b8565b604051602001610fc093929190612f89565b60408051601f1981840301815291815281516020928301206000818152600390935291205490915060ff161561105d5760405162461bcd60e51b8152602060048201526024808201527f4678526f6f7454756e6e656c3a20455849545f414c52454144595f50524f434560448201527f53534544000000000000000000000000000000000000000000000000000000006064820152608401610495565b600081815260036020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905561109d856117e2565b905060006110aa82611948565b90506110b5816119f4565b6002546001600160a01b039081169116146111385760405162461bcd60e51b815260206004820152602560248201527f4678526f6f7454756e6e656c3a20494e56414c49445f46585f4348494c445f5460448201527f554e4e454c0000000000000000000000000000000000000000000000000000006064820152608401610495565b600061114387611a2b565b9050611163611153846020015190565b8761115d8a611a55565b84611a7f565b6111d55760405162461bcd60e51b815260206004820152602360248201527f4678526f6f7454756e6e656c3a20494e56414c49445f524543454950545f505260448201527f4f4f4600000000000000000000000000000000000000000000000000000000006064820152608401610495565b611203856111e289611da6565b6111eb8a611dd0565b846111f58c611dfa565b6111fe8d611e24565b611e4e565b50600061120f83611f9c565b90507f8c5261668696ce22758910d05bab8f186d6eb247ceac2af2e82c7dc17669b036611245611240836000611fe6565b61202c565b146112925760405162461bcd60e51b815260206004820152601f60248201527f4678526f6f7454756e6e656c3a20494e56414c49445f5349474e4154555245006044820152606401610495565b600061129d846120a7565b8060200190518101906112b09190612ef0565b9b9a5050505050505050505050565b6000806000806000858060200190518101906112db9190612b7f565b9450945094509450945060005b83518110156114bc577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166338bb305a308888858151811061134257634e487b7160e01b600052603260045260246000fd5b602002602001015188868151811061136a57634e487b7160e01b600052603260045260246000fd5b602002602001015188878151811061139257634e487b7160e01b600052603260045260246000fd5b6020026020010151886040518763ffffffff1660e01b81526004016113bc9695949392919061301c565b600060405180830381600087803b1580156113d657600080fd5b505af11580156113ea573d6000803e3d6000fd5b50505050856001600160a01b03167f91ee42a3ae048785d7370790775b6bf02c58c5d7bfb5de80f6d7cb27e46a207e86838151811061143957634e487b7160e01b600052603260045260246000fd5b602002602001015186848151811061146157634e487b7160e01b600052603260045260246000fd5b602002602001015186858151811061148957634e487b7160e01b600052603260045260246000fd5b6020026020010151866040516114a294939291906130c7565b60405180910390a2806114b48161335e565b9150506112e8565b50505050505050565b604080516020810190915260608152600061150f61150a8460408051808201825260008082526020918201528151808301909252825182529182019181019190915290565b6120d1565b60408051602081019091529081529392505050565b6060610423826000015160088151811061154e57634e487b7160e01b600052603260045260246000fd5b6020026020010151612203565b6000610423826000015160028151811061158557634e487b7160e01b600052603260045260246000fd5b602002602001015161202c565b60408051602081019091526000815281516060919015610423576000806115ba6000866122ae565b60f81c905060018114806115d157508060ff166003145b156116ad576001855160026115e691906132d5565b6115f091906132f4565b67ffffffffffffffff81111561161657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611640576020820181803683370190505b50925060006116506001876122ae565b9050808460008151811061167457634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600192505061171f565b6002855160026116bd91906132d5565b6116c791906132f4565b67ffffffffffffffff8111156116ed57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611717576020820181803683370190505b509250600091505b60ff82165b83518110156117af5761174e61173d60ff8516836132f4565b611748906002613173565b876122ae565b84828151811061176e57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350806117a78161335e565b915050611724565b50505092915050565b6000610423826000015160098151811061158557634e487b7160e01b600052603260045260246000fd5b61180660405180606001604052806060815260200160608152602001600081525090565b61182e826000015160068151811061154e57634e487b7160e01b600052603260045260246000fd5b6020828101829052604080518082018252600080825290830152805180820190915282518152918101908201526118648161234b565b1561187957611872816120d1565b8252611934565b6020820151805160009061188f906001906132f4565b67ffffffffffffffff8111156118b557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156118df576020820181803683370190505b5090506000808360210191508260200190506118fd82828551612385565b60408051808201825260008082526020918201528151808301909252845182528085019082015261192d9061150a565b8652505050505b61193d836117b8565b604083015250919050565b6040805160808101825260009181018281526060808301939093528152602081019190915260006119a4836000015160038151811061199757634e487b7160e01b600052603260045260246000fd5b60200260200101516120d1565b8360400151815181106119c757634e487b7160e01b600052603260045260246000fd5b6020026020010151905060405180604001604052808281526020016119eb836120d1565b90529392505050565b60006104238260200151600081518110611a1e57634e487b7160e01b600052603260045260246000fd5b60200260200101516123ff565b6000610423826000015160058151811061158557634e487b7160e01b600052603260045260246000fd5b6060610423826000015160078151811061154e57634e487b7160e01b600052603260045260246000fd5b600080611ab38460408051808201825260008082526020918201528151808301909252825182529182019181019190915290565b90506000611ac0826120d1565b905060608085600080611ad28b611592565b9050805160001415611aee576000975050505050505050611d9e565b60005b8651811015611d95578151831115611b1457600098505050505050505050611d9e565b611b44878281518110611b3757634e487b7160e01b600052603260045260246000fd5b6020026020010151612419565b955085805190602001208414611b6557600098505050505050505050611d9e565b611b8887828151811061199757634e487b7160e01b600052603260045260246000fd5b9450845160111415611c87578151831415611bf8578c80519060200120611bc98660108151811061154e57634e487b7160e01b600052603260045260246000fd5b805190602001201415611be757600198505050505050505050611d9e565b600098505050505050505050611d9e565b6000828481518110611c1a57634e487b7160e01b600052603260045260246000fd5b016020015160f81c90506010811115611c3f5760009950505050505050505050611d9e565b611c72868260ff1681518110611c6557634e487b7160e01b600052603260045260246000fd5b60200260200101516124a8565b9450611c7f600185613173565b935050611d83565b845160021415611be7576000611cc1611cba8760008151811061154e57634e487b7160e01b600052603260045260246000fd5b84866124d6565b8351909150611cd08286613173565b1415611d33578d80519060200120611d028760018151811061154e57634e487b7160e01b600052603260045260246000fd5b805190602001201415611d215760019950505050505050505050611d9e565b60009950505050505050505050611d9e565b80611d4a5760009950505050505050505050611d9e565b611d548185613173565b9350611d7a86600181518110611c6557634e487b7160e01b600052603260045260246000fd5b9450611d839050565b80611d8d8161335e565b915050611af1565b50505050505050505b949350505050565b6000610423826000015160038151811061158557634e487b7160e01b600052603260045260246000fd5b6000610423826000015160048151811061158557634e487b7160e01b600052603260045260246000fd5b6000610423826000015160008151811061158557634e487b7160e01b600052603260045260246000fd5b6060610423826000015160018151811061154e57634e487b7160e01b600052603260045260246000fd5b6001546040517f41539d4a000000000000000000000000000000000000000000000000000000008152600481018490526000918291829182916001600160a01b03909116906341539d4a9060240160a06040518083038186803b158015611eb457600080fd5b505afa158015611ec8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eec9190612e31565b5093505092509250611f43828b611f0391906132f4565b6040805160208082018f90528183018e9052606082018d905260808083018d90528351808403909101815260a0909201909252805191012090858861263b565b611f8f5760405162461bcd60e51b815260206004820152601c60248201527f4678526f6f7454756e6e656c3a20494e56414c49445f484541444552000000006044820152606401610495565b9998505050505050505050565b6040805160208101909152606081526040518060200160405280611fde846020015160018151811061199757634e487b7160e01b600052603260045260246000fd5b905292915050565b6040805180820190915260008082526020820152825180518390811061201c57634e487b7160e01b600052603260045260246000fd5b6020026020010151905092915050565b80516000901580159061204157508151602110155b61204a57600080fd5b600061205983602001516127b1565b9050600081846000015161206d91906132f4565b90506000808386602001516120829190613173565b905080519150602083101561209e57826020036101000a820491505b50949350505050565b6060610423826020015160028151811061154e57634e487b7160e01b600052603260045260246000fd5b60606120dc8261234b565b6120e557600080fd5b60006120f083612836565b905060008167ffffffffffffffff81111561211b57634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561216057816020015b60408051808201909152600080825260208201528152602001906001900390816121395790505b509050600061217285602001516127b1565b85602001516121819190613173565b90506000805b848110156121f857612198836128b9565b91506040518060400160405280838152602001848152508482815181106121cf57634e487b7160e01b600052603260045260246000fd5b60209081029190910101526121e48284613173565b9250806121f08161335e565b915050612187565b509195945050505050565b805160609061221157600080fd5b600061222083602001516127b1565b9050600081846000015161223491906132f4565b905060008167ffffffffffffffff81111561225f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612289576020820181803683370190505b509050600081602001905061209e8487602001516122a79190613173565b828561297b565b60006122bb600284613379565b15612303576010826122ce60028661318b565b815181106122ec57634e487b7160e01b600052603260045260246000fd5b01602001516122fe919060f81c61338d565b612341565b60108261231160028661318b565b8151811061232f57634e487b7160e01b600052603260045260246000fd5b0160200151612341919060f81c61319f565b60f81b9392505050565b805160009061235c57506000610426565b6020820151805160001a9060c082101561237b57600092505050610426565b5060019392505050565b8061238f576123fa565b602081106123c757825182526123a6602084613173565b92506123b3602083613173565b91506123c06020826132f4565b905061238f565b600060016123d68360206132f4565b6123e290610100613207565b6123ec91906132f4565b845184518216911916178352505b505050565b805160009060151461241057600080fd5b6104238261202c565b60606000826000015167ffffffffffffffff81111561244857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612472576020820181803683370190505b509050805160001415612486579050610426565b60008160200190506124a1846020015182866000015161297b565b5092915050565b80516000906021146124b957600080fd5b600080836020015160016124cd9190613173565b51949350505050565b600080806124e386611592565b90506000815167ffffffffffffffff81111561250f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612539576020820181803683370190505b509050845b825161254a9087613173565b81101561260957600087828151811061257357634e487b7160e01b600052603260045260246000fd5b01602001517fff0000000000000000000000000000000000000000000000000000000000000016905080836125a889856132f4565b815181106125c657634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505080806126019061335e565b91505061253e565b50808051906020012082805190602001201415612629578151925061262e565b600092505b50909150505b9392505050565b60006020825161264b9190613379565b156126985760405162461bcd60e51b815260206004820152601460248201527f496e76616c69642070726f6f66206c656e6774680000000000000000000000006044820152606401610495565b6000602083516126a8919061318b565b90506126b5816002613207565b85106127035760405162461bcd60e51b815260206004820152601560248201527f4c65616620696e64657820697320746f6f2062696700000000000000000000006044820152606401610495565b60008660205b855181116127a357858101519250612722600289613379565b612757576040805160208101849052908101849052606001604051602081830303815290604052805190602001209150612784565b60408051602081018590529081018390526060016040516020818303038152906040528051906020012091505b61278f60028961318b565b975061279c602082613173565b9050612709565b509094149695505050505050565b8051600090811a60808110156127cb576000915050610426565b60b88110806127e6575060c081108015906127e6575060f881105b156127f5576001915050610426565b60c081101561282a5761280a600160b861330b565b6128179060ff16826132f4565b612822906001613173565b915050610426565b61280a600160f861330b565b805160009061284757506000610426565b60008061285784602001516127b1565b84602001516128669190613173565b905060008460000151856020015161287e9190613173565b90505b808210156128b057612892826128b9565b61289c9083613173565b9150826128a88161335e565b935050612881565b50909392505050565b80516000908190811a60808110156128d457600191506124a1565b60b88110156128fa576128e86080826132f4565b6128f3906001613173565b91506124a1565b60c08110156129275760b78103600185019450806020036101000a855104600182018101935050506124a1565b60f881101561293b576128e860c0826132f4565b60019390930151602084900360f7016101000a90049092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0a0192915050565b80612985576123fa565b602081106129bd578251825261299c602084613173565b92506129a9602083613173565b91506129b66020826132f4565b9050612985565b806123c7576123fa565b600082601f8301126129d7578081fd5b813560206129ec6129e783613127565b6130f6565b8281528181019085830183850287018401881015612a08578586fd5b855b85811015612a2657813584529284019290840190600101612a0a565b5090979650505050505050565b600082601f830112612a43578081fd5b81516020612a536129e783613127565b8281528181019085830183850287018401881015612a6f578586fd5b855b85811015612a2657815184529284019290840190600101612a71565b60008083601f840112612a9e578182fd5b50813567ffffffffffffffff811115612ab5578182fd5b602083019150836020828501011115612acd57600080fd5b9250929050565b600082601f830112612ae4578081fd5b8135612af26129e78261314b565b818152846020838601011115612b06578283fd5b816020850160208301379081016020019190915292915050565b600082601f830112612b30578081fd5b8151612b3e6129e78261314b565b818152846020838601011115612b52578283fd5b611d9e82602083016020870161332e565b600060208284031215612b74578081fd5b8135612634816133f1565b600080600080600060a08688031215612b96578081fd5b8551612ba1816133f1565b602087015190955067ffffffffffffffff80821115612bbe578283fd5b612bca89838a01612a33565b95506040880151915080821115612bdf578283fd5b612beb89838a01612a33565b94506060880151915080821115612c00578283fd5b612c0c89838a01612a33565b93506080880151915080821115612c21578283fd5b50612c2e88828901612b20565b9150509295509295909350565b60008060008060008060808789031215612c53578081fd5b8635612c5e816133f1565b95506020870135612c6e816133f1565b9450604087013567ffffffffffffffff80821115612c8a578283fd5b818901915089601f830112612c9d578283fd5b813581811115612cab578384fd5b8a60208083028501011115612cbe578384fd5b602083019650809550506060890135915080821115612cdb578283fd5b50612ce889828a01612a8d565b979a9699509497509295939492505050565b600080600080600060808688031215612d11578081fd5b8535612d1c816133f1565b94506020860135612d2c816133f1565b935060408601359250606086013567ffffffffffffffff811115612d4e578182fd5b612d5a88828901612a8d565b969995985093965092949392505050565b600080600080600060a08688031215612d82578283fd5b8535612d8d816133f1565b9450602086013567ffffffffffffffff80821115612da9578485fd5b612db589838a016129c7565b95506040880135915080821115612dca578485fd5b612dd689838a016129c7565b94506060880135915080821115612deb578283fd5b612df789838a016129c7565b93506080880135915080821115612e0c578283fd5b50612c2e88828901612ad4565b600060208284031215612e2a578081fd5b5035919050565b600080600080600060a08688031215612e48578283fd5b855194506020860151935060408601519250606086015191506080860151612e6f816133f1565b809150509295509295909350565b600060208284031215612e8e578081fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114612634578182fd5b600060208284031215612ece578081fd5b813567ffffffffffffffff811115612ee4578182fd5b611d9e84828501612ad4565b600060208284031215612f01578081fd5b815167ffffffffffffffff811115612f17578182fd5b611d9e84828501612b20565b6000815180845260208085019450808401835b83811015612f5257815187529582019590820190600101612f36565b509495945050505050565b60008151808452612f7581602086016020860161332e565b601f01601f19169290920160200192915050565b60008482528351612fa181602085016020880161332e565b60209201918201929092526040019392505050565b60006001600160a01b03808916835280881660208401525060c06040830152612fe260c0830187612f23565b8281036060840152612ff48187612f23565b905082810360808401526130088186612f23565b905082810360a0840152611f8f8185612f5d565b60006001600160a01b03808916835280881660208401525085604083015284606083015283608083015260c060a083015261305a60c0830184612f5d565b98975050505050505050565b60006001600160a01b038416825260406020830152611d9e6040830184612f5d565b60006001600160a01b038716825285602083015284604083015283606083015260a060808301526130bc60a0830184612f5d565b979650505050505050565b6000858252846020830152836040830152608060608301526130ec6080830184612f5d565b9695505050505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561311f5761311f6133db565b604052919050565b600067ffffffffffffffff821115613141576131416133db565b5060209081020190565b600067ffffffffffffffff821115613165576131656133db565b50601f01601f191660200190565b60008219821115613186576131866133af565b500190565b60008261319a5761319a6133c5565b500490565b600060ff8316806131b2576131b26133c5565b8060ff84160491505092915050565b80825b60018086116131d357506131fe565b8187048211156131e5576131e56133af565b808616156131f257918102915b9490941c9380026131c4565b94509492505050565b6000612634600019848460008261322057506001612634565b8161322d57506000612634565b8160018114613243576002811461324d5761327a565b6001915050612634565b60ff84111561325e5761325e6133af565b6001841b915084821115613274576132746133af565b50612634565b5060208310610133831016604e8410600b84101617156132ad575081810a838111156132a8576132a86133af565b612634565b6132ba84848460016131c1565b8086048211156132cc576132cc6133af565b02949350505050565b60008160001904831182151516156132ef576132ef6133af565b500290565b600082821015613306576133066133af565b500390565b600060ff821660ff841680821015613325576133256133af565b90039392505050565b60005b83811015613349578181015183820152602001613331565b83811115613358576000848401525b50505050565b6000600019821415613372576133726133af565b5060010190565b600082613388576133886133c5565b500690565b600060ff8316806133a0576133a06133c5565b8060ff84160691505092915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c9857600080fdfea264697066735822122086ad62ce576e84646f9a0124642fe3baf0bd8a6a3905bfa4479d7be8992045b264736f6c6343000802003300000000000000000000000086e4dc95c7fbdbf52e33d563bbdb00823894c287000000000000000000000000fe5e5d361b2ad62c541bab87c45a0b9b018389a20000000000000000000000005cc5b05a8a13e3fbdb0bb9fccd98d38e50f90c3800000000000000000000000084a0856b038eaad1cc7e297cf34a7e72685a8693

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101775760003560e01c80638456cb59116100d8578063c4d168d61161008c578063de9b771f11610066578063de9b771f14610357578063f2fde38b1461036a578063f953cec71461037d57610177565b8063c4d168d614610320578063ce1b815f14610333578063da7422281461034457610177565b8063972c4928116100bd578063972c4928146102e7578063aea4e49e146102fa578063c0857ba01461030d57610177565b80638456cb59146102ce5780638da5cb5b146102d657610177565b80634b808c461161012f5780635c975abb116101145780635c975abb1461029b578063607f2d42146102a3578063715018a6146102c657610177565b80634b808c4614610266578063572b6c051461027957610177565b8063150b7a0211610160578063150b7a02146101d95780631f2d00651461021d5780633f4ba83a1461025c57610177565b806301ffc9a71461017c5780630e387de6146101a4575b600080fd5b61018f61018a366004612e7d565b610390565b60405190151581526020015b60405180910390f35b6101cb7f8c5261668696ce22758910d05bab8f186d6eb247ceac2af2e82c7dc17669b03681565b60405190815260200161019b565b6101ec6101e7366004612cfa565b61042b565b6040517fffffffff00000000000000000000000000000000000000000000000000000000909116815260200161019b565b6102447f0000000000000000000000005cc5b05a8a13e3fbdb0bb9fccd98d38e50f90c3881565b6040516001600160a01b03909116815260200161019b565b6102646104c9565b005b6101ec610274366004612c3b565b61054c565b61018f610287366004612b63565b6004546001600160a01b0390811691161490565b61018f6105e6565b61018f6102b1366004612e19565b60036020526000908152604090205460ff1681565b610264610608565b61026461068b565b6005546001600160a01b0316610244565b600254610244906001600160a01b031681565b610264610308366004612b63565b61070c565b600154610244906001600160a01b031681565b61026461032e366004612d6b565b6107ba565b6004546001600160a01b0316610244565b610264610352366004612b63565b610af2565b600054610244906001600160a01b031681565b610264610378366004612b63565b610b9a565b61026461038b366004612ebd565b610c9b565b60007f5e8bf644000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316148061042357507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b90505b919050565b6005546000907501000000000000000000000000000000000000000000900460ff1661049e5760405162461bcd60e51b815260206004820152601560248201527f4c616e6454756e6e656c3a20214252494447494e47000000000000000000000060448201526064015b60405180910390fd5b507f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b6104d1610cff565b6001600160a01b03166104ec6005546001600160a01b031690565b6001600160a01b0316146105425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610495565b61054a610d0e565b565b6005546000907501000000000000000000000000000000000000000000900460ff166105ba5760405162461bcd60e51b815260206004820152601560248201527f4c616e6454756e6e656c3a20214252494447494e4700000000000000000000006044820152606401610495565b507f4b808c46000000000000000000000000000000000000000000000000000000009695505050505050565b60055474010000000000000000000000000000000000000000900460ff165b90565b610610610cff565b6001600160a01b031661062b6005546001600160a01b031690565b6001600160a01b0316146106815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610495565b61054a6000610dd0565b610693610cff565b6001600160a01b03166106ae6005546001600160a01b031690565b6001600160a01b0316146107045760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610495565b61054a610e2f565b6002546001600160a01b03161561078b5760405162461bcd60e51b815260206004820152602a60248201527f467842617365526f6f7454756e6e656c3a204348494c445f54554e4e454c5f4160448201527f4c52454144595f534554000000000000000000000000000000000000000000006064820152608401610495565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6107c26105e6565b1561080f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610495565b82518451148015610821575081518351145b61086d5760405162461bcd60e51b815260206004820152601060248201527f6c323a20696e76616c69642064617461000000000000000000000000000000006044820152606401610495565b600580547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff1675010000000000000000000000000000000000000000001790556001600160a01b037f0000000000000000000000005cc5b05a8a13e3fbdb0bb9fccd98d38e50f90c381663eaa5e0676108e4610cff565b30878787876040518763ffffffff1660e01b815260040161090a96959493929190612fb6565b600060405180830381600087803b15801561092457600080fd5b505af1158015610938573d6000803e3d6000fd5b5050600580547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16905550600090505b8451811015610aea5760008686838151811061099457634e487b7160e01b600052603260045260246000fd5b60200260200101518684815181106109bc57634e487b7160e01b600052603260045260246000fd5b60200260200101518685815181106109e457634e487b7160e01b600052603260045260246000fd5b602002602001015186604051602001610a01959493929190613088565b6040516020818303038152906040529050610a1b81610eec565b866001600160a01b03167f86beac9ed9e1aa4efb77b948567a4c352c177bb58b134f4c9d0d92c2c8ffbfb1878481518110610a6657634e487b7160e01b600052603260045260246000fd5b6020026020010151878581518110610a8e57634e487b7160e01b600052603260045260246000fd5b6020026020010151878681518110610ab657634e487b7160e01b600052603260045260246000fd5b602002602001015187604051610acf94939291906130c7565b60405180910390a25080610ae28161335e565b915050610968565b505050505050565b610afa610cff565b6001600160a01b0316610b156005546001600160a01b031690565b6001600160a01b031614610b6b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610495565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b610ba2610cff565b6001600160a01b0316610bbd6005546001600160a01b031690565b6001600160a01b031614610c135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610495565b6001600160a01b038116610c8f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610495565b610c9881610dd0565b50565b6000610ca682610f70565b9050610cb1816112bf565b5050565b6004546000906001600160a01b0316331415610cf857507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec36013560601c610605565b5033610605565b6000610d09610cb5565b905090565b610d166105e6565b610d625760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610495565b600580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610db3610cff565b6040516001600160a01b03909116815260200160405180910390a1565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610e376105e6565b15610e845760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610495565b600580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610db3610cff565b6000546002546040517fb47204770000000000000000000000000000000000000000000000000000000081526001600160a01b039283169263b472047792610f3b929116908590600401613066565b600060405180830381600087803b158015610f5557600080fd5b505af1158015610f69573d6000803e3d6000fd5b5050505050565b60606000610f7d836114c5565b90506000610f8a82611524565b90506000610f978361155b565b9050600081610fa584611592565b610fae866117b8565b604051602001610fc093929190612f89565b60408051601f1981840301815291815281516020928301206000818152600390935291205490915060ff161561105d5760405162461bcd60e51b8152602060048201526024808201527f4678526f6f7454756e6e656c3a20455849545f414c52454144595f50524f434560448201527f53534544000000000000000000000000000000000000000000000000000000006064820152608401610495565b600081815260036020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905561109d856117e2565b905060006110aa82611948565b90506110b5816119f4565b6002546001600160a01b039081169116146111385760405162461bcd60e51b815260206004820152602560248201527f4678526f6f7454756e6e656c3a20494e56414c49445f46585f4348494c445f5460448201527f554e4e454c0000000000000000000000000000000000000000000000000000006064820152608401610495565b600061114387611a2b565b9050611163611153846020015190565b8761115d8a611a55565b84611a7f565b6111d55760405162461bcd60e51b815260206004820152602360248201527f4678526f6f7454756e6e656c3a20494e56414c49445f524543454950545f505260448201527f4f4f4600000000000000000000000000000000000000000000000000000000006064820152608401610495565b611203856111e289611da6565b6111eb8a611dd0565b846111f58c611dfa565b6111fe8d611e24565b611e4e565b50600061120f83611f9c565b90507f8c5261668696ce22758910d05bab8f186d6eb247ceac2af2e82c7dc17669b036611245611240836000611fe6565b61202c565b146112925760405162461bcd60e51b815260206004820152601f60248201527f4678526f6f7454756e6e656c3a20494e56414c49445f5349474e4154555245006044820152606401610495565b600061129d846120a7565b8060200190518101906112b09190612ef0565b9b9a5050505050505050505050565b6000806000806000858060200190518101906112db9190612b7f565b9450945094509450945060005b83518110156114bc577f0000000000000000000000005cc5b05a8a13e3fbdb0bb9fccd98d38e50f90c386001600160a01b03166338bb305a308888858151811061134257634e487b7160e01b600052603260045260246000fd5b602002602001015188868151811061136a57634e487b7160e01b600052603260045260246000fd5b602002602001015188878151811061139257634e487b7160e01b600052603260045260246000fd5b6020026020010151886040518763ffffffff1660e01b81526004016113bc9695949392919061301c565b600060405180830381600087803b1580156113d657600080fd5b505af11580156113ea573d6000803e3d6000fd5b50505050856001600160a01b03167f91ee42a3ae048785d7370790775b6bf02c58c5d7bfb5de80f6d7cb27e46a207e86838151811061143957634e487b7160e01b600052603260045260246000fd5b602002602001015186848151811061146157634e487b7160e01b600052603260045260246000fd5b602002602001015186858151811061148957634e487b7160e01b600052603260045260246000fd5b6020026020010151866040516114a294939291906130c7565b60405180910390a2806114b48161335e565b9150506112e8565b50505050505050565b604080516020810190915260608152600061150f61150a8460408051808201825260008082526020918201528151808301909252825182529182019181019190915290565b6120d1565b60408051602081019091529081529392505050565b6060610423826000015160088151811061154e57634e487b7160e01b600052603260045260246000fd5b6020026020010151612203565b6000610423826000015160028151811061158557634e487b7160e01b600052603260045260246000fd5b602002602001015161202c565b60408051602081019091526000815281516060919015610423576000806115ba6000866122ae565b60f81c905060018114806115d157508060ff166003145b156116ad576001855160026115e691906132d5565b6115f091906132f4565b67ffffffffffffffff81111561161657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611640576020820181803683370190505b50925060006116506001876122ae565b9050808460008151811061167457634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600192505061171f565b6002855160026116bd91906132d5565b6116c791906132f4565b67ffffffffffffffff8111156116ed57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611717576020820181803683370190505b509250600091505b60ff82165b83518110156117af5761174e61173d60ff8516836132f4565b611748906002613173565b876122ae565b84828151811061176e57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350806117a78161335e565b915050611724565b50505092915050565b6000610423826000015160098151811061158557634e487b7160e01b600052603260045260246000fd5b61180660405180606001604052806060815260200160608152602001600081525090565b61182e826000015160068151811061154e57634e487b7160e01b600052603260045260246000fd5b6020828101829052604080518082018252600080825290830152805180820190915282518152918101908201526118648161234b565b1561187957611872816120d1565b8252611934565b6020820151805160009061188f906001906132f4565b67ffffffffffffffff8111156118b557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156118df576020820181803683370190505b5090506000808360210191508260200190506118fd82828551612385565b60408051808201825260008082526020918201528151808301909252845182528085019082015261192d9061150a565b8652505050505b61193d836117b8565b604083015250919050565b6040805160808101825260009181018281526060808301939093528152602081019190915260006119a4836000015160038151811061199757634e487b7160e01b600052603260045260246000fd5b60200260200101516120d1565b8360400151815181106119c757634e487b7160e01b600052603260045260246000fd5b6020026020010151905060405180604001604052808281526020016119eb836120d1565b90529392505050565b60006104238260200151600081518110611a1e57634e487b7160e01b600052603260045260246000fd5b60200260200101516123ff565b6000610423826000015160058151811061158557634e487b7160e01b600052603260045260246000fd5b6060610423826000015160078151811061154e57634e487b7160e01b600052603260045260246000fd5b600080611ab38460408051808201825260008082526020918201528151808301909252825182529182019181019190915290565b90506000611ac0826120d1565b905060608085600080611ad28b611592565b9050805160001415611aee576000975050505050505050611d9e565b60005b8651811015611d95578151831115611b1457600098505050505050505050611d9e565b611b44878281518110611b3757634e487b7160e01b600052603260045260246000fd5b6020026020010151612419565b955085805190602001208414611b6557600098505050505050505050611d9e565b611b8887828151811061199757634e487b7160e01b600052603260045260246000fd5b9450845160111415611c87578151831415611bf8578c80519060200120611bc98660108151811061154e57634e487b7160e01b600052603260045260246000fd5b805190602001201415611be757600198505050505050505050611d9e565b600098505050505050505050611d9e565b6000828481518110611c1a57634e487b7160e01b600052603260045260246000fd5b016020015160f81c90506010811115611c3f5760009950505050505050505050611d9e565b611c72868260ff1681518110611c6557634e487b7160e01b600052603260045260246000fd5b60200260200101516124a8565b9450611c7f600185613173565b935050611d83565b845160021415611be7576000611cc1611cba8760008151811061154e57634e487b7160e01b600052603260045260246000fd5b84866124d6565b8351909150611cd08286613173565b1415611d33578d80519060200120611d028760018151811061154e57634e487b7160e01b600052603260045260246000fd5b805190602001201415611d215760019950505050505050505050611d9e565b60009950505050505050505050611d9e565b80611d4a5760009950505050505050505050611d9e565b611d548185613173565b9350611d7a86600181518110611c6557634e487b7160e01b600052603260045260246000fd5b9450611d839050565b80611d8d8161335e565b915050611af1565b50505050505050505b949350505050565b6000610423826000015160038151811061158557634e487b7160e01b600052603260045260246000fd5b6000610423826000015160048151811061158557634e487b7160e01b600052603260045260246000fd5b6000610423826000015160008151811061158557634e487b7160e01b600052603260045260246000fd5b6060610423826000015160018151811061154e57634e487b7160e01b600052603260045260246000fd5b6001546040517f41539d4a000000000000000000000000000000000000000000000000000000008152600481018490526000918291829182916001600160a01b03909116906341539d4a9060240160a06040518083038186803b158015611eb457600080fd5b505afa158015611ec8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eec9190612e31565b5093505092509250611f43828b611f0391906132f4565b6040805160208082018f90528183018e9052606082018d905260808083018d90528351808403909101815260a0909201909252805191012090858861263b565b611f8f5760405162461bcd60e51b815260206004820152601c60248201527f4678526f6f7454756e6e656c3a20494e56414c49445f484541444552000000006044820152606401610495565b9998505050505050505050565b6040805160208101909152606081526040518060200160405280611fde846020015160018151811061199757634e487b7160e01b600052603260045260246000fd5b905292915050565b6040805180820190915260008082526020820152825180518390811061201c57634e487b7160e01b600052603260045260246000fd5b6020026020010151905092915050565b80516000901580159061204157508151602110155b61204a57600080fd5b600061205983602001516127b1565b9050600081846000015161206d91906132f4565b90506000808386602001516120829190613173565b905080519150602083101561209e57826020036101000a820491505b50949350505050565b6060610423826020015160028151811061154e57634e487b7160e01b600052603260045260246000fd5b60606120dc8261234b565b6120e557600080fd5b60006120f083612836565b905060008167ffffffffffffffff81111561211b57634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561216057816020015b60408051808201909152600080825260208201528152602001906001900390816121395790505b509050600061217285602001516127b1565b85602001516121819190613173565b90506000805b848110156121f857612198836128b9565b91506040518060400160405280838152602001848152508482815181106121cf57634e487b7160e01b600052603260045260246000fd5b60209081029190910101526121e48284613173565b9250806121f08161335e565b915050612187565b509195945050505050565b805160609061221157600080fd5b600061222083602001516127b1565b9050600081846000015161223491906132f4565b905060008167ffffffffffffffff81111561225f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612289576020820181803683370190505b509050600081602001905061209e8487602001516122a79190613173565b828561297b565b60006122bb600284613379565b15612303576010826122ce60028661318b565b815181106122ec57634e487b7160e01b600052603260045260246000fd5b01602001516122fe919060f81c61338d565b612341565b60108261231160028661318b565b8151811061232f57634e487b7160e01b600052603260045260246000fd5b0160200151612341919060f81c61319f565b60f81b9392505050565b805160009061235c57506000610426565b6020820151805160001a9060c082101561237b57600092505050610426565b5060019392505050565b8061238f576123fa565b602081106123c757825182526123a6602084613173565b92506123b3602083613173565b91506123c06020826132f4565b905061238f565b600060016123d68360206132f4565b6123e290610100613207565b6123ec91906132f4565b845184518216911916178352505b505050565b805160009060151461241057600080fd5b6104238261202c565b60606000826000015167ffffffffffffffff81111561244857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612472576020820181803683370190505b509050805160001415612486579050610426565b60008160200190506124a1846020015182866000015161297b565b5092915050565b80516000906021146124b957600080fd5b600080836020015160016124cd9190613173565b51949350505050565b600080806124e386611592565b90506000815167ffffffffffffffff81111561250f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612539576020820181803683370190505b509050845b825161254a9087613173565b81101561260957600087828151811061257357634e487b7160e01b600052603260045260246000fd5b01602001517fff0000000000000000000000000000000000000000000000000000000000000016905080836125a889856132f4565b815181106125c657634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505080806126019061335e565b91505061253e565b50808051906020012082805190602001201415612629578151925061262e565b600092505b50909150505b9392505050565b60006020825161264b9190613379565b156126985760405162461bcd60e51b815260206004820152601460248201527f496e76616c69642070726f6f66206c656e6774680000000000000000000000006044820152606401610495565b6000602083516126a8919061318b565b90506126b5816002613207565b85106127035760405162461bcd60e51b815260206004820152601560248201527f4c65616620696e64657820697320746f6f2062696700000000000000000000006044820152606401610495565b60008660205b855181116127a357858101519250612722600289613379565b612757576040805160208101849052908101849052606001604051602081830303815290604052805190602001209150612784565b60408051602081018590529081018390526060016040516020818303038152906040528051906020012091505b61278f60028961318b565b975061279c602082613173565b9050612709565b509094149695505050505050565b8051600090811a60808110156127cb576000915050610426565b60b88110806127e6575060c081108015906127e6575060f881105b156127f5576001915050610426565b60c081101561282a5761280a600160b861330b565b6128179060ff16826132f4565b612822906001613173565b915050610426565b61280a600160f861330b565b805160009061284757506000610426565b60008061285784602001516127b1565b84602001516128669190613173565b905060008460000151856020015161287e9190613173565b90505b808210156128b057612892826128b9565b61289c9083613173565b9150826128a88161335e565b935050612881565b50909392505050565b80516000908190811a60808110156128d457600191506124a1565b60b88110156128fa576128e86080826132f4565b6128f3906001613173565b91506124a1565b60c08110156129275760b78103600185019450806020036101000a855104600182018101935050506124a1565b60f881101561293b576128e860c0826132f4565b60019390930151602084900360f7016101000a90049092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0a0192915050565b80612985576123fa565b602081106129bd578251825261299c602084613173565b92506129a9602083613173565b91506129b66020826132f4565b9050612985565b806123c7576123fa565b600082601f8301126129d7578081fd5b813560206129ec6129e783613127565b6130f6565b8281528181019085830183850287018401881015612a08578586fd5b855b85811015612a2657813584529284019290840190600101612a0a565b5090979650505050505050565b600082601f830112612a43578081fd5b81516020612a536129e783613127565b8281528181019085830183850287018401881015612a6f578586fd5b855b85811015612a2657815184529284019290840190600101612a71565b60008083601f840112612a9e578182fd5b50813567ffffffffffffffff811115612ab5578182fd5b602083019150836020828501011115612acd57600080fd5b9250929050565b600082601f830112612ae4578081fd5b8135612af26129e78261314b565b818152846020838601011115612b06578283fd5b816020850160208301379081016020019190915292915050565b600082601f830112612b30578081fd5b8151612b3e6129e78261314b565b818152846020838601011115612b52578283fd5b611d9e82602083016020870161332e565b600060208284031215612b74578081fd5b8135612634816133f1565b600080600080600060a08688031215612b96578081fd5b8551612ba1816133f1565b602087015190955067ffffffffffffffff80821115612bbe578283fd5b612bca89838a01612a33565b95506040880151915080821115612bdf578283fd5b612beb89838a01612a33565b94506060880151915080821115612c00578283fd5b612c0c89838a01612a33565b93506080880151915080821115612c21578283fd5b50612c2e88828901612b20565b9150509295509295909350565b60008060008060008060808789031215612c53578081fd5b8635612c5e816133f1565b95506020870135612c6e816133f1565b9450604087013567ffffffffffffffff80821115612c8a578283fd5b818901915089601f830112612c9d578283fd5b813581811115612cab578384fd5b8a60208083028501011115612cbe578384fd5b602083019650809550506060890135915080821115612cdb578283fd5b50612ce889828a01612a8d565b979a9699509497509295939492505050565b600080600080600060808688031215612d11578081fd5b8535612d1c816133f1565b94506020860135612d2c816133f1565b935060408601359250606086013567ffffffffffffffff811115612d4e578182fd5b612d5a88828901612a8d565b969995985093965092949392505050565b600080600080600060a08688031215612d82578283fd5b8535612d8d816133f1565b9450602086013567ffffffffffffffff80821115612da9578485fd5b612db589838a016129c7565b95506040880135915080821115612dca578485fd5b612dd689838a016129c7565b94506060880135915080821115612deb578283fd5b612df789838a016129c7565b93506080880135915080821115612e0c578283fd5b50612c2e88828901612ad4565b600060208284031215612e2a578081fd5b5035919050565b600080600080600060a08688031215612e48578283fd5b855194506020860151935060408601519250606086015191506080860151612e6f816133f1565b809150509295509295909350565b600060208284031215612e8e578081fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114612634578182fd5b600060208284031215612ece578081fd5b813567ffffffffffffffff811115612ee4578182fd5b611d9e84828501612ad4565b600060208284031215612f01578081fd5b815167ffffffffffffffff811115612f17578182fd5b611d9e84828501612b20565b6000815180845260208085019450808401835b83811015612f5257815187529582019590820190600101612f36565b509495945050505050565b60008151808452612f7581602086016020860161332e565b601f01601f19169290920160200192915050565b60008482528351612fa181602085016020880161332e565b60209201918201929092526040019392505050565b60006001600160a01b03808916835280881660208401525060c06040830152612fe260c0830187612f23565b8281036060840152612ff48187612f23565b905082810360808401526130088186612f23565b905082810360a0840152611f8f8185612f5d565b60006001600160a01b03808916835280881660208401525085604083015284606083015283608083015260c060a083015261305a60c0830184612f5d565b98975050505050505050565b60006001600160a01b038416825260406020830152611d9e6040830184612f5d565b60006001600160a01b038716825285602083015284604083015283606083015260a060808301526130bc60a0830184612f5d565b979650505050505050565b6000858252846020830152836040830152608060608301526130ec6080830184612f5d565b9695505050505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561311f5761311f6133db565b604052919050565b600067ffffffffffffffff821115613141576131416133db565b5060209081020190565b600067ffffffffffffffff821115613165576131656133db565b50601f01601f191660200190565b60008219821115613186576131866133af565b500190565b60008261319a5761319a6133c5565b500490565b600060ff8316806131b2576131b26133c5565b8060ff84160491505092915050565b80825b60018086116131d357506131fe565b8187048211156131e5576131e56133af565b808616156131f257918102915b9490941c9380026131c4565b94509492505050565b6000612634600019848460008261322057506001612634565b8161322d57506000612634565b8160018114613243576002811461324d5761327a565b6001915050612634565b60ff84111561325e5761325e6133af565b6001841b915084821115613274576132746133af565b50612634565b5060208310610133831016604e8410600b84101617156132ad575081810a838111156132a8576132a86133af565b612634565b6132ba84848460016131c1565b8086048211156132cc576132cc6133af565b02949350505050565b60008160001904831182151516156132ef576132ef6133af565b500290565b600082821015613306576133066133af565b500390565b600060ff821660ff841680821015613325576133256133af565b90039392505050565b60005b83811015613349578181015183820152602001613331565b83811115613358576000848401525b50505050565b6000600019821415613372576133726133af565b5060010190565b600082613388576133886133c5565b500690565b600060ff8316806133a0576133a06133c5565b8060ff84160691505092915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c9857600080fdfea264697066735822122086ad62ce576e84646f9a0124642fe3baf0bd8a6a3905bfa4479d7be8992045b264736f6c63430008020033

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

00000000000000000000000086e4dc95c7fbdbf52e33d563bbdb00823894c287000000000000000000000000fe5e5d361b2ad62c541bab87c45a0b9b018389a20000000000000000000000005cc5b05a8a13e3fbdb0bb9fccd98d38e50f90c3800000000000000000000000084a0856b038eaad1cc7e297cf34a7e72685a8693

-----Decoded View---------------
Arg [0] : _checkpointManager (address): 0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287
Arg [1] : _fxRoot (address): 0xfe5e5D361b2ad62c541bAb87C45a0B9B018389a2
Arg [2] : _rootToken (address): 0x5CC5B05a8A13E3fBDB0BB9FcCd98D38e50F90c38
Arg [3] : _trustedForwarder (address): 0x84a0856b038eaAd1cC7E297cF34A7e72685A8693

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000086e4dc95c7fbdbf52e33d563bbdb00823894c287
Arg [1] : 000000000000000000000000fe5e5d361b2ad62c541bab87c45a0b9b018389a2
Arg [2] : 0000000000000000000000005cc5b05a8a13e3fbdb0bb9fccd98d38e50f90c38
Arg [3] : 00000000000000000000000084a0856b038eaad1cc7e297cf34a7e72685a8693


Block Transaction Difficulty 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
Loading...
Loading
[ 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.