ETH Price: $3,909.52 (+1.31%)

Token

Mind the Gap by MountVitruvius (MTG)
 

Overview

Max Total Supply

999 MTG

Holders

543

Market

Volume (24H)

0.442 ETH

Min Price (24H)

$828.82 @ 0.212000 ETH

Max Price (24H)

$899.19 @ 0.230000 ETH

Other Info

Balance
1 MTG
0xf6441fea5ea72DDf1F85c8C4aB1F3Dc542500e35
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

gm. studio presents 'Mind the Gap' by MountVitruvius, a generative series inspired by childhood memories, play and exploration. This collection is the first to be featured on the generative art platform gm. studio

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
GmStudioMindTheGap

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license
File 1 of 26 : MindTheGap.sol
// SPDX-License-Identifier: UNLICENSED
// Copyright (c) 2022 GmDAO
pragma solidity >=0.8.0 <0.9.0;

import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@divergencetech/ethier/contracts/erc721/ERC721Common.sol";
import "@divergencetech/ethier/contracts/crypto/SignatureChecker.sol";
import "@divergencetech/ethier/contracts/factories/PaymentSplitterDeployer.sol";
import "../../utils/ERC2981SinglePercentual.sol";

//                                           __                    __ __
//                                          |  \                  |  \  \
//   ______  ______ ____           _______ _| ▓▓_   __    __  ____| ▓▓\▓▓ ______
//  /      \|      \    \         /       \   ▓▓ \ |  \  |  \/      ▓▓  \/      \
// |  ▓▓▓▓▓▓\ ▓▓▓▓▓▓\▓▓▓▓\       |  ▓▓▓▓▓▓▓\▓▓▓▓▓▓ | ▓▓  | ▓▓  ▓▓▓▓▓▓▓ ▓▓  ▓▓▓▓▓▓\
// | ▓▓  | ▓▓ ▓▓ | ▓▓ | ▓▓        \▓▓    \  | ▓▓ __| ▓▓  | ▓▓ ▓▓  | ▓▓ ▓▓ ▓▓  | ▓▓
// | ▓▓__| ▓▓ ▓▓ | ▓▓ | ▓▓__      _\▓▓▓▓▓▓\ | ▓▓|  \ ▓▓__/ ▓▓ ▓▓__| ▓▓ ▓▓ ▓▓__/ ▓▓
//  \▓▓    ▓▓ ▓▓ | ▓▓ | ▓▓  \    |       ▓▓  \▓▓  ▓▓\▓▓    ▓▓\▓▓    ▓▓ ▓▓\▓▓    ▓▓
//  _\▓▓▓▓▓▓▓\▓▓  \▓▓  \▓▓\▓▓     \▓▓▓▓▓▓▓    \▓▓▓▓  \▓▓▓▓▓▓  \▓▓▓▓▓▓▓\▓▓ \▓▓▓▓▓▓
// |  \__| ▓▓
//  \▓▓    ▓▓
//   \▓▓▓▓▓▓
//
contract GmStudioMindTheGap is
    ERC721Common,
    ReentrancyGuard,
    ERC2981SinglePercentual
{
    using EnumerableSet for EnumerableSet.AddressSet;
    using SignatureChecker for EnumerableSet.AddressSet;
    using Address for address payable;

    /// @notice Price for minting
    uint256 public constant MINT_PRICE = 0.15 ether;

    /// @notice Splits payments between the Studio and the artist.
    address payable public immutable paymentSplitter;

    /// @notice Splits payments between the Studio and the artist.
    address payable public immutable paymentSplitterRoyalties;

    /// @notice Total maximum amount of tokens
    uint32 public constant MAX_NUM_TOKENS = 999;

    /// @notice Max number of mints per transaction.
    /// @dev Only for public mints.
    uint32 public constant MAX_MINT_PER_TX = 1;

    /// @notice Number of mints throught the signed minting interface.
    uint32 internal constant NUM_SIGNED_MINTS = 300;

    /// @notice Number of mints for reserved the studio.
    uint32 internal constant NUM_RESERVED_MINTS = 1;

    /// @notice Currently minted supply of tokens
    uint32 public totalSupply;

    /// @notice Counter for the remaining signed mints
    uint32 internal numSignedMintsRemaining;

    /// @notice Locks the mintReserve function
    bool internal reserveMinted;

    /// @notice Locks the code storing function
    bool internal codeStoreLocked;

    /// @notice Timestamps to enables/eisables minting interfaces
    /// @dev The following order is assumed
    /// signedMintOpeningTimestamp < publicMintOpeningTimestamp < mintClosingTimestamp
    struct MintConfig {
        uint64 signedMintOpeningTimestamp;
        uint64 publicMintOpeningTimestamp;
        uint64 mintClosingTimestamp;
    }

    /// @notice The minting configuration
    MintConfig public mintConfig;

    /// @notice Stores the number of tokens minted from a signature
    /// @dev Used in mintSigned
    mapping(bytes32 => uint256) public numSignedMintsFrom;

    /// @notice Signature signers for the early access phase.
    /// @dev Removing signers invalidates the corresponding signatures.
    EnumerableSet.AddressSet private _signers;

    /// @notice tokenURI() base path.
    /// @dev Without trailing slash
    string internal _baseTokenURI;

    constructor(
        address newOwner,
        address signer,
        string memory baseTokenURI,
        address[] memory payees,
        uint256[] memory shares,
        uint256[] memory sharesRoyalties
    ) ERC721Common("Mind the Gap by MountVitruvius", "MTG") {
        _signers.add(signer);
        _baseTokenURI = baseTokenURI;

        paymentSplitter = payable(
            PaymentSplitterDeployer.instance().deploy(payees, shares)
        );

        paymentSplitterRoyalties = payable(
            PaymentSplitterDeployer.instance().deploy(payees, sharesRoyalties)
        );

        _setRoyaltyPercentage(750);
        _setRoyaltyReceiver(paymentSplitterRoyalties);

        numSignedMintsRemaining = NUM_SIGNED_MINTS;
        transferOwnership(newOwner);
    }

    // -------------------------------------------------------------------------
    //
    //  Minting
    //
    // -------------------------------------------------------------------------

    /// @notice Toggle minting relevant flags.
    function setMintConfig(MintConfig calldata config) external onlyOwner {
        mintConfig = config;
    }

    /// @dev Reverts if we are not in the signed minting window or the if
    /// `mintConfig` has not been set yet.
    modifier onlyDuringSignedMintingPeriod() {
        if (
            block.timestamp < mintConfig.signedMintOpeningTimestamp ||
            block.timestamp > mintConfig.publicMintOpeningTimestamp
        ) revert MintDisabled();
        _;
    }

    /// @dev Reverts if we are not in the public minting window or the if
    /// `mintConfig` has not been set yet.
    modifier onlyDuringPublicMintingPeriod() {
        if (
            block.timestamp < mintConfig.publicMintOpeningTimestamp ||
            block.timestamp > mintConfig.mintClosingTimestamp
        ) revert MintDisabled();
        _;
    }

    /// @notice Mints tokens to a given address using a signed message.
    /// @dev The minter might be different than the receiver.
    /// @param to Token receiver
    /// @param num Number of tokens to be minted.
    /// @param numMax Max number of tokens that can be minted to the receiver
    /// @param signature to prove that the receiver is allowed to get mints.
    /// @dev The signed messages is generated from `to || numMax`.
    function mintSigned(
        address to,
        uint32 num,
        uint32 numMax,
        uint256 nonce,
        bytes calldata signature
    ) external payable nonReentrant onlyDuringSignedMintingPeriod {
        bytes32 message = ECDSA.toEthSignedMessageHash(
            abi.encodePacked(to, numMax, nonce)
        );

        if (num + numSignedMintsFrom[message] > numMax)
            revert TooManyMintsRequested();

        if (num > numSignedMintsRemaining)
            revert InsufficientTokensRemanining();

        if (num * MINT_PRICE != msg.value) revert InvalidPayment();

        _signers.requireValidSignature(message, signature);
        numSignedMintsFrom[message] += num;
        numSignedMintsRemaining -= num;

        _processPayment();
        _processMint(to, num);
    }

    /// @notice Mints tokens to a given address.
    /// @dev The minter might be different than the receiver.
    /// @param to Token receiver
    /// @param num Number of tokens to be minted.
    function mintPublic(address to, uint32 num)
        external
        payable
        nonReentrant
        onlyDuringPublicMintingPeriod
    {
        if (num > MAX_MINT_PER_TX) revert TooManyMintsRequested();

        uint256 numRemaining = MAX_NUM_TOKENS - totalSupply;
        if (num > numRemaining) revert InsufficientTokensRemanining();

        if (num * MINT_PRICE != msg.value) revert InvalidPayment();

        _processPayment();
        _processMint(to, num);
    }

    /// @notice Mints the DAO allocated tokens.
    /// @dev The minter might be different than the receiver.
    /// @param to Token receiver
    function mintReserve(address to) external onlyOwner {
        if (reserveMinted) revert MintDisabled();
        reserveMinted = true;
        _processMint(to, NUM_RESERVED_MINTS);
    }

    /// @notice Mints new tokens for the recipient.
    function _processMint(address to, uint32 num) internal {
        uint32 supply = totalSupply;
        for (uint256 i = 0; i < num; i++) {
            if (MAX_NUM_TOKENS <= supply) revert SoldOut();
            ERC721._safeMint(to, supply);
            supply++;
        }
        totalSupply = supply;
    }

    // -------------------------------------------------------------------------
    //
    //  Signature validataion
    //
    // -------------------------------------------------------------------------

    /// @notice Removes and adds addresses to the set of allowed signers.
    /// @dev Removal is performed before addition.
    function changeSigners(
        address[] calldata delSigners,
        address[] calldata addSigners
    ) external onlyOwner {
        for (uint256 idx; idx < delSigners.length; ++idx) {
            _signers.remove(delSigners[idx]);
        }
        for (uint256 idx; idx < addSigners.length; ++idx) {
            _signers.add(addSigners[idx]);
        }
    }

    /// @notice Returns the addresses that are used for signature verification
    function getSigners() external view returns (address[] memory signers) {
        uint256 len = _signers.length();
        signers = new address[](len);
        for (uint256 idx = 0; idx < len; ++idx) {
            signers[idx] = _signers.at(idx);
        }
    }

    // -------------------------------------------------------------------------
    //
    //  Payment
    //
    // -------------------------------------------------------------------------

    /// @notice Default function for receiving funds
    /// @dev This enables the contract to be used as splitter for royalties.
    receive() external payable {
        _processPayment();
    }

    /// @notice Processes an incoming payment and sends it to the payment
    /// splitter.
    function _processPayment() internal {
        paymentSplitter.sendValue(msg.value);
    }

    // -------------------------------------------------------------------------
    //
    //  Metadata
    //
    // -------------------------------------------------------------------------

    /// @notice This function is intended to store (genart) code onchain in
    // calldata.
    function storeCode(bytes calldata) external {
        if (
            codeStoreLocked ||
            (mintConfig.signedMintOpeningTimestamp > 0 &&
                block.timestamp > mintConfig.signedMintOpeningTimestamp)
        ) revert CodeStoreLocked();
        codeStoreLocked = true;
    }

    /// @notice Change tokenURI() base path.
    /// @param uri The new base path (must not contain trailing slash)
    function setBaseTokenURI(string calldata uri) external onlyOwner {
        _baseTokenURI = uri;
    }

    /// @notice Returns the URI for token metadata.
    function tokenURI(uint256 tokenId)
        public
        view
        override
        tokenExists(tokenId)
        returns (string memory)
    {
        return
            string(
                abi.encodePacked(
                    _baseTokenURI,
                    "/",
                    Strings.toString(tokenId),
                    ".json"
                )
            );
    }

    // -------------------------------------------------------------------------
    //
    //  Internals
    //
    // -------------------------------------------------------------------------

    /// @dev See {IERC165-supportsInterface}.
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721Common, ERC2981)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    // -------------------------------------------------------------------------
    //
    //  Errors
    //
    // -------------------------------------------------------------------------

    error MintDisabled();
    error TooManyMintsRequested();
    error InsufficientTokensRemanining();
    error InvalidPayment();
    error SoldOut();
    error InvalidSignature();
    error ExeedsOwnerAllocation();
    error NotAllowedToOwnerMint();
    error NotAllowToChangeAddress();
    error CodeStoreLocked();
}

