ETH Price: $3,263.06 (-2.76%)
Gas: 7.1 Gwei

Token

 

Overview

Max Total Supply

2,000

Holders

20

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
thruster.eth
0x6F54d40ccc174F9C7Bd23252E4Db8f1cA4291173
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
NftWatcher

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 15 : NFTWatcher.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";


/// @custom:security-contact [email protected]
contract NftWatcher is ERC1155, AccessControl, Pausable, ERC1155Supply {
    using SafeMath for uint256;
    
    bytes32 private constant OWNER_ROLE = keccak256("OWNER_ROLE");
    bytes32 private constant ALPHA_ROLE = keccak256("ALPHA_ROLE");
    bytes32 private constant BETA_ROLE = keccak256("BETA_ROLE");
    bytes32 private constant PRESALE_ROLE = keccak256("PRESALE_ROLE");

    uint256 private constant BASE_ID = 0;
    uint256 private constant PLUS_ID = 1;
    uint256 private constant PRO_ID = 2;

    string private name = "nft watcher";
    string private symbol = "nw";
    string private _uri = "";

    uint256 public currentCount = 0;
    uint256 public constant maxCount = 2000;

    uint256 private constant maxBaseCount = 1500;
    uint256 private constant maxPlusCount = 450;
    uint256 private constant maxProCount = 50;

    uint256 private baseCount = 0;
    uint256 private plusCount = 0;
    uint256 private proCount = 0;

    uint256 private constant minMintCount = 1;
    uint256 private constant maxMintCount = 3;

    uint256 private constant salePrice = 0.1 ether;
    uint256 private constant betaPrice = 0.05 ether;
    uint256 private constant alphaPrice = 0 ether;

    bool alphaSale = false;
    bool betaSale = false;
    bool presale = false;
    bool sale = false;

    event priceChanged(uint256 newPrice);

    mapping (address => bool) alphaMinterMinted;
    mapping (address => bool) betaMinterMinted;
    mapping (address => bool) presaleMinterMinted;

    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor() ERC1155("") {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(OWNER_ROLE, msg.sender);
        _grantRole(ALPHA_ROLE, msg.sender);
        _grantRole(PRESALE_ROLE, msg.sender);
    }

    function getTier(uint256 index) private returns(uint256) {
        uint256 timestamp = block.timestamp + index;
        uint256 seed = uint256(keccak256(abi.encodePacked(
            timestamp + block.difficulty +
            ((uint256(keccak256(abi.encodePacked(block.coinbase)))) / (timestamp)) +
            block.gaslimit + 
            ((uint256(keccak256(abi.encodePacked(msg.sender)))) / (timestamp)) +
            block.number
        )));

        uint256 passValue = (seed - ((seed / 200) * 200));

        if ( passValue <= 5 && proCount <= maxProCount ) {
            proCount++;
            return 2;
        }
        else if ( passValue <= 50 && plusCount <= maxPlusCount ) {
            plusCount++;
            return 1;
        }
        else {
            baseCount++;
            return 0;
        }
    }

    function setURI(string memory newuri) public onlyRole(OWNER_ROLE) {
        _uri = newuri;
        _setURI(newuri);
    }

    
    function uri(uint _tokenID) override public view returns (string memory) {
        return string(
        abi.encodePacked(
                _uri,
                uint2str(_tokenID),
                ".json"
            ) 
        );
    }

    function pause() public onlyRole(OWNER_ROLE) {
        _pause();
    }

    function unpause() public onlyRole(OWNER_ROLE) {
        _unpause();
    }

    // toggle normal sale
    function toggleSales() public onlyRole(OWNER_ROLE) {
        if ( ! sale ) {
            alphaSale = false;
            betaSale = false;
            presale = false;
            sale = true;
            emit priceChanged(salePrice);
        }
        else {
            sale = false;
        }
    }

    // Toggle the alpha sales system
    function toggleAlphaSales() public onlyRole(OWNER_ROLE) {
        if ( ! alphaSale ) {
            alphaSale = true;
            betaSale = false;
            presale = false;
            sale = false;
            emit priceChanged(alphaPrice);
        }
        else {
            alphaSale = false;
        }
    }

    // Toggle the beta sales system
    function toggleBetaSales() public onlyRole(OWNER_ROLE) {
        if ( ! betaSale ) {
            alphaSale = false;
            betaSale = true;
            presale = false;
            sale = false;
            emit priceChanged(betaPrice);
        }
        else {
            betaSale = false;
        }
    }

    // Toggle the beta sales system
    function togglePreSales() public onlyRole(OWNER_ROLE) {
        if ( ! presale ) {
            alphaSale = false;
            betaSale = false;
            presale = true;
            sale = false;
            emit priceChanged(salePrice);
        }
        else {
            betaSale = false;
        }
    }

    function addAlphaWhitelist(address[] memory alphas) public onlyRole(OWNER_ROLE) {
        for (uint256 i = 0; i < alphas.length; i++) {
            _grantRole(ALPHA_ROLE, alphas[i]);
        }
    }

    function removeAlphaWhitelist(address[] memory alphas) public onlyRole(OWNER_ROLE) {
        for (uint256 i = 0; i < alphas.length; i++) {
            _revokeRole(ALPHA_ROLE, alphas[i]);
        }
    }

    function addBetaWhitelist(address[] memory betas) public onlyRole(OWNER_ROLE) {
        for (uint256 i = 0; i < betas.length; i++) {
            _grantRole(BETA_ROLE, betas[i]);
        }
    }

    function removeBetaWhitelist(address[] memory betas) public onlyRole(OWNER_ROLE) {
        for (uint256 i = 0; i < betas.length; i++) {
            _revokeRole(BETA_ROLE, betas[i]);
        }
    }

    function addPresale(address[] memory pre) public onlyRole(OWNER_ROLE) {
        for (uint256 i = 0; i < pre.length; i++) {
            _grantRole(PRESALE_ROLE, pre[i]);
        }
    }

    function removePresale(address[] memory pre) public onlyRole(OWNER_ROLE) {
        for (uint256 i = 0; i < pre.length; i++) {
            _revokeRole(PRESALE_ROLE, pre[i]);
        }
    }

    function alphaMint()
        public payable onlyRole(ALPHA_ROLE)
    {
        require(alphaSale == true, "Alpha Sale has not started");
        require(currentCount < maxCount, "All passes have been minted");
        require(alphaMinterMinted[msg.sender] == false, "Alpha Minter has already minted");
        uint256 id = getTier(0);

        alphaMinterMinted[msg.sender] = true;
        currentCount++;
        _mint(msg.sender, id, minMintCount, "");
    }

    function betaMint()
        public payable onlyRole(BETA_ROLE)
    {
        require(betaSale == true, "Beta Sale has not started");
        require(currentCount < maxCount, "All passes have been minted");
        require(betaMinterMinted[msg.sender] == false, "Beta Minter has already minted");
        require(msg.value >= betaPrice, "Not enough Eth");
        uint256 id = getTier(0);

        betaMinterMinted[msg.sender] = true;
        currentCount++;
        _mint(msg.sender, id, minMintCount, "");
    }

    function presaleMint( uint256 count )
        public payable onlyRole(PRESALE_ROLE)
    {
        require(presale == true, "Pre Sale has not started");
        require(currentCount < maxCount, "All passes have been minted");
        require(presaleMinterMinted[msg.sender] == false, "Pre Minter has already minted");
        require(msg.value >= salePrice.mul(count), "Not enough Eth");

        presaleMinterMinted[msg.sender] = true;
        for (uint256 i = 0; i < count; i++) {
            uint256 id = getTier(i);

            currentCount++;
            _mint(msg.sender, id, 1, "");
        }
    }

    function mint( uint256 count )
        public payable
    {
        require(sale == true, "Sale has not started");
        require(count >= minMintCount && count <= maxMintCount, "Allowed mint count is between 1-3");
        require(currentCount < maxCount, "All passes have been minted");
        require(msg.value >= salePrice.mul(count), "Not enough Eth");
        // require(msg.value == salePrice.mul(count), "Too much Eth, price to mint is 0.1 Eth. If you are minting 3, your price must be 0.15 Eth.");

        for (uint256 i = 0; i < count; i++) {
            uint256 id = getTier(i);

            currentCount++;
            _mint(msg.sender, id, 1, "");
        }
    }

    function checkAlphaWhitelist(address target_address) public view returns(bool) {
        return hasRole(ALPHA_ROLE, target_address);
    }

    function checkBetaWhitelist(address target_address) public view returns(bool) {
        return hasRole(BETA_ROLE, target_address);
    }

    function checkPresaleWhitelist(address target_address) public view returns(bool) {
        return hasRole(PRESALE_ROLE, target_address);
    }

    function checkAlphaMinted(address target_address) public view returns(bool) {
        return alphaMinterMinted[target_address];
    }

    function checkBetaMinted(address target_address) public view returns(bool) {
        return betaMinterMinted[target_address];
    }

    function checkPresaleMinted(address target_address) public view returns(bool) {
        return presaleMinterMinted[target_address];
    }

    function getCurrentCount() public view returns(uint256) {
        return currentCount;
    }

    function totalSupply() public pure returns(uint256) {
        return maxCount;
    }

    function saleActive() public view returns(bool) {
        return sale;
    }

    function alphaSaleActive() public view returns(bool) {
        return alphaSale;
    }

    function betaSaleActive() public view returns(bool) {
        return betaSale;
    }

    function preSaleActive() public view returns(bool) {
        return presale;
    }
    
    function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data)
        internal
        whenNotPaused
        override(ERC1155, ERC1155Supply)
    {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }

    // The following functions are overrides required by Solidity.

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC1155, AccessControl)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    function uint2str(uint _i) internal pure returns (string memory _uintAsString) {
        if (_i == 0) {
            return "0";
        }
        uint j = _i;
        uint len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint k = len;
        while (_i != 0) {
            k = k-1;
            uint8 temp = (48 + uint8(_i - _i / 10 * 10));
            bytes1 b1 = bytes1(temp);
            bstr[k] = b1;
            _i /= 10;
        }
        return string(bstr);
    }

    function withdrawFunds() public onlyRole(OWNER_ROLE) {
		payable(msg.sender).transfer(address(this).balance);
	}
}

