ETH Price: $3,158.34 (+2.92%)

Token

Kingdum by Zack Seckler (KINGDUM)
 

Overview

Max Total Supply

3,333 KINGDUM

Holders

1,308

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 KINGDUM
0x738eb8664a20823e3718b64a0ae3d5d5f157db95
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:
Kingdum

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 23 : Kingdum.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "./ERC721Tradable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract Kingdum is ERC721Tradable {
    bytes32 public merkleRoot;
    bool public salePublicIsActive;
    bool public saleWhitelistIsActive;
    uint256 public maxByMint;
    uint256 public maxSupply;
    uint256 public maxPublicSupply;
    uint256 public maxReservedSupply;
    uint256 public fixedPrice;
    address public daoAddress;
    address public devAddress;
    string internal baseTokenURI;
    mapping(address => bool) internal whitelistClaimed;
    using Counters for Counters.Counter;
    Counters.Counter private _totalPublicSupply;
    Counters.Counter private _totalReservedSupply;
    
    constructor(
        string memory _name,
        string memory _symbol,
        address _proxyRegistryAddress
    ) ERC721Tradable(_name, _symbol, _proxyRegistryAddress) {
        maxByMint = 10;
        maxSupply = 3333;
        maxReservedSupply = 333;  
        maxPublicSupply = maxSupply - maxReservedSupply;
        fixedPrice = 0.033 ether;
        daoAddress = 0xd85e4B5B1b8f38a7d1794DDAe7eDeF2f9896FF18;
        devAddress = 0xF5DFaab9718195d7F829571966681FF24de65E53;
        baseTokenURI = "https://mint.kingdum.xyz/api/meta/1/";
    }

    function contractURI() public pure returns (string memory) {
        return "https://mint.kingdum.xyz/api/contract/1";
    }

    function _mintN(uint numberOfTokens) private {
        require(numberOfTokens <= maxByMint, "Max mint exceeded");
        require(_totalPublicSupply.current() + numberOfTokens <= maxPublicSupply, "Max supply reached");
        for(uint i = 0; i < numberOfTokens; i++) {
            _totalPublicSupply.increment();
            _safeMint(msg.sender, this.totalSupply());
        }
    }

    function mintPublic(uint numberOfTokens) external payable {
        require(salePublicIsActive, "Sale not active");
        require(fixedPrice * numberOfTokens <= msg.value, "Eth val incorrect");
        _mintN(numberOfTokens);
    }

    function mintWhitelist(uint numberOfTokens, bytes32[] calldata _merkleProof) external payable {
        require(saleWhitelistIsActive, "Whitelist sale not active");
        require(!whitelistClaimed[msg.sender], "Address has already claimed");
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "Must be whitelisted");
        require(fixedPrice * numberOfTokens <= msg.value, "Eth val incorrect");
        whitelistClaimed[msg.sender] = true;
        _mintN(numberOfTokens);
    }

    function mintReserved(address _to, uint numberOfTokens) external onlyOwner {
        require(_totalReservedSupply.current() + numberOfTokens <= maxReservedSupply, "Max supply reached");
        for(uint i = 0; i < numberOfTokens; i++) {
            _totalReservedSupply.increment();
            _safeMint(_to, this.totalSupply());
        }
    }

    function tokenURI(uint256 _tokenId) override public view returns (string memory) {
        return string(abi.encodePacked(baseTokenURI, Strings.toString(_tokenId)));
    }

    function totalSupply() public view returns (uint256) {
        return _totalPublicSupply.current() + _totalReservedSupply.current();
    }

    function totalPublicSupply() public view returns (uint256) {
        return _totalPublicSupply.current();
    }

    function totalReservedSupply() public view returns (uint256) {
        return _totalReservedSupply.current();
    }

    function flipSalePublicStatus() external onlyOwner {
        salePublicIsActive = !salePublicIsActive;
    }

    function flipSaleWhitelistStatus() external onlyOwner {
        saleWhitelistIsActive = !saleWhitelistIsActive;
    }

    function setAddress(address _daoAddress, address _devAddress) external onlyOwner {
        daoAddress = _daoAddress;
        devAddress = _devAddress;
    }

    function setBaseTokenURI(string memory _baseTokenURI) external onlyOwner {
        baseTokenURI = _baseTokenURI;
    }

    function setAuction(uint256 _fixedPrice, uint256 _maxByMint, uint256 _maxSupply, uint256 _maxReservedSupply) external onlyOwner {
        fixedPrice = _fixedPrice;
        maxByMint = _maxByMint;
        maxSupply = _maxSupply;
        maxReservedSupply = _maxReservedSupply;  
        maxPublicSupply = maxSupply - maxReservedSupply;
    }

    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0);
        _withdraw(devAddress, balance * 10 / 100);
        _withdraw(daoAddress, address(this).balance);
    }

    function _withdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "Tx failed");
    }

    function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { 
        merkleRoot = _merkleRoot;
    }

    function isWhitelistClaimed(address _address) public view returns (bool) {
        return whitelistClaimed[_address];
    }

}

File 2 of 23 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}

File 3 of 23 : SafeMathUpgradeable.sol
// SPDX-License-Identifier: MIT

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 no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMathUpgradeable {
    /**
     * @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 4 of 23 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 23 : ERC721.sol
// SPDX-License-Identifier: MIT

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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 6 of 23 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 7 of 23 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 23 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 9 of 23 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 23 : Context.sol
// SPDX-License-Identifier: MIT

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 11 of 23 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 12 of 23 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

File 13 of 23 : ERC165.sol
// SPDX-License-Identifier: MIT

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 23 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 15 of 23 : Strings.sol
// SPDX-License-Identifier: MIT

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 16 of 23 : ContentMixin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

abstract contract ContextMixin {
    function msgSender()
        internal
        view
        returns (address payable sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

File 17 of 23 : EIP712Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string constant public ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
        )
    );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contracts that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name
    )
        internal
        initializer
    {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

File 18 of 23 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import { SafeMathUpgradeable as SafeMath } from "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;
    bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
        bytes(
            "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
        )
    );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

File 19 of 23 : ERC721Tradable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./common/meta-transactions/ContentMixin.sol";
import "./common/meta-transactions/NativeMetaTransaction.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

/**
 * @title ERC721Tradable
 */
abstract contract ERC721Tradable is ERC721, ContextMixin, NativeMetaTransaction, Ownable, DefaultOperatorFilterer {
    address public proxyRegistryAddress;

    constructor(
        string memory _name,
        string memory _symbol,
        address _proxyRegistryAddress
    ) ERC721(_name, _symbol) {
        proxyRegistryAddress = _proxyRegistryAddress;
        _initializeEIP712(_name);
    }

    /**
     * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator)
        override
        public
        view
        returns (bool)
    {
        // Whitelist OpenSea proxy contract for easy trading.
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }
        return super.isApprovedForAll(owner, operator);
    }

    /**
     * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
     */
    function _msgSender()
        internal
        override
        view
        returns (address sender)
    {
        return ContextMixin.msgSender();
    }

    /**
     * Allow the proxy address to be modified by Owner
     */
    function setProxyRegistryAddress(address _proxyRegistryAddress) external onlyOwner {
        proxyRegistryAddress = _proxyRegistryAddress;
    }

    /**
     * Override ERC721 transfer and approval methods to use operator-filter-registry modifiers
     * https://github.com/ProjectOpenSea/operator-filter-registry
    */
    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public
        override
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, data);
    }

}

