ETH Price: $3,811.66 (+5.01%)

Token

CouncilOfKingz (COK)
 

Overview

Max Total Supply

5,277 COK

Holders

1,072

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
nft-pizza.eth
Balance
2 COK
0x7667f9bf30460286f3af0c2f333e1a1aceb8fd44
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Council of Kingz is the most innovative real estate acquisition project in the NFT and metaverse space. 75% of mint going directly to purchasing land, developing each of the land plots with the intent to create gathering places, community centers, and more.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CouncilOfKingz

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 13 : CouncilOfKingz.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract CouncilOfKingz is ERC721, Ownable {
    using SafeMath for uint256;
    using Strings for uint256;

    // Contract controls; defaults to false
    bool public paused;
    bool public presaleEnabled;
    bool public publicSaleEnabled;
    bool public revealed;
    bool public burnEnabled;

    // Sale variables
    uint16 public constant totalTokens = 7777;
    uint16 public maxMintAmount = 5;
    uint16 public maxTokensPerWalletPresale = 5;
    uint16 public maxTokensPerWallet = 25;
    uint256 public costPublicSale = 0.15 ether;
    uint256 public costPresale = 0.13 ether;
    // counter
    uint16 private _totalMintSupply = 0; // start with zero

    // Burn variables
    uint16 public totalBurnTokens = 2500;
    // counter
    uint16 private _totalBurnSupply = 0; // start with zero

    // metadata URIs
    string private _contractURI; // initially set at deploy
    string private _notRevealedURI; // initially set at deploy
    string private _currentBaseURI; // initially set at deploy
    string private _baseExtension = ".json";

    // Presale list
    mapping(address => uint256) public presaleListMintCount;
    bytes32 public merkleRoot;

    // Mapping Minter address to token count for mint controls
    mapping(address => uint16) public addressMints;
    // Mapping Burner address to token count
    mapping(address => uint16) public addressBurns;
    // Mapping token matrix
    mapping(uint16 => uint16) private tokenMatrix;

    constructor(
        string memory _name,
        string memory _symbol,
        string memory _initContractURI,
        string memory _initBaseURI,
        string memory _initNotRevealedURI
    ) ERC721(_name, _symbol) {
        setContractURI(_initContractURI);
        setCurrentBaseURI(_initBaseURI);
        setNotRevealedURI(_initNotRevealedURI);
        _mintNFT(msg.sender, 100);
    }

    /**
     * @dev Returns the total number of tokens in circulation
     */
    function totalSupply() external view returns (uint16) {
        return _totalMintSupply - _totalBurnSupply;
    }

    /**
     * @dev Returns the total number of tokens burned
     */
    function totalBurned() public view returns (uint16) {
        return _totalBurnSupply;
    }

    /**
     * @dev Returns the total number of tokens minted
     */
    function totalMinted() public view returns (uint16) {
        return _totalMintSupply;
    }

    /**
     * @dev Modifier to ensure tokens are avaliable and sale is active
     */
    modifier onlyAllowValidCountAndActiveSale(uint256 _mintAmount) {
        require(!paused, "Sale paused");
        require(totalMinted() + _mintAmount <= totalTokens, "Exceeds supply");
        require(
            _mintAmount > 0 && _mintAmount <= maxMintAmount,
            "Wrong token count"
        );
        _;
    }

    /**
     * @dev Public mint
     */
    function publicMint(uint16 _mintAmount)
        external
        payable
        onlyAllowValidCountAndActiveSale(_mintAmount)
    {
        require(costPublicSale.mul(_mintAmount) == msg.value, "Wrong amount");
        require(publicSaleEnabled && !presaleEnabled, "Not started");
        require(
            addressMints[_msgSender()] + _mintAmount <= maxTokensPerWallet,
            "Exceeds max"
        );
        _mintNFT(_msgSender(), _mintAmount);
    }

    /**
     * @dev Presale mint
     */
    function presaleMint(bytes32[] calldata _merkleProof, uint16 _mintAmount)
        external
        payable
        onlyAllowValidCountAndActiveSale(_mintAmount)
    {
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(
            MerkleProof.verify(_merkleProof, merkleRoot, leaf),
            "Not on the list"
        );
        require(costPresale.mul(_mintAmount) == msg.value, "Wrong amount");
        require(!publicSaleEnabled && presaleEnabled, "Presale closed");
        require(
            addressMints[_msgSender()] + _mintAmount <=
                maxTokensPerWalletPresale,
            "Exceeds max"
        );
        _mintNFT(_msgSender(), _mintAmount);
    }

    /**
     * @dev Owner mint function
     */
    function ownerMint(uint16 _mintAmount)
        external
        onlyOwner
        onlyAllowValidCountAndActiveSale(_mintAmount)
    {
        _mintNFT(_msgSender(), _mintAmount);
    }

    /**
     * @dev Internal mint function
     */
    function _mintNFT(address _to, uint16 _mintAmount) private {
        addressMints[_to] += _mintAmount;
        for (uint256 i = 0; i < _mintAmount; i++) {
            _safeMint(_to, _getTokenToBeMinted(totalMinted()));
            _totalMintSupply++;
        }
    }

    /**
     * @dev Returns a random available token to be minted
     */
    function _getTokenToBeMinted(uint16 _totalMintedTokens)
        private
        returns (uint16)
    {
        uint16 maxIndex = totalTokens - _totalMintedTokens;
        uint16 random = _getRandomNumber(maxIndex, _totalMintedTokens);

        uint16 tokenId = tokenMatrix[random];
        if (tokenMatrix[random] == 0) {
            tokenId = random;
        }

        tokenMatrix[maxIndex - 1] == 0
            ? tokenMatrix[random] = maxIndex - 1
            : tokenMatrix[random] = tokenMatrix[maxIndex - 1];

        return tokenId + 1;
    }

    /**
     * @dev Generates a pseudo-random number
     */
    function _getRandomNumber(uint16 _upper, uint16 _totalMintedTokens)
        private
        view
        returns (uint16)
    {
        uint16 random = uint16(
            uint256(
                keccak256(
                    abi.encodePacked(
                        _totalMintedTokens,
                        blockhash(block.number - 1),
                        block.coinbase,
                        block.difficulty,
                        _msgSender()
                    )
                )
            )
        );

        return random % _upper;
    }

    /**
     * @dev Returns list of token ids owned by address
     */
    function walletOfOwner(address _owner)
        external
        view
        returns (uint256[] memory)
    {
        uint256 ownerTokenCount = balanceOf(_owner);
        uint256[] memory tokenIds = new uint256[](ownerTokenCount);
        uint256 k = 0;
        for (uint256 i = 1; i <= totalTokens; i++) {
            if (_exists(i) && _owner == ownerOf(i)) {
                tokenIds[k] = i;
                k++;
            }
        }
        delete k;
        return tokenIds;
    }

    /**
     * @dev Returns the URI to the contract metadata
     */
    function contractURI() external view returns (string memory) {
        return _contractURI;
    }

    /**
     * @dev Internal function to return the base uri for all tokens
     */
    function _baseURI() internal view virtual override returns (string memory) {
        return _currentBaseURI;
    }

    /**
     * @dev Returns the URI to the tokens metadata
     */
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

        if (revealed == false) {
            return _notRevealedURI;
        }

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

    /**
     * @dev Burn tokens in mutiples of 5
     */
    function burn(uint256[] memory _tokenIds) external {
        require(burnEnabled, "Burn disabled");
        require(_tokenIds.length % 5 == 0, "Multiples of 5");
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            require(
                _isApprovedOrOwner(_msgSender(), _tokenIds[i]),
                "ERC721Burnable: caller is not owner nor approved"
            );
        }
        require(
            totalBurned() + _tokenIds.length <= totalBurnTokens,
            "Exceeds burn limit"
        );
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            _burn(_tokenIds[i]);
            _totalBurnSupply++;
            addressBurns[_msgSender()] += 1;
        }
    }

    /**
     * Owner functions
     */

    /**
     * @dev Start or pause the sale
     */
    function flipSaleState() external onlyOwner {
        paused = !paused;
    }

    /**
     * @dev Activate the public sale
     */
    function publicSaleStart() external onlyOwner {
        presaleEnabled = false;
        publicSaleEnabled = true;
    }

    /**
     * @dev Reveal the token metadata
     */
    function reveal() external onlyOwner {
        revealed = true;
    }

    /**
     * @dev enables the burn mechanism; can only be set once
     */
    function enableBurn() external onlyOwner {
        burnEnabled = true;
    }

    /**
     * @dev Setter for the token cost for public sale
     */
    function setCostPublicSale(uint256 _newCost) external onlyOwner {
        costPublicSale = _newCost;
    }

    /**
     * @dev Setter for the token cost for presale
     */
    function setCostPresale(uint256 _newCostPresale) external onlyOwner {
        costPresale = _newCostPresale;
    }

    /**
     * @dev Setter for the total burnable tokens
     */
    function setTotalBurnTokens(uint16 _newTotalBurnTokens) external onlyOwner {
        totalBurnTokens = _newTotalBurnTokens;
    }

    /**
     * @dev Setter for the Contract URI
     */
    function setContractURI(string memory _newContractURI) public onlyOwner {
        _contractURI = _newContractURI;
    }

    /**
     * @dev Setter for the Not Revealed URI
     */
    function setNotRevealedURI(string memory _newNotRevealedURI)
        public
        onlyOwner
    {
        _notRevealedURI = _newNotRevealedURI;
    }

    /**
     * @dev Setter for the Base URI
     */
    function setCurrentBaseURI(string memory _newBaseURI) public onlyOwner {
        _currentBaseURI = _newBaseURI;
    }

    /**
     * @dev Setter for the meta data base extension
     */
    function setBaseExtension(string memory _newBaseExtension)
        external
        onlyOwner
    {
        _baseExtension = _newBaseExtension;
    }

    function setPresaleListEnabled() external onlyOwner {
        presaleEnabled = true;
    }

    /**
     * @dev Setter for the merkle root
     */
    function setMerkleRoot(bytes32 _root) external onlyOwner {
        merkleRoot = _root;
    }

    function withdraw() public payable onlyOwner {
        (bool success, ) = payable(msg.sender).call{
            value: address(this).balance
        }("");
        require(success);
    }

    /**
     * @dev A fallback function in case someone sends ETH to the contract
     */
    fallback() external payable {}

    receive() external payable {}
}

