ETH Price: $3,490.30 (+4.32%)

Token

Okay Dog (Okay Dog)
 

Overview

Max Total Supply

0 Okay Dog

Holders

2,216

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
5 Okay Dog
0x1C6D8d942410248A3487c880Ad9FbBd1e913FE86
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

OKAY DOG is a community-driven project. The total amount of NFT is 10,000. And NFT is randomly generated on the Ethereum Blockchain. Here we can satisfy all your imaginations about dogs.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
OkaydogNft

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : OkaydogNft.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

// https://github.com/ProjectOpenSea/opensea-creatures
//  import "opensea-creatures/contracts/ERC721Tradable.sol";
import "https://github.com/ProjectOpenSea/opensea-creatures/blob/master/contracts/ERC721Tradable.sol";

contract OkaydogNft is ERC721Tradable {
    using Counters for Counters.Counter;
    Counters.Counter private _nextTokenId;

    uint256 public constant price = 0.003 ether;
    uint256 public constant MAX_SUPPLY = 10000;
    uint256 public constant MAX_MINT_PER_WALLET = 5;
    string public constant baseUri = "ipfs://bafybeigqxm7ag2wgiklzhrprvbasug2nldmjvd2mlk2yddizkbvb2vjgca/";

    address public admin;

    uint256 public constant state_mint_admin = 0;
    uint256 public constant state_mint_all = 1;
    uint256 public constant state_mint_stop = 2;
    uint256 public state_mint;

    // OpenSea proxy registry addresses for rinkeby and mainnet.
    // rinkeby 0x1E525EEAF261cA41b809884CBDE9DD9E1619573A
    // mainnet 0xa5409ec958C83C3f309868babACA7c86DCB077c1
    constructor(address _proxyRegistryAddress) ERC721Tradable("Okay Dog", "Okay Dog", _proxyRegistryAddress)
    {}

    function baseTokenURI() public pure virtual override returns (string memory)
    {
        return baseUri;
    }

    function totalSupplyReal() public view returns (uint256) 
    {
        return _nextTokenId.current();
    }

    function withdrawTo(address payable to) external onlyOwner
    {
        to.transfer(address(this).balance);
    }

    function setAdmin(address _admin) external onlyOwner
    {
        require(_admin != address(0), "addr arg error");

        admin = _admin;
    }

    function switchState() external onlyOwner
    {
        require(state_mint != state_mint_stop, "state change limit");

//        if (state_mint == state_mint_admin)
//        {
//            state_mint = state_mint_all;
//        }
//        else
        {
            state_mint = state_mint_stop;
        }
    }

    modifier notStop()
    {
        require(state_mint != state_mint_stop, "mint stop");
        _;
    }

    function mint(uint256 _quantity) external payable  notStop
    {
        mint_check(_quantity);

        address sender = msgSender();
        for (uint256 i = 0; i < _quantity; i++) 
        {
            _nextTokenId.increment();
            uint256 currentTokenId = _nextTokenId.current();
            _safeMint(sender, currentTokenId);
        }
    }

    function mint_check(uint256 _quantity) internal returns (bool) 
    {
        require(_quantity != 0, "arg error");

        address sender = msgSender();

        require(sender != address(0), "sender adress error");
        require(totalSupplyReal() + _quantity <= MAX_SUPPLY, "total error");

        if (sender == admin) 
        {
            return true;
        }

        uint256 already_count = balanceOf(sender);
        require(already_count + _quantity <= MAX_MINT_PER_WALLET, "user count error");

        uint256 pay_count = _quantity;
        if (already_count == 0)
        {
            pay_count -= 1;
        }
        require(msg.value >= price * pay_count, "ether value error");

        return true;
    }
}

File 2 of 18 : ERC721Tradable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

import "./common/meta-transactions/ContentMixin.sol";
import "./common/meta-transactions/NativeMetaTransaction.sol";

contract OwnableDelegateProxy {}

/**
 * Used to delegate ownership of a contract to another address, to save on unneeded transactions to approve contract use for users
 */
contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

/**
 * @title ERC721Tradable
 * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
 */
abstract contract ERC721Tradable is ERC721, ContextMixin, NativeMetaTransaction, Ownable {
    using SafeMath for uint256;
    using Counters for Counters.Counter;

    /**
     * We rely on the OZ Counter util to keep track of the next available ID.
     * We track the nextTokenId instead of the currentTokenId to save users on gas costs. 
     * Read more about it here: https://shiny.mirror.xyz/OUampBbIz9ebEicfGnQf5At_ReMHlZy0tB4glb9xQ0E
     */ 
    Counters.Counter private _nextTokenId;
    address proxyRegistryAddress;

    constructor(
        string memory _name,
        string memory _symbol,
        address _proxyRegistryAddress
    ) ERC721(_name, _symbol) {
        proxyRegistryAddress = _proxyRegistryAddress;
        // nextTokenId is initialized to 1, since starting at 0 leads to higher gas cost for the first minter
        _nextTokenId.increment();
        _initializeEIP712(_name);
    }

    /**
     * @dev Mints a token to an address with a tokenURI.
     * @param _to address of the future owner of the token
     */
    function mintTo(address _to) public onlyOwner {
        uint256 currentTokenId = _nextTokenId.current();
        _nextTokenId.increment();
        _safeMint(_to, currentTokenId);
    }

    /**
        @dev Returns the total tokens minted so far.
        1 is always subtracted from the Counter since it tracks the next available tokenId.
     */
    function totalSupply() public view returns (uint256) {
        return _nextTokenId.current() - 1;
    }

    function baseTokenURI() virtual public pure returns (string memory);

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

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

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

pragma solidity ^0.8.0;

import {SafeMath} from  "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {EIP712Base} from "./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 4 of 18 : 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 5 of 18 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Returns the subtraction 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 6 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 7 of 18 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

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 8 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 9 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        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: invalid token ID");
        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) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token 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: caller is not token 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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

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

