GLMR Price: $0.021276 (-2.66%)

Contract

0x3C8dd053cF6303075a59E5e3e354C4c412A3e1c7
Transaction Hash
Block
From
To
Send To49978322023-12-03 0:35:30784 days ago1701563730IN
0x3C8dd053...412A3e1c7
2.41999305 GLMR0.07376254137.25
Send To49978052023-12-03 0:30:06784 days ago1701563406IN
0x3C8dd053...412A3e1c7
1.87672204 GLMR0.07301026136.76125
Send To48878712023-11-17 11:47:42799 days ago1700221662IN
0x3C8dd053...412A3e1c7
0.20630804 GLMR0.09814831126.5
Send To48109692023-11-06 16:31:48810 days ago1699288308IN
0x3C8dd053...412A3e1c7
0.25369108 GLMR0.06816123126.5
Send To47910082023-11-03 21:22:12813 days ago1699046532IN
0x3C8dd053...412A3e1c7
0.25369108 GLMR0.06992072126.53136353
Send To46251062023-10-11 13:29:18836 days ago1697030958IN
0x3C8dd053...412A3e1c7
0.2822883 GLMR0.07329165136.13875252
Send To46221452023-10-11 3:31:30837 days ago1696995090IN
0x3C8dd053...412A3e1c7
0.2822883 GLMR0.08193789137.14740886
Send To45630092023-10-02 19:46:42845 days ago1696276002IN
0x3C8dd053...412A3e1c7
0.22967196 GLMR0.07369024136.76125
Send To44781222023-09-20 20:37:00857 days ago1695242220IN
0x3C8dd053...412A3e1c7
0.3063031 GLMR0.1155765150
Send To44781192023-09-20 20:36:24857 days ago1695242184IN
0x3C8dd053...412A3e1c7
0.3063031 GLMR0.1155765150
Send To44781052023-09-20 20:33:36857 days ago1695242016IN
0x3C8dd053...412A3e1c7
0.3063031 GLMR0.10869018138
Send To44473802023-09-16 12:58:06861 days ago1694869086IN
0x3C8dd053...412A3e1c7
0.3063031 GLMR0.0754231138.18512934
Send To43856262023-09-07 20:41:18870 days ago1694119278IN
0x3C8dd053...412A3e1c7
0.27387926 GLMR0.07458109136.87518629
Send To43845532023-09-07 17:04:24870 days ago1694106264IN
0x3C8dd053...412A3e1c7
0.27387926 GLMR0.07697208137.20709664
Send To43845522023-09-07 17:04:12870 days ago1694106252IN
0x3C8dd053...412A3e1c7
0.27387926 GLMR0.07179501127.97867625
Send To43845502023-09-07 17:03:48870 days ago1694106228IN
0x3C8dd053...412A3e1c7
0.27387926 GLMR0.07170751127.8227
Send To43845472023-09-07 17:03:12870 days ago1694106192IN
0x3C8dd053...412A3e1c7
0.27387926 GLMR0.07170751127.8227
Send To43845452023-09-07 17:02:48870 days ago1694106168IN
0x3C8dd053...412A3e1c7
0.27387926 GLMR0.07175648127.91
Send To43845442023-09-07 17:02:36870 days ago1694106156IN
0x3C8dd053...412A3e1c7
0.27387926 GLMR0.07175648127.91
Send To43845432023-09-07 17:02:24870 days ago1694106144IN
0x3C8dd053...412A3e1c7
0.27387926 GLMR0.07692602137.125
Send To43845252023-09-07 16:58:48870 days ago1694105928IN
0x3C8dd053...412A3e1c7
0.27387926 GLMR0.07096548126.5
Send To43845142023-09-07 16:56:36870 days ago1694105796IN
0x3C8dd053...412A3e1c7
0.27387926 GLMR0.07096548126.5
Send To43845042023-09-07 16:54:36870 days ago1694105676IN
0x3C8dd053...412A3e1c7
0.27387926 GLMR0.07692602137.125
Send To43845012023-09-07 16:54:00870 days ago1694105640IN
0x3C8dd053...412A3e1c7
0.27387926 GLMR0.07692602137.125
Send To43844392023-09-07 16:41:12870 days ago1694104872IN
0x3C8dd053...412A3e1c7
0.27387926 GLMR0.07512571133.91584131
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
56213342024-02-29 5:28:12696 days ago1709184492
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
55973162024-02-25 19:17:36699 days ago1708888656
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
55540872024-02-19 15:42:12705 days ago1708357332
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
55045752024-02-12 14:19:30712 days ago1707747570
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
53176872024-01-17 5:04:06739 days ago1705467846
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
50652792023-12-12 13:30:12774 days ago1702387812
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
50016832023-12-03 13:38:18783 days ago1701610698
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
50016432023-12-03 13:30:13783 days ago1701610213
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
49990372023-12-03 4:39:48784 days ago1701578388
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
49978322023-12-03 0:35:30784 days ago1701563730
0x3C8dd053...412A3e1c7
2.41999305 GLMR
49978052023-12-03 0:30:06784 days ago1701563406
0x3C8dd053...412A3e1c7
1.87672204 GLMR
49977272023-12-03 0:14:12784 days ago1701562452
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
49930582023-12-02 8:13:00785 days ago1701504780
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
49930392023-12-02 8:08:54785 days ago1701504534
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
49908772023-12-02 0:46:18785 days ago1701477978
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
49876272023-12-01 13:34:12785 days ago1701437652
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
49866212023-12-01 10:05:06786 days ago1701425106
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
49864252023-12-01 9:24:18786 days ago1701422658
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
49092912023-11-20 12:09:06796 days ago1700482146
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
49092772023-11-20 12:06:18796 days ago1700481978
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
49026792023-11-19 13:48:42797 days ago1700401722
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
48954942023-11-18 13:34:00798 days ago1700314440
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
48878712023-11-17 11:47:42799 days ago1700221662
0x3C8dd053...412A3e1c7
0.20630804 GLMR
48584322023-11-13 8:09:36804 days ago1699862976
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
48220252023-11-08 5:42:12809 days ago1699422132
0x3C8dd053...412A3e1c7
 Contract Creation0 GLMR