File 2 of 13 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 3 of 13 : 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 4 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 5 of 13 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

File 6 of 13 : 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;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 9 of 13 : 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 10 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 13 : 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 12 of 13 : 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 13 of 13 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initContractURI","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_initNotRevealedURI","type":"string"}],"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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressBurns","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMints","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"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":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costPublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","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":[{"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":[],"name":"maxMintAmount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPerWallet","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPerWalletPresale","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_mintAmount","type":"uint16"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleListMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint16","name":"_mintAmount","type":"uint16"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_mintAmount","type":"uint16"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSaleEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCostPresale","type":"uint256"}],"name":"setCostPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCostPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setCurrentBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newNotRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPresaleListEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_newTotalBurnTokens","type":"uint16"}],"name":"setTotalBurnTokens","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":[],"name":"totalBurnTokens","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokens","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6006805464190005000560c81b65ffffffffffff60c81b19909116179055670214e8348c4f00006007556701cdda4faccd00006008556009805465ffffffffffff19166309c4000017905560c06040526005608081905264173539b7b760d91b60a09081526200007391600d919062000851565b503480156200008157600080fd5b506040516200449d3803806200449d833981016040819052620000a491620009d1565b845185908590620000bd90600090602085019062000851565b508051620000d390600190602084019062000851565b505050620000f0620000ea6200012960201b60201c565b6200012d565b620000fb836200017f565b6200010682620001e7565b620001118162000247565b6200011e336064620002a7565b505050505062000c85565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b03163314620001ce5760405162461bcd60e51b815260206004820181905260248201526000805160206200447d83398151915260448201526064015b60405180910390fd5b8051620001e390600a90602084019062000851565b5050565b6006546001600160a01b03163314620002325760405162461bcd60e51b815260206004820181905260248201526000805160206200447d8339815191526044820152606401620001c5565b8051620001e390600c90602084019062000851565b6006546001600160a01b03163314620002925760405162461bcd60e51b815260206004820181905260248201526000805160206200447d8339815191526044820152606401620001c5565b8051620001e390600b90602084019062000851565b6001600160a01b03821660009081526010602052604081208054839290620002d590849061ffff1662000ac8565b92506101000a81548161ffff021916908361ffff16021790555060005b8161ffff168110156200036d5762000326836200031c6200031660095461ffff1690565b62000372565b61ffff166200047e565b6009805461ffff169060006200033c8362000af1565b91906101000a81548161ffff021916908361ffff160217905550508080620003649062000b16565b915050620002f2565b505050565b6000806200038383611e6162000b34565b90506000620003938285620004a0565b61ffff8082166000908152601260205260409020549192501680620003b55750805b60126000620003c660018662000b34565b61ffff90811682526020820192909252604001600020541615620004355760126000620003f560018662000b34565b61ffff908116825260208083019390935260409182016000908120548683168252601290945291909120805461ffff191692909116918217905562000467565b6200044260018462000b34565b61ffff8381166000908152601260205260409020805461ffff19169183169190911790555b506200047581600162000ac8565b95945050505050565b620001e38282604051806020016040528060008152506200052860201b60201c565b60008082620004b160014362000b5a565b6040805160f09390931b6001600160f01b0319166020808501919091529140602284015241606090811b6001600160601b031990811660428601524460568601523390911b1660768401528051808403606a018152608a90930190528151910120905062000520848262000b74565b949350505050565b6200053483836200059b565b620005436000848484620006e3565b6200036d5760405162461bcd60e51b815260206004820152603260248201526000805160206200445d83398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401620001c5565b6001600160a01b038216620005f35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401620001c5565b6000818152600260205260409020546001600160a01b0316156200065a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620001c5565b6001600160a01b03821660009081526003602052604081208054600192906200068590849062000ba4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600062000704846001600160a01b03166200084b60201b6200225e1760201c565b156200084057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906200073e90339089908890889060040162000bbf565b602060405180830381600087803b1580156200075957600080fd5b505af19250505080156200078c575060408051601f3d908101601f19168201909252620007899181019062000c15565b60015b62000825573d808015620007bd576040519150601f19603f3d011682016040523d82523d6000602084013e620007c2565b606091505b5080516200081d5760405162461bcd60e51b815260206004820152603260248201526000805160206200445d83398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401620001c5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062000520565b506001949350505050565b3b151590565b8280546200085f9062000c48565b90600052602060002090601f016020900481019282620008835760008555620008ce565b82601f106200089e57805160ff1916838001178555620008ce565b82800160010185558215620008ce579182015b82811115620008ce578251825591602001919060010190620008b1565b50620008dc929150620008e0565b5090565b5b80821115620008dc5760008155600101620008e1565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200092a57818101518382015260200162000910565b838111156200093a576000848401525b50505050565b600082601f8301126200095257600080fd5b81516001600160401b03808211156200096f576200096f620008f7565b604051601f8301601f19908116603f011681019082821181831017156200099a576200099a620008f7565b81604052838152866020858801011115620009b457600080fd5b620009c78460208301602089016200090d565b9695505050505050565b600080600080600060a08688031215620009ea57600080fd5b85516001600160401b038082111562000a0257600080fd5b62000a1089838a0162000940565b9650602088015191508082111562000a2757600080fd5b62000a3589838a0162000940565b9550604088015191508082111562000a4c57600080fd5b62000a5a89838a0162000940565b9450606088015191508082111562000a7157600080fd5b62000a7f89838a0162000940565b9350608088015191508082111562000a9657600080fd5b5062000aa58882890162000940565b9150509295509295909350565b634e487b7160e01b600052601160045260246000fd5b600061ffff80831681851680830382111562000ae85762000ae862000ab2565b01949350505050565b600061ffff8083168181141562000b0c5762000b0c62000ab2565b6001019392505050565b600060001982141562000b2d5762000b2d62000ab2565b5060010190565b600061ffff8381169083168181101562000b525762000b5262000ab2565b039392505050565b60008282101562000b6f5762000b6f62000ab2565b500390565b600061ffff8084168062000b9857634e487b7160e01b600052601260045260246000fd5b92169190910692915050565b6000821982111562000bba5762000bba62000ab2565b500190565b600060018060a01b03808716835280861660208401525083604083015260806060830152825180608084015262000bfe8160a08501602087016200090d565b601f01601f19169190910160a00195945050505050565b60006020828403121562000c2857600080fd5b81516001600160e01b03198116811462000c4157600080fd5b9392505050565b600181811c9082168062000c5d57607f821691505b6020821081141562000c7f57634e487b7160e01b600052602260045260246000fd5b50919050565b6137c88062000c956000396000f3fe6080604052600436106103345760003560e01c806370a08231116101ae578063b17bf6be116100eb578063da3ef23f1161008f578063f2c4ce1e1161006c578063f2c4ce1e146109a6578063f2fde38b146109c6578063f529fb0c146109e6578063f607cc4c14610a0657005b8063da3ef23f14610928578063e8a3d48514610948578063e985e9c51461095d57005b8063b88d4fde116100c8578063b88d4fde14610896578063c87b56dd146108b6578063cd7908ed146108d6578063d89135cd1461090757005b8063b17bf6be14610834578063b5aaa49414610854578063b80f55c91461087657005b80639196f76111610152578063964c33b51161012f578063964c33b5146107b5578063a22cb465146107e6578063a2309ff814610806578063a475b5dd1461081f57005b80639196f76114610760578063938e3d7b1461078057806395d89b41146107a057005b80637e1c0c091161018b5780637e1c0c09146106ec57806387734e19146107025780638da5cb5b1461072f5780638fa316081461074d57005b806370a0823114610697578063715018a6146106b75780637cb64759146106cc57005b806336e8942f1161027c57806351830227116102205780636352211e116101fd5780636352211e14610621578063666c80b9146106415780636c2e370b146106625780636c54eb331461068257005b806351830227146105be5780635c975abb146105df5780635dc96d161461060057005b80633ccfd60b116102595780633ccfd60b1461054757806342842e0e1461054f578063438b63001461056f578063469132ce1461059c57005b806336e8942f146104fc5780633966fa0f1461051c5780633b37d1d61461053257005b806318160ddd116102e35780632ab91bba116102c05780632ab91bba1461049b5780632eb4a7ab146104bc5780633360caa0146104d257806334918dfd146104e757005b806318160ddd14610431578063239c70ae1461045957806323b872dd1461047b57005b8063095ea7b311610311578063095ea7b3146103cc5780630c57ff69146103ec578063143b237f1461041057005b806301ffc9a71461033d57806306fdde0314610372578063081812fc1461039457005b3661033b57005b005b34801561034957600080fd5b5061035d61035836600461300f565b610a19565b60405190151581526020015b60405180910390f35b34801561037e57600080fd5b50610387610ab6565b6040516103699190613084565b3480156103a057600080fd5b506103b46103af366004613097565b610b48565b6040516001600160a01b039091168152602001610369565b3480156103d857600080fd5b5061033b6103e73660046130cc565b610be2565b3480156103f857600080fd5b5061040260085481565b604051908152602001610369565b34801561041c57600080fd5b5060065461035d90600160a81b900460ff1681565b34801561043d57600080fd5b50610446610d14565b60405161ffff9091168152602001610369565b34801561046557600080fd5b5060065461044690600160c81b900461ffff1681565b34801561048757600080fd5b5061033b6104963660046130f6565b610d37565b3480156104a757600080fd5b5060065461035d90600160b01b900460ff1681565b3480156104c857600080fd5b50610402600f5481565b3480156104de57600080fd5b5061033b610dbe565b3480156104f357600080fd5b5061033b610e36565b34801561050857600080fd5b5061033b610517366004613144565b610eba565b34801561052857600080fd5b5061040260075481565b34801561053e57600080fd5b5061033b611019565b61033b611091565b34801561055b57600080fd5b5061033b61056a3660046130f6565b611131565b34801561057b57600080fd5b5061058f61058a36600461315f565b61114c565b604051610369919061317a565b3480156105a857600080fd5b5060065461044690600160e81b900461ffff1681565b3480156105ca57600080fd5b5060065461035d90600160b81b900460ff1681565b3480156105eb57600080fd5b5060065461035d90600160a01b900460ff1681565b34801561060c57600080fd5b5060065461035d90600160c01b900460ff1681565b34801561062d57600080fd5b506103b461063c366004613097565b61123c565b34801561064d57600080fd5b506009546104469062010000900461ffff1681565b34801561066e57600080fd5b5061033b61067d366004613097565b6112c7565b34801561068e57600080fd5b5061033b611314565b3480156106a357600080fd5b506104026106b236600461315f565b61138c565b3480156106c357600080fd5b5061033b611426565b3480156106d857600080fd5b5061033b6106e7366004613097565b61147a565b3480156106f857600080fd5b50610446611e6181565b34801561070e57600080fd5b5061040261071d36600461315f565b600e6020526000908152604090205481565b34801561073b57600080fd5b506006546001600160a01b03166103b4565b61033b61075b3660046131be565b6114c7565b34801561076c57600080fd5b5061033b61077b366004613097565b6117d2565b34801561078c57600080fd5b5061033b61079b3660046132e1565b61181f565b3480156107ac57600080fd5b5061038761187a565b3480156107c157600080fd5b506104466107d036600461315f565b60106020526000908152604090205461ffff1681565b3480156107f257600080fd5b5061033b61080136600461332a565b611889565b34801561081257600080fd5b5060095461ffff16610446565b34801561082b57600080fd5b5061033b611894565b34801561084057600080fd5b5061033b61084f3660046132e1565b61190c565b34801561086057600080fd5b5060065461044690600160d81b900461ffff1681565b34801561088257600080fd5b5061033b610891366004613366565b611967565b3480156108a257600080fd5b5061033b6108b136600461340c565b611c13565b3480156108c257600080fd5b506103876108d1366004613097565b611ca1565b3480156108e257600080fd5b506104466108f136600461315f565b60116020526000908152604090205461ffff1681565b34801561091357600080fd5b50600954640100000000900461ffff16610446565b34801561093457600080fd5b5061033b6109433660046132e1565b611e30565b34801561095457600080fd5b50610387611e8b565b34801561096957600080fd5b5061035d610978366004613488565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109b257600080fd5b5061033b6109c13660046132e1565b611e9a565b3480156109d257600080fd5b5061033b6109e136600461315f565b611ef5565b3480156109f257600080fd5b5061033b610a01366004613144565b611fc2565b61033b610a14366004613144565b61202a565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a7c57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610ab057507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060008054610ac5906134bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610af1906134bb565b8015610b3e5780601f10610b1357610100808354040283529160200191610b3e565b820191906000526020600020905b815481529060010190602001808311610b2157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610bc65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610bed8261123c565b9050806001600160a01b0316836001600160a01b03161415610c775760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610bbd565b336001600160a01b0382161480610c935750610c938133610978565b610d055760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bbd565b610d0f8383612264565b505050565b600954600090610d329061ffff64010000000082048116911661350c565b905090565b610d4133826122d2565b610db35760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610bbd565b610d0f8383836123c9565b6006546001600160a01b03163314610e065760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b600680547fffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffff16600160b01b179055565b6006546001600160a01b03163314610e7e5760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116600160a01b9182900460ff1615909102179055565b6006546001600160a01b03163314610f025760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b60065461ffff821690600160a01b900460ff1615610f505760405162461bcd60e51b815260206004820152600b60248201526a14d85b19481c185d5cd95960aa1b6044820152606401610bbd565b611e6181610f6160095461ffff1690565b61ffff16610f6f919061352f565b1115610fae5760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b6044820152606401610bbd565b600081118015610fcb5750600654600160c81b900461ffff168111155b61100b5760405162461bcd60e51b815260206004820152601160248201527015dc9bdb99c81d1bdad95b8818dbdd5b9d607a1b6044820152606401610bbd565b6110153383612596565b5050565b6006546001600160a01b031633146110615760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b600680547fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff16600160c01b179055565b6006546001600160a01b031633146110d95760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b604051600090339047908381818185875af1925050503d806000811461111b576040519150601f19603f3d011682016040523d82523d6000602084013e611120565b606091505b505090508061112e57600080fd5b50565b610d0f83838360405180602001604052806000815250611c13565b606060006111598361138c565b905060008167ffffffffffffffff81111561117657611176613242565b60405190808252806020026020018201604052801561119f578160200160208202803683370190505b509050600060015b611e618111611232576000818152600260205260409020546001600160a01b0316151580156111ef57506111da8161123c565b6001600160a01b0316866001600160a01b0316145b15611220578083838151811061120757611207613547565b60209081029190910101528161121c8161355d565b9250505b8061122a8161355d565b9150506111a7565b5090949350505050565b6000818152600260205260408120546001600160a01b031680610ab05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610bbd565b6006546001600160a01b0316331461130f5760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b600855565b6006546001600160a01b0316331461135c5760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b600680547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16600160a81b179055565b60006001600160a01b03821661140a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610bbd565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461146e5760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b611478600061264f565b565b6006546001600160a01b031633146114c25760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b600f55565b60065461ffff821690600160a01b900460ff16156115155760405162461bcd60e51b815260206004820152600b60248201526a14d85b19481c185d5cd95960aa1b6044820152606401610bbd565b611e618161152660095461ffff1690565b61ffff16611534919061352f565b11156115735760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b6044820152606401610bbd565b6000811180156115905750600654600160c81b900461ffff168111155b6115d05760405162461bcd60e51b815260206004820152601160248201527015dc9bdb99c81d1bdad95b8818dbdd5b9d607a1b6044820152606401610bbd565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061164a85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f5491508490506126a1565b6116965760405162461bcd60e51b815260206004820152600f60248201527f4e6f74206f6e20746865206c69737400000000000000000000000000000000006044820152606401610bbd565b60085434906116a99061ffff86166126b7565b146116e55760405162461bcd60e51b815260206004820152600c60248201526b15dc9bdb99c8185b5bdd5b9d60a21b6044820152606401610bbd565b600654600160b01b900460ff161580156117085750600654600160a81b900460ff165b6117545760405162461bcd60e51b815260206004820152600e60248201527f50726573616c6520636c6f7365640000000000000000000000000000000000006044820152606401610bbd565b6006543360009081526010602052604090205461ffff600160d81b90920482169161178191869116613578565b61ffff1611156117c15760405162461bcd60e51b815260206004820152600b60248201526a08af0c6cacac8e640dac2f60ab1b6044820152606401610bbd565b6117cb3384612596565b5050505050565b6006546001600160a01b0316331461181a5760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b600755565b6006546001600160a01b031633146118675760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b805161101590600a906020840190612f60565b606060018054610ac5906134bb565b6110153383836126c3565b6006546001600160a01b031633146118dc5760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b600680547fffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffff16600160b81b179055565b6006546001600160a01b031633146119545760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b805161101590600c906020840190612f60565b600654600160c01b900460ff166119c05760405162461bcd60e51b815260206004820152600d60248201527f4275726e2064697361626c6564000000000000000000000000000000000000006044820152606401610bbd565b600581516119ce91906135b4565b15611a1b5760405162461bcd60e51b815260206004820152600e60248201527f4d756c7469706c6573206f6620350000000000000000000000000000000000006044820152606401610bbd565b60005b8151811015611ace57611a4a33838381518110611a3d57611a3d613547565b60200260200101516122d2565b611abc5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f766564000000000000000000000000000000006064820152608401610bbd565b80611ac68161355d565b915050611a1e565b50600954815161ffff62010000830481169264010000000090041661ffff16611af7919061352f565b1115611b455760405162461bcd60e51b815260206004820152601260248201527f45786365656473206275726e206c696d697400000000000000000000000000006044820152606401610bbd565b60005b815181101561101557611b73828281518110611b6657611b66613547565b6020026020010151612792565b60098054640100000000900461ffff16906004611b8f836135c8565b91906101000a81548161ffff021916908361ffff16021790555050600160116000611bb73390565b6001600160a01b03168152602081019190915260400160009081208054909190611be690849061ffff16613578565b92506101000a81548161ffff021916908361ffff1602179055508080611c0b9061355d565b915050611b48565b611c1d33836122d2565b611c8f5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610bbd565b611c9b8484848461282d565b50505050565b6000818152600260205260409020546060906001600160a01b0316611d2e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610bbd565b600654600160b81b900460ff16611dd157600b8054611d4c906134bb565b80601f0160208091040260200160405190810160405280929190818152602001828054611d78906134bb565b8015611dc55780601f10611d9a57610100808354040283529160200191611dc5565b820191906000526020600020905b815481529060010190602001808311611da857829003601f168201915b50505050509050919050565b6000611ddb6128ab565b90506000815111611dfb5760405180602001604052806000815250611e29565b80611e05846128ba565b600d604051602001611e19939291906135ea565b6040516020818303038152906040525b9392505050565b6006546001600160a01b03163314611e785760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b805161101590600d906020840190612f60565b6060600a8054610ac5906134bb565b6006546001600160a01b03163314611ee25760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b805161101590600b906020840190612f60565b6006546001600160a01b03163314611f3d5760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b6001600160a01b038116611fb95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610bbd565b61112e8161264f565b6006546001600160a01b0316331461200a5760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b6009805461ffff909216620100000263ffff000019909216919091179055565b60065461ffff821690600160a01b900460ff16156120785760405162461bcd60e51b815260206004820152600b60248201526a14d85b19481c185d5cd95960aa1b6044820152606401610bbd565b611e618161208960095461ffff1690565b61ffff16612097919061352f565b11156120d65760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b6044820152606401610bbd565b6000811180156120f35750600654600160c81b900461ffff168111155b6121335760405162461bcd60e51b815260206004820152601160248201527015dc9bdb99c81d1bdad95b8818dbdd5b9d607a1b6044820152606401610bbd565b60075434906121469061ffff85166126b7565b146121825760405162461bcd60e51b815260206004820152600c60248201526b15dc9bdb99c8185b5bdd5b9d60a21b6044820152606401610bbd565b600654600160b01b900460ff1680156121a55750600654600160a81b900460ff16155b6121f15760405162461bcd60e51b815260206004820152600b60248201527f4e6f7420737461727465640000000000000000000000000000000000000000006044820152606401610bbd565b6006543360009081526010602052604090205461ffff600160e81b90920482169161221e91859116613578565b61ffff16111561100b5760405162461bcd60e51b815260206004820152600b60248201526a08af0c6cacac8e640dac2f60ab1b6044820152606401610bbd565b3b151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906122998261123c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661234b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bbd565b60006123568361123c565b9050806001600160a01b0316846001600160a01b031614806123915750836001600160a01b031661238684610b48565b6001600160a01b0316145b806123c157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166123dc8261123c565b6001600160a01b0316146124585760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610bbd565b6001600160a01b0382166124d35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610bbd565b6124de600082612264565b6001600160a01b03831660009081526003602052604081208054600192906125079084906136ae565b90915550506001600160a01b038216600090815260036020526040812080546001929061253590849061352f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216600090815260106020526040812080548392906125c290849061ffff16613578565b92506101000a81548161ffff021916908361ffff16021790555060005b8161ffff16811015610d0f5761260d836126046125ff60095461ffff1690565b6129ec565b61ffff16612ae9565b6009805461ffff16906000612621836135c8565b91906101000a81548161ffff021916908361ffff1602179055505080806126479061355d565b9150506125df565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826126ae8584612b03565b14949350505050565b6000611e2982846136c5565b816001600160a01b0316836001600160a01b031614156127255760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bbd565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600061279d8261123c565b90506127aa600083612264565b6001600160a01b03811660009081526003602052604081208054600192906127d39084906136ae565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6128388484846123c9565b61284484848484612baf565b611c9b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bbd565b6060600c8054610ac5906134bb565b6060816128fa57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612924578061290e8161355d565b915061291d9050600a836136e4565b91506128fe565b60008167ffffffffffffffff81111561293f5761293f613242565b6040519080825280601f01601f191660200182016040528015612969576020820181803683370190505b5090505b84156123c15761297e6001836136ae565b915061298b600a866135b4565b61299690603061352f565b60f81b8183815181106129ab576129ab613547565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506129e5600a866136e4565b945061296d565b6000806129fb83611e6161350c565b90506000612a098285612d07565b61ffff8082166000908152601260205260409020549192501680612a2a5750805b60126000612a3960018661350c565b61ffff90811682526020820192909252604001600020541615612aa45760126000612a6560018661350c565b61ffff908116825260208083019390935260409182016000908120548683168252601290945291909120805461ffff1916929091169182179055612ad4565b612aaf60018461350c565b61ffff8381166000908152601260205260409020805461ffff19169183169190911790555b50612ae0816001613578565b95945050505050565b611015828260405180602001604052806000815250612da0565b600081815b8451811015612ba7576000858281518110612b2557612b25613547565b60200260200101519050808311612b67576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612b94565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612b9f8161355d565b915050612b08565b509392505050565b60006001600160a01b0384163b15612cfc57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612bf39033908990889088906004016136f8565b602060405180830381600087803b158015612c0d57600080fd5b505af1925050508015612c3d575060408051601f3d908101601f19168201909252612c3a91810190613734565b60015b612ce2573d808015612c6b576040519150601f19603f3d011682016040523d82523d6000602084013e612c70565b606091505b508051612cda5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bbd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506123c1565b506001949350505050565b60008082612d166001436136ae565b6040805160f09390931b7fffff000000000000000000000000000000000000000000000000000000000000166020808501919091529140602284015241606090811b6bffffffffffffffffffffffff1990811660428601524460568601523390911b1660768401528051808403606a018152608a9093019052815191012090506123c18482613751565b612daa8383612e1e565b612db76000848484612baf565b610d0f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bbd565b6001600160a01b038216612e745760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bbd565b6000818152600260205260409020546001600160a01b031615612ed95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bbd565b6001600160a01b0382166000908152600360205260408120805460019290612f0290849061352f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612f6c906134bb565b90600052602060002090601f016020900481019282612f8e5760008555612fd4565b82601f10612fa757805160ff1916838001178555612fd4565b82800160010185558215612fd4579182015b82811115612fd4578251825591602001919060010190612fb9565b50612fe0929150612fe4565b5090565b5b80821115612fe05760008155600101612fe5565b6001600160e01b03198116811461112e57600080fd5b60006020828403121561302157600080fd5b8135611e2981612ff9565b60005b8381101561304757818101518382015260200161302f565b83811115611c9b5750506000910152565b6000815180845261307081602086016020860161302c565b601f01601f19169290920160200192915050565b602081526000611e296020830184613058565b6000602082840312156130a957600080fd5b5035919050565b80356001600160a01b03811681146130c757600080fd5b919050565b600080604083850312156130df57600080fd5b6130e8836130b0565b946020939093013593505050565b60008060006060848603121561310b57600080fd5b613114846130b0565b9250613122602085016130b0565b9150604084013590509250925092565b803561ffff811681146130c757600080fd5b60006020828403121561315657600080fd5b611e2982613132565b60006020828403121561317157600080fd5b611e29826130b0565b6020808252825182820181905260009190848201906040850190845b818110156131b257835183529284019291840191600101613196565b50909695505050505050565b6000806000604084860312156131d357600080fd5b833567ffffffffffffffff808211156131eb57600080fd5b818601915086601f8301126131ff57600080fd5b81358181111561320e57600080fd5b8760208260051b850101111561322357600080fd5b6020928301955093506132399186019050613132565b90509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561328157613281613242565b604052919050565b600067ffffffffffffffff8311156132a3576132a3613242565b6132b6601f8401601f1916602001613258565b90508281528383830111156132ca57600080fd5b828260208301376000602084830101529392505050565b6000602082840312156132f357600080fd5b813567ffffffffffffffff81111561330a57600080fd5b8201601f8101841361331b57600080fd5b6123c184823560208401613289565b6000806040838503121561333d57600080fd5b613346836130b0565b91506020830135801515811461335b57600080fd5b809150509250929050565b6000602080838503121561337957600080fd5b823567ffffffffffffffff8082111561339157600080fd5b818501915085601f8301126133a557600080fd5b8135818111156133b7576133b7613242565b8060051b91506133c8848301613258565b81815291830184019184810190888411156133e257600080fd5b938501935b83851015613400578435825293850193908501906133e7565b98975050505050505050565b6000806000806080858703121561342257600080fd5b61342b856130b0565b9350613439602086016130b0565b925060408501359150606085013567ffffffffffffffff81111561345c57600080fd5b8501601f8101871361346d57600080fd5b61347c87823560208401613289565b91505092959194509250565b6000806040838503121561349b57600080fd5b6134a4836130b0565b91506134b2602084016130b0565b90509250929050565b600181811c908216806134cf57607f821691505b602082108114156134f057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600061ffff83811690831681811015613527576135276134f6565b039392505050565b60008219821115613542576135426134f6565b500190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415613571576135716134f6565b5060010190565b600061ffff808316818516808303821115613595576135956134f6565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b6000826135c3576135c361359e565b500690565b600061ffff808316818114156135e0576135e06134f6565b6001019392505050565b6000845160206135fd8285838a0161302c565b8551918401916136108184848a0161302c565b8554920191600090600181811c908083168061362d57607f831692505b85831081141561364b57634e487b7160e01b85526022600452602485fd5b80801561365f57600181146136705761369d565b60ff1985168852838801955061369d565b60008b81526020902060005b858110156136955781548a82015290840190880161367c565b505083880195505b50939b9a5050505050505050505050565b6000828210156136c0576136c06134f6565b500390565b60008160001904831182151516156136df576136df6134f6565b500290565b6000826136f3576136f361359e565b500490565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261372a6080830184613058565b9695505050505050565b60006020828403121561374657600080fd5b8151611e2981612ff9565b600061ffff808416806137665761376661359e565b9216919091069291505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220cb1009bdae08c019d5aec7c6db0d373882b37499413fdd3cb96b5ad87a9ff2e564736f6c634300080900334552433732313a207472616e7366657220746f206e6f6e2045524337323152654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000000e436f756e63696c4f664b696e677a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003434f4b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d546378394e644d6e4a486b6d787646656857707338706f576d557462476e51655845396d3337674b754c78560000000000000000000000000000000000000000000000000000000000000000000000000000000000000e697066733a2f2f6e6f747965742f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d58746e385142694d7432587a4b7a67754a3242467a71395a37684773646a37464e434b4b44746639574a364d0000000000000000000000

