ETH Price: $3,780.01 (+0.89%)
Gas: 7 Gwei

Contract

0xD8E1bcCac22EBdc17a9272093757c79c594EBD0b
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Safe Transfer Fr...189618552024-01-08 10:57:59135 days ago1704711479IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0011951316.50720126
Set Approval For...176155892023-07-03 19:43:35324 days ago1688413415IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0008672118.81452814
Set Approval For...173084932023-05-21 15:00:47367 days ago1684681247IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0015887234.46772137
Set Approval For...170120942023-04-09 17:06:23409 days ago1681059983IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0009784621.22805835
Set Approval For...167711522023-03-06 18:40:35443 days ago1678128035IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0018848440.89232374
Transfer From167225692023-02-27 22:40:59450 days ago1677537659IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0026319345.70356255
Set Approval For...166134942023-02-12 15:11:47465 days ago1676214707IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0005280521.83762616
Safe Transfer Fr...162136762022-12-18 19:29:23521 days ago1671391763IN
0xD8E1bcCa...c594EBD0b
0 ETH0.000583413.42600625
Safe Transfer Fr...162136682022-12-18 19:27:47521 days ago1671391667IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0006243112.93843552
Safe Transfer Fr...162136592022-12-18 19:25:59521 days ago1671391559IN
0xD8E1bcCa...c594EBD0b
0 ETH0.000643613.33809771
Safe Transfer Fr...162136492022-12-18 19:23:59521 days ago1671391439IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0008552313.08640963
Set Approval For...160775232022-11-29 18:45:47540 days ago1669747547IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0003439814.22558777
Set Approval For...158709492022-10-31 22:13:47569 days ago1667254427IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0008831719.16062236
Safe Transfer Fr...158709042022-10-31 22:04:47569 days ago1667253887IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0012415320.52905993
Safe Transfer Fr...158389282022-10-27 10:50:23573 days ago1666867823IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0006085714.02606235
Safe Transfer Fr...158205662022-10-24 21:17:11576 days ago1666646231IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0010268316.9755887
Set Approval For...157959242022-10-21 10:36:11579 days ago1666348571IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0009564220.71213214
Safe Transfer Fr...157215852022-10-11 1:28:47590 days ago1665451727IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0021891333.52990746
Set Approval For...155266932022-09-13 11:32:59617 days ago1663068779IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0007038615.27048765
Set Approval For...155033612022-09-09 14:56:26621 days ago1662735386IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0007123815.45534877
Safe Transfer Fr...153363452022-08-13 23:34:41648 days ago1660433681IN
0xD8E1bcCa...c594EBD0b
0 ETH0.000293254.84901097
Set Approval For...152135622022-07-25 19:22:30667 days ago1658776950IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0013315228.88774954
Transfer From151988322022-07-23 12:09:24669 days ago1658578164IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0008955215.5541305
Set Approval For...151769512022-07-20 2:48:16673 days ago1658285296IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0008192817.77465498
Set Approval For...151382772022-07-14 3:26:18679 days ago1657769178IN
0xD8E1bcCa...c594EBD0b
0 ETH0.0012166226.39505339
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
150403092022-06-28 15:18:16694 days ago1656429496
0xD8E1bcCa...c594EBD0b
0.05 ETH
150403092022-06-28 15:18:16694 days ago1656429496
0xD8E1bcCa...c594EBD0b
0.2 ETH
150403082022-06-28 15:17:37694 days ago1656429457
0xD8E1bcCa...c594EBD0b
0.05 ETH
150403082022-06-28 15:17:37694 days ago1656429457
0xD8E1bcCa...c594EBD0b
0.2 ETH
150403062022-06-28 15:17:17694 days ago1656429437
0xD8E1bcCa...c594EBD0b
0.05 ETH
150403062022-06-28 15:17:17694 days ago1656429437
0xD8E1bcCa...c594EBD0b
0.2 ETH
150403052022-06-28 15:16:31694 days ago1656429391
0xD8E1bcCa...c594EBD0b
0.05 ETH
150403052022-06-28 15:16:31694 days ago1656429391
0xD8E1bcCa...c594EBD0b
0.2 ETH
150403022022-06-28 15:16:01694 days ago1656429361
0xD8E1bcCa...c594EBD0b
0.05 ETH
150403022022-06-28 15:16:01694 days ago1656429361
0xD8E1bcCa...c594EBD0b
0.2 ETH
150403022022-06-28 15:16:01694 days ago1656429361
0xD8E1bcCa...c594EBD0b
0.05 ETH
150403022022-06-28 15:16:01694 days ago1656429361
0xD8E1bcCa...c594EBD0b
0.2 ETH
150402992022-06-28 15:15:43694 days ago1656429343
0xD8E1bcCa...c594EBD0b
0.05 ETH
150402992022-06-28 15:15:43694 days ago1656429343
0xD8E1bcCa...c594EBD0b
0.2 ETH
150402982022-06-28 15:15:34694 days ago1656429334
0xD8E1bcCa...c594EBD0b
0.05 ETH
150402982022-06-28 15:15:34694 days ago1656429334
0xD8E1bcCa...c594EBD0b
0.2 ETH
150402962022-06-28 15:15:14694 days ago1656429314
0xD8E1bcCa...c594EBD0b
0.05 ETH
150402962022-06-28 15:15:14694 days ago1656429314
0xD8E1bcCa...c594EBD0b
0.2 ETH
150402932022-06-28 15:14:57694 days ago1656429297
0xD8E1bcCa...c594EBD0b
0.05 ETH
150402932022-06-28 15:14:57694 days ago1656429297
0xD8E1bcCa...c594EBD0b
0.2 ETH
150402892022-06-28 15:14:12694 days ago1656429252
0xD8E1bcCa...c594EBD0b
0.05 ETH
150402892022-06-28 15:14:12694 days ago1656429252
0xD8E1bcCa...c594EBD0b
0.2 ETH
150402862022-06-28 15:13:30694 days ago1656429210
0xD8E1bcCa...c594EBD0b
0.05 ETH
150402862022-06-28 15:13:30694 days ago1656429210
0xD8E1bcCa...c594EBD0b
0.2 ETH
150402862022-06-28 15:13:30694 days ago1656429210
0xD8E1bcCa...c594EBD0b
0.05 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Doors

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : Doors.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/*

 mmmm                              
 #   "m  mmm    mmm    m mm   mmm  
 #    # #" "#  #" "#   #"  " #   " 
 #    # #   #  #   #   #      """m 
 #mmm"  "#m#"  "#m#"   #     "mmm" 
                                   

Doors is a collection of 66 on-chain artworks.

Project by Rafaël Rozendaal https://newrafael.com/
Smart contract by Alberto Granzotto https://granzotto.net/

*/