File 10 of 18 : EIP712Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {Initializable} from "./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 11 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 15 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 16 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 17 of 18 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"MAX_MINT_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"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":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","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":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","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":[],"name":"state_mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"state_mint_admin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"state_mint_all","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"state_mint_stop","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"switchState","outputs":[],"stateMutability":"nonpayable","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":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupplyReal","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":[{"internalType":"address payable","name":"to","type":"address"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600660006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b5060405162004d5438038062004d548339818101604052810190620000529190620004cc565b6040518060400160405280600881526020017f4f6b617920446f670000000000000000000000000000000000000000000000008152506040518060400160405280600881526020017f4f6b617920446f670000000000000000000000000000000000000000000000008152508282828160009081620000d2919062000778565b508060019081620000e4919062000778565b50505062000107620000fb6200017a60201b60201c565b6200019660201b60201c565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200015f600a6200025c60201b6200166f1760201c565b62000170836200027260201b60201c565b505050506200096b565b600062000191620002f460201b620016851760201c565b905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6001816000016000828254019250508190555050565b600660009054906101000a900460ff1615620002c5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002bc90620008c0565b60405180910390fd5b620002d681620003a660201b60201c565b6001600660006101000a81548160ff02191690831515021790555050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16036200039f57600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff818301511692505050620003a3565b3390505b90565b6040518060800160405280604f815260200162004d05604f91398051906020012081805190602001206040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525080519060200120306200041d6200045560201b60201c565b60001b604051602001620004369594939291906200090e565b6040516020818303038152906040528051906020012060078190555050565b6000804690508091505090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004948262000467565b9050919050565b620004a68162000487565b8114620004b257600080fd5b50565b600081519050620004c6816200049b565b92915050565b600060208284031215620004e557620004e462000462565b5b6000620004f584828501620004b5565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200058057607f821691505b60208210810362000596576200059562000538565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620005c1565b6200060c8683620005c1565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000659620006536200064d8462000624565b6200062e565b62000624565b9050919050565b6000819050919050565b620006758362000638565b6200068d620006848262000660565b848454620005ce565b825550505050565b600090565b620006a462000695565b620006b18184846200066a565b505050565b5b81811015620006d957620006cd6000826200069a565b600181019050620006b7565b5050565b601f8211156200072857620006f2816200059c565b620006fd84620005b1565b810160208510156200070d578190505b620007256200071c85620005b1565b830182620006b6565b50505b505050565b600082821c905092915050565b60006200074d600019846008026200072d565b1980831691505092915050565b60006200076883836200073a565b9150826002028217905092915050565b6200078382620004fe565b67ffffffffffffffff8111156200079f576200079e62000509565b5b620007ab825462000567565b620007b8828285620006dd565b600060209050601f831160018114620007f05760008415620007db578287015190505b620007e785826200075a565b86555062000857565b601f19841662000800866200059c565b60005b828110156200082a5784890151825560018201915060208501945060208101905062000803565b868310156200084a578489015162000846601f8916826200073a565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f616c726561647920696e69746564000000000000000000000000000000000000600082015250565b6000620008a8600e836200085f565b9150620008b58262000870565b602082019050919050565b60006020820190508181036000830152620008db8162000899565b9050919050565b6000819050919050565b620008f781620008e2565b82525050565b620009088162000487565b82525050565b600060a082019050620009256000830188620008ec565b620009346020830187620008ec565b620009436040830186620008ec565b620009526060830185620008fd565b620009616080830184620008ec565b9695505050505050565b61438a806200097b6000396000f3fe6080604052600436106102255760003560e01c806370a0823111610123578063a035b1fe116100ab578063c87b56dd1161006f578063c87b56dd146107cd578063d547cfb71461080a578063e985e9c514610835578063f2fde38b14610872578063f851a4401461089b57610225565b8063a035b1fe14610709578063a0712d6814610734578063a22cb46514610750578063b19960e614610779578063b88d4fde146107a457610225565b80638b6084e4116100f25780638b6084e4146106465780638da5cb5b1461065d5780638f3d40e51461068857806395d89b41146106b35780639abc8320146106de57610225565b806370a08231146105a0578063715018a6146105dd57806372b0d90c146105f4578063755edd171461061d57610225565b806323b872dd116101b15780633f3f7ffd116101755780633f3f7ffd146104bb57806340e952b5146104e657806342842e0e146105115780636352211e1461053a578063704b6c021461057757610225565b806323b872dd146103d45780632d0335ab146103fd57806332cb6b0c1461043a5780633408e47014610465578063341578031461049057610225565b8063095ea7b3116101f8578063095ea7b3146102fa5780630c53c51c146103235780630f7e59701461035357806318160ddd1461037e57806320379ee5146103a957610225565b806301ffc9a71461022a57806306fdde031461026757806307f83c1214610292578063081812fc146102bd575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906129a8565b6108c6565b60405161025e91906129f0565b60405180910390f35b34801561027357600080fd5b5061027c6109a8565b6040516102899190612aa4565b60405180910390f35b34801561029e57600080fd5b506102a7610a3a565b6040516102b49190612adf565b60405180910390f35b3480156102c957600080fd5b506102e460048036038101906102df9190612b26565b610a3f565b6040516102f19190612b94565b60405180910390f35b34801561030657600080fd5b50610321600480360381019061031c9190612bdb565b610a85565b005b61033d60048036038101906103389190612dbf565b610b9c565b60405161034a9190612eab565b60405180910390f35b34801561035f57600080fd5b50610368610e0e565b6040516103759190612aa4565b60405180910390f35b34801561038a57600080fd5b50610393610e47565b6040516103a09190612adf565b60405180910390f35b3480156103b557600080fd5b506103be610e64565b6040516103cb9190612edc565b60405180910390f35b3480156103e057600080fd5b506103fb60048036038101906103f69190612ef7565b610e6e565b005b34801561040957600080fd5b50610424600480360381019061041f9190612f4a565b610ece565b6040516104319190612adf565b60405180910390f35b34801561044657600080fd5b5061044f610f17565b60405161045c9190612adf565b60405180910390f35b34801561047157600080fd5b5061047a610f1d565b6040516104879190612adf565b60405180910390f35b34801561049c57600080fd5b506104a5610f2a565b6040516104b29190612adf565b60405180910390f35b3480156104c757600080fd5b506104d0610f2f565b6040516104dd9190612adf565b60405180910390f35b3480156104f257600080fd5b506104fb610f35565b6040516105089190612adf565b60405180910390f35b34801561051d57600080fd5b5061053860048036038101906105339190612ef7565b610f46565b005b34801561054657600080fd5b50610561600480360381019061055c9190612b26565b610f66565b60405161056e9190612b94565b60405180910390f35b34801561058357600080fd5b5061059e60048036038101906105999190612f4a565b611017565b005b3480156105ac57600080fd5b506105c760048036038101906105c29190612f4a565b6110d2565b6040516105d49190612adf565b60405180910390f35b3480156105e957600080fd5b506105f2611189565b005b34801561060057600080fd5b5061061b60048036038101906106169190612fb5565b61119d565b005b34801561062957600080fd5b50610644600480360381019061063f9190612f4a565b6111ef565b005b34801561065257600080fd5b5061065b61121d565b005b34801561066957600080fd5b50610672611274565b60405161067f9190612b94565b60405180910390f35b34801561069457600080fd5b5061069d61129e565b6040516106aa9190612adf565b60405180910390f35b3480156106bf57600080fd5b506106c86112a3565b6040516106d59190612aa4565b60405180910390f35b3480156106ea57600080fd5b506106f3611335565b6040516107009190612aa4565b60405180910390f35b34801561071557600080fd5b5061071e611351565b60405161072b9190612adf565b60405180910390f35b61074e60048036038101906107499190612b26565b61135c565b005b34801561075c57600080fd5b506107776004803603810190610772919061300e565b6113fd565b005b34801561078557600080fd5b5061078e611413565b60405161079b9190612adf565b60405180910390f35b3480156107b057600080fd5b506107cb60048036038101906107c6919061304e565b611418565b005b3480156107d957600080fd5b506107f460048036038101906107ef9190612b26565b61147a565b6040516108019190612aa4565b60405180910390f35b34801561081657600080fd5b5061081f6114b4565b60405161082c9190612aa4565b60405180910390f35b34801561084157600080fd5b5061085c600480360381019061085791906130d1565b6114d4565b60405161086991906129f0565b60405180910390f35b34801561087e57600080fd5b5061089960048036038101906108949190612f4a565b6115c6565b005b3480156108a757600080fd5b506108b0611649565b6040516108bd9190612b94565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109a157506109a082611735565b5b9050919050565b6060600080546109b790613140565b80601f01602080910402602001604051908101604052809291908181526020018280546109e390613140565b8015610a305780601f10610a0557610100808354040283529160200191610a30565b820191906000526020600020905b815481529060010190602001808311610a1357829003601f168201915b5050505050905090565b600081565b6000610a4a8261179f565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a9082610f66565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610b00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af7906131e3565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b1f6117ea565b73ffffffffffffffffffffffffffffffffffffffff161480610b4e5750610b4d81610b486117ea565b6114d4565b5b610b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8490613275565b60405180910390fd5b610b9783836117f9565b505050565b606060006040518060600160405280600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610c1f87828787876118b2565b610c5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5590613307565b60405180910390fd5b610cb16001600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546119ba90919063ffffffff16565b600860008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610d2793929190613336565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610d5c9291906133f8565b604051602081830303815290604052604051610d789190613420565b6000604051808303816000865af19150503d8060008114610db5576040519150601f19603f3d011682016040523d82523d6000602084013e610dba565b606091505b509150915081610dff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df690613483565b60405180910390fd5b80935050505095945050505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b60006001610e55600a6119d0565b610e5f91906134d2565b905090565b6000600754905090565b610e7f610e796117ea565b826119de565b610ebe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb590613578565b60405180910390fd5b610ec9838383611a73565b505050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61271081565b6000804690508091505090565b600181565b600e5481565b6000610f41600c6119d0565b905090565b610f6183838360405180602001604052806000815250611418565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361100e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611005906135e4565b60405180910390fd5b80915050919050565b61101f611cd9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361108e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108590613650565b60405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611142576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611139906136e2565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611191611cd9565b61119b6000611d57565b565b6111a5611cd9565b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156111eb573d6000803e3d6000fd5b5050565b6111f7611cd9565b6000611203600a6119d0565b905061120f600a61166f565b6112198282611e1d565b5050565b611225611cd9565b6002600e540361126a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112619061374e565b60405180910390fd5b6002600e81905550565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600281565b6060600180546112b290613140565b80601f01602080910402602001604051908101604052809291908181526020018280546112de90613140565b801561132b5780601f106113005761010080835404028352916020019161132b565b820191906000526020600020905b81548152906001019060200180831161130e57829003601f168201915b5050505050905090565b6040518060800160405280604381526020016142cf6043913981565b660aa87bee53800081565b6002600e54036113a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611398906137ba565b60405180910390fd5b6113aa81611e3b565b5060006113b5611685565b905060005b828110156113f8576113cc600c61166f565b60006113d8600c6119d0565b90506113e48382611e1d565b5080806113f0906137da565b9150506113ba565b505050565b61140f6114086117ea565b838361208b565b5050565b600581565b6114296114236117ea565b836119de565b611468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145f90613578565b60405180910390fd5b611474848484846121f7565b50505050565b60606114846114b4565b61148d83612253565b60405160200161149e92919061385e565b6040516020818303038152906040529050919050565b60606040518060800160405280604381526020016142cf60439139905090565b600080600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b815260040161154c9190612b94565b602060405180830381865afa158015611569573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061158d91906138c0565b73ffffffffffffffffffffffffffffffffffffffff16036115b25760019150506115c0565b6115bc84846123b3565b9150505b92915050565b6115ce611cd9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361163d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116349061395f565b60405180910390fd5b61164681611d57565b50565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6001816000016000828254019250508190555050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff160361172e57600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff818301511692505050611732565b3390505b90565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6117a881612447565b6117e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117de906135e4565b60405180910390fd5b50565b60006117f4611685565b905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661186c83610f66565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1603611922576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611919906139f1565b60405180910390fd5b6001611935611930876124b3565b61251b565b838686604051600081526020016040526040516119559493929190613a20565b6020604051602081039080840390855afa158015611977573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b600081836119c89190613a65565b905092915050565b600081600001549050919050565b6000806119ea83610f66565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611a2c5750611a2b81856114d4565b5b80611a6a57508373ffffffffffffffffffffffffffffffffffffffff16611a5284610a3f565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611a9382610f66565b73ffffffffffffffffffffffffffffffffffffffff1614611ae9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae090613b2d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4f90613bbf565b60405180910390fd5b611b63838383612554565b611b6e6000826117f9565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611bbe91906134d2565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c159190613a65565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611cd4838383612559565b505050565b611ce16117ea565b73ffffffffffffffffffffffffffffffffffffffff16611cff611274565b73ffffffffffffffffffffffffffffffffffffffff1614611d55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4c90613c2b565b60405180910390fd5b565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611e3782826040518060200160405280600081525061255e565b5050565b6000808203611e7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7690613c97565b60405180910390fd5b6000611e89611685565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611efa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef190613d03565b60405180910390fd5b61271083611f06610f35565b611f109190613a65565b1115611f51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4890613d6f565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611fb0576001915050612086565b6000611fbb826110d2565b905060058482611fcb9190613a65565b111561200c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200390613ddb565b60405180910390fd5b6000849050600082036120295760018161202691906134d2565b90505b80660aa87bee53800061203c9190613dfb565b34101561207e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207590613ea1565b60405180910390fd5b600193505050505b919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036120f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f090613f0d565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121ea91906129f0565b60405180910390a3505050565b612202848484611a73565b61220e848484846125b9565b61224d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224490613f9f565b60405180910390fd5b50505050565b60606000820361229a576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506123ae565b600082905060005b600082146122cc5780806122b5906137da565b915050600a826122c59190613fee565b91506122a2565b60008167ffffffffffffffff8111156122e8576122e7612c25565b5b6040519080825280601f01601f19166020018201604052801561231a5781602001600182028036833780820191505090505b5090505b600085146123a75760018261233391906134d2565b9150600a85612342919061401f565b603061234e9190613a65565b60f81b81838151811061236457612363614050565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856123a09190613fee565b945061231e565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60006040518060800160405280604381526020016143126043913980519060200120826000015183602001518460400151805190602001206040516020016124fe949392919061407f565b604051602081830303815290604052805190602001209050919050565b6000612525610e64565b82604051602001612537929190614131565b604051602081830303815290604052805190602001209050919050565b505050565b505050565b6125688383612740565b61257560008484846125b9565b6125b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ab90613f9f565b60405180910390fd5b505050565b60006125da8473ffffffffffffffffffffffffffffffffffffffff16612919565b15612733578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026126036117ea565b8786866040518563ffffffff1660e01b81526004016126259493929190614168565b6020604051808303816000875af192505050801561266157506040513d601f19601f8201168201806040525081019061265e91906141c9565b60015b6126e3573d8060008114612691576040519150601f19603f3d011682016040523d82523d6000602084013e612696565b606091505b5060008151036126db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d290613f9f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612738565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036127af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a690614242565b60405180910390fd5b6127b881612447565b156127f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ef906142ae565b60405180910390fd5b61280460008383612554565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128549190613a65565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461291560008383612559565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61298581612950565b811461299057600080fd5b50565b6000813590506129a28161297c565b92915050565b6000602082840312156129be576129bd612946565b5b60006129cc84828501612993565b91505092915050565b60008115159050919050565b6129ea816129d5565b82525050565b6000602082019050612a0560008301846129e1565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612a45578082015181840152602081019050612a2a565b83811115612a54576000848401525b50505050565b6000601f19601f8301169050919050565b6000612a7682612a0b565b612a808185612a16565b9350612a90818560208601612a27565b612a9981612a5a565b840191505092915050565b60006020820190508181036000830152612abe8184612a6b565b905092915050565b6000819050919050565b612ad981612ac6565b82525050565b6000602082019050612af46000830184612ad0565b92915050565b612b0381612ac6565b8114612b0e57600080fd5b50565b600081359050612b2081612afa565b92915050565b600060208284031215612b3c57612b3b612946565b5b6000612b4a84828501612b11565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612b7e82612b53565b9050919050565b612b8e81612b73565b82525050565b6000602082019050612ba96000830184612b85565b92915050565b612bb881612b73565b8114612bc357600080fd5b50565b600081359050612bd581612baf565b92915050565b60008060408385031215612bf257612bf1612946565b5b6000612c0085828601612bc6565b9250506020612c1185828601612b11565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612c5d82612a5a565b810181811067ffffffffffffffff82111715612c7c57612c7b612c25565b5b80604052505050565b6000612c8f61293c565b9050612c9b8282612c54565b919050565b600067ffffffffffffffff821115612cbb57612cba612c25565b5b612cc482612a5a565b9050602081019050919050565b82818337600083830152505050565b6000612cf3612cee84612ca0565b612c85565b905082815260208101848484011115612d0f57612d0e612c20565b5b612d1a848285612cd1565b509392505050565b600082601f830112612d3757612d36612c1b565b5b8135612d47848260208601612ce0565b91505092915050565b6000819050919050565b612d6381612d50565b8114612d6e57600080fd5b50565b600081359050612d8081612d5a565b92915050565b600060ff82169050919050565b612d9c81612d86565b8114612da757600080fd5b50565b600081359050612db981612d93565b92915050565b600080600080600060a08688031215612ddb57612dda612946565b5b6000612de988828901612bc6565b955050602086013567ffffffffffffffff811115612e0a57612e0961294b565b5b612e1688828901612d22565b9450506040612e2788828901612d71565b9350506060612e3888828901612d71565b9250506080612e4988828901612daa565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000612e7d82612e56565b612e878185612e61565b9350612e97818560208601612a27565b612ea081612a5a565b840191505092915050565b60006020820190508181036000830152612ec58184612e72565b905092915050565b612ed681612d50565b82525050565b6000602082019050612ef16000830184612ecd565b92915050565b600080600060608486031215612f1057612f0f612946565b5b6000612f1e86828701612bc6565b9350506020612f2f86828701612bc6565b9250506040612f4086828701612b11565b9150509250925092565b600060208284031215612f6057612f5f612946565b5b6000612f6e84828501612bc6565b91505092915050565b6000612f8282612b53565b9050919050565b612f9281612f77565b8114612f9d57600080fd5b50565b600081359050612faf81612f89565b92915050565b600060208284031215612fcb57612fca612946565b5b6000612fd984828501612fa0565b91505092915050565b612feb816129d5565b8114612ff657600080fd5b50565b60008135905061300881612fe2565b92915050565b6000806040838503121561302557613024612946565b5b600061303385828601612bc6565b925050602061304485828601612ff9565b9150509250929050565b6000806000806080858703121561306857613067612946565b5b600061307687828801612bc6565b945050602061308787828801612bc6565b935050604061309887828801612b11565b925050606085013567ffffffffffffffff8111156130b9576130b861294b565b5b6130c587828801612d22565b91505092959194509250565b600080604083850312156130e8576130e7612946565b5b60006130f685828601612bc6565b925050602061310785828601612bc6565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061315857607f821691505b60208210810361316b5761316a613111565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006131cd602183612a16565b91506131d882613171565b604082019050919050565b600060208201905081810360008301526131fc816131c0565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b600061325f603e83612a16565b915061326a82613203565b604082019050919050565b6000602082019050818103600083015261328e81613252565b9050919050565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b60006132f1602183612a16565b91506132fc82613295565b604082019050919050565b60006020820190508181036000830152613320816132e4565b9050919050565b61333081612f77565b82525050565b600060608201905061334b6000830186612b85565b6133586020830185613327565b818103604083015261336a8184612e72565b9050949350505050565b600081905092915050565b600061338a82612e56565b6133948185613374565b93506133a4818560208601612a27565b80840191505092915050565b60008160601b9050919050565b60006133c8826133b0565b9050919050565b60006133da826133bd565b9050919050565b6133f26133ed82612b73565b6133cf565b82525050565b6000613404828561337f565b915061341082846133e1565b6014820191508190509392505050565b600061342c828461337f565b915081905092915050565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000600082015250565b600061346d601c83612a16565b915061347882613437565b602082019050919050565b6000602082019050818103600083015261349c81613460565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006134dd82612ac6565b91506134e883612ac6565b9250828210156134fb576134fa6134a3565b5b828203905092915050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613562602e83612a16565b915061356d82613506565b604082019050919050565b6000602082019050818103600083015261359181613555565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006135ce601883612a16565b91506135d982613598565b602082019050919050565b600060208201905081810360008301526135fd816135c1565b9050919050565b7f6164647220617267206572726f72000000000000000000000000000000000000600082015250565b600061363a600e83612a16565b915061364582613604565b602082019050919050565b600060208201905081810360008301526136698161362d565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006136cc602983612a16565b91506136d782613670565b604082019050919050565b600060208201905081810360008301526136fb816136bf565b9050919050565b7f7374617465206368616e6765206c696d69740000000000000000000000000000600082015250565b6000613738601283612a16565b915061374382613702565b602082019050919050565b600060208201905081810360008301526137678161372b565b9050919050565b7f6d696e742073746f700000000000000000000000000000000000000000000000600082015250565b60006137a4600983612a16565b91506137af8261376e565b602082019050919050565b600060208201905081810360008301526137d381613797565b9050919050565b60006137e582612ac6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613817576138166134a3565b5b600182019050919050565b600081905092915050565b600061383882612a0b565b6138428185613822565b9350613852818560208601612a27565b80840191505092915050565b600061386a828561382d565b9150613876828461382d565b91508190509392505050565b600061388d82612b73565b9050919050565b61389d81613882565b81146138a857600080fd5b50565b6000815190506138ba81613894565b92915050565b6000602082840312156138d6576138d5612946565b5b60006138e4848285016138ab565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613949602683612a16565b9150613954826138ed565b604082019050919050565b600060208201905081810360008301526139788161393c565b9050919050565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008201527f49474e4552000000000000000000000000000000000000000000000000000000602082015250565b60006139db602583612a16565b91506139e68261397f565b604082019050919050565b60006020820190508181036000830152613a0a816139ce565b9050919050565b613a1a81612d86565b82525050565b6000608082019050613a356000830187612ecd565b613a426020830186613a11565b613a4f6040830185612ecd565b613a5c6060830184612ecd565b95945050505050565b6000613a7082612ac6565b9150613a7b83612ac6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613ab057613aaf6134a3565b5b828201905092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000613b17602583612a16565b9150613b2282613abb565b604082019050919050565b60006020820190508181036000830152613b4681613b0a565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613ba9602483612a16565b9150613bb482613b4d565b604082019050919050565b60006020820190508181036000830152613bd881613b9c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613c15602083612a16565b9150613c2082613bdf565b602082019050919050565b60006020820190508181036000830152613c4481613c08565b9050919050565b7f617267206572726f720000000000000000000000000000000000000000000000600082015250565b6000613c81600983612a16565b9150613c8c82613c4b565b602082019050919050565b60006020820190508181036000830152613cb081613c74565b9050919050565b7f73656e64657220616472657373206572726f7200000000000000000000000000600082015250565b6000613ced601383612a16565b9150613cf882613cb7565b602082019050919050565b60006020820190508181036000830152613d1c81613ce0565b9050919050565b7f746f74616c206572726f72000000000000000000000000000000000000000000600082015250565b6000613d59600b83612a16565b9150613d6482613d23565b602082019050919050565b60006020820190508181036000830152613d8881613d4c565b9050919050565b7f7573657220636f756e74206572726f7200000000000000000000000000000000600082015250565b6000613dc5601083612a16565b9150613dd082613d8f565b602082019050919050565b60006020820190508181036000830152613df481613db8565b9050919050565b6000613e0682612ac6565b9150613e1183612ac6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613e4a57613e496134a3565b5b828202905092915050565b7f65746865722076616c7565206572726f72000000000000000000000000000000600082015250565b6000613e8b601183612a16565b9150613e9682613e55565b602082019050919050565b60006020820190508181036000830152613eba81613e7e565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000613ef7601983612a16565b9150613f0282613ec1565b602082019050919050565b60006020820190508181036000830152613f2681613eea565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000613f89603283612a16565b9150613f9482613f2d565b604082019050919050565b60006020820190508181036000830152613fb881613f7c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613ff982612ac6565b915061400483612ac6565b92508261401457614013613fbf565b5b828204905092915050565b600061402a82612ac6565b915061403583612ac6565b92508261404557614044613fbf565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006080820190506140946000830187612ecd565b6140a16020830186612ad0565b6140ae6040830185612b85565b6140bb6060830184612ecd565b95945050505050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b60006140fa600283613822565b9150614105826140c4565b600282019050919050565b6000819050919050565b61412b61412682612d50565b614110565b82525050565b600061413c826140ed565b9150614148828561411a565b602082019150614158828461411a565b6020820191508190509392505050565b600060808201905061417d6000830187612b85565b61418a6020830186612b85565b6141976040830185612ad0565b81810360608301526141a98184612e72565b905095945050505050565b6000815190506141c38161297c565b92915050565b6000602082840312156141df576141de612946565b5b60006141ed848285016141b4565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061422c602083612a16565b9150614237826141f6565b602082019050919050565b6000602082019050818103600083015261425b8161421f565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614298601c83612a16565b91506142a382614262565b602082019050919050565b600060208201905081810360008301526142c78161428b565b905091905056fe697066733a2f2f626166796265696771786d376167327767696b6c7a68727072766261737567326e6c646d6a7664326d6c6b32796464697a6b62766232766a6763612f4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220de4d82551f509d18528b484857d8d23d14bc1e0c88799602817f4899aea9e5ac64736f6c634300080f0033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