Deployed Bytecode

0x6080604052600436106103345760003560e01c806370a08231116101ae578063b17bf6be116100eb578063da3ef23f1161008f578063f2c4ce1e1161006c578063f2c4ce1e146109a6578063f2fde38b146109c6578063f529fb0c146109e6578063f607cc4c14610a0657005b8063da3ef23f14610928578063e8a3d48514610948578063e985e9c51461095d57005b8063b88d4fde116100c8578063b88d4fde14610896578063c87b56dd146108b6578063cd7908ed146108d6578063d89135cd1461090757005b8063b17bf6be14610834578063b5aaa49414610854578063b80f55c91461087657005b80639196f76111610152578063964c33b51161012f578063964c33b5146107b5578063a22cb465146107e6578063a2309ff814610806578063a475b5dd1461081f57005b80639196f76114610760578063938e3d7b1461078057806395d89b41146107a057005b80637e1c0c091161018b5780637e1c0c09146106ec57806387734e19146107025780638da5cb5b1461072f5780638fa316081461074d57005b806370a0823114610697578063715018a6146106b75780637cb64759146106cc57005b806336e8942f1161027c57806351830227116102205780636352211e116101fd5780636352211e14610621578063666c80b9146106415780636c2e370b146106625780636c54eb331461068257005b806351830227146105be5780635c975abb146105df5780635dc96d161461060057005b80633ccfd60b116102595780633ccfd60b1461054757806342842e0e1461054f578063438b63001461056f578063469132ce1461059c57005b806336e8942f146104fc5780633966fa0f1461051c5780633b37d1d61461053257005b806318160ddd116102e35780632ab91bba116102c05780632ab91bba1461049b5780632eb4a7ab146104bc5780633360caa0146104d257806334918dfd146104e757005b806318160ddd14610431578063239c70ae1461045957806323b872dd1461047b57005b8063095ea7b311610311578063095ea7b3146103cc5780630c57ff69146103ec578063143b237f1461041057005b806301ffc9a71461033d57806306fdde0314610372578063081812fc1461039457005b3661033b57005b005b34801561034957600080fd5b5061035d61035836600461300f565b610a19565b60405190151581526020015b60405180910390f35b34801561037e57600080fd5b50610387610ab6565b6040516103699190613084565b3480156103a057600080fd5b506103b46103af366004613097565b610b48565b6040516001600160a01b039091168152602001610369565b3480156103d857600080fd5b5061033b6103e73660046130cc565b610be2565b3480156103f857600080fd5b5061040260085481565b604051908152602001610369565b34801561041c57600080fd5b5060065461035d90600160a81b900460ff1681565b34801561043d57600080fd5b50610446610d14565b60405161ffff9091168152602001610369565b34801561046557600080fd5b5060065461044690600160c81b900461ffff1681565b34801561048757600080fd5b5061033b6104963660046130f6565b610d37565b3480156104a757600080fd5b5060065461035d90600160b01b900460ff1681565b3480156104c857600080fd5b50610402600f5481565b3480156104de57600080fd5b5061033b610dbe565b3480156104f357600080fd5b5061033b610e36565b34801561050857600080fd5b5061033b610517366004613144565b610eba565b34801561052857600080fd5b5061040260075481565b34801561053e57600080fd5b5061033b611019565b61033b611091565b34801561055b57600080fd5b5061033b61056a3660046130f6565b611131565b34801561057b57600080fd5b5061058f61058a36600461315f565b61114c565b604051610369919061317a565b3480156105a857600080fd5b5060065461044690600160e81b900461ffff1681565b3480156105ca57600080fd5b5060065461035d90600160b81b900460ff1681565b3480156105eb57600080fd5b5060065461035d90600160a01b900460ff1681565b34801561060c57600080fd5b5060065461035d90600160c01b900460ff1681565b34801561062d57600080fd5b506103b461063c366004613097565b61123c565b34801561064d57600080fd5b506009546104469062010000900461ffff1681565b34801561066e57600080fd5b5061033b61067d366004613097565b6112c7565b34801561068e57600080fd5b5061033b611314565b3480156106a357600080fd5b506104026106b236600461315f565b61138c565b3480156106c357600080fd5b5061033b611426565b3480156106d857600080fd5b5061033b6106e7366004613097565b61147a565b3480156106f857600080fd5b50610446611e6181565b34801561070e57600080fd5b5061040261071d36600461315f565b600e6020526000908152604090205481565b34801561073b57600080fd5b506006546001600160a01b03166103b4565b61033b61075b3660046131be565b6114c7565b34801561076c57600080fd5b5061033b61077b366004613097565b6117d2565b34801561078c57600080fd5b5061033b61079b3660046132e1565b61181f565b3480156107ac57600080fd5b5061038761187a565b3480156107c157600080fd5b506104466107d036600461315f565b60106020526000908152604090205461ffff1681565b3480156107f257600080fd5b5061033b61080136600461332a565b611889565b34801561081257600080fd5b5060095461ffff16610446565b34801561082b57600080fd5b5061033b611894565b34801561084057600080fd5b5061033b61084f3660046132e1565b61190c565b34801561086057600080fd5b5060065461044690600160d81b900461ffff1681565b34801561088257600080fd5b5061033b610891366004613366565b611967565b3480156108a257600080fd5b5061033b6108b136600461340c565b611c13565b3480156108c257600080fd5b506103876108d1366004613097565b611ca1565b3480156108e257600080fd5b506104466108f136600461315f565b60116020526000908152604090205461ffff1681565b34801561091357600080fd5b50600954640100000000900461ffff16610446565b34801561093457600080fd5b5061033b6109433660046132e1565b611e30565b34801561095457600080fd5b50610387611e8b565b34801561096957600080fd5b5061035d610978366004613488565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109b257600080fd5b5061033b6109c13660046132e1565b611e9a565b3480156109d257600080fd5b5061033b6109e136600461315f565b611ef5565b3480156109f257600080fd5b5061033b610a01366004613144565b611fc2565b61033b610a14366004613144565b61202a565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a7c57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610ab057507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060008054610ac5906134bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610af1906134bb565b8015610b3e5780601f10610b1357610100808354040283529160200191610b3e565b820191906000526020600020905b815481529060010190602001808311610b2157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610bc65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610bed8261123c565b9050806001600160a01b0316836001600160a01b03161415610c775760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610bbd565b336001600160a01b0382161480610c935750610c938133610978565b610d055760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bbd565b610d0f8383612264565b505050565b600954600090610d329061ffff64010000000082048116911661350c565b905090565b610d4133826122d2565b610db35760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610bbd565b610d0f8383836123c9565b6006546001600160a01b03163314610e065760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b600680547fffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffff16600160b01b179055565b6006546001600160a01b03163314610e7e5760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116600160a01b9182900460ff1615909102179055565b6006546001600160a01b03163314610f025760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b60065461ffff821690600160a01b900460ff1615610f505760405162461bcd60e51b815260206004820152600b60248201526a14d85b19481c185d5cd95960aa1b6044820152606401610bbd565b611e6181610f6160095461ffff1690565b61ffff16610f6f919061352f565b1115610fae5760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b6044820152606401610bbd565b600081118015610fcb5750600654600160c81b900461ffff168111155b61100b5760405162461bcd60e51b815260206004820152601160248201527015dc9bdb99c81d1bdad95b8818dbdd5b9d607a1b6044820152606401610bbd565b6110153383612596565b5050565b6006546001600160a01b031633146110615760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b600680547fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff16600160c01b179055565b6006546001600160a01b031633146110d95760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b604051600090339047908381818185875af1925050503d806000811461111b576040519150601f19603f3d011682016040523d82523d6000602084013e611120565b606091505b505090508061112e57600080fd5b50565b610d0f83838360405180602001604052806000815250611c13565b606060006111598361138c565b905060008167ffffffffffffffff81111561117657611176613242565b60405190808252806020026020018201604052801561119f578160200160208202803683370190505b509050600060015b611e618111611232576000818152600260205260409020546001600160a01b0316151580156111ef57506111da8161123c565b6001600160a01b0316866001600160a01b0316145b15611220578083838151811061120757611207613547565b60209081029190910101528161121c8161355d565b9250505b8061122a8161355d565b9150506111a7565b5090949350505050565b6000818152600260205260408120546001600160a01b031680610ab05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610bbd565b6006546001600160a01b0316331461130f5760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b600855565b6006546001600160a01b0316331461135c5760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b600680547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16600160a81b179055565b60006001600160a01b03821661140a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610bbd565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461146e5760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b611478600061264f565b565b6006546001600160a01b031633146114c25760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b600f55565b60065461ffff821690600160a01b900460ff16156115155760405162461bcd60e51b815260206004820152600b60248201526a14d85b19481c185d5cd95960aa1b6044820152606401610bbd565b611e618161152660095461ffff1690565b61ffff16611534919061352f565b11156115735760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b6044820152606401610bbd565b6000811180156115905750600654600160c81b900461ffff168111155b6115d05760405162461bcd60e51b815260206004820152601160248201527015dc9bdb99c81d1bdad95b8818dbdd5b9d607a1b6044820152606401610bbd565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061164a85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f5491508490506126a1565b6116965760405162461bcd60e51b815260206004820152600f60248201527f4e6f74206f6e20746865206c69737400000000000000000000000000000000006044820152606401610bbd565b60085434906116a99061ffff86166126b7565b146116e55760405162461bcd60e51b815260206004820152600c60248201526b15dc9bdb99c8185b5bdd5b9d60a21b6044820152606401610bbd565b600654600160b01b900460ff161580156117085750600654600160a81b900460ff165b6117545760405162461bcd60e51b815260206004820152600e60248201527f50726573616c6520636c6f7365640000000000000000000000000000000000006044820152606401610bbd565b6006543360009081526010602052604090205461ffff600160d81b90920482169161178191869116613578565b61ffff1611156117c15760405162461bcd60e51b815260206004820152600b60248201526a08af0c6cacac8e640dac2f60ab1b6044820152606401610bbd565b6117cb3384612596565b5050505050565b6006546001600160a01b0316331461181a5760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b600755565b6006546001600160a01b031633146118675760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b805161101590600a906020840190612f60565b606060018054610ac5906134bb565b6110153383836126c3565b6006546001600160a01b031633146118dc5760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b600680547fffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffff16600160b81b179055565b6006546001600160a01b031633146119545760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b805161101590600c906020840190612f60565b600654600160c01b900460ff166119c05760405162461bcd60e51b815260206004820152600d60248201527f4275726e2064697361626c6564000000000000000000000000000000000000006044820152606401610bbd565b600581516119ce91906135b4565b15611a1b5760405162461bcd60e51b815260206004820152600e60248201527f4d756c7469706c6573206f6620350000000000000000000000000000000000006044820152606401610bbd565b60005b8151811015611ace57611a4a33838381518110611a3d57611a3d613547565b60200260200101516122d2565b611abc5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f766564000000000000000000000000000000006064820152608401610bbd565b80611ac68161355d565b915050611a1e565b50600954815161ffff62010000830481169264010000000090041661ffff16611af7919061352f565b1115611b455760405162461bcd60e51b815260206004820152601260248201527f45786365656473206275726e206c696d697400000000000000000000000000006044820152606401610bbd565b60005b815181101561101557611b73828281518110611b6657611b66613547565b6020026020010151612792565b60098054640100000000900461ffff16906004611b8f836135c8565b91906101000a81548161ffff021916908361ffff16021790555050600160116000611bb73390565b6001600160a01b03168152602081019190915260400160009081208054909190611be690849061ffff16613578565b92506101000a81548161ffff021916908361ffff1602179055508080611c0b9061355d565b915050611b48565b611c1d33836122d2565b611c8f5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610bbd565b611c9b8484848461282d565b50505050565b6000818152600260205260409020546060906001600160a01b0316611d2e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610bbd565b600654600160b81b900460ff16611dd157600b8054611d4c906134bb565b80601f0160208091040260200160405190810160405280929190818152602001828054611d78906134bb565b8015611dc55780601f10611d9a57610100808354040283529160200191611dc5565b820191906000526020600020905b815481529060010190602001808311611da857829003601f168201915b50505050509050919050565b6000611ddb6128ab565b90506000815111611dfb5760405180602001604052806000815250611e29565b80611e05846128ba565b600d604051602001611e19939291906135ea565b6040516020818303038152906040525b9392505050565b6006546001600160a01b03163314611e785760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b805161101590600d906020840190612f60565b6060600a8054610ac5906134bb565b6006546001600160a01b03163314611ee25760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b805161101590600b906020840190612f60565b6006546001600160a01b03163314611f3d5760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b6001600160a01b038116611fb95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610bbd565b61112e8161264f565b6006546001600160a01b0316331461200a5760405162461bcd60e51b815260206004820181905260248201526000805160206137738339815191526044820152606401610bbd565b6009805461ffff909216620100000263ffff000019909216919091179055565b60065461ffff821690600160a01b900460ff16156120785760405162461bcd60e51b815260206004820152600b60248201526a14d85b19481c185d5cd95960aa1b6044820152606401610bbd565b611e618161208960095461ffff1690565b61ffff16612097919061352f565b11156120d65760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b6044820152606401610bbd565b6000811180156120f35750600654600160c81b900461ffff168111155b6121335760405162461bcd60e51b815260206004820152601160248201527015dc9bdb99c81d1bdad95b8818dbdd5b9d607a1b6044820152606401610bbd565b60075434906121469061ffff85166126b7565b146121825760405162461bcd60e51b815260206004820152600c60248201526b15dc9bdb99c8185b5bdd5b9d60a21b6044820152606401610bbd565b600654600160b01b900460ff1680156121a55750600654600160a81b900460ff16155b6121f15760405162461bcd60e51b815260206004820152600b60248201527f4e6f7420737461727465640000000000000000000000000000000000000000006044820152606401610bbd565b6006543360009081526010602052604090205461ffff600160e81b90920482169161221e91859116613578565b61ffff16111561100b5760405162461bcd60e51b815260206004820152600b60248201526a08af0c6cacac8e640dac2f60ab1b6044820152606401610bbd565b3b151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906122998261123c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661234b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bbd565b60006123568361123c565b9050806001600160a01b0316846001600160a01b031614806123915750836001600160a01b031661238684610b48565b6001600160a01b0316145b806123c157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166123dc8261123c565b6001600160a01b0316146124585760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610bbd565b6001600160a01b0382166124d35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610bbd565b6124de600082612264565b6001600160a01b03831660009081526003602052604081208054600192906125079084906136ae565b90915550506001600160a01b038216600090815260036020526040812080546001929061253590849061352f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216600090815260106020526040812080548392906125c290849061ffff16613578565b92506101000a81548161ffff021916908361ffff16021790555060005b8161ffff16811015610d0f5761260d836126046125ff60095461ffff1690565b6129ec565b61ffff16612ae9565b6009805461ffff16906000612621836135c8565b91906101000a81548161ffff021916908361ffff1602179055505080806126479061355d565b9150506125df565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826126ae8584612b03565b14949350505050565b6000611e2982846136c5565b816001600160a01b0316836001600160a01b031614156127255760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bbd565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600061279d8261123c565b90506127aa600083612264565b6001600160a01b03811660009081526003602052604081208054600192906127d39084906136ae565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6128388484846123c9565b61284484848484612baf565b611c9b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bbd565b6060600c8054610ac5906134bb565b6060816128fa57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612924578061290e8161355d565b915061291d9050600a836136e4565b91506128fe565b60008167ffffffffffffffff81111561293f5761293f613242565b6040519080825280601f01601f191660200182016040528015612969576020820181803683370190505b5090505b84156123c15761297e6001836136ae565b915061298b600a866135b4565b61299690603061352f565b60f81b8183815181106129ab576129ab613547565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506129e5600a866136e4565b945061296d565b6000806129fb83611e6161350c565b90506000612a098285612d07565b61ffff8082166000908152601260205260409020549192501680612a2a5750805b60126000612a3960018661350c565b61ffff90811682526020820192909252604001600020541615612aa45760126000612a6560018661350c565b61ffff908116825260208083019390935260409182016000908120548683168252601290945291909120805461ffff1916929091169182179055612ad4565b612aaf60018461350c565b61ffff8381166000908152601260205260409020805461ffff19169183169190911790555b50612ae0816001613578565b95945050505050565b611015828260405180602001604052806000815250612da0565b600081815b8451811015612ba7576000858281518110612b2557612b25613547565b60200260200101519050808311612b67576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612b94565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612b9f8161355d565b915050612b08565b509392505050565b60006001600160a01b0384163b15612cfc57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612bf39033908990889088906004016136f8565b602060405180830381600087803b158015612c0d57600080fd5b505af1925050508015612c3d575060408051601f3d908101601f19168201909252612c3a91810190613734565b60015b612ce2573d808015612c6b576040519150601f19603f3d011682016040523d82523d6000602084013e612c70565b606091505b508051612cda5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bbd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506123c1565b506001949350505050565b60008082612d166001436136ae565b6040805160f09390931b7fffff000000000000000000000000000000000000000000000000000000000000166020808501919091529140602284015241606090811b6bffffffffffffffffffffffff1990811660428601524460568601523390911b1660768401528051808403606a018152608a9093019052815191012090506123c18482613751565b612daa8383612e1e565b612db76000848484612baf565b610d0f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bbd565b6001600160a01b038216612e745760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bbd565b6000818152600260205260409020546001600160a01b031615612ed95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bbd565b6001600160a01b0382166000908152600360205260408120805460019290612f0290849061352f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612f6c906134bb565b90600052602060002090601f016020900481019282612f8e5760008555612fd4565b82601f10612fa757805160ff1916838001178555612fd4565b82800160010185558215612fd4579182015b82811115612fd4578251825591602001919060010190612fb9565b50612fe0929150612fe4565b5090565b5b80821115612fe05760008155600101612fe5565b6001600160e01b03198116811461112e57600080fd5b60006020828403121561302157600080fd5b8135611e2981612ff9565b60005b8381101561304757818101518382015260200161302f565b83811115611c9b5750506000910152565b6000815180845261307081602086016020860161302c565b601f01601f19169290920160200192915050565b602081526000611e296020830184613058565b6000602082840312156130a957600080fd5b5035919050565b80356001600160a01b03811681146130c757600080fd5b919050565b600080604083850312156130df57600080fd5b6130e8836130b0565b946020939093013593505050565b60008060006060848603121561310b57600080fd5b613114846130b0565b9250613122602085016130b0565b9150604084013590509250925092565b803561ffff811681146130c757600080fd5b60006020828403121561315657600080fd5b611e2982613132565b60006020828403121561317157600080fd5b611e29826130b0565b6020808252825182820181905260009190848201906040850190845b818110156131b257835183529284019291840191600101613196565b50909695505050505050565b6000806000604084860312156131d357600080fd5b833567ffffffffffffffff808211156131eb57600080fd5b818601915086601f8301126131ff57600080fd5b81358181111561320e57600080fd5b8760208260051b850101111561322357600080fd5b6020928301955093506132399186019050613132565b90509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561328157613281613242565b604052919050565b600067ffffffffffffffff8311156132a3576132a3613242565b6132b6601f8401601f1916602001613258565b90508281528383830111156132ca57600080fd5b828260208301376000602084830101529392505050565b6000602082840312156132f357600080fd5b813567ffffffffffffffff81111561330a57600080fd5b8201601f8101841361331b57600080fd5b6123c184823560208401613289565b6000806040838503121561333d57600080fd5b613346836130b0565b91506020830135801515811461335b57600080fd5b809150509250929050565b6000602080838503121561337957600080fd5b823567ffffffffffffffff8082111561339157600080fd5b818501915085601f8301126133a557600080fd5b8135818111156133b7576133b7613242565b8060051b91506133c8848301613258565b81815291830184019184810190888411156133e257600080fd5b938501935b83851015613400578435825293850193908501906133e7565b98975050505050505050565b6000806000806080858703121561342257600080fd5b61342b856130b0565b9350613439602086016130b0565b925060408501359150606085013567ffffffffffffffff81111561345c57600080fd5b8501601f8101871361346d57600080fd5b61347c87823560208401613289565b91505092959194509250565b6000806040838503121561349b57600080fd5b6134a4836130b0565b91506134b2602084016130b0565b90509250929050565b600181811c908216806134cf57607f821691505b602082108114156134f057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600061ffff83811690831681811015613527576135276134f6565b039392505050565b60008219821115613542576135426134f6565b500190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415613571576135716134f6565b5060010190565b600061ffff808316818516808303821115613595576135956134f6565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b6000826135c3576135c361359e565b500690565b600061ffff808316818114156135e0576135e06134f6565b6001019392505050565b6000845160206135fd8285838a0161302c565b8551918401916136108184848a0161302c565b8554920191600090600181811c908083168061362d57607f831692505b85831081141561364b57634e487b7160e01b85526022600452602485fd5b80801561365f57600181146136705761369d565b60ff1985168852838801955061369d565b60008b81526020902060005b858110156136955781548a82015290840190880161367c565b505083880195505b50939b9a5050505050505050505050565b6000828210156136c0576136c06134f6565b500390565b60008160001904831182151516156136df576136df6134f6565b500290565b6000826136f3576136f361359e565b500490565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261372a6080830184613058565b9695505050505050565b60006020828403121561374657600080fd5b8151611e2981612ff9565b600061ffff808416806137665761376661359e565b9216919091069291505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220cb1009bdae08c019d5aec7c6db0d373882b37499413fdd3cb96b5ad87a9ff2e564736f6c63430008090033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000000e436f756e63696c4f664b696e677a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003434f4b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d546378394e644d6e4a486b6d787646656857707338706f576d557462476e51655845396d3337674b754c78560000000000000000000000000000000000000000000000000000000000000000000000000000000000000e697066733a2f2f6e6f747965742f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d58746e385142694d7432587a4b7a67754a3242467a71395a37684773646a37464e434b4b44746639574a364d0000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): CouncilOfKingz
Arg [1] : _symbol (string): COK
Arg [2] : _initContractURI (string): ipfs://QmTcx9NdMnJHkmxvFehWps8poWmUtbGnQeXE9m37gKuLxV
Arg [3] : _initBaseURI (string): ipfs://notyet/
Arg [4] : _initNotRevealedURI (string): ipfs://QmXtn8QBiMt2XzKzguJ2BFzq9Z7hGsdj7FNCKKDtf9WJ6M

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [6] : 436f756e63696c4f664b696e677a000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 434f4b0000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [10] : 697066733a2f2f516d546378394e644d6e4a486b6d787646656857707338706f
Arg [11] : 576d557462476e51655845396d3337674b754c78560000000000000000000000
Arg [12] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [13] : 697066733a2f2f6e6f747965742f000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [15] : 697066733a2f2f516d58746e385142694d7432587a4b7a67754a3242467a7139
Arg [16] : 5a37684773646a37464e434b4b44746639574a364d0000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.