File 2 of 26 : SignatureChecker.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";

/**
@title SignatureChecker
@notice Additional functions for EnumerableSet.Addresset that require a valid
ECDSA signature of a standardized message, signed by any member of the set.
 */
library SignatureChecker {
    using EnumerableSet for EnumerableSet.AddressSet;

    /**
    @notice Requires that the message has not been used previously and that the
    recovered signer is contained in the signers AddressSet.
    @dev Convenience wrapper for message generation + signature verification
    + marking message as used
    @param signers Set of addresses from which signatures are accepted.
    @param usedMessages Set of already-used messages.
    @param signature ECDSA signature of message.
     */
    function requireValidSignature(
        EnumerableSet.AddressSet storage signers,
        bytes memory data,
        bytes calldata signature,
        mapping(bytes32 => bool) storage usedMessages
    ) internal {
        bytes32 message = generateMessage(data);
        require(
            !usedMessages[message],
            "SignatureChecker: Message already used"
        );
        usedMessages[message] = true;
        requireValidSignature(signers, message, signature);
    }

    /**
    @notice Requires that the message has not been used previously and that the
    recovered signer is contained in the signers AddressSet.
    @dev Convenience wrapper for message generation + signature verification.
     */
    function requireValidSignature(
        EnumerableSet.AddressSet storage signers,
        bytes memory data,
        bytes calldata signature
    ) internal view {
        bytes32 message = generateMessage(data);
        requireValidSignature(signers, message, signature);
    }

    /**
    @notice Requires that the message has not been used previously and that the
    recovered signer is contained in the signers AddressSet.
    @dev Convenience wrapper for message generation from address +
    signature verification.
     */
    function requireValidSignature(
        EnumerableSet.AddressSet storage signers,
        address a,
        bytes calldata signature
    ) internal view {
        bytes32 message = generateMessage(abi.encodePacked(a));
        requireValidSignature(signers, message, signature);
    }

    /**
    @notice Common validator logic, checking if the recovered signer is
    contained in the signers AddressSet.
    */
    function validSignature(
        EnumerableSet.AddressSet storage signers,
        bytes32 message,
        bytes calldata signature
    ) internal view returns (bool) {
        return signers.contains(ECDSA.recover(message, signature));
    }

    /**
    @notice Requires that the recovered signer is contained in the signers
    AddressSet.
    @dev Convenience wrapper that reverts if the signature validation fails.
    */
    function requireValidSignature(
        EnumerableSet.AddressSet storage signers,
        bytes32 message,
        bytes calldata signature
    ) internal view {
        require(
            validSignature(signers, message, signature),
            "SignatureChecker: Invalid signature"
        );
    }

    /**
    @notice Generates a message for a given data input that will be signed
    off-chain using ECDSA.
    @dev For multiple data fields, a standard concatenation using 
    `abi.encodePacked` is commonly used to build data.
     */
    function generateMessage(bytes memory data)
        internal
        pure
        returns (bytes32)
    {
        return ECDSA.toEthSignedMessageHash(data);
    }
}

File 3 of 26 : ERC721Common.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

import "../thirdparty/opensea/OpenSeaGasFreeListing.sol";
import "../utils/OwnerPausable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/utils/Context.sol";

/**
@notice An ERC721 contract with common functionality:
 - OpenSea gas-free listings
 - OpenZeppelin Pausable
 - OpenZeppelin Pausable with functions exposed to Owner only
 */
contract ERC721Common is Context, ERC721Pausable, OwnerPausable {
    constructor(string memory name, string memory symbol)
        ERC721(name, symbol)
    {}

    /// @notice Requires that the token exists.
    modifier tokenExists(uint256 tokenId) {
        require(ERC721._exists(tokenId), "ERC721Common: Token doesn't exist");
        _;
    }

    /// @notice Requires that msg.sender owns or is approved for the token.
    modifier onlyApprovedOrOwner(uint256 tokenId) {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721Common: Not approved nor owner"
        );
        _;
    }

    /// @notice Overrides _beforeTokenTransfer as required by inheritance.
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override(ERC721Pausable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    /// @notice Overrides supportsInterface as required by inheritance.
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    /**
    @notice Returns true if either standard isApprovedForAll() returns true or
    the operator is the OpenSea proxy for the owner.
     */
    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            super.isApprovedForAll(owner, operator) ||
            OpenSeaGasFreeListing.isApprovedForAll(owner, operator);
    }
}

File 4 of 26 : IPaymentSplitterFactory.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

interface IPaymentSplitterFactory {
    /// @notice Deploys a minimal contract proxy to a PaymentSplitter.
    function deploy(address[] memory payees, uint256[] memory shares)
        external
        returns (address);

    /**
    @notice Deploys a minimal contract proxy to a PaymentSplitter, at a
    deterministic address.
    @dev Use predictDeploymentAddress() with the same salt to predit the address
    before calling deployDeterministic(). See OpenZeppelin's proxy/Clones.sol
    for details and caveats, primarily that this will revert if a salt is
    reused.
     */
    function deployDeterministic(
        bytes32 salt,
        address[] memory payees,
        uint256[] memory shares
    ) external returns (address);

    /**
    @notice Returns the address at which a new PaymentSplitter will be deployed
    if using the same salt as passed to this function.
     */
    function predictDeploymentAddress(bytes32 salt)
        external
        view
        returns (address);
}

File 5 of 26 : PaymentSplitterDeployer.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

import "./IPaymentSplitterFactory.sol";

/**
@notice Convenience library for using ethier's PaymentSplitterFactory for cheap
deployment of OpenZeppelin PaymentSplitters via minimal proxy contracts. A
single factory contract is deployed on supported chains, the respective
addresses of which are determined via the chainid() and returned by this
library's instance() function.
 */
library PaymentSplitterDeployer {
    /***
    @notice Returns the ethier PaymentSplitterFactory instance for the current
    chain.
     */
    function instance() internal view returns (IPaymentSplitterFactory) {
        address factory;

        assembly {
            switch chainid()
            case 1 {
                // mainnet
                factory := 0xf034d6a4b1a64f0e6038632d87746ca24b79d325
            }
            case 4 {
                // Rinkeby
                factory := 0x633dc916D9f59cf4aA117dE2Bb8edF7752270EC0
            }
            case 1337 {
                // The geth SimulatedBackend iff used with the ethier
                // factorytest package.
                factory := 0xa516d2c64ED7Fe2004A93Bc123854B229F3Bb738
            }
        }

        require(
            factory != address(0),
            "PaymentSplitterFactory: not deployed on current chain"
        );
        return IPaymentSplitterFactory(factory);
    }
}