View All Internal Transactions
Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ONFTGateway

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "../interfaces/IOmniApp.sol";
import "../interfaces/IOmnichainRouter.sol";
import "../interfaces/IONFTCopy.sol";
import "../interfaces/IOwnableERC721.sol";
import "./ONFTCopy.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract ONFTGateway is IOmniApp, Ownable {

    event OmReceived(string srcChain, address srcOA);
    event Transferred(address srcCollection, uint256 tokenId, address owner);
    event Locked(address collection, uint256 tokenId, address owner);

    IOmnichainRouter public omnichainRouter;
    mapping(address => mapping(uint256 => address)) public locked; // collection -> tokenId -> owner
    // Emergency unlock in case of a failed tx on the dstChain
    mapping(address => mapping(uint256 => bool)) public forceUnlockRequests; // collection -> tokenId -> isRequested
    mapping(address => address) public copyToOriginal;
    mapping(address => address) public originalToCopy;
    mapping(address => mapping(uint256 => bool)) public isCopy;
    string public chainName;
    mapping(string => address) public remoteChainToOA;
    address private _owner;
    address private _redirectionsBudgetManager;

    /**
     * @notice Sets the contract owner, feeManager address, router, and indicates source chain name for mappings.
     *
     * @param _router A contract that handles cross-chain messaging used to extend ERC721 with omnichain capabilities.
     */
    constructor(IOmnichainRouter _router) {
        _owner = msg.sender;
        chainName = "Moonbeam";
        omnichainRouter = _router;
        _redirectionsBudgetManager = address(0x61104fBe07ecc735D8d84422c7f045f8d29DBf15);
    }

    function setRouter(IOmnichainRouter _router) external onlyOwner {
        omnichainRouter = _router;
    }

    function setRedirectionsBudgetManager(address _newManager) external onlyOwner {
        _redirectionsBudgetManager = _newManager;
    }

    /**
     * @notice Sets the remote Omnichain Applications ("OA") addresses to meet omReceive() validation.
     *
     * @param remoteChainName Name of the remote chain.
     * @param remoteOA Address of the remote OA.
     */
    function setOA(string memory remoteChainName, address remoteOA) external onlyOwner {
        remoteChainToOA[remoteChainName] = remoteOA;
    }

    /**
     * @notice Checks the presence of the selected remote Omnichain Application ("OA").
     *
     * @param remoteChainName Name of the remote chain.
     * @param remoteOA Address of the remote OA.
     */
    function isOA(string memory remoteChainName, address remoteOA) public view returns (bool) {
        return remoteChainToOA[remoteChainName] == remoteOA;
    }

    /**
     * @notice Sends the ERC-721 to the destination chain
     *
     * @param collection ERC721 collection contract.
     * @param tokenId ID of the token
     * @param dstChainName OmnichainRouter-specific destination chain name.
     * @param gas Gas limit of the transaction executed on the destination chain.
     * @param redirectFee OmnichainRouter-specific gas limit of the redirection transaction on the redirect chain.
     */
    function sendTo(IOwnableERC721 collection, uint256 tokenId, string memory dstChainName, uint256 gas, uint256 redirectFee) public payable {
        require(bytes(dstChainName).length > 0);
        require(remoteChainToOA[dstChainName] != address(0), "!OA");
        address collAddress = address(collection);
        require(collAddress != address(0), "!ADDRESS");
        require(tokenId > 0, "!ID");
        require(_isContract(collAddress), "!EXISTS");
        require(collection.ownerOf(tokenId) == msg.sender, "!OWNER");

        if (isCopy[collAddress][tokenId]) {
            IONFTCopy copy = IONFTCopy(collAddress);
            _send(_getPayload(collection, copyToOriginal[collAddress], tokenId), dstChainName, gas, redirectFee);
            copy.burn(tokenId);
            isCopy[collAddress][tokenId] = false;

            return;
        }

        collection.transferFrom(msg.sender, address(this), tokenId);
        locked[collAddress][tokenId] = msg.sender;
        emit Locked(collAddress, tokenId, msg.sender);
        _send(_getPayload(collection, collAddress, tokenId), dstChainName, gas, redirectFee);
    }

    /**
     * @notice Handles the incoming task from other chains received from Omnichain Router.
     *         Validates Omnichain Application.

     * @notice Mints an NFT copy (ONFTCopy) or recovers the original NFT (locked on the source chain) and transfers to
     *         its owner.
     *
     * @param _payload Encoded bytes payload.
     * @param srcOA Address of the remote OA.
     * @param srcChain Name of the remote OA chain.
     */
    function omReceive(bytes calldata _payload, address srcOA, string memory srcChain) external override {
        emit OmReceived(srcChain, srcOA);
        require(isOA(srcChain, srcOA));
        (address originalAddress, uint256 tokenId, string memory tokenURI, address owner, string memory name, string memory symbol, address creator)
        = abi.decode(_payload, (address, uint256, string, address, string, string, address));

        if (locked[originalAddress][tokenId] != address(0)) {
            IERC721 original = IERC721(originalAddress);
            delete locked[originalAddress][tokenId];
            original.transferFrom(address(this), owner, tokenId);
            emit Transferred(originalAddress, tokenId, owner);

            return;
        }

        if (originalToCopy[originalAddress] != address(0)) {
            IONFTCopy copy = IONFTCopy(originalToCopy[originalAddress]);
            copy.mint(owner, tokenId, tokenURI);
            isCopy[originalToCopy[originalAddress]][tokenId] = true;
        } else {
            ONFTCopy copy = new ONFTCopy(name, symbol, address(this), creator);
            copy.mint(owner, tokenId, tokenURI);
            address copyAddress = address(copy);
            isCopy[copyAddress][tokenId] = true;
            originalToCopy[originalAddress] = copyAddress;
            copyToOriginal[copyAddress] = originalAddress;
        }
        emit Transferred(originalAddress, tokenId, owner);
    }

    /**
     * @notice Withdraws all the Omnichain Application's redirect fees collected from end-users in case of required redirections
    */
    function withdrawOARedirectFees() external onlyOwner {
        omnichainRouter.withdrawOARedirectFees(_redirectionsBudgetManager);
    }

    function requestForceUnlock(address _collection, uint256 _tokenId) external {
        require(locked[_collection][_tokenId] == msg.sender, '!locked OR !owner');
        forceUnlockRequests[_collection][_tokenId] = true;
    }

    function forceUnlock(address _collection, uint256 _tokenId) external onlyOwner {
        require(locked[_collection][_tokenId] != address(0), '!locked');
        require(forceUnlockRequests[_collection][_tokenId], '!requested');
        forceUnlockRequests[_collection][_tokenId] = false;
        IERC721 unlocked = IERC721(_collection);
        unlocked.transferFrom(address(this), locked[_collection][_tokenId], _tokenId);
        delete locked[_collection][_tokenId];
    }

    function setOwnership(address _collection, address _newOwner) external onlyOwner {
        IONFTCopy copy = IONFTCopy(_collection);
        copy.setOwnership(_newOwner);
    }

    /**
     * @notice Delegates cross-chain task to the Omnichain Router.
     *
     * @param payload Data required for the task execution on the dstChain.
     * @param dstChainName Name of the remote chain.
     * @param gas Gas limit set for the function execution on the dstChain.
     * @param redirectFee Fee required to cover transaction fee on the redirectChain, if involved. OmnichainRouter-specific.
     *        Involved during cross-chain multi-protocol routing. For example, Optimism (LayerZero) to Moonbeam (Axelar).
     */
    function _send(bytes memory payload, string memory dstChainName, uint256 gas, uint256 redirectFee) private {
        omnichainRouter.send{value : msg.value}(dstChainName, remoteChainToOA[dstChainName], payload, gas, msg.sender, redirectFee);
    }

    /**
     * @notice Encodes the data to the bytes payload for the cross-chain message.
     *
     * @param collection ERC-721 NFT collection.
     * @param original Address of the original NFT collection.
     * @param tokenId ID of the token.
     */
    function _getPayload(IOwnableERC721 collection, address original, uint256 tokenId) private view returns (bytes memory) {

        return abi.encode(
            original,
            tokenId,
            collection.tokenURI(tokenId),
            msg.sender,
            collection.name(),
            collection.symbol(),
            collection.owner()
        );
    }

    /**
     * @notice Checks if the given address is a contract.
     */
    function _isContract(address collection) private view returns (bool) {
        uint size;
        assembly {size := extcodesize(collection)}
        return size > 0;
    }

    receive() external payable {}
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

interface IOmniApp {
    /**
     * @notice Handles the incoming tasks from other chains received from Omnichain Router.
     *
     * @param _payload Encoded MintParams data.
     * @param srcOA Address of the remote OA.
     * @param srcChain Name of the remote OA chain.
     */
    function omReceive(bytes calldata _payload, address srcOA, string memory srcChain) external;
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

interface IOmnichainRouter {
    /**
     * @notice Delegates the cross-chain task to the Omnichain Router.
     *
     * @param dstChainName Name of the remote chain.
     * @param dstOA Address of the remote Omnichain Application ("OA").
     * @param fnData Encoded payload with a data for a target function execution.
     * @param gas Cross-chain task (tx) execution gas limit
     * @param user Address of the user initiating the cross-chain task (for gas refund)
     * @param redirectFee Fee required to cover transaction fee on the redirectChain, if involved. OmnichainRouter-specific.
     *        Involved during cross-chain multi-protocol routing. For example, Optimism (LayerZero) to Moonbeam (Axelar).
     */
    function send(string memory dstChainName, address dstOA, bytes memory fnData, uint gas, address user, uint256 redirectFee) external payable;