import "./DoorsSVG.sol";
import "./ERC2981/ERC2981ContractWideRoyalties.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract Doors is DoorsSVG, ERC721, ERC2981ContractWideRoyalties, Ownable {
    address payable constant dev =
        payable(0x39596955f9111e12aF0B96A96160C5f7211B20EF);

    // From the MSB:
    // - 8 bit started (0 or 1)
    // - 8 bit total minted
    // - 240 bit minted bitmap
    uint256 private _state;
    bytes1[66] private _tokens;

    constructor() ERC721("Doors", "DOORS") {
        // Assign 5% royalties to msg.sender
        _setRoyalties(payable(owner()), 500);
    }

    function mint(
        address to,
        uint8 door,
        uint8 knob
    ) public payable {
        require(
            door < 16 && knob < 16 && door != knob,
            "Doors: invalid colors"
        );

        uint256 state = _state;
        bool isOpen = (state & (1 << 248)) > 0;
        uint8 total = uint8(state >> 240);
        uint240 bitmap = uint240(state);

        uint240 mask;
        unchecked {
            mask = uint240(1 << ((door * 15) + knob - (door > knob ? 0 : 1)));
        }

        require(bitmap & mask == 0, "Doors: token exists");
        require(total < 66, "Doors: no more tokens available");

        unchecked {
            _tokens[total] = bytes1((door << 4) + knob);
            total++;
            _state =
                (uint256(isOpen ? 1 : 0) << 248) |
                (uint256(total) << 240) |
                (bitmap | mask);
        }

        _safeMint(to, total);

        address payable owner = payable(owner());

        if (_msgSender() == owner) {
            require(msg.value == 0, "Doors: wrong amount");
        } else {
            require(isOpen, "Doors: closed");
            require(msg.value == 0.25 ether, "Doors: wrong amount");
            (bool success, ) = owner.call{value: 0.20 ether}("");
            require(success, "Doors: unable transfer to A");
            (success, ) = dev.call{value: 0.05 ether}("");
            require(success, "Doors: unable transfer to B");
        }
    }

    function open() public onlyOwner {
        _state |= 1 << 248;
    }

    function close() public onlyOwner {
        uint256 mask = 1 << 248;
        _state &= ~mask;
    }

    function getState()
        public
        view
        returns (
            bool isOpen,
            uint8 total,
            uint240 bitmap,
            bytes1[66] memory tokens
        )
    {
        uint256 state = _state;
        isOpen = (state & (1 << 248)) > 0;
        total = uint8(state >> 240);
        bitmap = uint240(state);
        tokens = _tokens;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(_exists(tokenId), "Doors: nonexistent token");
        uint8 colors = uint8(_tokens[tokenId - 1]);
        return string(_getJSON(tokenId, colors >> 4, colors & 0x0f));
    }

    /// @notice Allows to set the royalties on the contract
    /// @dev This function in a real contract should be protected with a onlyOwner (or equivalent) modifier
    /// @param recipient the royalties recipient
    /// @param value royalties value (between 0 and 10000)
    function setRoyalties(address recipient, uint256 value) public onlyOwner {
        _setRoyalties(recipient, value);
    }

    /// @inheritdoc	ERC165
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721, ERC2981Base)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

File 3 of 16 : DoorsSVG.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.7.0 <0.9.0;

import "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract DoorsSVG {
    using Strings for uint256;

    bytes constant _PALETTE =
        hex"0000004d4d4dcccccc00a99d29abe20071bc2e319293278fed1e79ff0000ff8800ffff9bb8ffdec4e9fbd8d2fffccdff";

    string[16] internal _NAMES = [
        "Black",
        "Dark Grey",
        "Light Grey",
        "Teal",
        "Blue",
        "Ocean Blue",
        "Navy",
        "Purple",
        "Magenta",
        "Red",
        "Orange",
        "Yellow",
        "Green",
        "Sky Blue",
        "Lavender",
        "Pink"
    ];

    function _getSVG(uint8 body, uint8 knob)
        internal
        pure
        returns (bytes memory)
    {
        return (
            abi.encodePacked(
                '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1080 1920">',
                '<rect width="100%" height="100%" fill="rgb(',
                abi.encodePacked(
                    uint256(uint8(_PALETTE[body * 3])).toString(),
                    ",",
                    uint256(uint8(_PALETTE[body * 3 + 1])).toString(),
                    ",",
                    uint256(uint8(_PALETTE[body * 3 + 2])).toString()
                ),
                ')" /><circle cx="912" cy="960" r="56" fill="rgb(',
                abi.encodePacked(
                    uint256(uint8(_PALETTE[knob * 3])).toString(),
                    ",",
                    uint256(uint8(_PALETTE[knob * 3 + 1])).toString(),
                    ",",
                    uint256(uint8(_PALETTE[knob * 3 + 2])).toString()
                ),
                ')" /></svg>'
            )
        );
    }

    function _getJSON(
        uint256 tokenId,
        uint8 body,
        uint8 knob
    ) internal view returns (bytes memory) {
        return
            abi.encodePacked(
                "data:application/json;base64,",
                Base64.encode(
                    abi.encodePacked(
                        '{"name":"Door ',
                        tokenId.toString(),
                        '",',
                        unicode'"description":"Doors is a collection of 66 fully on–chain artworks 🌹 '
                        unicode"Project by Rafaël Rozendaal 2022 🌹 "
                        unicode"Smart contract by Alberto Granzotto 🌹 "
                        unicode'License: CC BY-NC-ND 4.0",',
                        '"attributes":[{"trait_type":"Door Color","value":"',
                        _NAMES[body],
                        '"},{"trait_type":"Knob Color","value":"',
                        _NAMES[knob],
                        '"}],',
                        '"image":"data:image/svg+xml;base64,',
                        Base64.encode(_getSVG(body, knob)),
                        '"}'
                    )
                )
            );
    }
}

File 4 of 16 : ERC2981ContractWideRoyalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// Author: https://github.com/dievardump/EIP2981-implementation/tree/efb71d618472ba2f26336c9bd4e7acf1ac6d28c4

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