Deployed Bytecode

0x6080604052600436106102255760003560e01c806370a0823111610123578063a035b1fe116100ab578063c87b56dd1161006f578063c87b56dd146107cd578063d547cfb71461080a578063e985e9c514610835578063f2fde38b14610872578063f851a4401461089b57610225565b8063a035b1fe14610709578063a0712d6814610734578063a22cb46514610750578063b19960e614610779578063b88d4fde146107a457610225565b80638b6084e4116100f25780638b6084e4146106465780638da5cb5b1461065d5780638f3d40e51461068857806395d89b41146106b35780639abc8320146106de57610225565b806370a08231146105a0578063715018a6146105dd57806372b0d90c146105f4578063755edd171461061d57610225565b806323b872dd116101b15780633f3f7ffd116101755780633f3f7ffd146104bb57806340e952b5146104e657806342842e0e146105115780636352211e1461053a578063704b6c021461057757610225565b806323b872dd146103d45780632d0335ab146103fd57806332cb6b0c1461043a5780633408e47014610465578063341578031461049057610225565b8063095ea7b3116101f8578063095ea7b3146102fa5780630c53c51c146103235780630f7e59701461035357806318160ddd1461037e57806320379ee5146103a957610225565b806301ffc9a71461022a57806306fdde031461026757806307f83c1214610292578063081812fc146102bd575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906129a8565b6108c6565b60405161025e91906129f0565b60405180910390f35b34801561027357600080fd5b5061027c6109a8565b6040516102899190612aa4565b60405180910390f35b34801561029e57600080fd5b506102a7610a3a565b6040516102b49190612adf565b60405180910390f35b3480156102c957600080fd5b506102e460048036038101906102df9190612b26565b610a3f565b6040516102f19190612b94565b60405180910390f35b34801561030657600080fd5b50610321600480360381019061031c9190612bdb565b610a85565b005b61033d60048036038101906103389190612dbf565b610b9c565b60405161034a9190612eab565b60405180910390f35b34801561035f57600080fd5b50610368610e0e565b6040516103759190612aa4565b60405180910390f35b34801561038a57600080fd5b50610393610e47565b6040516103a09190612adf565b60405180910390f35b3480156103b557600080fd5b506103be610e64565b6040516103cb9190612edc565b60405180910390f35b3480156103e057600080fd5b506103fb60048036038101906103f69190612ef7565b610e6e565b005b34801561040957600080fd5b50610424600480360381019061041f9190612f4a565b610ece565b6040516104319190612adf565b60405180910390f35b34801561044657600080fd5b5061044f610f17565b60405161045c9190612adf565b60405180910390f35b34801561047157600080fd5b5061047a610f1d565b6040516104879190612adf565b60405180910390f35b34801561049c57600080fd5b506104a5610f2a565b6040516104b29190612adf565b60405180910390f35b3480156104c757600080fd5b506104d0610f2f565b6040516104dd9190612adf565b60405180910390f35b3480156104f257600080fd5b506104fb610f35565b6040516105089190612adf565b60405180910390f35b34801561051d57600080fd5b5061053860048036038101906105339190612ef7565b610f46565b005b34801561054657600080fd5b50610561600480360381019061055c9190612b26565b610f66565b60405161056e9190612b94565b60405180910390f35b34801561058357600080fd5b5061059e60048036038101906105999190612f4a565b611017565b005b3480156105ac57600080fd5b506105c760048036038101906105c29190612f4a565b6110d2565b6040516105d49190612adf565b60405180910390f35b3480156105e957600080fd5b506105f2611189565b005b34801561060057600080fd5b5061061b60048036038101906106169190612fb5565b61119d565b005b34801561062957600080fd5b50610644600480360381019061063f9190612f4a565b6111ef565b005b34801561065257600080fd5b5061065b61121d565b005b34801561066957600080fd5b50610672611274565b60405161067f9190612b94565b60405180910390f35b34801561069457600080fd5b5061069d61129e565b6040516106aa9190612adf565b60405180910390f35b3480156106bf57600080fd5b506106c86112a3565b6040516106d59190612aa4565b60405180910390f35b3480156106ea57600080fd5b506106f3611335565b6040516107009190612aa4565b60405180910390f35b34801561071557600080fd5b5061071e611351565b60405161072b9190612adf565b60405180910390f35b61074e60048036038101906107499190612b26565b61135c565b005b34801561075c57600080fd5b506107776004803603810190610772919061300e565b6113fd565b005b34801561078557600080fd5b5061078e611413565b60405161079b9190612adf565b60405180910390f35b3480156107b057600080fd5b506107cb60048036038101906107c6919061304e565b611418565b005b3480156107d957600080fd5b506107f460048036038101906107ef9190612b26565b61147a565b6040516108019190612aa4565b60405180910390f35b34801561081657600080fd5b5061081f6114b4565b60405161082c9190612aa4565b60405180910390f35b34801561084157600080fd5b5061085c600480360381019061085791906130d1565b6114d4565b60405161086991906129f0565b60405180910390f35b34801561087e57600080fd5b5061089960048036038101906108949190612f4a565b6115c6565b005b3480156108a757600080fd5b506108b0611649565b6040516108bd9190612b94565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109a157506109a082611735565b5b9050919050565b6060600080546109b790613140565b80601f01602080910402602001604051908101604052809291908181526020018280546109e390613140565b8015610a305780601f10610a0557610100808354040283529160200191610a30565b820191906000526020600020905b815481529060010190602001808311610a1357829003601f168201915b5050505050905090565b600081565b6000610a4a8261179f565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a9082610f66565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610b00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af7906131e3565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b1f6117ea565b73ffffffffffffffffffffffffffffffffffffffff161480610b4e5750610b4d81610b486117ea565b6114d4565b5b610b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8490613275565b60405180910390fd5b610b9783836117f9565b505050565b606060006040518060600160405280600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610c1f87828787876118b2565b610c5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5590613307565b60405180910390fd5b610cb16001600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546119ba90919063ffffffff16565b600860008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610d2793929190613336565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610d5c9291906133f8565b604051602081830303815290604052604051610d789190613420565b6000604051808303816000865af19150503d8060008114610db5576040519150601f19603f3d011682016040523d82523d6000602084013e610dba565b606091505b509150915081610dff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df690613483565b60405180910390fd5b80935050505095945050505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b60006001610e55600a6119d0565b610e5f91906134d2565b905090565b6000600754905090565b610e7f610e796117ea565b826119de565b610ebe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb590613578565b60405180910390fd5b610ec9838383611a73565b505050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61271081565b6000804690508091505090565b600181565b600e5481565b6000610f41600c6119d0565b905090565b610f6183838360405180602001604052806000815250611418565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361100e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611005906135e4565b60405180910390fd5b80915050919050565b61101f611cd9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361108e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108590613650565b60405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611142576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611139906136e2565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611191611cd9565b61119b6000611d57565b565b6111a5611cd9565b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156111eb573d6000803e3d6000fd5b5050565b6111f7611cd9565b6000611203600a6119d0565b905061120f600a61166f565b6112198282611e1d565b5050565b611225611cd9565b6002600e540361126a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112619061374e565b60405180910390fd5b6002600e81905550565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600281565b6060600180546112b290613140565b80601f01602080910402602001604051908101604052809291908181526020018280546112de90613140565b801561132b5780601f106113005761010080835404028352916020019161132b565b820191906000526020600020905b81548152906001019060200180831161130e57829003601f168201915b5050505050905090565b6040518060800160405280604381526020016142cf6043913981565b660aa87bee53800081565b6002600e54036113a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611398906137ba565b60405180910390fd5b6113aa81611e3b565b5060006113b5611685565b905060005b828110156113f8576113cc600c61166f565b60006113d8600c6119d0565b90506113e48382611e1d565b5080806113f0906137da565b9150506113ba565b505050565b61140f6114086117ea565b838361208b565b5050565b600581565b6114296114236117ea565b836119de565b611468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145f90613578565b60405180910390fd5b611474848484846121f7565b50505050565b60606114846114b4565b61148d83612253565b60405160200161149e92919061385e565b6040516020818303038152906040529050919050565b60606040518060800160405280604381526020016142cf60439139905090565b600080600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b815260040161154c9190612b94565b602060405180830381865afa158015611569573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061158d91906138c0565b73ffffffffffffffffffffffffffffffffffffffff16036115b25760019150506115c0565b6115bc84846123b3565b9150505b92915050565b6115ce611cd9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361163d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116349061395f565b60405180910390fd5b61164681611d57565b50565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6001816000016000828254019250508190555050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff160361172e57600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff818301511692505050611732565b3390505b90565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6117a881612447565b6117e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117de906135e4565b60405180910390fd5b50565b60006117f4611685565b905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661186c83610f66565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1603611922576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611919906139f1565b60405180910390fd5b6001611935611930876124b3565b61251b565b838686604051600081526020016040526040516119559493929190613a20565b6020604051602081039080840390855afa158015611977573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b600081836119c89190613a65565b905092915050565b600081600001549050919050565b6000806119ea83610f66565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611a2c5750611a2b81856114d4565b5b80611a6a57508373ffffffffffffffffffffffffffffffffffffffff16611a5284610a3f565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611a9382610f66565b73ffffffffffffffffffffffffffffffffffffffff1614611ae9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae090613b2d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4f90613bbf565b60405180910390fd5b611b63838383612554565b611b6e6000826117f9565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611bbe91906134d2565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c159190613a65565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611cd4838383612559565b505050565b611ce16117ea565b73ffffffffffffffffffffffffffffffffffffffff16611cff611274565b73ffffffffffffffffffffffffffffffffffffffff1614611d55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4c90613c2b565b60405180910390fd5b565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611e3782826040518060200160405280600081525061255e565b5050565b6000808203611e7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7690613c97565b60405180910390fd5b6000611e89611685565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611efa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef190613d03565b60405180910390fd5b61271083611f06610f35565b611f109190613a65565b1115611f51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4890613d6f565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611fb0576001915050612086565b6000611fbb826110d2565b905060058482611fcb9190613a65565b111561200c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200390613ddb565b60405180910390fd5b6000849050600082036120295760018161202691906134d2565b90505b80660aa87bee53800061203c9190613dfb565b34101561207e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207590613ea1565b60405180910390fd5b600193505050505b919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036120f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f090613f0d565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121ea91906129f0565b60405180910390a3505050565b612202848484611a73565b61220e848484846125b9565b61224d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224490613f9f565b60405180910390fd5b50505050565b60606000820361229a576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506123ae565b600082905060005b600082146122cc5780806122b5906137da565b915050600a826122c59190613fee565b91506122a2565b60008167ffffffffffffffff8111156122e8576122e7612c25565b5b6040519080825280601f01601f19166020018201604052801561231a5781602001600182028036833780820191505090505b5090505b600085146123a75760018261233391906134d2565b9150600a85612342919061401f565b603061234e9190613a65565b60f81b81838151811061236457612363614050565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856123a09190613fee565b945061231e565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60006040518060800160405280604381526020016143126043913980519060200120826000015183602001518460400151805190602001206040516020016124fe949392919061407f565b604051602081830303815290604052805190602001209050919050565b6000612525610e64565b82604051602001612537929190614131565b604051602081830303815290604052805190602001209050919050565b505050565b505050565b6125688383612740565b61257560008484846125b9565b6125b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ab90613f9f565b60405180910390fd5b505050565b60006125da8473ffffffffffffffffffffffffffffffffffffffff16612919565b15612733578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026126036117ea565b8786866040518563ffffffff1660e01b81526004016126259493929190614168565b6020604051808303816000875af192505050801561266157506040513d601f19601f8201168201806040525081019061265e91906141c9565b60015b6126e3573d8060008114612691576040519150601f19603f3d011682016040523d82523d6000602084013e612696565b606091505b5060008151036126db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d290613f9f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612738565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036127af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a690614242565b60405180910390fd5b6127b881612447565b156127f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ef906142ae565b60405180910390fd5b61280460008383612554565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128549190613a65565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461291560008383612559565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61298581612950565b811461299057600080fd5b50565b6000813590506129a28161297c565b92915050565b6000602082840312156129be576129bd612946565b5b60006129cc84828501612993565b91505092915050565b60008115159050919050565b6129ea816129d5565b82525050565b6000602082019050612a0560008301846129e1565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612a45578082015181840152602081019050612a2a565b83811115612a54576000848401525b50505050565b6000601f19601f8301169050919050565b6000612a7682612a0b565b612a808185612a16565b9350612a90818560208601612a27565b612a9981612a5a565b840191505092915050565b60006020820190508181036000830152612abe8184612a6b565b905092915050565b6000819050919050565b612ad981612ac6565b82525050565b6000602082019050612af46000830184612ad0565b92915050565b612b0381612ac6565b8114612b0e57600080fd5b50565b600081359050612b2081612afa565b92915050565b600060208284031215612b3c57612b3b612946565b5b6000612b4a84828501612b11565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612b7e82612b53565b9050919050565b612b8e81612b73565b82525050565b6000602082019050612ba96000830184612b85565b92915050565b612bb881612b73565b8114612bc357600080fd5b50565b600081359050612bd581612baf565b92915050565b60008060408385031215612bf257612bf1612946565b5b6000612c0085828601612bc6565b9250506020612c1185828601612b11565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612c5d82612a5a565b810181811067ffffffffffffffff82111715612c7c57612c7b612c25565b5b80604052505050565b6000612c8f61293c565b9050612c9b8282612c54565b919050565b600067ffffffffffffffff821115612cbb57612cba612c25565b5b612cc482612a5a565b9050602081019050919050565b82818337600083830152505050565b6000612cf3612cee84612ca0565b612c85565b905082815260208101848484011115612d0f57612d0e612c20565b5b612d1a848285612cd1565b509392505050565b600082601f830112612d3757612d36612c1b565b5b8135612d47848260208601612ce0565b91505092915050565b6000819050919050565b612d6381612d50565b8114612d6e57600080fd5b50565b600081359050612d8081612d5a565b92915050565b600060ff82169050919050565b612d9c81612d86565b8114612da757600080fd5b50565b600081359050612db981612d93565b92915050565b600080600080600060a08688031215612ddb57612dda612946565b5b6000612de988828901612bc6565b955050602086013567ffffffffffffffff811115612e0a57612e0961294b565b5b612e1688828901612d22565b9450506040612e2788828901612d71565b9350506060612e3888828901612d71565b9250506080612e4988828901612daa565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000612e7d82612e56565b612e878185612e61565b9350612e97818560208601612a27565b612ea081612a5a565b840191505092915050565b60006020820190508181036000830152612ec58184612e72565b905092915050565b612ed681612d50565b82525050565b6000602082019050612ef16000830184612ecd565b92915050565b600080600060608486031215612f1057612f0f612946565b5b6000612f1e86828701612bc6565b9350506020612f2f86828701612bc6565b9250506040612f4086828701612b11565b9150509250925092565b600060208284031215612f6057612f5f612946565b5b6000612f6e84828501612bc6565b91505092915050565b6000612f8282612b53565b9050919050565b612f9281612f77565b8114612f9d57600080fd5b50565b600081359050612faf81612f89565b92915050565b600060208284031215612fcb57612fca612946565b5b6000612fd984828501612fa0565b91505092915050565b612feb816129d5565b8114612ff657600080fd5b50565b60008135905061300881612fe2565b92915050565b6000806040838503121561302557613024612946565b5b600061303385828601612bc6565b925050602061304485828601612ff9565b9150509250929050565b6000806000806080858703121561306857613067612946565b5b600061307687828801612bc6565b945050602061308787828801612bc6565b935050604061309887828801612b11565b925050606085013567ffffffffffffffff8111156130b9576130b861294b565b5b6130c587828801612d22565b91505092959194509250565b600080604083850312156130e8576130e7612946565b5b60006130f685828601612bc6565b925050602061310785828601612bc6565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061315857607f821691505b60208210810361316b5761316a613111565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006131cd602183612a16565b91506131d882613171565b604082019050919050565b600060208201905081810360008301526131fc816131c0565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b600061325f603e83612a16565b915061326a82613203565b604082019050919050565b6000602082019050818103600083015261328e81613252565b9050919050565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b60006132f1602183612a16565b91506132fc82613295565b604082019050919050565b60006020820190508181036000830152613320816132e4565b9050919050565b61333081612f77565b82525050565b600060608201905061334b6000830186612b85565b6133586020830185613327565b818103604083015261336a8184612e72565b9050949350505050565b600081905092915050565b600061338a82612e56565b6133948185613374565b93506133a4818560208601612a27565b80840191505092915050565b60008160601b9050919050565b60006133c8826133b0565b9050919050565b60006133da826133bd565b9050919050565b6133f26133ed82612b73565b6133cf565b82525050565b6000613404828561337f565b915061341082846133e1565b6014820191508190509392505050565b600061342c828461337f565b915081905092915050565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000600082015250565b600061346d601c83612a16565b915061347882613437565b602082019050919050565b6000602082019050818103600083015261349c81613460565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006134dd82612ac6565b91506134e883612ac6565b9250828210156134fb576134fa6134a3565b5b828203905092915050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613562602e83612a16565b915061356d82613506565b604082019050919050565b6000602082019050818103600083015261359181613555565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006135ce601883612a16565b91506135d982613598565b602082019050919050565b600060208201905081810360008301526135fd816135c1565b9050919050565b7f6164647220617267206572726f72000000000000000000000000000000000000600082015250565b600061363a600e83612a16565b915061364582613604565b602082019050919050565b600060208201905081810360008301526136698161362d565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006136cc602983612a16565b91506136d782613670565b604082019050919050565b600060208201905081810360008301526136fb816136bf565b9050919050565b7f7374617465206368616e6765206c696d69740000000000000000000000000000600082015250565b6000613738601283612a16565b915061374382613702565b602082019050919050565b600060208201905081810360008301526137678161372b565b9050919050565b7f6d696e742073746f700000000000000000000000000000000000000000000000600082015250565b60006137a4600983612a16565b91506137af8261376e565b602082019050919050565b600060208201905081810360008301526137d381613797565b9050919050565b60006137e582612ac6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613817576138166134a3565b5b600182019050919050565b600081905092915050565b600061383882612a0b565b6138428185613822565b9350613852818560208601612a27565b80840191505092915050565b600061386a828561382d565b9150613876828461382d565b91508190509392505050565b600061388d82612b73565b9050919050565b61389d81613882565b81146138a857600080fd5b50565b6000815190506138ba81613894565b92915050565b6000602082840312156138d6576138d5612946565b5b60006138e4848285016138ab565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613949602683612a16565b9150613954826138ed565b604082019050919050565b600060208201905081810360008301526139788161393c565b9050919050565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008201527f49474e4552000000000000000000000000000000000000000000000000000000602082015250565b60006139db602583612a16565b91506139e68261397f565b604082019050919050565b60006020820190508181036000830152613a0a816139ce565b9050919050565b613a1a81612d86565b82525050565b6000608082019050613a356000830187612ecd565b613a426020830186613a11565b613a4f6040830185612ecd565b613a5c6060830184612ecd565b95945050505050565b6000613a7082612ac6565b9150613a7b83612ac6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613ab057613aaf6134a3565b5b828201905092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000613b17602583612a16565b9150613b2282613abb565b604082019050919050565b60006020820190508181036000830152613b4681613b0a565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613ba9602483612a16565b9150613bb482613b4d565b604082019050919050565b60006020820190508181036000830152613bd881613b9c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613c15602083612a16565b9150613c2082613bdf565b602082019050919050565b60006020820190508181036000830152613c4481613c08565b9050919050565b7f617267206572726f720000000000000000000000000000000000000000000000600082015250565b6000613c81600983612a16565b9150613c8c82613c4b565b602082019050919050565b60006020820190508181036000830152613cb081613c74565b9050919050565b7f73656e64657220616472657373206572726f7200000000000000000000000000600082015250565b6000613ced601383612a16565b9150613cf882613cb7565b602082019050919050565b60006020820190508181036000830152613d1c81613ce0565b9050919050565b7f746f74616c206572726f72000000000000000000000000000000000000000000600082015250565b6000613d59600b83612a16565b9150613d6482613d23565b602082019050919050565b60006020820190508181036000830152613d8881613d4c565b9050919050565b7f7573657220636f756e74206572726f7200000000000000000000000000000000600082015250565b6000613dc5601083612a16565b9150613dd082613d8f565b602082019050919050565b60006020820190508181036000830152613df481613db8565b9050919050565b6000613e0682612ac6565b9150613e1183612ac6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613e4a57613e496134a3565b5b828202905092915050565b7f65746865722076616c7565206572726f72000000000000000000000000000000600082015250565b6000613e8b601183612a16565b9150613e9682613e55565b602082019050919050565b60006020820190508181036000830152613eba81613e7e565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000613ef7601983612a16565b9150613f0282613ec1565b602082019050919050565b60006020820190508181036000830152613f2681613eea565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000613f89603283612a16565b9150613f9482613f2d565b604082019050919050565b60006020820190508181036000830152613fb881613f7c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613ff982612ac6565b915061400483612ac6565b92508261401457614013613fbf565b5b828204905092915050565b600061402a82612ac6565b915061403583612ac6565b92508261404557614044613fbf565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006080820190506140946000830187612ecd565b6140a16020830186612ad0565b6140ae6040830185612b85565b6140bb6060830184612ecd565b95945050505050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b60006140fa600283613822565b9150614105826140c4565b600282019050919050565b6000819050919050565b61412b61412682612d50565b614110565b82525050565b600061413c826140ed565b9150614148828561411a565b602082019150614158828461411a565b6020820191508190509392505050565b600060808201905061417d6000830187612b85565b61418a6020830186612b85565b6141976040830185612ad0565b81810360608301526141a98184612e72565b905095945050505050565b6000815190506141c38161297c565b92915050565b6000602082840312156141df576141de612946565b5b60006141ed848285016141b4565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061422c602083612a16565b9150614237826141f6565b602082019050919050565b6000602082019050818103600083015261425b8161421f565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614298601c83612a16565b91506142a382614262565b602082019050919050565b600060208201905081810360008301526142c78161428b565b905091905056fe697066733a2f2f626166796265696771786d376167327767696b6c7a68727072766261737567326e6c646d6a7664326d6c6b32796464697a6b62766232766a6763612f4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220de4d82551f509d18528b484857d8d23d14bc1e0c88799602817f4899aea9e5ac64736f6c634300080f0033

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

000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1


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.