    /**
     * @notice Router on source chain receives redirect fee on payable send() function call. This fee is accounted to srcOARedirectBudget.
     *         here, msg.sender is that srcOA. srcOA contract should implement this function and point the address below which manages redirection budget.
     *
     * @param redirectionBudgetManager Address pointed by the srcOA (msg.sender) executing this function.
     *        Responsible for funding srcOA redirection budget.
     */
    function withdrawOARedirectFees(address redirectionBudgetManager) external;
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

interface IONFTCopy {
    function burn(uint256 tokenId) external;
    function mint(address owner, uint256 tokenId, string memory tokenURI) external;
    function setOwnership(address newOwner) external;
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";

interface IOwnableERC721 is IERC721Metadata {
    /**
     * @dev Returns the token collection owner.
     */
    function owner() external view returns (address);
    /**
     * @dev Returns the token collection name.
     */
    function name() external override view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external override view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external override view returns (string memory);
}

// SPDX-License-Identifier: MIT
// omnisea-contracts v0.1

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "../interfaces/IONFTCopy.sol";

contract ONFTCopy is IONFTCopy, ERC721URIStorage {
    address public gateway;
    address public owner;

    modifier isGateway {
        require(msg.sender == gateway, "!GATEWAY");
        _;
    }

    constructor(
        string memory _name,
        string memory _symbol,
        address _gateway,
        address _creator
    ) ERC721(_name, _symbol) {
        gateway = _gateway;
        owner = _creator;
    }

    function burn(uint256 tokenId) override external isGateway {
        _burn(tokenId);
    }

    function mint(address _owner, uint256 tokenId, string memory tokenURI) override external isGateway {
        _safeMint(_owner, tokenId);
        _setTokenURI(tokenId, tokenURI);
    }

    function setOwnership(address _newOwner) public override isGateway {
        require(owner == address(0));
        owner = _newOwner;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

// 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);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 13 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// 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;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IOmnichainRouter","name":"_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"srcChain","type":"string"},{"indexed":false,"internalType":"address","name":"srcOA","type":"address"}],"name":"OmReceived","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":"srcCollection","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"Transferred","type":"event"},{"inputs":[],"name":"chainName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"copyToOriginal","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_collection","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"forceUnlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"forceUnlockRequests","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"isCopy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"remoteChainName","type":"string"},{"internalType":"address","name":"remoteOA","type":"address"}],"name":"isOA","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"locked","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_payload","type":"bytes"},{"internalType":"address","name":"srcOA","type":"address"},{"internalType":"string","name":"srcChain","type":"string"}],"name":"omReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"omnichainRouter","outputs":[{"internalType":"contract IOmnichainRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"originalToCopy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"remoteChainToOA","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_collection","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"requestForceUnlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IOwnableERC721","name":"collection","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"dstChainName","type":"string"},{"internalType":"uint256","name":"gas","type":"uint256"},{"internalType":"uint256","name":"redirectFee","type":"uint256"}],"name":"sendTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"remoteChainName","type":"string"},{"internalType":"address","name":"remoteOA","type":"address"}],"name":"setOA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_collection","type":"address"},{"internalType":"address","name":"_newOwner","type":"address"}],"name":"setOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newManager","type":"address"}],"name":"setRedirectionsBudgetManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IOmnichainRouter","name":"_router","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawOARedirectFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162003c3e38038062003c3e8339810160408190526200003491620001bc565b6200003f33620000c6565b600980546001600160a01b03191633179055604080518082019091526008808252674d6f6f6e6265616d60c01b6020909201918252620000829160079162000116565b50600180546001600160a01b039092166001600160a01b0319928316179055600a80549091167361104fbe07ecc735d8d84422c7f045f8d29dbf151790556200022b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200012490620001ee565b90600052602060002090601f01602090048101928262000148576000855562000193565b82601f106200016357805160ff191683800117855562000193565b8280016001018555821562000193579182015b828111156200019357825182559160200191906001019062000176565b50620001a1929150620001a5565b5090565b5b80821115620001a15760008155600101620001a6565b600060208284031215620001cf57600080fd5b81516001600160a01b0381168114620001e757600080fd5b9392505050565b600181811c908216806200020357607f821691505b602082108114156200022557634e487b7160e01b600052602260045260246000fd5b50919050565b613a03806200023b6000396000f3fe608060405260043610620001145760003560e01c8063015c63d4146200012157806311a0377a14620001485780631c93b03a146200019a57806342259f7c14620001c15780635801a99214620002115780635c7700df1462000229578063715018a6146200024e57806374c5c43014620002665780637bf6f61614620002a05780638da5cb5b14620002df5780638f52a69c14620002f757806397e98d27146200031c578063a8704a1e146200033e578063b9e7d40e1462000383578063bf7bab7314620003a8578063c0d7865514620003ed578063cbd7847d1462000412578063f117c7271462000437578063f2fde38b146200045c578063fa8dedf61462000481578063ffd6ca54146200049857600080fd5b366200011c57005b600080fd5b3480156200012e57600080fd5b5062000146620001403660046200178d565b620004bd565b005b3480156200015557600080fd5b5062000182620001673660046200166d565b6004602052600090815260409020546001600160a01b031681565b60405162000191919062001a73565b60405180910390f35b348015620001a757600080fd5b50620001b262000563565b60405162000191919062001b6b565b348015620001ce57600080fd5b5062000200620001e0366004620017cb565b600360209081526000928352604080842090915290825290205460ff1681565b604051901515815260200162000191565b3480156200021e57600080fd5b5062000146620005f9565b3480156200023657600080fd5b506200014662000248366004620017cb565b62000699565b3480156200025b57600080fd5b506200014662000862565b3480156200027357600080fd5b5062000182620002853660046200166d565b6005602052600090815260409020546001600160a01b031681565b348015620002ad57600080fd5b5062000200620002bf366004620017cb565b600660209081526000928352604080842090915290825290205460ff1681565b348015620002ec57600080fd5b5062000182620008a4565b3480156200030457600080fd5b506200020062000316366004620019db565b620008b3565b3480156200032957600080fd5b5060015462000182906001600160a01b031681565b3480156200034b57600080fd5b50620001826200035d3660046200191c565b80516020818301810180516008825292820191909301209152546001600160a01b031681565b3480156200039057600080fd5b5062000146620003a2366004620017cb565b620008f3565b348015620003b557600080fd5b5062000182620003c7366004620017cb565b60026020908152600092835260408084209091529082529020546001600160a01b031681565b348015620003fa57600080fd5b50620001466200040c3660046200166d565b6200098d565b3480156200041f57600080fd5b506200014662000431366004620017fa565b620009e3565b3480156200044457600080fd5b5062000146620004563660046200166d565b62000d78565b3480156200046957600080fd5b50620001466200047b3660046200166d565b62000dce565b6200014662000492366004620018ac565b62000e77565b348015620004a557600080fd5b5062000146620004b7366004620019db565b6200125a565b33620004c8620008a4565b6001600160a01b031614620004fa5760405162461bcd60e51b8152600401620004f19062001c51565b60405180910390fd5b60405163a701602360e01b815282906001600160a01b0382169063a7016023906200052a90859060040162001a73565b600060405180830381600087803b1580156200054557600080fd5b505af11580156200055a573d6000803e3d6000fd5b50505050505050565b60078054620005729062001d12565b80601f0160208091040260200160405190810160405280929190818152602001828054620005a09062001d12565b8015620005f15780601f10620005c557610100808354040283529160200191620005f1565b820191906000526020600020905b815481529060010190602001808311620005d357829003601f168201915b505050505081565b3362000604620008a4565b6001600160a01b0316146200062d5760405162461bcd60e51b8152600401620004f19062001c51565b600154600a546040516342288df960e11b81526001600160a01b03928316926384511bf292620006639291169060040162001a73565b600060405180830381600087803b1580156200067e57600080fd5b505af115801562000693573d6000803e3d6000fd5b50505050565b33620006a4620008a4565b6001600160a01b031614620006cd5760405162461bcd60e51b8152600401620004f19062001c51565b6001600160a01b038281166000908152600260209081526040808320858452909152902054166200072b5760405162461bcd60e51b8152602060048201526007602482015266085b1bd8dad95960ca1b6044820152606401620004f1565b6001600160a01b038216600090815260036020908152604080832084845290915290205460ff166200078d5760405162461bcd60e51b815260206004820152600a602482015269085c995c5d595cdd195960b21b6044820152606401620004f1565b6001600160a01b0380831660008181526003602090815260408083208684528252808320805460ff1916905583835260028252808320868452909152908190205490516323b872dd60e01b815285936323b872dd92620007f99230929190911690879060040162001a87565b600060405180830381600087803b1580156200081457600080fd5b505af115801562000829573d6000803e3d6000fd5b505050506001600160a01b039290921660009081526002602090815260408083209383529290522080546001600160a01b031916905550565b336200086d620008a4565b6001600160a01b031614620008965760405162461bcd60e51b8152600401620004f19062001c51565b620008a26000620012d4565b565b6000546001600160a01b031690565b6000816001600160a01b0316600884604051620008d1919062001a55565b908152604051908190036020019020546001600160a01b031614905092915050565b6001600160a01b0382811660009081526002602090815260408083208584529091529020541633146200095d5760405162461bcd60e51b815260206004820152601160248201527010b637b1b5b2b21027a91010b7bbb732b960791b6044820152606401620004f1565b6001600160a01b03909116600090815260036020908152604080832093835292905220805460ff19166001179055565b3362000998620008a4565b6001600160a01b031614620009c15760405162461bcd60e51b8152600401620004f19062001c51565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b7f60cf18cff3490451c0453096daa47405f97c75e9449e175a7aff997f04f6b04f818360405162000a1692919062001b80565b60405180910390a162000a2a8183620008b3565b62000a3457600080fd5b600080808080808062000a4a8a8c018c620016b4565b6001600160a01b0380881660009081526002602090815260408083208a8452909152902054979e50959c50939a50919850965094509250161562000b51576001600160a01b03871660008181526002602090815260408083208a84529091529081902080546001600160a01b0319169055516323b872dd60e01b81528891906323b872dd9062000ae390309089908c9060040162001a87565b600060405180830381600087803b15801562000afe57600080fd5b505af115801562000b13573d6000803e3d6000fd5b50505050600080516020620039ae83398151915288888760405162000b3b9392919062001aab565b60405180910390a1505050505050505062000693565b6001600160a01b03878116600090815260056020526040902054161562000c2f576001600160a01b03808816600090815260056020526040908190205490516334ff261960e21b8152911690819063d3fc98649062000bb99088908b908b9060040162001ace565b600060405180830381600087803b15801562000bd457600080fd5b505af115801562000be9573d6000803e3d6000fd5b5050506001600160a01b03808a166000908152600560209081526040808320549093168252600681528282208b8352905220805460ff191660011790555062000d3f9050565b60008383308460405162000c4390620015f1565b62000c52949392919062001c03565b604051809103906000f08015801562000c6f573d6000803e3d6000fd5b506040516334ff261960e21b81529091506001600160a01b0382169063d3fc98649062000ca59088908b908b9060040162001ace565b600060405180830381600087803b15801562000cc057600080fd5b505af115801562000cd5573d6000803e3d6000fd5b5050506001600160a01b0391821660008181526006602090815260408083208c84528252808320805460ff19166001179055948c168083526005825285832080546001600160a01b0319908116861790915593835260049091529390208054909116909217909155505b600080516020620039ae83398151915287878660405162000d639392919062001aab565b60405180910390a15050505050505050505050565b3362000d83620008a4565b6001600160a01b03161462000dac5760405162461bcd60e51b8152600401620004f19062001c51565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b3362000dd9620008a4565b6001600160a01b03161462000e025760405162461bcd60e51b8152600401620004f19062001c51565b6001600160a01b03811662000e695760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620004f1565b62000e7481620012d4565b50565b600083511162000e8657600080fd5b60006001600160a01b031660088460405162000ea3919062001a55565b908152604051908190036020019020546001600160a01b0316141562000ef25760405162461bcd60e51b8152602060048201526003602482015262214f4160e81b6044820152606401620004f1565b846001600160a01b03811662000f365760405162461bcd60e51b8152602060048201526008602482015267214144445245535360c01b6044820152606401620004f1565b6000851162000f6e5760405162461bcd60e51b815260206004820152600360248201526208525160ea1b6044820152606401620004f1565b803b62000fa85760405162461bcd60e51b81526020600482015260076024820152662145584953545360c81b6044820152606401620004f1565b6040516331a9108f60e11b81526004810186905233906001600160a01b03881690636352211e9060240160206040518083038186803b15801562000feb57600080fd5b505afa15801562001000573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001026919062001694565b6001600160a01b031614620010675760405162461bcd60e51b815260206004820152600660248201526510a7aba722a960d11b6044820152606401620004f1565b6001600160a01b038116600090815260066020908152604080832088845290915290205460ff16156200115d576001600160a01b038082166000908152600460205260409020548291620010cd91620010c4918a91168962001324565b86868662001547565b604051630852cd8d60e31b8152600481018790526001600160a01b038216906342966c6890602401600060405180830381600087803b1580156200111057600080fd5b505af115801562001125573d6000803e3d6000fd5b5050506001600160a01b0390921660009081526006602090815260408083208984529091529020805460ff1916905550620012539050565b6040516323b872dd60e01b81526001600160a01b038716906323b872dd906200118f90339030908a9060040162001a87565b600060405180830381600087803b158015620011aa57600080fd5b505af1158015620011bf573d6000803e3d6000fd5b5050506001600160a01b03821660009081526002602090815260408083208984529091529081902080546001600160a01b0319163390811790915590517f6556f2e938a411129eba507e7d304a1f4b451f10196f319f58567ab10dccf55992506200122f91849189919062001aab565b60405180910390a1620012516200124887838862001324565b85858562001547565b505b5050505050565b3362001265620008a4565b6001600160a01b0316146200128e5760405162461bcd60e51b8152600401620004f19062001c51565b80600883604051620012a1919062001a55565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b03199092169190911790555050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608282856001600160a01b031663c87b56dd856040518263ffffffff1660e01b81526004016200135791815260200190565b60006040518083038186803b1580156200137057600080fd5b505afa15801562001385573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620013af91908101906200195c565b33876001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b158015620013ea57600080fd5b505afa158015620013ff573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200142991908101906200195c565b886001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156200146357600080fd5b505afa15801562001478573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620014a291908101906200195c565b896001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015620014dc57600080fd5b505afa158015620014f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001517919062001694565b6040516020016200152f979695949392919062001af7565b60405160208183030381529060405290509392505050565b6001546040516001600160a01b0390911690633626b37590349086906008906200157390839062001a55565b908152604051908190036020018120546001600160e01b031960e086901b168252620015b792916001600160a01b03909116908a90899033908a9060040162001bac565b6000604051808303818588803b158015620015d157600080fd5b505af1158015620015e6573d6000803e3d6000fd5b505050505050505050565b611c328062001d7c83390190565b80356200160c8162001d65565b919050565b600082601f8301126200162357600080fd5b81356200163a620016348262001cb9565b62001c86565b8181528460208386010111156200165057600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156200168057600080fd5b81356200168d8162001d65565b9392505050565b600060208284031215620016a757600080fd5b81516200168d8162001d65565b600080600080600080600060e0888a031215620016d057600080fd5b8735620016dd8162001d65565b96506020880135955060408801356001600160401b03808211156200170157600080fd5b6200170f8b838c0162001611565b965060608a01359150620017238262001d65565b909450608089013590808211156200173a57600080fd5b620017488b838c0162001611565b945060a08a01359150808211156200175f57600080fd5b506200176e8a828b0162001611565b9250506200177f60c08901620015ff565b905092959891949750929550565b60008060408385031215620017a157600080fd5b8235620017ae8162001d65565b91506020830135620017c08162001d65565b809150509250929050565b60008060408385031215620017df57600080fd5b8235620017ec8162001d65565b946020939093013593505050565b600080600080606085870312156200181157600080fd5b84356001600160401b03808211156200182957600080fd5b818701915087601f8301126200183e57600080fd5b8135818111156200184e57600080fd5b8860208285010111156200186157600080fd5b60209283019650945090860135906200187a8262001d65565b909250604086013590808211156200189157600080fd5b50620018a08782880162001611565b91505092959194509250565b600080600080600060a08688031215620018c557600080fd5b8535620018d28162001d65565b94506020860135935060408601356001600160401b03811115620018f557600080fd5b620019038882890162001611565b9598949750949560608101359550608001359392505050565b6000602082840312156200192f57600080fd5b81356001600160401b038111156200194657600080fd5b620019548482850162001611565b949350505050565b6000602082840312156200196f57600080fd5b81516001600160401b038111156200198657600080fd5b8201601f810184136200199857600080fd5b8051620019a9620016348262001cb9565b818152856020838501011115620019bf57600080fd5b620019d282602083016020860162001ce3565b95945050505050565b60008060408385031215620019ef57600080fd5b82356001600160401b0381111562001a0657600080fd5b62001a148582860162001611565b9250506020830135620017c08162001d65565b6000815180845262001a4181602086016020860162001ce3565b601f01601f19169290920160200192915050565b6000825162001a6981846020870162001ce3565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0393841681526020810192909252909116604082015260600190565b60018060a01b0384168152826020820152606060408201526000620019d2606083018462001a27565b600060018060a01b03808a16835288602084015260e0604084015262001b2160e084018962001a27565b8188166060850152838103608085015262001b3d818862001a27565b905083810360a085015262001b53818762001a27565b92505080841660c08401525098975050505050505050565b6020815260006200168d602083018462001a27565b60408152600062001b95604083018562001a27565b905060018060a01b03831660208301529392505050565b60c08152600062001bc160c083018962001a27565b6001600160a01b038881166020850152838203604085015262001be5828962001a27565b60608501979097529490941660808301525060a00152509392505050565b60808152600062001c18608083018762001a27565b828103602084015262001c2c818762001a27565b6001600160a01b03958616604085015293909416606090920191909152509392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f191681016001600160401b038111828210171562001cb15762001cb162001d4f565b604052919050565b60006001600160401b0382111562001cd55762001cd562001d4f565b50601f01601f191660200190565b60005b8381101562001d0057818101518382015260200162001ce6565b83811115620006935750506000910152565b600181811c9082168062001d2757607f821691505b6020821081141562001d4957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811462000e7457600080fdfe60806040523480156200001157600080fd5b5060405162001c3238038062001c32833981016040819052620000349162000219565b8351849084906200004d9060009060208501906200009f565b508051620000639060019060208401906200009f565b5050600780546001600160a01b039485166001600160a01b031991821617909155600880549390941692169190911790915550620002fb915050565b828054620000ad90620002a8565b90600052602060002090601f016020900481019282620000d157600085556200011c565b82601f10620000ec57805160ff19168380011785556200011c565b828001600101855582156200011c579182015b828111156200011c578251825591602001919060010190620000ff565b506200012a9291506200012e565b5090565b5b808211156200012a57600081556001016200012f565b80516001600160a01b03811681146200015d57600080fd5b919050565b600082601f8301126200017457600080fd5b81516001600160401b0380821115620001915762000191620002e5565b604051601f8301601f19908116603f01168101908282118183101715620001bc57620001bc620002e5565b81604052838152602092508683858801011115620001d957600080fd5b600091505b83821015620001fd5785820183015181830184015290820190620001de565b838211156200020f5760008385830101525b9695505050505050565b600080600080608085870312156200023057600080fd5b84516001600160401b03808211156200024857600080fd5b620002568883890162000162565b955060208701519150808211156200026d57600080fd5b506200027c8782880162000162565b9350506200028d6040860162000145565b91506200029d6060860162000145565b905092959194509250565b600181811c90821680620002bd57607f821691505b60208210811415620002df57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b611927806200030b6000396000f3fe608060405234801561001057600080fd5b50600436106100e65760003560e01c806301ffc9a7146100eb57806306fdde0314610113578063081812fc14610128578063095ea7b314610153578063116191b61461016857806323b872dd1461017b57806342842e0e1461018e57806342966c68146101a15780636352211e146101b457806370a08231146101c75780638da5cb5b146101e857806395d89b41146101fb578063a22cb46514610203578063a701602314610216578063b88d4fde14610229578063c87b56dd1461023c578063d3fc98641461024f578063e985e9c514610262575b600080fd5b6100fe6100f93660046115c7565b610275565b60405190151581526020015b60405180910390f35b61011b6102c7565b60405161010a91906116b2565b61013b610136366004611601565b610359565b6040516001600160a01b03909116815260200161010a565b610166610161366004611533565b6103e6565b005b60075461013b906001600160a01b031681565b610166610189366004611440565b6104f7565b61016661019c366004611440565b610528565b6101666101af366004611601565b610543565b61013b6101c2366004611601565b610579565b6101da6101d53660046113f2565b6105f0565b60405190815260200161010a565b60085461013b906001600160a01b031681565b61011b610677565b6101666102113660046114f7565b610686565b6101666102243660046113f2565b610695565b61016661023736600461147c565b6106f7565b61011b61024a366004611601565b61072f565b61016661025d36600461155d565b6108a6565b6100fe61027036600461140d565b6108e4565b60006001600160e01b031982166380ac58cd60e01b14806102a657506001600160e01b03198216635b5e139f60e01b145b806102c157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546102d6906117f9565b80601f0160208091040260200160405190810160405280929190818152602001828054610302906117f9565b801561034f5780601f106103245761010080835404028352916020019161034f565b820191906000526020600020905b81548152906001019060200180831161033257829003601f168201915b5050505050905090565b600061036482610912565b6103ca5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006103f182610579565b9050806001600160a01b0316836001600160a01b0316141561045f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016103c1565b336001600160a01b038216148061047b575061047b81336108e4565b6104e85760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016103c1565b6104f2838361092f565b505050565b610501338261099d565b61051d5760405162461bcd60e51b81526004016103c190611739565b6104f2838383610a5f565b6104f2838383604051806020016040528060008152506106f7565b6007546001600160a01b0316331461056d5760405162461bcd60e51b81526004016103c190611717565b61057681610bed565b50565b6000818152600260205260408120546001600160a01b0316806102c15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016103c1565b60006001600160a01b03821661065b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016103c1565b506001600160a01b031660009081526003602052604090205490565b6060600180546102d6906117f9565b610691338383610c2d565b5050565b6007546001600160a01b031633146106bf5760405162461bcd60e51b81526004016103c190611717565b6008546001600160a01b0316156106d557600080fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b610701338361099d565b61071d5760405162461bcd60e51b81526004016103c190611739565b61072984848484610cf8565b50505050565b606061073a82610912565b6107a05760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b60648201526084016103c1565b600082815260066020526040812080546107b9906117f9565b80601f01602080910402602001604051908101604052809291908181526020018280546107e5906117f9565b80156108325780601f1061080757610100808354040283529160200191610832565b820191906000526020600020905b81548152906001019060200180831161081557829003601f168201915b50505050509050600061085060408051602081019091526000815290565b9050805160001415610863575092915050565b81511561089557808260405160200161087d929190611646565b60405160208183030381529060405292505050919050565b61089e84610d2b565b949350505050565b6007546001600160a01b031633146108d05760405162461bcd60e51b81526004016103c190611717565b6108da8383610e03565b6104f28282610e1d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061096482610579565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006109a882610912565b610a095760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016103c1565b6000610a1483610579565b9050806001600160a01b0316846001600160a01b03161480610a4f5750836001600160a01b0316610a4484610359565b6001600160a01b0316145b8061089e575061089e81856108e4565b826001600160a01b0316610a7282610579565b6001600160a01b031614610ada5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016103c1565b6001600160a01b038216610b3c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016103c1565b610b4760008261092f565b6001600160a01b0383166000908152600360205260408120805460019290610b709084906117b6565b90915550506001600160a01b0382166000908152600360205260408120805460019290610b9e90849061178a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716916000805160206118d283398151915291a4505050565b610bf681610ea8565b60008181526006602052604090208054610c0f906117f9565b1590506105765760008181526006602052604081206105769161128e565b816001600160a01b0316836001600160a01b03161415610c8b5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016103c1565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610d03848484610a5f565b610d0f84848484610f31565b6107295760405162461bcd60e51b81526004016103c1906116c5565b6060610d3682610912565b610d9a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016103c1565b6000610db160408051602081019091526000815290565b90506000815111610dd15760405180602001604052806000815250610dfc565b80610ddb8461103e565b604051602001610dec929190611646565b6040516020818303038152906040525b9392505050565b61069182826040518060200160405280600081525061113b565b610e2682610912565b610e895760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016103c1565b600082815260066020908152604090912082516104f2928401906112c8565b6000610eb382610579565b9050610ec060008361092f565b6001600160a01b0381166000908152600360205260408120805460019290610ee99084906117b6565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416906000805160206118d2833981519152908390a45050565b60006001600160a01b0384163b1561103357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290610f75903390899088908890600401611675565b602060405180830381600087803b158015610f8f57600080fd5b505af1925050508015610fbf575060408051601f3d908101601f19168201909252610fbc918101906115e4565b60015b611019573d808015610fed576040519150601f19603f3d011682016040523d82523d6000602084013e610ff2565b606091505b5080516110115760405162461bcd60e51b81526004016103c1906116c5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061089e565b506001949350505050565b6060816110625750506040805180820190915260018152600360fc1b602082015290565b8160005b811561108c578061107681611834565b91506110859050600a836117a2565b9150611066565b6000816001600160401b038111156110a6576110a66118a5565b6040519080825280601f01601f1916602001820160405280156110d0576020820181803683370190505b5090505b841561089e576110e56001836117b6565b91506110f2600a8661184f565b6110fd90603061178a565b60f81b8183815181106111125761111261188f565b60200101906001600160f81b031916908160001a905350611134600a866117a2565b94506110d4565b611145838361116e565b6111526000848484610f31565b6104f25760405162461bcd60e51b81526004016103c1906116c5565b6001600160a01b0382166111c45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016103c1565b6111cd81610912565b156112195760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b60448201526064016103c1565b6001600160a01b038216600090815260036020526040812080546001929061124290849061178a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392906000805160206118d2833981519152908290a45050565b50805461129a906117f9565b6000825580601f106112aa575050565b601f016020900490600052602060002090810190610576919061134c565b8280546112d4906117f9565b90600052602060002090601f0160209004810192826112f6576000855561133c565b82601f1061130f57805160ff191683800117855561133c565b8280016001018555821561133c579182015b8281111561133c578251825591602001919060010190611321565b5061134892915061134c565b5090565b5b80821115611348576000815560010161134d565b60006001600160401b038084111561137b5761137b6118a5565b604051601f8501601f19908116603f011681019082821181831017156113a3576113a36118a5565b816040528093508581528686860111156113bc57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146113ed57600080fd5b919050565b60006020828403121561140457600080fd5b610dfc826113d6565b6000806040838503121561142057600080fd5b611429836113d6565b9150611437602084016113d6565b90509250929050565b60008060006060848603121561145557600080fd5b61145e846113d6565b925061146c602085016113d6565b9150604084013590509250925092565b6000806000806080858703121561149257600080fd5b61149b856113d6565b93506114a9602086016113d6565b92506040850135915060608501356001600160401b038111156114cb57600080fd5b8501601f810187136114dc57600080fd5b6114eb87823560208401611361565b91505092959194509250565b6000806040838503121561150a57600080fd5b611513836113d6565b91506020830135801515811461152857600080fd5b809150509250929050565b6000806040838503121561154657600080fd5b61154f836113d6565b946020939093013593505050565b60008060006060848603121561157257600080fd5b61157b846113d6565b92506020840135915060408401356001600160401b0381111561159d57600080fd5b8401601f810186136115ae57600080fd5b6115bd86823560208401611361565b9150509250925092565b6000602082840312156115d957600080fd5b8135610dfc816118bb565b6000602082840312156115f657600080fd5b8151610dfc816118bb565b60006020828403121561161357600080fd5b5035919050565b600081518084526116328160208601602086016117cd565b601f01601f19169290920160200192915050565b600083516116588184602088016117cd565b83519083019061166c8183602088016117cd565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906116a89083018461161a565b9695505050505050565b602081526000610dfc602083018461161a565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b602080825260089082015267214741544557415960c01b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561179d5761179d611863565b500190565b6000826117b1576117b1611879565b500490565b6000828210156117c8576117c8611863565b500390565b60005b838110156117e85781810151838201526020016117d0565b838111156107295750506000910152565b600181811c9082168061180d57607f821691505b6020821081141561182e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561184857611848611863565b5060010190565b60008261185e5761185e611879565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461057657600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122018b8cf02d04e51db682c6ef5d5f43c343f9ca9dbaf2e1ac809eec9d2d92a392b64736f6c634300080700335f8ce21c9bc9581b07f76353a3f72e24204268542b57800c2c3427c47e070333a26469706673582212209f00f3958d71adc0812a390cb65689a58c372a73ce0a0413322f0134ee771a3264736f6c6343000807003300000000000000000000000089557e29812f1967dd40e087a9f8ba0073b5dd8a

Deployed Bytecode

0x608060405260043610620001145760003560e01c8063015c63d4146200012157806311a0377a14620001485780631c93b03a146200019a57806342259f7c14620001c15780635801a99214620002115780635c7700df1462000229578063715018a6146200024e57806374c5c43014620002665780637bf6f61614620002a05780638da5cb5b14620002df5780638f52a69c14620002f757806397e98d27146200031c578063a8704a1e146200033e578063b9e7d40e1462000383578063bf7bab7314620003a8578063c0d7865514620003ed578063cbd7847d1462000412578063f117c7271462000437578063f2fde38b146200045c578063fa8dedf61462000481578063ffd6ca54146200049857600080fd5b366200011c57005b600080fd5b3480156200012e57600080fd5b5062000146620001403660046200178d565b620004bd565b005b3480156200015557600080fd5b5062000182620001673660046200166d565b6004602052600090815260409020546001600160a01b031681565b60405162000191919062001a73565b60405180910390f35b348015620001a757600080fd5b50620001b262000563565b60405162000191919062001b6b565b348015620001ce57600080fd5b5062000200620001e0366004620017cb565b600360209081526000928352604080842090915290825290205460ff1681565b604051901515815260200162000191565b3480156200021e57600080fd5b5062000146620005f9565b3480156200023657600080fd5b506200014662000248366004620017cb565b62000699565b3480156200025b57600080fd5b506200014662000862565b3480156200027357600080fd5b5062000182620002853660046200166d565b6005602052600090815260409020546001600160a01b031681565b348015620002ad57600080fd5b5062000200620002bf366004620017cb565b600660209081526000928352604080842090915290825290205460ff1681565b348015620002ec57600080fd5b5062000182620008a4565b3480156200030457600080fd5b506200020062000316366004620019db565b620008b3565b3480156200032957600080fd5b5060015462000182906001600160a01b031681565b3480156200034b57600080fd5b50620001826200035d3660046200191c565b80516020818301810180516008825292820191909301209152546001600160a01b031681565b3480156200039057600080fd5b5062000146620003a2366004620017cb565b620008f3565b348015620003b557600080fd5b5062000182620003c7366004620017cb565b60026020908152600092835260408084209091529082529020546001600160a01b031681565b348015620003fa57600080fd5b50620001466200040c3660046200166d565b6200098d565b3480156200041f57600080fd5b506200014662000431366004620017fa565b620009e3565b3480156200044457600080fd5b5062000146620004563660046200166d565b62000d78565b3480156200046957600080fd5b50620001466200047b3660046200166d565b62000dce565b6200014662000492366004620018ac565b62000e77565b348015620004a557600080fd5b5062000146620004b7366004620019db565b6200125a565b33620004c8620008a4565b6001600160a01b031614620004fa5760405162461bcd60e51b8152600401620004f19062001c51565b60405180910390fd5b60405163a701602360e01b815282906001600160a01b0382169063a7016023906200052a90859060040162001a73565b600060405180830381600087803b1580156200054557600080fd5b505af11580156200055a573d6000803e3d6000fd5b50505050505050565b60078054620005729062001d12565b80601f0160208091040260200160405190810160405280929190818152602001828054620005a09062001d12565b8015620005f15780601f10620005c557610100808354040283529160200191620005f1565b820191906000526020600020905b815481529060010190602001808311620005d357829003601f168201915b505050505081565b3362000604620008a4565b6001600160a01b0316146200062d5760405162461bcd60e51b8152600401620004f19062001c51565b600154600a546040516342288df960e11b81526001600160a01b03928316926384511bf292620006639291169060040162001a73565b600060405180830381600087803b1580156200067e57600080fd5b505af115801562000693573d6000803e3d6000fd5b50505050565b33620006a4620008a4565b6001600160a01b031614620006cd5760405162461bcd60e51b8152600401620004f19062001c51565b6001600160a01b038281166000908152600260209081526040808320858452909152902054166200072b5760405162461bcd60e51b8152602060048201526007602482015266085b1bd8dad95960ca1b6044820152606401620004f1565b6001600160a01b038216600090815260036020908152604080832084845290915290205460ff166200078d5760405162461bcd60e51b815260206004820152600a602482015269085c995c5d595cdd195960b21b6044820152606401620004f1565b6001600160a01b0380831660008181526003602090815260408083208684528252808320805460ff1916905583835260028252808320868452909152908190205490516323b872dd60e01b815285936323b872dd92620007f99230929190911690879060040162001a87565b600060405180830381600087803b1580156200081457600080fd5b505af115801562000829573d6000803e3d6000fd5b505050506001600160a01b039290921660009081526002602090815260408083209383529290522080546001600160a01b031916905550565b336200086d620008a4565b6001600160a01b031614620008965760405162461bcd60e51b8152600401620004f19062001c51565b620008a26000620012d4565b565b6000546001600160a01b031690565b6000816001600160a01b0316600884604051620008d1919062001a55565b908152604051908190036020019020546001600160a01b031614905092915050565b6001600160a01b0382811660009081526002602090815260408083208584529091529020541633146200095d5760405162461bcd60e51b815260206004820152601160248201527010b637b1b5b2b21027a91010b7bbb732b960791b6044820152606401620004f1565b6001600160a01b03909116600090815260036020908152604080832093835292905220805460ff19166001179055565b3362000998620008a4565b6001600160a01b031614620009c15760405162461bcd60e51b8152600401620004f19062001c51565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b7f60cf18cff3490451c0453096daa47405f97c75e9449e175a7aff997f04f6b04f818360405162000a1692919062001b80565b60405180910390a162000a2a8183620008b3565b62000a3457600080fd5b600080808080808062000a4a8a8c018c620016b4565b6001600160a01b0380881660009081526002602090815260408083208a8452909152902054979e50959c50939a50919850965094509250161562000b51576001600160a01b03871660008181526002602090815260408083208a84529091529081902080546001600160a01b0319169055516323b872dd60e01b81528891906323b872dd9062000ae390309089908c9060040162001a87565b600060405180830381600087803b15801562000afe57600080fd5b505af115801562000b13573d6000803e3d6000fd5b50505050600080516020620039ae83398151915288888760405162000b3b9392919062001aab565b60405180910390a1505050505050505062000693565b6001600160a01b03878116600090815260056020526040902054161562000c2f576001600160a01b03808816600090815260056020526040908190205490516334ff261960e21b8152911690819063d3fc98649062000bb99088908b908b9060040162001ace565b600060405180830381600087803b15801562000bd457600080fd5b505af115801562000be9573d6000803e3d6000fd5b5050506001600160a01b03808a166000908152600560209081526040808320549093168252600681528282208b8352905220805460ff191660011790555062000d3f9050565b60008383308460405162000c4390620015f1565b62000c52949392919062001c03565b604051809103906000f08015801562000c6f573d6000803e3d6000fd5b506040516334ff261960e21b81529091506001600160a01b0382169063d3fc98649062000ca59088908b908b9060040162001ace565b600060405180830381600087803b15801562000cc057600080fd5b505af115801562000cd5573d6000803e3d6000fd5b5050506001600160a01b0391821660008181526006602090815260408083208c84528252808320805460ff19166001179055948c168083526005825285832080546001600160a01b0319908116861790915593835260049091529390208054909116909217909155505b600080516020620039ae83398151915287878660405162000d639392919062001aab565b60405180910390a15050505050505050505050565b3362000d83620008a4565b6001600160a01b03161462000dac5760405162461bcd60e51b8152600401620004f19062001c51565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b3362000dd9620008a4565b6001600160a01b03161462000e025760405162461bcd60e51b8152600401620004f19062001c51565b6001600160a01b03811662000e695760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620004f1565b62000e7481620012d4565b50565b600083511162000e8657600080fd5b60006001600160a01b031660088460405162000ea3919062001a55565b908152604051908190036020019020546001600160a01b0316141562000ef25760405162461bcd60e51b8152602060048201526003602482015262214f4160e81b6044820152606401620004f1565b846001600160a01b03811662000f365760405162461bcd60e51b8152602060048201526008602482015267214144445245535360c01b6044820152606401620004f1565b6000851162000f6e5760405162461bcd60e51b815260206004820152600360248201526208525160ea1b6044820152606401620004f1565b803b62000fa85760405162461bcd60e51b81526020600482015260076024820152662145584953545360c81b6044820152606401620004f1565b6040516331a9108f60e11b81526004810186905233906001600160a01b03881690636352211e9060240160206040518083038186803b15801562000feb57600080fd5b505afa15801562001000573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001026919062001694565b6001600160a01b031614620010675760405162461bcd60e51b815260206004820152600660248201526510a7aba722a960d11b6044820152606401620004f1565b6001600160a01b038116600090815260066020908152604080832088845290915290205460ff16156200115d576001600160a01b038082166000908152600460205260409020548291620010cd91620010c4918a91168962001324565b86868662001547565b604051630852cd8d60e31b8152600481018790526001600160a01b038216906342966c6890602401600060405180830381600087803b1580156200111057600080fd5b505af115801562001125573d6000803e3d6000fd5b5050506001600160a01b0390921660009081526006602090815260408083208984529091529020805460ff1916905550620012539050565b6040516323b872dd60e01b81526001600160a01b038716906323b872dd906200118f90339030908a9060040162001a87565b600060405180830381600087803b158015620011aa57600080fd5b505af1158015620011bf573d6000803e3d6000fd5b5050506001600160a01b03821660009081526002602090815260408083208984529091529081902080546001600160a01b0319163390811790915590517f6556f2e938a411129eba507e7d304a1f4b451f10196f319f58567ab10dccf55992506200122f91849189919062001aab565b60405180910390a1620012516200124887838862001324565b85858562001547565b505b5050505050565b3362001265620008a4565b6001600160a01b0316146200128e5760405162461bcd60e51b8152600401620004f19062001c51565b80600883604051620012a1919062001a55565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b03199092169190911790555050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608282856001600160a01b031663c87b56dd856040518263ffffffff1660e01b81526004016200135791815260200190565b60006040518083038186803b1580156200137057600080fd5b505afa15801562001385573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620013af91908101906200195c565b33876001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b158015620013ea57600080fd5b505afa158015620013ff573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200142991908101906200195c565b886001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156200146357600080fd5b505afa15801562001478573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620014a291908101906200195c565b896001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015620014dc57600080fd5b505afa158015620014f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001517919062001694565b6040516020016200152f979695949392919062001af7565b60405160208183030381529060405290509392505050565b6001546040516001600160a01b0390911690633626b37590349086906008906200157390839062001a55565b908152604051908190036020018120546001600160e01b031960e086901b168252620015b792916001600160a01b03909116908a90899033908a9060040162001bac565b6000604051808303818588803b158015620015d157600080fd5b505af1158015620015e6573d6000803e3d6000fd5b505050505050505050565b611c328062001d7c83390190565b80356200160c8162001d65565b919050565b600082601f8301126200162357600080fd5b81356200163a620016348262001cb9565b62001c86565b8181528460208386010111156200165057600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156200168057600080fd5b81356200168d8162001d65565b9392505050565b600060208284031215620016a757600080fd5b81516200168d8162001d65565b600080600080600080600060e0888a031215620016d057600080fd5b8735620016dd8162001d65565b96506020880135955060408801356001600160401b03808211156200170157600080fd5b6200170f8b838c0162001611565b965060608a01359150620017238262001d65565b909450608089013590808211156200173a57600080fd5b620017488b838c0162001611565b945060a08a01359150808211156200175f57600080fd5b506200176e8a828b0162001611565b9250506200177f60c08901620015ff565b905092959891949750929550565b60008060408385031215620017a157600080fd5b8235620017ae8162001d65565b91506020830135620017c08162001d65565b809150509250929050565b60008060408385031215620017df57600080fd5b8235620017ec8162001d65565b946020939093013593505050565b600080600080606085870312156200181157600080fd5b84356001600160401b03808211156200182957600080fd5b818701915087601f8301126200183e57600080fd5b8135818111156200184e57600080fd5b8860208285010111156200186157600080fd5b60209283019650945090860135906200187a8262001d65565b909250604086013590808211156200189157600080fd5b50620018a08782880162001611565b91505092959194509250565b600080600080600060a08688031215620018c557600080fd5b8535620018d28162001d65565b94506020860135935060408601356001600160401b03811115620018f557600080fd5b620019038882890162001611565b9598949750949560608101359550608001359392505050565b6000602082840312156200192f57600080fd5b81356001600160401b038111156200194657600080fd5b620019548482850162001611565b949350505050565b6000602082840312156200196f57600080fd5b81516001600160401b038111156200198657600080fd5b8201601f810184136200199857600080fd5b8051620019a9620016348262001cb9565b818152856020838501011115620019bf57600080fd5b620019d282602083016020860162001ce3565b95945050505050565b60008060408385031215620019ef57600080fd5b82356001600160401b0381111562001a0657600080fd5b62001a148582860162001611565b9250506020830135620017c08162001d65565b6000815180845262001a4181602086016020860162001ce3565b601f01601f19169290920160200192915050565b6000825162001a6981846020870162001ce3565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0393841681526020810192909252909116604082015260600190565b60018060a01b0384168152826020820152606060408201526000620019d2606083018462001a27565b600060018060a01b03808a16835288602084015260e0604084015262001b2160e084018962001a27565b8188166060850152838103608085015262001b3d818862001a27565b905083810360a085015262001b53818762001a27565b92505080841660c08401525098975050505050505050565b6020815260006200168d602083018462001a27565b60408152600062001b95604083018562001a27565b905060018060a01b03831660208301529392505050565b60c08152600062001bc160c083018962001a27565b6001600160a01b038881166020850152838203604085015262001be5828962001a27565b60608501979097529490941660808301525060a00152509392505050565b60808152600062001c18608083018762001a27565b828103602084015262001c2c818762001a27565b6001600160a01b03958616604085015293909416606090920191909152509392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f191681016001600160401b038111828210171562001cb15762001cb162001d4f565b604052919050565b60006001600160401b0382111562001cd55762001cd562001d4f565b50601f01601f191660200190565b60005b8381101562001d0057818101518382015260200162001ce6565b83811115620006935750506000910152565b600181811c9082168062001d2757607f821691505b6020821081141562001d4957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811462000e7457600080fdfe60806040523480156200001157600080fd5b5060405162001c3238038062001c32833981016040819052620000349162000219565b8351849084906200004d9060009060208501906200009f565b508051620000639060019060208401906200009f565b5050600780546001600160a01b039485166001600160a01b031991821617909155600880549390941692169190911790915550620002fb915050565b828054620000ad90620002a8565b90600052602060002090601f016020900481019282620000d157600085556200011c565b82601f10620000ec57805160ff19168380011785556200011c565b828001600101855582156200011c579182015b828111156200011c578251825591602001919060010190620000ff565b506200012a9291506200012e565b5090565b5b808211156200012a57600081556001016200012f565b80516001600160a01b03811681146200015d57600080fd5b919050565b600082601f8301126200017457600080fd5b81516001600160401b0380821115620001915762000191620002e5565b604051601f8301601f19908116603f01168101908282118183101715620001bc57620001bc620002e5565b81604052838152602092508683858801011115620001d957600080fd5b600091505b83821015620001fd5785820183015181830184015290820190620001de565b838211156200020f5760008385830101525b9695505050505050565b600080600080608085870312156200023057600080fd5b84516001600160401b03808211156200024857600080fd5b620002568883890162000162565b955060208701519150808211156200026d57600080fd5b506200027c8782880162000162565b9350506200028d6040860162000145565b91506200029d6060860162000145565b905092959194509250565b600181811c90821680620002bd57607f821691505b60208210811415620002df57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b611927806200030b6000396000f3fe608060405234801561001057600080fd5b50600436106100e65760003560e01c806301ffc9a7146100eb57806306fdde0314610113578063081812fc14610128578063095ea7b314610153578063116191b61461016857806323b872dd1461017b57806342842e0e1461018e57806342966c68146101a15780636352211e146101b457806370a08231146101c75780638da5cb5b146101e857806395d89b41146101fb578063a22cb46514610203578063a701602314610216578063b88d4fde14610229578063c87b56dd1461023c578063d3fc98641461024f578063e985e9c514610262575b600080fd5b6100fe6100f93660046115c7565b610275565b60405190151581526020015b60405180910390f35b61011b6102c7565b60405161010a91906116b2565b61013b610136366004611601565b610359565b6040516001600160a01b03909116815260200161010a565b610166610161366004611533565b6103e6565b005b60075461013b906001600160a01b031681565b610166610189366004611440565b6104f7565b61016661019c366004611440565b610528565b6101666101af366004611601565b610543565b61013b6101c2366004611601565b610579565b6101da6101d53660046113f2565b6105f0565b60405190815260200161010a565b60085461013b906001600160a01b031681565b61011b610677565b6101666102113660046114f7565b610686565b6101666102243660046113f2565b610695565b61016661023736600461147c565b6106f7565b61011b61024a366004611601565b61072f565b61016661025d36600461155d565b6108a6565b6100fe61027036600461140d565b6108e4565b60006001600160e01b031982166380ac58cd60e01b14806102a657506001600160e01b03198216635b5e139f60e01b145b806102c157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546102d6906117f9565b80601f0160208091040260200160405190810160405280929190818152602001828054610302906117f9565b801561034f5780601f106103245761010080835404028352916020019161034f565b820191906000526020600020905b81548152906001019060200180831161033257829003601f168201915b5050505050905090565b600061036482610912565b6103ca5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006103f182610579565b9050806001600160a01b0316836001600160a01b0316141561045f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016103c1565b336001600160a01b038216148061047b575061047b81336108e4565b6104e85760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016103c1565b6104f2838361092f565b505050565b610501338261099d565b61051d5760405162461bcd60e51b81526004016103c190611739565b6104f2838383610a5f565b6104f2838383604051806020016040528060008152506106f7565b6007546001600160a01b0316331461056d5760405162461bcd60e51b81526004016103c190611717565b61057681610bed565b50565b6000818152600260205260408120546001600160a01b0316806102c15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016103c1565b60006001600160a01b03821661065b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016103c1565b506001600160a01b031660009081526003602052604090205490565b6060600180546102d6906117f9565b610691338383610c2d565b5050565b6007546001600160a01b031633146106bf5760405162461bcd60e51b81526004016103c190611717565b6008546001600160a01b0316156106d557600080fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b610701338361099d565b61071d5760405162461bcd60e51b81526004016103c190611739565b61072984848484610cf8565b50505050565b606061073a82610912565b6107a05760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b60648201526084016103c1565b600082815260066020526040812080546107b9906117f9565b80601f01602080910402602001604051908101604052809291908181526020018280546107e5906117f9565b80156108325780601f1061080757610100808354040283529160200191610832565b820191906000526020600020905b81548152906001019060200180831161081557829003601f168201915b50505050509050600061085060408051602081019091526000815290565b9050805160001415610863575092915050565b81511561089557808260405160200161087d929190611646565b60405160208183030381529060405292505050919050565b61089e84610d2b565b949350505050565b6007546001600160a01b031633146108d05760405162461bcd60e51b81526004016103c190611717565b6108da8383610e03565b6104f28282610e1d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061096482610579565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006109a882610912565b610a095760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016103c1565b6000610a1483610579565b9050806001600160a01b0316846001600160a01b03161480610a4f5750836001600160a01b0316610a4484610359565b6001600160a01b0316145b8061089e575061089e81856108e4565b826001600160a01b0316610a7282610579565b6001600160a01b031614610ada5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016103c1565b6001600160a01b038216610b3c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016103c1565b610b4760008261092f565b6001600160a01b0383166000908152600360205260408120805460019290610b709084906117b6565b90915550506001600160a01b0382166000908152600360205260408120805460019290610b9e90849061178a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716916000805160206118d283398151915291a4505050565b610bf681610ea8565b60008181526006602052604090208054610c0f906117f9565b1590506105765760008181526006602052604081206105769161128e565b816001600160a01b0316836001600160a01b03161415610c8b5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016103c1565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610d03848484610a5f565b610d0f84848484610f31565b6107295760405162461bcd60e51b81526004016103c1906116c5565b6060610d3682610912565b610d9a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016103c1565b6000610db160408051602081019091526000815290565b90506000815111610dd15760405180602001604052806000815250610dfc565b80610ddb8461103e565b604051602001610dec929190611646565b6040516020818303038152906040525b9392505050565b61069182826040518060200160405280600081525061113b565b610e2682610912565b610e895760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016103c1565b600082815260066020908152604090912082516104f2928401906112c8565b6000610eb382610579565b9050610ec060008361092f565b6001600160a01b0381166000908152600360205260408120805460019290610ee99084906117b6565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416906000805160206118d2833981519152908390a45050565b60006001600160a01b0384163b1561103357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290610f75903390899088908890600401611675565b602060405180830381600087803b158015610f8f57600080fd5b505af1925050508015610fbf575060408051601f3d908101601f19168201909252610fbc918101906115e4565b60015b611019573d808015610fed576040519150601f19603f3d011682016040523d82523d6000602084013e610ff2565b606091505b5080516110115760405162461bcd60e51b81526004016103c1906116c5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061089e565b506001949350505050565b6060816110625750506040805180820190915260018152600360fc1b602082015290565b8160005b811561108c578061107681611834565b91506110859050600a836117a2565b9150611066565b6000816001600160401b038111156110a6576110a66118a5565b6040519080825280601f01601f1916602001820160405280156110d0576020820181803683370190505b5090505b841561089e576110e56001836117b6565b91506110f2600a8661184f565b6110fd90603061178a565b60f81b8183815181106111125761111261188f565b60200101906001600160f81b031916908160001a905350611134600a866117a2565b94506110d4565b611145838361116e565b6111526000848484610f31565b6104f25760405162461bcd60e51b81526004016103c1906116c5565b6001600160a01b0382166111c45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016103c1565b6111cd81610912565b156112195760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b60448201526064016103c1565b6001600160a01b038216600090815260036020526040812080546001929061124290849061178a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392906000805160206118d2833981519152908290a45050565b50805461129a906117f9565b6000825580601f106112aa575050565b601f016020900490600052602060002090810190610576919061134c565b8280546112d4906117f9565b90600052602060002090601f0160209004810192826112f6576000855561133c565b82601f1061130f57805160ff191683800117855561133c565b8280016001018555821561133c579182015b8281111561133c578251825591602001919060010190611321565b5061134892915061134c565b5090565b5b80821115611348576000815560010161134d565b60006001600160401b038084111561137b5761137b6118a5565b604051601f8501601f19908116603f011681019082821181831017156113a3576113a36118a5565b816040528093508581528686860111156113bc57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146113ed57600080fd5b919050565b60006020828403121561140457600080fd5b610dfc826113d6565b6000806040838503121561142057600080fd5b611429836113d6565b9150611437602084016113d6565b90509250929050565b60008060006060848603121561145557600080fd5b61145e846113d6565b925061146c602085016113d6565b9150604084013590509250925092565b6000806000806080858703121561149257600080fd5b61149b856113d6565b93506114a9602086016113d6565b92506040850135915060608501356001600160401b038111156114cb57600080fd5b8501601f810187136114dc57600080fd5b6114eb87823560208401611361565b91505092959194509250565b6000806040838503121561150a57600080fd5b611513836113d6565b91506020830135801515811461152857600080fd5b809150509250929050565b6000806040838503121561154657600080fd5b61154f836113d6565b946020939093013593505050565b60008060006060848603121561157257600080fd5b61157b846113d6565b92506020840135915060408401356001600160401b0381111561159d57600080fd5b8401601f810186136115ae57600080fd5b6115bd86823560208401611361565b9150509250925092565b6000602082840312156115d957600080fd5b8135610dfc816118bb565b6000602082840312156115f657600080fd5b8151610dfc816118bb565b60006020828403121561161357600080fd5b5035919050565b600081518084526116328160208601602086016117cd565b601f01601f19169290920160200192915050565b600083516116588184602088016117cd565b83519083019061166c8183602088016117cd565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906116a89083018461161a565b9695505050505050565b602081526000610dfc602083018461161a565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b602080825260089082015267214741544557415960c01b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561179d5761179d611863565b500190565b6000826117b1576117b1611879565b500490565b6000828210156117c8576117c8611863565b500390565b60005b838110156117e85781810151838201526020016117d0565b838111156107295750506000910152565b600181811c9082168061180d57607f821691505b6020821081141561182e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561184857611848611863565b5060010190565b60008261185e5761185e611879565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461057657600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122018b8cf02d04e51db682c6ef5d5f43c343f9ca9dbaf2e1ac809eec9d2d92a392b64736f6c634300080700335f8ce21c9bc9581b07f76353a3f72e24204268542b57800c2c3427c47e070333a26469706673582212209f00f3958d71adc0812a390cb65689a58c372a73ce0a0413322f0134ee771a3264736f6c63430008070033

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

00000000000000000000000089557e29812f1967dd40e087a9f8ba0073b5dd8a

-----Decoded View---------------
Arg [0] : _router (address): 0x89557E29812f1967dd40E087A9f8BA0073B5DD8A

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000089557e29812f1967dd40e087a9f8ba0073b5dd8a


Block Transaction Gas Used Reward
view all blocks collator

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
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  ]
[ 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.