import "./ERC2981Base.sol";

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
/// @dev This implementation has the same royalties for each and every tokens
abstract contract ERC2981ContractWideRoyalties is ERC2981Base {
    RoyaltyInfo private _royalties;

    /// @dev Sets token royalties
    /// @param recipient recipient of the royalties
    /// @param value percentage (using 2 decimals - 10000 = 100, 0 = 0)
    function _setRoyalties(address recipient, uint256 value) internal {
        require(value <= 10000, "ERC2981Royalties: Too high");
        _royalties = RoyaltyInfo(recipient, uint24(value));
    }

    /// @inheritdoc	IERC2981Royalties
    function royaltyInfo(uint256, uint256 value)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        RoyaltyInfo memory royalties = _royalties;
        receiver = royalties.recipient;
        royaltyAmount = (value * royalties.amount) / 10000;
    }
}

File 5 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 overridden 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 || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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);

        _afterTokenTransfer(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);

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 7 of 16 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 8 of 16 : Strings.sol
// 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);
    }
}

File 9 of 16 : ERC165.sol
// 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;
    }
}

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

// Author: https://github.com/dievardump/EIP2981-implementation/tree/efb71d618472ba2f26336c9bd4e7acf1ac6d28c4

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

import "./IERC2981Royalties.sol";

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
abstract contract ERC2981Base is ERC165, IERC2981Royalties {
    struct RoyaltyInfo {
        address recipient;
        uint24 amount;
    }

    /// @inheritdoc	ERC165
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            interfaceId == type(IERC2981Royalties).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

File 11 of 16 : IERC165.sol
// 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);
}

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

// Author: https://github.com/dievardump/EIP2981-implementation/tree/efb71d618472ba2f26336c9bd4e7acf1ac6d28c4

/// @title IERC2981Royalties
/// @dev Interface for the ERC2981 - Token Royalty standard
interface IERC2981Royalties {
    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _value - the sale price of the NFT asset specified by _tokenId
    /// @return _receiver - address of who should be sent the royalty payment
    /// @return _royaltyAmount - the royalty payment amount for value sale price
    function royaltyInfo(uint256 _tokenId, uint256 _value)
        external
        view
        returns (address _receiver, uint256 _royaltyAmount);
}

File 13 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 14 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 15 of 16 : IERC721Metadata.sol
// 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);
}