File 6 of 26 : OpenSeaGasFreeListing.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

// Inspired by BaseOpenSea by Simon Fremaux (@dievardump) but without the need
// to pass specific addresses depending on deployment network.
// https://gist.github.com/dievardump/483eb43bc6ed30b14f01e01842e3339b/

import "./ProxyRegistry.sol";

/// @notice Library to achieve gas-free listings on OpenSea.
library OpenSeaGasFreeListing {
    /**
    @notice Returns whether the operator is an OpenSea proxy for the owner, thus
    allowing it to list without the token owner paying gas.
    @dev ERC{721,1155}.isApprovedForAll should be overriden to also check if
    this function returns true.
     */
    function isApprovedForAll(address owner, address operator)
        internal
        view
        returns (bool)
    {
        address proxy = proxyFor(owner);
        return proxy != address(0) && proxy == operator;
    }

    /**
    @notice Returns the OpenSea proxy address for the owner.
     */
    function proxyFor(address owner) internal view returns (address) {
        address registry;
        uint256 chainId;

        assembly {
            chainId := chainid()
            switch chainId
            // Production networks are placed higher to minimise the number of
            // checks performed and therefore reduce gas. By the same rationale,
            // mainnet comes before Polygon as it's more expensive.
            case 1 {
                // mainnet
                registry := 0xa5409ec958c83c3f309868babaca7c86dcb077c1
            }
            case 137 {
                // polygon
                registry := 0x58807baD0B376efc12F5AD86aAc70E78ed67deaE
            }
            case 4 {
                // rinkeby
                registry := 0xf57b2c51ded3a29e6891aba85459d600256cf317
            }
            case 80001 {
                // mumbai
                registry := 0xff7Ca10aF37178BdD056628eF42fD7F799fAc77c
            }
            case 1337 {
                // The geth SimulatedBackend iff used with the ethier
                // openseatest package. This is mocked as a Wyvern proxy as it's
                // more complex than the 0x ones.
                registry := 0xE1a2bbc877b29ADBC56D2659DBcb0ae14ee62071
            }
        }

        // Unlike Wyvern, the registry itself is the proxy for all owners on 0x
        // chains.
        if (registry == address(0) || chainId == 137 || chainId == 80001) {
            return registry;
        }

        return address(ProxyRegistry(registry).proxies(owner));
    }
}

File 7 of 26 : ProxyRegistry.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

/// @notice A minimal interface describing OpenSea's Wyvern proxy registry.
contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

/**
@dev This pattern of using an empty contract is cargo-culted directly from
OpenSea's example code. TODO: it's likely that the above mapping can be changed
to address => address without affecting anything, but further investigation is
needed (i.e. is there a subtle reason that OpenSea released it like this?).
 */
contract OwnableDelegateProxy {

}

File 8 of 26 : OwnerPausable.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

/// @notice A Pausable contract that can only be toggled by the Owner.
contract OwnerPausable is Ownable, Pausable {
    /// @notice Pauses the contract.
    function pause() public onlyOwner {
        Pausable._pause();
    }

    /// @notice Unpauses the contract.
    function unpause() public onlyOwner {
        Pausable._unpause();
    }
}

File 9 of 26 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

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

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

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

File 10 of 26 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 11 of 26 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 12 of 26 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 13 of 26 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

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

File 15 of 26 : ERC721Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Pausable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC721 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC721Pausable is ERC721, Pausable {
    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        require(!paused(), "ERC721Pausable: token transfer while paused");
    }
}

File 16 of 26 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 17 of 26 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 18 of 26 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 19 of 26 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 20 of 26 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 21 of 26 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 22 of 26 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 23 of 26 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 24 of 26 : ERC2981.sol
// SPDX-License-Identifier: MIT
// Copyright 2021 David Huber (@cxkoda)

pragma solidity >=0.8.0 <0.9.0;

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

/**
 * @notice ERC2981 royalty info base contract
 * @dev Implements `supportsInterface`
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC165, IERC165)
        returns (bool)
    {
        return
            interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

File 25 of 26 : ERC2981SinglePercentual.sol
// SPDX-License-Identifier: MIT
// Copyright 2021 David Huber (@cxkoda)

pragma solidity >=0.8.0 <0.9.0;

import "./ERC2981.sol";

/**
 * @notice ERC2981 royalty info implementation for a single beneficiary
 * receving a percentage of sales prices.
 * @author David Huber (@cxkoda)
 */
contract ERC2981SinglePercentual is ERC2981 {
    /**
     * @dev The royalty percentage (in units of 0.01%)
     */
    uint96 _percentage;

    /**
     * @dev The address to receive the royalties
     */
    address _receiver;

    /**
     * @dev See {IERC2981-royaltyInfo}.
     */
    function royaltyInfo(uint256, uint256 salePrice)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        royaltyAmount = (salePrice / 10000) * _percentage;
        receiver = _receiver;
    }

    /**
     * @dev Sets the royalty percentage (in units of 0.01%)
     */
    function _setRoyaltyPercentage(uint96 percentage_) internal {
        _percentage = percentage_;
    }

    /**
     * @dev Sets the address to receive the royalties
     */
    function _setRoyaltyReceiver(address receiver_) internal {
        _receiver = receiver_;
    }
}

File 26 of 26 : IERC2981.sol
// SPDX-License-Identifier: None

pragma solidity >=0.8.0 <0.9.0;

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

/**
 * @dev Interface for the NFT Royalty Standard
 * @author Taken from https://eips.ethereum.org/EIPS/eip-2981
 */
