ETH Price: $3,342.18 (-0.98%)
Gas: 9.03 Gwei

Token

MintPassFactory (PASS)
 

Overview

Max Total Supply

0 PASS

Holders

860

Market

Volume (24H)

0.154 ETH

Min Price (24H)

$514.86 @ 0.154049 ETH

Max Price (24H)

$514.86 @ 0.154049 ETH
0xb7b70c2be01400eb89c9f7cfF667Ae5685AeDE71
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

MintPasses guarantee access to digital tokens on demand. A MintPass allows holders to redeem a random generative NFT.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MintPassFactory

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

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

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import './AbstractMintPassFactory.sol';

contract MintPassFactory is AbstractMintPassFactory  {
    using SafeMath for uint256;
    using Counters for Counters.Counter;

    Counters.Counter private mpCounter; 
  
    // new mint passes can be added to support future collections
    mapping(uint256 => MintPass) public mintPasses;
    
    event Claimed(uint index, address indexed account, uint amount);

    struct MintPass {
        bytes32 merkleRoot;
        uint256 windowOpens;
        uint256 windowCloses;
        uint256 mintPrice;
        string ipfsMetadataHash;
        address redeemableContract; // contract of the redeemable NFT
        mapping(address => uint256) claimedMPs;
    }

    constructor(
        string memory _name, 
        string memory _symbol
    ) public ERC1155("ipfs://ipfs/") {
        name_ = _name;
        symbol_ = _symbol;
    }

    function addMintPass(
        bytes32 _merkleRoot, 
        uint256 _windowOpens, 
        uint256 _windowCloses, 
        uint256  _mintPrice, 
        string memory _ipfsMetadataHash,
        address _redeemableContract
    ) external onlyOwner {
        require(_windowOpens < _windowCloses, "addMintPass: open window must be before close window");
        require(_windowOpens > 0 && _windowCloses > 0, "addMintPass: window cannot be 0");

        MintPass storage mp = mintPasses[mpCounter.current()];
        mp.merkleRoot = _merkleRoot;
        mp.windowOpens = _windowOpens;
        mp.windowCloses = _windowCloses;
        mp.mintPrice = _mintPrice;
        mp.ipfsMetadataHash = _ipfsMetadataHash;
        mp.redeemableContract = _redeemableContract;

        mpCounter.increment();
    }

    function editMintPass(
        bytes32 _merkleRoot, 
        uint256 _windowOpens, 
        uint256 _windowCloses, 
        uint256 _mintPrice, 
        string memory _ipfsMetadataHash,        
        address _redeemableContract, 
        uint256 _mpIndex
    ) external onlyOwner {
        require(_windowOpens < _windowCloses, "editMintPass: open window must be before close window");
        require(_windowOpens > 0 && _windowCloses > 0, "editMintPass: window cannot be 0");

        mintPasses[_mpIndex].merkleRoot = _merkleRoot;
        mintPasses[_mpIndex].windowOpens = _windowOpens;
        mintPasses[_mpIndex].windowCloses = _windowCloses;
        mintPasses[_mpIndex].mintPrice = _mintPrice;    
        mintPasses[_mpIndex].ipfsMetadataHash = _ipfsMetadataHash;    
        mintPasses[_mpIndex].redeemableContract = _redeemableContract;  
    }       

    function burnFromRedeem(
        address account, 
        uint256 mpIndex, 
        uint256 amount
    ) external {
        require(mintPasses[mpIndex].redeemableContract == msg.sender, "Burnable: Only allowed from redeemable contract");

        _burn(account, mpIndex, amount);
    }  

    function claim(
        uint256 numPasses,
        uint256 index,
        uint256 amount,
        uint256 mpIndex,
        bytes32[] calldata merkleProof
    ) external payable {
        // verify contract is not paused
        require(!paused(), "Claim: claiming is paused");
        // verify mint pass for given index exists
        require(mintPasses[mpIndex].windowOpens != 0, "Claim: Mint pass does not exist");
        // Verify within window
        require (block.timestamp > mintPasses[mpIndex].windowOpens && block.timestamp < mintPasses[mpIndex].windowCloses, "Claim: time window closed");
        // Verify minting price
        require(msg.value >= numPasses.mul(mintPasses[mpIndex].mintPrice), "Claim: Ether value incorrect");
        // Verify numPasses is within remaining claimable amount 
        require(mintPasses[mpIndex].claimedMPs[msg.sender].add(numPasses) <= amount, "Claim: Not allowed to claim given amount");

        // Verify the merkle proof
        bytes32 node = keccak256(abi.encodePacked(index, msg.sender, amount));
        require(
            MerkleProof.verify(merkleProof, mintPasses[mpIndex].merkleRoot, node),
            "MerkleDistributor: Invalid proof."
        );

        uint256 excessPayment = msg.value.sub(numPasses.mul(mintPasses[mpIndex].mintPrice));
        if (excessPayment > 0) {
            (bool returnExcessStatus, ) = _msgSender().call{value: excessPayment}("");
            require(returnExcessStatus, "Error returning excess payment");
        }
        
        mintPasses[mpIndex].claimedMPs[msg.sender] = mintPasses[mpIndex].claimedMPs[msg.sender].add(numPasses);
        _mint(msg.sender, mpIndex, numPasses, "");

        emit Claimed(index, msg.sender, numPasses);
    }
    
    function withdrawEther(address payable _to, uint256 _amount) public onlyOwner
    {
        _to.transfer(_amount);
    }

    function getClaimedMps(uint256 poolId, address userAdress) public view returns (uint256) {
        return mintPasses[poolId].claimedMPs[userAdress];
    }

    function uri(uint256 _id) public view override returns (string memory) {
            require(totalSupply(_id) > 0, "URI: nonexistent token");
            
            return string(abi.encodePacked(super.uri(_id), mintPasses[_id].ipfsMetadataHash));
    }    
}

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

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 {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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 `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

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

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

        _doSafeTransferAcceptanceCheck(operator, address(0), account, 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 `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

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

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

        emit TransferSingle(operator, account, 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 account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

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

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

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

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

    /**
     * @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(to).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(to).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 18 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

File 4 of 18 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library 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 5 of 18 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 18 : AbstractMintPassFactory.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Pausable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol';

abstract contract AbstractMintPassFactory is ERC1155Pausable, ERC1155Supply, ERC1155Burnable, Ownable {
    
    string public name_;
    string public symbol_;   
    
    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }    

    function setURI(string memory baseURI) external onlyOwner {
        _setURI(baseURI);
    }    

    function name() public view returns (string memory) {
        return name_;
    }

    function symbol() public view returns (string memory) {
        return symbol_;
    }          

    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._mint(account, id, amount, data);
    }

    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._mintBatch(to, ids, amounts, data);
    }

    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._burn(account, id, amount);
    }

    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._burnBatch(account, ids, amounts);
    }  

    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155Pausable, ERC1155) {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }  
}

File 7 of 18 : IERC1155.sol
// SPDX-License-Identifier: MIT

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private 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 18 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 12 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 13 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 14 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 15 of 18 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 16 of 18 : ERC1155Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev ERC1155 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Pausable is ERC1155, Pausable {
    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    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);

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

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

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 weither 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-_mint}.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override {
        super._mint(account, id, amount, data);
        _totalSupply[id] += amount;
    }

    /**
     * @dev See {ERC1155-_mintBatch}.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._mintBatch(to, ids, amounts, data);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] += amounts[i];
        }
    }

    /**
     * @dev See {ERC1155-_burn}.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override {
        super._burn(account, id, amount);
        _totalSupply[id] -= amount;
    }

    /**
     * @dev See {ERC1155-_burnBatch}.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override {
        super._burnBatch(account, ids, amounts);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] -= amounts[i];
        }
    }
}

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":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":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_windowOpens","type":"uint256"},{"internalType":"uint256","name":"_windowCloses","type":"uint256"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"string","name":"_ipfsMetadataHash","type":"string"},{"internalType":"address","name":"_redeemableContract","type":"address"}],"name":"addMintPass","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"mpIndex","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFromRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numPasses","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"mpIndex","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_windowOpens","type":"uint256"},{"internalType":"uint256","name":"_windowCloses","type":"uint256"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"string","name":"_ipfsMetadataHash","type":"string"},{"internalType":"address","name":"_redeemableContract","type":"address"},{"internalType":"uint256","name":"_mpIndex","type":"uint256"}],"name":"editMintPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"poolId","type":"uint256"},{"internalType":"address","name":"userAdress","type":"address"}],"name":"getClaimedMps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintPasses","outputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"windowOpens","type":"uint256"},{"internalType":"uint256","name":"windowCloses","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"string","name":"ipfsMetadataHash","type":"string"},{"internalType":"address","name":"redeemableContract","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name_","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","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":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol_","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200356438038062003564833981016040819052620000349162000270565b60408051808201909152600c81526b697066733a2f2f697066732f60a01b60208201526200006281620000ac565b506003805460ff191690556200007833620000c5565b81516200008d90600690602085019062000117565b508051620000a390600790602084019062000117565b5050506200032a565b8051620000c190600290602084019062000117565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200012590620002d7565b90600052602060002090601f01602090048101928262000149576000855562000194565b82601f106200016457805160ff191683800117855562000194565b8280016001018555821562000194579182015b828111156200019457825182559160200191906001019062000177565b50620001a2929150620001a6565b5090565b5b80821115620001a25760008155600101620001a7565b600082601f830112620001ce578081fd5b81516001600160401b0380821115620001eb57620001eb62000314565b604051601f8301601f19908116603f0116810190828211818310171562000216576200021662000314565b8160405283815260209250868385880101111562000232578485fd5b8491505b8382101562000255578582018301518183018401529082019062000236565b838211156200026657848385830101525b9695505050505050565b6000806040838503121562000283578182fd5b82516001600160401b03808211156200029a578384fd5b620002a886838701620001bd565b93506020850151915080821115620002be578283fd5b50620002cd85828601620001bd565b9150509250929050565b600181811c90821680620002ec57607f821691505b602082108114156200030e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61322a806200033a6000396000f3fe6080604052600436106101cc5760003560e01c806373100cd1116100f7578063bd85b03911610095578063e985e9c511610064578063e985e9c51461054b578063f242432a14610594578063f2fde38b146105b4578063f5298aca146105d457600080fd5b8063bd85b039146104a2578063c0305096146104cf578063c195a4ef146104ef578063e2b9e1861461053657600080fd5b806395d89b41116100d157806395d89b4114610426578063a22cb4651461043b578063af17dea61461045b578063af95f9fb1461047057600080fd5b806373100cd1146103c95780638456cb59146103e95780638da5cb5b146103fe57600080fd5b80633f4ba83a1161016f5780635463c3e81161013e5780635463c3e8146103695780635c975abb1461037c5780636b20c45414610394578063715018a6146103b457600080fd5b80633f4ba83a146102d85780634e1273f4146102ed5780634f558e791461031a578063522f68151461034957600080fd5b806306fdde03116101ab57806306fdde03146102565780630e89341c146102785780632eb2c2d6146102985780633aeca210146102b857600080fd5b8062fdd58e146101d157806301ffc9a71461020457806302fe530514610234575b600080fd5b3480156101dd57600080fd5b506101f16101ec36600461281f565b6105f4565b6040519081526020015b60405180910390f35b34801561021057600080fd5b5061022461021f366004612a24565b61068b565b60405190151581526020016101fb565b34801561024057600080fd5b5061025461024f366004612a5c565b6106dd565b005b34801561026257600080fd5b5061026b610713565b6040516101fb9190612da6565b34801561028457600080fd5b5061026b610293366004612a96565b6107a5565b3480156102a457600080fd5b506102546102b336600461266d565b61083f565b3480156102c457600080fd5b506102546102d3366004612831565b6108d6565b3480156102e457600080fd5b50610254610967565b3480156102f957600080fd5b5061030d610308366004612865565b61099b565b6040516101fb9190612d1f565b34801561032657600080fd5b50610224610335366004612a96565b600090815260046020526040902054151590565b34801561035557600080fd5b5061025461036436600461260a565b610afc565b610254610377366004612ad2565b610b5c565b34801561038857600080fd5b5060035460ff16610224565b3480156103a057600080fd5b506102546103af36600461277c565b610fd9565b3480156103c057600080fd5b5061025461101c565b3480156103d557600080fd5b506102546103e43660046129a5565b611050565b3480156103f557600080fd5b506102546111b7565b34801561040a57600080fd5b506005546040516001600160a01b0390911681526020016101fb565b34801561043257600080fd5b5061026b6111e9565b34801561044757600080fd5b506102546104563660046127ee565b6111f8565b34801561046757600080fd5b5061026b6112cf565b34801561047c57600080fd5b5061049061048b366004612a96565b61135d565b6040516101fb96959493929190612d60565b3480156104ae57600080fd5b506101f16104bd366004612a96565b60009081526004602052604090205490565b3480156104db57600080fd5b506102546104ea366004612931565b611425565b3480156104fb57600080fd5b506101f161050a366004612aae565b60008281526009602090815260408083206001600160a01b038516845260060190915290205492915050565b34801561054257600080fd5b5061026b611597565b34801561055757600080fd5b50610224610566366004612635565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156105a057600080fd5b506102546105af366004612716565b6115a4565b3480156105c057600080fd5b506102546105cf3660046125ee565b6115e9565b3480156105e057600080fd5b506102546105ef366004612831565b611681565b60006001600160a01b0383166106655760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806106bc57506001600160e01b031982166303a24d0760e21b145b806106d757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6005546001600160a01b031633146107075760405162461bcd60e51b815260040161065c90612f60565b610710816116b9565b50565b6060600680546107229061307a565b80601f016020809104026020016040519081016040528092919081815260200182805461074e9061307a565b801561079b5780601f106107705761010080835404028352916020019161079b565b820191906000526020600020905b81548152906001019060200180831161077e57829003601f168201915b5050505050905090565b600081815260046020526040812054606091106107fd5760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b604482015260640161065c565b610806826116d0565b600083815260096020908152604091829020915161082993926004019101612bcd565b6040516020818303038152906040529050919050565b6001600160a01b03851633148061085b575061085b8533610566565b6108c25760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161065c565b6108cf8585858585611764565b5050505050565b6000828152600960205260409020600501546001600160a01b031633146109575760405162461bcd60e51b815260206004820152602f60248201527f4275726e61626c653a204f6e6c7920616c6c6f7765642066726f6d207265646560448201526e195b58589b194818dbdb9d1c9858dd608a1b606482015260840161065c565b61096283838361192a565b505050565b6005546001600160a01b031633146109915760405162461bcd60e51b815260040161065c90612f60565b610999611935565b565b60608151835114610a005760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161065c565b600083516001600160401b03811115610a2957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610a52578160200160208202803683370190505b50905060005b8451811015610af457610ab9858281518110610a8457634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610aac57634e487b7160e01b600052603260045260246000fd5b60200260200101516105f4565b828281518110610ad957634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610aed816130e1565b9050610a58565b509392505050565b6005546001600160a01b03163314610b265760405162461bcd60e51b815260040161065c90612f60565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610962573d6000803e3d6000fd5b60035460ff1615610baf5760405162461bcd60e51b815260206004820152601960248201527f436c61696d3a20636c61696d696e672069732070617573656400000000000000604482015260640161065c565b600083815260096020526040902060010154610c0d5760405162461bcd60e51b815260206004820152601f60248201527f436c61696d3a204d696e74207061737320646f6573206e6f7420657869737400604482015260640161065c565b60008381526009602052604090206001015442118015610c3d575060008381526009602052604090206002015442105b610c895760405162461bcd60e51b815260206004820152601960248201527f436c61696d3a2074696d652077696e646f7720636c6f73656400000000000000604482015260640161065c565b600083815260096020526040902060030154610ca69087906119c8565b341015610cf55760405162461bcd60e51b815260206004820152601c60248201527f436c61696d3a2045746865722076616c756520696e636f727265637400000000604482015260640161065c565b60008381526009602090815260408083203384526006019091529020548490610d1e90886119db565b1115610d7d5760405162461bcd60e51b815260206004820152602860248201527f436c61696d3a204e6f7420616c6c6f77656420746f20636c61696d20676976656044820152671b88185b5bdd5b9d60c21b606482015260840161065c565b60408051602081018790526bffffffffffffffffffffffff193360601b169181019190915260548101859052600090607401604051602081830303815290604052805190602001209050610e1283838080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508981526009602052604090205492508591506119e79050565b610e685760405162461bcd60e51b815260206004820152602160248201527f4d65726b6c654469737472696275746f723a20496e76616c69642070726f6f666044820152601760f91b606482015260840161065c565b600084815260096020526040812060030154610e9090610e89908a906119c8565b3490611aa4565b90508015610f3257604051600090339083908381818185875af1925050503d8060008114610eda576040519150601f19603f3d011682016040523d82523d6000602084013e610edf565b606091505b5050905080610f305760405162461bcd60e51b815260206004820152601e60248201527f4572726f722072657475726e696e6720657863657373207061796d656e740000604482015260640161065c565b505b6000858152600960209081526040808320338452600601909152902054610f5990896119db565b600086815260096020908152604080832033808552600690910183528184209490945580519182019052908152610f94919087908b90611ab0565b60408051888152602081018a905233917f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed026910160405180910390a25050505050505050565b6001600160a01b038316331480610ff55750610ff58333610566565b6110115760405162461bcd60e51b815260040161065c90612e45565b610962838383611ac2565b6005546001600160a01b031633146110465760405162461bcd60e51b815260040161065c90612f60565b6109996000611acd565b6005546001600160a01b0316331461107a5760405162461bcd60e51b815260040161065c90612f60565b8486106110e75760405162461bcd60e51b815260206004820152603560248201527f656469744d696e74506173733a206f70656e2077696e646f77206d757374206260448201527465206265666f726520636c6f73652077696e646f7760581b606482015260840161065c565b6000861180156110f75750600085115b6111435760405162461bcd60e51b815260206004820181905260248201527f656469744d696e74506173733a2077696e646f772063616e6e6f742062652030604482015260640161065c565b6000818152600960209081526040909120888155600181018890556002810187905560038101869055845161118092600490920191860190612473565b50600090815260096020526040902060050180546001600160a01b0319166001600160a01b03929092169190911790555050505050565b6005546001600160a01b031633146111e15760405162461bcd60e51b815260040161065c90612f60565b610999611b1f565b6060600780546107229061307a565b336001600160a01b03831614156112635760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161065c565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600780546112dc9061307a565b80601f01602080910402602001604051908101604052809291908181526020018280546113089061307a565b80156113555780601f1061132a57610100808354040283529160200191611355565b820191906000526020600020905b81548152906001019060200180831161133857829003601f168201915b505050505081565b6009602052600090815260409020805460018201546002830154600384015460048501805494959394929391926113939061307a565b80601f01602080910402602001604051908101604052809291908181526020018280546113bf9061307a565b801561140c5780601f106113e15761010080835404028352916020019161140c565b820191906000526020600020905b8154815290600101906020018083116113ef57829003601f168201915b505050600590930154919250506001600160a01b031686565b6005546001600160a01b0316331461144f5760405162461bcd60e51b815260040161065c90612f60565b8385106114bb5760405162461bcd60e51b815260206004820152603460248201527f6164644d696e74506173733a206f70656e2077696e646f77206d757374206265604482015273206265666f726520636c6f73652077696e646f7760601b606482015260840161065c565b6000851180156114cb5750600084115b6115175760405162461bcd60e51b815260206004820152601f60248201527f6164644d696e74506173733a2077696e646f772063616e6e6f74206265203000604482015260640161065c565b60006009600061152660085490565b8152602080820192909252604001600020888155600181018890556002810187905560038101869055845190925061156691600484019190860190612473565b506005810180546001600160a01b0319166001600160a01b0384161790556008805460010190555b50505050505050565b600680546112dc9061307a565b6001600160a01b0385163314806115c057506115c08533610566565b6115dc5760405162461bcd60e51b815260040161065c90612e45565b6108cf8585858585611b9a565b6005546001600160a01b031633146116135760405162461bcd60e51b815260040161065c90612f60565b6001600160a01b0381166116785760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161065c565b61071081611acd565b6001600160a01b03831633148061169d575061169d8333610566565b6109575760405162461bcd60e51b815260040161065c90612e45565b80516116cc906002906020840190612473565b5050565b6060600280546116df9061307a565b80601f016020809104026020016040519081016040528092919081815260200182805461170b9061307a565b80156117585780601f1061172d57610100808354040283529160200191611758565b820191906000526020600020905b81548152906001019060200180831161173b57829003601f168201915b50505050509050919050565b81518351146117855760405162461bcd60e51b815260040161065c90612f95565b6001600160a01b0384166117ab5760405162461bcd60e51b815260040161065c90612e8e565b336117ba818787878787611cbd565b60005b84518110156118bc5760008582815181106117e857634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061181457634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156118645760405162461bcd60e51b815260040161065c90612f16565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906118a1908490613000565b92505081905550505050806118b5906130e1565b90506117bd565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161190c929190612d32565b60405180910390a4611922818787878787611ccb565b505050505050565b610962838383611e36565b60035460ff1661197e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161065c565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60006119d48284613018565b9392505050565b60006119d48284613000565b600081815b8551811015611a99576000868281518110611a1757634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311611a59576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611a86565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611a91816130e1565b9150506119ec565b509092149392505050565b60006119d48284613037565b611abc84848484611e69565b50505050565b610962838383611e9e565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60035460ff1615611b655760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161065c565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586119ab3390565b6001600160a01b038416611bc05760405162461bcd60e51b815260040161065c90612e8e565b33611bdf818787611bd088611f3c565b611bd988611f3c565b87611cbd565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611c205760405162461bcd60e51b815260040161065c90612f16565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611c5d908490613000565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461158e828888888888611f95565b61192286868686868661205f565b6001600160a01b0384163b156119225760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611d0f9089908990889088908890600401612c7c565b602060405180830381600087803b158015611d2957600080fd5b505af1925050508015611d59575060408051601f3d908101601f19168201909252611d5691810190612a40565b60015b611e0657611d65613128565b806308c379a01415611d9f5750611d7a613140565b80611d855750611da1565b8060405162461bcd60e51b815260040161065c9190612da6565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161065c565b6001600160e01b0319811663bc197c8160e01b1461158e5760405162461bcd60e51b815260040161065c90612db9565b611e418383836120c7565b60008281526004602052604081208054839290611e5f908490613037565b9091555050505050565b611e75848484846121c8565b60008381526004602052604081208054849290611e93908490613000565b909155505050505050565b611ea98383836122c9565b60005b8251811015611abc57818181518110611ed557634e487b7160e01b600052603260045260246000fd5b602002602001015160046000858481518110611f0157634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254611f269190613037565b90915550611f359050816130e1565b9050611eac565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611f8457634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156119225760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611fd99089908990889088908890600401612cda565b602060405180830381600087803b158015611ff357600080fd5b505af1925050508015612023575060408051601f3d908101601f1916820190925261202091810190612a40565b60015b61202f57611d65613128565b6001600160e01b0319811663f23a6e6160e01b1461158e5760405162461bcd60e51b815260040161065c90612db9565b60035460ff16156119225760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b606482015260840161065c565b6001600160a01b0383166120ed5760405162461bcd60e51b815260040161065c90612ed3565b3361211c818560006120fe87611f3c565b61210787611f3c565b60405180602001604052806000815250611cbd565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561215d5760405162461bcd60e51b815260040161065c90612e01565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384166122285760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161065c565b3361223981600087611bd088611f3c565b6000848152602081815260408083206001600160a01b038916845290915281208054859290612269908490613000565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46108cf81600087878787611f95565b6001600160a01b0383166122ef5760405162461bcd60e51b815260040161065c90612ed3565b80518251146123105760405162461bcd60e51b815260040161065c90612f95565b600033905061233381856000868660405180602001604052806000815250611cbd565b60005b835181101561241457600084828151811061236157634e487b7160e01b600052603260045260246000fd5b60200260200101519050600084838151811061238d57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156123dd5760405162461bcd60e51b815260040161065c90612e01565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061240c816130e1565b915050612336565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612465929190612d32565b60405180910390a450505050565b82805461247f9061307a565b90600052602060002090601f0160209004810192826124a157600085556124e7565b82601f106124ba57805160ff19168380011785556124e7565b828001600101855582156124e7579182015b828111156124e75782518255916020019190600101906124cc565b506124f39291506124f7565b5090565b5b808211156124f357600081556001016124f8565b600082601f83011261251c578081fd5b8135602061252982612fdd565b60405161253682826130b5565b8381528281019150858301600585901b87018401881015612555578586fd5b855b8581101561257357813584529284019290840190600101612557565b5090979650505050505050565b600082601f830112612590578081fd5b81356001600160401b038111156125a9576125a9613112565b6040516125c0601f8301601f1916602001826130b5565b8181528460208386010111156125d4578283fd5b816020850160208301379081016020019190915292915050565b6000602082840312156125ff578081fd5b81356119d4816131c9565b6000806040838503121561261c578081fd5b8235612627816131c9565b946020939093013593505050565b60008060408385031215612647578182fd5b8235612652816131c9565b91506020830135612662816131c9565b809150509250929050565b600080600080600060a08688031215612684578081fd5b853561268f816131c9565b9450602086013561269f816131c9565b935060408601356001600160401b03808211156126ba578283fd5b6126c689838a0161250c565b945060608801359150808211156126db578283fd5b6126e789838a0161250c565b935060808801359150808211156126fc578283fd5b5061270988828901612580565b9150509295509295909350565b600080600080600060a0868803121561272d578081fd5b8535612738816131c9565b94506020860135612748816131c9565b9350604086013592506060860135915060808601356001600160401b03811115612770578182fd5b61270988828901612580565b600080600060608486031215612790578283fd5b833561279b816131c9565b925060208401356001600160401b03808211156127b6578384fd5b6127c28783880161250c565b935060408601359150808211156127d7578283fd5b506127e48682870161250c565b9150509250925092565b60008060408385031215612800578182fd5b823561280b816131c9565b915060208301358015158114612662578182fd5b6000806040838503121561261c578182fd5b600080600060608486031215612845578081fd5b8335612850816131c9565b95602085013595506040909401359392505050565b60008060408385031215612877578182fd5b82356001600160401b038082111561288d578384fd5b818501915085601f8301126128a0578384fd5b813560206128ad82612fdd565b6040516128ba82826130b5565b8381528281019150858301600585901b870184018b10156128d9578889fd5b8896505b848710156129045780356128f0816131c9565b8352600196909601959183019183016128dd565b509650508601359250508082111561291a578283fd5b506129278582860161250c565b9150509250929050565b60008060008060008060c08789031215612949578384fd5b8635955060208701359450604087013593506060870135925060808701356001600160401b0381111561297a578182fd5b61298689828a01612580565b92505060a0870135612997816131c9565b809150509295509295509295565b600080600080600080600060e0888a0312156129bf578485fd5b8735965060208801359550604088013594506060880135935060808801356001600160401b038111156129f0578182fd5b6129fc8a828b01612580565b93505060a0880135612a0d816131c9565b8092505060c0880135905092959891949750929550565b600060208284031215612a35578081fd5b81356119d4816131de565b600060208284031215612a51578081fd5b81516119d4816131de565b600060208284031215612a6d578081fd5b81356001600160401b03811115612a82578182fd5b612a8e84828501612580565b949350505050565b600060208284031215612aa7578081fd5b5035919050565b60008060408385031215612ac0578182fd5b823591506020830135612662816131c9565b60008060008060008060a08789031215612aea578384fd5b8635955060208701359450604087013593506060870135925060808701356001600160401b0380821115612b1c578384fd5b818901915089601f830112612b2f578384fd5b813581811115612b3d578485fd5b8a60208260051b8501011115612b51578485fd5b6020830194508093505050509295509295509295565b6000815180845260208085019450808401835b83811015612b9657815187529582019590820190600101612b7a565b509495945050505050565b60008151808452612bb981602086016020860161304e565b601f01601f19169290920160200192915050565b600083516020612be0828583890161304e565b8454918401918390600181811c9080831680612bfd57607f831692505b858310811415612c1b57634e487b7160e01b88526022600452602488fd5b808015612c2f5760018114612c4057612c6c565b60ff19851688528388019550612c6c565b60008b815260209020895b85811015612c645781548a820152908401908801612c4b565b505083880195505b50939a9950505050505050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612ca890830186612b67565b8281036060840152612cba8186612b67565b90508281036080840152612cce8185612ba1565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612d1490830184612ba1565b979650505050505050565b6020815260006119d46020830184612b67565b604081526000612d456040830185612b67565b8281036020840152612d578185612b67565b95945050505050565b86815285602082015284604082015283606082015260c060808201526000612d8b60c0830185612ba1565b905060018060a01b03831660a0830152979650505050505050565b6020815260006119d46020830184612ba1565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60006001600160401b03821115612ff657612ff6613112565b5060051b60200190565b60008219821115613013576130136130fc565b500190565b6000816000190483118215151615613032576130326130fc565b500290565b600082821015613049576130496130fc565b500390565b60005b83811015613069578181015183820152602001613051565b83811115611abc5750506000910152565b600181811c9082168061308e57607f821691505b602082108114156130af57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b03811182821017156130da576130da613112565b6040525050565b60006000198214156130f5576130f56130fc565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561313d57600481823e5160e01c5b90565b600060443d101561314e5790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561317d57505050505090565b82850191508151818111156131955750505050505090565b843d87010160208285010111156131af5750505050505090565b6131be602082860101876130b5565b509095945050505050565b6001600160a01b038116811461071057600080fd5b6001600160e01b03198116811461071057600080fdfea2646970667358221220ddd97dea4ccf248bd7d7c990adbef0910f1d986802e3afb9a0a3aba480b38f9c64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f4d696e7450617373466163746f7279000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045041535300000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101cc5760003560e01c806373100cd1116100f7578063bd85b03911610095578063e985e9c511610064578063e985e9c51461054b578063f242432a14610594578063f2fde38b146105b4578063f5298aca146105d457600080fd5b8063bd85b039146104a2578063c0305096146104cf578063c195a4ef146104ef578063e2b9e1861461053657600080fd5b806395d89b41116100d157806395d89b4114610426578063a22cb4651461043b578063af17dea61461045b578063af95f9fb1461047057600080fd5b806373100cd1146103c95780638456cb59146103e95780638da5cb5b146103fe57600080fd5b80633f4ba83a1161016f5780635463c3e81161013e5780635463c3e8146103695780635c975abb1461037c5780636b20c45414610394578063715018a6146103b457600080fd5b80633f4ba83a146102d85780634e1273f4146102ed5780634f558e791461031a578063522f68151461034957600080fd5b806306fdde03116101ab57806306fdde03146102565780630e89341c146102785780632eb2c2d6146102985780633aeca210146102b857600080fd5b8062fdd58e146101d157806301ffc9a71461020457806302fe530514610234575b600080fd5b3480156101dd57600080fd5b506101f16101ec36600461281f565b6105f4565b6040519081526020015b60405180910390f35b34801561021057600080fd5b5061022461021f366004612a24565b61068b565b60405190151581526020016101fb565b34801561024057600080fd5b5061025461024f366004612a5c565b6106dd565b005b34801561026257600080fd5b5061026b610713565b6040516101fb9190612da6565b34801561028457600080fd5b5061026b610293366004612a96565b6107a5565b3480156102a457600080fd5b506102546102b336600461266d565b61083f565b3480156102c457600080fd5b506102546102d3366004612831565b6108d6565b3480156102e457600080fd5b50610254610967565b3480156102f957600080fd5b5061030d610308366004612865565b61099b565b6040516101fb9190612d1f565b34801561032657600080fd5b50610224610335366004612a96565b600090815260046020526040902054151590565b34801561035557600080fd5b5061025461036436600461260a565b610afc565b610254610377366004612ad2565b610b5c565b34801561038857600080fd5b5060035460ff16610224565b3480156103a057600080fd5b506102546103af36600461277c565b610fd9565b3480156103c057600080fd5b5061025461101c565b3480156103d557600080fd5b506102546103e43660046129a5565b611050565b3480156103f557600080fd5b506102546111b7565b34801561040a57600080fd5b506005546040516001600160a01b0390911681526020016101fb565b34801561043257600080fd5b5061026b6111e9565b34801561044757600080fd5b506102546104563660046127ee565b6111f8565b34801561046757600080fd5b5061026b6112cf565b34801561047c57600080fd5b5061049061048b366004612a96565b61135d565b6040516101fb96959493929190612d60565b3480156104ae57600080fd5b506101f16104bd366004612a96565b60009081526004602052604090205490565b3480156104db57600080fd5b506102546104ea366004612931565b611425565b3480156104fb57600080fd5b506101f161050a366004612aae565b60008281526009602090815260408083206001600160a01b038516845260060190915290205492915050565b34801561054257600080fd5b5061026b611597565b34801561055757600080fd5b50610224610566366004612635565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156105a057600080fd5b506102546105af366004612716565b6115a4565b3480156105c057600080fd5b506102546105cf3660046125ee565b6115e9565b3480156105e057600080fd5b506102546105ef366004612831565b611681565b60006001600160a01b0383166106655760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806106bc57506001600160e01b031982166303a24d0760e21b145b806106d757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6005546001600160a01b031633146107075760405162461bcd60e51b815260040161065c90612f60565b610710816116b9565b50565b6060600680546107229061307a565b80601f016020809104026020016040519081016040528092919081815260200182805461074e9061307a565b801561079b5780601f106107705761010080835404028352916020019161079b565b820191906000526020600020905b81548152906001019060200180831161077e57829003601f168201915b5050505050905090565b600081815260046020526040812054606091106107fd5760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b604482015260640161065c565b610806826116d0565b600083815260096020908152604091829020915161082993926004019101612bcd565b6040516020818303038152906040529050919050565b6001600160a01b03851633148061085b575061085b8533610566565b6108c25760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161065c565b6108cf8585858585611764565b5050505050565b6000828152600960205260409020600501546001600160a01b031633146109575760405162461bcd60e51b815260206004820152602f60248201527f4275726e61626c653a204f6e6c7920616c6c6f7765642066726f6d207265646560448201526e195b58589b194818dbdb9d1c9858dd608a1b606482015260840161065c565b61096283838361192a565b505050565b6005546001600160a01b031633146109915760405162461bcd60e51b815260040161065c90612f60565b610999611935565b565b60608151835114610a005760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161065c565b600083516001600160401b03811115610a2957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610a52578160200160208202803683370190505b50905060005b8451811015610af457610ab9858281518110610a8457634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610aac57634e487b7160e01b600052603260045260246000fd5b60200260200101516105f4565b828281518110610ad957634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610aed816130e1565b9050610a58565b509392505050565b6005546001600160a01b03163314610b265760405162461bcd60e51b815260040161065c90612f60565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610962573d6000803e3d6000fd5b60035460ff1615610baf5760405162461bcd60e51b815260206004820152601960248201527f436c61696d3a20636c61696d696e672069732070617573656400000000000000604482015260640161065c565b600083815260096020526040902060010154610c0d5760405162461bcd60e51b815260206004820152601f60248201527f436c61696d3a204d696e74207061737320646f6573206e6f7420657869737400604482015260640161065c565b60008381526009602052604090206001015442118015610c3d575060008381526009602052604090206002015442105b610c895760405162461bcd60e51b815260206004820152601960248201527f436c61696d3a2074696d652077696e646f7720636c6f73656400000000000000604482015260640161065c565b600083815260096020526040902060030154610ca69087906119c8565b341015610cf55760405162461bcd60e51b815260206004820152601c60248201527f436c61696d3a2045746865722076616c756520696e636f727265637400000000604482015260640161065c565b60008381526009602090815260408083203384526006019091529020548490610d1e90886119db565b1115610d7d5760405162461bcd60e51b815260206004820152602860248201527f436c61696d3a204e6f7420616c6c6f77656420746f20636c61696d20676976656044820152671b88185b5bdd5b9d60c21b606482015260840161065c565b60408051602081018790526bffffffffffffffffffffffff193360601b169181019190915260548101859052600090607401604051602081830303815290604052805190602001209050610e1283838080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508981526009602052604090205492508591506119e79050565b610e685760405162461bcd60e51b815260206004820152602160248201527f4d65726b6c654469737472696275746f723a20496e76616c69642070726f6f666044820152601760f91b606482015260840161065c565b600084815260096020526040812060030154610e9090610e89908a906119c8565b3490611aa4565b90508015610f3257604051600090339083908381818185875af1925050503d8060008114610eda576040519150601f19603f3d011682016040523d82523d6000602084013e610edf565b606091505b5050905080610f305760405162461bcd60e51b815260206004820152601e60248201527f4572726f722072657475726e696e6720657863657373207061796d656e740000604482015260640161065c565b505b6000858152600960209081526040808320338452600601909152902054610f5990896119db565b600086815260096020908152604080832033808552600690910183528184209490945580519182019052908152610f94919087908b90611ab0565b60408051888152602081018a905233917f4ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed026910160405180910390a25050505050505050565b6001600160a01b038316331480610ff55750610ff58333610566565b6110115760405162461bcd60e51b815260040161065c90612e45565b610962838383611ac2565b6005546001600160a01b031633146110465760405162461bcd60e51b815260040161065c90612f60565b6109996000611acd565b6005546001600160a01b0316331461107a5760405162461bcd60e51b815260040161065c90612f60565b8486106110e75760405162461bcd60e51b815260206004820152603560248201527f656469744d696e74506173733a206f70656e2077696e646f77206d757374206260448201527465206265666f726520636c6f73652077696e646f7760581b606482015260840161065c565b6000861180156110f75750600085115b6111435760405162461bcd60e51b815260206004820181905260248201527f656469744d696e74506173733a2077696e646f772063616e6e6f742062652030604482015260640161065c565b6000818152600960209081526040909120888155600181018890556002810187905560038101869055845161118092600490920191860190612473565b50600090815260096020526040902060050180546001600160a01b0319166001600160a01b03929092169190911790555050505050565b6005546001600160a01b031633146111e15760405162461bcd60e51b815260040161065c90612f60565b610999611b1f565b6060600780546107229061307a565b336001600160a01b03831614156112635760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161065c565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600780546112dc9061307a565b80601f01602080910402602001604051908101604052809291908181526020018280546113089061307a565b80156113555780601f1061132a57610100808354040283529160200191611355565b820191906000526020600020905b81548152906001019060200180831161133857829003601f168201915b505050505081565b6009602052600090815260409020805460018201546002830154600384015460048501805494959394929391926113939061307a565b80601f01602080910402602001604051908101604052809291908181526020018280546113bf9061307a565b801561140c5780601f106113e15761010080835404028352916020019161140c565b820191906000526020600020905b8154815290600101906020018083116113ef57829003601f168201915b505050600590930154919250506001600160a01b031686565b6005546001600160a01b0316331461144f5760405162461bcd60e51b815260040161065c90612f60565b8385106114bb5760405162461bcd60e51b815260206004820152603460248201527f6164644d696e74506173733a206f70656e2077696e646f77206d757374206265604482015273206265666f726520636c6f73652077696e646f7760601b606482015260840161065c565b6000851180156114cb5750600084115b6115175760405162461bcd60e51b815260206004820152601f60248201527f6164644d696e74506173733a2077696e646f772063616e6e6f74206265203000604482015260640161065c565b60006009600061152660085490565b8152602080820192909252604001600020888155600181018890556002810187905560038101869055845190925061156691600484019190860190612473565b506005810180546001600160a01b0319166001600160a01b0384161790556008805460010190555b50505050505050565b600680546112dc9061307a565b6001600160a01b0385163314806115c057506115c08533610566565b6115dc5760405162461bcd60e51b815260040161065c90612e45565b6108cf8585858585611b9a565b6005546001600160a01b031633146116135760405162461bcd60e51b815260040161065c90612f60565b6001600160a01b0381166116785760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161065c565b61071081611acd565b6001600160a01b03831633148061169d575061169d8333610566565b6109575760405162461bcd60e51b815260040161065c90612e45565b80516116cc906002906020840190612473565b5050565b6060600280546116df9061307a565b80601f016020809104026020016040519081016040528092919081815260200182805461170b9061307a565b80156117585780601f1061172d57610100808354040283529160200191611758565b820191906000526020600020905b81548152906001019060200180831161173b57829003601f168201915b50505050509050919050565b81518351146117855760405162461bcd60e51b815260040161065c90612f95565b6001600160a01b0384166117ab5760405162461bcd60e51b815260040161065c90612e8e565b336117ba818787878787611cbd565b60005b84518110156118bc5760008582815181106117e857634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061181457634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156118645760405162461bcd60e51b815260040161065c90612f16565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906118a1908490613000565b92505081905550505050806118b5906130e1565b90506117bd565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161190c929190612d32565b60405180910390a4611922818787878787611ccb565b505050505050565b610962838383611e36565b60035460ff1661197e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161065c565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60006119d48284613018565b9392505050565b60006119d48284613000565b600081815b8551811015611a99576000868281518110611a1757634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311611a59576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611a86565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611a91816130e1565b9150506119ec565b509092149392505050565b60006119d48284613037565b611abc84848484611e69565b50505050565b610962838383611e9e565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60035460ff1615611b655760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161065c565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586119ab3390565b6001600160a01b038416611bc05760405162461bcd60e51b815260040161065c90612e8e565b33611bdf818787611bd088611f3c565b611bd988611f3c565b87611cbd565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611c205760405162461bcd60e51b815260040161065c90612f16565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611c5d908490613000565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461158e828888888888611f95565b61192286868686868661205f565b6001600160a01b0384163b156119225760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611d0f9089908990889088908890600401612c7c565b602060405180830381600087803b158015611d2957600080fd5b505af1925050508015611d59575060408051601f3d908101601f19168201909252611d5691810190612a40565b60015b611e0657611d65613128565b806308c379a01415611d9f5750611d7a613140565b80611d855750611da1565b8060405162461bcd60e51b815260040161065c9190612da6565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161065c565b6001600160e01b0319811663bc197c8160e01b1461158e5760405162461bcd60e51b815260040161065c90612db9565b611e418383836120c7565b60008281526004602052604081208054839290611e5f908490613037565b9091555050505050565b611e75848484846121c8565b60008381526004602052604081208054849290611e93908490613000565b909155505050505050565b611ea98383836122c9565b60005b8251811015611abc57818181518110611ed557634e487b7160e01b600052603260045260246000fd5b602002602001015160046000858481518110611f0157634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254611f269190613037565b90915550611f359050816130e1565b9050611eac565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611f8457634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b156119225760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611fd99089908990889088908890600401612cda565b602060405180830381600087803b158015611ff357600080fd5b505af1925050508015612023575060408051601f3d908101601f1916820190925261202091810190612a40565b60015b61202f57611d65613128565b6001600160e01b0319811663f23a6e6160e01b1461158e5760405162461bcd60e51b815260040161065c90612db9565b60035460ff16156119225760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b606482015260840161065c565b6001600160a01b0383166120ed5760405162461bcd60e51b815260040161065c90612ed3565b3361211c818560006120fe87611f3c565b61210787611f3c565b60405180602001604052806000815250611cbd565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561215d5760405162461bcd60e51b815260040161065c90612e01565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384166122285760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161065c565b3361223981600087611bd088611f3c565b6000848152602081815260408083206001600160a01b038916845290915281208054859290612269908490613000565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46108cf81600087878787611f95565b6001600160a01b0383166122ef5760405162461bcd60e51b815260040161065c90612ed3565b80518251146123105760405162461bcd60e51b815260040161065c90612f95565b600033905061233381856000868660405180602001604052806000815250611cbd565b60005b835181101561241457600084828151811061236157634e487b7160e01b600052603260045260246000fd5b60200260200101519050600084838151811061238d57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156123dd5760405162461bcd60e51b815260040161065c90612e01565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061240c816130e1565b915050612336565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612465929190612d32565b60405180910390a450505050565b82805461247f9061307a565b90600052602060002090601f0160209004810192826124a157600085556124e7565b82601f106124ba57805160ff19168380011785556124e7565b828001600101855582156124e7579182015b828111156124e75782518255916020019190600101906124cc565b506124f39291506124f7565b5090565b5b808211156124f357600081556001016124f8565b600082601f83011261251c578081fd5b8135602061252982612fdd565b60405161253682826130b5565b8381528281019150858301600585901b87018401881015612555578586fd5b855b8581101561257357813584529284019290840190600101612557565b5090979650505050505050565b600082601f830112612590578081fd5b81356001600160401b038111156125a9576125a9613112565b6040516125c0601f8301601f1916602001826130b5565b8181528460208386010111156125d4578283fd5b816020850160208301379081016020019190915292915050565b6000602082840312156125ff578081fd5b81356119d4816131c9565b6000806040838503121561261c578081fd5b8235612627816131c9565b946020939093013593505050565b60008060408385031215612647578182fd5b8235612652816131c9565b91506020830135612662816131c9565b809150509250929050565b600080600080600060a08688031215612684578081fd5b853561268f816131c9565b9450602086013561269f816131c9565b935060408601356001600160401b03808211156126ba578283fd5b6126c689838a0161250c565b945060608801359150808211156126db578283fd5b6126e789838a0161250c565b935060808801359150808211156126fc578283fd5b5061270988828901612580565b9150509295509295909350565b600080600080600060a0868803121561272d578081fd5b8535612738816131c9565b94506020860135612748816131c9565b9350604086013592506060860135915060808601356001600160401b03811115612770578182fd5b61270988828901612580565b600080600060608486031215612790578283fd5b833561279b816131c9565b925060208401356001600160401b03808211156127b6578384fd5b6127c28783880161250c565b935060408601359150808211156127d7578283fd5b506127e48682870161250c565b9150509250925092565b60008060408385031215612800578182fd5b823561280b816131c9565b915060208301358015158114612662578182fd5b6000806040838503121561261c578182fd5b600080600060608486031215612845578081fd5b8335612850816131c9565b95602085013595506040909401359392505050565b60008060408385031215612877578182fd5b82356001600160401b038082111561288d578384fd5b818501915085601f8301126128a0578384fd5b813560206128ad82612fdd565b6040516128ba82826130b5565b8381528281019150858301600585901b870184018b10156128d9578889fd5b8896505b848710156129045780356128f0816131c9565b8352600196909601959183019183016128dd565b509650508601359250508082111561291a578283fd5b506129278582860161250c565b9150509250929050565b60008060008060008060c08789031215612949578384fd5b8635955060208701359450604087013593506060870135925060808701356001600160401b0381111561297a578182fd5b61298689828a01612580565b92505060a0870135612997816131c9565b809150509295509295509295565b600080600080600080600060e0888a0312156129bf578485fd5b8735965060208801359550604088013594506060880135935060808801356001600160401b038111156129f0578182fd5b6129fc8a828b01612580565b93505060a0880135612a0d816131c9565b8092505060c0880135905092959891949750929550565b600060208284031215612a35578081fd5b81356119d4816131de565b600060208284031215612a51578081fd5b81516119d4816131de565b600060208284031215612a6d578081fd5b81356001600160401b03811115612a82578182fd5b612a8e84828501612580565b949350505050565b600060208284031215612aa7578081fd5b5035919050565b60008060408385031215612ac0578182fd5b823591506020830135612662816131c9565b60008060008060008060a08789031215612aea578384fd5b8635955060208701359450604087013593506060870135925060808701356001600160401b0380821115612b1c578384fd5b818901915089601f830112612b2f578384fd5b813581811115612b3d578485fd5b8a60208260051b8501011115612b51578485fd5b6020830194508093505050509295509295509295565b6000815180845260208085019450808401835b83811015612b9657815187529582019590820190600101612b7a565b509495945050505050565b60008151808452612bb981602086016020860161304e565b601f01601f19169290920160200192915050565b600083516020612be0828583890161304e565b8454918401918390600181811c9080831680612bfd57607f831692505b858310811415612c1b57634e487b7160e01b88526022600452602488fd5b808015612c2f5760018114612c4057612c6c565b60ff19851688528388019550612c6c565b60008b815260209020895b85811015612c645781548a820152908401908801612c4b565b505083880195505b50939a9950505050505050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612ca890830186612b67565b8281036060840152612cba8186612b67565b90508281036080840152612cce8185612ba1565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612d1490830184612ba1565b979650505050505050565b6020815260006119d46020830184612b67565b604081526000612d456040830185612b67565b8281036020840152612d578185612b67565b95945050505050565b86815285602082015284604082015283606082015260c060808201526000612d8b60c0830185612ba1565b905060018060a01b03831660a0830152979650505050505050565b6020815260006119d46020830184612ba1565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60006001600160401b03821115612ff657612ff6613112565b5060051b60200190565b60008219821115613013576130136130fc565b500190565b6000816000190483118215151615613032576130326130fc565b500290565b600082821015613049576130496130fc565b500390565b60005b83811015613069578181015183820152602001613051565b83811115611abc5750506000910152565b600181811c9082168061308e57607f821691505b602082108114156130af57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b03811182821017156130da576130da613112565b6040525050565b60006000198214156130f5576130f56130fc565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561313d57600481823e5160e01c5b90565b600060443d101561314e5790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561317d57505050505090565b82850191508151818111156131955750505050505090565b843d87010160208285010111156131af5750505050505090565b6131be602082860101876130b5565b509095945050505050565b6001600160a01b038116811461071057600080fd5b6001600160e01b03198116811461071057600080fdfea2646970667358221220ddd97dea4ccf248bd7d7c990adbef0910f1d986802e3afb9a0a3aba480b38f9c64736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f4d696e7450617373466163746f7279000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045041535300000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): MintPassFactory
Arg [1] : _symbol (string): PASS

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [3] : 4d696e7450617373466163746f72790000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 5041535300000000000000000000000000000000000000000000000000000000


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.