File 16 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"close","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getState","outputs":[{"internalType":"bool","name":"isOpen","type":"bool"},{"internalType":"uint8","name":"total","type":"uint8"},{"internalType":"uint240","name":"bitmap","type":"uint240"},{"internalType":"bytes1[66]","name":"tokens","type":"bytes1[66]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8","name":"door","type":"uint8"},{"internalType":"uint8","name":"knob","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"open","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600561028081815264426c61636b60d81b6102a052608090815260096102c0908152684461726b204772657960b81b6102e05260a052600a610300818152694c69676874204772657960b01b6103205260c0526004610340818152631519585b60e21b6103605260e05261038081815263426c756560e01b6103a052610100526103c0918252694f6365616e20426c756560b01b6103e05261012091909152610400818152634e61767960e01b6104205261014052600661044081815265507572706c6560d01b61046052610160526007610480908152664d6167656e746160c81b6104a0526101805260036104c09081526214995960ea1b6104e0526101a052610500818152654f72616e676560d01b610520526101c0526105409081526559656c6c6f7760d01b610560526101e0526105809283526423b932b2b760d91b6105a0526102009290925260086105c081815267536b7920426c756560c01b6105e05261022052610600908152672630bb32b73232b960c11b61062052610240526106806040526106409182526350696e6b60e01b6106605261026091909152620001af90600090601062000362565b50348015620001bd57600080fd5b5060405180604001604052806005815260200164446f6f727360d81b81525060405180604001604052806005815260200164444f4f525360d81b815250816010908051906020019062000212929190620003b9565b50805162000228906011906020840190620003b9565b505050620002456200023f6200026b60201b60201c565b6200026f565b620002656200025c6017546001600160a01b031690565b6101f4620002c1565b620004fa565b3390565b601780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612710811115620003185760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f2068696768000000000000604482015260640160405180910390fd5b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260168054600160a01b9093026001600160b81b0319909316909117919091179055565b8260108101928215620003a7579160200282015b82811115620003a7578251805162000396918491602090910190620003b9565b509160200191906001019062000376565b50620003b592915062000444565b5090565b828054620003c790620004be565b90600052602060002090601f016020900481019282620003eb576000855562000436565b82601f106200040657805160ff191683800117855562000436565b8280016001018555821562000436579182015b828111156200043657825182559160200191906001019062000419565b50620003b592915062000465565b80821115620003b55760006200045b82826200047c565b5060010162000444565b5b80821115620003b5576000815560010162000466565b5080546200048a90620004be565b6000825580601f106200049b575050565b601f016020900490600052602060002090810190620004bb919062000465565b50565b600181811c90821680620004d357607f821691505b602082108103620004f457634e487b7160e01b600052602260045260246000fd5b50919050565b612753806200050a6000396000f3fe6080604052600436106101355760003560e01c806370a08231116100ab578063a22cb4651161006f578063a22cb4651461036d578063b88d4fde1461038d578063c87b56dd146103ad578063e985e9c5146103cd578063f2fde38b14610416578063fcfff16f1461043657600080fd5b806370a08231146102d7578063715018a6146103055780638c7ea24b1461031a5780638da5cb5b1461033a57806395d89b411461035857600080fd5b806323b872dd116100fd57806323b872dd146102105780632a55205a14610230578063352926a81461026f57806342842e0e1461028257806343d726d6146102a25780636352211e146102b757600080fd5b806301ffc9a71461013a57806306fdde031461016f578063081812fc14610191578063095ea7b3146101c95780631865c57d146101eb575b600080fd5b34801561014657600080fd5b5061015a610155366004611c27565b61044b565b60405190151581526020015b60405180910390f35b34801561017b57600080fd5b5061018461045c565b6040516101669190611c9c565b34801561019d57600080fd5b506101b16101ac366004611caf565b6104ee565b6040516001600160a01b039091168152602001610166565b3480156101d557600080fd5b506101e96101e4366004611ce4565b610588565b005b3480156101f757600080fd5b5061020061069d565b6040516101669493929190611d0e565b34801561021c57600080fd5b506101e961022b366004611d71565b610723565b34801561023c57600080fd5b5061025061024b366004611dad565b610754565b604080516001600160a01b039093168352602083019190915201610166565b6101e961027d366004611de0565b6107a9565b34801561028e57600080fd5b506101e961029d366004611d71565b610be2565b3480156102ae57600080fd5b506101e9610bfd565b3480156102c357600080fd5b506101b16102d2366004611caf565b610c38565b3480156102e357600080fd5b506102f76102f2366004611e23565b610caf565b604051908152602001610166565b34801561031157600080fd5b506101e9610d36565b34801561032657600080fd5b506101e9610335366004611ce4565b610d6c565b34801561034657600080fd5b506017546001600160a01b03166101b1565b34801561036457600080fd5b50610184610da4565b34801561037957600080fd5b506101e9610388366004611e3e565b610db3565b34801561039957600080fd5b506101e96103a8366004611e90565b610dbe565b3480156103b957600080fd5b506101846103c8366004611caf565b610df6565b3480156103d957600080fd5b5061015a6103e8366004611f6c565b6001600160a01b03918216600090815260156020908152604080832093909416825291909152205460ff1690565b34801561042257600080fd5b506101e9610431366004611e23565b610eb3565b34801561044257600080fd5b506101e9610f4e565b600061045682610f86565b92915050565b60606010805461046b90611f9f565b80601f016020809104026020016040519081016040528092919081815260200182805461049790611f9f565b80156104e45780601f106104b9576101008083540402835291602001916104e4565b820191906000526020600020905b8154815290600101906020018083116104c757829003601f168201915b5050505050905090565b6000818152601260205260408120546001600160a01b031661056c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152601460205260409020546001600160a01b031690565b600061059382610c38565b9050806001600160a01b0316836001600160a01b0316036106005760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610563565b336001600160a01b038216148061061c575061061c81336103e8565b61068e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610563565b6106988383610fab565b505050565b60008060006106aa611bf2565b60185460408051610840810191829052600160f81b83161515965060f083901c9550919350839190601990604290826000855b825461010083900a900460f81b6001600160f81b0319168152602060019283018181049485019490930390920291018084116106dd579050505050505091505090919293565b61072d3382611019565b6107495760405162461bcd60e51b815260040161056390611fd9565b610698838383611110565b604080518082019091526016546001600160a01b038116808352600160a01b90910462ffffff16602083018190529091600091612710906107959086612040565b61079f9190612075565b9150509250929050565b60108260ff161080156107bf575060108160ff16105b80156107d157508060ff168260ff1614155b6108155760405162461bcd60e51b8152602060048201526015602482015274446f6f72733a20696e76616c696420636f6c6f727360581b6044820152606401610563565b601854600160f81b8116151560f082901c82600060ff8087169088161161083d576001610840565b60005b8688600f02010360ff166001901b90508082166001600160f01b03166000146108a15760405162461bcd60e51b8152602060048201526013602482015272446f6f72733a20746f6b656e2065786973747360681b6044820152606401610563565b60428360ff16106108f45760405162461bcd60e51b815260206004820152601f60248201527f446f6f72733a206e6f206d6f726520746f6b656e7320617661696c61626c65006044820152606401610563565b8560048860ff16901b0160f81b60198460ff166042811061091757610917612089565b602091828204019190066101000a81548160ff021916908360f81c021790555082806001019350508082176001600160f01b031660f08460ff16901b60f886610961576000610964565b60015b60ff16901b171760188190555061097e888460ff166112ac565b60006109926017546001600160a01b031690565b90506001600160a01b03811633036109ed5734156109e85760405162461bcd60e51b8152602060048201526013602482015272111bdbdc9cce881ddc9bdb99c8185b5bdd5b9d606a1b6044820152606401610563565b610bd7565b84610a2a5760405162461bcd60e51b815260206004820152600d60248201526c111bdbdc9cce8818db1bdcd959609a1b6044820152606401610563565b346703782dace9d9000014610a775760405162461bcd60e51b8152602060048201526013602482015272111bdbdc9cce881ddc9bdb99c8185b5bdd5b9d606a1b6044820152606401610563565b6000816001600160a01b03166702c68af0bb14000060405160006040518083038185875af1925050503d8060008114610acc576040519150601f19603f3d011682016040523d82523d6000602084013e610ad1565b606091505b5050905080610b225760405162461bcd60e51b815260206004820152601b60248201527f446f6f72733a20756e61626c65207472616e7366657220746f204100000000006044820152606401610563565b6040517339596955f9111e12af0b96a96160c5f7211b20ef9066b1a2bc2ec5000090600081818185875af1925050503d8060008114610b7d576040519150601f19603f3d011682016040523d82523d6000602084013e610b82565b606091505b50508091505080610bd55760405162461bcd60e51b815260206004820152601b60248201527f446f6f72733a20756e61626c65207472616e7366657220746f204200000000006044820152606401610563565b505b505050505050505050565b61069883838360405180602001604052806000815250610dbe565b6017546001600160a01b03163314610c275760405162461bcd60e51b81526004016105639061209f565b60188054600160ff60f81b03169055565b6000818152601260205260408120546001600160a01b0316806104565760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610563565b60006001600160a01b038216610d1a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610563565b506001600160a01b031660009081526013602052604090205490565b6017546001600160a01b03163314610d605760405162461bcd60e51b81526004016105639061209f565b610d6a60006112c6565b565b6017546001600160a01b03163314610d965760405162461bcd60e51b81526004016105639061209f565b610da08282611318565b5050565b60606011805461046b90611f9f565b610da03383836113b4565b610dc83383611019565b610de45760405162461bcd60e51b815260040161056390611fd9565b610df084848484611482565b50505050565b6000818152601260205260409020546060906001600160a01b0316610e5d5760405162461bcd60e51b815260206004820152601860248201527f446f6f72733a206e6f6e6578697374656e7420746f6b656e00000000000000006044820152606401610563565b60006019610e6c6001856120d4565b60428110610e7c57610e7c612089565b602091828204019190069054906101000a900460f81b60f81c9050610eac8360048360ff16901c83600f166114b5565b9392505050565b6017546001600160a01b03163314610edd5760405162461bcd60e51b81526004016105639061209f565b6001600160a01b038116610f425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610563565b610f4b816112c6565b50565b6017546001600160a01b03163314610f785760405162461bcd60e51b81526004016105639061209f565b60188054600160f81b179055565b60006001600160e01b0319821663152a902d60e11b1480610456575061045682611552565b600081815260146020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610fe082610c38565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152601260205260408120546001600160a01b03166110925760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610563565b600061109d83610c38565b9050806001600160a01b0316846001600160a01b031614806110e457506001600160a01b0380821660009081526015602090815260408083209388168352929052205460ff165b806111085750836001600160a01b03166110fd846104ee565b6001600160a01b0316145b949350505050565b826001600160a01b031661112382610c38565b6001600160a01b0316146111875760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610563565b6001600160a01b0382166111e95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610563565b6111f4600082610fab565b6001600160a01b038316600090815260136020526040812080546001929061121d9084906120d4565b90915550506001600160a01b038216600090815260136020526040812080546001929061124b9084906120eb565b909155505060008181526012602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610da08282604051806020016040528060008152506115a2565b601780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61271081111561136a5760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610563565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260168054600160a01b9093026001600160b81b0319909316909117919091179055565b816001600160a01b0316836001600160a01b0316036114155760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610563565b6001600160a01b03838116600081815260156020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61148d848484611110565b611499848484846115d5565b610df05760405162461bcd60e51b815260040161056390612103565b606061152a6114c3856116d6565b60008560ff16601081106114d9576114d9612089565b0160008560ff16601081106114f0576114f0612089565b016115036114fe88886117d7565b61195d565b604051602001611516949392919061220a565b60405160208183030381529060405261195d565b60405160200161153a9190612427565b60405160208183030381529060405290509392505050565b60006001600160e01b031982166380ac58cd60e01b148061158357506001600160e01b03198216635b5e139f60e01b145b8061045657506301ffc9a760e01b6001600160e01b0319831614610456565b6115ac8383611ab0565b6115b960008484846115d5565b6106985760405162461bcd60e51b815260040161056390612103565b60006001600160a01b0384163b156116cb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061161990339089908890889060040161246c565b6020604051808303816000875af1925050508015611654575060408051601f3d908101601f19168201909252611651918101906124a9565b60015b6116b1573d808015611682576040519150601f19603f3d011682016040523d82523d6000602084013e611687565b606091505b5080516000036116a95760405162461bcd60e51b815260040161056390612103565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611108565b506001949350505050565b6060816000036116fd5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156117275780611711816124c6565b91506117209050600a83612075565b9150611701565b60008167ffffffffffffffff81111561174257611742611e7a565b6040519080825280601f01601f19166020018201604052801561176c576020820181803683370190505b5090505b8415611108576117816001836120d4565b915061178e600a866124df565b6117999060306120eb565b60f81b8183815181106117ae576117ae612089565b60200101906001600160f81b031916908160001a9053506117d0600a86612075565b9450611770565b60606118206040518060600160405280603081526020016126ae603091396118008560036124f3565b60ff168151811061181357611813612089565b016020015160f81c6116d6565b6118526040518060600160405280603081526020016126ae603091396118478660036124f3565b61180090600161251c565b6118846040518060600160405280603081526020016126ae603091396118798760036124f3565b61180090600261251c565b60405160200161189693929190612541565b60408051601f1981840301815260608301909152603080835290916118c8916126ae60208301396118008560036124f3565b6118ef6040518060600160405280603081526020016126ae603091396118478660036124f3565b6119166040518060600160405280603081526020016126ae603091396118798760036124f3565b60405160200161192893929190612541565b60408051601f1981840301815290829052611946929160200161259b565b604051602081830303815290604052905092915050565b6060815160000361197c57505060408051602081019091526000815290565b60006040518060600160405280604081526020016126de60409139905060006003845160026119ab91906120eb565b6119b59190612075565b6119c0906004612040565b67ffffffffffffffff8111156119d8576119d8611e7a565b6040519080825280601f01601f191660200182016040528015611a02576020820181803683370190505b509050600182016020820185865187015b80821015611a6e576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611a13565b5050600386510660018114611a8a5760028114611a9d57611aa5565b603d6001830353603d6002830353611aa5565b603d60018303535b509195945050505050565b6001600160a01b038216611b065760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610563565b6000818152601260205260409020546001600160a01b031615611b6b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610563565b6001600160a01b0382166000908152601360205260408120805460019290611b949084906120eb565b909155505060008181526012602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040518061084001604052806042906020820280368337509192915050565b6001600160e01b031981168114610f4b57600080fd5b600060208284031215611c3957600080fd5b8135610eac81611c11565b60005b83811015611c5f578181015183820152602001611c47565b83811115610df05750506000910152565b60008151808452611c88816020860160208601611c44565b601f01601f19169290920160200192915050565b602081526000610eac6020830184611c70565b600060208284031215611cc157600080fd5b5035919050565b80356001600160a01b0381168114611cdf57600080fd5b919050565b60008060408385031215611cf757600080fd5b611d0083611cc8565b946020939093013593505050565b841515815260ff84166020808301919091526001600160f01b03841660408301526108a0820190606083018460005b6042811015611d645781516001600160f81b03191683529183019190830190600101611d3d565b5050505095945050505050565b600080600060608486031215611d8657600080fd5b611d8f84611cc8565b9250611d9d60208501611cc8565b9150604084013590509250925092565b60008060408385031215611dc057600080fd5b50508035926020909101359150565b803560ff81168114611cdf57600080fd5b600080600060608486031215611df557600080fd5b611dfe84611cc8565b9250611e0c60208501611dcf565b9150611e1a60408501611dcf565b90509250925092565b600060208284031215611e3557600080fd5b610eac82611cc8565b60008060408385031215611e5157600080fd5b611e5a83611cc8565b915060208301358015158114611e6f57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611ea657600080fd5b611eaf85611cc8565b9350611ebd60208601611cc8565b925060408501359150606085013567ffffffffffffffff80821115611ee157600080fd5b818701915087601f830112611ef557600080fd5b813581811115611f0757611f07611e7a565b604051601f8201601f19908116603f01168101908382118183101715611f2f57611f2f611e7a565b816040528281528a6020848701011115611f4857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611f7f57600080fd5b611f8883611cc8565b9150611f9660208401611cc8565b90509250929050565b600181811c90821680611fb357607f821691505b602082108103611fd357634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561205a5761205a61202a565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826120845761208461205f565b500490565b634e487b7160e01b600052603260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000828210156120e6576120e661202a565b500390565b600082198211156120fe576120fe61202a565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008151612167818560208601611c44565b9290920192915050565b8054600090600181811c908083168061218b57607f831692505b602080841082036121ac57634e487b7160e01b600052602260045260246000fd5b8180156121c057600181146121d1576121fe565b60ff198616895284890196506121fe565b60008881526020902060005b868110156121f65781548b8201529085019083016121dd565b505084890196505b50505050505092915050565b6d03d913730b6b2911d112237b7b9160951b8152845160009061223481600e850160208a01611c44565b61088b60f21b600e918401918201527f226465736372697074696f6e223a22446f6f7273206973206120636f6c6c656360108201527f74696f6e206f662036362066756c6c79206f6ee28093636861696e206172747760308201527f6f726b7320f09f8cb92050726f6a6563742062792052616661c3ab6c20526f7a60508201527f656e6461616c203230323220f09f8cb920536d61727420636f6e74726163742060708201527f627920416c626572746f204772616e7a6f74746f20f09f8cb9204c6963656e73609082015273194e8810d0c810964b5390cb5391080d0b8c088b60621b60b082015261241c61240e6124086123d36123c36123bd61238461237e60c489017f2261747472696275746573223a5b7b2274726169745f74797065223a22446f6f815271391021b7b637b91116113b30b63ab2911d1160711b602082015260320190565b8d612171565b7f227d2c7b2274726169745f74797065223a224b6e6f6220436f6c6f72222c227681526630b63ab2911d1160c91b602082015260270190565b8a612171565b63089f574b60e21b815260040190565b7f22696d616765223a22646174613a696d6167652f7376672b786d6c3b626173658152620d8d0b60ea1b602082015260230190565b86612155565b61227d60f01b815260020190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161245f81601d850160208701611c44565b91909101601d0192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061249f90830184611c70565b9695505050505050565b6000602082840312156124bb57600080fd5b8151610eac81611c11565b6000600182016124d8576124d861202a565b5060010190565b6000826124ee576124ee61205f565b500690565b600060ff821660ff84168160ff04811182151516156125145761251461202a565b029392505050565b600060ff821660ff84168060ff038211156125395761253961202a565b019392505050565b60008451612553818460208901611c44565b8083019050600b60fa1b8082528551612573816001850160208a01611c44565b6001920191820152835161258e816002840160208801611c44565b0160020195945050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d2230203020313038302031393230223e60208201527f3c726563742077696474683d223130302522206865696768743d22313030252260408201526a040ccd2d8d87a44e4cec4560ab1b60608201526000835161263381606b850160208801611c44565b7f2922202f3e3c636972636c652063783d22393132222063793d22393630222072606b918401918201526f07a446a6c4440ccd2d8d87a44e4cec4560831b608b820152835161268981609b840160208801611c44565b6a149110179f1e17b9bb339f60a91b609b929091019182015260a60194935050505056fe0000004d4d4dcccccc00a99d29abe20071bc2e319293278fed1e79ff0000ff8800ffff9bb8ffdec4e9fbd8d2fffccdff4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220237eb1e27f426e1a650d9c0aa50ad1e882e4bd92d4bf14861a58a90e4b1364c364736f6c634300080e0033

Deployed Bytecode

0x6080604052600436106101355760003560e01c806370a08231116100ab578063a22cb4651161006f578063a22cb4651461036d578063b88d4fde1461038d578063c87b56dd146103ad578063e985e9c5146103cd578063f2fde38b14610416578063fcfff16f1461043657600080fd5b806370a08231146102d7578063715018a6146103055780638c7ea24b1461031a5780638da5cb5b1461033a57806395d89b411461035857600080fd5b806323b872dd116100fd57806323b872dd146102105780632a55205a14610230578063352926a81461026f57806342842e0e1461028257806343d726d6146102a25780636352211e146102b757600080fd5b806301ffc9a71461013a57806306fdde031461016f578063081812fc14610191578063095ea7b3146101c95780631865c57d146101eb575b600080fd5b34801561014657600080fd5b5061015a610155366004611c27565b61044b565b60405190151581526020015b60405180910390f35b34801561017b57600080fd5b5061018461045c565b6040516101669190611c9c565b34801561019d57600080fd5b506101b16101ac366004611caf565b6104ee565b6040516001600160a01b039091168152602001610166565b3480156101d557600080fd5b506101e96101e4366004611ce4565b610588565b005b3480156101f757600080fd5b5061020061069d565b6040516101669493929190611d0e565b34801561021c57600080fd5b506101e961022b366004611d71565b610723565b34801561023c57600080fd5b5061025061024b366004611dad565b610754565b604080516001600160a01b039093168352602083019190915201610166565b6101e961027d366004611de0565b6107a9565b34801561028e57600080fd5b506101e961029d366004611d71565b610be2565b3480156102ae57600080fd5b506101e9610bfd565b3480156102c357600080fd5b506101b16102d2366004611caf565b610c38565b3480156102e357600080fd5b506102f76102f2366004611e23565b610caf565b604051908152602001610166565b34801561031157600080fd5b506101e9610d36565b34801561032657600080fd5b506101e9610335366004611ce4565b610d6c565b34801561034657600080fd5b506017546001600160a01b03166101b1565b34801561036457600080fd5b50610184610da4565b34801561037957600080fd5b506101e9610388366004611e3e565b610db3565b34801561039957600080fd5b506101e96103a8366004611e90565b610dbe565b3480156103b957600080fd5b506101846103c8366004611caf565b610df6565b3480156103d957600080fd5b5061015a6103e8366004611f6c565b6001600160a01b03918216600090815260156020908152604080832093909416825291909152205460ff1690565b34801561042257600080fd5b506101e9610431366004611e23565b610eb3565b34801561044257600080fd5b506101e9610f4e565b600061045682610f86565b92915050565b60606010805461046b90611f9f565b80601f016020809104026020016040519081016040528092919081815260200182805461049790611f9f565b80156104e45780601f106104b9576101008083540402835291602001916104e4565b820191906000526020600020905b8154815290600101906020018083116104c757829003601f168201915b5050505050905090565b6000818152601260205260408120546001600160a01b031661056c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152601460205260409020546001600160a01b031690565b600061059382610c38565b9050806001600160a01b0316836001600160a01b0316036106005760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610563565b336001600160a01b038216148061061c575061061c81336103e8565b61068e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610563565b6106988383610fab565b505050565b60008060006106aa611bf2565b60185460408051610840810191829052600160f81b83161515965060f083901c9550919350839190601990604290826000855b825461010083900a900460f81b6001600160f81b0319168152602060019283018181049485019490930390920291018084116106dd579050505050505091505090919293565b61072d3382611019565b6107495760405162461bcd60e51b815260040161056390611fd9565b610698838383611110565b604080518082019091526016546001600160a01b038116808352600160a01b90910462ffffff16602083018190529091600091612710906107959086612040565b61079f9190612075565b9150509250929050565b60108260ff161080156107bf575060108160ff16105b80156107d157508060ff168260ff1614155b6108155760405162461bcd60e51b8152602060048201526015602482015274446f6f72733a20696e76616c696420636f6c6f727360581b6044820152606401610563565b601854600160f81b8116151560f082901c82600060ff8087169088161161083d576001610840565b60005b8688600f02010360ff166001901b90508082166001600160f01b03166000146108a15760405162461bcd60e51b8152602060048201526013602482015272446f6f72733a20746f6b656e2065786973747360681b6044820152606401610563565b60428360ff16106108f45760405162461bcd60e51b815260206004820152601f60248201527f446f6f72733a206e6f206d6f726520746f6b656e7320617661696c61626c65006044820152606401610563565b8560048860ff16901b0160f81b60198460ff166042811061091757610917612089565b602091828204019190066101000a81548160ff021916908360f81c021790555082806001019350508082176001600160f01b031660f08460ff16901b60f886610961576000610964565b60015b60ff16901b171760188190555061097e888460ff166112ac565b60006109926017546001600160a01b031690565b90506001600160a01b03811633036109ed5734156109e85760405162461bcd60e51b8152602060048201526013602482015272111bdbdc9cce881ddc9bdb99c8185b5bdd5b9d606a1b6044820152606401610563565b610bd7565b84610a2a5760405162461bcd60e51b815260206004820152600d60248201526c111bdbdc9cce8818db1bdcd959609a1b6044820152606401610563565b346703782dace9d9000014610a775760405162461bcd60e51b8152602060048201526013602482015272111bdbdc9cce881ddc9bdb99c8185b5bdd5b9d606a1b6044820152606401610563565b6000816001600160a01b03166702c68af0bb14000060405160006040518083038185875af1925050503d8060008114610acc576040519150601f19603f3d011682016040523d82523d6000602084013e610ad1565b606091505b5050905080610b225760405162461bcd60e51b815260206004820152601b60248201527f446f6f72733a20756e61626c65207472616e7366657220746f204100000000006044820152606401610563565b6040517339596955f9111e12af0b96a96160c5f7211b20ef9066b1a2bc2ec5000090600081818185875af1925050503d8060008114610b7d576040519150601f19603f3d011682016040523d82523d6000602084013e610b82565b606091505b50508091505080610bd55760405162461bcd60e51b815260206004820152601b60248201527f446f6f72733a20756e61626c65207472616e7366657220746f204200000000006044820152606401610563565b505b505050505050505050565b61069883838360405180602001604052806000815250610dbe565b6017546001600160a01b03163314610c275760405162461bcd60e51b81526004016105639061209f565b60188054600160ff60f81b03169055565b6000818152601260205260408120546001600160a01b0316806104565760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610563565b60006001600160a01b038216610d1a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610563565b506001600160a01b031660009081526013602052604090205490565b6017546001600160a01b03163314610d605760405162461bcd60e51b81526004016105639061209f565b610d6a60006112c6565b565b6017546001600160a01b03163314610d965760405162461bcd60e51b81526004016105639061209f565b610da08282611318565b5050565b60606011805461046b90611f9f565b610da03383836113b4565b610dc83383611019565b610de45760405162461bcd60e51b815260040161056390611fd9565b610df084848484611482565b50505050565b6000818152601260205260409020546060906001600160a01b0316610e5d5760405162461bcd60e51b815260206004820152601860248201527f446f6f72733a206e6f6e6578697374656e7420746f6b656e00000000000000006044820152606401610563565b60006019610e6c6001856120d4565b60428110610e7c57610e7c612089565b602091828204019190069054906101000a900460f81b60f81c9050610eac8360048360ff16901c83600f166114b5565b9392505050565b6017546001600160a01b03163314610edd5760405162461bcd60e51b81526004016105639061209f565b6001600160a01b038116610f425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610563565b610f4b816112c6565b50565b6017546001600160a01b03163314610f785760405162461bcd60e51b81526004016105639061209f565b60188054600160f81b179055565b60006001600160e01b0319821663152a902d60e11b1480610456575061045682611552565b600081815260146020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610fe082610c38565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152601260205260408120546001600160a01b03166110925760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610563565b600061109d83610c38565b9050806001600160a01b0316846001600160a01b031614806110e457506001600160a01b0380821660009081526015602090815260408083209388168352929052205460ff165b806111085750836001600160a01b03166110fd846104ee565b6001600160a01b0316145b949350505050565b826001600160a01b031661112382610c38565b6001600160a01b0316146111875760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610563565b6001600160a01b0382166111e95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610563565b6111f4600082610fab565b6001600160a01b038316600090815260136020526040812080546001929061121d9084906120d4565b90915550506001600160a01b038216600090815260136020526040812080546001929061124b9084906120eb565b909155505060008181526012602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610da08282604051806020016040528060008152506115a2565b601780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61271081111561136a5760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610563565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260168054600160a01b9093026001600160b81b0319909316909117919091179055565b816001600160a01b0316836001600160a01b0316036114155760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610563565b6001600160a01b03838116600081815260156020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61148d848484611110565b611499848484846115d5565b610df05760405162461bcd60e51b815260040161056390612103565b606061152a6114c3856116d6565b60008560ff16601081106114d9576114d9612089565b0160008560ff16601081106114f0576114f0612089565b016115036114fe88886117d7565b61195d565b604051602001611516949392919061220a565b60405160208183030381529060405261195d565b60405160200161153a9190612427565b60405160208183030381529060405290509392505050565b60006001600160e01b031982166380ac58cd60e01b148061158357506001600160e01b03198216635b5e139f60e01b145b8061045657506301ffc9a760e01b6001600160e01b0319831614610456565b6115ac8383611ab0565b6115b960008484846115d5565b6106985760405162461bcd60e51b815260040161056390612103565b60006001600160a01b0384163b156116cb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061161990339089908890889060040161246c565b6020604051808303816000875af1925050508015611654575060408051601f3d908101601f19168201909252611651918101906124a9565b60015b6116b1573d808015611682576040519150601f19603f3d011682016040523d82523d6000602084013e611687565b606091505b5080516000036116a95760405162461bcd60e51b815260040161056390612103565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611108565b506001949350505050565b6060816000036116fd5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156117275780611711816124c6565b91506117209050600a83612075565b9150611701565b60008167ffffffffffffffff81111561174257611742611e7a565b6040519080825280601f01601f19166020018201604052801561176c576020820181803683370190505b5090505b8415611108576117816001836120d4565b915061178e600a866124df565b6117999060306120eb565b60f81b8183815181106117ae576117ae612089565b60200101906001600160f81b031916908160001a9053506117d0600a86612075565b9450611770565b60606118206040518060600160405280603081526020016126ae603091396118008560036124f3565b60ff168151811061181357611813612089565b016020015160f81c6116d6565b6118526040518060600160405280603081526020016126ae603091396118478660036124f3565b61180090600161251c565b6118846040518060600160405280603081526020016126ae603091396118798760036124f3565b61180090600261251c565b60405160200161189693929190612541565b60408051601f1981840301815260608301909152603080835290916118c8916126ae60208301396118008560036124f3565b6118ef6040518060600160405280603081526020016126ae603091396118478660036124f3565b6119166040518060600160405280603081526020016126ae603091396118798760036124f3565b60405160200161192893929190612541565b60408051601f1981840301815290829052611946929160200161259b565b604051602081830303815290604052905092915050565b6060815160000361197c57505060408051602081019091526000815290565b60006040518060600160405280604081526020016126de60409139905060006003845160026119ab91906120eb565b6119b59190612075565b6119c0906004612040565b67ffffffffffffffff8111156119d8576119d8611e7a565b6040519080825280601f01601f191660200182016040528015611a02576020820181803683370190505b509050600182016020820185865187015b80821015611a6e576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611a13565b5050600386510660018114611a8a5760028114611a9d57611aa5565b603d6001830353603d6002830353611aa5565b603d60018303535b509195945050505050565b6001600160a01b038216611b065760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610563565b6000818152601260205260409020546001600160a01b031615611b6b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610563565b6001600160a01b0382166000908152601360205260408120805460019290611b949084906120eb565b909155505060008181526012602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040518061084001604052806042906020820280368337509192915050565b6001600160e01b031981168114610f4b57600080fd5b600060208284031215611c3957600080fd5b8135610eac81611c11565b60005b83811015611c5f578181015183820152602001611c47565b83811115610df05750506000910152565b60008151808452611c88816020860160208601611c44565b601f01601f19169290920160200192915050565b602081526000610eac6020830184611c70565b600060208284031215611cc157600080fd5b5035919050565b80356001600160a01b0381168114611cdf57600080fd5b919050565b60008060408385031215611cf757600080fd5b611d0083611cc8565b946020939093013593505050565b841515815260ff84166020808301919091526001600160f01b03841660408301526108a0820190606083018460005b6042811015611d645781516001600160f81b03191683529183019190830190600101611d3d565b5050505095945050505050565b600080600060608486031215611d8657600080fd5b611d8f84611cc8565b9250611d9d60208501611cc8565b9150604084013590509250925092565b60008060408385031215611dc057600080fd5b50508035926020909101359150565b803560ff81168114611cdf57600080fd5b600080600060608486031215611df557600080fd5b611dfe84611cc8565b9250611e0c60208501611dcf565b9150611e1a60408501611dcf565b90509250925092565b600060208284031215611e3557600080fd5b610eac82611cc8565b60008060408385031215611e5157600080fd5b611e5a83611cc8565b915060208301358015158114611e6f57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611ea657600080fd5b611eaf85611cc8565b9350611ebd60208601611cc8565b925060408501359150606085013567ffffffffffffffff80821115611ee157600080fd5b818701915087601f830112611ef557600080fd5b813581811115611f0757611f07611e7a565b604051601f8201601f19908116603f01168101908382118183101715611f2f57611f2f611e7a565b816040528281528a6020848701011115611f4857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611f7f57600080fd5b611f8883611cc8565b9150611f9660208401611cc8565b90509250929050565b600181811c90821680611fb357607f821691505b602082108103611fd357634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561205a5761205a61202a565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826120845761208461205f565b500490565b634e487b7160e01b600052603260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000828210156120e6576120e661202a565b500390565b600082198211156120fe576120fe61202a565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008151612167818560208601611c44565b9290920192915050565b8054600090600181811c908083168061218b57607f831692505b602080841082036121ac57634e487b7160e01b600052602260045260246000fd5b8180156121c057600181146121d1576121fe565b60ff198616895284890196506121fe565b60008881526020902060005b868110156121f65781548b8201529085019083016121dd565b505084890196505b50505050505092915050565b6d03d913730b6b2911d112237b7b9160951b8152845160009061223481600e850160208a01611c44565b61088b60f21b600e918401918201527f226465736372697074696f6e223a22446f6f7273206973206120636f6c6c656360108201527f74696f6e206f662036362066756c6c79206f6ee28093636861696e206172747760308201527f6f726b7320f09f8cb92050726f6a6563742062792052616661c3ab6c20526f7a60508201527f656e6461616c203230323220f09f8cb920536d61727420636f6e74726163742060708201527f627920416c626572746f204772616e7a6f74746f20f09f8cb9204c6963656e73609082015273194e8810d0c810964b5390cb5391080d0b8c088b60621b60b082015261241c61240e6124086123d36123c36123bd61238461237e60c489017f2261747472696275746573223a5b7b2274726169745f74797065223a22446f6f815271391021b7b637b91116113b30b63ab2911d1160711b602082015260320190565b8d612171565b7f227d2c7b2274726169745f74797065223a224b6e6f6220436f6c6f72222c227681526630b63ab2911d1160c91b602082015260270190565b8a612171565b63089f574b60e21b815260040190565b7f22696d616765223a22646174613a696d6167652f7376672b786d6c3b626173658152620d8d0b60ea1b602082015260230190565b86612155565b61227d60f01b815260020190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161245f81601d850160208701611c44565b91909101601d0192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061249f90830184611c70565b9695505050505050565b6000602082840312156124bb57600080fd5b8151610eac81611c11565b6000600182016124d8576124d861202a565b5060010190565b6000826124ee576124ee61205f565b500690565b600060ff821660ff84168160ff04811182151516156125145761251461202a565b029392505050565b600060ff821660ff84168060ff038211156125395761253961202a565b019392505050565b60008451612553818460208901611c44565b8083019050600b60fa1b8082528551612573816001850160208a01611c44565b6001920191820152835161258e816002840160208801611c44565b0160020195945050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d2230203020313038302031393230223e60208201527f3c726563742077696474683d223130302522206865696768743d22313030252260408201526a040ccd2d8d87a44e4cec4560ab1b60608201526000835161263381606b850160208801611c44565b7f2922202f3e3c636972636c652063783d22393132222063793d22393630222072606b918401918201526f07a446a6c4440ccd2d8d87a44e4cec4560831b608b820152835161268981609b840160208801611c44565b6a149110179f1e17b9bb339f60a91b609b929091019182015260a60194935050505056fe0000004d4d4dcccccc00a99d29abe20071bc2e319293278fed1e79ff0000ff8800ffff9bb8ffdec4e9fbd8d2fffccdff4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220237eb1e27f426e1a650d9c0aa50ad1e882e4bd92d4bf14861a58a90e4b1364c364736f6c634300080e0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ 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.