interface IERC2981 is IERC165 {
    /**
     * @notice Called with the sale price to determine how much royalty
     * is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by _tokenId
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for _salePrice
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"newOwner","type":"address"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"},{"internalType":"uint256[]","name":"sharesRoyalties","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CodeStoreLocked","type":"error"},{"inputs":[],"name":"ExeedsOwnerAllocation","type":"error"},{"inputs":[],"name":"InsufficientTokensRemanining","type":"error"},{"inputs":[],"name":"InvalidPayment","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"MintDisabled","type":"error"},{"inputs":[],"name":"NotAllowToChangeAddress","type":"error"},{"inputs":[],"name":"NotAllowedToOwnerMint","type":"error"},{"inputs":[],"name":"SoldOut","type":"error"},{"inputs":[],"name":"TooManyMintsRequested","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_MINT_PER_TX","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_NUM_TOKENS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"delSigners","type":"address[]"},{"internalType":"address[]","name":"addSigners","type":"address[]"}],"name":"changeSigners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSigners","outputs":[{"internalType":"address[]","name":"signers","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintConfig","outputs":[{"internalType":"uint64","name":"signedMintOpeningTimestamp","type":"uint64"},{"internalType":"uint64","name":"publicMintOpeningTimestamp","type":"uint64"},{"internalType":"uint64","name":"mintClosingTimestamp","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint32","name":"num","type":"uint32"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mintReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint32","name":"num","type":"uint32"},{"internalType":"uint32","name":"numMax","type":"uint32"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintSigned","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"numSignedMintsFrom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentSplitter","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentSplitterRoyalties","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint64","name":"signedMintOpeningTimestamp","type":"uint64"},{"internalType":"uint64","name":"publicMintOpeningTimestamp","type":"uint64"},{"internalType":"uint64","name":"mintClosingTimestamp","type":"uint64"}],"internalType":"struct GmStudioMindTheGap.MintConfig","name":"config","type":"tuple"}],"name":"setMintConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"storeCode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c06040523480156200001157600080fd5b5060405162003cdd38038062003cdd8339810160408190526200003491620007bc565b604080518082018252601e81527f4d696e642074686520476170206279204d6f756e7456697472757669757300006020808301918252835180850190945260038452624d544760e81b9084015281519192918391839162000098916000916200051c565b508051620000ae9060019060208401906200051c565b505050620000cb620000c56200028360201b60201c565b62000287565b50506006805460ff60a01b191690556001600755620000f8600c86620002d9602090811b6200143217901c565b5083516200010e90600e9060208701906200051c565b5062000124620002f960201b620014471760201c565b6001600160a01b0316634f62f4d184846040518363ffffffff1660e01b8152600401620001539291906200089a565b6020604051808303816000875af115801562000173573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000199919062000922565b6001600160a01b0316608052620001bb620002f9602090811b6200144717901c565b6001600160a01b0316634f62f4d184836040518363ffffffff1660e01b8152600401620001ea9291906200089a565b6020604051808303816000875af11580156200020a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000230919062000922565b6001600160a01b031660a08190526c01000000000000000000000000026102ee176008556009805463ffffffff60201b191665012c000000001790556200027786620003f9565b5050505050506200097d565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000620002f0836001600160a01b038416620004ca565b90505b92915050565b60008046600181146200031f57600481146200033c576105398114620003595762000371565b73f034d6a4b1a64f0e6038632d87746ca24b79d325915062000371565b73633dc916d9f59cf4aa117de2bb8edf7752270ec0915062000371565b73a516d2c64ed7fe2004a93bc123854b229f3bb73891505b506001600160a01b038116620003f45760405162461bcd60e51b815260206004820152603560248201527f5061796d656e7453706c6974746572466163746f72793a206e6f74206465706c60448201527f6f796564206f6e2063757272656e7420636861696e000000000000000000000060648201526084015b60405180910390fd5b919050565b6006546001600160a01b03163314620004555760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620003eb565b6001600160a01b038116620004bc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620003eb565b620004c78162000287565b50565b60008181526001830160205260408120546200051357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620002f3565b506000620002f3565b8280546200052a9062000940565b90600052602060002090601f0160209004810192826200054e576000855562000599565b82601f106200056957805160ff191683800117855562000599565b8280016001018555821562000599579182015b82811115620005995782518255916020019190600101906200057c565b50620005a7929150620005ab565b5090565b5b80821115620005a75760008155600101620005ac565b80516001600160a01b0381168114620003f457600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200061b576200061b620005da565b604052919050565b600082601f8301126200063557600080fd5b81516001600160401b03811115620006515762000651620005da565b602062000667601f8301601f19168201620005f0565b82815285828487010111156200067c57600080fd5b60005b838110156200069c5785810183015182820184015282016200067f565b83811115620006ae5760008385840101525b5095945050505050565b60006001600160401b03821115620006d457620006d4620005da565b5060051b60200190565b600082601f830112620006f057600080fd5b81516020620007096200070383620006b8565b620005f0565b82815260059290921b840181019181810190868411156200072957600080fd5b8286015b848110156200074f576200074181620005c2565b83529183019183016200072d565b509695505050505050565b600082601f8301126200076c57600080fd5b815160206200077f6200070383620006b8565b82815260059290921b840181019181810190868411156200079f57600080fd5b8286015b848110156200074f5780518352918301918301620007a3565b60008060008060008060c08789031215620007d657600080fd5b620007e187620005c2565b9550620007f160208801620005c2565b60408801519095506001600160401b03808211156200080f57600080fd5b6200081d8a838b0162000623565b955060608901519150808211156200083457600080fd5b620008428a838b01620006de565b945060808901519150808211156200085957600080fd5b620008678a838b016200075a565b935060a08901519150808211156200087e57600080fd5b506200088d89828a016200075a565b9150509295509295509295565b604080825283519082018190526000906020906060840190828701845b82811015620008de5781516001600160a01b031684529284019290840190600101620008b7565b5050508381038285015284518082528583019183019060005b818110156200091557835183529284019291840191600101620008f7565b5090979650505050505050565b6000602082840312156200093557600080fd5b620002f082620005c2565b600181811c908216806200095557607f821691505b602082108114156200097757634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051613333620009aa60003960006105cb0152600081816106bb015261073701526133336000f3fe6080604052600436106102135760003560e01c8063718e6adb11610118578063bee519c3116100a0578063e7cc72441161006f578063e7cc724414610629578063e985e9c514610689578063ed4a6b0c146106a9578063f2fde38b146106dd578063f96a9d21146106fd57600080fd5b8063bee519c3146105a6578063bf964b4e146105b9578063c002d23d146105ed578063c87b56dd1461060957600080fd5b806394cf795e116100e757806394cf795e1461050f57806395d89b4114610531578063a22cb46514610546578063a91ed8c614610566578063b88d4fde1461058657600080fd5b8063718e6adb146104b15780638456cb59146104c75780638da5cb5b146104dc5780638ecad721146104fa57600080fd5b806335c429471161019b5780635c975abb1161016a5780635c975abb1461040f5780636352211e1461042e5780636b7813ee1461044e57806370a082311461046e578063715018a61461049c57600080fd5b806335c429471461039a5780633f4ba83a146103ba57806342842e0e146103cf57806347d2e792146103ef57600080fd5b806318160ddd116101e257806318160ddd146102d6578063186c02cf1461030857806323b872dd1461031b5780632a55205a1461033b57806330176e131461037a57600080fd5b806301ffc9a71461022757806306fdde031461025c578063081812fc1461027e578063095ea7b3146102b657600080fd5b366102225761022061072a565b005b600080fd5b34801561023357600080fd5b5061024761024236600461292f565b61075f565b60405190151581526020015b60405180910390f35b34801561026857600080fd5b50610271610770565b60405161025391906129a4565b34801561028a57600080fd5b5061029e6102993660046129b7565b610802565b6040516001600160a01b039091168152602001610253565b3480156102c257600080fd5b506102206102d13660046129e5565b61089c565b3480156102e257600080fd5b506009546102f39063ffffffff1681565b60405163ffffffff9091168152602001610253565b610220610316366004612a66565b6109b2565b34801561032757600080fd5b50610220610336366004612ae6565b610bef565b34801561034757600080fd5b5061035b610356366004612b27565b610c20565b604080516001600160a01b039093168352602083019190915201610253565b34801561038657600080fd5b50610220610395366004612b49565b610c69565b3480156103a657600080fd5b506102206103b5366004612bce565b610c9f565b3480156103c657600080fd5b50610220610d6d565b3480156103db57600080fd5b506102206103ea366004612ae6565b610d9f565b3480156103fb57600080fd5b5061022061040a366004612b49565b610dba565b34801561041b57600080fd5b50600654600160a01b900460ff16610247565b34801561043a57600080fd5b5061029e6104493660046129b7565b610e2c565b34801561045a57600080fd5b50610220610469366004612c39565b610ea3565b34801561047a57600080fd5b5061048e610489366004612c4b565b610eda565b604051908152602001610253565b3480156104a857600080fd5b50610220610f61565b3480156104bd57600080fd5b506102f36103e781565b3480156104d357600080fd5b50610220610f95565b3480156104e857600080fd5b506006546001600160a01b031661029e565b34801561050657600080fd5b506102f3600181565b34801561051b57600080fd5b50610524610fc7565b6040516102539190612c68565b34801561053d57600080fd5b50610271611070565b34801561055257600080fd5b50610220610561366004612cb5565b61107f565b34801561057257600080fd5b50610220610581366004612c4b565b61108e565b34801561059257600080fd5b506102206105a1366004612d09565b611109565b6102206105b4366004612de8565b611141565b3480156105c557600080fd5b5061029e7f000000000000000000000000000000000000000000000000000000000000000081565b3480156105f957600080fd5b5061048e670214e8348c4f000081565b34801561061557600080fd5b506102716106243660046129b7565b6112aa565b34801561063557600080fd5b50600a5461065f906001600160401b0380821691600160401b8104821691600160801b9091041683565b604080516001600160401b0394851681529284166020840152921691810191909152606001610253565b34801561069557600080fd5b506102476106a4366004612e1d565b611358565b3480156106b557600080fd5b5061029e7f000000000000000000000000000000000000000000000000000000000000000081565b3480156106e957600080fd5b506102206106f8366004612c4b565b61139a565b34801561070957600080fd5b5061048e6107183660046129b7565b600b6020526000908152604090205481565b61075d6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001634611533565b565b600061076a8261164c565b92915050565b60606000805461077f90612e4b565b80601f01602080910402602001604051908101604052809291908181526020018280546107ab90612e4b565b80156107f85780601f106107cd576101008083540402835291602001916107f8565b820191906000526020600020905b8154815290600101906020018083116107db57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108805760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108a782610e2c565b9050806001600160a01b0316836001600160a01b031614156109155760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610877565b336001600160a01b038216148061093157506109318133611358565b6109a35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610877565b6109ad8383611671565b505050565b60026007541415610a055760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610877565b6002600755600a546001600160401b0316421080610a345750600a54600160401b90046001600160401b031642115b15610a52576040516317efbd6b60e01b815260040160405180910390fd5b6040516bffffffffffffffffffffffff19606088901b1660208201526001600160e01b031960e086901b16603482015260388101849052600090610aa7906058016040516020818303038152906040526116df565b6000818152600b602052604090205490915063ffffffff80871691610acd918916612e96565b1115610aec5760405163342e754760e21b815260040160405180910390fd5b60095463ffffffff64010000000090910481169087161115610b2157604051630f196e0f60e21b815260040160405180910390fd5b34610b3a670214e8348c4f000063ffffffff8916612eae565b14610b585760405163078d696560e31b815260040160405180910390fd5b610b65600c82858561171a565b6000818152600b60205260408120805463ffffffff89169290610b89908490612e96565b909155505060098054879190600490610bb1908490640100000000900463ffffffff16612ecd565b92506101000a81548163ffffffff021916908363ffffffff160217905550610bd761072a565b610be1878761177e565b505060016007555050505050565b610bf9338261180f565b610c155760405162461bcd60e51b815260040161087790612ef2565b6109ad8383836118e6565b60085460009081906bffffffffffffffffffffffff16610c4261271085612f59565b610c4c9190612eae565b600854600160601b90046001600160a01b03169590945092505050565b6006546001600160a01b03163314610c935760405162461bcd60e51b815260040161087790612f6d565b6109ad600e8383612880565b6006546001600160a01b03163314610cc95760405162461bcd60e51b815260040161087790612f6d565b60005b83811015610d1757610d06858583818110610ce957610ce9612fa2565b9050602002016020810190610cfe9190612c4b565b600c90611a91565b50610d1081612fb8565b9050610ccc565b5060005b81811015610d6657610d55838383818110610d3857610d38612fa2565b9050602002016020810190610d4d9190612c4b565b600c90611432565b50610d5f81612fb8565b9050610d1b565b5050505050565b6006546001600160a01b03163314610d975760405162461bcd60e51b815260040161087790612f6d565b61075d611aa6565b6109ad83838360405180602001604052806000815250611109565b600954600160481b900460ff1680610df15750600a546001600160401b031615801590610df15750600a546001600160401b031642115b15610e0f576040516326ed66f360e11b815260040160405180910390fd5b50506009805469ff0000000000000000001916600160481b179055565b6000818152600260205260408120546001600160a01b03168061076a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610877565b6006546001600160a01b03163314610ecd5760405162461bcd60e51b815260040161087790612f6d565b80600a6109ad8282612fec565b60006001600160a01b038216610f455760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610877565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610f8b5760405162461bcd60e51b815260040161087790612f6d565b61075d6000611b43565b6006546001600160a01b03163314610fbf5760405162461bcd60e51b815260040161087790612f6d565b61075d611b95565b60606000610fd5600c611c1d565b9050806001600160401b03811115610fef57610fef612cf3565b604051908082528060200260200182016040528015611018578160200160208202803683370190505b50915060005b8181101561106b57611031600c82611c27565b83828151811061104357611043612fa2565b6001600160a01b039092166020928302919091019091015261106481612fb8565b905061101e565b505090565b60606001805461077f90612e4b565b61108a338383611c33565b5050565b6006546001600160a01b031633146110b85760405162461bcd60e51b815260040161087790612f6d565b600954600160401b900460ff16156110e3576040516317efbd6b60e01b815260040160405180910390fd5b6009805468ff00000000000000001916600160401b17905561110681600161177e565b50565b611113338361180f565b61112f5760405162461bcd60e51b815260040161087790612ef2565b61113b84848484611d02565b50505050565b600260075414156111945760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610877565b6002600755600a54600160401b90046001600160401b03164210806111ca5750600a54600160801b90046001600160401b031642115b156111e8576040516317efbd6b60e01b815260040160405180910390fd5b600163ffffffff821611156112105760405163342e754760e21b815260040160405180910390fd5b6009546000906112289063ffffffff166103e7612ecd565b63ffffffff169050808263ffffffff16111561125757604051630f196e0f60e21b815260040160405180910390fd5b34611270670214e8348c4f000063ffffffff8516612eae565b1461128e5760405163078d696560e31b815260040160405180910390fd5b61129661072a565b6112a0838361177e565b5050600160075550565b6060816112ce816000908152600260205260409020546001600160a01b0316151590565b6113245760405162461bcd60e51b815260206004820152602160248201527f455243373231436f6d6d6f6e3a20546f6b656e20646f65736e277420657869736044820152601d60fa1b6064820152608401610877565b600e61132f84611d35565b60405160200161134092919061309c565b60405160208183030381529060405291505b50919050565b6001600160a01b03808316600090815260056020908152604080832093851683529290529081205460ff168061139357506113938383611e32565b9392505050565b6006546001600160a01b031633146113c45760405162461bcd60e51b815260040161087790612f6d565b6001600160a01b0381166114295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610877565b61110681611b43565b6000611393836001600160a01b038416611e71565b600080466001811461146957600481146114855761053981146114a1576114b9565b73f034d6a4b1a64f0e6038632d87746ca24b79d32591506114b9565b73633dc916d9f59cf4aa117de2bb8edf7752270ec091506114b9565b73a516d2c64ed7fe2004a93bc123854b229f3bb73891505b506001600160a01b03811661152e5760405162461bcd60e51b815260206004820152603560248201527f5061796d656e7453706c6974746572466163746f72793a206e6f74206465706c60448201527437bcb2b21037b71031bab93932b73a1031b430b4b760591b6064820152608401610877565b919050565b804710156115835760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610877565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146115d0576040519150601f19603f3d011682016040523d82523d6000602084013e6115d5565b606091505b50509050806109ad5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610877565b60006001600160e01b0319821663152a902d60e11b148061076a575061076a82611ec0565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116a682610e2c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006116eb8251611d35565b826040516020016116fd92919061315e565b604051602081830303815290604052805190602001209050919050565b61172684848484611ecb565b61113b5760405162461bcd60e51b815260206004820152602360248201527f5369676e6174757265436865636b65723a20496e76616c6964207369676e617460448201526275726560e81b6064820152608401610877565b60095463ffffffff1660005b8263ffffffff168110156117f05763ffffffff82166103e7116117c0576040516352df9fe560e01b815260040160405180910390fd5b6117d0848363ffffffff16611f20565b816117da816131b9565b92505080806117e890612fb8565b91505061178a565b506009805463ffffffff191663ffffffff929092169190911790555050565b6000818152600260205260408120546001600160a01b03166118885760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610877565b600061189383610e2c565b9050806001600160a01b0316846001600160a01b031614806118ce5750836001600160a01b03166118c384610802565b6001600160a01b0316145b806118de57506118de8185611358565b949350505050565b826001600160a01b03166118f982610e2c565b6001600160a01b0316146119615760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610877565b6001600160a01b0382166119c35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610877565b6119ce838383611f3a565b6119d9600082611671565b6001600160a01b0383166000908152600360205260408120805460019290611a029084906131dd565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a30908490612e96565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611393836001600160a01b038416611f45565b600654600160a01b900460ff16611af65760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610877565b6006805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600654600160a01b900460ff1615611be25760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610877565b6006805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b263390565b600061076a825490565b60006113938383612038565b816001600160a01b0316836001600160a01b03161415611c955760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610877565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611d0d8484846118e6565b611d1984848484612062565b61113b5760405162461bcd60e51b8152600401610877906131f4565b606081611d595750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d835780611d6d81612fb8565b9150611d7c9050600a83612f59565b9150611d5d565b6000816001600160401b03811115611d9d57611d9d612cf3565b6040519080825280601f01601f191660200182016040528015611dc7576020820181803683370190505b5090505b84156118de57611ddc6001836131dd565b9150611de9600a86613246565b611df4906030612e96565b60f81b818381518110611e0957611e09612fa2565b60200101906001600160f81b031916908160001a905350611e2b600a86612f59565b9450611dcb565b600080611e3e8461215d565b90506001600160a01b038116158015906118de5750826001600160a01b0316816001600160a01b03161491505092915050565b6000818152600183016020526040812054611eb85750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561076a565b50600061076a565b600061076a826122b4565b6000611f17611f108585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061230492505050565b8690612328565b95945050505050565b61108a82826040518060200160405280600081525061234a565b6109ad83838361237d565b6000818152600183016020526040812054801561202e576000611f696001836131dd565b8554909150600090611f7d906001906131dd565b9050818114611fe2576000866000018281548110611f9d57611f9d612fa2565b9060005260206000200154905080876000018481548110611fc057611fc0612fa2565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611ff357611ff361325a565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061076a565b600091505061076a565b600082600001828154811061204f5761204f612fa2565b9060005260206000200154905092915050565b60006001600160a01b0384163b1561215557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906120a6903390899088908890600401613270565b6020604051808303816000875af19250505080156120e1575060408051601f3d908101601f191682019092526120de918101906132ad565b60015b61213b573d80801561210f576040519150601f19603f3d011682016040523d82523d6000602084013e612114565b606091505b5080516121335760405162461bcd60e51b8152600401610877906131f4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118de565b5060016118de565b60008046806001811461219257608981146121ae57600481146121ca576201388181146121e65761053981146122025761221a565b73a5409ec958c83c3f309868babaca7c86dcb077c1925061221a565b7358807bad0b376efc12f5ad86aac70e78ed67deae925061221a565b73f57b2c51ded3a29e6891aba85459d600256cf317925061221a565b73ff7ca10af37178bdd056628ef42fd7f799fac77c925061221a565b73e1a2bbc877b29adbc56d2659dbcb0ae14ee6207192505b506001600160a01b03821615806122315750806089145b8061223e57508062013881145b1561224a575092915050565b60405163c455279160e01b81526001600160a01b03858116600483015283169063c455279190602401602060405180830381865afa158015612290573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118de91906132ca565b60006001600160e01b031982166380ac58cd60e01b14806122e557506001600160e01b03198216635b5e139f60e01b145b8061076a57506301ffc9a760e01b6001600160e01b031983161461076a565b600080600061231385856123eb565b915091506123208161245b565b509392505050565b6001600160a01b03811660009081526001830160205260408120541515611393565b6123548383612616565b6123616000848484612062565b6109ad5760405162461bcd60e51b8152600401610877906131f4565b600654600160a01b900460ff16156109ad5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610877565b6000808251604114156124225760208301516040840151606085015160001a61241687828585612764565b94509450505050612454565b82516040141561244c5760208301516040840151612441868383612851565b935093505050612454565b506000905060025b9250929050565b600081600481111561246f5761246f6132e7565b14156124785750565b600181600481111561248c5761248c6132e7565b14156124da5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610877565b60028160048111156124ee576124ee6132e7565b141561253c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610877565b6003816004811115612550576125506132e7565b14156125a95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610877565b60048160048111156125bd576125bd6132e7565b14156111065760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610877565b6001600160a01b03821661266c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610877565b6000818152600260205260409020546001600160a01b0316156126d15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610877565b6126dd60008383611f3a565b6001600160a01b0382166000908152600360205260408120805460019290612706908490612e96565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561279b5750600090506003612848565b8460ff16601b141580156127b357508460ff16601c14155b156127c45750600090506004612848565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612818573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661284157600060019250925050612848565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161287287828885612764565b935093505050935093915050565b82805461288c90612e4b565b90600052602060002090601f0160209004810192826128ae57600085556128f4565b82601f106128c75782800160ff198235161785556128f4565b828001600101855582156128f4579182015b828111156128f45782358255916020019190600101906128d9565b50612900929150612904565b5090565b5b808211156129005760008155600101612905565b6001600160e01b03198116811461110657600080fd5b60006020828403121561294157600080fd5b813561139381612919565b60005b8381101561296757818101518382015260200161294f565b8381111561113b5750506000910152565b6000815180845261299081602086016020860161294c565b601f01601f19169290920160200192915050565b6020815260006113936020830184612978565b6000602082840312156129c957600080fd5b5035919050565b6001600160a01b038116811461110657600080fd5b600080604083850312156129f857600080fd5b8235612a03816129d0565b946020939093013593505050565b803563ffffffff8116811461152e57600080fd5b60008083601f840112612a3757600080fd5b5081356001600160401b03811115612a4e57600080fd5b60208301915083602082850101111561245457600080fd5b60008060008060008060a08789031215612a7f57600080fd5b8635612a8a816129d0565b9550612a9860208801612a11565b9450612aa660408801612a11565b93506060870135925060808701356001600160401b03811115612ac857600080fd5b612ad489828a01612a25565b979a9699509497509295939492505050565b600080600060608486031215612afb57600080fd5b8335612b06816129d0565b92506020840135612b16816129d0565b929592945050506040919091013590565b60008060408385031215612b3a57600080fd5b50508035926020909101359150565b60008060208385031215612b5c57600080fd5b82356001600160401b03811115612b7257600080fd5b612b7e85828601612a25565b90969095509350505050565b60008083601f840112612b9c57600080fd5b5081356001600160401b03811115612bb357600080fd5b6020830191508360208260051b850101111561245457600080fd5b60008060008060408587031215612be457600080fd5b84356001600160401b0380821115612bfb57600080fd5b612c0788838901612b8a565b90965094506020870135915080821115612c2057600080fd5b50612c2d87828801612b8a565b95989497509550505050565b60006060828403121561135257600080fd5b600060208284031215612c5d57600080fd5b8135611393816129d0565b6020808252825182820181905260009190848201906040850190845b81811015612ca95783516001600160a01b031683529284019291840191600101612c84565b50909695505050505050565b60008060408385031215612cc857600080fd5b8235612cd3816129d0565b915060208301358015158114612ce857600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612d1f57600080fd5b8435612d2a816129d0565b93506020850135612d3a816129d0565b92506040850135915060608501356001600160401b0380821115612d5d57600080fd5b818701915087601f830112612d7157600080fd5b813581811115612d8357612d83612cf3565b604051601f8201601f19908116603f01168101908382118183101715612dab57612dab612cf3565b816040528281528a6020848701011115612dc457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612dfb57600080fd5b8235612e06816129d0565b9150612e1460208401612a11565b90509250929050565b60008060408385031215612e3057600080fd5b8235612e3b816129d0565b91506020830135612ce8816129d0565b600181811c90821680612e5f57607f821691505b6020821081141561135257634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115612ea957612ea9612e80565b500190565b6000816000190483118215151615612ec857612ec8612e80565b500290565b600063ffffffff83811690831681811015612eea57612eea612e80565b039392505050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082612f6857612f68612f43565b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612fcc57612fcc612e80565b5060010190565b600081356001600160401b038116811461076a57600080fd5b6001600160401b03612ffd83612fd3565b168154816001600160401b031982161783556fffffffffffffffff000000000000000061302c60208601612fd3565b60401b1680836fffffffffffffffffffffffffffffffff198416171784556001600160401b0360801b61306160408701612fd3565b60801b16836001600160401b0360c01b84161782171784555050505050565b6000815161309281856020860161294c565b9290920192915050565b600080845481600182811c9150808316806130b857607f831692505b60208084108214156130d857634e487b7160e01b86526022600452602486fd5b8180156130ec57600181146130fd5761312a565b60ff1986168952848901965061312a565b60008b81526020902060005b868110156131225781548b820152908501908301613109565b505084890196505b505050505050611f1761314d61314783602f60f81b815260010190565b86613080565b64173539b7b760d91b815260050190565b7f19457468657265756d205369676e6564204d6573736167653a0a00000000000081526000835161319681601a85016020880161294c565b8351908301906131ad81601a84016020880161294c565b01601a01949350505050565b600063ffffffff808316818114156131d3576131d3612e80565b6001019392505050565b6000828210156131ef576131ef612e80565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261325557613255612f43565b500690565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906132a390830184612978565b9695505050505050565b6000602082840312156132bf57600080fd5b815161139381612919565b6000602082840312156132dc57600080fd5b8151611393816129d0565b634e487b7160e01b600052602160045260246000fdfea26469706673582212201a0c6e80d2e257435f5fd4a6d0d0ddea9a5fa5e261cfda4fd6759d63082000d964736f6c634300080b0033000000000000000000000000edb7c032fef116163214fcdb6ca481e94794b18700000000000000000000000081c45b295a25ed973ccabfbdd0d2c41b56b7c3a800000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f6170692e676d73747564696f2e6172742f636f6c6c656374696f6e732f6d74672f746f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000e1a4cb40a1d672bb7901b646bb18eb7b70bd5952000000000000000000000000855821255aea2c73117742d58f6f4f317b065972000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000009000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002

Deployed Bytecode

0x6080604052600436106102135760003560e01c8063718e6adb11610118578063bee519c3116100a0578063e7cc72441161006f578063e7cc724414610629578063e985e9c514610689578063ed4a6b0c146106a9578063f2fde38b146106dd578063f96a9d21146106fd57600080fd5b8063bee519c3146105a6578063bf964b4e146105b9578063c002d23d146105ed578063c87b56dd1461060957600080fd5b806394cf795e116100e757806394cf795e1461050f57806395d89b4114610531578063a22cb46514610546578063a91ed8c614610566578063b88d4fde1461058657600080fd5b8063718e6adb146104b15780638456cb59146104c75780638da5cb5b146104dc5780638ecad721146104fa57600080fd5b806335c429471161019b5780635c975abb1161016a5780635c975abb1461040f5780636352211e1461042e5780636b7813ee1461044e57806370a082311461046e578063715018a61461049c57600080fd5b806335c429471461039a5780633f4ba83a146103ba57806342842e0e146103cf57806347d2e792146103ef57600080fd5b806318160ddd116101e257806318160ddd146102d6578063186c02cf1461030857806323b872dd1461031b5780632a55205a1461033b57806330176e131461037a57600080fd5b806301ffc9a71461022757806306fdde031461025c578063081812fc1461027e578063095ea7b3146102b657600080fd5b366102225761022061072a565b005b600080fd5b34801561023357600080fd5b5061024761024236600461292f565b61075f565b60405190151581526020015b60405180910390f35b34801561026857600080fd5b50610271610770565b60405161025391906129a4565b34801561028a57600080fd5b5061029e6102993660046129b7565b610802565b6040516001600160a01b039091168152602001610253565b3480156102c257600080fd5b506102206102d13660046129e5565b61089c565b3480156102e257600080fd5b506009546102f39063ffffffff1681565b60405163ffffffff9091168152602001610253565b610220610316366004612a66565b6109b2565b34801561032757600080fd5b50610220610336366004612ae6565b610bef565b34801561034757600080fd5b5061035b610356366004612b27565b610c20565b604080516001600160a01b039093168352602083019190915201610253565b34801561038657600080fd5b50610220610395366004612b49565b610c69565b3480156103a657600080fd5b506102206103b5366004612bce565b610c9f565b3480156103c657600080fd5b50610220610d6d565b3480156103db57600080fd5b506102206103ea366004612ae6565b610d9f565b3480156103fb57600080fd5b5061022061040a366004612b49565b610dba565b34801561041b57600080fd5b50600654600160a01b900460ff16610247565b34801561043a57600080fd5b5061029e6104493660046129b7565b610e2c565b34801561045a57600080fd5b50610220610469366004612c39565b610ea3565b34801561047a57600080fd5b5061048e610489366004612c4b565b610eda565b604051908152602001610253565b3480156104a857600080fd5b50610220610f61565b3480156104bd57600080fd5b506102f36103e781565b3480156104d357600080fd5b50610220610f95565b3480156104e857600080fd5b506006546001600160a01b031661029e565b34801561050657600080fd5b506102f3600181565b34801561051b57600080fd5b50610524610fc7565b6040516102539190612c68565b34801561053d57600080fd5b50610271611070565b34801561055257600080fd5b50610220610561366004612cb5565b61107f565b34801561057257600080fd5b50610220610581366004612c4b565b61108e565b34801561059257600080fd5b506102206105a1366004612d09565b611109565b6102206105b4366004612de8565b611141565b3480156105c557600080fd5b5061029e7f0000000000000000000000004d8fed48c2e66f531d5b32eb6bf9990e4d7c00d081565b3480156105f957600080fd5b5061048e670214e8348c4f000081565b34801561061557600080fd5b506102716106243660046129b7565b6112aa565b34801561063557600080fd5b50600a5461065f906001600160401b0380821691600160401b8104821691600160801b9091041683565b604080516001600160401b0394851681529284166020840152921691810191909152606001610253565b34801561069557600080fd5b506102476106a4366004612e1d565b611358565b3480156106b557600080fd5b5061029e7f000000000000000000000000b5910053ea70ec6d97e7120f56c70f6b34b7760c81565b3480156106e957600080fd5b506102206106f8366004612c4b565b61139a565b34801561070957600080fd5b5061048e6107183660046129b7565b600b6020526000908152604090205481565b61075d6001600160a01b037f000000000000000000000000b5910053ea70ec6d97e7120f56c70f6b34b7760c1634611533565b565b600061076a8261164c565b92915050565b60606000805461077f90612e4b565b80601f01602080910402602001604051908101604052809291908181526020018280546107ab90612e4b565b80156107f85780601f106107cd576101008083540402835291602001916107f8565b820191906000526020600020905b8154815290600101906020018083116107db57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108805760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108a782610e2c565b9050806001600160a01b0316836001600160a01b031614156109155760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610877565b336001600160a01b038216148061093157506109318133611358565b6109a35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610877565b6109ad8383611671565b505050565b60026007541415610a055760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610877565b6002600755600a546001600160401b0316421080610a345750600a54600160401b90046001600160401b031642115b15610a52576040516317efbd6b60e01b815260040160405180910390fd5b6040516bffffffffffffffffffffffff19606088901b1660208201526001600160e01b031960e086901b16603482015260388101849052600090610aa7906058016040516020818303038152906040526116df565b6000818152600b602052604090205490915063ffffffff80871691610acd918916612e96565b1115610aec5760405163342e754760e21b815260040160405180910390fd5b60095463ffffffff64010000000090910481169087161115610b2157604051630f196e0f60e21b815260040160405180910390fd5b34610b3a670214e8348c4f000063ffffffff8916612eae565b14610b585760405163078d696560e31b815260040160405180910390fd5b610b65600c82858561171a565b6000818152600b60205260408120805463ffffffff89169290610b89908490612e96565b909155505060098054879190600490610bb1908490640100000000900463ffffffff16612ecd565b92506101000a81548163ffffffff021916908363ffffffff160217905550610bd761072a565b610be1878761177e565b505060016007555050505050565b610bf9338261180f565b610c155760405162461bcd60e51b815260040161087790612ef2565b6109ad8383836118e6565b60085460009081906bffffffffffffffffffffffff16610c4261271085612f59565b610c4c9190612eae565b600854600160601b90046001600160a01b03169590945092505050565b6006546001600160a01b03163314610c935760405162461bcd60e51b815260040161087790612f6d565b6109ad600e8383612880565b6006546001600160a01b03163314610cc95760405162461bcd60e51b815260040161087790612f6d565b60005b83811015610d1757610d06858583818110610ce957610ce9612fa2565b9050602002016020810190610cfe9190612c4b565b600c90611a91565b50610d1081612fb8565b9050610ccc565b5060005b81811015610d6657610d55838383818110610d3857610d38612fa2565b9050602002016020810190610d4d9190612c4b565b600c90611432565b50610d5f81612fb8565b9050610d1b565b5050505050565b6006546001600160a01b03163314610d975760405162461bcd60e51b815260040161087790612f6d565b61075d611aa6565b6109ad83838360405180602001604052806000815250611109565b600954600160481b900460ff1680610df15750600a546001600160401b031615801590610df15750600a546001600160401b031642115b15610e0f576040516326ed66f360e11b815260040160405180910390fd5b50506009805469ff0000000000000000001916600160481b179055565b6000818152600260205260408120546001600160a01b03168061076a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610877565b6006546001600160a01b03163314610ecd5760405162461bcd60e51b815260040161087790612f6d565b80600a6109ad8282612fec565b60006001600160a01b038216610f455760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610877565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610f8b5760405162461bcd60e51b815260040161087790612f6d565b61075d6000611b43565b6006546001600160a01b03163314610fbf5760405162461bcd60e51b815260040161087790612f6d565b61075d611b95565b60606000610fd5600c611c1d565b9050806001600160401b03811115610fef57610fef612cf3565b604051908082528060200260200182016040528015611018578160200160208202803683370190505b50915060005b8181101561106b57611031600c82611c27565b83828151811061104357611043612fa2565b6001600160a01b039092166020928302919091019091015261106481612fb8565b905061101e565b505090565b60606001805461077f90612e4b565b61108a338383611c33565b5050565b6006546001600160a01b031633146110b85760405162461bcd60e51b815260040161087790612f6d565b600954600160401b900460ff16156110e3576040516317efbd6b60e01b815260040160405180910390fd5b6009805468ff00000000000000001916600160401b17905561110681600161177e565b50565b611113338361180f565b61112f5760405162461bcd60e51b815260040161087790612ef2565b61113b84848484611d02565b50505050565b600260075414156111945760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610877565b6002600755600a54600160401b90046001600160401b03164210806111ca5750600a54600160801b90046001600160401b031642115b156111e8576040516317efbd6b60e01b815260040160405180910390fd5b600163ffffffff821611156112105760405163342e754760e21b815260040160405180910390fd5b6009546000906112289063ffffffff166103e7612ecd565b63ffffffff169050808263ffffffff16111561125757604051630f196e0f60e21b815260040160405180910390fd5b34611270670214e8348c4f000063ffffffff8516612eae565b1461128e5760405163078d696560e31b815260040160405180910390fd5b61129661072a565b6112a0838361177e565b5050600160075550565b6060816112ce816000908152600260205260409020546001600160a01b0316151590565b6113245760405162461bcd60e51b815260206004820152602160248201527f455243373231436f6d6d6f6e3a20546f6b656e20646f65736e277420657869736044820152601d60fa1b6064820152608401610877565b600e61132f84611d35565b60405160200161134092919061309c565b60405160208183030381529060405291505b50919050565b6001600160a01b03808316600090815260056020908152604080832093851683529290529081205460ff168061139357506113938383611e32565b9392505050565b6006546001600160a01b031633146113c45760405162461bcd60e51b815260040161087790612f6d565b6001600160a01b0381166114295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610877565b61110681611b43565b6000611393836001600160a01b038416611e71565b600080466001811461146957600481146114855761053981146114a1576114b9565b73f034d6a4b1a64f0e6038632d87746ca24b79d32591506114b9565b73633dc916d9f59cf4aa117de2bb8edf7752270ec091506114b9565b73a516d2c64ed7fe2004a93bc123854b229f3bb73891505b506001600160a01b03811661152e5760405162461bcd60e51b815260206004820152603560248201527f5061796d656e7453706c6974746572466163746f72793a206e6f74206465706c60448201527437bcb2b21037b71031bab93932b73a1031b430b4b760591b6064820152608401610877565b919050565b804710156115835760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610877565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146115d0576040519150601f19603f3d011682016040523d82523d6000602084013e6115d5565b606091505b50509050806109ad5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610877565b60006001600160e01b0319821663152a902d60e11b148061076a575061076a82611ec0565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116a682610e2c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006116eb8251611d35565b826040516020016116fd92919061315e565b604051602081830303815290604052805190602001209050919050565b61172684848484611ecb565b61113b5760405162461bcd60e51b815260206004820152602360248201527f5369676e6174757265436865636b65723a20496e76616c6964207369676e617460448201526275726560e81b6064820152608401610877565b60095463ffffffff1660005b8263ffffffff168110156117f05763ffffffff82166103e7116117c0576040516352df9fe560e01b815260040160405180910390fd5b6117d0848363ffffffff16611f20565b816117da816131b9565b92505080806117e890612fb8565b91505061178a565b506009805463ffffffff191663ffffffff929092169190911790555050565b6000818152600260205260408120546001600160a01b03166118885760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610877565b600061189383610e2c565b9050806001600160a01b0316846001600160a01b031614806118ce5750836001600160a01b03166118c384610802565b6001600160a01b0316145b806118de57506118de8185611358565b949350505050565b826001600160a01b03166118f982610e2c565b6001600160a01b0316146119615760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610877565b6001600160a01b0382166119c35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610877565b6119ce838383611f3a565b6119d9600082611671565b6001600160a01b0383166000908152600360205260408120805460019290611a029084906131dd565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a30908490612e96565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611393836001600160a01b038416611f45565b600654600160a01b900460ff16611af65760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610877565b6006805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600654600160a01b900460ff1615611be25760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610877565b6006805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b263390565b600061076a825490565b60006113938383612038565b816001600160a01b0316836001600160a01b03161415611c955760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610877565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611d0d8484846118e6565b611d1984848484612062565b61113b5760405162461bcd60e51b8152600401610877906131f4565b606081611d595750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d835780611d6d81612fb8565b9150611d7c9050600a83612f59565b9150611d5d565b6000816001600160401b03811115611d9d57611d9d612cf3565b6040519080825280601f01601f191660200182016040528015611dc7576020820181803683370190505b5090505b84156118de57611ddc6001836131dd565b9150611de9600a86613246565b611df4906030612e96565b60f81b818381518110611e0957611e09612fa2565b60200101906001600160f81b031916908160001a905350611e2b600a86612f59565b9450611dcb565b600080611e3e8461215d565b90506001600160a01b038116158015906118de5750826001600160a01b0316816001600160a01b03161491505092915050565b6000818152600183016020526040812054611eb85750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561076a565b50600061076a565b600061076a826122b4565b6000611f17611f108585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061230492505050565b8690612328565b95945050505050565b61108a82826040518060200160405280600081525061234a565b6109ad83838361237d565b6000818152600183016020526040812054801561202e576000611f696001836131dd565b8554909150600090611f7d906001906131dd565b9050818114611fe2576000866000018281548110611f9d57611f9d612fa2565b9060005260206000200154905080876000018481548110611fc057611fc0612fa2565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611ff357611ff361325a565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061076a565b600091505061076a565b600082600001828154811061204f5761204f612fa2565b9060005260206000200154905092915050565b60006001600160a01b0384163b1561215557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906120a6903390899088908890600401613270565b6020604051808303816000875af19250505080156120e1575060408051601f3d908101601f191682019092526120de918101906132ad565b60015b61213b573d80801561210f576040519150601f19603f3d011682016040523d82523d6000602084013e612114565b606091505b5080516121335760405162461bcd60e51b8152600401610877906131f4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118de565b5060016118de565b60008046806001811461219257608981146121ae57600481146121ca576201388181146121e65761053981146122025761221a565b73a5409ec958c83c3f309868babaca7c86dcb077c1925061221a565b7358807bad0b376efc12f5ad86aac70e78ed67deae925061221a565b73f57b2c51ded3a29e6891aba85459d600256cf317925061221a565b73ff7ca10af37178bdd056628ef42fd7f799fac77c925061221a565b73e1a2bbc877b29adbc56d2659dbcb0ae14ee6207192505b506001600160a01b03821615806122315750806089145b8061223e57508062013881145b1561224a575092915050565b60405163c455279160e01b81526001600160a01b03858116600483015283169063c455279190602401602060405180830381865afa158015612290573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118de91906132ca565b60006001600160e01b031982166380ac58cd60e01b14806122e557506001600160e01b03198216635b5e139f60e01b145b8061076a57506301ffc9a760e01b6001600160e01b031983161461076a565b600080600061231385856123eb565b915091506123208161245b565b509392505050565b6001600160a01b03811660009081526001830160205260408120541515611393565b6123548383612616565b6123616000848484612062565b6109ad5760405162461bcd60e51b8152600401610877906131f4565b600654600160a01b900460ff16156109ad5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610877565b6000808251604114156124225760208301516040840151606085015160001a61241687828585612764565b94509450505050612454565b82516040141561244c5760208301516040840151612441868383612851565b935093505050612454565b506000905060025b9250929050565b600081600481111561246f5761246f6132e7565b14156124785750565b600181600481111561248c5761248c6132e7565b14156124da5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610877565b60028160048111156124ee576124ee6132e7565b141561253c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610877565b6003816004811115612550576125506132e7565b14156125a95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610877565b60048160048111156125bd576125bd6132e7565b14156111065760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610877565b6001600160a01b03821661266c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610877565b6000818152600260205260409020546001600160a01b0316156126d15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610877565b6126dd60008383611f3a565b6001600160a01b0382166000908152600360205260408120805460019290612706908490612e96565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561279b5750600090506003612848565b8460ff16601b141580156127b357508460ff16601c14155b156127c45750600090506004612848565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612818573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661284157600060019250925050612848565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161287287828885612764565b935093505050935093915050565b82805461288c90612e4b565b90600052602060002090601f0160209004810192826128ae57600085556128f4565b82601f106128c75782800160ff198235161785556128f4565b828001600101855582156128f4579182015b828111156128f45782358255916020019190600101906128d9565b50612900929150612904565b5090565b5b808211156129005760008155600101612905565b6001600160e01b03198116811461110657600080fd5b60006020828403121561294157600080fd5b813561139381612919565b60005b8381101561296757818101518382015260200161294f565b8381111561113b5750506000910152565b6000815180845261299081602086016020860161294c565b601f01601f19169290920160200192915050565b6020815260006113936020830184612978565b6000602082840312156129c957600080fd5b5035919050565b6001600160a01b038116811461110657600080fd5b600080604083850312156129f857600080fd5b8235612a03816129d0565b946020939093013593505050565b803563ffffffff8116811461152e57600080fd5b60008083601f840112612a3757600080fd5b5081356001600160401b03811115612a4e57600080fd5b60208301915083602082850101111561245457600080fd5b60008060008060008060a08789031215612a7f57600080fd5b8635612a8a816129d0565b9550612a9860208801612a11565b9450612aa660408801612a11565b93506060870135925060808701356001600160401b03811115612ac857600080fd5b612ad489828a01612a25565b979a9699509497509295939492505050565b600080600060608486031215612afb57600080fd5b8335612b06816129d0565b92506020840135612b16816129d0565b929592945050506040919091013590565b60008060408385031215612b3a57600080fd5b50508035926020909101359150565b60008060208385031215612b5c57600080fd5b82356001600160401b03811115612b7257600080fd5b612b7e85828601612a25565b90969095509350505050565b60008083601f840112612b9c57600080fd5b5081356001600160401b03811115612bb357600080fd5b6020830191508360208260051b850101111561245457600080fd5b60008060008060408587031215612be457600080fd5b84356001600160401b0380821115612bfb57600080fd5b612c0788838901612b8a565b90965094506020870135915080821115612c2057600080fd5b50612c2d87828801612b8a565b95989497509550505050565b60006060828403121561135257600080fd5b600060208284031215612c5d57600080fd5b8135611393816129d0565b6020808252825182820181905260009190848201906040850190845b81811015612ca95783516001600160a01b031683529284019291840191600101612c84565b50909695505050505050565b60008060408385031215612cc857600080fd5b8235612cd3816129d0565b915060208301358015158114612ce857600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612d1f57600080fd5b8435612d2a816129d0565b93506020850135612d3a816129d0565b92506040850135915060608501356001600160401b0380821115612d5d57600080fd5b818701915087601f830112612d7157600080fd5b813581811115612d8357612d83612cf3565b604051601f8201601f19908116603f01168101908382118183101715612dab57612dab612cf3565b816040528281528a6020848701011115612dc457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612dfb57600080fd5b8235612e06816129d0565b9150612e1460208401612a11565b90509250929050565b60008060408385031215612e3057600080fd5b8235612e3b816129d0565b91506020830135612ce8816129d0565b600181811c90821680612e5f57607f821691505b6020821081141561135257634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115612ea957612ea9612e80565b500190565b6000816000190483118215151615612ec857612ec8612e80565b500290565b600063ffffffff83811690831681811015612eea57612eea612e80565b039392505050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082612f6857612f68612f43565b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612fcc57612fcc612e80565b5060010190565b600081356001600160401b038116811461076a57600080fd5b6001600160401b03612ffd83612fd3565b168154816001600160401b031982161783556fffffffffffffffff000000000000000061302c60208601612fd3565b60401b1680836fffffffffffffffffffffffffffffffff198416171784556001600160401b0360801b61306160408701612fd3565b60801b16836001600160401b0360c01b84161782171784555050505050565b6000815161309281856020860161294c565b9290920192915050565b600080845481600182811c9150808316806130b857607f831692505b60208084108214156130d857634e487b7160e01b86526022600452602486fd5b8180156130ec57600181146130fd5761312a565b60ff1986168952848901965061312a565b60008b81526020902060005b868110156131225781548b820152908501908301613109565b505084890196505b505050505050611f1761314d61314783602f60f81b815260010190565b86613080565b64173539b7b760d91b815260050190565b7f19457468657265756d205369676e6564204d6573736167653a0a00000000000081526000835161319681601a85016020880161294c565b8351908301906131ad81601a84016020880161294c565b01601a01949350505050565b600063ffffffff808316818114156131d3576131d3612e80565b6001019392505050565b6000828210156131ef576131ef612e80565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261325557613255612f43565b500690565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906132a390830184612978565b9695505050505050565b6000602082840312156132bf57600080fd5b815161139381612919565b6000602082840312156132dc57600080fd5b8151611393816129d0565b634e487b7160e01b600052602160045260246000fdfea26469706673582212201a0c6e80d2e257435f5fd4a6d0d0ddea9a5fa5e261cfda4fd6759d63082000d964736f6c634300080b0033

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

000000000000000000000000edb7c032fef116163214fcdb6ca481e94794b18700000000000000000000000081c45b295a25ed973ccabfbdd0d2c41b56b7c3a800000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f6170692e676d73747564696f2e6172742f636f6c6c656374696f6e732f6d74672f746f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000e1a4cb40a1d672bb7901b646bb18eb7b70bd5952000000000000000000000000855821255aea2c73117742d58f6f4f317b065972000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000009000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002

-----Decoded View---------------
Arg [0] : newOwner (address): 0xeDb7c032feF116163214FCDb6ca481E94794b187
Arg [1] : signer (address): 0x81C45b295A25eD973ccaBfBdd0D2c41B56b7C3A8
Arg [2] : baseTokenURI (string): https://api.gmstudio.art/collections/mtg/token
Arg [3] : payees (address[]): 0xe1a4cb40A1D672Bb7901b646Bb18Eb7B70BD5952,0x855821255AEa2c73117742d58F6f4f317B065972
Arg [4] : shares (uint256[]): 1,9
Arg [5] : sharesRoyalties (uint256[]): 1,2

-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 000000000000000000000000edb7c032fef116163214fcdb6ca481e94794b187
Arg [1] : 00000000000000000000000081c45b295a25ed973ccabfbdd0d2c41b56b7c3a8
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [6] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [7] : 68747470733a2f2f6170692e676d73747564696f2e6172742f636f6c6c656374
Arg [8] : 696f6e732f6d74672f746f6b656e000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [10] : 000000000000000000000000e1a4cb40a1d672bb7901b646bb18eb7b70bd5952
Arg [11] : 000000000000000000000000855821255aea2c73117742d58f6f4f317b065972
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000002


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.