ETH Price: $3,487.18 (+7.43%)
Gas: 5 Gwei

Token

HighCouncilOfKingz (HCOK)
 

Overview

Max Total Supply

500 HCOK

Holders

114

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 HCOK
0xb6e9f1391ef5314b7201f140e70404b62cf39436
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
HighCouncilOfKingz

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : HighCouncilOfKingz.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 './interfaces/IBurnableContract.sol';
import './interfaces/IMintPassContract.sol';

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

  // Contract addresses for interfaces
  address public burnableContract;
  address public mintPassContract;

  // Contract controls; defaults to false
  bool public revealed; //defaults to false
  bool public mintEnabled; //defaults to false

  // Mint variables
  uint16 public constant totalTokens = 500;

  // counter
  uint16 private _totalMintSupply = 0; // start with zero

  // metadata URIs
  string private _contractURI; // initially set at deploy
  string private _notRevealedURI; // initially set at deploy
  string private _currentBaseURI = 'ipfs://nope/'; // to be set before reveal
  string private _baseExtension = '.json';

  // Mapping Minter address to token count for mint controls
  mapping(address => uint16) public addressMints;
  // Mapping used mint pass ids
  mapping(uint256 => bool) public usedMintPasses;
  // Mapping burned burnable nfts
  mapping(uint256 => bool) public burnedTokens;
  // Mapping token matrix
  mapping(uint16 => uint16) private tokenMatrix;

  constructor(
    string memory _name,
    string memory _symbol,
    string memory _initContractURI,
    string memory _initNotRevealedURI,
    address _burnableContract,
    address _mintPassContract
  ) ERC721(_name, _symbol) {
    require(_burnableContract != address(0), 'Zero address');
    require(_mintPassContract != address(0), 'Zero address');
    _contractURI = _initContractURI;
    _notRevealedURI = _initNotRevealedURI;
    burnableContract = _burnableContract;
    mintPassContract = _mintPassContract;
  }

  modifier callerIsUser() {
    require(tx.origin == _msgSender(), 'Caller is another contract');
    _;
  }

  modifier onlyAllowMintEnabledAndValidCount(uint256 _mintAmount) {
    require(_totalMintSupply + _mintAmount <= totalTokens, 'Exceeds supply');
    require(mintEnabled, 'Mint disabled');
    _;
  }

  /**
   * @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), 'Nonexistent token');

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

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

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

  /**
   * @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 ownerTokenCount;
    delete k;
    return tokenIds;
  }

  /**
   * @dev mint
   */
  function mint(uint256 _mintPassTokenId, uint256[] memory _burnTokenIds)
    external
    callerIsUser
    onlyAllowMintEnabledAndValidCount(1)
  {
    // make sure we have exactly 5 COK
    require(_burnTokenIds.length == 5, '5 burn tokens');
    // ensure mint pass can only be used once here
    require(!usedMintPasses[_mintPassTokenId], 'Pass used here');
    usedMintPasses[_mintPassTokenId] = true;
    // ensure burnable tokens can only be used once here
    for (uint256 i = 0; i < _burnTokenIds.length; i++) {
      require(!burnedTokens[_burnTokenIds[i]], 'Token used here');
      burnedTokens[_burnTokenIds[i]] = true;
    }
    _totalMintSupply++;
    _safeMint(_msgSender(), _getTokenToBeMinted(_totalMintSupply - 1));
    // ensure owner of mint pass
    require(
      _msgSender() ==
        IMintPassContract(mintPassContract).ownerOf(_mintPassTokenId),
      'Not owner'
    );
    // ensure the mint pass is not Used or Expired
    require(
      IMintPassContract(mintPassContract).isValid(_mintPassTokenId),
      'Pass invalid'
    );
    IBurnableContract(burnableContract).burn(_burnTokenIds);
    // mark the pass as used
    IMintPassContract(mintPassContract).setAsUsed(_mintPassTokenId);
  }

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

  /**
   * Owner functions
   */

  /**
   * @dev Owner mint function
   */
  function ownerMint(uint16 _mintAmount)
    external
    onlyOwner
    callerIsUser
    onlyAllowMintEnabledAndValidCount(_mintAmount)
  {
    addressMints[_msgSender()] += _mintAmount;
    for (uint256 i = 0; i < _mintAmount; i++) {
      _totalMintSupply++;
      _safeMint(_msgSender(), _getTokenToBeMinted(_totalMintSupply - 1));
    }
  }

  /**
   * @dev Setter for the burnable NFT contract address
   */
  function setBurnableContractAddress(address _burnableContract)
    external
    onlyOwner
  {
    require(_burnableContract != address(0), 'Zero address');
    burnableContract = _burnableContract;
  }

  /**
   * @dev Setter for the Mint Pass contract address
   */
  function setMintPassContractAddress(address _mintPassContract)
    external
    onlyOwner
  {
    require(_mintPassContract != address(0), 'Zero address');
    mintPassContract = _mintPassContract;
  }

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

  /**
   * @dev Set minting enabled
   */
  function setMintEnable() external onlyOwner {
    require(
      IBurnableContract(burnableContract).burnEnabled(),
      'Burnable contract disabled'
    );
    mintEnabled = true;
  }

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

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

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

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

  function withdraw() external 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 14 : 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 14 : 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 14 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be 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);

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

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

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

File 5 of 14 : IBurnableContract.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

interface IBurnableContract {
    function burn(uint256[] memory _tokenIds) external;

    function burnEnabled() external view returns (bool);
}

File 6 of 14 : IMintPassContract.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

interface IMintPassContract {
    function ownerOf(uint256 tokenId) external view returns (address owner);

    function isValid(uint256 tokenId) external view returns (bool);

    function setAsUsed(uint256 tokenId) external;
}