File 2 of 15 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 3 of 15 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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, _msgSender());
        _;
    }

    /**
     * @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 override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @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 {
        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 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.
     */
    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.
     */
    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`.
     */
    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.
     *
     * [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.
     */
    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.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 5 of 15 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] -= amounts[i];
            }
        }
    }
}

File 6 of 15 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 7 of 15 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 8 of 15 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 9 of 15 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 10 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 15 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 12 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 13 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 14 of 15 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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;
}

File 15 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"priceChanged","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"alphas","type":"address[]"}],"name":"addAlphaWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"betas","type":"address[]"}],"name":"addBetaWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"pre","type":"address[]"}],"name":"addPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"alphaMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"alphaSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"betaMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"betaSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target_address","type":"address"}],"name":"checkAlphaMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target_address","type":"address"}],"name":"checkAlphaWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target_address","type":"address"}],"name":"checkBetaMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target_address","type":"address"}],"name":"checkBetaWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target_address","type":"address"}],"name":"checkPresaleMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target_address","type":"address"}],"name":"checkPresaleWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"alphas","type":"address[]"}],"name":"removeAlphaWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"betas","type":"address[]"}],"name":"removeBetaWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"pre","type":"address[]"}],"name":"removePresale","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":"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":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"newuri","type":"string"}],"name":"setURI","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":"toggleAlphaSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleBetaSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePreSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052600b60808190526a37333a103bb0ba31b432b960a91b60a09081526200002e916006919062000224565b50604080518082019091526002808252616e7760f01b60209092019182526200005a9160079162000224565b506040805160208101918290526000908190526200007b9160089162000224565b5060006009819055600a819055600b819055600c55600d805463ffffffff19169055348015620000aa57600080fd5b50604080516020810190915260008152620000c58162000167565b506004805460ff19169055620000dd60003362000180565b620001097fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3362000180565b620001357f39331c3081f37cb3d1da4e5ce293da53d66ea4df63f4ddb834ef31094c8e0fc13362000180565b620001617f6a4b509b5f306a69ec99e97ff6b166daad9c0a3dfce739a6d67ad1c57143a6b23362000180565b62000307565b80516200017c90600290602084019062000224565b5050565b60008281526003602090815260408083206001600160a01b038516845290915290205460ff166200017c5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001e03390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280546200023290620002ca565b90600052602060002090601f016020900481019282620002565760008555620002a1565b82601f106200027157805160ff1916838001178555620002a1565b82800160010185558215620002a1579182015b82811115620002a157825182559160200191906001019062000284565b50620002af929150620002b3565b5090565b5b80821115620002af5760008155600101620002b4565b600281046001821680620002df57607f821691505b602082108114156200030157634e487b7160e01b600052602260045260246000fd5b50919050565b61353980620003176000396000f3fe60806040526004361061029c5760003560e01c80638449470811610165578063c732d201116100cc578063dd51babf11610085578063dd51babf146107d0578063e00011dd146107e5578063e8ba7e5914610805578063e985e9c514610825578063eb0f402d1461086e578063ef426a7c14610883578063f242432a146108985761029c565b8063c732d2011461073a578063c9b298f114610750578063d547741f14610763578063d758f14314610783578063d78d3d8e146107a3578063dbd30ae0146107bb5761029c565b8063a0712d681161011e578063a0712d681461069d578063a217fddf146106b0578063a22cb465146106c5578063b09afa30146106e5578063bd85b03914610705578063c2b2b9f1146107325761029c565b806384494708146105da5780638456cb59146105f95780638b44419e1461060e57806391d148541461062e57806399662c131461064e5780639ef2d87a146106875761029c565b80632eb2c2d6116102095780634e1273f4116101c25780634e1273f4146104ed5780634f558e791461051a5780634fcaea4f146105495780635c975abb1461056957806368428a1b146105815780637215c158146105a15761029c565b80632eb2c2d6146104505780632f2ff15d146104705780633060314d14610490578063346fb5f6146104b057806336568abe146104b85780633f4ba83a146104d85761029c565b80630e89341c1161025b5780630e89341c1461037b578063101cd687146103a857806318160ddd146103bd57806324600fc3146103d2578063248a9ca3146103e75780632c23a79c146104175761029c565b80621c93d1146102a1578062fdd58e146102b857806301ffc9a7146102eb57806302fe53051461031b578063055fb6861461033b57806309f071141461035b575b600080fd5b3480156102ad57600080fd5b506102b66108b8565b005b3480156102c457600080fd5b506102d86102d3366004612c6a565b61093a565b6040519081526020015b60405180910390f35b3480156102f757600080fd5b5061030b610306366004612d67565b6109d1565b60405190151581526020016102e2565b34801561032757600080fd5b506102b6610336366004612d9f565b6109e4565b34801561034757600080fd5b506102b6610356366004612c93565b610a1e565b34801561036757600080fd5b506102b6610376366004612c93565b610a99565b34801561038757600080fd5b5061039b610396366004612d2d565b610b0f565b6040516102e29190613087565b3480156103b457600080fd5b5061030b610b43565b3480156103c957600080fd5b506107d06102d8565b3480156103de57600080fd5b506102b6610b52565b3480156103f357600080fd5b506102d8610402366004612d2d565b60009081526003602052604090206001015490565b34801561042357600080fd5b5061030b610432366004612add565b6001600160a01b03166000908152600e602052604090205460ff1690565b34801561045c57600080fd5b506102b661046b366004612b29565b610b97565b34801561047c57600080fd5b506102b661048b366004612d45565b610c2e565b34801561049c57600080fd5b506102b66104ab366004612c93565b610c54565b6102b6610cbd565b3480156104c457600080fd5b506102b66104d3366004612d45565b610e08565b3480156104e457600080fd5b506102b6610e82565b3480156104f957600080fd5b5061050d610508366004612ccd565b610ea3565b6040516102e2919061304f565b34801561052657600080fd5b5061030b610535366004612d2d565b600090815260056020526040902054151590565b34801561055557600080fd5b506102b6610564366004612c93565b611004565b34801561057557600080fd5b5060045460ff1661030b565b34801561058d57600080fd5b5061030b600d546301000000900460ff1690565b3480156105ad57600080fd5b5061030b6105bc366004612add565b6001600160a01b03166000908152600f602052604090205460ff1690565b3480156105e657600080fd5b5061030b600d5462010000900460ff1690565b34801561060557600080fd5b506102b661106d565b34801561061a57600080fd5b506102b6610629366004612c93565b61108e565b34801561063a57600080fd5b5061030b610649366004612d45565b6110f7565b34801561065a57600080fd5b5061030b610669366004612add565b6001600160a01b031660009081526010602052604090205460ff1690565b34801561069357600080fd5b506102d86107d081565b6102b66106ab366004612d2d565b611122565b3480156106bc57600080fd5b506102d8600081565b3480156106d157600080fd5b506102b66106e0366004612c30565b61128f565b3480156106f157600080fd5b506102b6610700366004612c93565b61129a565b34801561071157600080fd5b506102d8610720366004612d2d565b60009081526005602052604090205490565b6102b6611303565b34801561074657600080fd5b506102d860095481565b6102b661075e366004612d2d565b611456565b34801561076f57600080fd5b506102b661077e366004612d45565b6115ef565b34801561078f57600080fd5b5061030b61079e366004612add565b611615565b3480156107af57600080fd5b50600d5460ff1661030b565b3480156107c757600080fd5b506102b661162f565b3480156107dc57600080fd5b506009546102d8565b3480156107f157600080fd5b5061030b610800366004612add565b6116a4565b34801561081157600080fd5b5061030b610820366004612add565b6116be565b34801561083157600080fd5b5061030b610840366004612af7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561087a57600080fd5b506102b66116d8565b34801561088f57600080fd5b506102b661173d565b3480156108a457600080fd5b506102b66108b3366004612bce565b6117a2565b6000805160206134a48339815191526108d281335b611829565b600d5462010000900460ff1661092b57600d80546201000062ffffff199091161763ff0000001916905560405167016345785d8a00008152600080516020613484833981519152906020015b60405180910390a1610937565b600d805461ff00191690555b50565b60006001600160a01b0383166109ab5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006109dc8261188d565b90505b919050565b6000805160206134a48339815191526109fd81336108cd565b8151610a109060089060208501906128d3565b50610a1a826118b2565b5050565b6000805160206134a4833981519152610a3781336108cd565b60005b8251811015610a9457610a826000805160206134e4833981519152848381518110610a7557634e487b7160e01b600052603260045260246000fd5b60200260200101516118c5565b80610a8c8161335e565b915050610a3a565b505050565b6000805160206134a4833981519152610ab281336108cd565b60005b8251811015610a9457610afd6000805160206134e4833981519152848381518110610af057634e487b7160e01b600052603260045260246000fd5b602002602001015161194b565b80610b078161335e565b915050610ab5565b60606008610b1c836119b2565b604051602001610b2d929190612e83565b6040516020818303038152906040529050919050565b600d54610100900460ff165b90565b6000805160206134a4833981519152610b6b81336108cd565b60405133904780156108fc02916000818181858888f19350505050158015610a1a573d6000803e3d6000fd5b6001600160a01b038516331480610bb35750610bb38533610840565b610c1a5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016109a2565b610c278585858585611af7565b5050505050565b600082815260036020526040902060010154610c4a81336108cd565b610a9483836118c5565b6000805160206134a4833981519152610c6d81336108cd565b60005b8251811015610a9457610cab6000805160206134c4833981519152848381518110610af057634e487b7160e01b600052603260045260246000fd5b80610cb58161335e565b915050610c70565b6000805160206134e4833981519152610cd681336108cd565b600d5460ff161515600114610d2d5760405162461bcd60e51b815260206004820152601a60248201527f416c7068612053616c6520686173206e6f74207374617274656400000000000060448201526064016109a2565b6107d060095410610d505760405162461bcd60e51b81526004016109a2906130e2565b336000908152600e602052604090205460ff1615610db05760405162461bcd60e51b815260206004820152601f60248201527f416c706861204d696e7465722068617320616c7265616479206d696e7465640060448201526064016109a2565b6000610dbc6000611cfe565b336000908152600e60205260408120805460ff191660011790556009805492935090610de78361335e565b9190505550610a1a3382600160405180602001604052806000815250611e93565b6001600160a01b0381163314610e785760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016109a2565b610a1a828261194b565b6000805160206134a4833981519152610e9b81336108cd565b610937611fa3565b60608151835114610f085760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016109a2565b600083516001600160401b03811115610f3157634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f5a578160200160208202803683370190505b50905060005b8451811015610ffc57610fc1858281518110610f8c57634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610fb457634e487b7160e01b600052603260045260246000fd5b602002602001015161093a565b828281518110610fe157634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610ff58161335e565b9050610f60565b509392505050565b6000805160206134a483398151915261101d81336108cd565b60005b8251811015610a945761105b600080516020613464833981519152848381518110610a7557634e487b7160e01b600052603260045260246000fd5b806110658161335e565b915050611020565b6000805160206134a483398151915261108681336108cd565b610937612036565b6000805160206134a48339815191526110a781336108cd565b60005b8251811015610a94576110e5600080516020613464833981519152848381518110610af057634e487b7160e01b600052603260045260246000fd5b806110ef8161335e565b9150506110aa565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600d546301000000900460ff1615156001146111775760405162461bcd60e51b815260206004820152601460248201527314d85b19481a185cc81b9bdd081cdd185c9d195960621b60448201526064016109a2565b60018110158015611189575060038111155b6111df5760405162461bcd60e51b815260206004820152602160248201527f416c6c6f776564206d696e7420636f756e74206973206265747765656e20312d6044820152603360f81b60648201526084016109a2565b6107d0600954106112025760405162461bcd60e51b81526004016109a2906130e2565b61121467016345785d8a00008261208e565b3410156112335760405162461bcd60e51b81526004016109a2906131d2565b60005b81811015610a1a57600061124982611cfe565b60098054919250600061125b8361335e565b919050555061127c3382600160405180602001604052806000815250611e93565b50806112878161335e565b915050611236565b610a1a3383836120a1565b6000805160206134a48339815191526112b381336108cd565b60005b8251811015610a94576112f16000805160206134c4833981519152848381518110610a7557634e487b7160e01b600052603260045260246000fd5b806112fb8161335e565b9150506112b6565b60008051602061346483398151915261131c81336108cd565b600d5460ff6101009091041615156001146113755760405162461bcd60e51b815260206004820152601960248201527810995d184814d85b19481a185cc81b9bdd081cdd185c9d1959603a1b60448201526064016109a2565b6107d0600954106113985760405162461bcd60e51b81526004016109a2906130e2565b336000908152600f602052604090205460ff16156113f85760405162461bcd60e51b815260206004820152601e60248201527f42657461204d696e7465722068617320616c7265616479206d696e746564000060448201526064016109a2565b66b1a2bc2ec5000034101561141f5760405162461bcd60e51b81526004016109a2906131d2565b600061142b6000611cfe565b336000908152600f60205260408120805460ff191660011790556009805492935090610de78361335e565b6000805160206134c483398151915261146f81336108cd565b600d5462010000900460ff1615156001146114c75760405162461bcd60e51b8152602060048201526018602482015277141c994814d85b19481a185cc81b9bdd081cdd185c9d195960421b60448201526064016109a2565b6107d0600954106114ea5760405162461bcd60e51b81526004016109a2906130e2565b3360009081526010602052604090205460ff161561154a5760405162461bcd60e51b815260206004820152601d60248201527f507265204d696e7465722068617320616c7265616479206d696e74656400000060448201526064016109a2565b61155c67016345785d8a00008361208e565b34101561157b5760405162461bcd60e51b81526004016109a2906131d2565b336000908152601060205260408120805460ff191660011790555b82811015610a945760006115a982611cfe565b6009805491925060006115bb8361335e565b91905055506115dc3382600160405180602001604052806000815250611e93565b50806115e78161335e565b915050611596565b60008281526003602052604090206001015461160b81336108cd565b610a94838361194b565b60006109dc600080516020613464833981519152836110f7565b6000805160206134a483398151915261164881336108cd565b600d546301000000900460ff1661169457600d805463ffffffff191663010000001790556040516000805160206134848339815191529061091e9067016345785d8a0000815260200190565b600d805463ff0000001916905550565b60006109dc6000805160206134e4833981519152836110f7565b60006109dc6000805160206134c4833981519152836110f7565b6000805160206134a48339815191526116f181336108cd565b600d5460ff1661173057600d8054600160ff199091161763ffffff0019169055604051600081526000805160206134848339815191529060200161091e565b600d805460ff1916905550565b6000805160206134a483398151915261175681336108cd565b600d54610100900460ff1661092b57600d805461010061ffff199091161763ffff00001916905560405166b1a2bc2ec5000081526000805160206134848339815191529060200161091e565b6001600160a01b0385163314806117be57506117be8533610840565b61181c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016109a2565b610c278585858585612182565b61183382826110f7565b610a1a5761184b816001600160a01b0316601461229f565b61185683602061229f565b604051602001611867929190612f3d565b60408051601f198184030181529082905262461bcd60e51b82526109a291600401613087565b60006001600160e01b03198216637965db0b60e01b14806109dc57506109dc82612480565b8051610a1a9060029060208401906128d3565b6118cf82826110f7565b610a1a5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff191660011790556119073390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61195582826110f7565b15610a1a5760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6060816119d757506040805180820190915260018152600360fc1b60208201526109df565b8160005b8115611a0157806119eb8161335e565b91506119fa9050600a8361325a565b91506119db565b6000816001600160401b03811115611a2957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a53576020820181803683370190505b509050815b8515611aee57611a69600182613299565b90506000611a78600a8861325a565b611a8390600a61327a565b611a8d9088613299565b611a98906030613235565b905060008160f81b905080848481518110611ac357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611ae5600a8961325a565b97505050611a58565b50949350505050565b8151835114611b595760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016109a2565b6001600160a01b038416611b7f5760405162461bcd60e51b81526004016109a290613143565b33611b8e8187878787876124d0565b60005b8451811015611c90576000858281518110611bbc57634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110611be857634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611c385760405162461bcd60e51b81526004016109a290613188565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611c7590849061321d565b9250508190555050505080611c899061335e565b9050611b91565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611ce0929190613062565b60405180910390a4611cf6818787878787612501565b505050505050565b600080611d0b834261321d565b90506000438233604051602001611d229190612e66565b6040516020818303038152906040528051906020012060001c611d45919061325a565b458441604051602001611d589190612e66565b6040516020818303038152906040528051906020012060001c611d7b919061325a565b611d85448761321d565b611d8f919061321d565b611d99919061321d565b611da3919061321d565b611dad919061321d565b604051602001611dbf91815260200190565b60408051601f19818403018152919052805160209091012090506000611de660c88361325a565b611df19060c861327a565b611dfb9083613299565b905060058111158015611e1157506032600c5411155b15611e3757600c8054906000611e268361335e565b9190505550600293505050506109df565b60328111158015611e4c57506101c2600b5411155b15611e7257600b8054906000611e618361335e565b9190505550600193505050506109df565b600a8054906000611e828361335e565b9190505550600093505050506109df565b6001600160a01b038416611ef35760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016109a2565b33611f1381600087611f048861266c565b611f0d8861266c565b876124d0565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611f4390849061321d565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610c27816000878787876126c5565b60045460ff16611fec5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016109a2565b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60045460ff16156120595760405162461bcd60e51b81526004016109a290613119565b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120193390565b600061209a828461327a565b9392505050565b816001600160a01b0316836001600160a01b031614156121155760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016109a2565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166121a85760405162461bcd60e51b81526004016109a290613143565b336121b8818787611f048861266c565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156121f95760405162461bcd60e51b81526004016109a290613188565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061223690849061321d565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46122968288888888886126c5565b50505050505050565b606060006122ae83600261327a565b6122b990600261321d565b6001600160401b038111156122de57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612308576020820181803683370190505b509050600360fc1b8160008151811061233157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061236e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061239284600261327a565b61239d90600161321d565b90505b6001811115612431576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106123df57634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061240357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361242a816132e0565b90506123a0565b50831561209a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109a2565b60006001600160e01b03198216636cdb3d1360e11b14806124b157506001600160e01b031982166303a24d0760e21b145b806109dc57506301ffc9a760e01b6001600160e01b03198316146109dc565b60045460ff16156124f35760405162461bcd60e51b81526004016109a290613119565b611cf686868686868661278f565b6001600160a01b0384163b15611cf65760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906125459089908990889088908890600401612fac565b602060405180830381600087803b15801561255f57600080fd5b505af192505050801561258f575060408051601f3d908101601f1916820190925261258c91810190612d83565b60015b61263c5761259b6133a5565b806308c379a014156125d557506125b06133bc565b806125bb57506125d7565b8060405162461bcd60e51b81526004016109a29190613087565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016109a2565b6001600160e01b0319811663bc197c8160e01b146122965760405162461bcd60e51b81526004016109a29061309a565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106126b457634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15611cf65760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612709908990899088908890889060040161300a565b602060405180830381600087803b15801561272357600080fd5b505af1925050508015612753575060408051601f3d908101601f1916820190925261275091810190612d83565b60015b61275f5761259b6133a5565b6001600160e01b0319811663f23a6e6160e01b146122965760405162461bcd60e51b81526004016109a29061309a565b6001600160a01b0385166128325760005b8351811015612830578281815181106127c957634e487b7160e01b600052603260045260246000fd5b6020026020010151600560008684815181106127f557634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600082825461281a919061321d565b9091555061282990508161335e565b90506127a0565b505b6001600160a01b038416611cf65760005b83518110156122965782818151811061286c57634e487b7160e01b600052603260045260246000fd5b60200260200101516005600086848151811061289857634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546128bd9190613299565b909155506128cc90508161335e565b9050612843565b8280546128df906132f7565b90600052602060002090601f0160209004810192826129015760008555612947565b82601f1061291a57805160ff1916838001178555612947565b82800160010185558215612947579182015b8281111561294757825182559160200191906001019061292c565b50612953929150612957565b5090565b5b808211156129535760008155600101612958565b60006001600160401b038311156129855761298561338f565b60405161299c601f8501601f191660200182613332565b8091508381528484840111156129b157600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b03811681146109df57600080fd5b600082601f8301126129f0578081fd5b813560206129fd826131fa565b604051612a0a8282613332565b838152828101915085830183850287018401881015612a27578586fd5b855b85811015612a4c57612a3a826129c9565b84529284019290840190600101612a29565b5090979650505050505050565b600082601f830112612a69578081fd5b81356020612a76826131fa565b604051612a838282613332565b838152828101915085830183850287018401881015612aa0578586fd5b855b85811015612a4c57813584529284019290840190600101612aa2565b600082601f830112612ace578081fd5b61209a8383356020850161296c565b600060208284031215612aee578081fd5b61209a826129c9565b60008060408385031215612b09578081fd5b612b12836129c9565b9150612b20602084016129c9565b90509250929050565b600080600080600060a08688031215612b40578081fd5b612b49866129c9565b9450612b57602087016129c9565b935060408601356001600160401b0380821115612b72578283fd5b612b7e89838a01612a59565b94506060880135915080821115612b93578283fd5b612b9f89838a01612a59565b93506080880135915080821115612bb4578283fd5b50612bc188828901612abe565b9150509295509295909350565b600080600080600060a08688031215612be5578081fd5b612bee866129c9565b9450612bfc602087016129c9565b9350604086013592506060860135915060808601356001600160401b03811115612c24578182fd5b612bc188828901612abe565b60008060408385031215612c42578182fd5b612c4b836129c9565b915060208301358015158114612c5f578182fd5b809150509250929050565b60008060408385031215612c7c578182fd5b612c85836129c9565b946020939093013593505050565b600060208284031215612ca4578081fd5b81356001600160401b03811115612cb9578182fd5b612cc5848285016129e0565b949350505050565b60008060408385031215612cdf578182fd5b82356001600160401b0380821115612cf5578384fd5b612d01868387016129e0565b93506020850135915080821115612d16578283fd5b50612d2385828601612a59565b9150509250929050565b600060208284031215612d3e578081fd5b5035919050565b60008060408385031215612d57578182fd5b82359150612b20602084016129c9565b600060208284031215612d78578081fd5b813561209a8161344d565b600060208284031215612d94578081fd5b815161209a8161344d565b600060208284031215612db0578081fd5b81356001600160401b03811115612dc5578182fd5b8201601f81018413612dd5578182fd5b612cc58482356020840161296c565b6000815180845260208085019450808401835b83811015612e1357815187529582019590820190600101612df7565b509495945050505050565b60008151808452612e368160208601602086016132b0565b601f01601f19169290920160200192915050565b60008151612e5c8185602086016132b0565b9290920192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b8254600090819060028104600180831680612e9f57607f831692505b6020808410821415612ebf57634e487b7160e01b87526022600452602487fd5b818015612ed35760018114612ee457612f10565b60ff19861689528489019650612f10565b60008b815260209020885b86811015612f085781548b820152908501908301612eef565b505084890196505b505050505050612f34612f238286612e4a565b64173539b7b760d91b815260050190565b95945050505050565b600076020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b82528351612f6f8160178501602088016132b0565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612fa08160288401602088016132b0565b01602801949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612fd890830186612de4565b8281036060840152612fea8186612de4565b90508281036080840152612ffe8185612e1e565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061304490830184612e1e565b979650505050505050565b60006020825261209a6020830184612de4565b6000604082526130756040830185612de4565b8281036020840152612f348185612de4565b60006020825261209a6020830184612e1e565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6020808252601b908201527f416c6c207061737365732068617665206265656e206d696e7465640000000000604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252600e908201526d09cdee840cadcdeeaced0408ae8d60931b604082015260600190565b60006001600160401b038211156132135761321361338f565b5060209081020190565b6000821982111561323057613230613379565b500190565b600060ff821660ff84168060ff0382111561325257613252613379565b019392505050565b60008261327557634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561329457613294613379565b500290565b6000828210156132ab576132ab613379565b500390565b60005b838110156132cb5781810151838201526020016132b3565b838111156132da576000848401525b50505050565b6000816132ef576132ef613379565b506000190190565b60028104600182168061330b57607f821691505b6020821081141561332c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b03811182821017156133575761335761338f565b6040525050565b600060001982141561337257613372613379565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115610b4f57600481823e5160e01c90565b600060443d10156133cc57610b4f565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156133fd575050505050610b4f565b828501915081518181111561341757505050505050610b4f565b843d870101602082850101111561343357505050505050610b4f565b61344260208286010187613332565b509094505050505090565b6001600160e01b03198116811461093757600080fdfe45d68385f6d5613db16ae892f9ef236a3994affc275dec7e1b5243f30bf1e79ff5fdf7223faf019b846dd0f35f25876f2b97118d4f6e9d6787ea6d85a55c2143b19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6a4b509b5f306a69ec99e97ff6b166daad9c0a3dfce739a6d67ad1c57143a6b239331c3081f37cb3d1da4e5ce293da53d66ea4df63f4ddb834ef31094c8e0fc1a2646970667358221220a813e1dffc321b30f3e00b4bd870afc7c0721f1c90f4fc0312195775dc7d83ce64736f6c63430008020033

Deployed Bytecode

0x60806040526004361061029c5760003560e01c80638449470811610165578063c732d201116100cc578063dd51babf11610085578063dd51babf146107d0578063e00011dd146107e5578063e8ba7e5914610805578063e985e9c514610825578063eb0f402d1461086e578063ef426a7c14610883578063f242432a146108985761029c565b8063c732d2011461073a578063c9b298f114610750578063d547741f14610763578063d758f14314610783578063d78d3d8e146107a3578063dbd30ae0146107bb5761029c565b8063a0712d681161011e578063a0712d681461069d578063a217fddf146106b0578063a22cb465146106c5578063b09afa30146106e5578063bd85b03914610705578063c2b2b9f1146107325761029c565b806384494708146105da5780638456cb59146105f95780638b44419e1461060e57806391d148541461062e57806399662c131461064e5780639ef2d87a146106875761029c565b80632eb2c2d6116102095780634e1273f4116101c25780634e1273f4146104ed5780634f558e791461051a5780634fcaea4f146105495780635c975abb1461056957806368428a1b146105815780637215c158146105a15761029c565b80632eb2c2d6146104505780632f2ff15d146104705780633060314d14610490578063346fb5f6146104b057806336568abe146104b85780633f4ba83a146104d85761029c565b80630e89341c1161025b5780630e89341c1461037b578063101cd687146103a857806318160ddd146103bd57806324600fc3146103d2578063248a9ca3146103e75780632c23a79c146104175761029c565b80621c93d1146102a1578062fdd58e146102b857806301ffc9a7146102eb57806302fe53051461031b578063055fb6861461033b57806309f071141461035b575b600080fd5b3480156102ad57600080fd5b506102b66108b8565b005b3480156102c457600080fd5b506102d86102d3366004612c6a565b61093a565b6040519081526020015b60405180910390f35b3480156102f757600080fd5b5061030b610306366004612d67565b6109d1565b60405190151581526020016102e2565b34801561032757600080fd5b506102b6610336366004612d9f565b6109e4565b34801561034757600080fd5b506102b6610356366004612c93565b610a1e565b34801561036757600080fd5b506102b6610376366004612c93565b610a99565b34801561038757600080fd5b5061039b610396366004612d2d565b610b0f565b6040516102e29190613087565b3480156103b457600080fd5b5061030b610b43565b3480156103c957600080fd5b506107d06102d8565b3480156103de57600080fd5b506102b6610b52565b3480156103f357600080fd5b506102d8610402366004612d2d565b60009081526003602052604090206001015490565b34801561042357600080fd5b5061030b610432366004612add565b6001600160a01b03166000908152600e602052604090205460ff1690565b34801561045c57600080fd5b506102b661046b366004612b29565b610b97565b34801561047c57600080fd5b506102b661048b366004612d45565b610c2e565b34801561049c57600080fd5b506102b66104ab366004612c93565b610c54565b6102b6610cbd565b3480156104c457600080fd5b506102b66104d3366004612d45565b610e08565b3480156104e457600080fd5b506102b6610e82565b3480156104f957600080fd5b5061050d610508366004612ccd565b610ea3565b6040516102e2919061304f565b34801561052657600080fd5b5061030b610535366004612d2d565b600090815260056020526040902054151590565b34801561055557600080fd5b506102b6610564366004612c93565b611004565b34801561057557600080fd5b5060045460ff1661030b565b34801561058d57600080fd5b5061030b600d546301000000900460ff1690565b3480156105ad57600080fd5b5061030b6105bc366004612add565b6001600160a01b03166000908152600f602052604090205460ff1690565b3480156105e657600080fd5b5061030b600d5462010000900460ff1690565b34801561060557600080fd5b506102b661106d565b34801561061a57600080fd5b506102b6610629366004612c93565b61108e565b34801561063a57600080fd5b5061030b610649366004612d45565b6110f7565b34801561065a57600080fd5b5061030b610669366004612add565b6001600160a01b031660009081526010602052604090205460ff1690565b34801561069357600080fd5b506102d86107d081565b6102b66106ab366004612d2d565b611122565b3480156106bc57600080fd5b506102d8600081565b3480156106d157600080fd5b506102b66106e0366004612c30565b61128f565b3480156106f157600080fd5b506102b6610700366004612c93565b61129a565b34801561071157600080fd5b506102d8610720366004612d2d565b60009081526005602052604090205490565b6102b6611303565b34801561074657600080fd5b506102d860095481565b6102b661075e366004612d2d565b611456565b34801561076f57600080fd5b506102b661077e366004612d45565b6115ef565b34801561078f57600080fd5b5061030b61079e366004612add565b611615565b3480156107af57600080fd5b50600d5460ff1661030b565b3480156107c757600080fd5b506102b661162f565b3480156107dc57600080fd5b506009546102d8565b3480156107f157600080fd5b5061030b610800366004612add565b6116a4565b34801561081157600080fd5b5061030b610820366004612add565b6116be565b34801561083157600080fd5b5061030b610840366004612af7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561087a57600080fd5b506102b66116d8565b34801561088f57600080fd5b506102b661173d565b3480156108a457600080fd5b506102b66108b3366004612bce565b6117a2565b6000805160206134a48339815191526108d281335b611829565b600d5462010000900460ff1661092b57600d80546201000062ffffff199091161763ff0000001916905560405167016345785d8a00008152600080516020613484833981519152906020015b60405180910390a1610937565b600d805461ff00191690555b50565b60006001600160a01b0383166109ab5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006109dc8261188d565b90505b919050565b6000805160206134a48339815191526109fd81336108cd565b8151610a109060089060208501906128d3565b50610a1a826118b2565b5050565b6000805160206134a4833981519152610a3781336108cd565b60005b8251811015610a9457610a826000805160206134e4833981519152848381518110610a7557634e487b7160e01b600052603260045260246000fd5b60200260200101516118c5565b80610a8c8161335e565b915050610a3a565b505050565b6000805160206134a4833981519152610ab281336108cd565b60005b8251811015610a9457610afd6000805160206134e4833981519152848381518110610af057634e487b7160e01b600052603260045260246000fd5b602002602001015161194b565b80610b078161335e565b915050610ab5565b60606008610b1c836119b2565b604051602001610b2d929190612e83565b6040516020818303038152906040529050919050565b600d54610100900460ff165b90565b6000805160206134a4833981519152610b6b81336108cd565b60405133904780156108fc02916000818181858888f19350505050158015610a1a573d6000803e3d6000fd5b6001600160a01b038516331480610bb35750610bb38533610840565b610c1a5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016109a2565b610c278585858585611af7565b5050505050565b600082815260036020526040902060010154610c4a81336108cd565b610a9483836118c5565b6000805160206134a4833981519152610c6d81336108cd565b60005b8251811015610a9457610cab6000805160206134c4833981519152848381518110610af057634e487b7160e01b600052603260045260246000fd5b80610cb58161335e565b915050610c70565b6000805160206134e4833981519152610cd681336108cd565b600d5460ff161515600114610d2d5760405162461bcd60e51b815260206004820152601a60248201527f416c7068612053616c6520686173206e6f74207374617274656400000000000060448201526064016109a2565b6107d060095410610d505760405162461bcd60e51b81526004016109a2906130e2565b336000908152600e602052604090205460ff1615610db05760405162461bcd60e51b815260206004820152601f60248201527f416c706861204d696e7465722068617320616c7265616479206d696e7465640060448201526064016109a2565b6000610dbc6000611cfe565b336000908152600e60205260408120805460ff191660011790556009805492935090610de78361335e565b9190505550610a1a3382600160405180602001604052806000815250611e93565b6001600160a01b0381163314610e785760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016109a2565b610a1a828261194b565b6000805160206134a4833981519152610e9b81336108cd565b610937611fa3565b60608151835114610f085760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016109a2565b600083516001600160401b03811115610f3157634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f5a578160200160208202803683370190505b50905060005b8451811015610ffc57610fc1858281518110610f8c57634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610fb457634e487b7160e01b600052603260045260246000fd5b602002602001015161093a565b828281518110610fe157634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610ff58161335e565b9050610f60565b509392505050565b6000805160206134a483398151915261101d81336108cd565b60005b8251811015610a945761105b600080516020613464833981519152848381518110610a7557634e487b7160e01b600052603260045260246000fd5b806110658161335e565b915050611020565b6000805160206134a483398151915261108681336108cd565b610937612036565b6000805160206134a48339815191526110a781336108cd565b60005b8251811015610a94576110e5600080516020613464833981519152848381518110610af057634e487b7160e01b600052603260045260246000fd5b806110ef8161335e565b9150506110aa565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600d546301000000900460ff1615156001146111775760405162461bcd60e51b815260206004820152601460248201527314d85b19481a185cc81b9bdd081cdd185c9d195960621b60448201526064016109a2565b60018110158015611189575060038111155b6111df5760405162461bcd60e51b815260206004820152602160248201527f416c6c6f776564206d696e7420636f756e74206973206265747765656e20312d6044820152603360f81b60648201526084016109a2565b6107d0600954106112025760405162461bcd60e51b81526004016109a2906130e2565b61121467016345785d8a00008261208e565b3410156112335760405162461bcd60e51b81526004016109a2906131d2565b60005b81811015610a1a57600061124982611cfe565b60098054919250600061125b8361335e565b919050555061127c3382600160405180602001604052806000815250611e93565b50806112878161335e565b915050611236565b610a1a3383836120a1565b6000805160206134a48339815191526112b381336108cd565b60005b8251811015610a94576112f16000805160206134c4833981519152848381518110610a7557634e487b7160e01b600052603260045260246000fd5b806112fb8161335e565b9150506112b6565b60008051602061346483398151915261131c81336108cd565b600d5460ff6101009091041615156001146113755760405162461bcd60e51b815260206004820152601960248201527810995d184814d85b19481a185cc81b9bdd081cdd185c9d1959603a1b60448201526064016109a2565b6107d0600954106113985760405162461bcd60e51b81526004016109a2906130e2565b336000908152600f602052604090205460ff16156113f85760405162461bcd60e51b815260206004820152601e60248201527f42657461204d696e7465722068617320616c7265616479206d696e746564000060448201526064016109a2565b66b1a2bc2ec5000034101561141f5760405162461bcd60e51b81526004016109a2906131d2565b600061142b6000611cfe565b336000908152600f60205260408120805460ff191660011790556009805492935090610de78361335e565b6000805160206134c483398151915261146f81336108cd565b600d5462010000900460ff1615156001146114c75760405162461bcd60e51b8152602060048201526018602482015277141c994814d85b19481a185cc81b9bdd081cdd185c9d195960421b60448201526064016109a2565b6107d0600954106114ea5760405162461bcd60e51b81526004016109a2906130e2565b3360009081526010602052604090205460ff161561154a5760405162461bcd60e51b815260206004820152601d60248201527f507265204d696e7465722068617320616c7265616479206d696e74656400000060448201526064016109a2565b61155c67016345785d8a00008361208e565b34101561157b5760405162461bcd60e51b81526004016109a2906131d2565b336000908152601060205260408120805460ff191660011790555b82811015610a945760006115a982611cfe565b6009805491925060006115bb8361335e565b91905055506115dc3382600160405180602001604052806000815250611e93565b50806115e78161335e565b915050611596565b60008281526003602052604090206001015461160b81336108cd565b610a94838361194b565b60006109dc600080516020613464833981519152836110f7565b6000805160206134a483398151915261164881336108cd565b600d546301000000900460ff1661169457600d805463ffffffff191663010000001790556040516000805160206134848339815191529061091e9067016345785d8a0000815260200190565b600d805463ff0000001916905550565b60006109dc6000805160206134e4833981519152836110f7565b60006109dc6000805160206134c4833981519152836110f7565b6000805160206134a48339815191526116f181336108cd565b600d5460ff1661173057600d8054600160ff199091161763ffffff0019169055604051600081526000805160206134848339815191529060200161091e565b600d805460ff1916905550565b6000805160206134a483398151915261175681336108cd565b600d54610100900460ff1661092b57600d805461010061ffff199091161763ffff00001916905560405166b1a2bc2ec5000081526000805160206134848339815191529060200161091e565b6001600160a01b0385163314806117be57506117be8533610840565b61181c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016109a2565b610c278585858585612182565b61183382826110f7565b610a1a5761184b816001600160a01b0316601461229f565b61185683602061229f565b604051602001611867929190612f3d565b60408051601f198184030181529082905262461bcd60e51b82526109a291600401613087565b60006001600160e01b03198216637965db0b60e01b14806109dc57506109dc82612480565b8051610a1a9060029060208401906128d3565b6118cf82826110f7565b610a1a5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff191660011790556119073390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61195582826110f7565b15610a1a5760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6060816119d757506040805180820190915260018152600360fc1b60208201526109df565b8160005b8115611a0157806119eb8161335e565b91506119fa9050600a8361325a565b91506119db565b6000816001600160401b03811115611a2957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a53576020820181803683370190505b509050815b8515611aee57611a69600182613299565b90506000611a78600a8861325a565b611a8390600a61327a565b611a8d9088613299565b611a98906030613235565b905060008160f81b905080848481518110611ac357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611ae5600a8961325a565b97505050611a58565b50949350505050565b8151835114611b595760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016109a2565b6001600160a01b038416611b7f5760405162461bcd60e51b81526004016109a290613143565b33611b8e8187878787876124d0565b60005b8451811015611c90576000858281518110611bbc57634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110611be857634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611c385760405162461bcd60e51b81526004016109a290613188565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611c7590849061321d565b9250508190555050505080611c899061335e565b9050611b91565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611ce0929190613062565b60405180910390a4611cf6818787878787612501565b505050505050565b600080611d0b834261321d565b90506000438233604051602001611d229190612e66565b6040516020818303038152906040528051906020012060001c611d45919061325a565b458441604051602001611d589190612e66565b6040516020818303038152906040528051906020012060001c611d7b919061325a565b611d85448761321d565b611d8f919061321d565b611d99919061321d565b611da3919061321d565b611dad919061321d565b604051602001611dbf91815260200190565b60408051601f19818403018152919052805160209091012090506000611de660c88361325a565b611df19060c861327a565b611dfb9083613299565b905060058111158015611e1157506032600c5411155b15611e3757600c8054906000611e268361335e565b9190505550600293505050506109df565b60328111158015611e4c57506101c2600b5411155b15611e7257600b8054906000611e618361335e565b9190505550600193505050506109df565b600a8054906000611e828361335e565b9190505550600093505050506109df565b6001600160a01b038416611ef35760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016109a2565b33611f1381600087611f048861266c565b611f0d8861266c565b876124d0565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611f4390849061321d565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610c27816000878787876126c5565b60045460ff16611fec5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016109a2565b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60045460ff16156120595760405162461bcd60e51b81526004016109a290613119565b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120193390565b600061209a828461327a565b9392505050565b816001600160a01b0316836001600160a01b031614156121155760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016109a2565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166121a85760405162461bcd60e51b81526004016109a290613143565b336121b8818787611f048861266c565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156121f95760405162461bcd60e51b81526004016109a290613188565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061223690849061321d565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46122968288888888886126c5565b50505050505050565b606060006122ae83600261327a565b6122b990600261321d565b6001600160401b038111156122de57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612308576020820181803683370190505b509050600360fc1b8160008151811061233157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061236e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061239284600261327a565b61239d90600161321d565b90505b6001811115612431576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106123df57634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061240357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361242a816132e0565b90506123a0565b50831561209a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109a2565b60006001600160e01b03198216636cdb3d1360e11b14806124b157506001600160e01b031982166303a24d0760e21b145b806109dc57506301ffc9a760e01b6001600160e01b03198316146109dc565b60045460ff16156124f35760405162461bcd60e51b81526004016109a290613119565b611cf686868686868661278f565b6001600160a01b0384163b15611cf65760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906125459089908990889088908890600401612fac565b602060405180830381600087803b15801561255f57600080fd5b505af192505050801561258f575060408051601f3d908101601f1916820190925261258c91810190612d83565b60015b61263c5761259b6133a5565b806308c379a014156125d557506125b06133bc565b806125bb57506125d7565b8060405162461bcd60e51b81526004016109a29190613087565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016109a2565b6001600160e01b0319811663bc197c8160e01b146122965760405162461bcd60e51b81526004016109a29061309a565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106126b457634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15611cf65760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612709908990899088908890889060040161300a565b602060405180830381600087803b15801561272357600080fd5b505af1925050508015612753575060408051601f3d908101601f1916820190925261275091810190612d83565b60015b61275f5761259b6133a5565b6001600160e01b0319811663f23a6e6160e01b146122965760405162461bcd60e51b81526004016109a29061309a565b6001600160a01b0385166128325760005b8351811015612830578281815181106127c957634e487b7160e01b600052603260045260246000fd5b6020026020010151600560008684815181106127f557634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600082825461281a919061321d565b9091555061282990508161335e565b90506127a0565b505b6001600160a01b038416611cf65760005b83518110156122965782818151811061286c57634e487b7160e01b600052603260045260246000fd5b60200260200101516005600086848151811061289857634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546128bd9190613299565b909155506128cc90508161335e565b9050612843565b8280546128df906132f7565b90600052602060002090601f0160209004810192826129015760008555612947565b82601f1061291a57805160ff1916838001178555612947565b82800160010185558215612947579182015b8281111561294757825182559160200191906001019061292c565b50612953929150612957565b5090565b5b808211156129535760008155600101612958565b60006001600160401b038311156129855761298561338f565b60405161299c601f8501601f191660200182613332565b8091508381528484840111156129b157600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b03811681146109df57600080fd5b600082601f8301126129f0578081fd5b813560206129fd826131fa565b604051612a0a8282613332565b838152828101915085830183850287018401881015612a27578586fd5b855b85811015612a4c57612a3a826129c9565b84529284019290840190600101612a29565b5090979650505050505050565b600082601f830112612a69578081fd5b81356020612a76826131fa565b604051612a838282613332565b838152828101915085830183850287018401881015612aa0578586fd5b855b85811015612a4c57813584529284019290840190600101612aa2565b600082601f830112612ace578081fd5b61209a8383356020850161296c565b600060208284031215612aee578081fd5b61209a826129c9565b60008060408385031215612b09578081fd5b612b12836129c9565b9150612b20602084016129c9565b90509250929050565b600080600080600060a08688031215612b40578081fd5b612b49866129c9565b9450612b57602087016129c9565b935060408601356001600160401b0380821115612b72578283fd5b612b7e89838a01612a59565b94506060880135915080821115612b93578283fd5b612b9f89838a01612a59565b93506080880135915080821115612bb4578283fd5b50612bc188828901612abe565b9150509295509295909350565b600080600080600060a08688031215612be5578081fd5b612bee866129c9565b9450612bfc602087016129c9565b9350604086013592506060860135915060808601356001600160401b03811115612c24578182fd5b612bc188828901612abe565b60008060408385031215612c42578182fd5b612c4b836129c9565b915060208301358015158114612c5f578182fd5b809150509250929050565b60008060408385031215612c7c578182fd5b612c85836129c9565b946020939093013593505050565b600060208284031215612ca4578081fd5b81356001600160401b03811115612cb9578182fd5b612cc5848285016129e0565b949350505050565b60008060408385031215612cdf578182fd5b82356001600160401b0380821115612cf5578384fd5b612d01868387016129e0565b93506020850135915080821115612d16578283fd5b50612d2385828601612a59565b9150509250929050565b600060208284031215612d3e578081fd5b5035919050565b60008060408385031215612d57578182fd5b82359150612b20602084016129c9565b600060208284031215612d78578081fd5b813561209a8161344d565b600060208284031215612d94578081fd5b815161209a8161344d565b600060208284031215612db0578081fd5b81356001600160401b03811115612dc5578182fd5b8201601f81018413612dd5578182fd5b612cc58482356020840161296c565b6000815180845260208085019450808401835b83811015612e1357815187529582019590820190600101612df7565b509495945050505050565b60008151808452612e368160208601602086016132b0565b601f01601f19169290920160200192915050565b60008151612e5c8185602086016132b0565b9290920192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b8254600090819060028104600180831680612e9f57607f831692505b6020808410821415612ebf57634e487b7160e01b87526022600452602487fd5b818015612ed35760018114612ee457612f10565b60ff19861689528489019650612f10565b60008b815260209020885b86811015612f085781548b820152908501908301612eef565b505084890196505b505050505050612f34612f238286612e4a565b64173539b7b760d91b815260050190565b95945050505050565b600076020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b82528351612f6f8160178501602088016132b0565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612fa08160288401602088016132b0565b01602801949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612fd890830186612de4565b8281036060840152612fea8186612de4565b90508281036080840152612ffe8185612e1e565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061304490830184612e1e565b979650505050505050565b60006020825261209a6020830184612de4565b6000604082526130756040830185612de4565b8281036020840152612f348185612de4565b60006020825261209a6020830184612e1e565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6020808252601b908201527f416c6c207061737365732068617665206265656e206d696e7465640000000000604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252600e908201526d09cdee840cadcdeeaced0408ae8d60931b604082015260600190565b60006001600160401b038211156132135761321361338f565b5060209081020190565b6000821982111561323057613230613379565b500190565b600060ff821660ff84168060ff0382111561325257613252613379565b019392505050565b60008261327557634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561329457613294613379565b500290565b6000828210156132ab576132ab613379565b500390565b60005b838110156132cb5781810151838201526020016132b3565b838111156132da576000848401525b50505050565b6000816132ef576132ef613379565b506000190190565b60028104600182168061330b57607f821691505b6020821081141561332c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b03811182821017156133575761335761338f565b6040525050565b600060001982141561337257613372613379565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115610b4f57600481823e5160e01c90565b600060443d10156133cc57610b4f565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156133fd575050505050610b4f565b828501915081518181111561341757505050505050610b4f565b843d870101602082850101111561343357505050505050610b4f565b61344260208286010187613332565b509094505050505090565b6001600160e01b03198116811461093757600080fdfe45d68385f6d5613db16ae892f9ef236a3994affc275dec7e1b5243f30bf1e79ff5fdf7223faf019b846dd0f35f25876f2b97118d4f6e9d6787ea6d85a55c2143b19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6a4b509b5f306a69ec99e97ff6b166daad9c0a3dfce739a6d67ad1c57143a6b239331c3081f37cb3d1da4e5ce293da53d66ea4df63f4ddb834ef31094c8e0fc1a2646970667358221220a813e1dffc321b30f3e00b4bd870afc7c0721f1c90f4fc0312195775dc7d83ce64736f6c63430008020033

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.