ETH Price: $3,066.44 (+1.40%)
Gas: 4 Gwei

Token

Gener8tive Metro S1 (Metro)
 

Overview

Max Total Supply

0 Metro

Holders

222

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
Gener8tive: Deployer
Balance
4 Metro
0xe8d9ad4bfcd008cd7c2cad26c0f13b2bfcf5d588
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x1175c0B1...A5974bb27
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
MetroSeriesERC721

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 500 runs

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

pragma solidity 0.8.9;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

import "./utils/interfaces/IMetroMintAllocationProvider.sol";
import "./utils/interfaces/IMetroTokenUriProvider.sol";
import "./utils/interfaces/IMetroMintHook.sol";
import "./utils/interfaces/IMetroHibernation.sol";

contract MetroSeriesERC721 is ERC721, Ownable, AccessControl
{
    using Counters for Counters.Counter;
    using Strings for uint256;

    // ====================================================
    // ROLES
    // ====================================================
    bytes32 public constant REWARDS_MINTER_ROLE = keccak256("REWARDS_MINTER_ROLE");

    // ====================================================
    // EVENTS
    // ====================================================
    event SeriesPausedStateChange(uint256 seriesId, bool paused);
    event SeriesPremintStateChange(uint256 seriesId, bool enabled);
    event TokenMinted(
        uint256 indexed tokenIndex,
        uint256 indexed seriesId,
        address minter,
        uint256 maxSupply,
        uint256 mintPrice,
        uint8 saleType
    );
    event CauseBeneficiaryChanged(uint256 seriesId, address indexed causeAddress, uint8 causePercentage );
    event TokenUriProviderChanged(uint256 seriesId, address newProviderAddress);
    event AllocationProviderChanged(uint256 seriesId, address newMintAllocationProvider);

    // ====================================================
    // STRUCT, ENUMS, etc
    // ====================================================
    struct SeriesStruct {
        uint256 privateMintPrice; // 32 bytes
        uint256 publicMintPrice; // 32 bytes
        uint256 tokenMintPrice; // 32 bytes
        address payable causeBeneficiary; // 20 bytes
        uint8 causePercentage; // 1 byte
        bool paused; // 1 byte
        bool privateMintActive; // 1 byte
        bool mintWithTokens; // 1 byte
        uint32 maxSupply; // 4 bytes
        uint32 numMinted; // 4 bytes
        IMetroMintAllocationProvider mintAllocationProvider; // 20 bytes
        IMetroTokenUriProvider tokenUriProvider; // 20 bytes
    }

    // ====================================================
    // STATE
    // ====================================================
    // series related vars
    SeriesStruct[] public series;
    mapping(uint256 => uint256) public tokenSeriesMapping;

    // counters, general vars, etc
    Counters.Counter private _tokenIdCounter;
    mapping(string => string) public contractInfo;

    IMetroMintHook public mintHook;
    IMetroHibernation public hibernation;

    bool private hibernationTransferFlag;

    // ====================================================
    // CONSTRUCTOR
    // ====================================================
    constructor(string memory _name, string memory _symbol)
        ERC721(_name, _symbol)
        {
            _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        }

    // ====================================================
    // OVERRIDES
    // ====================================================
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, AccessControl)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    // @notice returns the series-specific-based tokenuri
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(_exists(tokenId), "URI query for nonexistent token");

        // get tokenuri from a per-series provider. enable future-proof interoperability with upcoming series ;)
        if (address(series[tokenSeriesMapping[tokenId]].tokenUriProvider) != address(0)) {
            return series[tokenSeriesMapping[tokenId]].tokenUriProvider.tokenURI(tokenId);
        }

        return "tokenURI provider not set";
    }

    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override
    {
        super._beforeTokenTransfer(from, to, tokenId);

        if(address(hibernation) != address(0) && hibernation.getHibernationEnabled() && !hibernationTransferFlag) {
            require(hibernation.getTokenHibernationState(tokenId) == false, "Token currently hibernating");
        }
    }

    // ====================================================
    // ADMIN
    // ====================================================
    function setContractInfo(string memory key, string memory value) public onlyOwner
    {
        contractInfo[key] = value;
    }

    // @notice sets up a new series
    function createSeries(
        uint32 maxSupply,
        uint256 privateMintPrice,
        uint256 publicMintPrice,
        uint256 tokenMintPrice,
        address payable causeBeneficiary,
        uint8 causePercentage,
        bool mintWithTokens,
        IMetroMintAllocationProvider mintAllocationProvider,
        IMetroTokenUriProvider tokenUriProviderContract
    )
        public
        onlyOwner
    {
        series.push(
            SeriesStruct(
                privateMintPrice,
                publicMintPrice,
                tokenMintPrice,
                causeBeneficiary,
                causePercentage,
                true,// paused
                true, // privateMintActive
                mintWithTokens,// mintWithTokens
                maxSupply,
                0, // numMinted
                mintAllocationProvider,
                tokenUriProviderContract
            )
        );
    }

    // @notice pauses a specific series only
    function toggleSeriesPausedState(uint256 seriesId)
        public
        onlyOwner
    {
        series[seriesId].paused = !series[seriesId].paused;
        emit SeriesPausedStateChange(seriesId, series[seriesId].paused);
    }

    // @notice conclude premint & open public mint
    function toggleSeriesPremintState(uint256 seriesId)
        public
        onlyOwner
    {
        series[seriesId].privateMintActive = !series[seriesId].privateMintActive;
        emit SeriesPremintStateChange(seriesId, series[seriesId].privateMintActive);
    }

    function setSeriesTokenUriProvider(uint256 seriesId, IMetroTokenUriProvider newTokenUriProvider)
        external
        onlyOwner
    {
        series[seriesId].tokenUriProvider = newTokenUriProvider;
        emit TokenUriProviderChanged(seriesId, address(newTokenUriProvider));
    }

    function setSeriesAllocationProvider(uint256 seriesId, IMetroMintAllocationProvider newMintAllocationProvider)
        public
        onlyOwner
    {
        series[seriesId].mintAllocationProvider = newMintAllocationProvider;
        emit AllocationProviderChanged(seriesId, address(newMintAllocationProvider));
    }

    function toggleSeriesMintWithTokens(uint256 seriesId) public onlyOwner
    {
        series[seriesId].mintWithTokens = !series[seriesId].mintWithTokens;
    }

    // @notice change the charity cause beneficiary
    function changeSeriesCause(uint256 seriesId, address payable newCauseBeneficiary, uint8 newPercentage)
        public
        onlyOwner
    {
        series[seriesId].causeBeneficiary = newCauseBeneficiary;
        series[seriesId].causePercentage = newPercentage;

        emit CauseBeneficiaryChanged(seriesId, series[seriesId].causeBeneficiary, newPercentage);
    }

    function setCustomMintAction(IMetroMintHook newMintHook) public onlyOwner
    {
        mintHook = newMintHook;
    }

    function setHibernationContractAddress(IMetroHibernation newHibernation) public onlyOwner
    {
        hibernation = newHibernation;
    }

    function reserveToken(uint256 seriesId) public onlyOwner
    {
        internalMint(seriesId, msg.sender, 0);
    }

    function withdrawFunds(address payable recipient, uint256 amount)
        public
        onlyOwner
    {
        require(address(recipient) != address(0), "Invalid recipient");
        recipient.transfer(amount);
    }

    // ====================================================
    // ROLE GATED
    // ====================================================
    /**
    @notice mint using rewards token
    @dev gated by REWARDS_MINTER_ROLE. caller (hibernation or token) will handle receipt of erc20
    tokens and be assigned this role
     */
    function mintWithRewards(uint256 seriesId, address minter) public onlyRole(REWARDS_MINTER_ROLE)
    {
        require(series[seriesId].mintWithTokens, "Minting with rewards not supported");
        internalMint(seriesId, minter, 3);
    }

    // ====================================================
    // INTERNAL
    // ====================================================
    function internalMint(uint256 seriesId, address minter, uint8 saleType)
        internal
    {
        require(!Address.isContract(minter), "Minting from contracts not allowed");
        require(!series[seriesId].paused, "Series minting is paused");
        require(series[seriesId].numMinted < series[seriesId].maxSupply, "All series works have been minted");

        uint256 tokenId = _tokenIdCounter.current();

        series[seriesId].numMinted ++;
        tokenSeriesMapping[tokenId] = seriesId;
        
        _tokenIdCounter.increment();
        _safeMint(minter, tokenId);

        // check causeBeneficiary is set
        if(address(series[seriesId].causeBeneficiary) != address(0))
        {
            // calculate and transfer to cause
            uint256 causeAmount = (series[seriesId].causePercentage * msg.value) / 100;
            series[seriesId].causeBeneficiary.transfer(causeAmount);
        }

        // call hook on custom handler (future implementation)
        if(address(mintHook) != address(0)) {
            mintHook.internalMintHook(seriesId, tokenId, saleType);
        }

        emit TokenMinted(
            tokenId,
            seriesId,
            minter,
            series[seriesId].maxSupply,
            series[seriesId].numMinted,
            saleType);
    }

    // ====================================================
    // PUBLIC API
    // ====================================================
    function privateMint(
        uint256 seriesId,
        bytes32[] calldata merkleProof,
        string memory extraData
    )
        public
        payable
    {
        require(series[seriesId].privateMintActive, "Private mint closed");
        require(msg.value >= series[seriesId].privateMintPrice, "Insufficient value sent (privateMint)");

        // ensure minter has sufficient allocation
        require(
            series[seriesId].mintAllocationProvider.getRemainingAllocation(
                msg.sender, merkleProof, extraData
            ) > 0, "No remaining allocation"
        );

        internalMint(seriesId, msg.sender, 1);

        // use up mint allocation
        series[seriesId].mintAllocationProvider.consumeAllocation(msg.sender, extraData);
    }

    function publicMint(uint256 seriesId)
        public
        payable
    {   
        require(!series[seriesId].privateMintActive, "Private mint in progress");
        require(msg.value >= series[seriesId].publicMintPrice, "Insufficient value sent (publicMint)");

        internalMint(seriesId, msg.sender, 2);
    }

    /**
    @notice places a token in hibernation
     */
    function startHibernation(uint256 tokenId) public
    {
        require(address(hibernation) != address(0), "Hibernation contract not set");
        require(msg.sender == ownerOf(tokenId), "Token not owned");
        hibernation.startHibernation(tokenId);
    }

    /**
    @notice removes a token from hibernation
    @dev owner has rights to force end hibernation
     */
    function endHibernation(uint256 tokenId) public
    {
        require(address(hibernation) != address(0), "Hibernation contract not set");
        require(msg.sender == ownerOf(tokenId) || msg.sender == owner(), "Insufficient access rights");
        hibernation.endHibernation(tokenId);
    }
    
    /**
    @notice a util method for holders to transfer whil in hibernation
     */ 
    function hibernationTransfer(uint256 tokenId, address recipient) public
    {
        require(hibernation.getHibernationEnabled(), "Hibernation not enabled");
        require(msg.sender == ownerOf(tokenId), "Tranfers can only be made by the token holder");

        hibernationTransferFlag = true;
        safeTransferFrom(msg.sender, recipient, tokenId);
        hibernationTransferFlag = false;
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

File 3 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 4 of 20 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 20 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 7 of 20 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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.
            /// @solidity memory-safe-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.
            /// @solidity memory-safe-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 = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 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 8 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 9 of 20 : IMetroMintAllocationProvider.sol
//SPDX-License-Identifier: MIT

pragma solidity 0.8.9;

interface IMetroMintAllocationProvider
{
    function getRemainingAllocation(
        address _addr,
        bytes32[] calldata _proof,
        string memory extraData
    ) external view returns(uint256 allocation);

    function consumeAllocation(address add, string memory extraData) external;
}

File 10 of 20 : IMetroTokenUriProvider.sol
//SPDX-License-Identifier: MIT

pragma solidity 0.8.9;

interface IMetroTokenUriProvider
{
    function tokenURI(uint256 tokenId) external view returns (string memory tokenUri);
}

File 11 of 20 : IMetroMintHook.sol
//SPDX-License-Identifier: MIT

pragma solidity 0.8.9;

interface IMetroMintHook
{
    function internalMintHook(uint256 seriesId, uint256 tokenId, uint8 saleType) external;
}

File 12 of 20 : IMetroHibernation.sol
//SPDX-License-Identifier: MIT

pragma solidity 0.8.9;

interface IMetroHibernation
{
    // getters
    function getHibernationEnabled() external returns (bool);
    function getTokenHibernationState(uint256 tokenId) external returns (bool);

    // mutating
    function startHibernation(uint256 tokenId) external;
    function endHibernation(uint256 tokenId) external;

    // accounting
    function claimRewards(uint256 tokenId, address _msgSender) external;
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 20 of 20 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"seriesId","type":"uint256"},{"indexed":false,"internalType":"address","name":"newMintAllocationProvider","type":"address"}],"name":"AllocationProviderChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"seriesId","type":"uint256"},{"indexed":true,"internalType":"address","name":"causeAddress","type":"address"},{"indexed":false,"internalType":"uint8","name":"causePercentage","type":"uint8"}],"name":"CauseBeneficiaryChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"seriesId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"paused","type":"bool"}],"name":"SeriesPausedStateChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"seriesId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SeriesPremintStateChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenIndex","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"seriesId","type":"uint256"},{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"maxSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintPrice","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"saleType","type":"uint8"}],"name":"TokenMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"seriesId","type":"uint256"},{"indexed":false,"internalType":"address","name":"newProviderAddress","type":"address"}],"name":"TokenUriProviderChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARDS_MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"seriesId","type":"uint256"},{"internalType":"address payable","name":"newCauseBeneficiary","type":"address"},{"internalType":"uint8","name":"newPercentage","type":"uint8"}],"name":"changeSeriesCause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"contractInfo","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"maxSupply","type":"uint32"},{"internalType":"uint256","name":"privateMintPrice","type":"uint256"},{"internalType":"uint256","name":"publicMintPrice","type":"uint256"},{"internalType":"uint256","name":"tokenMintPrice","type":"uint256"},{"internalType":"address payable","name":"causeBeneficiary","type":"address"},{"internalType":"uint8","name":"causePercentage","type":"uint8"},{"internalType":"bool","name":"mintWithTokens","type":"bool"},{"internalType":"contract IMetroMintAllocationProvider","name":"mintAllocationProvider","type":"address"},{"internalType":"contract IMetroTokenUriProvider","name":"tokenUriProviderContract","type":"address"}],"name":"createSeries","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"endHibernation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hibernation","outputs":[{"internalType":"contract IMetroHibernation","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"hibernationTransfer","outputs":[],"stateMutability":"nonpayable","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":"mintHook","outputs":[{"internalType":"contract IMetroMintHook","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"seriesId","type":"uint256"},{"internalType":"address","name":"minter","type":"address"}],"name":"mintWithRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"seriesId","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"string","name":"extraData","type":"string"}],"name":"privateMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"seriesId","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"seriesId","type":"uint256"}],"name":"reserveToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"series","outputs":[{"internalType":"uint256","name":"privateMintPrice","type":"uint256"},{"internalType":"uint256","name":"publicMintPrice","type":"uint256"},{"internalType":"uint256","name":"tokenMintPrice","type":"uint256"},{"internalType":"address payable","name":"causeBeneficiary","type":"address"},{"internalType":"uint8","name":"causePercentage","type":"uint8"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"privateMintActive","type":"bool"},{"internalType":"bool","name":"mintWithTokens","type":"bool"},{"internalType":"uint32","name":"maxSupply","type":"uint32"},{"internalType":"uint32","name":"numMinted","type":"uint32"},{"internalType":"contract IMetroMintAllocationProvider","name":"mintAllocationProvider","type":"address"},{"internalType":"contract IMetroTokenUriProvider","name":"tokenUriProvider","type":"address"}],"stateMutability":"view","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":"key","type":"string"},{"internalType":"string","name":"value","type":"string"}],"name":"setContractInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMetroMintHook","name":"newMintHook","type":"address"}],"name":"setCustomMintAction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMetroHibernation","name":"newHibernation","type":"address"}],"name":"setHibernationContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"seriesId","type":"uint256"},{"internalType":"contract IMetroMintAllocationProvider","name":"newMintAllocationProvider","type":"address"}],"name":"setSeriesAllocationProvider","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"seriesId","type":"uint256"},{"internalType":"contract IMetroTokenUriProvider","name":"newTokenUriProvider","type":"address"}],"name":"setSeriesTokenUriProvider","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"startHibernation","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":"seriesId","type":"uint256"}],"name":"toggleSeriesMintWithTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"seriesId","type":"uint256"}],"name":"toggleSeriesPausedState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"seriesId","type":"uint256"}],"name":"toggleSeriesPremintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenSeriesMapping","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620040fd380380620040fd833981016040819052620000349162000312565b8151829082906200004d9060009060208501906200019f565b508051620000639060019060208401906200019f565b505050620000806200007a6200009560201b60201c565b62000099565b6200008d600033620000eb565b5050620003b9565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620000f78282620000fb565b5050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff16620000f75760008281526007602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200015b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620001ad906200037c565b90600052602060002090601f016020900481019282620001d157600085556200021c565b82601f10620001ec57805160ff19168380011785556200021c565b828001600101855582156200021c579182015b828111156200021c578251825591602001919060010190620001ff565b506200022a9291506200022e565b5090565b5b808211156200022a57600081556001016200022f565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200026d57600080fd5b81516001600160401b03808211156200028a576200028a62000245565b604051601f8301601f19908116603f01168101908282118183101715620002b557620002b562000245565b81604052838152602092508683858801011115620002d257600080fd5b600091505b83821015620002f65785820183015181830184015290820190620002d7565b83821115620003085760008385830101525b9695505050505050565b600080604083850312156200032657600080fd5b82516001600160401b03808211156200033e57600080fd5b6200034c868387016200025b565b935060208501519150808211156200036357600080fd5b5062000372858286016200025b565b9150509250929050565b600181811c908216806200039157607f821691505b60208210811415620003b357634e487b7160e01b600052602260045260246000fd5b50919050565b613d3480620003c96000396000f3fe6080604052600436106102dd5760003560e01c8063715018a61161017f578063c1075329116100e1578063d547741f1161008a578063ee6604ef11610064578063ee6604ef14610939578063f2fde38b14610959578063f9c99ec61461097957600080fd5b8063d547741f1461083b578063dc22cb6a1461085b578063e985e9c5146108f057600080fd5b8063c8751648116100bb578063c8751648146107c7578063c87b56dd146107e7578063c94c24cd1461080757600080fd5b8063c107532914610767578063c684a6d414610787578063c6e6612e146107a757600080fd5b806395d89b4111610143578063a22cb4651161011d578063a22cb46514610707578063a4cad3ad14610727578063b88d4fde1461074757600080fd5b806395d89b41146106b05780639f594f45146106c5578063a217fddf146106f257600080fd5b8063715018a6146105f75780637848b4231461060c5780638514c8d91461062c5780638da5cb5b1461064c57806391d148541461066a57600080fd5b80632db11544116102435780634c9fa6a2116101ec578063675fafe6116101c6578063675fafe6146105a45780636c72e4e9146105c457806370a08231146105d757600080fd5b80634c9fa6a2146105445780635a0b455e146105645780636352211e1461058457600080fd5b806336568abe1161021d57806336568abe146104e457806342842e0e14610504578063444664c51461052457600080fd5b80632db11544146104915780632f2ff15d146104a457806335e0a0a5146104c457600080fd5b80630fae6f59116102a557806323b872dd1161027f57806323b872dd14610413578063248a9ca3146104335780632a82ef511461047157600080fd5b80630fae6f59146103b35780631091f245146103d357806310c0e158146103f357600080fd5b806301ffc9a7146102e2578063031504961461031757806306fdde0314610339578063081812fc1461035b578063095ea7b314610393575b600080fd5b3480156102ee57600080fd5b506103026102fd366004613452565b610999565b60405190151581526020015b60405180910390f35b34801561032357600080fd5b50610337610332366004613484565b6109aa565b005b34801561034557600080fd5b5061034e6109d4565b60405161030e91906134f9565b34801561036757600080fd5b5061037b61037636600461350c565b610a66565b6040516001600160a01b03909116815260200161030e565b34801561039f57600080fd5b506103376103ae366004613525565b610a8d565b3480156103bf57600080fd5b506103376103ce366004613575565b610ba8565b3480156103df57600080fd5b50600c5461037b906001600160a01b031681565b3480156103ff57600080fd5b5061033761040e36600461350c565b610de5565b34801561041f57600080fd5b5061033761042e36600461361d565b610dfc565b34801561043f57600080fd5b5061046361044e36600461350c565b60009081526007602052604090206001015490565b60405190815260200161030e565b34801561047d57600080fd5b5061034e61048c36600461372b565b610e74565b61033761049f36600461350c565b610f19565b3480156104b057600080fd5b506103376104bf366004613760565b611024565b3480156104d057600080fd5b506103376104df366004613484565b611049565b3480156104f057600080fd5b506103376104ff366004613760565b611073565b34801561051057600080fd5b5061033761051f36600461361d565b6110ff565b34801561053057600080fd5b5061033761053f36600461350c565b61111a565b34801561055057600080fd5b5061033761055f366004613790565b611208565b34801561057057600080fd5b50600d5461037b906001600160a01b031681565b34801561059057600080fd5b5061037b61059f36600461350c565b611242565b3480156105b057600080fd5b506103376105bf36600461350c565b6112a7565b6103376105d23660046137f4565b6113ca565b3480156105e357600080fd5b506104636105f2366004613484565b61165b565b34801561060357600080fd5b506103376116e1565b34801561061857600080fd5b5061033761062736600461350c565b6116f5565b34801561063857600080fd5b50610337610647366004613760565b61176e565b34801561065857600080fd5b506006546001600160a01b031661037b565b34801561067657600080fd5b50610302610685366004613760565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156106bc57600080fd5b5061034e6117fa565b3480156106d157600080fd5b506104636106e036600461350c565b60096020526000908152604090205481565b3480156106fe57600080fd5b50610463600081565b34801561071357600080fd5b50610337610722366004613898565b611809565b34801561073357600080fd5b5061033761074236600461350c565b611814565b34801561075357600080fd5b506103376107623660046138c6565b61191b565b34801561077357600080fd5b50610337610782366004613525565b61199a565b34801561079357600080fd5b506103376107a2366004613760565b611a2e565b3480156107b357600080fd5b506103376107c2366004613760565b611bb0565b3480156107d357600080fd5b506103376107e2366004613760565b611c34565b3480156107f357600080fd5b5061034e61080236600461350c565b611cf3565b34801561081357600080fd5b506104637f22fe7797c29f8cc60f28bb6a2e43a2d14d667a2f241579b5344cf5c188aa74ce81565b34801561084757600080fd5b50610337610856366004613760565b611e8e565b34801561086757600080fd5b5061087b61087636600461350c565b611eb3565b604080519c8d5260208d019b909b52998b01989098526001600160a01b0396871660608b015260ff90951660808a015292151560a089015290151560c0880152151560e087015263ffffffff90811661010087015216610120850152908116610140840152166101608201526101800161030e565b3480156108fc57600080fd5b5061030261090b36600461393a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561094557600080fd5b5061033761095436600461350c565b611f4d565b34801561096557600080fd5b50610337610974366004613484565b612030565b34801561098557600080fd5b50610337610994366004613968565b6120a6565b60006109a4826121aa565b92915050565b6109b26121cf565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080546109e3906139a6565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0f906139a6565b8015610a5c5780601f10610a3157610100808354040283529160200191610a5c565b820191906000526020600020905b815481529060010190602001808311610a3f57829003601f168201915b5050505050905090565b6000610a7182612229565b506000908152600460205260409020546001600160a01b031690565b6000610a9882611242565b9050806001600160a01b0316836001600160a01b03161415610b0b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610b275750610b27813361090b565b610b995760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610b02565b610ba3838361228d565b505050565b610bb06121cf565b60086040518061018001604052808a8152602001898152602001888152602001876001600160a01b031681526020018660ff16815260200160011515815260200160011515815260200185151581526020018b63ffffffff168152602001600063ffffffff168152602001846001600160a01b03168152602001836001600160a01b0316815250908060018154018082558091505060019003906000526020600020906006020160009091909190915060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060808201518160030160146101000a81548160ff021916908360ff16021790555060a08201518160030160156101000a81548160ff02191690831515021790555060c08201518160030160166101000a81548160ff02191690831515021790555060e08201518160030160176101000a81548160ff0219169083151502179055506101008201518160030160186101000a81548163ffffffff021916908363ffffffff16021790555061012082015181600301601c6101000a81548163ffffffff021916908363ffffffff1602179055506101408201518160040160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506101608201518160050160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505050505050505050505050565b610ded6121cf565b610df9813360006122fb565b50565b610e06338261276e565b610e695760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b6064820152608401610b02565b610ba38383836127ed565b8051602081830181018051600b8252928201919093012091528054610e98906139a6565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec4906139a6565b8015610f115780601f10610ee657610100808354040283529160200191610f11565b820191906000526020600020905b815481529060010190602001808311610ef457829003601f168201915b505050505081565b60088181548110610f2c57610f2c6139e1565b906000526020600020906006020160030160169054906101000a900460ff1615610f985760405162461bcd60e51b815260206004820152601860248201527f50726976617465206d696e7420696e2070726f677265737300000000000000006044820152606401610b02565b60088181548110610fab57610fab6139e1565b9060005260206000209060060201600101543410156110185760405162461bcd60e51b8152602060048201526024808201527f496e73756666696369656e742076616c75652073656e7420287075626c69634d604482015263696e742960e01b6064820152608401610b02565b610df9813360026122fb565b60008281526007602052604090206001015461103f81612994565b610ba3838361299e565b6110516121cf565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03811633146110f15760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610b02565b6110fb8282612a40565b5050565b610ba38383836040518060200160405280600081525061191b565b6111226121cf565b60088181548110611135576111356139e1565b906000526020600020906006020160030160159054906101000a900460ff161560088281548110611168576111686139e1565b906000526020600020906006020160030160156101000a81548160ff0219169083151502179055507f56baa9cdae34201d813168dd07284bd19385eb740f9acb53cceeddf0c84c3a8081600883815481106111c5576111c56139e1565b906000526020600020906006020160030160159054906101000a900460ff166040516111fd9291909182521515602082015260400190565b60405180910390a150565b6112106121cf565b80600b8360405161122191906139f7565b90815260200160405180910390209080519060200190610ba39291906133a3565b6000818152600260205260408120546001600160a01b0316806109a45760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b02565b600d546001600160a01b03166112ff5760405162461bcd60e51b815260206004820152601c60248201527f48696265726e6174696f6e20636f6e7472616374206e6f7420736574000000006044820152606401610b02565b61130881611242565b6001600160a01b0316336001600160a01b0316146113685760405162461bcd60e51b815260206004820152600f60248201527f546f6b656e206e6f74206f776e656400000000000000000000000000000000006044820152606401610b02565b600d546040516333afd7f360e11b8152600481018390526001600160a01b039091169063675fafe6906024015b600060405180830381600087803b1580156113af57600080fd5b505af11580156113c3573d6000803e3d6000fd5b5050505050565b600884815481106113dd576113dd6139e1565b906000526020600020906006020160030160169054906101000a900460ff166114485760405162461bcd60e51b815260206004820152601360248201527f50726976617465206d696e7420636c6f736564000000000000000000000000006044820152606401610b02565b6008848154811061145b5761145b6139e1565b9060005260206000209060060201600001543410156114ca5760405162461bcd60e51b815260206004820152602560248201527f496e73756666696369656e742076616c75652073656e742028707269766174656044820152644d696e742960d81b6064820152608401610b02565b6000600885815481106114df576114df6139e1565b600091825260209091206004600690920201810154604051633ea91d1560e21b81526001600160a01b039091169163faa474549161152591339189918991899101613a13565b60206040518083038186803b15801561153d57600080fd5b505afa158015611551573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115759190613a94565b116115c25760405162461bcd60e51b815260206004820152601760248201527f4e6f2072656d61696e696e6720616c6c6f636174696f6e0000000000000000006044820152606401610b02565b6115ce843360016122fb565b600884815481106115e1576115e16139e1565b6000918252602090912060046006909202018101546040516399542c4960e01b81526001600160a01b03909116916399542c4991611623913391869101613aad565b600060405180830381600087803b15801561163d57600080fd5b505af1158015611651573d6000803e3d6000fd5b5050505050505050565b60006001600160a01b0382166116c55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610b02565b506001600160a01b031660009081526003602052604090205490565b6116e96121cf565b6116f36000612ac3565b565b6116fd6121cf565b60088181548110611710576117106139e1565b906000526020600020906006020160030160179054906101000a900460ff161560088281548110611743576117436139e1565b906000526020600020906006020160030160176101000a81548160ff02191690831515021790555050565b6117766121cf565b806008838154811061178a5761178a6139e1565b60009182526020918290206006919091020160050180546001600160a01b0319166001600160a01b0393841617905560408051858152928416918301919091527f6e0c2ef9eb4922e8eab9894bd7a3f701f644933e443358d4859df2d0d49be71291015b60405180910390a15050565b6060600180546109e3906139a6565b6110fb338383612b15565b600d546001600160a01b031661186c5760405162461bcd60e51b815260206004820152601c60248201527f48696265726e6174696f6e20636f6e7472616374206e6f7420736574000000006044820152606401610b02565b61187581611242565b6001600160a01b0316336001600160a01b0316148061189e57506006546001600160a01b031633145b6118ea5760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420616363657373207269676874730000000000006044820152606401610b02565b600d5460405163a4cad3ad60e01b8152600481018390526001600160a01b039091169063a4cad3ad90602401611395565b611925338361276e565b6119885760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b6064820152608401610b02565b61199484848484612be4565b50505050565b6119a26121cf565b6001600160a01b0382166119f85760405162461bcd60e51b815260206004820152601160248201527f496e76616c696420726563697069656e740000000000000000000000000000006044820152606401610b02565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610ba3573d6000803e3d6000fd5b600d60009054906101000a90046001600160a01b03166001600160a01b0316632801714b6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611a7e57600080fd5b505af1158015611a92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab69190613acf565b611b025760405162461bcd60e51b815260206004820152601760248201527f48696265726e6174696f6e206e6f7420656e61626c65640000000000000000006044820152606401610b02565b611b0b82611242565b6001600160a01b0316336001600160a01b031614611b815760405162461bcd60e51b815260206004820152602d60248201527f5472616e666572732063616e206f6e6c79206265206d6164652062792074686560448201526c103a37b5b2b7103437b63232b960991b6064820152608401610b02565b600d805460ff60a01b1916600160a01b179055611b9f3382846110ff565b5050600d805460ff60a01b19169055565b611bb86121cf565b8060088381548110611bcc57611bcc6139e1565b60009182526020918290206006919091020160040180546001600160a01b0319166001600160a01b0393841617905560408051858152928416918301919091527f3832b392773d828b1025f9fcd879d78507be2f353c8d3d92b8efb6b4d982648c91016117ee565b7f22fe7797c29f8cc60f28bb6a2e43a2d14d667a2f241579b5344cf5c188aa74ce611c5e81612994565b60088381548110611c7157611c716139e1565b906000526020600020906006020160030160179054906101000a900460ff16611ce75760405162461bcd60e51b815260206004820152602260248201527f4d696e74696e6720776974682072657761726473206e6f7420737570706f7274604482015261195960f21b6064820152608401610b02565b610ba3838360036122fb565b6000818152600260205260409020546060906001600160a01b0316611d5a5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610b02565b600082815260096020526040812054600880549091908110611d7e57611d7e6139e1565b60009182526020909120600560069092020101546001600160a01b031614611e5557600082815260096020526040902054600880549091908110611dc457611dc46139e1565b600091825260209091206006909102016005015460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd9060240160006040518083038186803b158015611e1957600080fd5b505afa158015611e2d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109a49190810190613aec565b505060408051808201909152601981527f746f6b656e5552492070726f7669646572206e6f742073657400000000000000602082015290565b600082815260076020526040902060010154611ea981612994565b610ba38383612a40565b60088181548110611ec357600080fd5b6000918252602090912060069091020180546001820154600283015460038401546004850154600590950154939550919390926001600160a01b038084169360ff600160a01b8204811694600160a81b8304821694600160b01b8404831694600160b81b85049093169363ffffffff600160c01b8204811694600160e01b9092041692811691168c565b611f556121cf565b60088181548110611f6857611f686139e1565b906000526020600020906006020160030160169054906101000a900460ff161560088281548110611f9b57611f9b6139e1565b906000526020600020906006020160030160166101000a81548160ff0219169083151502179055507f923fc5fd9bc0b9491dd5dcae384c55196741640a452ca91e0528c3f01d1a24b68160088381548110611ff857611ff86139e1565b906000526020600020906006020160030160169054906101000a900460ff166040516111fd9291909182521515602082015260400190565b6120386121cf565b6001600160a01b03811661209d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b02565b610df981612ac3565b6120ae6121cf565b81600884815481106120c2576120c26139e1565b906000526020600020906006020160030160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806008848154811061210b5761210b6139e1565b906000526020600020906006020160030160146101000a81548160ff021916908360ff16021790555060088381548110612147576121476139e1565b6000918252602091829020600690910201600301546040805186815260ff8516938101939093526001600160a01b03909116917f939d4c440b9b66d0e2d3c7a6bde9b4257640639c6516fb32e774484d5fc6b923910160405180910390a2505050565b60006001600160e01b03198216637965db0b60e01b14806109a457506109a482612c62565b6006546001600160a01b031633146116f35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b02565b6000818152600260205260409020546001600160a01b0316610df95760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b02565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906122c282611242565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382163b1561235e5760405162461bcd60e51b815260206004820152602260248201527f4d696e74696e672066726f6d20636f6e747261637473206e6f7420616c6c6f77604482015261195960f21b6064820152608401610b02565b60088381548110612371576123716139e1565b906000526020600020906006020160030160159054906101000a900460ff16156123dd5760405162461bcd60e51b815260206004820152601860248201527f536572696573206d696e74696e672069732070617573656400000000000000006044820152606401610b02565b600883815481106123f0576123f06139e1565b906000526020600020906006020160030160189054906101000a900463ffffffff1663ffffffff166008848154811061242b5761242b6139e1565b6000918252602090912060069091020160030154600160e01b900463ffffffff16106124a35760405162461bcd60e51b815260206004820152602160248201527f416c6c2073657269657320776f726b732068617665206265656e206d696e74656044820152601960fa1b6064820152608401610b02565b60006124ae600a5490565b9050600884815481106124c3576124c36139e1565b600091825260209091206006909102016003018054600160e01b900463ffffffff1690601c6124f183613b79565b825463ffffffff9182166101009390930a9283029190920219909116179055506000818152600960205260409020849055612530600a80546001019055565b61253a8382612cb2565b60006001600160a01b031660088581548110612558576125586139e1565b60009182526020909120600360069092020101546001600160a01b03161461262457600060643460088781548110612592576125926139e1565b60009182526020909120600690910201600301546125ba9190600160a01b900460ff16613b9d565b6125c49190613bbc565b9050600885815481106125d9576125d96139e1565b600091825260208220600360069092020101546040516001600160a01b039091169183156108fc02918491818181858888f19350505050158015612621573d6000803e3d6000fd5b50505b600c546001600160a01b0316156126a457600c546040516311f3309560e21b8152600481018690526024810183905260ff841660448201526001600160a01b03909116906347ccc25490606401600060405180830381600087803b15801561268b57600080fd5b505af115801561269f573d6000803e3d6000fd5b505050505b83817f21765d9719bb380b6786dc703fab6a2240f1d205c093b353c24d8decc6602ec685600888815481106126db576126db6139e1565b906000526020600020906006020160030160189054906101000a900463ffffffff1660088981548110612710576127106139e1565b600091825260209182902060036006909202010154604080516001600160a01b03909516855263ffffffff93841692850192909252600160e01b9004919091169082015260ff8616606082015260800160405180910390a350505050565b60008061277a83611242565b9050806001600160a01b0316846001600160a01b031614806127c157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806127e55750836001600160a01b03166127da84610a66565b6001600160a01b0316145b949350505050565b826001600160a01b031661280082611242565b6001600160a01b0316146128645760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610b02565b6001600160a01b0382166128c65760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b02565b6128d1838383612ccc565b6128dc60008261228d565b6001600160a01b0383166000908152600360205260408120805460019290612905908490613bde565b90915550506001600160a01b0382166000908152600360205260408120805460019290612933908490613bf5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610df98133612e4f565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff166110fb5760008281526007602090815260408083206001600160a01b03851684529091529020805460ff191660011790556129fc3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff16156110fb5760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612b775760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b02565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612bef8484846127ed565b612bfb84848484612ecf565b6119945760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b02565b60006001600160e01b031982166380ac58cd60e01b1480612c9357506001600160e01b03198216635b5e139f60e01b145b806109a457506301ffc9a760e01b6001600160e01b03198316146109a4565b6110fb828260405180602001604052806000815250613027565b600d546001600160a01b031615801590612d695750600d60009054906101000a90046001600160a01b03166001600160a01b0316632801714b6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612d3157600080fd5b505af1158015612d45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d699190613acf565b8015612d7f5750600d54600160a01b900460ff16155b15610ba357600d54604051630101c9f160e41b8152600481018390526001600160a01b039091169063101c9f1090602401602060405180830381600087803b158015612dca57600080fd5b505af1158015612dde573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e029190613acf565b15610ba35760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e2063757272656e746c792068696265726e6174696e6700000000006044820152606401610b02565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff166110fb57612e8d816001600160a01b031660146130a5565b612e988360206130a5565b604051602001612ea9929190613c0d565b60408051601f198184030181529082905262461bcd60e51b8252610b02916004016134f9565b60006001600160a01b0384163b1561301c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612f13903390899088908890600401613c8e565b602060405180830381600087803b158015612f2d57600080fd5b505af1925050508015612f5d575060408051601f3d908101601f19168201909252612f5a91810190613cca565b60015b613002573d808015612f8b576040519150601f19603f3d011682016040523d82523d6000602084013e612f90565b606091505b508051612ffa5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b02565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506127e5565b506001949350505050565b6130318383613255565b61303e6000848484612ecf565b610ba35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b02565b606060006130b4836002613b9d565b6130bf906002613bf5565b67ffffffffffffffff8111156130d7576130d761365e565b6040519080825280601f01601f191660200182016040528015613101576020820181803683370190505b509050600360fc1b8160008151811061311c5761311c6139e1565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061314b5761314b6139e1565b60200101906001600160f81b031916908160001a905350600061316f846002613b9d565b61317a906001613bf5565b90505b60018111156131ff577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106131bb576131bb6139e1565b1a60f81b8282815181106131d1576131d16139e1565b60200101906001600160f81b031916908160001a90535060049490941c936131f881613ce7565b905061317d565b50831561324e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b02565b9392505050565b6001600160a01b0382166132ab5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b02565b6000818152600260205260409020546001600160a01b0316156133105760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b02565b61331c60008383612ccc565b6001600160a01b0382166000908152600360205260408120805460019290613345908490613bf5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546133af906139a6565b90600052602060002090601f0160209004810192826133d15760008555613417565b82601f106133ea57805160ff1916838001178555613417565b82800160010185558215613417579182015b828111156134175782518255916020019190600101906133fc565b50613423929150613427565b5090565b5b808211156134235760008155600101613428565b6001600160e01b031981168114610df957600080fd5b60006020828403121561346457600080fd5b813561324e8161343c565b6001600160a01b0381168114610df957600080fd5b60006020828403121561349657600080fd5b813561324e8161346f565b60005b838110156134bc5781810151838201526020016134a4565b838111156119945750506000910152565b600081518084526134e58160208601602086016134a1565b601f01601f19169290920160200192915050565b60208152600061324e60208301846134cd565b60006020828403121561351e57600080fd5b5035919050565b6000806040838503121561353857600080fd5b82356135438161346f565b946020939093013593505050565b803560ff8116811461356257600080fd5b919050565b8015158114610df957600080fd5b60008060008060008060008060006101208a8c03121561359457600080fd5b893563ffffffff811681146135a857600080fd5b985060208a0135975060408a0135965060608a0135955060808a01356135cd8161346f565b94506135db60a08b01613551565b935060c08a01356135eb81613567565b925060e08a01356135fb8161346f565b91506101008a013561360c8161346f565b809150509295985092959850929598565b60008060006060848603121561363257600080fd5b833561363d8161346f565b9250602084013561364d8161346f565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561369d5761369d61365e565b604052919050565b600067ffffffffffffffff8211156136bf576136bf61365e565b50601f01601f191660200190565b60006136e06136db846136a5565b613674565b90508281528383830111156136f457600080fd5b828260208301376000602084830101529392505050565b600082601f83011261371c57600080fd5b61324e838335602085016136cd565b60006020828403121561373d57600080fd5b813567ffffffffffffffff81111561375457600080fd5b6127e58482850161370b565b6000806040838503121561377357600080fd5b8235915060208301356137858161346f565b809150509250929050565b600080604083850312156137a357600080fd5b823567ffffffffffffffff808211156137bb57600080fd5b6137c78683870161370b565b935060208501359150808211156137dd57600080fd5b506137ea8582860161370b565b9150509250929050565b6000806000806060858703121561380a57600080fd5b84359350602085013567ffffffffffffffff8082111561382957600080fd5b818701915087601f83011261383d57600080fd5b81358181111561384c57600080fd5b8860208260051b850101111561386157600080fd5b60208301955080945050604087013591508082111561387f57600080fd5b5061388c8782880161370b565b91505092959194509250565b600080604083850312156138ab57600080fd5b82356138b68161346f565b9150602083013561378581613567565b600080600080608085870312156138dc57600080fd5b84356138e78161346f565b935060208501356138f78161346f565b925060408501359150606085013567ffffffffffffffff81111561391a57600080fd5b8501601f8101871361392b57600080fd5b61388c878235602084016136cd565b6000806040838503121561394d57600080fd5b82356139588161346f565b915060208301356137858161346f565b60008060006060848603121561397d57600080fd5b83359250602084013561398f8161346f565b915061399d60408501613551565b90509250925092565b600181811c908216806139ba57607f821691505b602082108114156139db57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60008251613a098184602087016134a1565b9190910192915050565b6001600160a01b03851681526060602082015282606082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff841115613a5b57600080fd5b8360051b80866080850137808301905060808101600081526080848303016040850152613a8881866134cd565b98975050505050505050565b600060208284031215613aa657600080fd5b5051919050565b6001600160a01b03831681526040602082015260006127e560408301846134cd565b600060208284031215613ae157600080fd5b815161324e81613567565b600060208284031215613afe57600080fd5b815167ffffffffffffffff811115613b1557600080fd5b8201601f81018413613b2657600080fd5b8051613b346136db826136a5565b818152856020838501011115613b4957600080fd5b613b5a8260208301602086016134a1565b95945050505050565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff80831681811415613b9357613b93613b63565b6001019392505050565b6000816000190483118215151615613bb757613bb7613b63565b500290565b600082613bd957634e487b7160e01b600052601260045260246000fd5b500490565b600082821015613bf057613bf0613b63565b500390565b60008219821115613c0857613c08613b63565b500190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613c458160178501602088016134a1565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613c828160288401602088016134a1565b01602801949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613cc060808301846134cd565b9695505050505050565b600060208284031215613cdc57600080fd5b815161324e8161343c565b600081613cf657613cf6613b63565b50600019019056fea264697066735822122051d5a487aea2817b88b5f1570182d3fb77da8c31ba2ca3e9176c499c0e74b3b964736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001047656e65723874697665204d6574726f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054d6574726f000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102dd5760003560e01c8063715018a61161017f578063c1075329116100e1578063d547741f1161008a578063ee6604ef11610064578063ee6604ef14610939578063f2fde38b14610959578063f9c99ec61461097957600080fd5b8063d547741f1461083b578063dc22cb6a1461085b578063e985e9c5146108f057600080fd5b8063c8751648116100bb578063c8751648146107c7578063c87b56dd146107e7578063c94c24cd1461080757600080fd5b8063c107532914610767578063c684a6d414610787578063c6e6612e146107a757600080fd5b806395d89b4111610143578063a22cb4651161011d578063a22cb46514610707578063a4cad3ad14610727578063b88d4fde1461074757600080fd5b806395d89b41146106b05780639f594f45146106c5578063a217fddf146106f257600080fd5b8063715018a6146105f75780637848b4231461060c5780638514c8d91461062c5780638da5cb5b1461064c57806391d148541461066a57600080fd5b80632db11544116102435780634c9fa6a2116101ec578063675fafe6116101c6578063675fafe6146105a45780636c72e4e9146105c457806370a08231146105d757600080fd5b80634c9fa6a2146105445780635a0b455e146105645780636352211e1461058457600080fd5b806336568abe1161021d57806336568abe146104e457806342842e0e14610504578063444664c51461052457600080fd5b80632db11544146104915780632f2ff15d146104a457806335e0a0a5146104c457600080fd5b80630fae6f59116102a557806323b872dd1161027f57806323b872dd14610413578063248a9ca3146104335780632a82ef511461047157600080fd5b80630fae6f59146103b35780631091f245146103d357806310c0e158146103f357600080fd5b806301ffc9a7146102e2578063031504961461031757806306fdde0314610339578063081812fc1461035b578063095ea7b314610393575b600080fd5b3480156102ee57600080fd5b506103026102fd366004613452565b610999565b60405190151581526020015b60405180910390f35b34801561032357600080fd5b50610337610332366004613484565b6109aa565b005b34801561034557600080fd5b5061034e6109d4565b60405161030e91906134f9565b34801561036757600080fd5b5061037b61037636600461350c565b610a66565b6040516001600160a01b03909116815260200161030e565b34801561039f57600080fd5b506103376103ae366004613525565b610a8d565b3480156103bf57600080fd5b506103376103ce366004613575565b610ba8565b3480156103df57600080fd5b50600c5461037b906001600160a01b031681565b3480156103ff57600080fd5b5061033761040e36600461350c565b610de5565b34801561041f57600080fd5b5061033761042e36600461361d565b610dfc565b34801561043f57600080fd5b5061046361044e36600461350c565b60009081526007602052604090206001015490565b60405190815260200161030e565b34801561047d57600080fd5b5061034e61048c36600461372b565b610e74565b61033761049f36600461350c565b610f19565b3480156104b057600080fd5b506103376104bf366004613760565b611024565b3480156104d057600080fd5b506103376104df366004613484565b611049565b3480156104f057600080fd5b506103376104ff366004613760565b611073565b34801561051057600080fd5b5061033761051f36600461361d565b6110ff565b34801561053057600080fd5b5061033761053f36600461350c565b61111a565b34801561055057600080fd5b5061033761055f366004613790565b611208565b34801561057057600080fd5b50600d5461037b906001600160a01b031681565b34801561059057600080fd5b5061037b61059f36600461350c565b611242565b3480156105b057600080fd5b506103376105bf36600461350c565b6112a7565b6103376105d23660046137f4565b6113ca565b3480156105e357600080fd5b506104636105f2366004613484565b61165b565b34801561060357600080fd5b506103376116e1565b34801561061857600080fd5b5061033761062736600461350c565b6116f5565b34801561063857600080fd5b50610337610647366004613760565b61176e565b34801561065857600080fd5b506006546001600160a01b031661037b565b34801561067657600080fd5b50610302610685366004613760565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156106bc57600080fd5b5061034e6117fa565b3480156106d157600080fd5b506104636106e036600461350c565b60096020526000908152604090205481565b3480156106fe57600080fd5b50610463600081565b34801561071357600080fd5b50610337610722366004613898565b611809565b34801561073357600080fd5b5061033761074236600461350c565b611814565b34801561075357600080fd5b506103376107623660046138c6565b61191b565b34801561077357600080fd5b50610337610782366004613525565b61199a565b34801561079357600080fd5b506103376107a2366004613760565b611a2e565b3480156107b357600080fd5b506103376107c2366004613760565b611bb0565b3480156107d357600080fd5b506103376107e2366004613760565b611c34565b3480156107f357600080fd5b5061034e61080236600461350c565b611cf3565b34801561081357600080fd5b506104637f22fe7797c29f8cc60f28bb6a2e43a2d14d667a2f241579b5344cf5c188aa74ce81565b34801561084757600080fd5b50610337610856366004613760565b611e8e565b34801561086757600080fd5b5061087b61087636600461350c565b611eb3565b604080519c8d5260208d019b909b52998b01989098526001600160a01b0396871660608b015260ff90951660808a015292151560a089015290151560c0880152151560e087015263ffffffff90811661010087015216610120850152908116610140840152166101608201526101800161030e565b3480156108fc57600080fd5b5061030261090b36600461393a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561094557600080fd5b5061033761095436600461350c565b611f4d565b34801561096557600080fd5b50610337610974366004613484565b612030565b34801561098557600080fd5b50610337610994366004613968565b6120a6565b60006109a4826121aa565b92915050565b6109b26121cf565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080546109e3906139a6565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0f906139a6565b8015610a5c5780601f10610a3157610100808354040283529160200191610a5c565b820191906000526020600020905b815481529060010190602001808311610a3f57829003601f168201915b5050505050905090565b6000610a7182612229565b506000908152600460205260409020546001600160a01b031690565b6000610a9882611242565b9050806001600160a01b0316836001600160a01b03161415610b0b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610b275750610b27813361090b565b610b995760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610b02565b610ba3838361228d565b505050565b610bb06121cf565b60086040518061018001604052808a8152602001898152602001888152602001876001600160a01b031681526020018660ff16815260200160011515815260200160011515815260200185151581526020018b63ffffffff168152602001600063ffffffff168152602001846001600160a01b03168152602001836001600160a01b0316815250908060018154018082558091505060019003906000526020600020906006020160009091909190915060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060808201518160030160146101000a81548160ff021916908360ff16021790555060a08201518160030160156101000a81548160ff02191690831515021790555060c08201518160030160166101000a81548160ff02191690831515021790555060e08201518160030160176101000a81548160ff0219169083151502179055506101008201518160030160186101000a81548163ffffffff021916908363ffffffff16021790555061012082015181600301601c6101000a81548163ffffffff021916908363ffffffff1602179055506101408201518160040160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506101608201518160050160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505050505050505050505050565b610ded6121cf565b610df9813360006122fb565b50565b610e06338261276e565b610e695760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b6064820152608401610b02565b610ba38383836127ed565b8051602081830181018051600b8252928201919093012091528054610e98906139a6565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec4906139a6565b8015610f115780601f10610ee657610100808354040283529160200191610f11565b820191906000526020600020905b815481529060010190602001808311610ef457829003601f168201915b505050505081565b60088181548110610f2c57610f2c6139e1565b906000526020600020906006020160030160169054906101000a900460ff1615610f985760405162461bcd60e51b815260206004820152601860248201527f50726976617465206d696e7420696e2070726f677265737300000000000000006044820152606401610b02565b60088181548110610fab57610fab6139e1565b9060005260206000209060060201600101543410156110185760405162461bcd60e51b8152602060048201526024808201527f496e73756666696369656e742076616c75652073656e7420287075626c69634d604482015263696e742960e01b6064820152608401610b02565b610df9813360026122fb565b60008281526007602052604090206001015461103f81612994565b610ba3838361299e565b6110516121cf565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03811633146110f15760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610b02565b6110fb8282612a40565b5050565b610ba38383836040518060200160405280600081525061191b565b6111226121cf565b60088181548110611135576111356139e1565b906000526020600020906006020160030160159054906101000a900460ff161560088281548110611168576111686139e1565b906000526020600020906006020160030160156101000a81548160ff0219169083151502179055507f56baa9cdae34201d813168dd07284bd19385eb740f9acb53cceeddf0c84c3a8081600883815481106111c5576111c56139e1565b906000526020600020906006020160030160159054906101000a900460ff166040516111fd9291909182521515602082015260400190565b60405180910390a150565b6112106121cf565b80600b8360405161122191906139f7565b90815260200160405180910390209080519060200190610ba39291906133a3565b6000818152600260205260408120546001600160a01b0316806109a45760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b02565b600d546001600160a01b03166112ff5760405162461bcd60e51b815260206004820152601c60248201527f48696265726e6174696f6e20636f6e7472616374206e6f7420736574000000006044820152606401610b02565b61130881611242565b6001600160a01b0316336001600160a01b0316146113685760405162461bcd60e51b815260206004820152600f60248201527f546f6b656e206e6f74206f776e656400000000000000000000000000000000006044820152606401610b02565b600d546040516333afd7f360e11b8152600481018390526001600160a01b039091169063675fafe6906024015b600060405180830381600087803b1580156113af57600080fd5b505af11580156113c3573d6000803e3d6000fd5b5050505050565b600884815481106113dd576113dd6139e1565b906000526020600020906006020160030160169054906101000a900460ff166114485760405162461bcd60e51b815260206004820152601360248201527f50726976617465206d696e7420636c6f736564000000000000000000000000006044820152606401610b02565b6008848154811061145b5761145b6139e1565b9060005260206000209060060201600001543410156114ca5760405162461bcd60e51b815260206004820152602560248201527f496e73756666696369656e742076616c75652073656e742028707269766174656044820152644d696e742960d81b6064820152608401610b02565b6000600885815481106114df576114df6139e1565b600091825260209091206004600690920201810154604051633ea91d1560e21b81526001600160a01b039091169163faa474549161152591339189918991899101613a13565b60206040518083038186803b15801561153d57600080fd5b505afa158015611551573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115759190613a94565b116115c25760405162461bcd60e51b815260206004820152601760248201527f4e6f2072656d61696e696e6720616c6c6f636174696f6e0000000000000000006044820152606401610b02565b6115ce843360016122fb565b600884815481106115e1576115e16139e1565b6000918252602090912060046006909202018101546040516399542c4960e01b81526001600160a01b03909116916399542c4991611623913391869101613aad565b600060405180830381600087803b15801561163d57600080fd5b505af1158015611651573d6000803e3d6000fd5b5050505050505050565b60006001600160a01b0382166116c55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610b02565b506001600160a01b031660009081526003602052604090205490565b6116e96121cf565b6116f36000612ac3565b565b6116fd6121cf565b60088181548110611710576117106139e1565b906000526020600020906006020160030160179054906101000a900460ff161560088281548110611743576117436139e1565b906000526020600020906006020160030160176101000a81548160ff02191690831515021790555050565b6117766121cf565b806008838154811061178a5761178a6139e1565b60009182526020918290206006919091020160050180546001600160a01b0319166001600160a01b0393841617905560408051858152928416918301919091527f6e0c2ef9eb4922e8eab9894bd7a3f701f644933e443358d4859df2d0d49be71291015b60405180910390a15050565b6060600180546109e3906139a6565b6110fb338383612b15565b600d546001600160a01b031661186c5760405162461bcd60e51b815260206004820152601c60248201527f48696265726e6174696f6e20636f6e7472616374206e6f7420736574000000006044820152606401610b02565b61187581611242565b6001600160a01b0316336001600160a01b0316148061189e57506006546001600160a01b031633145b6118ea5760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420616363657373207269676874730000000000006044820152606401610b02565b600d5460405163a4cad3ad60e01b8152600481018390526001600160a01b039091169063a4cad3ad90602401611395565b611925338361276e565b6119885760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b6064820152608401610b02565b61199484848484612be4565b50505050565b6119a26121cf565b6001600160a01b0382166119f85760405162461bcd60e51b815260206004820152601160248201527f496e76616c696420726563697069656e740000000000000000000000000000006044820152606401610b02565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610ba3573d6000803e3d6000fd5b600d60009054906101000a90046001600160a01b03166001600160a01b0316632801714b6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611a7e57600080fd5b505af1158015611a92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab69190613acf565b611b025760405162461bcd60e51b815260206004820152601760248201527f48696265726e6174696f6e206e6f7420656e61626c65640000000000000000006044820152606401610b02565b611b0b82611242565b6001600160a01b0316336001600160a01b031614611b815760405162461bcd60e51b815260206004820152602d60248201527f5472616e666572732063616e206f6e6c79206265206d6164652062792074686560448201526c103a37b5b2b7103437b63232b960991b6064820152608401610b02565b600d805460ff60a01b1916600160a01b179055611b9f3382846110ff565b5050600d805460ff60a01b19169055565b611bb86121cf565b8060088381548110611bcc57611bcc6139e1565b60009182526020918290206006919091020160040180546001600160a01b0319166001600160a01b0393841617905560408051858152928416918301919091527f3832b392773d828b1025f9fcd879d78507be2f353c8d3d92b8efb6b4d982648c91016117ee565b7f22fe7797c29f8cc60f28bb6a2e43a2d14d667a2f241579b5344cf5c188aa74ce611c5e81612994565b60088381548110611c7157611c716139e1565b906000526020600020906006020160030160179054906101000a900460ff16611ce75760405162461bcd60e51b815260206004820152602260248201527f4d696e74696e6720776974682072657761726473206e6f7420737570706f7274604482015261195960f21b6064820152608401610b02565b610ba3838360036122fb565b6000818152600260205260409020546060906001600160a01b0316611d5a5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610b02565b600082815260096020526040812054600880549091908110611d7e57611d7e6139e1565b60009182526020909120600560069092020101546001600160a01b031614611e5557600082815260096020526040902054600880549091908110611dc457611dc46139e1565b600091825260209091206006909102016005015460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd9060240160006040518083038186803b158015611e1957600080fd5b505afa158015611e2d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109a49190810190613aec565b505060408051808201909152601981527f746f6b656e5552492070726f7669646572206e6f742073657400000000000000602082015290565b600082815260076020526040902060010154611ea981612994565b610ba38383612a40565b60088181548110611ec357600080fd5b6000918252602090912060069091020180546001820154600283015460038401546004850154600590950154939550919390926001600160a01b038084169360ff600160a01b8204811694600160a81b8304821694600160b01b8404831694600160b81b85049093169363ffffffff600160c01b8204811694600160e01b9092041692811691168c565b611f556121cf565b60088181548110611f6857611f686139e1565b906000526020600020906006020160030160169054906101000a900460ff161560088281548110611f9b57611f9b6139e1565b906000526020600020906006020160030160166101000a81548160ff0219169083151502179055507f923fc5fd9bc0b9491dd5dcae384c55196741640a452ca91e0528c3f01d1a24b68160088381548110611ff857611ff86139e1565b906000526020600020906006020160030160169054906101000a900460ff166040516111fd9291909182521515602082015260400190565b6120386121cf565b6001600160a01b03811661209d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b02565b610df981612ac3565b6120ae6121cf565b81600884815481106120c2576120c26139e1565b906000526020600020906006020160030160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806008848154811061210b5761210b6139e1565b906000526020600020906006020160030160146101000a81548160ff021916908360ff16021790555060088381548110612147576121476139e1565b6000918252602091829020600690910201600301546040805186815260ff8516938101939093526001600160a01b03909116917f939d4c440b9b66d0e2d3c7a6bde9b4257640639c6516fb32e774484d5fc6b923910160405180910390a2505050565b60006001600160e01b03198216637965db0b60e01b14806109a457506109a482612c62565b6006546001600160a01b031633146116f35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b02565b6000818152600260205260409020546001600160a01b0316610df95760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b02565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906122c282611242565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382163b1561235e5760405162461bcd60e51b815260206004820152602260248201527f4d696e74696e672066726f6d20636f6e747261637473206e6f7420616c6c6f77604482015261195960f21b6064820152608401610b02565b60088381548110612371576123716139e1565b906000526020600020906006020160030160159054906101000a900460ff16156123dd5760405162461bcd60e51b815260206004820152601860248201527f536572696573206d696e74696e672069732070617573656400000000000000006044820152606401610b02565b600883815481106123f0576123f06139e1565b906000526020600020906006020160030160189054906101000a900463ffffffff1663ffffffff166008848154811061242b5761242b6139e1565b6000918252602090912060069091020160030154600160e01b900463ffffffff16106124a35760405162461bcd60e51b815260206004820152602160248201527f416c6c2073657269657320776f726b732068617665206265656e206d696e74656044820152601960fa1b6064820152608401610b02565b60006124ae600a5490565b9050600884815481106124c3576124c36139e1565b600091825260209091206006909102016003018054600160e01b900463ffffffff1690601c6124f183613b79565b825463ffffffff9182166101009390930a9283029190920219909116179055506000818152600960205260409020849055612530600a80546001019055565b61253a8382612cb2565b60006001600160a01b031660088581548110612558576125586139e1565b60009182526020909120600360069092020101546001600160a01b03161461262457600060643460088781548110612592576125926139e1565b60009182526020909120600690910201600301546125ba9190600160a01b900460ff16613b9d565b6125c49190613bbc565b9050600885815481106125d9576125d96139e1565b600091825260208220600360069092020101546040516001600160a01b039091169183156108fc02918491818181858888f19350505050158015612621573d6000803e3d6000fd5b50505b600c546001600160a01b0316156126a457600c546040516311f3309560e21b8152600481018690526024810183905260ff841660448201526001600160a01b03909116906347ccc25490606401600060405180830381600087803b15801561268b57600080fd5b505af115801561269f573d6000803e3d6000fd5b505050505b83817f21765d9719bb380b6786dc703fab6a2240f1d205c093b353c24d8decc6602ec685600888815481106126db576126db6139e1565b906000526020600020906006020160030160189054906101000a900463ffffffff1660088981548110612710576127106139e1565b600091825260209182902060036006909202010154604080516001600160a01b03909516855263ffffffff93841692850192909252600160e01b9004919091169082015260ff8616606082015260800160405180910390a350505050565b60008061277a83611242565b9050806001600160a01b0316846001600160a01b031614806127c157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806127e55750836001600160a01b03166127da84610a66565b6001600160a01b0316145b949350505050565b826001600160a01b031661280082611242565b6001600160a01b0316146128645760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610b02565b6001600160a01b0382166128c65760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b02565b6128d1838383612ccc565b6128dc60008261228d565b6001600160a01b0383166000908152600360205260408120805460019290612905908490613bde565b90915550506001600160a01b0382166000908152600360205260408120805460019290612933908490613bf5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610df98133612e4f565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff166110fb5760008281526007602090815260408083206001600160a01b03851684529091529020805460ff191660011790556129fc3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff16156110fb5760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612b775760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b02565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612bef8484846127ed565b612bfb84848484612ecf565b6119945760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b02565b60006001600160e01b031982166380ac58cd60e01b1480612c9357506001600160e01b03198216635b5e139f60e01b145b806109a457506301ffc9a760e01b6001600160e01b03198316146109a4565b6110fb828260405180602001604052806000815250613027565b600d546001600160a01b031615801590612d695750600d60009054906101000a90046001600160a01b03166001600160a01b0316632801714b6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612d3157600080fd5b505af1158015612d45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d699190613acf565b8015612d7f5750600d54600160a01b900460ff16155b15610ba357600d54604051630101c9f160e41b8152600481018390526001600160a01b039091169063101c9f1090602401602060405180830381600087803b158015612dca57600080fd5b505af1158015612dde573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e029190613acf565b15610ba35760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e2063757272656e746c792068696265726e6174696e6700000000006044820152606401610b02565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff166110fb57612e8d816001600160a01b031660146130a5565b612e988360206130a5565b604051602001612ea9929190613c0d565b60408051601f198184030181529082905262461bcd60e51b8252610b02916004016134f9565b60006001600160a01b0384163b1561301c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612f13903390899088908890600401613c8e565b602060405180830381600087803b158015612f2d57600080fd5b505af1925050508015612f5d575060408051601f3d908101601f19168201909252612f5a91810190613cca565b60015b613002573d808015612f8b576040519150601f19603f3d011682016040523d82523d6000602084013e612f90565b606091505b508051612ffa5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b02565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506127e5565b506001949350505050565b6130318383613255565b61303e6000848484612ecf565b610ba35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b02565b606060006130b4836002613b9d565b6130bf906002613bf5565b67ffffffffffffffff8111156130d7576130d761365e565b6040519080825280601f01601f191660200182016040528015613101576020820181803683370190505b509050600360fc1b8160008151811061311c5761311c6139e1565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061314b5761314b6139e1565b60200101906001600160f81b031916908160001a905350600061316f846002613b9d565b61317a906001613bf5565b90505b60018111156131ff577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106131bb576131bb6139e1565b1a60f81b8282815181106131d1576131d16139e1565b60200101906001600160f81b031916908160001a90535060049490941c936131f881613ce7565b905061317d565b50831561324e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b02565b9392505050565b6001600160a01b0382166132ab5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b02565b6000818152600260205260409020546001600160a01b0316156133105760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b02565b61331c60008383612ccc565b6001600160a01b0382166000908152600360205260408120805460019290613345908490613bf5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546133af906139a6565b90600052602060002090601f0160209004810192826133d15760008555613417565b82601f106133ea57805160ff1916838001178555613417565b82800160010185558215613417579182015b828111156134175782518255916020019190600101906133fc565b50613423929150613427565b5090565b5b808211156134235760008155600101613428565b6001600160e01b031981168114610df957600080fd5b60006020828403121561346457600080fd5b813561324e8161343c565b6001600160a01b0381168114610df957600080fd5b60006020828403121561349657600080fd5b813561324e8161346f565b60005b838110156134bc5781810151838201526020016134a4565b838111156119945750506000910152565b600081518084526134e58160208601602086016134a1565b601f01601f19169290920160200192915050565b60208152600061324e60208301846134cd565b60006020828403121561351e57600080fd5b5035919050565b6000806040838503121561353857600080fd5b82356135438161346f565b946020939093013593505050565b803560ff8116811461356257600080fd5b919050565b8015158114610df957600080fd5b60008060008060008060008060006101208a8c03121561359457600080fd5b893563ffffffff811681146135a857600080fd5b985060208a0135975060408a0135965060608a0135955060808a01356135cd8161346f565b94506135db60a08b01613551565b935060c08a01356135eb81613567565b925060e08a01356135fb8161346f565b91506101008a013561360c8161346f565b809150509295985092959850929598565b60008060006060848603121561363257600080fd5b833561363d8161346f565b9250602084013561364d8161346f565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561369d5761369d61365e565b604052919050565b600067ffffffffffffffff8211156136bf576136bf61365e565b50601f01601f191660200190565b60006136e06136db846136a5565b613674565b90508281528383830111156136f457600080fd5b828260208301376000602084830101529392505050565b600082601f83011261371c57600080fd5b61324e838335602085016136cd565b60006020828403121561373d57600080fd5b813567ffffffffffffffff81111561375457600080fd5b6127e58482850161370b565b6000806040838503121561377357600080fd5b8235915060208301356137858161346f565b809150509250929050565b600080604083850312156137a357600080fd5b823567ffffffffffffffff808211156137bb57600080fd5b6137c78683870161370b565b935060208501359150808211156137dd57600080fd5b506137ea8582860161370b565b9150509250929050565b6000806000806060858703121561380a57600080fd5b84359350602085013567ffffffffffffffff8082111561382957600080fd5b818701915087601f83011261383d57600080fd5b81358181111561384c57600080fd5b8860208260051b850101111561386157600080fd5b60208301955080945050604087013591508082111561387f57600080fd5b5061388c8782880161370b565b91505092959194509250565b600080604083850312156138ab57600080fd5b82356138b68161346f565b9150602083013561378581613567565b600080600080608085870312156138dc57600080fd5b84356138e78161346f565b935060208501356138f78161346f565b925060408501359150606085013567ffffffffffffffff81111561391a57600080fd5b8501601f8101871361392b57600080fd5b61388c878235602084016136cd565b6000806040838503121561394d57600080fd5b82356139588161346f565b915060208301356137858161346f565b60008060006060848603121561397d57600080fd5b83359250602084013561398f8161346f565b915061399d60408501613551565b90509250925092565b600181811c908216806139ba57607f821691505b602082108114156139db57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60008251613a098184602087016134a1565b9190910192915050565b6001600160a01b03851681526060602082015282606082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff841115613a5b57600080fd5b8360051b80866080850137808301905060808101600081526080848303016040850152613a8881866134cd565b98975050505050505050565b600060208284031215613aa657600080fd5b5051919050565b6001600160a01b03831681526040602082015260006127e560408301846134cd565b600060208284031215613ae157600080fd5b815161324e81613567565b600060208284031215613afe57600080fd5b815167ffffffffffffffff811115613b1557600080fd5b8201601f81018413613b2657600080fd5b8051613b346136db826136a5565b818152856020838501011115613b4957600080fd5b613b5a8260208301602086016134a1565b95945050505050565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff80831681811415613b9357613b93613b63565b6001019392505050565b6000816000190483118215151615613bb757613bb7613b63565b500290565b600082613bd957634e487b7160e01b600052601260045260246000fd5b500490565b600082821015613bf057613bf0613b63565b500390565b60008219821115613c0857613c08613b63565b500190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613c458160178501602088016134a1565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613c828160288401602088016134a1565b01602801949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613cc060808301846134cd565b9695505050505050565b600060208284031215613cdc57600080fd5b815161324e8161343c565b600081613cf657613cf6613b63565b50600019019056fea264697066735822122051d5a487aea2817b88b5f1570182d3fb77da8c31ba2ca3e9176c499c0e74b3b964736f6c63430008090033

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.