File 7 of 14 : 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 8 of 14 : 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 9 of 14 : 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 10 of 14 : 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 11 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 14 : 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 13 of 14 : 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 14 of 14 : 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": 200
  },
  "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":"_initNotRevealedURI","type":"string"},{"internalType":"address","name":"_burnableContract","type":"address"},{"internalType":"address","name":"_mintPassContract","type":"address"}],"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":"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":[],"name":"burnableContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"burnedTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"_mintPassTokenId","type":"uint256"},{"internalType":"uint256[]","name":"_burnTokenIds","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPassContract","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"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":"address","name":"_burnableContract","type":"address"}],"name":"setBurnableContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setCurrentBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setMintEnable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mintPassContract","type":"address"}],"name":"setMintPassContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newNotRevealedURI","type":"string"}],"name":"setNotRevealedURI","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":"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":"uint256","name":"","type":"uint256"}],"name":"usedMintPasses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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"}]

6008805461ffff60b01b1916905560c0604052600c60808190526b697066733a2f2f6e6f70652f60a01b60a09081526200003d91600b919062000234565b5060408051808201909152600580825264173539b7b760d91b60209092019182526200006c91600c9162000234565b503480156200007a57600080fd5b5060405162003092380380620030928339810160408190526200009d91620003c4565b855186908690620000b690600090602085019062000234565b508051620000cc90600190602084019062000234565b505050620000e9620000e3620001de60201b60201c565b620001e2565b6001600160a01b038216620001345760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b60448201526064015b60405180910390fd5b6001600160a01b0381166200017b5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b60448201526064016200012b565b83516200019090600990602087019062000234565b508251620001a690600a90602086019062000234565b50600780546001600160a01b039384166001600160a01b0319918216179091556008805492909316911617905550620004de92505050565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200024290620004a1565b90600052602060002090601f016020900481019282620002665760008555620002b1565b82601f106200028157805160ff1916838001178555620002b1565b82800160010185558215620002b1579182015b82811115620002b157825182559160200191906001019062000294565b50620002bf929150620002c3565b5090565b5b80821115620002bf5760008155600101620002c4565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200030257600080fd5b81516001600160401b03808211156200031f576200031f620002da565b604051601f8301601f19908116603f011681019082821181831017156200034a576200034a620002da565b816040528381526020925086838588010111156200036757600080fd5b600091505b838210156200038b57858201830151818301840152908201906200036c565b838211156200039d5760008385830101525b9695505050505050565b80516001600160a01b0381168114620003bf57600080fd5b919050565b60008060008060008060c08789031215620003de57600080fd5b86516001600160401b0380821115620003f657600080fd5b620004048a838b01620002f0565b975060208901519150808211156200041b57600080fd5b620004298a838b01620002f0565b965060408901519150808211156200044057600080fd5b6200044e8a838b01620002f0565b955060608901519150808211156200046557600080fd5b506200047489828a01620002f0565b9350506200048560808801620003a7565b91506200049560a08801620003a7565b90509295509295509295565b600181811c90821680620004b657607f821691505b60208210811415620004d857634e487b7160e01b600052602260045260246000fd5b50919050565b612ba480620004ee6000396000f3fe6080604052600436106102115760003560e01c8063715018a611610117578063a97e73ce116100a5578063da3ef23f1161006c578063da3ef23f14610676578063e8a3d48514610696578063e985e9c5146106ab578063f2c4ce1e146106f4578063f2fde38b1461071457005b8063a97e73ce146105d5578063b17bf6be146105f5578063b88d4fde14610615578063c87b56dd14610635578063d12397301461065557005b8063938e3d7b116100e9578063938e3d7b1461053a57806395d89b411461055a578063964c33b51461056f578063a22cb465146105a0578063a475b5dd146105c057005b8063715018a6146104dc57806377c6ccae146104f15780637e1c0c09146105065780638da5cb5b1461051c57005b806336e8942f1161019f578063438b630011610166578063438b630014610410578063518302271461043d578063545e41221461045e5780636352211e1461048e57806370a08231146104ae57005b806336e8942f1461038857806338cc68ff146103a85780633a3543a4146103c85780633ccfd60b146103e857806342842e0e146103f057005b80630eb346a9116101e35780630eb346a9146102c957806318160ddd146102e95780631c348dd31461031857806323b872dd146103485780632d69044f1461036857005b806301ffc9a71461021a57806306fdde031461024f578063081812fc14610271578063095ea7b3146102a957005b3661021857005b005b34801561022657600080fd5b5061023a61023536600461238c565b610734565b60405190151581526020015b60405180910390f35b34801561025b57600080fd5b50610264610786565b6040516102469190612401565b34801561027d57600080fd5b5061029161028c366004612414565b610818565b6040516001600160a01b039091168152602001610246565b3480156102b557600080fd5b506102186102c4366004612442565b6108b2565b3480156102d557600080fd5b506102186102e436600461246e565b6109c8565b3480156102f557600080fd5b50600854600160b01b900461ffff165b60405161ffff9091168152602001610246565b34801561032457600080fd5b5061023a610333366004612414565b600f6020526000908152604090205460ff1681565b34801561035457600080fd5b5061021861036336600461248b565b610a59565b34801561037457600080fd5b50610218610383366004612513565b610a8a565b34801561039457600080fd5b506102186103a33660046125c5565b610fb0565b3480156103b457600080fd5b50600754610291906001600160a01b031681565b3480156103d457600080fd5b50600854610291906001600160a01b031681565b610218611171565b3480156103fc57600080fd5b5061021861040b36600461248b565b6111f3565b34801561041c57600080fd5b5061043061042b36600461246e565b61120e565b60405161024691906125e9565b34801561044957600080fd5b5060085461023a90600160a01b900460ff1681565b34801561046a57600080fd5b5061023a610479366004612414565b600e6020526000908152604090205460ff1681565b34801561049a57600080fd5b506102916104a9366004612414565b6112fe565b3480156104ba57600080fd5b506104ce6104c936600461246e565b611375565b604051908152602001610246565b3480156104e857600080fd5b506102186113fc565b3480156104fd57600080fd5b50610218611432565b34801561051257600080fd5b506103056101f481565b34801561052857600080fd5b506006546001600160a01b0316610291565b34801561054657600080fd5b50610218610555366004612685565b611543565b34801561056657600080fd5b50610264611584565b34801561057b57600080fd5b5061030561058a36600461246e565b600d6020526000908152604090205461ffff1681565b3480156105ac57600080fd5b506102186105bb3660046126dc565b611593565b3480156105cc57600080fd5b5061021861159e565b3480156105e157600080fd5b506102186105f036600461246e565b6115dd565b34801561060157600080fd5b50610218610610366004612685565b61166e565b34801561062157600080fd5b50610218610630366004612715565b6116ab565b34801561064157600080fd5b50610264610650366004612414565b6116e3565b34801561066157600080fd5b5060085461023a90600160a81b900460ff1681565b34801561068257600080fd5b50610218610691366004612685565b611840565b3480156106a257600080fd5b5061026461187d565b3480156106b757600080fd5b5061023a6106c6366004612795565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561070057600080fd5b5061021861070f366004612685565b61188c565b34801561072057600080fd5b5061021861072f36600461246e565b6118c9565b60006001600160e01b031982166380ac58cd60e01b148061076557506001600160e01b03198216635b5e139f60e01b145b8061078057506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610795906127c3565b80601f01602080910402602001604051908101604052809291908181526020018280546107c1906127c3565b801561080e5780601f106107e35761010080835404028352916020019161080e565b820191906000526020600020905b8154815290600101906020018083116107f157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108965760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108bd826112fe565b9050806001600160a01b0316836001600160a01b0316141561092b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161088d565b336001600160a01b0382161480610947575061094781336106c6565b6109b95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161088d565b6109c38383611961565b505050565b6006546001600160a01b031633146109f25760405162461bcd60e51b815260040161088d906127fe565b6001600160a01b038116610a375760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b604482015260640161088d565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b610a6333826119cf565b610a7f5760405162461bcd60e51b815260040161088d90612833565b6109c3838383611ac6565b323314610ad95760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e7472616374000000000000604482015260640161088d565b6008546001906101f490610af9908390600160b01b900461ffff1661289a565b1115610b385760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b604482015260640161088d565b600854600160a81b900460ff16610b815760405162461bcd60e51b815260206004820152600d60248201526c135a5b9d08191a5cd8589b1959609a1b604482015260640161088d565b8151600514610bc25760405162461bcd60e51b815260206004820152600d60248201526c35206275726e20746f6b656e7360981b604482015260640161088d565b6000838152600e602052604090205460ff1615610c125760405162461bcd60e51b815260206004820152600e60248201526d506173732075736564206865726560901b604482015260640161088d565b6000838152600e60205260408120805460ff191660011790555b8251811015610d0057600f6000848381518110610c4b57610c4b6128b2565b60209081029190910181015182528101919091526040016000205460ff1615610ca85760405162461bcd60e51b815260206004820152600f60248201526e546f6b656e2075736564206865726560881b604482015260640161088d565b6001600f6000858481518110610cc057610cc06128b2565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610cf8906128c8565b915050610c2c565b5060088054600160b01b900461ffff16906016610d1c836128e3565b91906101000a81548161ffff021916908361ffff16021790555050610d6d610d413390565b600854610d6490610d5f90600190600160b01b900461ffff16612905565b611c62565b61ffff16611d5f565b6008546040516331a9108f60e11b8152600481018590526001600160a01b0390911690636352211e9060240160206040518083038186803b158015610db157600080fd5b505afa158015610dc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de99190612928565b6001600160a01b0316336001600160a01b031614610e355760405162461bcd60e51b81526020600482015260096024820152682737ba1037bbb732b960b91b604482015260640161088d565b60085460405162f577a560e81b8152600481018590526001600160a01b039091169063f577a5009060240160206040518083038186803b158015610e7857600080fd5b505afa158015610e8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb09190612945565b610eeb5760405162461bcd60e51b815260206004820152600c60248201526b14185cdcc81a5b9d985b1a5960a21b604482015260640161088d565b60075460405163b80f55c960e01b81526001600160a01b039091169063b80f55c990610f1b9085906004016125e9565b600060405180830381600087803b158015610f3557600080fd5b505af1158015610f49573d6000803e3d6000fd5b505060085460405163403048e360e01b8152600481018790526001600160a01b03909116925063403048e39150602401600060405180830381600087803b158015610f9357600080fd5b505af1158015610fa7573d6000803e3d6000fd5b50505050505050565b6006546001600160a01b03163314610fda5760405162461bcd60e51b815260040161088d906127fe565b3233146110295760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e7472616374000000000000604482015260640161088d565b60085461ffff808316916101f49161104b918491600160b01b9091041661289a565b111561108a5760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b604482015260640161088d565b600854600160a81b900460ff166110d35760405162461bcd60e51b815260206004820152600d60248201526c135a5b9d08191a5cd8589b1959609a1b604482015260640161088d565b336000908152600d6020526040812080548492906110f690849061ffff16612962565b92506101000a81548161ffff021916908361ffff16021790555060005b8261ffff168110156109c35760088054600160b01b900461ffff1690601661113a836128e3565b91906101000a81548161ffff021916908361ffff1602179055505061115f610d413390565b80611169816128c8565b915050611113565b6006546001600160a01b0316331461119b5760405162461bcd60e51b815260040161088d906127fe565b604051600090339047908381818185875af1925050503d80600081146111dd576040519150601f19603f3d011682016040523d82523d6000602084013e6111e2565b606091505b50509050806111f057600080fd5b50565b6109c3838383604051806020016040528060008152506116ab565b6060600061121b83611375565b905060008167ffffffffffffffff811115611238576112386124cc565b604051908082528060200260200182016040528015611261578160200160208202803683370190505b509050600060015b6101f481116112f4576000818152600260205260409020546001600160a01b0316151580156112b1575061129c816112fe565b6001600160a01b0316866001600160a01b0316145b156112e257808383815181106112c9576112c96128b2565b6020908102919091010152816112de816128c8565b9250505b806112ec816128c8565b915050611269565b5090949350505050565b6000818152600260205260408120546001600160a01b0316806107805760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161088d565b60006001600160a01b0382166113e05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161088d565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146114265760405162461bcd60e51b815260040161088d906127fe565b6114306000611d79565b565b6006546001600160a01b0316331461145c5760405162461bcd60e51b815260040161088d906127fe565b600760009054906101000a90046001600160a01b03166001600160a01b0316635dc96d166040518163ffffffff1660e01b815260040160206040518083038186803b1580156114aa57600080fd5b505afa1580156114be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e29190612945565b61152e5760405162461bcd60e51b815260206004820152601a60248201527f4275726e61626c6520636f6e74726163742064697361626c6564000000000000604482015260640161088d565b6008805460ff60a81b1916600160a81b179055565b6006546001600160a01b0316331461156d5760405162461bcd60e51b815260040161088d906127fe565b80516115809060099060208401906122dd565b5050565b606060018054610795906127c3565b611580338383611dcb565b6006546001600160a01b031633146115c85760405162461bcd60e51b815260040161088d906127fe565b6008805460ff60a01b1916600160a01b179055565b6006546001600160a01b031633146116075760405162461bcd60e51b815260040161088d906127fe565b6001600160a01b03811661164c5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b604482015260640161088d565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146116985760405162461bcd60e51b815260040161088d906127fe565b805161158090600b9060208401906122dd565b6116b533836119cf565b6116d15760405162461bcd60e51b815260040161088d90612833565b6116dd84848484611e9a565b50505050565b6000818152600260205260409020546060906001600160a01b031661173e5760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b604482015260640161088d565b600854600160a01b900460ff166117e157600a805461175c906127c3565b80601f0160208091040260200160405190810160405280929190818152602001828054611788906127c3565b80156117d55780601f106117aa576101008083540402835291602001916117d5565b820191906000526020600020905b8154815290600101906020018083116117b857829003601f168201915b50505050509050919050565b60006117eb611ecd565b9050600081511161180b5760405180602001604052806000815250611839565b8061181584611edc565b600c60405160200161182993929190612988565b6040516020818303038152906040525b9392505050565b6006546001600160a01b0316331461186a5760405162461bcd60e51b815260040161088d906127fe565b805161158090600c9060208401906122dd565b606060098054610795906127c3565b6006546001600160a01b031633146118b65760405162461bcd60e51b815260040161088d906127fe565b805161158090600a9060208401906122dd565b6006546001600160a01b031633146118f35760405162461bcd60e51b815260040161088d906127fe565b6001600160a01b0381166119585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161088d565b6111f081611d79565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611996826112fe565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611a485760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161088d565b6000611a53836112fe565b9050806001600160a01b0316846001600160a01b03161480611a8e5750836001600160a01b0316611a8384610818565b6001600160a01b0316145b80611abe57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611ad9826112fe565b6001600160a01b031614611b3d5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161088d565b6001600160a01b038216611b9f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161088d565b611baa600082611961565b6001600160a01b0383166000908152600360205260408120805460019290611bd3908490612a4c565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c0190849061289a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080611c71836101f4612905565b90506000611c7f8285611fda565b61ffff8082166000908152601060205260409020549192501680611ca05750805b60106000611caf600186612905565b61ffff90811682526020820192909252604001600020541615611d1a5760106000611cdb600186612905565b61ffff908116825260208083019390935260409182016000908120548683168252601090945291909120805461ffff1916929091169182179055611d4a565b611d25600184612905565b61ffff8381166000908152601060205260409020805461ffff19169183169190911790555b50611d56816001612962565b95945050505050565b61158082826040518060200160405280600081525061205b565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611e2d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161088d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611ea5848484611ac6565b611eb18484848461208e565b6116dd5760405162461bcd60e51b815260040161088d90612a63565b6060600b8054610795906127c3565b606081611f005750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f2a5780611f14816128c8565b9150611f239050600a83612acb565b9150611f04565b60008167ffffffffffffffff811115611f4557611f456124cc565b6040519080825280601f01601f191660200182016040528015611f6f576020820181803683370190505b5090505b8415611abe57611f84600183612a4c565b9150611f91600a86612adf565b611f9c90603061289a565b60f81b818381518110611fb157611fb16128b2565b60200101906001600160f81b031916908160001a905350611fd3600a86612acb565b9450611f73565b60008082611fe9600143612a4c565b6040805160f09390931b6001600160f01b0319166020808501919091529140602284015241606090811b6bffffffffffffffffffffffff1990811660428601524460568601523390911b1660768401528051808403606a018152608a909301905281519101209050611abe8482612af3565b612065838361219b565b612072600084848461208e565b6109c35760405162461bcd60e51b815260040161088d90612a63565b60006001600160a01b0384163b1561219057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906120d2903390899088908890600401612b14565b602060405180830381600087803b1580156120ec57600080fd5b505af192505050801561211c575060408051601f3d908101601f1916820190925261211991810190612b51565b60015b612176573d80801561214a576040519150601f19603f3d011682016040523d82523d6000602084013e61214f565b606091505b50805161216e5760405162461bcd60e51b815260040161088d90612a63565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611abe565b506001949350505050565b6001600160a01b0382166121f15760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161088d565b6000818152600260205260409020546001600160a01b0316156122565760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161088d565b6001600160a01b038216600090815260036020526040812080546001929061227f90849061289a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546122e9906127c3565b90600052602060002090601f01602090048101928261230b5760008555612351565b82601f1061232457805160ff1916838001178555612351565b82800160010185558215612351579182015b82811115612351578251825591602001919060010190612336565b5061235d929150612361565b5090565b5b8082111561235d5760008155600101612362565b6001600160e01b0319811681146111f057600080fd5b60006020828403121561239e57600080fd5b813561183981612376565b60005b838110156123c45781810151838201526020016123ac565b838111156116dd5750506000910152565b600081518084526123ed8160208601602086016123a9565b601f01601f19169290920160200192915050565b60208152600061183960208301846123d5565b60006020828403121561242657600080fd5b5035919050565b6001600160a01b03811681146111f057600080fd5b6000806040838503121561245557600080fd5b82356124608161242d565b946020939093013593505050565b60006020828403121561248057600080fd5b81356118398161242d565b6000806000606084860312156124a057600080fd5b83356124ab8161242d565b925060208401356124bb8161242d565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561250b5761250b6124cc565b604052919050565b6000806040838503121561252657600080fd5b8235915060208084013567ffffffffffffffff8082111561254657600080fd5b818601915086601f83011261255a57600080fd5b81358181111561256c5761256c6124cc565b8060051b915061257d8483016124e2565b818152918301840191848101908984111561259757600080fd5b938501935b838510156125b55784358252938501939085019061259c565b8096505050505050509250929050565b6000602082840312156125d757600080fd5b813561ffff8116811461183957600080fd5b6020808252825182820181905260009190848201906040850190845b8181101561262157835183529284019291840191600101612605565b50909695505050505050565b600067ffffffffffffffff831115612647576126476124cc565b61265a601f8401601f19166020016124e2565b905082815283838301111561266e57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561269757600080fd5b813567ffffffffffffffff8111156126ae57600080fd5b8201601f810184136126bf57600080fd5b611abe8482356020840161262d565b80151581146111f057600080fd5b600080604083850312156126ef57600080fd5b82356126fa8161242d565b9150602083013561270a816126ce565b809150509250929050565b6000806000806080858703121561272b57600080fd5b84356127368161242d565b935060208501356127468161242d565b925060408501359150606085013567ffffffffffffffff81111561276957600080fd5b8501601f8101871361277a57600080fd5b6127898782356020840161262d565b91505092959194509250565b600080604083850312156127a857600080fd5b82356127b38161242d565b9150602083013561270a8161242d565b600181811c908216806127d757607f821691505b602082108114156127f857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082198211156128ad576128ad612884565b500190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156128dc576128dc612884565b5060010190565b600061ffff808316818114156128fb576128fb612884565b6001019392505050565b600061ffff8381169083168181101561292057612920612884565b039392505050565b60006020828403121561293a57600080fd5b81516118398161242d565b60006020828403121561295757600080fd5b8151611839816126ce565b600061ffff80831681851680830382111561297f5761297f612884565b01949350505050565b60008451602061299b8285838a016123a9565b8551918401916129ae8184848a016123a9565b8554920191600090600181811c90808316806129cb57607f831692505b8583108114156129e957634e487b7160e01b85526022600452602485fd5b8080156129fd5760018114612a0e57612a3b565b60ff19851688528388019550612a3b565b60008b81526020902060005b85811015612a335781548a820152908401908801612a1a565b505083880195505b50939b9a5050505050505050505050565b600082821015612a5e57612a5e612884565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082612ada57612ada612ab5565b500490565b600082612aee57612aee612ab5565b500690565b600061ffff80841680612b0857612b08612ab5565b92169190910692915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b47908301846123d5565b9695505050505050565b600060208284031215612b6357600080fd5b81516118398161237656fea2646970667358221220cf2576dbe51d2c9ce976733769ce7842e70e569bc1b1edfaa20b25ff05c67bd564736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000034a32df38fc511bf002aed9dec1b70e16870317f000000000000000000000000a877a0a06f141217ec15af907e9617d5ed246b6f000000000000000000000000000000000000000000000000000000000000001248696768436f756e63696c4f664b696e677a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000448434f4b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d514e766744766b4732644a3355336235513446463435594b61636b4d593159774e4a4b6b4768503576356b7300000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d587473544778784451657054626268364e705a424a53416f67714e783438425756697132454b41474c526a410000000000000000000000

Deployed Bytecode

0x6080604052600436106102115760003560e01c8063715018a611610117578063a97e73ce116100a5578063da3ef23f1161006c578063da3ef23f14610676578063e8a3d48514610696578063e985e9c5146106ab578063f2c4ce1e146106f4578063f2fde38b1461071457005b8063a97e73ce146105d5578063b17bf6be146105f5578063b88d4fde14610615578063c87b56dd14610635578063d12397301461065557005b8063938e3d7b116100e9578063938e3d7b1461053a57806395d89b411461055a578063964c33b51461056f578063a22cb465146105a0578063a475b5dd146105c057005b8063715018a6146104dc57806377c6ccae146104f15780637e1c0c09146105065780638da5cb5b1461051c57005b806336e8942f1161019f578063438b630011610166578063438b630014610410578063518302271461043d578063545e41221461045e5780636352211e1461048e57806370a08231146104ae57005b806336e8942f1461038857806338cc68ff146103a85780633a3543a4146103c85780633ccfd60b146103e857806342842e0e146103f057005b80630eb346a9116101e35780630eb346a9146102c957806318160ddd146102e95780631c348dd31461031857806323b872dd146103485780632d69044f1461036857005b806301ffc9a71461021a57806306fdde031461024f578063081812fc14610271578063095ea7b3146102a957005b3661021857005b005b34801561022657600080fd5b5061023a61023536600461238c565b610734565b60405190151581526020015b60405180910390f35b34801561025b57600080fd5b50610264610786565b6040516102469190612401565b34801561027d57600080fd5b5061029161028c366004612414565b610818565b6040516001600160a01b039091168152602001610246565b3480156102b557600080fd5b506102186102c4366004612442565b6108b2565b3480156102d557600080fd5b506102186102e436600461246e565b6109c8565b3480156102f557600080fd5b50600854600160b01b900461ffff165b60405161ffff9091168152602001610246565b34801561032457600080fd5b5061023a610333366004612414565b600f6020526000908152604090205460ff1681565b34801561035457600080fd5b5061021861036336600461248b565b610a59565b34801561037457600080fd5b50610218610383366004612513565b610a8a565b34801561039457600080fd5b506102186103a33660046125c5565b610fb0565b3480156103b457600080fd5b50600754610291906001600160a01b031681565b3480156103d457600080fd5b50600854610291906001600160a01b031681565b610218611171565b3480156103fc57600080fd5b5061021861040b36600461248b565b6111f3565b34801561041c57600080fd5b5061043061042b36600461246e565b61120e565b60405161024691906125e9565b34801561044957600080fd5b5060085461023a90600160a01b900460ff1681565b34801561046a57600080fd5b5061023a610479366004612414565b600e6020526000908152604090205460ff1681565b34801561049a57600080fd5b506102916104a9366004612414565b6112fe565b3480156104ba57600080fd5b506104ce6104c936600461246e565b611375565b604051908152602001610246565b3480156104e857600080fd5b506102186113fc565b3480156104fd57600080fd5b50610218611432565b34801561051257600080fd5b506103056101f481565b34801561052857600080fd5b506006546001600160a01b0316610291565b34801561054657600080fd5b50610218610555366004612685565b611543565b34801561056657600080fd5b50610264611584565b34801561057b57600080fd5b5061030561058a36600461246e565b600d6020526000908152604090205461ffff1681565b3480156105ac57600080fd5b506102186105bb3660046126dc565b611593565b3480156105cc57600080fd5b5061021861159e565b3480156105e157600080fd5b506102186105f036600461246e565b6115dd565b34801561060157600080fd5b50610218610610366004612685565b61166e565b34801561062157600080fd5b50610218610630366004612715565b6116ab565b34801561064157600080fd5b50610264610650366004612414565b6116e3565b34801561066157600080fd5b5060085461023a90600160a81b900460ff1681565b34801561068257600080fd5b50610218610691366004612685565b611840565b3480156106a257600080fd5b5061026461187d565b3480156106b757600080fd5b5061023a6106c6366004612795565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561070057600080fd5b5061021861070f366004612685565b61188c565b34801561072057600080fd5b5061021861072f36600461246e565b6118c9565b60006001600160e01b031982166380ac58cd60e01b148061076557506001600160e01b03198216635b5e139f60e01b145b8061078057506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610795906127c3565b80601f01602080910402602001604051908101604052809291908181526020018280546107c1906127c3565b801561080e5780601f106107e35761010080835404028352916020019161080e565b820191906000526020600020905b8154815290600101906020018083116107f157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108965760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108bd826112fe565b9050806001600160a01b0316836001600160a01b0316141561092b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161088d565b336001600160a01b0382161480610947575061094781336106c6565b6109b95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161088d565b6109c38383611961565b505050565b6006546001600160a01b031633146109f25760405162461bcd60e51b815260040161088d906127fe565b6001600160a01b038116610a375760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b604482015260640161088d565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b610a6333826119cf565b610a7f5760405162461bcd60e51b815260040161088d90612833565b6109c3838383611ac6565b323314610ad95760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e7472616374000000000000604482015260640161088d565b6008546001906101f490610af9908390600160b01b900461ffff1661289a565b1115610b385760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b604482015260640161088d565b600854600160a81b900460ff16610b815760405162461bcd60e51b815260206004820152600d60248201526c135a5b9d08191a5cd8589b1959609a1b604482015260640161088d565b8151600514610bc25760405162461bcd60e51b815260206004820152600d60248201526c35206275726e20746f6b656e7360981b604482015260640161088d565b6000838152600e602052604090205460ff1615610c125760405162461bcd60e51b815260206004820152600e60248201526d506173732075736564206865726560901b604482015260640161088d565b6000838152600e60205260408120805460ff191660011790555b8251811015610d0057600f6000848381518110610c4b57610c4b6128b2565b60209081029190910181015182528101919091526040016000205460ff1615610ca85760405162461bcd60e51b815260206004820152600f60248201526e546f6b656e2075736564206865726560881b604482015260640161088d565b6001600f6000858481518110610cc057610cc06128b2565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610cf8906128c8565b915050610c2c565b5060088054600160b01b900461ffff16906016610d1c836128e3565b91906101000a81548161ffff021916908361ffff16021790555050610d6d610d413390565b600854610d6490610d5f90600190600160b01b900461ffff16612905565b611c62565b61ffff16611d5f565b6008546040516331a9108f60e11b8152600481018590526001600160a01b0390911690636352211e9060240160206040518083038186803b158015610db157600080fd5b505afa158015610dc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de99190612928565b6001600160a01b0316336001600160a01b031614610e355760405162461bcd60e51b81526020600482015260096024820152682737ba1037bbb732b960b91b604482015260640161088d565b60085460405162f577a560e81b8152600481018590526001600160a01b039091169063f577a5009060240160206040518083038186803b158015610e7857600080fd5b505afa158015610e8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb09190612945565b610eeb5760405162461bcd60e51b815260206004820152600c60248201526b14185cdcc81a5b9d985b1a5960a21b604482015260640161088d565b60075460405163b80f55c960e01b81526001600160a01b039091169063b80f55c990610f1b9085906004016125e9565b600060405180830381600087803b158015610f3557600080fd5b505af1158015610f49573d6000803e3d6000fd5b505060085460405163403048e360e01b8152600481018790526001600160a01b03909116925063403048e39150602401600060405180830381600087803b158015610f9357600080fd5b505af1158015610fa7573d6000803e3d6000fd5b50505050505050565b6006546001600160a01b03163314610fda5760405162461bcd60e51b815260040161088d906127fe565b3233146110295760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e7472616374000000000000604482015260640161088d565b60085461ffff808316916101f49161104b918491600160b01b9091041661289a565b111561108a5760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b604482015260640161088d565b600854600160a81b900460ff166110d35760405162461bcd60e51b815260206004820152600d60248201526c135a5b9d08191a5cd8589b1959609a1b604482015260640161088d565b336000908152600d6020526040812080548492906110f690849061ffff16612962565b92506101000a81548161ffff021916908361ffff16021790555060005b8261ffff168110156109c35760088054600160b01b900461ffff1690601661113a836128e3565b91906101000a81548161ffff021916908361ffff1602179055505061115f610d413390565b80611169816128c8565b915050611113565b6006546001600160a01b0316331461119b5760405162461bcd60e51b815260040161088d906127fe565b604051600090339047908381818185875af1925050503d80600081146111dd576040519150601f19603f3d011682016040523d82523d6000602084013e6111e2565b606091505b50509050806111f057600080fd5b50565b6109c3838383604051806020016040528060008152506116ab565b6060600061121b83611375565b905060008167ffffffffffffffff811115611238576112386124cc565b604051908082528060200260200182016040528015611261578160200160208202803683370190505b509050600060015b6101f481116112f4576000818152600260205260409020546001600160a01b0316151580156112b1575061129c816112fe565b6001600160a01b0316866001600160a01b0316145b156112e257808383815181106112c9576112c96128b2565b6020908102919091010152816112de816128c8565b9250505b806112ec816128c8565b915050611269565b5090949350505050565b6000818152600260205260408120546001600160a01b0316806107805760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161088d565b60006001600160a01b0382166113e05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161088d565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146114265760405162461bcd60e51b815260040161088d906127fe565b6114306000611d79565b565b6006546001600160a01b0316331461145c5760405162461bcd60e51b815260040161088d906127fe565b600760009054906101000a90046001600160a01b03166001600160a01b0316635dc96d166040518163ffffffff1660e01b815260040160206040518083038186803b1580156114aa57600080fd5b505afa1580156114be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e29190612945565b61152e5760405162461bcd60e51b815260206004820152601a60248201527f4275726e61626c6520636f6e74726163742064697361626c6564000000000000604482015260640161088d565b6008805460ff60a81b1916600160a81b179055565b6006546001600160a01b0316331461156d5760405162461bcd60e51b815260040161088d906127fe565b80516115809060099060208401906122dd565b5050565b606060018054610795906127c3565b611580338383611dcb565b6006546001600160a01b031633146115c85760405162461bcd60e51b815260040161088d906127fe565b6008805460ff60a01b1916600160a01b179055565b6006546001600160a01b031633146116075760405162461bcd60e51b815260040161088d906127fe565b6001600160a01b03811661164c5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b604482015260640161088d565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146116985760405162461bcd60e51b815260040161088d906127fe565b805161158090600b9060208401906122dd565b6116b533836119cf565b6116d15760405162461bcd60e51b815260040161088d90612833565b6116dd84848484611e9a565b50505050565b6000818152600260205260409020546060906001600160a01b031661173e5760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b604482015260640161088d565b600854600160a01b900460ff166117e157600a805461175c906127c3565b80601f0160208091040260200160405190810160405280929190818152602001828054611788906127c3565b80156117d55780601f106117aa576101008083540402835291602001916117d5565b820191906000526020600020905b8154815290600101906020018083116117b857829003601f168201915b50505050509050919050565b60006117eb611ecd565b9050600081511161180b5760405180602001604052806000815250611839565b8061181584611edc565b600c60405160200161182993929190612988565b6040516020818303038152906040525b9392505050565b6006546001600160a01b0316331461186a5760405162461bcd60e51b815260040161088d906127fe565b805161158090600c9060208401906122dd565b606060098054610795906127c3565b6006546001600160a01b031633146118b65760405162461bcd60e51b815260040161088d906127fe565b805161158090600a9060208401906122dd565b6006546001600160a01b031633146118f35760405162461bcd60e51b815260040161088d906127fe565b6001600160a01b0381166119585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161088d565b6111f081611d79565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611996826112fe565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611a485760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161088d565b6000611a53836112fe565b9050806001600160a01b0316846001600160a01b03161480611a8e5750836001600160a01b0316611a8384610818565b6001600160a01b0316145b80611abe57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611ad9826112fe565b6001600160a01b031614611b3d5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161088d565b6001600160a01b038216611b9f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161088d565b611baa600082611961565b6001600160a01b0383166000908152600360205260408120805460019290611bd3908490612a4c565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c0190849061289a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080611c71836101f4612905565b90506000611c7f8285611fda565b61ffff8082166000908152601060205260409020549192501680611ca05750805b60106000611caf600186612905565b61ffff90811682526020820192909252604001600020541615611d1a5760106000611cdb600186612905565b61ffff908116825260208083019390935260409182016000908120548683168252601090945291909120805461ffff1916929091169182179055611d4a565b611d25600184612905565b61ffff8381166000908152601060205260409020805461ffff19169183169190911790555b50611d56816001612962565b95945050505050565b61158082826040518060200160405280600081525061205b565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611e2d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161088d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611ea5848484611ac6565b611eb18484848461208e565b6116dd5760405162461bcd60e51b815260040161088d90612a63565b6060600b8054610795906127c3565b606081611f005750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f2a5780611f14816128c8565b9150611f239050600a83612acb565b9150611f04565b60008167ffffffffffffffff811115611f4557611f456124cc565b6040519080825280601f01601f191660200182016040528015611f6f576020820181803683370190505b5090505b8415611abe57611f84600183612a4c565b9150611f91600a86612adf565b611f9c90603061289a565b60f81b818381518110611fb157611fb16128b2565b60200101906001600160f81b031916908160001a905350611fd3600a86612acb565b9450611f73565b60008082611fe9600143612a4c565b6040805160f09390931b6001600160f01b0319166020808501919091529140602284015241606090811b6bffffffffffffffffffffffff1990811660428601524460568601523390911b1660768401528051808403606a018152608a909301905281519101209050611abe8482612af3565b612065838361219b565b612072600084848461208e565b6109c35760405162461bcd60e51b815260040161088d90612a63565b60006001600160a01b0384163b1561219057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906120d2903390899088908890600401612b14565b602060405180830381600087803b1580156120ec57600080fd5b505af192505050801561211c575060408051601f3d908101601f1916820190925261211991810190612b51565b60015b612176573d80801561214a576040519150601f19603f3d011682016040523d82523d6000602084013e61214f565b606091505b50805161216e5760405162461bcd60e51b815260040161088d90612a63565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611abe565b506001949350505050565b6001600160a01b0382166121f15760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161088d565b6000818152600260205260409020546001600160a01b0316156122565760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161088d565b6001600160a01b038216600090815260036020526040812080546001929061227f90849061289a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546122e9906127c3565b90600052602060002090601f01602090048101928261230b5760008555612351565b82601f1061232457805160ff1916838001178555612351565b82800160010185558215612351579182015b82811115612351578251825591602001919060010190612336565b5061235d929150612361565b5090565b5b8082111561235d5760008155600101612362565b6001600160e01b0319811681146111f057600080fd5b60006020828403121561239e57600080fd5b813561183981612376565b60005b838110156123c45781810151838201526020016123ac565b838111156116dd5750506000910152565b600081518084526123ed8160208601602086016123a9565b601f01601f19169290920160200192915050565b60208152600061183960208301846123d5565b60006020828403121561242657600080fd5b5035919050565b6001600160a01b03811681146111f057600080fd5b6000806040838503121561245557600080fd5b82356124608161242d565b946020939093013593505050565b60006020828403121561248057600080fd5b81356118398161242d565b6000806000606084860312156124a057600080fd5b83356124ab8161242d565b925060208401356124bb8161242d565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561250b5761250b6124cc565b604052919050565b6000806040838503121561252657600080fd5b8235915060208084013567ffffffffffffffff8082111561254657600080fd5b818601915086601f83011261255a57600080fd5b81358181111561256c5761256c6124cc565b8060051b915061257d8483016124e2565b818152918301840191848101908984111561259757600080fd5b938501935b838510156125b55784358252938501939085019061259c565b8096505050505050509250929050565b6000602082840312156125d757600080fd5b813561ffff8116811461183957600080fd5b6020808252825182820181905260009190848201906040850190845b8181101561262157835183529284019291840191600101612605565b50909695505050505050565b600067ffffffffffffffff831115612647576126476124cc565b61265a601f8401601f19166020016124e2565b905082815283838301111561266e57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561269757600080fd5b813567ffffffffffffffff8111156126ae57600080fd5b8201601f810184136126bf57600080fd5b611abe8482356020840161262d565b80151581146111f057600080fd5b600080604083850312156126ef57600080fd5b82356126fa8161242d565b9150602083013561270a816126ce565b809150509250929050565b6000806000806080858703121561272b57600080fd5b84356127368161242d565b935060208501356127468161242d565b925060408501359150606085013567ffffffffffffffff81111561276957600080fd5b8501601f8101871361277a57600080fd5b6127898782356020840161262d565b91505092959194509250565b600080604083850312156127a857600080fd5b82356127b38161242d565b9150602083013561270a8161242d565b600181811c908216806127d757607f821691505b602082108114156127f857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082198211156128ad576128ad612884565b500190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156128dc576128dc612884565b5060010190565b600061ffff808316818114156128fb576128fb612884565b6001019392505050565b600061ffff8381169083168181101561292057612920612884565b039392505050565b60006020828403121561293a57600080fd5b81516118398161242d565b60006020828403121561295757600080fd5b8151611839816126ce565b600061ffff80831681851680830382111561297f5761297f612884565b01949350505050565b60008451602061299b8285838a016123a9565b8551918401916129ae8184848a016123a9565b8554920191600090600181811c90808316806129cb57607f831692505b8583108114156129e957634e487b7160e01b85526022600452602485fd5b8080156129fd5760018114612a0e57612a3b565b60ff19851688528388019550612a3b565b60008b81526020902060005b85811015612a335781548a820152908401908801612a1a565b505083880195505b50939b9a5050505050505050505050565b600082821015612a5e57612a5e612884565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082612ada57612ada612ab5565b500490565b600082612aee57612aee612ab5565b500690565b600061ffff80841680612b0857612b08612ab5565b92169190910692915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b47908301846123d5565b9695505050505050565b600060208284031215612b6357600080fd5b81516118398161237656fea2646970667358221220cf2576dbe51d2c9ce976733769ce7842e70e569bc1b1edfaa20b25ff05c67bd564736f6c63430008090033

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

00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000034a32df38fc511bf002aed9dec1b70e16870317f000000000000000000000000a877a0a06f141217ec15af907e9617d5ed246b6f000000000000000000000000000000000000000000000000000000000000001248696768436f756e63696c4f664b696e677a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000448434f4b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d514e766744766b4732644a3355336235513446463435594b61636b4d593159774e4a4b6b4768503576356b7300000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d587473544778784451657054626268364e705a424a53416f67714e783438425756697132454b41474c526a410000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): HighCouncilOfKingz
Arg [1] : _symbol (string): HCOK
Arg [2] : _initContractURI (string): ipfs://QmQNvgDvkG2dJ3U3b5Q4FF45YKackMY1YwNJKkGhP5v5ks
Arg [3] : _initNotRevealedURI (string): ipfs://QmXtsTGxxDQepTbbh6NpZBJSAogqNx48BWViq2EKAGLRjA
Arg [4] : _burnableContract (address): 0x34A32Df38FC511bf002Aed9dEC1B70E16870317f
Arg [5] : _mintPassContract (address): 0xA877A0A06F141217ec15aF907E9617d5eD246B6f

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [4] : 00000000000000000000000034a32df38fc511bf002aed9dec1b70e16870317f
Arg [5] : 000000000000000000000000a877a0a06f141217ec15af907e9617d5ed246b6f
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [7] : 48696768436f756e63696c4f664b696e677a0000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [9] : 48434f4b00000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [11] : 697066733a2f2f516d514e766744766b4732644a335533623551344646343559
Arg [12] : 4b61636b4d593159774e4a4b6b4768503576356b730000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [14] : 697066733a2f2f516d587473544778784451657054626268364e705a424a5341
Arg [15] : 6f67714e783438425756697132454b41474c526a410000000000000000000000


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.