File 20 of 23 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

File 21 of 23 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

File 22 of 23 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

File 23 of 23 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"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":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","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":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"daoAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"fixedPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSalePublicStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleWhitelistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isWhitelistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxByMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxReservedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","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":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":[],"name":"salePublicIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleWhitelistIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_daoAddress","type":"address"},{"internalType":"address","name":"_devAddress","type":"address"}],"name":"setAddress","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":"uint256","name":"_fixedPrice","type":"uint256"},{"internalType":"uint256","name":"_maxByMint","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxReservedSupply","type":"uint256"}],"name":"setAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setProxyRegistryAddress","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":"totalPublicSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReservedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162003bba38038062003bba833981016040819052620000349162000662565b828282733cc6cdda760b79bafa08df41ecfa224f810dceb660018484816000908051906020019062000068929190620004ef565b5080516200007e906001906020840190620004ef565b5050506200009b62000095620002ba60201b60201c565b620002d6565b6daaeb6d7670e522a718067333cd4e3b15620001e05780156200012e57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200010f57600080fd5b505af115801562000124573d6000803e3d6000fd5b50505050620001e0565b6001600160a01b038216156200017f5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000f4565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001c657600080fd5b505af1158015620001db573d6000803e3d6000fd5b505050505b5050600a80546001600160a01b0319166001600160a01b038316179055620002088362000328565b5050600a600d5550610d05600e81905561014d60108190556200022b91620006ef565b600f5566753d533d968000601155601280546001600160a01b031990811673d85e4b5b1b8f38a7d1794ddae7edef2f9896ff18179091556013805490911673f5dfaab9718195d7f829571966681ff24de65e531790556040805160608101909152602480825262003b9660208301398051620002b091601491602090910190620004ef565b5050505062000751565b6000620002d1620003ef60201b620019c41760201c565b905090565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600654610100900460ff168062000342575060065460ff16155b620003aa5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600654610100900460ff16158015620003cd576006805461ffff19166101011790555b620003d8826200044d565b8015620003eb576006805461ff00191690555b5050565b60003033036200044757600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506200044a9050565b50335b90565b6040518060800160405280604f815260200162003b47604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600755565b828054620004fd9062000715565b90600052602060002090601f0160209004810192826200052157600085556200056c565b82601f106200053c57805160ff19168380011785556200056c565b828001600101855582156200056c579182015b828111156200056c5782518255916020019190600101906200054f565b506200057a9291506200057e565b5090565b5b808211156200057a57600081556001016200057f565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620005bd57600080fd5b81516001600160401b0380821115620005da57620005da62000595565b604051601f8301601f19908116603f0116810190828211818310171562000605576200060562000595565b816040528381526020925086838588010111156200062257600080fd5b600091505b8382101562000646578582018301518183018401529082019062000627565b83821115620006585760008385830101525b9695505050505050565b6000806000606084860312156200067857600080fd5b83516001600160401b03808211156200069057600080fd5b6200069e87838801620005ab565b94506020860151915080821115620006b557600080fd5b50620006c486828701620005ab565b604086015190935090506001600160a01b0381168114620006e457600080fd5b809150509250925092565b6000828210156200071057634e487b7160e01b600052601160045260246000fd5b500390565b600181811c908216806200072a57607f821691505b6020821081036200074b57634e487b7160e01b600052602260045260246000fd5b50919050565b6133e680620007616000396000f3fe60806040526004361061031e5760003560e01c806362e61a63116101a5578063b6c65d38116100ec578063d5abeb0111610095578063e8a3d4851161006f578063e8a3d4851461088d578063e985e9c5146108a2578063efd0cbf9146108c2578063f2fde38b146108d557600080fd5b8063d5abeb011461084d578063e601971614610863578063e6a5931e1461087857600080fd5b8063c87b56dd116100c6578063c87b56dd146107ed578063cd7c03261461080d578063d26ea6c01461082d57600080fd5b8063b6c65d381461079d578063b88d4fde146107b7578063c1fad42c146107d757600080fd5b80637de55fe11161014e5780638da5cb5b116101285780638da5cb5b1461074a57806395d89b4114610768578063a22cb4651461077d57600080fd5b80637de55fe1146106d25780638451fb72146106f25780638521b8e31461071157600080fd5b806370a082311161017f57806370a082311461067d578063715018a61461069d5780637cb64759146106b257600080fd5b806362e61a63146106285780636352211e14610648578063674d13c81461066857600080fd5b806323b872dd116102695780633408e470116102125780633ccfd60b116101ec5780633ccfd60b146105d157806341f43434146105e657806342842e0e1461060857600080fd5b80633408e4701461057e5780633ad10ef6146105915780633b58524d146105b157600080fd5b80632eb4a7ab116102435780632eb4a7ab146105335780632f58edfe1461054957806330176e131461055e57600080fd5b806323b872dd146104c757806326a74d8e146104e75780632d0335ab146104fd57600080fd5b80630f7e5970116102cb5780631efba6c2116102a55780631efba6c21461047c57806320379ee5146104925780632131c68c146104a757600080fd5b80630f7e5970146103fa578063138a4e011461044357806318160ddd1461046757600080fd5b8063081812fc116102fc578063081812fc1461038f578063095ea7b3146103c75780630c53c51c146103e757600080fd5b806301ffc9a714610323578063061431a81461035857806306fdde031461036d575b600080fd5b34801561032f57600080fd5b5061034361033e366004612be9565b6108f5565b60405190151581526020015b60405180910390f35b61036b610366366004612c06565b610992565b005b34801561037957600080fd5b50610382610b9a565b60405161034f9190612cdd565b34801561039b57600080fd5b506103af6103aa366004612cf0565b610c2c565b6040516001600160a01b03909116815260200161034f565b3480156103d357600080fd5b5061036b6103e2366004612d1e565b610cc1565b6103826103f5366004612df6565b610cda565b34801561040657600080fd5b506103826040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b34801561044f57600080fd5b50610459600d5481565b60405190815260200161034f565b34801561047357600080fd5b50610459610ee0565b34801561048857600080fd5b5061045960115481565b34801561049e57600080fd5b50600754610459565b3480156104b357600080fd5b506012546103af906001600160a01b031681565b3480156104d357600080fd5b5061036b6104e2366004612e74565b610efd565b3480156104f357600080fd5b50610459600f5481565b34801561050957600080fd5b50610459610518366004612eb5565b6001600160a01b031660009081526008602052604090205490565b34801561053f57600080fd5b50610459600b5481565b34801561055557600080fd5b5061036b610f22565b34801561056a57600080fd5b5061036b610579366004612ed2565b610fa6565b34801561058a57600080fd5b5046610459565b34801561059d57600080fd5b506013546103af906001600160a01b031681565b3480156105bd57600080fd5b5061036b6105cc366004612f1b565b611024565b3480156105dd57600080fd5b5061036b6110b9565b3480156105f257600080fd5b506103af6daaeb6d7670e522a718067333cd4e81565b34801561061457600080fd5b5061036b610623366004612e74565b611170565b34801561063457600080fd5b5061036b610643366004612f54565b611195565b34801561065457600080fd5b506103af610663366004612cf0565b611223565b34801561067457600080fd5b506104596112ae565b34801561068957600080fd5b50610459610698366004612eb5565b6112b9565b3480156106a957600080fd5b5061036b611353565b3480156106be57600080fd5b5061036b6106cd366004612cf0565b6113c6565b3480156106de57600080fd5b5061036b6106ed366004612d1e565b611432565b3480156106fe57600080fd5b50600c5461034390610100900460ff1681565b34801561071d57600080fd5b5061034361072c366004612eb5565b6001600160a01b031660009081526015602052604090205460ff1690565b34801561075657600080fd5b506009546001600160a01b03166103af565b34801561077457600080fd5b50610382611594565b34801561078957600080fd5b5061036b610798366004612f94565b6115a3565b3480156107a957600080fd5b50600c546103439060ff1681565b3480156107c357600080fd5b5061036b6107d2366004612fc2565b6115b7565b3480156107e357600080fd5b5061045960105481565b3480156107f957600080fd5b50610382610808366004612cf0565b6115e4565b34801561081957600080fd5b50600a546103af906001600160a01b031681565b34801561083957600080fd5b5061036b610848366004612eb5565b611618565b34801561085957600080fd5b50610459600e5481565b34801561086f57600080fd5b5061036b6116a1565b34801561088457600080fd5b5061045961171c565b34801561089957600080fd5b50610382611727565b3480156108ae57600080fd5b506103436108bd366004612f1b565b611747565b61036b6108d0366004612cf0565b611820565b3480156108e157600080fd5b5061036b6108f0366004612eb5565b6118d8565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061095857506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061098c57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b600c54610100900460ff166109ee5760405162461bcd60e51b815260206004820152601960248201527f57686974656c6973742073616c65206e6f74206163746976650000000000000060448201526064015b60405180910390fd5b3360009081526015602052604090205460ff1615610a4e5760405162461bcd60e51b815260206004820152601b60248201527f416464726573732068617320616c726561647920636c61696d6564000000000060448201526064016109e5565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610ac883838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150849050611a20565b610b145760405162461bcd60e51b815260206004820152601360248201527f4d7573742062652077686974656c69737465640000000000000000000000000060448201526064016109e5565b3484601154610b239190613044565b1115610b715760405162461bcd60e51b815260206004820152601160248201527f4574682076616c20696e636f727265637400000000000000000000000000000060448201526064016109e5565b336000908152601560205260409020805460ff19166001179055610b9484611acf565b50505050565b606060008054610ba990613063565b80601f0160208091040260200160405190810160405280929190818152602001828054610bd590613063565b8015610c225780601f10610bf757610100808354040283529160200191610c22565b820191906000526020600020905b815481529060010190602001808311610c0557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610ca55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109e5565b506000908152600460205260409020546001600160a01b031690565b81610ccb81611bf3565b610cd58383611cde565b505050565b60408051606081810183526001600160a01b03881660008181526008602090815290859020548452830152918101869052610d188782878787611e1c565b610d8a5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360448201527f680000000000000000000000000000000000000000000000000000000000000060648201526084016109e5565b6001600160a01b038716600090815260086020526040902054610dae906001611f24565b6001600160a01b0388166000908152600860205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610dfe90899033908a9061309d565b60405180910390a1600080306001600160a01b0316888a604051602001610e269291906130ee565b60408051601f1981840301815290829052610e4091613125565b6000604051808303816000865af19150503d8060008114610e7d576040519150601f19603f3d011682016040523d82523d6000602084013e610e82565b606091505b509150915081610ed45760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c0000000060448201526064016109e5565b98975050505050505050565b6000610eeb60175490565b601654610ef89190613141565b905090565b826001600160a01b0381163314610f1757610f1733611bf3565b610b94848484611f37565b610f2a611fc5565b6001600160a01b0316610f456009546001600160a01b031690565b6001600160a01b031614610f895760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b600c805461ff001981166101009182900460ff1615909102179055565b610fae611fc5565b6001600160a01b0316610fc96009546001600160a01b031690565b6001600160a01b03161461100d5760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b8051611020906014906020840190612b3a565b5050565b61102c611fc5565b6001600160a01b03166110476009546001600160a01b031690565b6001600160a01b03161461108b5760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b601280546001600160a01b039384166001600160a01b03199182161790915560138054929093169116179055565b6110c1611fc5565b6001600160a01b03166110dc6009546001600160a01b031690565b6001600160a01b0316146111205760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b478061112b57600080fd5b601354611157906001600160a01b0316606461114884600a613044565b611152919061316f565b611fcf565b60125461116d906001600160a01b031647611fcf565b50565b826001600160a01b038116331461118a5761118a33611bf3565b610b94848484612072565b61119d611fc5565b6001600160a01b03166111b86009546001600160a01b031690565b6001600160a01b0316146111fc5760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b6011849055600d839055600e829055601081905561121a8183613183565b600f5550505050565b6000818152600260205260408120546001600160a01b03168061098c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016109e5565b6000610ef860175490565b60006001600160a01b0382166113375760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016109e5565b506001600160a01b031660009081526003602052604090205490565b61135b611fc5565b6001600160a01b03166113766009546001600160a01b031690565b6001600160a01b0316146113ba5760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b6113c4600061208d565b565b6113ce611fc5565b6001600160a01b03166113e96009546001600160a01b031690565b6001600160a01b03161461142d5760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b600b55565b61143a611fc5565b6001600160a01b03166114556009546001600160a01b031690565b6001600160a01b0316146114995760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b601054816114a660175490565b6114b09190613141565b11156114fe5760405162461bcd60e51b815260206004820152601260248201527f4d617820737570706c792072656163686564000000000000000000000000000060448201526064016109e5565b60005b81811015610cd557611517601780546001019055565b61158283306001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611559573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157d919061319a565b6120df565b8061158c816131b3565b915050611501565b606060018054610ba990613063565b816115ad81611bf3565b610cd583836120f9565b836001600160a01b03811633146115d1576115d133611bf3565b6115dd858585856121fa565b5050505050565b606060146115f183612289565b6040516020016116029291906131cc565b6040516020818303038152906040529050919050565b611620611fc5565b6001600160a01b031661163b6009546001600160a01b031690565b6001600160a01b03161461167f5760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6116a9611fc5565b6001600160a01b03166116c46009546001600160a01b031690565b6001600160a01b0316146117085760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b600c805460ff19811660ff90911615179055565b6000610ef860165490565b606060405180606001604052806027815260200161336a60279139905090565b600a546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c455279190602401602060405180830381865afa1580156117b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117d69190613269565b6001600160a01b0316036117ee57600191505061098c565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b600c5460ff166118725760405162461bcd60e51b815260206004820152600f60248201527f53616c65206e6f7420616374697665000000000000000000000000000000000060448201526064016109e5565b34816011546118819190613044565b11156118cf5760405162461bcd60e51b815260206004820152601160248201527f4574682076616c20696e636f727265637400000000000000000000000000000060448201526064016109e5565b61116d81611acf565b6118e0611fc5565b6001600160a01b03166118fb6009546001600160a01b031690565b6001600160a01b03161461193f5760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b6001600160a01b0381166119bb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109e5565b61116d8161208d565b6000303303611a1a57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150611a1d9050565b50335b90565b600081815b8551811015611ac4576000868281518110611a4257611a42613286565b60200260200101519050808311611a84576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611ab1565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611abc816131b3565b915050611a25565b509092149392505050565b600d54811115611b215760405162461bcd60e51b815260206004820152601160248201527f4d6178206d696e7420657863656564656400000000000000000000000000000060448201526064016109e5565b600f5481611b2e60165490565b611b389190613141565b1115611b865760405162461bcd60e51b815260206004820152601260248201527f4d617820737570706c792072656163686564000000000000000000000000000060448201526064016109e5565b60005b8181101561102057611b9f601680546001019055565b611be133306001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611559573d6000803e3d6000fd5b80611beb816131b3565b915050611b89565b6daaeb6d7670e522a718067333cd4e3b1561116d576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611c79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c9d919061329c565b61116d576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b03821660048201526024016109e5565b6000611ce982611223565b9050806001600160a01b0316836001600160a01b031603611d725760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016109e5565b806001600160a01b0316611d84611fc5565b6001600160a01b03161480611da05750611da0816108bd611fc5565b611e125760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109e5565b610cd583836123be565b60006001600160a01b038616611e9a5760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e455200000000000000000000000000000000000000000000000000000060648201526084016109e5565b6001611ead611ea88761242c565b6124a9565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015611efb573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000611f308284613141565b9392505050565b611f48611f42611fc5565b826124f4565b611fba5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109e5565b610cd58383836125c3565b6000610ef86119c4565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461201c576040519150601f19603f3d011682016040523d82523d6000602084013e612021565b606091505b5050905080610cd55760405162461bcd60e51b815260206004820152600960248201527f5478206661696c6564000000000000000000000000000000000000000000000060448201526064016109e5565b610cd5838383604051806020016040528060008152506115b7565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611020828260405180602001604052806000815250612790565b612101611fc5565b6001600160a01b0316826001600160a01b0316036121615760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109e5565b806005600061216e611fc5565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556121b2611fc5565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121ee911515815260200190565b60405180910390a35050565b61220b612205611fc5565b836124f4565b61227d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109e5565b610b948484848461280e565b6060816000036122cc57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156122f657806122e0816131b3565b91506122ef9050600a8361316f565b91506122d0565b60008167ffffffffffffffff81111561231157612311612d4a565b6040519080825280601f01601f19166020018201604052801561233b576020820181803683370190505b5090505b841561181857612350600183613183565b915061235d600a866132b9565b612368906030613141565b60f81b81838151811061237d5761237d613286565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506123b7600a8661316f565b945061233f565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906123f382611223565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000604051806080016040528060438152602001613327604391398051602091820120835184830151604080870151805190860120905161248c950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60006124b460075490565b6040517f1901000000000000000000000000000000000000000000000000000000000000602082015260228101919091526042810183905260620161248c565b6000818152600260205260408120546001600160a01b031661256d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109e5565b600061257883611223565b9050806001600160a01b0316846001600160a01b031614806125b35750836001600160a01b03166125a884610c2c565b6001600160a01b0316145b8061181857506118188185611747565b826001600160a01b03166125d682611223565b6001600160a01b0316146126525760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016109e5565b6001600160a01b0382166126cd5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109e5565b6126d86000826123be565b6001600160a01b0383166000908152600360205260408120805460019290612701908490613183565b90915550506001600160a01b038216600090815260036020526040812080546001929061272f908490613141565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61279a838361288c565b6127a760008484846129ce565b610cd55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109e5565b6128198484846125c3565b612825848484846129ce565b610b945760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109e5565b6001600160a01b0382166128e25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109e5565b6000818152600260205260409020546001600160a01b0316156129475760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109e5565b6001600160a01b0382166000908152600360205260408120805460019290612970908490613141565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15612b2f57836001600160a01b031663150b7a026129f7611fc5565b8786866040518563ffffffff1660e01b8152600401612a1994939291906132cd565b6020604051808303816000875af1925050508015612a54575060408051601f3d908101601f19168201909252612a5191810190613309565b60015b612afc573d808015612a82576040519150601f19603f3d011682016040523d82523d6000602084013e612a87565b606091505b508051600003612af45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109e5565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611818565b506001949350505050565b828054612b4690613063565b90600052602060002090601f016020900481019282612b685760008555612bae565b82601f10612b8157805160ff1916838001178555612bae565b82800160010185558215612bae579182015b82811115612bae578251825591602001919060010190612b93565b50612bba929150612bbe565b5090565b5b80821115612bba5760008155600101612bbf565b6001600160e01b03198116811461116d57600080fd5b600060208284031215612bfb57600080fd5b8135611f3081612bd3565b600080600060408486031215612c1b57600080fd5b83359250602084013567ffffffffffffffff80821115612c3a57600080fd5b818601915086601f830112612c4e57600080fd5b813581811115612c5d57600080fd5b8760208260051b8501011115612c7257600080fd5b6020830194508093505050509250925092565b60005b83811015612ca0578181015183820152602001612c88565b83811115610b945750506000910152565b60008151808452612cc9816020860160208601612c85565b601f01601f19169290920160200192915050565b602081526000611f306020830184612cb1565b600060208284031215612d0257600080fd5b5035919050565b6001600160a01b038116811461116d57600080fd5b60008060408385031215612d3157600080fd5b8235612d3c81612d09565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612d7b57612d7b612d4a565b604051601f8501601f19908116603f01168101908282118183101715612da357612da3612d4a565b81604052809350858152868686011115612dbc57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612de757600080fd5b611f3083833560208501612d60565b600080600080600060a08688031215612e0e57600080fd5b8535612e1981612d09565b9450602086013567ffffffffffffffff811115612e3557600080fd5b612e4188828901612dd6565b9450506040860135925060608601359150608086013560ff81168114612e6657600080fd5b809150509295509295909350565b600080600060608486031215612e8957600080fd5b8335612e9481612d09565b92506020840135612ea481612d09565b929592945050506040919091013590565b600060208284031215612ec757600080fd5b8135611f3081612d09565b600060208284031215612ee457600080fd5b813567ffffffffffffffff811115612efb57600080fd5b8201601f81018413612f0c57600080fd5b61181884823560208401612d60565b60008060408385031215612f2e57600080fd5b8235612f3981612d09565b91506020830135612f4981612d09565b809150509250929050565b60008060008060808587031215612f6a57600080fd5b5050823594602084013594506040840135936060013592509050565b801515811461116d57600080fd5b60008060408385031215612fa757600080fd5b8235612fb281612d09565b91506020830135612f4981612f86565b60008060008060808587031215612fd857600080fd5b8435612fe381612d09565b93506020850135612ff381612d09565b925060408501359150606085013567ffffffffffffffff81111561301657600080fd5b61302287828801612dd6565b91505092959194509250565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561305e5761305e61302e565b500290565b600181811c9082168061307757607f821691505b60208210810361309757634e487b7160e01b600052602260045260246000fd5b50919050565b60006001600160a01b038086168352808516602084015250606060408301526130c96060830184612cb1565b95945050505050565b600081516130e4818560208601612c85565b9290920192915050565b60008351613100818460208801612c85565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b60008251613137818460208701612c85565b9190910192915050565b600082198211156131545761315461302e565b500190565b634e487b7160e01b600052601260045260246000fd5b60008261317e5761317e613159565b500490565b6000828210156131955761319561302e565b500390565b6000602082840312156131ac57600080fd5b5051919050565b6000600182016131c5576131c561302e565b5060010190565b600080845481600182811c9150808316806131e857607f831692505b6020808410820361320757634e487b7160e01b86526022600452602486fd5b81801561321b576001811461322c57613259565b60ff19861689528489019650613259565b60008b81526020902060005b868110156132515781548b820152908501908301613238565b505084890196505b5050505050506130c981856130d2565b60006020828403121561327b57600080fd5b8151611f3081612d09565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156132ae57600080fd5b8151611f3081612f86565b6000826132c8576132c8613159565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526132ff6080830184612cb1565b9695505050505050565b60006020828403121561331b57600080fd5b8151611f3081612bd356fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e61747572652968747470733a2f2f6d696e742e6b696e6764756d2e78797a2f6170692f636f6e74726163742f314f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122045dafd5db7608bf5ff45037f01c927d6cc0199d3ac42c165d90fa31bb9523cef64736f6c634300080d0033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c742968747470733a2f2f6d696e742e6b696e6764756d2e78797a2f6170692f6d6574612f312f000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000000174b696e6764756d206279205a61636b205365636b6c657200000000000000000000000000000000000000000000000000000000000000000000000000000000074b494e4744554d00000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061031e5760003560e01c806362e61a63116101a5578063b6c65d38116100ec578063d5abeb0111610095578063e8a3d4851161006f578063e8a3d4851461088d578063e985e9c5146108a2578063efd0cbf9146108c2578063f2fde38b146108d557600080fd5b8063d5abeb011461084d578063e601971614610863578063e6a5931e1461087857600080fd5b8063c87b56dd116100c6578063c87b56dd146107ed578063cd7c03261461080d578063d26ea6c01461082d57600080fd5b8063b6c65d381461079d578063b88d4fde146107b7578063c1fad42c146107d757600080fd5b80637de55fe11161014e5780638da5cb5b116101285780638da5cb5b1461074a57806395d89b4114610768578063a22cb4651461077d57600080fd5b80637de55fe1146106d25780638451fb72146106f25780638521b8e31461071157600080fd5b806370a082311161017f57806370a082311461067d578063715018a61461069d5780637cb64759146106b257600080fd5b806362e61a63146106285780636352211e14610648578063674d13c81461066857600080fd5b806323b872dd116102695780633408e470116102125780633ccfd60b116101ec5780633ccfd60b146105d157806341f43434146105e657806342842e0e1461060857600080fd5b80633408e4701461057e5780633ad10ef6146105915780633b58524d146105b157600080fd5b80632eb4a7ab116102435780632eb4a7ab146105335780632f58edfe1461054957806330176e131461055e57600080fd5b806323b872dd146104c757806326a74d8e146104e75780632d0335ab146104fd57600080fd5b80630f7e5970116102cb5780631efba6c2116102a55780631efba6c21461047c57806320379ee5146104925780632131c68c146104a757600080fd5b80630f7e5970146103fa578063138a4e011461044357806318160ddd1461046757600080fd5b8063081812fc116102fc578063081812fc1461038f578063095ea7b3146103c75780630c53c51c146103e757600080fd5b806301ffc9a714610323578063061431a81461035857806306fdde031461036d575b600080fd5b34801561032f57600080fd5b5061034361033e366004612be9565b6108f5565b60405190151581526020015b60405180910390f35b61036b610366366004612c06565b610992565b005b34801561037957600080fd5b50610382610b9a565b60405161034f9190612cdd565b34801561039b57600080fd5b506103af6103aa366004612cf0565b610c2c565b6040516001600160a01b03909116815260200161034f565b3480156103d357600080fd5b5061036b6103e2366004612d1e565b610cc1565b6103826103f5366004612df6565b610cda565b34801561040657600080fd5b506103826040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b34801561044f57600080fd5b50610459600d5481565b60405190815260200161034f565b34801561047357600080fd5b50610459610ee0565b34801561048857600080fd5b5061045960115481565b34801561049e57600080fd5b50600754610459565b3480156104b357600080fd5b506012546103af906001600160a01b031681565b3480156104d357600080fd5b5061036b6104e2366004612e74565b610efd565b3480156104f357600080fd5b50610459600f5481565b34801561050957600080fd5b50610459610518366004612eb5565b6001600160a01b031660009081526008602052604090205490565b34801561053f57600080fd5b50610459600b5481565b34801561055557600080fd5b5061036b610f22565b34801561056a57600080fd5b5061036b610579366004612ed2565b610fa6565b34801561058a57600080fd5b5046610459565b34801561059d57600080fd5b506013546103af906001600160a01b031681565b3480156105bd57600080fd5b5061036b6105cc366004612f1b565b611024565b3480156105dd57600080fd5b5061036b6110b9565b3480156105f257600080fd5b506103af6daaeb6d7670e522a718067333cd4e81565b34801561061457600080fd5b5061036b610623366004612e74565b611170565b34801561063457600080fd5b5061036b610643366004612f54565b611195565b34801561065457600080fd5b506103af610663366004612cf0565b611223565b34801561067457600080fd5b506104596112ae565b34801561068957600080fd5b50610459610698366004612eb5565b6112b9565b3480156106a957600080fd5b5061036b611353565b3480156106be57600080fd5b5061036b6106cd366004612cf0565b6113c6565b3480156106de57600080fd5b5061036b6106ed366004612d1e565b611432565b3480156106fe57600080fd5b50600c5461034390610100900460ff1681565b34801561071d57600080fd5b5061034361072c366004612eb5565b6001600160a01b031660009081526015602052604090205460ff1690565b34801561075657600080fd5b506009546001600160a01b03166103af565b34801561077457600080fd5b50610382611594565b34801561078957600080fd5b5061036b610798366004612f94565b6115a3565b3480156107a957600080fd5b50600c546103439060ff1681565b3480156107c357600080fd5b5061036b6107d2366004612fc2565b6115b7565b3480156107e357600080fd5b5061045960105481565b3480156107f957600080fd5b50610382610808366004612cf0565b6115e4565b34801561081957600080fd5b50600a546103af906001600160a01b031681565b34801561083957600080fd5b5061036b610848366004612eb5565b611618565b34801561085957600080fd5b50610459600e5481565b34801561086f57600080fd5b5061036b6116a1565b34801561088457600080fd5b5061045961171c565b34801561089957600080fd5b50610382611727565b3480156108ae57600080fd5b506103436108bd366004612f1b565b611747565b61036b6108d0366004612cf0565b611820565b3480156108e157600080fd5b5061036b6108f0366004612eb5565b6118d8565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061095857506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061098c57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b600c54610100900460ff166109ee5760405162461bcd60e51b815260206004820152601960248201527f57686974656c6973742073616c65206e6f74206163746976650000000000000060448201526064015b60405180910390fd5b3360009081526015602052604090205460ff1615610a4e5760405162461bcd60e51b815260206004820152601b60248201527f416464726573732068617320616c726561647920636c61696d6564000000000060448201526064016109e5565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610ac883838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150849050611a20565b610b145760405162461bcd60e51b815260206004820152601360248201527f4d7573742062652077686974656c69737465640000000000000000000000000060448201526064016109e5565b3484601154610b239190613044565b1115610b715760405162461bcd60e51b815260206004820152601160248201527f4574682076616c20696e636f727265637400000000000000000000000000000060448201526064016109e5565b336000908152601560205260409020805460ff19166001179055610b9484611acf565b50505050565b606060008054610ba990613063565b80601f0160208091040260200160405190810160405280929190818152602001828054610bd590613063565b8015610c225780601f10610bf757610100808354040283529160200191610c22565b820191906000526020600020905b815481529060010190602001808311610c0557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610ca55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109e5565b506000908152600460205260409020546001600160a01b031690565b81610ccb81611bf3565b610cd58383611cde565b505050565b60408051606081810183526001600160a01b03881660008181526008602090815290859020548452830152918101869052610d188782878787611e1c565b610d8a5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360448201527f680000000000000000000000000000000000000000000000000000000000000060648201526084016109e5565b6001600160a01b038716600090815260086020526040902054610dae906001611f24565b6001600160a01b0388166000908152600860205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610dfe90899033908a9061309d565b60405180910390a1600080306001600160a01b0316888a604051602001610e269291906130ee565b60408051601f1981840301815290829052610e4091613125565b6000604051808303816000865af19150503d8060008114610e7d576040519150601f19603f3d011682016040523d82523d6000602084013e610e82565b606091505b509150915081610ed45760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c0000000060448201526064016109e5565b98975050505050505050565b6000610eeb60175490565b601654610ef89190613141565b905090565b826001600160a01b0381163314610f1757610f1733611bf3565b610b94848484611f37565b610f2a611fc5565b6001600160a01b0316610f456009546001600160a01b031690565b6001600160a01b031614610f895760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b600c805461ff001981166101009182900460ff1615909102179055565b610fae611fc5565b6001600160a01b0316610fc96009546001600160a01b031690565b6001600160a01b03161461100d5760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b8051611020906014906020840190612b3a565b5050565b61102c611fc5565b6001600160a01b03166110476009546001600160a01b031690565b6001600160a01b03161461108b5760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b601280546001600160a01b039384166001600160a01b03199182161790915560138054929093169116179055565b6110c1611fc5565b6001600160a01b03166110dc6009546001600160a01b031690565b6001600160a01b0316146111205760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b478061112b57600080fd5b601354611157906001600160a01b0316606461114884600a613044565b611152919061316f565b611fcf565b60125461116d906001600160a01b031647611fcf565b50565b826001600160a01b038116331461118a5761118a33611bf3565b610b94848484612072565b61119d611fc5565b6001600160a01b03166111b86009546001600160a01b031690565b6001600160a01b0316146111fc5760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b6011849055600d839055600e829055601081905561121a8183613183565b600f5550505050565b6000818152600260205260408120546001600160a01b03168061098c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016109e5565b6000610ef860175490565b60006001600160a01b0382166113375760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016109e5565b506001600160a01b031660009081526003602052604090205490565b61135b611fc5565b6001600160a01b03166113766009546001600160a01b031690565b6001600160a01b0316146113ba5760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b6113c4600061208d565b565b6113ce611fc5565b6001600160a01b03166113e96009546001600160a01b031690565b6001600160a01b03161461142d5760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b600b55565b61143a611fc5565b6001600160a01b03166114556009546001600160a01b031690565b6001600160a01b0316146114995760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b601054816114a660175490565b6114b09190613141565b11156114fe5760405162461bcd60e51b815260206004820152601260248201527f4d617820737570706c792072656163686564000000000000000000000000000060448201526064016109e5565b60005b81811015610cd557611517601780546001019055565b61158283306001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611559573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157d919061319a565b6120df565b8061158c816131b3565b915050611501565b606060018054610ba990613063565b816115ad81611bf3565b610cd583836120f9565b836001600160a01b03811633146115d1576115d133611bf3565b6115dd858585856121fa565b5050505050565b606060146115f183612289565b6040516020016116029291906131cc565b6040516020818303038152906040529050919050565b611620611fc5565b6001600160a01b031661163b6009546001600160a01b031690565b6001600160a01b03161461167f5760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6116a9611fc5565b6001600160a01b03166116c46009546001600160a01b031690565b6001600160a01b0316146117085760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b600c805460ff19811660ff90911615179055565b6000610ef860165490565b606060405180606001604052806027815260200161336a60279139905090565b600a546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c455279190602401602060405180830381865afa1580156117b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117d69190613269565b6001600160a01b0316036117ee57600191505061098c565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b600c5460ff166118725760405162461bcd60e51b815260206004820152600f60248201527f53616c65206e6f7420616374697665000000000000000000000000000000000060448201526064016109e5565b34816011546118819190613044565b11156118cf5760405162461bcd60e51b815260206004820152601160248201527f4574682076616c20696e636f727265637400000000000000000000000000000060448201526064016109e5565b61116d81611acf565b6118e0611fc5565b6001600160a01b03166118fb6009546001600160a01b031690565b6001600160a01b03161461193f5760405162461bcd60e51b8152602060048201819052602482015260008051602061339183398151915260448201526064016109e5565b6001600160a01b0381166119bb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109e5565b61116d8161208d565b6000303303611a1a57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150611a1d9050565b50335b90565b600081815b8551811015611ac4576000868281518110611a4257611a42613286565b60200260200101519050808311611a84576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611ab1565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611abc816131b3565b915050611a25565b509092149392505050565b600d54811115611b215760405162461bcd60e51b815260206004820152601160248201527f4d6178206d696e7420657863656564656400000000000000000000000000000060448201526064016109e5565b600f5481611b2e60165490565b611b389190613141565b1115611b865760405162461bcd60e51b815260206004820152601260248201527f4d617820737570706c792072656163686564000000000000000000000000000060448201526064016109e5565b60005b8181101561102057611b9f601680546001019055565b611be133306001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611559573d6000803e3d6000fd5b80611beb816131b3565b915050611b89565b6daaeb6d7670e522a718067333cd4e3b1561116d576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611c79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c9d919061329c565b61116d576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b03821660048201526024016109e5565b6000611ce982611223565b9050806001600160a01b0316836001600160a01b031603611d725760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016109e5565b806001600160a01b0316611d84611fc5565b6001600160a01b03161480611da05750611da0816108bd611fc5565b611e125760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109e5565b610cd583836123be565b60006001600160a01b038616611e9a5760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e455200000000000000000000000000000000000000000000000000000060648201526084016109e5565b6001611ead611ea88761242c565b6124a9565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015611efb573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000611f308284613141565b9392505050565b611f48611f42611fc5565b826124f4565b611fba5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109e5565b610cd58383836125c3565b6000610ef86119c4565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461201c576040519150601f19603f3d011682016040523d82523d6000602084013e612021565b606091505b5050905080610cd55760405162461bcd60e51b815260206004820152600960248201527f5478206661696c6564000000000000000000000000000000000000000000000060448201526064016109e5565b610cd5838383604051806020016040528060008152506115b7565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611020828260405180602001604052806000815250612790565b612101611fc5565b6001600160a01b0316826001600160a01b0316036121615760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109e5565b806005600061216e611fc5565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556121b2611fc5565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121ee911515815260200190565b60405180910390a35050565b61220b612205611fc5565b836124f4565b61227d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109e5565b610b948484848461280e565b6060816000036122cc57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156122f657806122e0816131b3565b91506122ef9050600a8361316f565b91506122d0565b60008167ffffffffffffffff81111561231157612311612d4a565b6040519080825280601f01601f19166020018201604052801561233b576020820181803683370190505b5090505b841561181857612350600183613183565b915061235d600a866132b9565b612368906030613141565b60f81b81838151811061237d5761237d613286565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506123b7600a8661316f565b945061233f565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906123f382611223565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000604051806080016040528060438152602001613327604391398051602091820120835184830151604080870151805190860120905161248c950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60006124b460075490565b6040517f1901000000000000000000000000000000000000000000000000000000000000602082015260228101919091526042810183905260620161248c565b6000818152600260205260408120546001600160a01b031661256d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109e5565b600061257883611223565b9050806001600160a01b0316846001600160a01b031614806125b35750836001600160a01b03166125a884610c2c565b6001600160a01b0316145b8061181857506118188185611747565b826001600160a01b03166125d682611223565b6001600160a01b0316146126525760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016109e5565b6001600160a01b0382166126cd5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109e5565b6126d86000826123be565b6001600160a01b0383166000908152600360205260408120805460019290612701908490613183565b90915550506001600160a01b038216600090815260036020526040812080546001929061272f908490613141565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61279a838361288c565b6127a760008484846129ce565b610cd55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109e5565b6128198484846125c3565b612825848484846129ce565b610b945760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109e5565b6001600160a01b0382166128e25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109e5565b6000818152600260205260409020546001600160a01b0316156129475760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109e5565b6001600160a01b0382166000908152600360205260408120805460019290612970908490613141565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15612b2f57836001600160a01b031663150b7a026129f7611fc5565b8786866040518563ffffffff1660e01b8152600401612a1994939291906132cd565b6020604051808303816000875af1925050508015612a54575060408051601f3d908101601f19168201909252612a5191810190613309565b60015b612afc573d808015612a82576040519150601f19603f3d011682016040523d82523d6000602084013e612a87565b606091505b508051600003612af45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109e5565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611818565b506001949350505050565b828054612b4690613063565b90600052602060002090601f016020900481019282612b685760008555612bae565b82601f10612b8157805160ff1916838001178555612bae565b82800160010185558215612bae579182015b82811115612bae578251825591602001919060010190612b93565b50612bba929150612bbe565b5090565b5b80821115612bba5760008155600101612bbf565b6001600160e01b03198116811461116d57600080fd5b600060208284031215612bfb57600080fd5b8135611f3081612bd3565b600080600060408486031215612c1b57600080fd5b83359250602084013567ffffffffffffffff80821115612c3a57600080fd5b818601915086601f830112612c4e57600080fd5b813581811115612c5d57600080fd5b8760208260051b8501011115612c7257600080fd5b6020830194508093505050509250925092565b60005b83811015612ca0578181015183820152602001612c88565b83811115610b945750506000910152565b60008151808452612cc9816020860160208601612c85565b601f01601f19169290920160200192915050565b602081526000611f306020830184612cb1565b600060208284031215612d0257600080fd5b5035919050565b6001600160a01b038116811461116d57600080fd5b60008060408385031215612d3157600080fd5b8235612d3c81612d09565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612d7b57612d7b612d4a565b604051601f8501601f19908116603f01168101908282118183101715612da357612da3612d4a565b81604052809350858152868686011115612dbc57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612de757600080fd5b611f3083833560208501612d60565b600080600080600060a08688031215612e0e57600080fd5b8535612e1981612d09565b9450602086013567ffffffffffffffff811115612e3557600080fd5b612e4188828901612dd6565b9450506040860135925060608601359150608086013560ff81168114612e6657600080fd5b809150509295509295909350565b600080600060608486031215612e8957600080fd5b8335612e9481612d09565b92506020840135612ea481612d09565b929592945050506040919091013590565b600060208284031215612ec757600080fd5b8135611f3081612d09565b600060208284031215612ee457600080fd5b813567ffffffffffffffff811115612efb57600080fd5b8201601f81018413612f0c57600080fd5b61181884823560208401612d60565b60008060408385031215612f2e57600080fd5b8235612f3981612d09565b91506020830135612f4981612d09565b809150509250929050565b60008060008060808587031215612f6a57600080fd5b5050823594602084013594506040840135936060013592509050565b801515811461116d57600080fd5b60008060408385031215612fa757600080fd5b8235612fb281612d09565b91506020830135612f4981612f86565b60008060008060808587031215612fd857600080fd5b8435612fe381612d09565b93506020850135612ff381612d09565b925060408501359150606085013567ffffffffffffffff81111561301657600080fd5b61302287828801612dd6565b91505092959194509250565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561305e5761305e61302e565b500290565b600181811c9082168061307757607f821691505b60208210810361309757634e487b7160e01b600052602260045260246000fd5b50919050565b60006001600160a01b038086168352808516602084015250606060408301526130c96060830184612cb1565b95945050505050565b600081516130e4818560208601612c85565b9290920192915050565b60008351613100818460208801612c85565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b60008251613137818460208701612c85565b9190910192915050565b600082198211156131545761315461302e565b500190565b634e487b7160e01b600052601260045260246000fd5b60008261317e5761317e613159565b500490565b6000828210156131955761319561302e565b500390565b6000602082840312156131ac57600080fd5b5051919050565b6000600182016131c5576131c561302e565b5060010190565b600080845481600182811c9150808316806131e857607f831692505b6020808410820361320757634e487b7160e01b86526022600452602486fd5b81801561321b576001811461322c57613259565b60ff19861689528489019650613259565b60008b81526020902060005b868110156132515781548b820152908501908301613238565b505084890196505b5050505050506130c981856130d2565b60006020828403121561327b57600080fd5b8151611f3081612d09565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156132ae57600080fd5b8151611f3081612f86565b6000826132c8576132c8613159565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526132ff6080830184612cb1565b9695505050505050565b60006020828403121561331b57600080fd5b8151611f3081612bd356fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e61747572652968747470733a2f2f6d696e742e6b696e6764756d2e78797a2f6170692f636f6e74726163742f314f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122045dafd5db7608bf5ff45037f01c927d6cc0199d3ac42c165d90fa31bb9523cef64736f6c634300080d0033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000000174b696e6764756d206279205a61636b205365636b6c657200000000000000000000000000000000000000000000000000000000000000000000000000000000074b494e4744554d00000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Kingdum by Zack Seckler
Arg [1] : _symbol (string): KINGDUM
Arg [2] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [4] : 4b696e6764756d206279205a61636b205365636b6c6572000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [6] : 4b494e4744554d00000000000000000000000000000000000000000000000000


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.